@riddledc/riddle-proof 0.7.32 → 0.7.33

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 CHANGED
@@ -168,6 +168,10 @@ riddle-proof-loop run-profile \
168
168
  --output artifacts/riddle-proof/pricing
169
169
  ```
170
170
 
171
+ Hosted profile runs emit Riddle poll progress to stderr while waiting. Use
172
+ `--quiet` to suppress progress lines, or `--progress-every-ms` to tune the
173
+ heartbeat cadence for long route-inventory or workflow profiles.
174
+
171
175
  The package includes a generic starter profile at
172
176
  `examples/profiles/page-content-basic.json`; copy that shape into a repository
173
177
  profile directory and replace the selector/text checks with app-specific
package/dist/cli.cjs CHANGED
@@ -8934,7 +8934,7 @@ function usage() {
8934
8934
  " riddle-proof-loop respond --state-path <path> --response-json <file|json|->",
8935
8935
  " riddle-proof-loop respond --state-path <path> --decision <decision> --summary <text> [--payload-json <file|json|->]",
8936
8936
  " riddle-proof-loop status --state-path <path>",
8937
- " riddle-proof-loop run-profile --profile <file|json|-> --url <base-url> [--runner riddle] [--output <dir>]",
8937
+ " riddle-proof-loop run-profile --profile <file|json|-> --url <base-url> [--runner riddle] [--output <dir>] [--quiet]",
8938
8938
  " riddle-proof-loop riddle-preview-deploy <build-dir> <label>",
8939
8939
  " riddle-proof-loop riddle-server-preview <directory> --script-file <file> [--path /route] [--wait-for-selector selector]",
8940
8940
  " riddle-proof-loop riddle-run-script --url <url> --script-file <file> [--viewport 1280x720] [--strict true|false]",
@@ -9305,7 +9305,12 @@ async function runProfileForCli(profile, options) {
9305
9305
  const poll = await client.pollJob(jobId, {
9306
9306
  wait: true,
9307
9307
  attempts: optionString(options, "attempts") ? Number(optionString(options, "attempts")) : void 0,
9308
- intervalMs: optionString(options, "intervalMs") ? Number(optionString(options, "intervalMs")) : void 0
9308
+ intervalMs: optionString(options, "intervalMs") ? Number(optionString(options, "intervalMs")) : void 0,
9309
+ progressEveryMs: optionString(options, "progressEveryMs") ? Number(optionString(options, "progressEveryMs")) : void 0,
9310
+ onProgress: options.quiet !== true ? (snapshot) => {
9311
+ process.stderr.write(`${riddlePollProgressLine(snapshot)}
9312
+ `);
9313
+ } : void 0
9309
9314
  });
9310
9315
  const artifacts = collectRiddleProfileArtifactRefs(poll.artifacts);
9311
9316
  if (!poll.ok || !poll.terminal) {
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] [--output <dir>]",
47
+ " riddle-proof-loop run-profile --profile <file|json|-> --url <base-url> [--runner riddle] [--output <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]",
@@ -415,7 +415,12 @@ async function runProfileForCli(profile, options) {
415
415
  const poll = await client.pollJob(jobId, {
416
416
  wait: true,
417
417
  attempts: optionString(options, "attempts") ? Number(optionString(options, "attempts")) : void 0,
418
- intervalMs: optionString(options, "intervalMs") ? Number(optionString(options, "intervalMs")) : void 0
418
+ intervalMs: optionString(options, "intervalMs") ? Number(optionString(options, "intervalMs")) : void 0,
419
+ progressEveryMs: optionString(options, "progressEveryMs") ? Number(optionString(options, "progressEveryMs")) : void 0,
420
+ onProgress: options.quiet !== true ? (snapshot) => {
421
+ process.stderr.write(`${riddlePollProgressLine(snapshot)}
422
+ `);
423
+ } : void 0
419
424
  });
420
425
  const artifacts = collectRiddleProfileArtifactRefs(poll.artifacts);
421
426
  if (!poll.ok || !poll.terminal) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riddledc/riddle-proof",
3
- "version": "0.7.32",
3
+ "version": "0.7.33",
4
4
  "description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",