@wspc/cli 0.1.12 → 0.1.13

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.js CHANGED
@@ -1520,9 +1520,9 @@ function createConsistencyFetch(opts) {
1520
1520
  }
1521
1521
 
1522
1522
  // src/version.ts
1523
- var VERSION = "0.1.12";
1523
+ var VERSION = "0.1.13";
1524
1524
  var SPEC_SHA = "bec760cd";
1525
- var SPEC_FETCHED_AT = "2026-07-08T02:10:53.728Z";
1525
+ var SPEC_FETCHED_AT = "2026-07-08T04:52:19.152Z";
1526
1526
  var API_BASE = "https://api.wspc.ai";
1527
1527
 
1528
1528
  // src/index.ts
@@ -6627,7 +6627,14 @@ async function runDriveWatch(root, options = {}) {
6627
6627
  const runSync = options.runSync ?? runDriveSyncOnce;
6628
6628
  const debounceMs = options.debounceMs ?? 500;
6629
6629
  const remoteDebounceMs = options.remoteDebounceMs ?? 2e3;
6630
- const emit = options.onEvent ?? ((event) => render({ kind: "drive_watch", display: { shape: "object" } }, event));
6630
+ const emit = options.onEvent ?? ((event) => {
6631
+ if (shouldOutputJson()) {
6632
+ process.stdout.write(`${JSON.stringify(event)}
6633
+ `);
6634
+ return;
6635
+ }
6636
+ render({ kind: "drive_watch", display: { shape: "object" } }, event);
6637
+ });
6631
6638
  let debounceTimer;
6632
6639
  let debounceDeadlineMs;
6633
6640
  let retryTimer;