@riddledc/riddle-proof 0.7.79 → 0.7.80
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 +5 -3
- package/dist/cli.cjs +4 -1
- package/dist/cli.js +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -174,9 +174,11 @@ riddle-proof-loop run-profile \
|
|
|
174
174
|
Hosted profile runs emit Riddle poll progress to stderr while waiting. Use
|
|
175
175
|
`--quiet` to suppress progress lines, or `--progress-every-ms` to tune the
|
|
176
176
|
heartbeat cadence for long route-inventory or workflow profiles.
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
177
|
+
Hosted `run-profile` submits package-generated profile scripts with
|
|
178
|
+
`strict=false` by default because the generated runner is larger than Riddle's
|
|
179
|
+
generic inline-script warning threshold. Use `--strict=true` when you
|
|
180
|
+
deliberately want Riddle's non-critical script-safety warnings to block the run.
|
|
181
|
+
Critical script-safety violations remain blocked by Riddle either way.
|
|
180
182
|
|
|
181
183
|
The package includes a generic starter profile at
|
|
182
184
|
`examples/profiles/page-content-basic.json`; copy that shape into a repository
|
package/dist/cli.cjs
CHANGED
|
@@ -11226,6 +11226,9 @@ function optionBoolean(options, key) {
|
|
|
11226
11226
|
const flag = key.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
|
|
11227
11227
|
throw new Error(`--${flag} must be true or false.`);
|
|
11228
11228
|
}
|
|
11229
|
+
function runProfileStrictOption(options) {
|
|
11230
|
+
return optionBoolean(options, "strict") ?? false;
|
|
11231
|
+
}
|
|
11229
11232
|
function optionNumber(options, ...keys) {
|
|
11230
11233
|
for (const key of keys) {
|
|
11231
11234
|
const value = optionString(options, key);
|
|
@@ -11754,7 +11757,7 @@ async function runProfileForCli(profile, options) {
|
|
|
11754
11757
|
profile,
|
|
11755
11758
|
optionString(options, "timeout") ? Number(optionString(options, "timeout")) : void 0
|
|
11756
11759
|
),
|
|
11757
|
-
strict:
|
|
11760
|
+
strict: runProfileStrictOption(options),
|
|
11758
11761
|
sync: options.sync === true ? true : void 0
|
|
11759
11762
|
});
|
|
11760
11763
|
} catch (error) {
|
package/dist/cli.js
CHANGED
|
@@ -96,6 +96,9 @@ function optionBoolean(options, key) {
|
|
|
96
96
|
const flag = key.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);
|
|
97
97
|
throw new Error(`--${flag} must be true or false.`);
|
|
98
98
|
}
|
|
99
|
+
function runProfileStrictOption(options) {
|
|
100
|
+
return optionBoolean(options, "strict") ?? false;
|
|
101
|
+
}
|
|
99
102
|
function optionNumber(options, ...keys) {
|
|
100
103
|
for (const key of keys) {
|
|
101
104
|
const value = optionString(options, key);
|
|
@@ -624,7 +627,7 @@ async function runProfileForCli(profile, options) {
|
|
|
624
627
|
profile,
|
|
625
628
|
optionString(options, "timeout") ? Number(optionString(options, "timeout")) : void 0
|
|
626
629
|
),
|
|
627
|
-
strict:
|
|
630
|
+
strict: runProfileStrictOption(options),
|
|
628
631
|
sync: options.sync === true ? true : void 0
|
|
629
632
|
});
|
|
630
633
|
} catch (error) {
|