@diagonal-hq/cli 0.42.5 → 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/README.md +1 -0
- package/dist/check-data.json +1 -1
- package/dist/{cli-check-data-VZ52XV3R.mjs → cli-check-data-W7BPD75Y.mjs} +3 -3
- package/dist/cli-chunk-YSDTJ57P.mjs +87 -0
- package/dist/{cli-sdk-files.generated-CETMBWOK.mjs → cli-sdk-files.generated-KZHKLP6A.mjs} +3 -3
- package/dist/{cli-workflows-XIIQQSDG.mjs → cli-workflows-ZDUTSUQP.mjs} +1 -1
- package/dist/cli.mjs +9 -3
- package/dist/index.d.ts +10 -1
- package/dist/script-sdk.json +1 -1
- package/dist/workflow/generated/capabilities.d.ts +1 -1
- package/dist/workflow/index.d.ts +1 -1
- package/dist/workflow/input.d.ts +20 -0
- package/package.json +4 -4
- package/dist/cli-chunk-3SNILJKW.mjs +0 -87
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-
|
|
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) {
|
|
@@ -11002,7 +11008,7 @@ function holdsSkills(root, plan) {
|
|
|
11002
11008
|
async function checkCheckout(root, options) {
|
|
11003
11009
|
const sources = await checkSources();
|
|
11004
11010
|
const plan = composePackages(root);
|
|
11005
|
-
const testRunner = async () => (await import("./cli-workflows-
|
|
11011
|
+
const testRunner = async () => (await import("./cli-workflows-ZDUTSUQP.mjs")).runBuildTests;
|
|
11006
11012
|
const skillReader = async () => (await import("./cli-skill-file-XEFKCU5Y.mjs")).skillFrontMatter;
|
|
11007
11013
|
const finish = (checkoutRoot, buildPlan, answer, runTests2) => {
|
|
11008
11014
|
const run = hasScriptTests(answer) ? runTests2(checkoutRoot, answer.tests) : null;
|
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 &
|
|
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
|