@diagonal-hq/cli 0.42.6 → 0.42.7

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/cli.mjs CHANGED
@@ -9461,6 +9461,12 @@ function optionsOf2(changes, properties, references2) {
9461
9461
  }
9462
9462
  options.executionMode = changes.execution_mode;
9463
9463
  }
9464
+ if (changes.paused !== void 0) {
9465
+ if (typeof changes.paused !== "boolean") {
9466
+ throw new SourceError('"paused" must be true or false.');
9467
+ }
9468
+ options.paused = changes.paused ? true : null;
9469
+ }
9464
9470
  return options;
9465
9471
  }
9466
9472
  function routeEdits(source, properties, changes) {
@@ -9539,7 +9545,7 @@ function writeWorkflowConfigFile(path, source, changes, resources = []) {
9539
9545
  // scripts/lib/runtime-build/source-adapters/workflow-config.mjs
9540
9546
  var workflowConfigAdapter = Object.freeze({
9541
9547
  contextFields: ["resources", "resource_slugs"],
9542
- writeFields: ["name", "slug", "description", "trigger", "route", "run_as", "authorizer", "execution_mode"],
9548
+ writeFields: ["name", "slug", "description", "trigger", "route", "run_as", "authorizer", "execution_mode", "paused"],
9543
9549
  accepts: isWorkflowConfigPath,
9544
9550
  identity: (data) => data.uid,
9545
9551
  read({ path, source }) {
@@ -10982,7 +10988,7 @@ async function checkSources() {
10982
10988
  if (existsSync4(DATA_FILE) && existsSync4(SDK_FILE)) {
10983
10989
  return { dataFile: DATA_FILE, sdkFile: SDK_FILE };
10984
10990
  }
10985
- const { checkData, scriptSdk } = await import("./cli-check-data-V6YHHRMU.mjs");
10991
+ const { checkData, scriptSdk } = await import("./cli-check-data-W7BPD75Y.mjs");
10986
10992
  return { data: checkData(), sdk: scriptSdk() };
10987
10993
  }
10988
10994
  function isScriptTestPath(path) {
package/dist/index.d.ts CHANGED
@@ -1081,7 +1081,16 @@ type WorkflowLabel =
1081
1081
  };
1082
1082
 
1083
1083
  /** A migration config takes this type too, but the build refuses its `slug`: a migration's file name is its identity. */
1084
- type ConfigBase = UidOption & SlugOption & WorkflowLabel & { description?: string | null };
1084
+ type ConfigBase = UidOption &
1085
+ SlugOption &
1086
+ WorkflowLabel & {
1087
+ description?: string | null;
1088
+ /**
1089
+ * A paused workflow deploys, but its route, its trigger, and a manual run
1090
+ * do not start it. The Pause control of the workflow editor writes it.
1091
+ */
1092
+ paused?: boolean;
1093
+ };
1085
1094
 
1086
1095
  /**
1087
1096
  * How a manual or request workflow runs. `'sync'` (the default) runs the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/cli",
3
- "version": "0.42.6",
3
+ "version": "0.42.7",
4
4
  "description": "The diagonal CLI and the configuration helpers for file-based Diagonal workspaces.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
@@ -51,8 +51,8 @@
51
51
  "bun": "1.4.4"
52
52
  },
53
53
  "optionalDependencies": {
54
- "@diagonal-hq/workflow-script-compiler-darwin-arm64": "0.1.0-hdb4ecfdc4137",
55
- "@diagonal-hq/workflow-script-compiler-linux-x64": "0.1.0-hdb4ecfdc4137",
56
- "@diagonal-hq/workflow-script-compiler-linux-arm64": "0.1.0-hdb4ecfdc4137"
54
+ "@diagonal-hq/workflow-script-compiler-darwin-arm64": "0.1.0-h407f7bfa6c17",
55
+ "@diagonal-hq/workflow-script-compiler-linux-x64": "0.1.0-h407f7bfa6c17",
56
+ "@diagonal-hq/workflow-script-compiler-linux-arm64": "0.1.0-h407f7bfa6c17"
57
57
  }
58
58
  }