@riddledc/riddle-proof 0.7.85 → 0.7.86
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.cjs +5 -2
- package/dist/cli.js +5 -2
- package/dist/proof-run-engine.d.cts +3 -3
- package/dist/proof-run-engine.d.ts +3 -3
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -11256,7 +11256,7 @@ function usage() {
|
|
|
11256
11256
|
" riddle-proof-loop respond --state-path <path> --response-json <file|json|->",
|
|
11257
11257
|
" riddle-proof-loop respond --state-path <path> --decision <decision> --summary <text> [--payload-json <file|json|->]",
|
|
11258
11258
|
" riddle-proof-loop status --state-path <path>",
|
|
11259
|
-
" riddle-proof-loop run-profile --profile <file|json|-> --url <base-url> [--runner riddle] [--strict true|false] [--poll-attempts n] [--output <dir>] [--quiet]",
|
|
11259
|
+
" riddle-proof-loop run-profile --profile <file|json|-> --url <base-url> [--runner riddle] [--strict true|false] [--poll-attempts n] [--output <dir>|--output-dir <dir>] [--quiet]",
|
|
11260
11260
|
" riddle-proof-loop riddle-preview-deploy <build-dir> <label>",
|
|
11261
11261
|
" riddle-proof-loop riddle-server-preview <directory> --script-file <file> [--path /route] [--wait-for-selector selector]",
|
|
11262
11262
|
" riddle-proof-loop riddle-run-script --url <url> --script-file <file> [--viewport 1280x720] [--strict true|false]",
|
|
@@ -11318,6 +11318,9 @@ function optionNumber(options, ...keys) {
|
|
|
11318
11318
|
}
|
|
11319
11319
|
return void 0;
|
|
11320
11320
|
}
|
|
11321
|
+
function profileOutputDirOption(options) {
|
|
11322
|
+
return optionString(options, "output") ?? optionString(options, "outputDir");
|
|
11323
|
+
}
|
|
11321
11324
|
function readStdin() {
|
|
11322
11325
|
return (0, import_node_fs6.readFileSync)(0, "utf-8");
|
|
11323
11326
|
}
|
|
@@ -11935,7 +11938,7 @@ async function main() {
|
|
|
11935
11938
|
if (command === "run-profile") {
|
|
11936
11939
|
const profile = normalizeProfileForCli(options);
|
|
11937
11940
|
const result = await runProfileForCli(profile, options);
|
|
11938
|
-
writeProfileOutput(
|
|
11941
|
+
writeProfileOutput(profileOutputDirOption(options), result);
|
|
11939
11942
|
process.stdout.write(`${JSON.stringify(result, null, 2)}
|
|
11940
11943
|
`);
|
|
11941
11944
|
process.exitCode = profileStatusExitCode(profile, result.status);
|
package/dist/cli.js
CHANGED
|
@@ -44,7 +44,7 @@ function usage() {
|
|
|
44
44
|
" riddle-proof-loop respond --state-path <path> --response-json <file|json|->",
|
|
45
45
|
" riddle-proof-loop respond --state-path <path> --decision <decision> --summary <text> [--payload-json <file|json|->]",
|
|
46
46
|
" riddle-proof-loop status --state-path <path>",
|
|
47
|
-
" riddle-proof-loop run-profile --profile <file|json|-> --url <base-url> [--runner riddle] [--strict true|false] [--poll-attempts n] [--output <dir>] [--quiet]",
|
|
47
|
+
" riddle-proof-loop run-profile --profile <file|json|-> --url <base-url> [--runner riddle] [--strict true|false] [--poll-attempts n] [--output <dir>|--output-dir <dir>] [--quiet]",
|
|
48
48
|
" riddle-proof-loop riddle-preview-deploy <build-dir> <label>",
|
|
49
49
|
" riddle-proof-loop riddle-server-preview <directory> --script-file <file> [--path /route] [--wait-for-selector selector]",
|
|
50
50
|
" riddle-proof-loop riddle-run-script --url <url> --script-file <file> [--viewport 1280x720] [--strict true|false]",
|
|
@@ -106,6 +106,9 @@ function optionNumber(options, ...keys) {
|
|
|
106
106
|
}
|
|
107
107
|
return void 0;
|
|
108
108
|
}
|
|
109
|
+
function profileOutputDirOption(options) {
|
|
110
|
+
return optionString(options, "output") ?? optionString(options, "outputDir");
|
|
111
|
+
}
|
|
109
112
|
function readStdin() {
|
|
110
113
|
return readFileSync(0, "utf-8");
|
|
111
114
|
}
|
|
@@ -723,7 +726,7 @@ async function main() {
|
|
|
723
726
|
if (command === "run-profile") {
|
|
724
727
|
const profile = normalizeProfileForCli(options);
|
|
725
728
|
const result = await runProfileForCli(profile, options);
|
|
726
|
-
writeProfileOutput(
|
|
729
|
+
writeProfileOutput(profileOutputDirOption(options), result);
|
|
727
730
|
process.stdout.write(`${JSON.stringify(result, null, 2)}
|
|
728
731
|
`);
|
|
729
732
|
process.exitCode = profileStatusExitCode(profile, result.status);
|
|
@@ -292,7 +292,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
292
292
|
blocking?: boolean;
|
|
293
293
|
details?: Record<string, unknown>;
|
|
294
294
|
ok: boolean;
|
|
295
|
-
action: "
|
|
295
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
296
296
|
state_path: string;
|
|
297
297
|
stage: any;
|
|
298
298
|
summary: string;
|
|
@@ -382,7 +382,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
382
382
|
continueWithStage?: WorkflowStage | null;
|
|
383
383
|
blocking?: boolean;
|
|
384
384
|
details?: Record<string, unknown>;
|
|
385
|
-
action: "
|
|
385
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
386
386
|
state_path: string;
|
|
387
387
|
stage: any;
|
|
388
388
|
checkpoint: string;
|
|
@@ -659,7 +659,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
659
659
|
error?: undefined;
|
|
660
660
|
} | {
|
|
661
661
|
ok: boolean;
|
|
662
|
-
action: "
|
|
662
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
663
663
|
state_path: string;
|
|
664
664
|
stage: any;
|
|
665
665
|
summary: string;
|
|
@@ -292,7 +292,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
292
292
|
blocking?: boolean;
|
|
293
293
|
details?: Record<string, unknown>;
|
|
294
294
|
ok: boolean;
|
|
295
|
-
action: "
|
|
295
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
296
296
|
state_path: string;
|
|
297
297
|
stage: any;
|
|
298
298
|
summary: string;
|
|
@@ -382,7 +382,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
382
382
|
continueWithStage?: WorkflowStage | null;
|
|
383
383
|
blocking?: boolean;
|
|
384
384
|
details?: Record<string, unknown>;
|
|
385
|
-
action: "
|
|
385
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
386
386
|
state_path: string;
|
|
387
387
|
stage: any;
|
|
388
388
|
checkpoint: string;
|
|
@@ -659,7 +659,7 @@ declare function executeWorkflow(params: WorkflowParams, pluginConfig: any, reso
|
|
|
659
659
|
error?: undefined;
|
|
660
660
|
} | {
|
|
661
661
|
ok: boolean;
|
|
662
|
-
action: "
|
|
662
|
+
action: "author" | "recon" | "ship" | "implement" | "verify" | "setup" | "run";
|
|
663
663
|
state_path: string;
|
|
664
664
|
stage: any;
|
|
665
665
|
summary: string;
|