@revoengine/cli 1.0.34 → 1.0.35

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.35 — 2026-11-02
4
+
5
+ ### Component validation deadlines
6
+
7
+ - Allow component creation and reviewed source preview/save requests to wait up to ten minutes, including cold Sandbox startup.
8
+ - Extend Node fetch's response-header and body waiting limits for these requests while preserving the configured HTTP dispatcher, proxy/TLS policy, mutation tokens, version guards and redirect rejection.
9
+ - Retain the existing mutation retry policy. A timeout does not prove whether a save reached the server; inspect current state before repeating a write.
10
+ - Use with the matching API/Sandbox update for the longer server-side budget.
11
+
3
12
  ## 1.0.34 — 2026-10-30
4
13
 
5
14
  ### Destination property preservation
package/README.md CHANGED
@@ -10,9 +10,9 @@ The CLI has three main capabilities:
10
10
  2. **Project migration** — plan, run, and verify a direct migration between two saved projects with `--from` and `--to`.
11
11
  3. **Resource synchronization** — work with one supported resource family through its dedicated `pull`, `plan`, and `push` commands.
12
12
 
13
- ## Version 1.0.34
13
+ ## Version 1.0.35
14
14
 
15
- This release adds `--omit` to preserve selected destination properties during synchronization, stricter argument validation, terminal process cleanup, opened-file workspace checks, and protection against concurrent or interrupted workspace state writes. See the [1.0.34 changelog](CHANGELOG.md) for changes and upgrade requirements. Writes with `--omit` require the matching API capability `atomicResourceUpdates`; upgrading the CLI alone does not enable it.
15
+ Component creation and reviewed source saves can wait up to ten minutes, including cold Sandbox startup. This also extends Node fetch's response-header waiting limit. Upgrade the matching API/Sandbox services to receive the longer server-side validation budget. See the [1.0.35 changelog](CHANGELOG.md). Writes with `--omit` still require the matching API capability `atomicResourceUpdates`.
16
16
 
17
17
  Studio sessions/native tests require a backend with the Studio APIs; Live Preview and recording require matching Realtime/API/Gateway and frontend support. Updating the CLI alone does not enable these server features. Existing runner registration and older terminal/browser operations remain compatible with backends that filter unsupported capabilities.
18
18
 
@@ -365,6 +365,12 @@ A normal pull protects locally changed files and does not remove source-deleted
365
365
 
366
366
  ### Review and deploy the repository
367
367
 
368
+ Component creation and source review/save requests allow up to ten minutes for
369
+ validation, including cold Sandbox startup. The client also extends Node's
370
+ response-header waiting limit for these requests. Existing mutation tokens,
371
+ version guards and redirect rejection remain required. A timeout does not confirm
372
+ whether a save reached the server; inspect current state before repeating a write.
373
+
368
374
  Commit and review the generated files. Then authenticate to the target:
369
375
 
370
376
  ```bash
@@ -1,4 +1,5 @@
1
1
  import { randomUUID } from 'node:crypto';
2
+ import { getGlobalDispatcher } from 'undici';
2
3
  import { setTimeout as waitForDelay } from 'node:timers/promises';
3
4
  import { AUTH_VALIDATION_TTL_MS, buildAuthValidationKey, DEFAULT_BASE_URL, readAuthValidationState, resolveRuntimeConfig, saveAuthValidationState, } from "./config.js";
4
5
  import { beginHttpTraceRequest, completeHttpTraceRequest, responseSize, } from "./http-trace.js";
@@ -6,6 +7,17 @@ import { currentRequestQueue, RequestQueue } from "./request-queue.js";
6
7
  import { createSpinner } from "./spinner.js";
7
8
  import { currentSyncOmitPolicy } from "./sync-omit.js";
8
9
  import { mapWithConcurrency } from "./utils.js";
10
+ const COMPONENT_VALIDATION_TIMEOUT_MS = 10 * 60_000;
11
+ // Node fetch otherwise stops waiting for response headers after five minutes.
12
+ // Delegate to the configured dispatcher so proxy/TLS policy remains authoritative.
13
+ const validationDispatcher = {
14
+ dispatch(options, handler) {
15
+ return getGlobalDispatcher().dispatch({ ...options,
16
+ headersTimeout: COMPONENT_VALIDATION_TIMEOUT_MS,
17
+ bodyTimeout: COMPONENT_VALIDATION_TIMEOUT_MS,
18
+ }, handler);
19
+ },
20
+ };
9
21
  export function isDatabaseSchemaOperation(value) {
10
22
  return Boolean(value && typeof value === 'object' && value.accepted === true
11
23
  && typeof value.jobId === 'string' && typeof value.status === 'string');
@@ -588,6 +600,7 @@ export class RevoClient {
588
600
  headers,
589
601
  body: body,
590
602
  redirect: 'manual',
603
+ ...(options.timeoutMs === COMPONENT_VALIDATION_TIMEOUT_MS ? { dispatcher: validationDispatcher } : {}),
591
604
  ...(signal ? { signal } : {}),
592
605
  });
593
606
  failedResponse = fetched;
@@ -1315,6 +1328,7 @@ export class RevoClient {
1315
1328
  return this.requestData('POST', '/api/v1/component', {
1316
1329
  body,
1317
1330
  spinnerLabel: 'Creating component',
1331
+ timeoutMs: COMPONENT_VALIDATION_TIMEOUT_MS,
1318
1332
  });
1319
1333
  }
1320
1334
  async listNativeTests(query = {}) {
@@ -1827,11 +1841,12 @@ export class RevoClient {
1827
1841
  return unwrapList(await this.listSystemRoles()).filter(isRecord);
1828
1842
  }
1829
1843
  async reviewComponentElements(componentId, body) {
1830
- return this.requestData('POST', `/api/v1/component/${componentId}/save/review`, { body });
1844
+ return this.requestData('POST', `/api/v1/component/${componentId}/save/review`, { body, timeoutMs: COMPONENT_VALIDATION_TIMEOUT_MS });
1831
1845
  }
1832
1846
  async saveComponentElements(componentId, body, expectedToken) {
1833
1847
  return this.request('POST', `/api/v1/component/${componentId}/save`, {
1834
1848
  body,
1849
+ timeoutMs: COMPONENT_VALIDATION_TIMEOUT_MS,
1835
1850
  ...(expectedToken ? { headers: { 'x-revo-mutation-review': expectedToken } } : {}),
1836
1851
  });
1837
1852
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revoengine/cli",
3
- "version": "1.0.34",
3
+ "version": "1.0.35",
4
4
  "description": "CLI package for the RevoEngine Platform API",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",
@@ -37,6 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "playwright-core": "1.64.0",
40
+ "undici": "^7.30.1",
40
41
  "ws": "^8.19.0"
41
42
  },
42
43
  "optionalDependencies": {