@revoengine/cli 1.0.30 → 1.0.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 +70 -17
- package/dist/src/automation-contract.generated.d.ts +55 -21
- package/dist/src/automation-contract.generated.js +67 -25
- package/dist/src/client.d.ts +32 -2
- package/dist/src/client.js +54 -13
- package/dist/src/commands/component.js +4 -1
- package/dist/src/commands/database-tables.js +10 -3
- package/dist/src/commands/migrate.js +2 -0
- package/dist/src/commands/terminal-browser-central-profile.d.ts +65 -0
- package/dist/src/commands/terminal-browser-central-profile.js +203 -0
- package/dist/src/commands/terminal-browser-human-input.d.ts +3 -1
- package/dist/src/commands/terminal-browser-human-input.js +3 -1
- package/dist/src/commands/terminal-browser-interaction.js +1 -1
- package/dist/src/commands/terminal-browser-live-protocol.d.ts +34 -2
- package/dist/src/commands/terminal-browser-live-protocol.js +28 -12
- package/dist/src/commands/terminal-browser-live-transport.d.ts +1 -0
- package/dist/src/commands/terminal-browser-live-transport.js +9 -5
- package/dist/src/commands/terminal-browser-live.d.ts +24 -3
- package/dist/src/commands/terminal-browser-live.js +199 -30
- package/dist/src/commands/terminal-browser-page-input.d.ts +4 -1
- package/dist/src/commands/terminal-browser-page-input.js +46 -1
- package/dist/src/commands/terminal-browser-profile-crypto.d.ts +30 -0
- package/dist/src/commands/terminal-browser-profile-crypto.js +101 -0
- package/dist/src/commands/terminal-browser-profile-import-runner.d.ts +31 -0
- package/dist/src/commands/terminal-browser-profile-import-runner.js +112 -0
- package/dist/src/commands/terminal-browser-profile-import.d.ts +28 -0
- package/dist/src/commands/terminal-browser-profile-import.js +125 -0
- package/dist/src/commands/terminal-browser-profile-import.protocol.d.ts +50 -0
- package/dist/src/commands/terminal-browser-profile-import.protocol.js +52 -0
- package/dist/src/commands/terminal-browser-profile-preferences.d.ts +1 -0
- package/dist/src/commands/terminal-browser-profile-preferences.js +16 -0
- package/dist/src/commands/terminal-browser-profile-sync.d.ts +14 -0
- package/dist/src/commands/terminal-browser-profile-sync.js +169 -0
- package/dist/src/commands/terminal-browser-profile-sync.protocol.d.ts +50 -0
- package/dist/src/commands/terminal-browser-profile-sync.protocol.js +19 -0
- package/dist/src/commands/terminal-browser-profile.d.ts +10 -1
- package/dist/src/commands/terminal-browser-profile.js +30 -4
- package/dist/src/commands/terminal-browser-recording.d.ts +39 -0
- package/dist/src/commands/terminal-browser-recording.js +74 -0
- package/dist/src/commands/terminal-browser-recording.protocol.d.ts +49 -0
- package/dist/src/commands/terminal-browser-recording.protocol.js +16 -0
- package/dist/src/commands/terminal-browser.d.ts +14 -1
- package/dist/src/commands/terminal-browser.js +98 -33
- package/dist/src/commands/terminal-output-buffer.d.ts +18 -1
- package/dist/src/commands/terminal-output-buffer.js +95 -8
- package/dist/src/commands/terminal.d.ts +3 -1
- package/dist/src/commands/terminal.js +257 -54
- package/dist/src/component-lock.js +6 -0
- package/dist/src/env-sync.js +3 -0
- package/dist/src/resource-syncs/database-table-sync.d.ts +8 -1
- package/dist/src/resource-syncs/database-table-sync.js +34 -11
- package/dist/src/sync-output.d.ts +3 -3
- package/dist/src/ui.js +1 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ The CLI has three main capabilities:
|
|
|
14
14
|
|
|
15
15
|
This release includes the complete CLI Studio session and native test commands, terminal Browser profiles, Live Preview, recording and public-page rendering, together with definition contract fixes. 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.
|
|
16
16
|
|
|
17
|
-
Runtime packages include all compiled modules, including native test workspace capture, Browser helpers and subprocess workers.
|
|
17
|
+
Runtime packages include all compiled modules, including native test workspace capture, Browser helpers and subprocess workers. Central browser-profile support requires matching API/Realtime and frontend changes; it is capability-gated independently from the published CLI version.
|
|
18
18
|
|
|
19
19
|
## Repository reconciliation
|
|
20
20
|
|
|
@@ -108,7 +108,7 @@ Terminal connection and execution metadata is also written under the CLI configu
|
|
|
108
108
|
|
|
109
109
|
The Agent terminal has independent command and network grants. Grants are ceilings; each execution frame carries the requested sandbox and `networkAccess=none|local|full`, so a Full grant does not silently widen a workspace or local-only call. Workspace commands keep writes inside the registered workspace and a private temporary directory; a workspace shell with external networking uses `workspace-network`. An explicit `unrestricted` command requests host file access without adding network access. A localhost development server must request Local network access to bind its port. macOS uses Seatbelt for workspace isolation and host plus local-only network; Linux uses `bwrap` and fails closed for shell Local access because enforceable localhost-only isolation is unavailable there. Missing isolation support fails closed. The runner requires a complete `terminal_policy_v2` execution frame from Realtime, including requested command/network modes, grant revision and optional expiry. New runners advertise `terminal_policy_selective_v1`: an increased grant takes effect on subsequent calls without disconnecting; a reduced grant stops only commands and Browser sessions no longer covered by the current grant or an unexpired temporary scope. Temporary scope expiry stops affected work and closes Browser sessions using that scope. Workspace patches and stdin for a running process are supported. A personal API key is required.
|
|
110
110
|
|
|
111
|
-
Browser actions use Playwright's Chromium headless
|
|
111
|
+
Browser actions use Playwright's full Chromium in its standard headless mode. The CLI's npm install downloads that browser into Playwright's per-user cache without requiring Python 3; a separate Chrome installation is not required. If npm scripts were disabled or the download was interrupted, reinstall the CLI with scripts enabled before using Browser. Linux hosts still need Playwright's system libraries; an administrator can install them with `npx playwright install-deps chromium`.
|
|
112
112
|
|
|
113
113
|
On macOS, workspace commands may use Unix-domain sockets only inside their own private temporary directory. This lets build tools exchange worker messages without enabling IP networking or access to workspace, other-command or host-service sockets. Local development servers still need Local network access and must bind to localhost. Ordinary process deadlines cover the whole lifetime, not startup. The runner advertises `background_shell_v1`: `terminal.start` with `background=true` and `timeout_ms=null` keeps a dev server or watcher on the existing execution ID without the ordinary lifetime timer. Status, output, stdin, PTY and cancel remain available; hiding the terminal view does not stop the process. Scope expiry, revocation, runner stop and the two-minute (120-second) disconnect grace still apply. Reuse a healthy project server or check fresh HTTP readiness after starting it.
|
|
114
114
|
|
|
@@ -141,30 +141,77 @@ web loading until upgraded and reconnected.
|
|
|
141
141
|
|
|
142
142
|
The saved `agentTerminalId` identifies the device across terminal restarts. `deviceId` is an alias. Connecting another directory with the same profile and terminal name reuses the saved device secret and registers a pending workspace under that device. Approve its access in AI Agents → Terminals → Workspaces. A running device refreshes its contract; it does not need a second runner. Ambiguous older duplicate registrations require `--terminal-id`. Services remain pinned to the device UUID and original service directory.
|
|
143
143
|
|
|
144
|
+
Current runners also negotiate `terminal_output_capture_v1` with durable resume: shell output can be retained separately (up to 1,000,000,000 bytes (decimal 1 GB) and 1,000,000 chunks / 24 hours centrally) from the bounded 100 KB execution preview, and reloaded using the same execution without running its command again. Older servers keep their existing preview behavior.
|
|
145
|
+
|
|
146
|
+
Unacknowledged shell output uses a private process-local disk spool and an ACK-driven 256 KB estimated wire window. Reconnect sends only uncommitted output; completion follows its committed ACKs. Capture quota or spool-write failure is explicitly partial and does not terminate or replay the command. The spool is removed after result acknowledgement, resume rejection, or runner shutdown; it does not recover a process after a CLI crash. The separate local runner log retains its 10 MB limit.
|
|
147
|
+
|
|
144
148
|
Current runners advertise `terminal_workspaces_v1`, `browser_control_v1`, `file_transfer_v1` and `terminal_resume_durable_v1`. When Realtime confirms durable resume support, output is retained until the server acknowledges its PostgreSQL commit; reconnect resumes the same execution from the last committed output sequence. Redis loss alone does not stop the PTY. Older servers remain compatible without advertising durable recovery. This protocol preserves a running CLI process; it does not restore processes after a CLI or machine crash. Gateway can request socket reconnect without stopping the CLI. Temporary transport/dependency failures retry and resume within two minutes (120 seconds); authentication failures and revocation stop retry. Newly installed services stop on fatal authentication and restart other failed processes. Reinstall existing services to adopt that supervisor behavior. CLI stop does not persist local processes or browser cookies. Changing workspace grant revision conservatively terminates workspace-bound work and contexts.
|
|
145
149
|
|
|
146
150
|
Browser inventory exposes its owning chat and workspace. The model can explicitly close permitted same-actor sessions/tabs to free the four-session/sixteen-tab capacity; active sessions are never silently evicted. Inventory/cleanup preserves the existing network lease. Local/full scope changes recreate the browser context and require browser workflow recovery.
|
|
147
151
|
|
|
148
|
-
#### Remember browser authentication
|
|
152
|
+
#### Remember browser authentication in Vault
|
|
149
153
|
|
|
150
|
-
|
|
154
|
+
Connect the approved workspace normally:
|
|
151
155
|
|
|
152
156
|
```bash
|
|
153
|
-
revo terminal connect --workspace "$HOME/projects/my-project" --name "Work Mac"
|
|
154
|
-
revo terminal browser-profile forget --workspace "$HOME/projects/my-project" --terminal-id <terminal-uuid> --browser-profile "AP work"
|
|
157
|
+
revo terminal connect --workspace "$HOME/projects/my-project" --name "Work Mac"
|
|
155
158
|
```
|
|
156
159
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
160
|
+
Create website profiles in Settings → Vault → Browser profiles. Assign each profile
|
|
161
|
+
to approved terminal workspaces and grant its use to selected users/groups. Sharing
|
|
162
|
+
a terminal does not share a login. Live Preview selects assigned profiles; model
|
|
163
|
+
actions discover only authorized metadata and use explicit profile/session refs.
|
|
164
|
+
Each profile opens an independent context with cookies, localStorage and IndexedDB.
|
|
165
|
+
A busy profile cannot be stolen.
|
|
166
|
+
|
|
167
|
+
The v2 runner restores central profiles in memory on macOS, Linux and service
|
|
168
|
+
runners without a Keychain dependency. Revo wraps each profile data key with its
|
|
169
|
+
Vault deployment key and seals only that profile key to the current runner
|
|
170
|
+
connection. State uploads are encrypted, revision-bound and verified before commit.
|
|
171
|
+
A failed save retains the last confirmed cloud revision. Revocation and network
|
|
172
|
+
expiry close affected contexts; uncertain writes are not silently replayed.
|
|
173
|
+
The snapshot captures website-owned authentication state, not entered form values.
|
|
174
|
+
A saved revision does not certify successful login or extend provider session life.
|
|
175
|
+
|
|
176
|
+
The obsolete `terminal connect --browser-profile` flag is rejected. Existing local
|
|
177
|
+
encrypted snapshots remain untouched unless you explicitly migrate them through
|
|
178
|
+
Live Preview → Browser settings → Import an older local profile on an updated
|
|
179
|
+
foreground macOS runner. This creates a new private Vault profile assigned to the
|
|
180
|
+
source workspace. The source is kept by default; optional cleanup runs only after
|
|
181
|
+
the uploaded version is downloaded, decrypted and restored successfully in native
|
|
182
|
+
Chromium. Status checks never replay an import. Linux and service runners restore
|
|
183
|
+
central profiles without the legacy-import capability or a Keychain dependency.
|
|
184
|
+
The legacy `terminal browser-profile forget`
|
|
185
|
+
command remains available for explicitly removing a local snapshot and its Keychain
|
|
186
|
+
key; it does not revoke the website's server-side login.
|
|
187
|
+
|
|
188
|
+
Live Preview uses a separate authenticated outbound Realtime WebSocket. It streams the active tab and SSO popups as JPEG frames at a configurable 5–60 frames per second, with CSS viewport and image geometry; it opens no local server or CDP port. During human takeover, static pages receive a genuine viewport refresh every two seconds so the latest displayed frame remains usable after reading; observation expiry and authorization checks remain enforced. Read-only preview can be closed while the model continues. Takeover pauses all model browser actions for the entire chat browser session. Human input is encrypted to the current runner connection, scoped to the actor, chat, workspace, session, control epoch and fresh observation, and is never replayed after a disconnect. Private takeover is the default. Release clears secret-like inputs, checkpoints the opted-in profile and returns a fresh observation before the model resumes. A disconnect during takeover leaves the browser blocked until explicit reconnection and release. Connected takeover prevents idle cleanup but never extends network permission expiry.
|
|
189
|
+
|
|
190
|
+
Coordinates require a recent observation of the active tab. Navigation, tab changes, resize, scrolling and interaction invalidate previous geometry; media frames alone do not invalidate the model's recent screenshot. Model text/key input rejects a focused secret control and must use the secure credential flow. Central profile selection opens another context and preserves existing tabs. Profile owner controls in Vault clear or remove saved authentication and manage use grants, workspace assignments and active sessions. A grantee cannot expand profile access.
|
|
191
|
+
|
|
192
|
+
Recording is optional and off by default. It can be enabled in read-only preview to capture model work; private human/authentication phases reject a new recording, and Stop remains available. Explicit public/demo recording uses Playwright's native WebM segments and can continue while the model works after release. Private takeover and secret-focused input stop the active recording before typing; resuming public work starts another segment. Input text and action labels are not added to video or runner logs. Local recordings are stored in private directories with private file permissions; Storage or Both additionally requires current Full network access and a separately authorized upload descriptor. Recordings and browser grants have separate lifetimes. Central v2 profiles work without an OS credential store; older runners are capability-gated.
|
|
193
|
+
|
|
194
|
+
Live Preview uses full Chromium in its standard headless mode. The CLI installation
|
|
195
|
+
installs the matching browser; existing installations can run `npx playwright-core
|
|
196
|
+
install chromium` from their CLI package directory after upgrading. Workspace browser
|
|
197
|
+
settings are managed in Revo: preview 5–60 FPS, viewport size, recording destination
|
|
198
|
+
and explicit Always record. A `browser_recording_session_v1` runner applies profile
|
|
199
|
+
defaults (or workspace defaults when inherited) before the first native navigation.
|
|
200
|
+
Native WebM encoding uses the selected viewport and 5–60 FPS setting. Verify the
|
|
201
|
+
finalized file before sharing it: encoded FPS does not guarantee that every frame
|
|
202
|
+
contains a distinct browser update. Updated CLI capture requires its matching Chromium.
|
|
203
|
+
Always record starts without opening Live Preview; Storage/Both uploads completed
|
|
204
|
+
30-second WebM segments in the background. Live viewing remains on demand, and
|
|
205
|
+
closing an observe preview does not stop either automatic or manually started
|
|
206
|
+
recording. A normal browser-session close flushes the last segment. Private control
|
|
207
|
+
and authentication pause recording; Finish & resume reports the resumed segment.
|
|
208
|
+
Storage destinations are resolved by Revo: personal Assistant recordings use the actor’s Private Storage; autonomous-Agent recordings use the Agent’s linked workspace and its access rules. The terminal owner and CLI connect flags do not select this destination. Local-device recording paths remain unchanged.
|
|
209
|
+
|
|
210
|
+
Saved Revo recordings appear in the preview Sources list even after the browser
|
|
211
|
+
session closes. Connection loss, expired/revoked scope or a failed upload stops
|
|
212
|
+
background recording; failed local segments are retained without blindly replaying
|
|
213
|
+
the PUT. Matching API/Realtime and an upgraded runner are required. Provider challenges may
|
|
214
|
+
still reject automated browsing; no spoofed headers or challenge bypass is enabled.
|
|
168
215
|
|
|
169
216
|
`forget` requires the profile's workspace and selected terminal, authenticates the actor with the current API profile, and deletes its snapshot and Keychain key. It rejects a profile currently in use; close that chat's browser or stop its runner first. Forgetting local state does not revoke the website's server-side sessions. An ordinary browser close or terminal disconnect retains the opted-in snapshot; revoked grants cannot open a new browser until access is approved again. Use `forget` when the stored login should be removed.
|
|
170
217
|
|
|
@@ -261,6 +308,8 @@ Subsequent resource synchronization creates `.revoengine/revo.lock.json` baselin
|
|
|
261
308
|
|
|
262
309
|
Use `revo project update` to refresh an existing project. When the RevoEngine workspace is nested, pass its path, for example `revo project init ./backend`.
|
|
263
310
|
|
|
311
|
+
Migrated JS/TS libraries contain a permanent `@default` element and explicit named exports. Its source remains editable. Plan and push reject omitting an existing target default, including forced pushes and environment migration; refresh the library from the target and reconcile local changes before deployment. The CLI preserves the target default element ID when saving source.
|
|
312
|
+
|
|
264
313
|
Stable Keys are the durable identity used across instances. UUIDs and versions remain instance-local and are not used to match portable resources. Before the first migration, inspect and apply missing keys on the source:
|
|
265
314
|
|
|
266
315
|
```bash
|
|
@@ -544,6 +593,10 @@ RAW_SQL validation sends `take: 0` without an `output` overlay, using the backen
|
|
|
544
593
|
|
|
545
594
|
Table Stable Keys match resources across instances; a table name is the physical SQL name. Dedicated `database-tables plan/push` leaves table renames and column removals for manual handling, even with `--force`. Repository `plan/deploy` and named `migrate` use a broader source-wins policy: they can rename tables and apply supported column changes, while column removal requires `--force`. Table kind, partition parent or bounds, unsupported array changes, and ambiguous identities remain blocked. Every accepted write needs portable readback verification before its lock baseline advances.
|
|
546
595
|
|
|
596
|
+
Durable Database Operations require Platform 1.7.0. Older instances returning a completed Table synchronously remain supported for ordinary schema writes. Schema writes use durable Database Operations when the target instance supports them. The CLI submits with `async=true` and a UUID `Idempotency-Key`, then waits for `FINISHED` and reads the resource back before advancing the baseline. Transport retries reuse the exact key, body and optimistic base version. A disconnected client does not cancel accepted DDL. Operations remain visible under Database Operations; a lost status/readback reports the operation ID and leaves the baseline unchanged. Full `deploy` and named migration wait before creating dependent partitions, Views, Components or other consumers.
|
|
597
|
+
|
|
598
|
+
For admission only, use one explicit table: `revo database-tables push 'Sales/Orders#1234abcd' --yes --async --json`. The result includes `status: "accepted"` and `operation: { accepted, jobId, status }`; no success/readback baseline is claimed. `--async` cannot be combined with `--all` or pruning, and full deploy rejects it. Inspect the receipt with `revo request GET /api/v1/databases/operations/<jobId>`; after `FINISHED`, rerun normal push to verify and reconcile the baseline. For a retry across CLI invocations, supply the same `--idempotency-key <uuid>` and unchanged request/base version. Standard index builds and heavy ALTER TABLE can block writes; asynchronous execution does not remove PostgreSQL DDL locks.
|
|
599
|
+
|
|
547
600
|
Root-table columns can carry unique, non-empty Stable Keys in `definition[].metadata.<stable-key-name>`. `metadata plan/apply` can backfill missing root-column keys; partitions inherit the root definition. Existing column keys are immutable even with `--force`, and malformed or duplicate keys block backfill. A shared key matches columns before exact-name fallback, and writes attach the live target column ID. Source column IDs and reserved `__*` metadata never become portable column identity.
|
|
548
601
|
|
|
549
602
|
Dedicated push allows reviewed key-matched changes to existing columns, including name, type, default, nullability, array, primary-key, unique, and index fields. These operations can scan, lock, rewrite, or validate live data. Exact-name matching remains a fallback for safe presentation changes and an ordinary nullable column addition; it never guesses a rename. A required, defaulted, indexed, unique, or primary-key addition needs a unique column Stable Key. Structural changes to an existing unkeyed column and unkeyed operational additions remain manual. Active Database Views block dependent column renames, removals, type changes, and array changes at plan time and again before the write.
|
|
@@ -163,6 +163,14 @@ export declare const requestContracts: {
|
|
|
163
163
|
readonly type: "integer";
|
|
164
164
|
readonly maximum: 1024;
|
|
165
165
|
};
|
|
166
|
+
readonly responseMode: {
|
|
167
|
+
readonly nullable: true;
|
|
168
|
+
readonly enum: readonly ["http", "sse"];
|
|
169
|
+
};
|
|
170
|
+
readonly sse: {
|
|
171
|
+
readonly $ref: "#/components/schemas/EndpointSseDto";
|
|
172
|
+
readonly nullable: true;
|
|
173
|
+
};
|
|
166
174
|
readonly input: {
|
|
167
175
|
readonly nullable: true;
|
|
168
176
|
readonly type: "object";
|
|
@@ -237,6 +245,37 @@ export declare const requestContracts: {
|
|
|
237
245
|
};
|
|
238
246
|
readonly additionalProperties: false;
|
|
239
247
|
};
|
|
248
|
+
readonly EndpointSseDto: {
|
|
249
|
+
readonly type: "object";
|
|
250
|
+
readonly properties: {
|
|
251
|
+
readonly disconnect: {
|
|
252
|
+
readonly nullable: true;
|
|
253
|
+
readonly enum: readonly ["cancel", "continue", "continue-and-notify"];
|
|
254
|
+
};
|
|
255
|
+
readonly resultEvent: {
|
|
256
|
+
readonly nullable: true;
|
|
257
|
+
readonly type: "string";
|
|
258
|
+
readonly maxLength: 1024;
|
|
259
|
+
readonly pattern: "^[^\\r\\n\\0]+$";
|
|
260
|
+
readonly patternFlags: "";
|
|
261
|
+
};
|
|
262
|
+
readonly errorEvent: {
|
|
263
|
+
readonly nullable: true;
|
|
264
|
+
readonly type: "string";
|
|
265
|
+
readonly maxLength: 1024;
|
|
266
|
+
readonly pattern: "^[^\\r\\n\\0]+$";
|
|
267
|
+
readonly patternFlags: "";
|
|
268
|
+
};
|
|
269
|
+
readonly doneEvent: {
|
|
270
|
+
readonly nullable: true;
|
|
271
|
+
readonly type: "string";
|
|
272
|
+
readonly maxLength: 1024;
|
|
273
|
+
readonly pattern: "^[^\\r\\n\\0]+$";
|
|
274
|
+
readonly patternFlags: "";
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
readonly additionalProperties: false;
|
|
278
|
+
};
|
|
240
279
|
readonly JobTemplateRequestDto: {
|
|
241
280
|
readonly type: "object";
|
|
242
281
|
readonly properties: {
|
|
@@ -523,6 +562,12 @@ export declare const requestContracts: {
|
|
|
523
562
|
readonly UpdateComponentDto: {
|
|
524
563
|
readonly type: "object";
|
|
525
564
|
readonly properties: {
|
|
565
|
+
readonly testConfig: {
|
|
566
|
+
readonly allOf: readonly [{
|
|
567
|
+
readonly $ref: "#/components/schemas/ComponentTestConfigDto";
|
|
568
|
+
}];
|
|
569
|
+
readonly nullable: true;
|
|
570
|
+
};
|
|
526
571
|
readonly name: {
|
|
527
572
|
readonly nullable: true;
|
|
528
573
|
readonly type: "string";
|
|
@@ -548,12 +593,6 @@ export declare const requestContracts: {
|
|
|
548
593
|
readonly version: {
|
|
549
594
|
readonly type: "integer";
|
|
550
595
|
};
|
|
551
|
-
readonly testConfig: {
|
|
552
|
-
readonly allOf: readonly [{
|
|
553
|
-
readonly $ref: "#/components/schemas/ComponentTestConfigDto";
|
|
554
|
-
}];
|
|
555
|
-
readonly nullable: true;
|
|
556
|
-
};
|
|
557
596
|
};
|
|
558
597
|
readonly required: readonly ["version"];
|
|
559
598
|
readonly additionalProperties: false;
|
|
@@ -655,10 +694,10 @@ export declare const requestContractDefaults: {
|
|
|
655
694
|
readonly maxBytes: 1048576;
|
|
656
695
|
};
|
|
657
696
|
readonly componentElements: {
|
|
658
|
-
readonly lowCodeTypes: readonly ["CODE_JS", "CODE_JS_LIB", "CODE_TS", "
|
|
697
|
+
readonly lowCodeTypes: readonly ["CODE_JS", "CODE_JS_LIB", "CODE_TS", "CODE_JS_TEST", "CODE_TS_TEST", "CODE_TS_LIB"];
|
|
659
698
|
readonly libraryTypes: readonly ["CODE_JS_LIB", "CODE_TS_LIB"];
|
|
660
699
|
readonly defaultLibraryKey: "@default";
|
|
661
|
-
readonly reservedKeys: readonly ["_", "api", "arguments", "as", "async", "await", "boolean", "break", "case", "catch", "class", "const", "constructor", "continue", "debugger", "declare", "default", "delete", "do", "else", "enum", "eval", "export", "extends", "false", "finally", "for", "from", "function", "get", "global", "if", "implements", "import", "in", "instance", "instanceof", "interface", "let", "lib", "libs", "module", "namespace", "never", "new", "null", "number", "of", "package", "private", "protected", "provider", "public", "r", "readonly", "require", "return", "revo", "revong", "set", "static", "string", "super", "switch", "symbol", "this", "throw", "true", "try", "type", "typeof", "undefined", "unique", "unknown", "var", "void", "while", "with", "yield"];
|
|
700
|
+
readonly reservedKeys: readonly ["_", "api", "arguments", "as", "async", "await", "boolean", "break", "case", "catch", "class", "const", "constructor", "continue", "debugger", "declare", "default", "delete", "do", "else", "enum", "eval", "export", "extends", "false", "finally", "for", "from", "function", "get", "global", "if", "implements", "import", "in", "instance", "instanceof", "interface", "let", "lib", "libs", "module", "namespace", "never", "new", "null", "number", "of", "package", "private", "protected", "provider", "public", "r", "readonly", "require", "return", "revo", "revong", "set", "static", "string", "super", "switch", "symbol", "this", "test", "throw", "true", "try", "type", "typeof", "undefined", "unique", "unknown", "var", "void", "while", "with", "yield"];
|
|
662
701
|
readonly identifierPattern: {
|
|
663
702
|
readonly pattern: "^[A-Za-z_$][A-Za-z0-9_$]*$";
|
|
664
703
|
readonly patternFlags: "";
|
|
@@ -698,17 +737,17 @@ export declare const requestContractSemanticSources: {
|
|
|
698
737
|
readonly "packages/platform-shared/src/utils/job-retry-policy.util.ts#normalizeJobRetryPolicy": "facef84884b5b4311af06bfb4469f071ff42a4bca067b6d9092d4f6571e8ee86";
|
|
699
738
|
readonly "packages/platform-shared/src/utils/job-retry-policy.util.ts#assertJobRetryPolicyValid": "6511ccafc15233a4ffe4e024f13e6c0e5c9d8a53c261ecc571300495afd804cf";
|
|
700
739
|
readonly "packages/domain/src/dto/components/component.validator.ts#validateEndpointGuardSemantics": "fd885b48c2990e47d1f05965af044aef8e2256da5fa4a86d1248967b04a3fd1e";
|
|
701
|
-
readonly "apps/api/src/modules/endpoints/endpoint.service.ts#create": "
|
|
702
|
-
readonly "apps/api/src/modules/endpoints/endpoint.service.ts#update": "
|
|
740
|
+
readonly "apps/api/src/modules/endpoints/endpoint.service.ts#create": "cb10fc198892423088d396acd09618d8c64504a57fac0df3a892d57993913067";
|
|
741
|
+
readonly "apps/api/src/modules/endpoints/endpoint.service.ts#update": "c1a0e9d467bd46e90ac833106b101011cfc722548d6b739497eb6e8cbb8f8ffa";
|
|
703
742
|
readonly "apps/api/src/modules/endpoints/endpoint.service.ts#validateEndpointOptions": "07401218669a87a9488b0aeb59f15b8d51341a172fb346ff83d38ed563a2988f";
|
|
704
743
|
readonly "apps/api/src/modules/endpoints/endpoint.service.ts#applyEndpointOptionDefaults": "990c27ae925b613215601c215a6e38f6ecb4e2b34b77d6e2819f0921d4e56230";
|
|
705
744
|
readonly "apps/api/src/modules/automation/jobs.service.ts#createJobTemplate": "1513bad8634fdf6abcca52f0041044512b3e53b3e7451f1b443f7e79fc026b01";
|
|
706
745
|
readonly "apps/api/src/modules/automation/jobs.service.ts#update": "f11808497fa36a7965b496314e1255920945df365ee62aba810612bf6b2cd30c";
|
|
707
746
|
readonly "packages/platform-shared/src/services/job.scheduler.service.ts#resolveTemplateInputs": "a9a4cc5df4627abf7ee2d2df7f2494d290292a15f4889a5f07a9de104ee33d9f";
|
|
708
|
-
readonly "packages/domain/src/dto/components/component-element-key.const.ts#isLowCodeComponentType": "
|
|
747
|
+
readonly "packages/domain/src/dto/components/component-element-key.const.ts#isLowCodeComponentType": "4918470ef562727becb8c97c5afb7761a49734ecd21a6d3d5436576dbd10a6da";
|
|
709
748
|
readonly "packages/domain/src/dto/components/component-element-key.const.ts#isDefaultLibraryElement": "4faa356b91be5c44ebe3d442b6da26088d6d35d2db5fb073e1103165431cee48";
|
|
710
749
|
readonly "apps/api/src/modules/components/component.service.ts#assertComponentElementsSize": "30b14e4c7a1c62b4061aa13b1476d815002bf3273b4129551dde9b9a45bb87ca";
|
|
711
|
-
readonly "apps/api/src/modules/components/component.service.ts#validateElements": "
|
|
750
|
+
readonly "apps/api/src/modules/components/component.service.ts#validateElements": "57b292450bfdd3d26c11b4b4f12160848f4983e4b5f74850aca69b92fa2b751c";
|
|
712
751
|
readonly "packages/execution-core/src/modules/@core/services/virtualization.service.ts#requestedMemoryLimit": "ca32691eb31e1bf5d17d80d56861bb73fa698b6f08ae047ab48a1a4927594fe4";
|
|
713
752
|
readonly "packages/platform-shared/src/utils/custom-node-component.util.ts#normalizeCustomNodeElementPath": "486eb7ca53b95d7b49de4735d5b5ca8f15dc994852eeff0009d8a72189474455";
|
|
714
753
|
readonly "packages/platform-shared/src/utils/custom-node-component.util.ts#hasExportedCustomNodeInit": "9979558e29219c2545a11b20924b14401aef26df99d251efe261f0447aebd98b";
|
|
@@ -717,7 +756,8 @@ export declare const requestContractSourceProvenance: {
|
|
|
717
756
|
readonly main: {
|
|
718
757
|
readonly "packages/domain/src/dto/automation/endpoint.template.request.dto.ts#EndpointRequestDto": "45a1a84e200b2cdf9b44051fe36cb7bda1b577a0f5bbcc88942764336a6d7302";
|
|
719
758
|
readonly "packages/domain/src/dto/automation/update.api.template.request.dto.ts#UpdateEndpointRequestDto": "20ee0c9afbfa594f189ead2b751aa00b6003efe0b70c5e1158ee78c1e0d29567";
|
|
720
|
-
readonly "packages/domain/src/dto/automation/endpoint.template.request.dto.ts#EndpointOptionsDto": "
|
|
759
|
+
readonly "packages/domain/src/dto/automation/endpoint.template.request.dto.ts#EndpointOptionsDto": "acb07cc1e2c80d1721150691ea185eb3fa2f255a0833749973bf8175d85d9a32";
|
|
760
|
+
readonly "packages/domain/src/dto/automation/endpoint.sse.dto.ts#EndpointSseDto": "960d56ebb300ded00f61f1318522c010135675e0f32a8084fb3e9b16a1c20ecc";
|
|
721
761
|
readonly "packages/domain/src/dto/automation/job.template.request.dto.ts#JobTemplateRequestDto": "c47123206c187f0e16b08d7033ed9c455932f2e78e34455577663eb09410559d";
|
|
722
762
|
readonly "packages/domain/src/dto/automation/update.job.template.dto.ts#UpdateJobTemplate": "0f79fefc76e749a331b5c848b9dcd6061e7dc247c2094dd975d7d2fe9a101c08";
|
|
723
763
|
readonly "packages/domain/src/dto/automation/run.options.dto.ts#JobOptionsDto": "6e8f3f4b7aa6d8f38bc9227ced3158e4697031e68c78be9ea0e24e5af29e37d3";
|
|
@@ -725,18 +765,12 @@ export declare const requestContractSourceProvenance: {
|
|
|
725
765
|
readonly "packages/domain/src/dto/automation/run.options.dto.ts#RetryJobDto": "e42fcd447fe111bdf2da20ad42654e536a01d566f33a1d8f52ec1bb0bd1ee8b1";
|
|
726
766
|
readonly "packages/domain/src/dto/automation/runtime.execution.policy.dto.ts#RuntimeExecutionPolicyDto": "9978ee21a9b7da26c93a4e1516dfc319166a2b55520edee9319d17922b375474";
|
|
727
767
|
readonly "packages/domain/src/dto/automation/runtime.execution.policy.dto.ts#RuntimeJobExecutionPolicyDto": "d900a693362a9de02839e2ae959c4e8ac2ac8e0206a4cbe69e889a3636793d23";
|
|
728
|
-
readonly "packages/domain/src/dto/components/update.component.dto.ts#UpdateComponentDto": "
|
|
768
|
+
readonly "packages/domain/src/dto/components/update.component.dto.ts#UpdateComponentDto": "bac5c210c38eb230ae6ca2b42428956ea1c2065ffc947c40478152098a50e673";
|
|
729
769
|
readonly "packages/domain/src/dto/components/component.element.dto.ts#ComponentElementsDto": "4aa2ccd5613c116213525b0c686060973f657e7b81bed7362d925958d829c527";
|
|
730
|
-
};
|
|
731
|
-
readonly studioOverlay: {
|
|
732
|
-
readonly "packages/domain/src/dto/components/update.component.dto.ts": "afce9903cf51c6f6cb670b9c2be15e6e6a2c6d842b4155966c26c4f82106ee2a";
|
|
733
|
-
readonly "packages/domain/src/dto/components/component.test-config.dto.ts": "7d52ad25cd536115d10024f11ce101c21d1070f7ddb2da49a014a53ca40c2b74";
|
|
734
|
-
readonly "packages/domain/src/dto/components/component-element-key.const.ts": "270b1198d0538b1d0e3b74912185d016075e21900c04e7a79747f9b7199919f6";
|
|
735
|
-
readonly "packages/domain/src/enum/component.element.type.enum.ts": "898f455e0512063de81bda9eeb9e9fb4f7719dc66de172a1d61caaac9baf6f66";
|
|
736
|
-
readonly "packages/domain/src/dto/components/update.component.dto.ts#UpdateComponentDto": "f54a535edf919df5ff1d6e3653a8df9c54ff51eb766a131ccdf6592291b83146";
|
|
737
770
|
readonly "packages/domain/src/dto/components/component.test-config.dto.ts#ComponentTestConfigDto": "bd160d9217d45584cd7ab29680edef807d8a56fa61283000e1a3db88b8d74d19";
|
|
738
771
|
readonly "apps/api/src/modules/components/component.service.ts#assertNativeTestConfiguration": "f2089642a94765e9f6168fcf39204c18a8585cdb377ada3ed98f53b2c21aae0c";
|
|
739
772
|
readonly "packages/domain/src/dto/components/component-element-key.const.ts#COMPONENT_ELEMENT_RESERVED_KEYS": "ef9367438b70f78facd959c66002f51e3b035b5b23594a7850d3d86bf75ea4e9";
|
|
740
773
|
readonly "packages/domain/src/dto/components/component-element-key.const.ts#COMPONENT_ELEMENT_JS_IDENTIFIER_PATTERN": "9d2b9a943361651239e3730e29cc11e0e204d46f3b8f03f69a6bef38c1754c7c";
|
|
741
774
|
};
|
|
775
|
+
readonly studioOverlay: {};
|
|
742
776
|
};
|
|
@@ -215,6 +215,17 @@ export const requestContracts = {
|
|
|
215
215
|
"type": "integer",
|
|
216
216
|
"maximum": 1024
|
|
217
217
|
},
|
|
218
|
+
"responseMode": {
|
|
219
|
+
"nullable": true,
|
|
220
|
+
"enum": [
|
|
221
|
+
"http",
|
|
222
|
+
"sse"
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
"sse": {
|
|
226
|
+
"$ref": "#/components/schemas/EndpointSseDto",
|
|
227
|
+
"nullable": true
|
|
228
|
+
},
|
|
218
229
|
"input": {
|
|
219
230
|
"nullable": true,
|
|
220
231
|
"type": "object"
|
|
@@ -289,6 +300,41 @@ export const requestContracts = {
|
|
|
289
300
|
},
|
|
290
301
|
"additionalProperties": false
|
|
291
302
|
},
|
|
303
|
+
"EndpointSseDto": {
|
|
304
|
+
"type": "object",
|
|
305
|
+
"properties": {
|
|
306
|
+
"disconnect": {
|
|
307
|
+
"nullable": true,
|
|
308
|
+
"enum": [
|
|
309
|
+
"cancel",
|
|
310
|
+
"continue",
|
|
311
|
+
"continue-and-notify"
|
|
312
|
+
]
|
|
313
|
+
},
|
|
314
|
+
"resultEvent": {
|
|
315
|
+
"nullable": true,
|
|
316
|
+
"type": "string",
|
|
317
|
+
"maxLength": 1024,
|
|
318
|
+
"pattern": "^[^\\r\\n\\0]+$",
|
|
319
|
+
"patternFlags": ""
|
|
320
|
+
},
|
|
321
|
+
"errorEvent": {
|
|
322
|
+
"nullable": true,
|
|
323
|
+
"type": "string",
|
|
324
|
+
"maxLength": 1024,
|
|
325
|
+
"pattern": "^[^\\r\\n\\0]+$",
|
|
326
|
+
"patternFlags": ""
|
|
327
|
+
},
|
|
328
|
+
"doneEvent": {
|
|
329
|
+
"nullable": true,
|
|
330
|
+
"type": "string",
|
|
331
|
+
"maxLength": 1024,
|
|
332
|
+
"pattern": "^[^\\r\\n\\0]+$",
|
|
333
|
+
"patternFlags": ""
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"additionalProperties": false
|
|
337
|
+
},
|
|
292
338
|
"JobTemplateRequestDto": {
|
|
293
339
|
"type": "object",
|
|
294
340
|
"properties": {
|
|
@@ -608,6 +654,14 @@ export const requestContracts = {
|
|
|
608
654
|
"UpdateComponentDto": {
|
|
609
655
|
"type": "object",
|
|
610
656
|
"properties": {
|
|
657
|
+
"testConfig": {
|
|
658
|
+
"allOf": [
|
|
659
|
+
{
|
|
660
|
+
"$ref": "#/components/schemas/ComponentTestConfigDto"
|
|
661
|
+
}
|
|
662
|
+
],
|
|
663
|
+
"nullable": true
|
|
664
|
+
},
|
|
611
665
|
"name": {
|
|
612
666
|
"nullable": true,
|
|
613
667
|
"type": "string",
|
|
@@ -632,14 +686,6 @@ export const requestContracts = {
|
|
|
632
686
|
},
|
|
633
687
|
"version": {
|
|
634
688
|
"type": "integer"
|
|
635
|
-
},
|
|
636
|
-
"testConfig": {
|
|
637
|
-
"allOf": [
|
|
638
|
-
{
|
|
639
|
-
"$ref": "#/components/schemas/ComponentTestConfigDto"
|
|
640
|
-
}
|
|
641
|
-
],
|
|
642
|
-
"nullable": true
|
|
643
689
|
}
|
|
644
690
|
},
|
|
645
691
|
"required": [
|
|
@@ -761,9 +807,9 @@ export const requestContractDefaults = {
|
|
|
761
807
|
"CODE_JS",
|
|
762
808
|
"CODE_JS_LIB",
|
|
763
809
|
"CODE_TS",
|
|
764
|
-
"CODE_TS_LIB",
|
|
765
810
|
"CODE_JS_TEST",
|
|
766
|
-
"CODE_TS_TEST"
|
|
811
|
+
"CODE_TS_TEST",
|
|
812
|
+
"CODE_TS_LIB"
|
|
767
813
|
],
|
|
768
814
|
"libraryTypes": [
|
|
769
815
|
"CODE_JS_LIB",
|
|
@@ -837,6 +883,7 @@ export const requestContractDefaults = {
|
|
|
837
883
|
"switch",
|
|
838
884
|
"symbol",
|
|
839
885
|
"this",
|
|
886
|
+
"test",
|
|
840
887
|
"throw",
|
|
841
888
|
"true",
|
|
842
889
|
"try",
|
|
@@ -977,17 +1024,17 @@ export const requestContractSemanticSources = {
|
|
|
977
1024
|
"packages/platform-shared/src/utils/job-retry-policy.util.ts#normalizeJobRetryPolicy": "facef84884b5b4311af06bfb4469f071ff42a4bca067b6d9092d4f6571e8ee86",
|
|
978
1025
|
"packages/platform-shared/src/utils/job-retry-policy.util.ts#assertJobRetryPolicyValid": "6511ccafc15233a4ffe4e024f13e6c0e5c9d8a53c261ecc571300495afd804cf",
|
|
979
1026
|
"packages/domain/src/dto/components/component.validator.ts#validateEndpointGuardSemantics": "fd885b48c2990e47d1f05965af044aef8e2256da5fa4a86d1248967b04a3fd1e",
|
|
980
|
-
"apps/api/src/modules/endpoints/endpoint.service.ts#create": "
|
|
981
|
-
"apps/api/src/modules/endpoints/endpoint.service.ts#update": "
|
|
1027
|
+
"apps/api/src/modules/endpoints/endpoint.service.ts#create": "cb10fc198892423088d396acd09618d8c64504a57fac0df3a892d57993913067",
|
|
1028
|
+
"apps/api/src/modules/endpoints/endpoint.service.ts#update": "c1a0e9d467bd46e90ac833106b101011cfc722548d6b739497eb6e8cbb8f8ffa",
|
|
982
1029
|
"apps/api/src/modules/endpoints/endpoint.service.ts#validateEndpointOptions": "07401218669a87a9488b0aeb59f15b8d51341a172fb346ff83d38ed563a2988f",
|
|
983
1030
|
"apps/api/src/modules/endpoints/endpoint.service.ts#applyEndpointOptionDefaults": "990c27ae925b613215601c215a6e38f6ecb4e2b34b77d6e2819f0921d4e56230",
|
|
984
1031
|
"apps/api/src/modules/automation/jobs.service.ts#createJobTemplate": "1513bad8634fdf6abcca52f0041044512b3e53b3e7451f1b443f7e79fc026b01",
|
|
985
1032
|
"apps/api/src/modules/automation/jobs.service.ts#update": "f11808497fa36a7965b496314e1255920945df365ee62aba810612bf6b2cd30c",
|
|
986
1033
|
"packages/platform-shared/src/services/job.scheduler.service.ts#resolveTemplateInputs": "a9a4cc5df4627abf7ee2d2df7f2494d290292a15f4889a5f07a9de104ee33d9f",
|
|
987
|
-
"packages/domain/src/dto/components/component-element-key.const.ts#isLowCodeComponentType": "
|
|
1034
|
+
"packages/domain/src/dto/components/component-element-key.const.ts#isLowCodeComponentType": "4918470ef562727becb8c97c5afb7761a49734ecd21a6d3d5436576dbd10a6da",
|
|
988
1035
|
"packages/domain/src/dto/components/component-element-key.const.ts#isDefaultLibraryElement": "4faa356b91be5c44ebe3d442b6da26088d6d35d2db5fb073e1103165431cee48",
|
|
989
1036
|
"apps/api/src/modules/components/component.service.ts#assertComponentElementsSize": "30b14e4c7a1c62b4061aa13b1476d815002bf3273b4129551dde9b9a45bb87ca",
|
|
990
|
-
"apps/api/src/modules/components/component.service.ts#validateElements": "
|
|
1037
|
+
"apps/api/src/modules/components/component.service.ts#validateElements": "57b292450bfdd3d26c11b4b4f12160848f4983e4b5f74850aca69b92fa2b751c",
|
|
991
1038
|
"packages/execution-core/src/modules/@core/services/virtualization.service.ts#requestedMemoryLimit": "ca32691eb31e1bf5d17d80d56861bb73fa698b6f08ae047ab48a1a4927594fe4",
|
|
992
1039
|
"packages/platform-shared/src/utils/custom-node-component.util.ts#normalizeCustomNodeElementPath": "486eb7ca53b95d7b49de4735d5b5ca8f15dc994852eeff0009d8a72189474455",
|
|
993
1040
|
"packages/platform-shared/src/utils/custom-node-component.util.ts#hasExportedCustomNodeInit": "9979558e29219c2545a11b20924b14401aef26df99d251efe261f0447aebd98b"
|
|
@@ -996,7 +1043,8 @@ export const requestContractSourceProvenance = {
|
|
|
996
1043
|
"main": {
|
|
997
1044
|
"packages/domain/src/dto/automation/endpoint.template.request.dto.ts#EndpointRequestDto": "45a1a84e200b2cdf9b44051fe36cb7bda1b577a0f5bbcc88942764336a6d7302",
|
|
998
1045
|
"packages/domain/src/dto/automation/update.api.template.request.dto.ts#UpdateEndpointRequestDto": "20ee0c9afbfa594f189ead2b751aa00b6003efe0b70c5e1158ee78c1e0d29567",
|
|
999
|
-
"packages/domain/src/dto/automation/endpoint.template.request.dto.ts#EndpointOptionsDto": "
|
|
1046
|
+
"packages/domain/src/dto/automation/endpoint.template.request.dto.ts#EndpointOptionsDto": "acb07cc1e2c80d1721150691ea185eb3fa2f255a0833749973bf8175d85d9a32",
|
|
1047
|
+
"packages/domain/src/dto/automation/endpoint.sse.dto.ts#EndpointSseDto": "960d56ebb300ded00f61f1318522c010135675e0f32a8084fb3e9b16a1c20ecc",
|
|
1000
1048
|
"packages/domain/src/dto/automation/job.template.request.dto.ts#JobTemplateRequestDto": "c47123206c187f0e16b08d7033ed9c455932f2e78e34455577663eb09410559d",
|
|
1001
1049
|
"packages/domain/src/dto/automation/update.job.template.dto.ts#UpdateJobTemplate": "0f79fefc76e749a331b5c848b9dcd6061e7dc247c2094dd975d7d2fe9a101c08",
|
|
1002
1050
|
"packages/domain/src/dto/automation/run.options.dto.ts#JobOptionsDto": "6e8f3f4b7aa6d8f38bc9227ced3158e4697031e68c78be9ea0e24e5af29e37d3",
|
|
@@ -1004,18 +1052,12 @@ export const requestContractSourceProvenance = {
|
|
|
1004
1052
|
"packages/domain/src/dto/automation/run.options.dto.ts#RetryJobDto": "e42fcd447fe111bdf2da20ad42654e536a01d566f33a1d8f52ec1bb0bd1ee8b1",
|
|
1005
1053
|
"packages/domain/src/dto/automation/runtime.execution.policy.dto.ts#RuntimeExecutionPolicyDto": "9978ee21a9b7da26c93a4e1516dfc319166a2b55520edee9319d17922b375474",
|
|
1006
1054
|
"packages/domain/src/dto/automation/runtime.execution.policy.dto.ts#RuntimeJobExecutionPolicyDto": "d900a693362a9de02839e2ae959c4e8ac2ac8e0206a4cbe69e889a3636793d23",
|
|
1007
|
-
"packages/domain/src/dto/components/update.component.dto.ts#UpdateComponentDto": "
|
|
1008
|
-
"packages/domain/src/dto/components/component.element.dto.ts#ComponentElementsDto": "4aa2ccd5613c116213525b0c686060973f657e7b81bed7362d925958d829c527"
|
|
1009
|
-
},
|
|
1010
|
-
"studioOverlay": {
|
|
1011
|
-
"packages/domain/src/dto/components/update.component.dto.ts": "afce9903cf51c6f6cb670b9c2be15e6e6a2c6d842b4155966c26c4f82106ee2a",
|
|
1012
|
-
"packages/domain/src/dto/components/component.test-config.dto.ts": "7d52ad25cd536115d10024f11ce101c21d1070f7ddb2da49a014a53ca40c2b74",
|
|
1013
|
-
"packages/domain/src/dto/components/component-element-key.const.ts": "270b1198d0538b1d0e3b74912185d016075e21900c04e7a79747f9b7199919f6",
|
|
1014
|
-
"packages/domain/src/enum/component.element.type.enum.ts": "898f455e0512063de81bda9eeb9e9fb4f7719dc66de172a1d61caaac9baf6f66",
|
|
1015
|
-
"packages/domain/src/dto/components/update.component.dto.ts#UpdateComponentDto": "f54a535edf919df5ff1d6e3653a8df9c54ff51eb766a131ccdf6592291b83146",
|
|
1055
|
+
"packages/domain/src/dto/components/update.component.dto.ts#UpdateComponentDto": "bac5c210c38eb230ae6ca2b42428956ea1c2065ffc947c40478152098a50e673",
|
|
1056
|
+
"packages/domain/src/dto/components/component.element.dto.ts#ComponentElementsDto": "4aa2ccd5613c116213525b0c686060973f657e7b81bed7362d925958d829c527",
|
|
1016
1057
|
"packages/domain/src/dto/components/component.test-config.dto.ts#ComponentTestConfigDto": "bd160d9217d45584cd7ab29680edef807d8a56fa61283000e1a3db88b8d74d19",
|
|
1017
1058
|
"apps/api/src/modules/components/component.service.ts#assertNativeTestConfiguration": "f2089642a94765e9f6168fcf39204c18a8585cdb377ada3ed98f53b2c21aae0c",
|
|
1018
1059
|
"packages/domain/src/dto/components/component-element-key.const.ts#COMPONENT_ELEMENT_RESERVED_KEYS": "ef9367438b70f78facd959c66002f51e3b035b5b23594a7850d3d86bf75ea4e9",
|
|
1019
1060
|
"packages/domain/src/dto/components/component-element-key.const.ts#COMPONENT_ELEMENT_JS_IDENTIFIER_PATTERN": "9d2b9a943361651239e3730e29cc11e0e204d46f3b8f03f69a6bef38c1754c7c"
|
|
1020
|
-
}
|
|
1061
|
+
},
|
|
1062
|
+
"studioOverlay": {}
|
|
1021
1063
|
};
|
package/dist/src/client.d.ts
CHANGED
|
@@ -3,6 +3,29 @@ import { RequestQueue } from './request-queue.ts';
|
|
|
3
3
|
import type { AgentRecord, AgentPluginRecord, ComponentRecord, DatabaseSchemaRecord, DatabaseViewRecord, EndpointRecord, EventRecord, GroupRecord, JobTemplateRecord, RoleGroupRecord, ServiceAccountRecord, ScheduleRecord } from './types.ts';
|
|
4
4
|
import type { TrackableResourceType } from './tracked-resources.ts';
|
|
5
5
|
import type { NativeTestCatalog, NativeTestRun, NativeTestRunInput } from './native-tests.ts';
|
|
6
|
+
export type DatabaseSchemaOperation = {
|
|
7
|
+
accepted: true;
|
|
8
|
+
jobId: string;
|
|
9
|
+
status: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function isDatabaseSchemaOperation(value: unknown): value is DatabaseSchemaOperation;
|
|
12
|
+
export declare class DatabaseSchemaOperationWaitError extends Error {
|
|
13
|
+
readonly operation: DatabaseSchemaOperation;
|
|
14
|
+
constructor(operation: DatabaseSchemaOperation, cause: unknown);
|
|
15
|
+
}
|
|
16
|
+
export type DatabaseSchemaOperationStatus = {
|
|
17
|
+
jobId: string;
|
|
18
|
+
status: string;
|
|
19
|
+
operationStage?: string;
|
|
20
|
+
output?: {
|
|
21
|
+
databaseId?: string;
|
|
22
|
+
version?: number;
|
|
23
|
+
error?: {
|
|
24
|
+
code?: string;
|
|
25
|
+
message?: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
6
29
|
export type RequestOptions = {
|
|
7
30
|
query?: Record<string, unknown>;
|
|
8
31
|
body?: unknown;
|
|
@@ -402,9 +425,16 @@ export declare class RevoClient {
|
|
|
402
425
|
findActiveDatabaseSchemasByField(field: string, value: unknown, path?: Array<string | number>): Promise<DatabaseSchemaRecord[]>;
|
|
403
426
|
getDatabaseSchemaStats(): Promise<DatabaseSchemaStatsRecord[]>;
|
|
404
427
|
getDatabaseSchema(databaseId: string): Promise<DatabaseSchemaResponse>;
|
|
405
|
-
|
|
428
|
+
getDatabaseOperation(jobId: string): Promise<DatabaseSchemaOperationStatus>;
|
|
429
|
+
acceptDatabaseSchema(body: DatabaseSchemaCreatePayload | DatabaseSchemaUpdatePayload, databaseId?: string, idempotencyKey?: string): Promise<DatabaseSchemaOperation | DatabaseSchemaResponse>;
|
|
430
|
+
waitForDatabaseSchemaOperation(receipt: DatabaseSchemaOperation | DatabaseSchemaResponse): Promise<DatabaseSchemaResponse>;
|
|
431
|
+
createDatabaseSchema(body: DatabaseSchemaCreatePayload, options?: {
|
|
432
|
+
idempotencyKey?: string;
|
|
433
|
+
}): Promise<DatabaseSchemaResponse>;
|
|
406
434
|
updateDatabaseSchemaMetadata(databaseId: string, body: DatabaseSchemaMetadataWritePayload): Promise<DatabaseSchemaResponse>;
|
|
407
|
-
updateDatabaseSchema(databaseId: string, body: DatabaseSchemaUpdatePayload
|
|
435
|
+
updateDatabaseSchema(databaseId: string, body: DatabaseSchemaUpdatePayload, options?: {
|
|
436
|
+
idempotencyKey?: string;
|
|
437
|
+
}): Promise<DatabaseSchemaResponse>;
|
|
408
438
|
deleteDatabaseSchema(databaseId: string): Promise<unknown>;
|
|
409
439
|
listAllDatabaseViews(): Promise<DatabaseViewRecord[]>;
|
|
410
440
|
getDatabaseView(databaseViewId: string, options?: Pick<RequestOptions, 'timeoutMs' | 'maxRetries'>): Promise<DatabaseViewRecord | {
|
package/dist/src/client.js
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
|
+
import { randomUUID } from 'node:crypto';
|
|
1
2
|
import { setTimeout as waitForDelay } from 'node:timers/promises';
|
|
2
3
|
import { AUTH_VALIDATION_TTL_MS, buildAuthValidationKey, DEFAULT_BASE_URL, readAuthValidationState, resolveRuntimeConfig, saveAuthValidationState, } from "./config.js";
|
|
3
4
|
import { beginHttpTraceRequest, completeHttpTraceRequest, responseSize, } from "./http-trace.js";
|
|
4
5
|
import { currentRequestQueue, RequestQueue } from "./request-queue.js";
|
|
5
6
|
import { createSpinner } from "./spinner.js";
|
|
6
7
|
import { mapWithConcurrency } from "./utils.js";
|
|
8
|
+
export function isDatabaseSchemaOperation(value) {
|
|
9
|
+
return Boolean(value && typeof value === 'object' && value.accepted === true
|
|
10
|
+
&& typeof value.jobId === 'string' && typeof value.status === 'string');
|
|
11
|
+
}
|
|
12
|
+
export class DatabaseSchemaOperationWaitError extends Error {
|
|
13
|
+
operation;
|
|
14
|
+
constructor(operation, cause) {
|
|
15
|
+
super(`Schema operation ${operation.jobId} was accepted; status/readback is unavailable: ${cause instanceof Error ? cause.message : String(cause)}`);
|
|
16
|
+
this.name = 'DatabaseSchemaOperationWaitError';
|
|
17
|
+
this.operation = operation;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
7
20
|
export class ApiError extends Error {
|
|
8
21
|
status;
|
|
9
22
|
data;
|
|
@@ -814,23 +827,51 @@ export class RevoClient {
|
|
|
814
827
|
async getDatabaseSchema(databaseId) {
|
|
815
828
|
return this.requestData('GET', `/api/v1/databases/${encodeURIComponent(databaseId)}`);
|
|
816
829
|
}
|
|
817
|
-
async
|
|
818
|
-
return this.requestData('
|
|
819
|
-
|
|
820
|
-
|
|
830
|
+
async getDatabaseOperation(jobId) {
|
|
831
|
+
return this.requestData('GET', `/api/v1/databases/operations/${encodeURIComponent(jobId)}`);
|
|
832
|
+
}
|
|
833
|
+
async acceptDatabaseSchema(body, databaseId, idempotencyKey = randomUUID()) {
|
|
834
|
+
// All transport retries reuse the exact request, base version and admission identity.
|
|
835
|
+
return this.requestData(databaseId ? 'PUT' : 'POST', `/api/v1/databases${databaseId ? `/${encodeURIComponent(databaseId)}` : ''}`, {
|
|
836
|
+
body, query: { async: true }, headers: { 'Idempotency-Key': idempotencyKey },
|
|
837
|
+
maxRetries: 2, spinnerLabel: 'Submitting database schema operation',
|
|
821
838
|
});
|
|
822
839
|
}
|
|
840
|
+
async waitForDatabaseSchemaOperation(receipt) {
|
|
841
|
+
if (!isDatabaseSchemaOperation(receipt))
|
|
842
|
+
return receipt;
|
|
843
|
+
for (;;) {
|
|
844
|
+
let operation;
|
|
845
|
+
try {
|
|
846
|
+
operation = await this.getDatabaseOperation(receipt.jobId);
|
|
847
|
+
}
|
|
848
|
+
catch (error) {
|
|
849
|
+
throw new DatabaseSchemaOperationWaitError(receipt, error);
|
|
850
|
+
}
|
|
851
|
+
if (operation.status === 'FINISHED') {
|
|
852
|
+
if (!operation.output?.databaseId)
|
|
853
|
+
throw new Error(`Schema operation ${receipt.jobId} completed without a database identity.`);
|
|
854
|
+
try {
|
|
855
|
+
return await this.getDatabaseSchema(operation.output.databaseId);
|
|
856
|
+
}
|
|
857
|
+
catch (error) {
|
|
858
|
+
throw new DatabaseSchemaOperationWaitError({ ...receipt, status: 'FINISHED' }, error);
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
if (['ERROR', 'CANCELLED', 'ACTION_REQUIRED'].includes(operation.status)) {
|
|
862
|
+
throw new Error(`Schema operation ${receipt.jobId} ${operation.status}: ${operation.output?.error?.message ?? 'schema was not published'}`);
|
|
863
|
+
}
|
|
864
|
+
await waitForDelay(1000);
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
async createDatabaseSchema(body, options = {}) {
|
|
868
|
+
return this.waitForDatabaseSchemaOperation(await this.acceptDatabaseSchema(body, undefined, options.idempotencyKey));
|
|
869
|
+
}
|
|
823
870
|
async updateDatabaseSchemaMetadata(databaseId, body) {
|
|
824
|
-
return this.
|
|
825
|
-
body,
|
|
826
|
-
spinnerLabel: 'Updating database schema metadata',
|
|
827
|
-
});
|
|
871
|
+
return this.updateDatabaseSchema(databaseId, body);
|
|
828
872
|
}
|
|
829
|
-
async updateDatabaseSchema(databaseId, body) {
|
|
830
|
-
return this.
|
|
831
|
-
body,
|
|
832
|
-
spinnerLabel: 'Updating database schema',
|
|
833
|
-
});
|
|
873
|
+
async updateDatabaseSchema(databaseId, body, options = {}) {
|
|
874
|
+
return this.waitForDatabaseSchemaOperation(await this.acceptDatabaseSchema(body, databaseId, options.idempotencyKey));
|
|
834
875
|
}
|
|
835
876
|
async deleteDatabaseSchema(databaseId) {
|
|
836
877
|
return this.requestData('DELETE', `/api/v1/databases/${encodeURIComponent(databaseId)}`, {
|