@dreamboard-games/cli 0.1.30-alpha.27 → 0.1.30-alpha.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/dist/index.js CHANGED
@@ -56,7 +56,7 @@ import {
56
56
  titleFromSlug,
57
57
  toDreamboardApiError,
58
58
  waitForCompiledResultJobSdk
59
- } from "./chunk-BOO4OFZR.js";
59
+ } from "./chunk-AB734OB2.js";
60
60
  import {
61
61
  applyWorkspaceCodegen,
62
62
  collectLocalFiles,
@@ -94,7 +94,7 @@ import {
94
94
  updateProjectLocalMaintainerRegistry,
95
95
  updateProjectState,
96
96
  writeSnapshot
97
- } from "./chunk-LEUC3W2L.js";
97
+ } from "./chunk-HGVHTFXB.js";
98
98
  import {
99
99
  clearCredentials,
100
100
  getActiveCredentialBackendName,
@@ -5732,11 +5732,11 @@ function resolveRequestedRunner(value) {
5732
5732
  if (value == null || value === "") {
5733
5733
  return void 0;
5734
5734
  }
5735
- if (value === "reducer" || value === "remote") {
5735
+ if (value === "reducer" || value === "remote" || value === "browser") {
5736
5736
  return value;
5737
5737
  }
5738
5738
  throw new Error(
5739
- `Unsupported test runner '${String(value)}'. Expected one of reducer, remote.`
5739
+ `Unsupported test runner '${String(value)}'. Expected one of reducer, remote, browser.`
5740
5740
  );
5741
5741
  }
5742
5742
  function resolveTestCommandPlan(args) {
@@ -5746,14 +5746,14 @@ function resolveTestCommandPlan(args) {
5746
5746
  if (runner === "remote" && !commit) {
5747
5747
  throw new Error("dreamboard test --runner remote requires --commit <rev>.");
5748
5748
  }
5749
- if (commit && runner !== "remote") {
5749
+ if (commit && runner !== "remote" && runner !== "browser") {
5750
5750
  throw new Error(
5751
- "dreamboard test --commit is only valid with --runner remote."
5751
+ "dreamboard test --commit is only valid with --runner remote or --runner browser."
5752
5752
  );
5753
5753
  }
5754
5754
  if (updateSnapshots && (runner === "remote" || commit)) {
5755
5755
  throw new Error(
5756
- "dreamboard test --update-snapshots is only valid for current-worktree reducer tests."
5756
+ "dreamboard test --update-snapshots is only valid for current-worktree reducer or browser tests."
5757
5757
  );
5758
5758
  }
5759
5759
  return {
@@ -5800,6 +5800,12 @@ function assertRemoteCommitReady(status) {
5800
5800
  }
5801
5801
  async function resolveRemoteCommitCompiledResult(options) {
5802
5802
  const revisionDigest = assertRemoteCommitReady(options.status);
5803
+ const previewBuild = options.status.builds.find(
5804
+ (build) => build.targetProfile === "preview" && build.compiledArtifactStatus === "SUCCEEDED" && typeof build.compiledArtifactId === "string" && build.compiledArtifactId.length > 0
5805
+ );
5806
+ if (previewBuild?.compiledArtifactId) {
5807
+ return { id: previewBuild.compiledArtifactId };
5808
+ }
5803
5809
  const compiledResults = await (options.findCompiledResultsForRevision ?? findProjectCompiledResultsForRevision)({
5804
5810
  projectId: options.projectId,
5805
5811
  revisionDigest
@@ -6327,7 +6333,7 @@ function runDreamboardCli(internalSubCommands = {}) {
6327
6333
  const main = defineCommand({
6328
6334
  meta: {
6329
6335
  name: "dreamboard",
6330
- version: "0.1.30-alpha.27",
6336
+ version: "0.1.30-alpha.28",
6331
6337
  description: "Dreamboard CLI \u2014 game development platform"
6332
6338
  },
6333
6339
  subCommands