@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
@@ -19041,7 +19041,6 @@ function normalizeProjectBinding(config2) {
19041
19041
  return {
19042
19042
  deploymentId: config2.deploymentId ?? LEGACY_DEFAULT_DEPLOYMENT_ID,
19043
19043
  ownerScopeId: config2.ownerScopeId ?? LEGACY_DEFAULT_OWNER_SCOPE_ID,
19044
- gameId: config2.gameId,
19045
19044
  remoteHeadDigest: config2.remoteHeadDigest,
19046
19045
  jobId: config2.jobId,
19047
19046
  agentManaged: config2.agentManaged,
@@ -19075,7 +19074,6 @@ function mergeManifestAndBinding(manifest, binding, bindingKey) {
19075
19074
  deploymentId: LEGACY_DEFAULT_DEPLOYMENT_ID,
19076
19075
  ownerScopeId: LEGACY_DEFAULT_OWNER_SCOPE_ID
19077
19076
  },
19078
- gameId: binding?.gameId ?? manifest.projectId,
19079
19077
  bindingKey: bindingKey ?? `${binding?.deploymentId ?? LEGACY_DEFAULT_DEPLOYMENT_ID}:${binding?.ownerScopeId ?? LEGACY_DEFAULT_OWNER_SCOPE_ID}`
19080
19078
  };
19081
19079
  }
@@ -19083,29 +19081,6 @@ function isProjectManifestV2(value) {
19083
19081
  const candidate = value;
19084
19082
  return candidate?.schemaVersion === 2 && typeof candidate.projectId === "string" && typeof candidate.slug === "string";
19085
19083
  }
19086
- function normalizeLegacyProjectConfig(config2) {
19087
- return {
19088
- schemaVersion: 2,
19089
- projectId: config2.projectId ?? config2.gameId,
19090
- slug: config2.slug,
19091
- bindingKey: LEGACY_DEFAULT_BINDING_KEY,
19092
- deploymentId: LEGACY_DEFAULT_DEPLOYMENT_ID,
19093
- ownerScopeId: LEGACY_DEFAULT_OWNER_SCOPE_ID,
19094
- gameId: config2.gameId,
19095
- jobId: config2.jobId,
19096
- agentManaged: config2.agentManaged,
19097
- workspacePrepared: config2.workspacePrepared,
19098
- allowCreateGame: config2.allowCreateGame,
19099
- environment: config2.environment,
19100
- authoring: config2.authoring,
19101
- compile: config2.compile,
19102
- localMaintainerRegistry: config2.localMaintainerRegistry,
19103
- apiBaseUrl: config2.apiBaseUrl,
19104
- webBaseUrl: config2.webBaseUrl,
19105
- packageManifest: config2.packageManifest,
19106
- environmentManifest: config2.environmentManifest
19107
- };
19108
- }
19109
19084
  async function loadProjectEnvironmentState(rootDir) {
19110
19085
  const filePath = path8.join(rootDir, PROJECT_DIR_NAME, PROJECT_STATE_FILE);
19111
19086
  if (!await exists(filePath)) {
@@ -19116,15 +19091,11 @@ async function loadProjectEnvironmentState(rootDir) {
19116
19091
  }
19117
19092
  async function loadProjectConfig(rootDir) {
19118
19093
  const filePath = path8.join(rootDir, PROJECT_DIR_NAME, PROJECT_CONFIG_FILE);
19119
- const rawConfig = await readJsonFile(
19120
- filePath
19121
- );
19094
+ const rawConfig = await readJsonFile(filePath);
19122
19095
  if (!isProjectManifestV2(rawConfig)) {
19123
- const migrated = normalizeLegacyProjectConfig(
19124
- rawConfig
19096
+ throw new Error(
19097
+ `Unsupported project config at ${filePath}. Expected schemaVersion 2 with projectId and slug.`
19125
19098
  );
19126
- await updateProjectState(rootDir, migrated);
19127
- return migrated;
19128
19099
  }
19129
19100
  const state = await loadProjectEnvironmentState(rootDir);
19130
19101
  const entries = Object.entries(state.bindings);
@@ -19189,7 +19160,7 @@ var AUTHORING_RELEASE_SET = {
19189
19160
  "packages": {
19190
19161
  "cli": {
19191
19162
  "name": "@dreamboard-games/cli",
19192
- "version": "0.1.30-alpha.39"
19163
+ "version": "0.1.30-alpha.40"
19193
19164
  },
19194
19165
  "sdk": {
19195
19166
  "name": "@dreamboard-games/sdk",
@@ -19201,7 +19172,7 @@ var AUTHORING_RELEASE_SET = {
19201
19172
  },
19202
19173
  "devHost": {
19203
19174
  "name": "@dreamboard-games/dev-host",
19204
- "version": "0.1.30-alpha.26"
19175
+ "version": "0.1.30-alpha.27"
19205
19176
  }
19206
19177
  },
19207
19178
  "protocols": {
@@ -19219,7 +19190,7 @@ var AUTHORING_RELEASE_SET = {
19219
19190
  "portable": true
19220
19191
  },
19221
19192
  "packageManager": "pnpm@10.4.1",
19222
- "releaseSetId": "sha256:99293016258deb0093af008665e467ea2bee5f28eb93faa1332441bef9fa62a4"
19193
+ "releaseSetId": "sha256:b1ba68e0bd81fbf6c44d39665e716f5fba81342036f04f1d102b12da77c73f1c"
19223
19194
  };
19224
19195
 
19225
19196
  // src/templates/testing-types-content.ts
@@ -20477,8 +20448,7 @@ async function materializeWorkspaceProject(input) {
20477
20448
  function baseProjectConfig(input) {
20478
20449
  return {
20479
20450
  schemaVersion: 2,
20480
- projectId: input.projectId ?? input.gameId,
20481
- gameId: input.gameId,
20451
+ projectId: input.projectId,
20482
20452
  deploymentId: input.deploymentId ?? "legacy",
20483
20453
  ownerScopeId: input.ownerScopeId ?? "default",
20484
20454
  bindingKey: input.bindingKey,
@@ -20549,4 +20519,4 @@ export {
20549
20519
  findProjectRoot,
20550
20520
  materializeWorkspaceProject
20551
20521
  };
20552
- //# sourceMappingURL=chunk-R6J3LAQY.js.map
20522
+ //# sourceMappingURL=chunk-USZAPMQ4.js.map