@revoengine/cli 1.0.39 → 2.1.0
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 +20 -0
- package/README.md +15 -9
- package/dist/src/argument-contract.js +1 -1
- package/dist/src/automation-contract.generated.d.ts +91 -34
- package/dist/src/automation-contract.generated.js +109 -34
- package/dist/src/client.d.ts +3 -0
- package/dist/src/commands/component.js +16 -0
- package/dist/src/commands/terminal-browser-human-input.d.ts +28 -0
- package/dist/src/commands/terminal-browser-human-input.js +56 -7
- package/dist/src/commands/terminal-browser-live-protocol.d.ts +9 -1
- package/dist/src/commands/terminal-browser-live-protocol.js +16 -3
- package/dist/src/commands/terminal-browser-live-transport.d.ts +2 -0
- package/dist/src/commands/terminal-browser-live-transport.js +21 -5
- package/dist/src/commands/terminal-browser-live.d.ts +18 -1
- package/dist/src/commands/terminal-browser-live.js +190 -14
- package/dist/src/commands/terminal-browser-observation.d.ts +1 -1
- package/dist/src/commands/terminal-browser-observation.js +10 -1
- package/dist/src/commands/terminal-browser-page-input.d.ts +1 -0
- package/dist/src/commands/terminal-browser-page-input.js +20 -0
- package/dist/src/commands/terminal-browser-profile-sync.d.ts +5 -1
- package/dist/src/commands/terminal-browser-profile-sync.js +13 -2
- package/dist/src/commands/terminal-browser-profile-sync.protocol.d.ts +2 -0
- package/dist/src/commands/terminal-browser.d.ts +17 -0
- package/dist/src/commands/terminal-browser.js +310 -104
- package/dist/src/commands/terminal.js +104 -24
- package/dist/src/endpoint-emulator.js +9 -10
- package/dist/src/project.js +1 -0
- package/dist/src/request-contract.d.ts +2 -0
- package/dist/src/request-contract.js +11 -1
- package/dist/src/resource-syncs/automation-input.d.ts +2 -2
- package/dist/src/resource-syncs/automation-input.js +7 -17
- package/dist/src/resource-syncs/event-sync.d.ts +2 -0
- package/dist/src/resource-syncs/event-sync.js +18 -8
- package/dist/src/resource-syncs/job-template-sync.d.ts +2 -0
- package/dist/src/resource-syncs/job-template-sync.js +6 -1
- package/dist/src/resource-syncs/runtime-definition-validation.js +10 -2
- package/dist/src/resource-syncs/schedule-sync.js +0 -1
- package/dist/src/sync-omit.js +3 -1
- package/dist/src/types.d.ts +12 -5
- package/dist/src/ui.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.1.0 — 2026-11-11
|
|
4
|
+
|
|
5
|
+
- Pull, plan and push Job Template Batch or Debounce delivery across every trigger source and dynamic concurrency paths on Platform 1.9.0. Reject retired Event-level collection policies with explicit migration guidance. Preserve source-specific Event and Schedule input and ignore retired merge modes in existing manifests.
|
|
6
|
+
|
|
7
|
+
- Refresh reviewed automation plans after upgrading and follow the [1.9 migration guide](https://docs.revoengine.com/developers/upgrading-to-1-9).
|
|
8
|
+
|
|
9
|
+
## 2.0.0 — 2026-11-07
|
|
10
|
+
|
|
11
|
+
### Upgrade requirements
|
|
12
|
+
|
|
13
|
+
- This major release removes `skipLibs`, `includeLibs` and `excludeLibs` from Endpoint and Job configuration. Remove these fields from current manifests before plan, push, deploy or local preview. Their presence is rejected even when set to `false` or an empty array.
|
|
14
|
+
- Review non-default library selections before removing them; verify the affected workflow on a test instance. Fields with similar names inside ordinary business payloads are unaffected.
|
|
15
|
+
- Use Platform 1.8.0 or later for the updated execution contract and VS Code extension 2.0.0 or later for the matching editor workflow. Update this compatibility set together.
|
|
16
|
+
|
|
17
|
+
### Debugging and Live Preview
|
|
18
|
+
|
|
19
|
+
- Component debugging accepts `--call-strategy=caller|endpoints|jobs` or `callStrategy` in the debug configuration. Caller remains the default; explicit policies retain account-access and source-approval requirements.
|
|
20
|
+
- Browser Live Preview reports active sessions and tabs, supports pointer gestures and selected-text feedback, and preserves privacy and access-revocation controls.
|
|
21
|
+
- Local endpoint preview retains read-only defaults and redacted request diagnostics. Published endpoint execution uses the selected instance's saved code and execution policy.
|
|
22
|
+
|
|
3
23
|
## 1.0.39 — 2026-11-06
|
|
4
24
|
|
|
5
25
|
### Database Table audit
|
package/README.md
CHANGED
|
@@ -10,9 +10,11 @@ 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
|
|
13
|
+
## Version 2.1.0
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Use this release with Platform 1.9.0 or later and VS Code extension 2.1.0 or later. Update the compatible clients and backend together. Endpoint and Job configurations no longer accept `skipLibs`, `includeLibs` or `excludeLibs`, including `false` and empty arrays. Remove these fields from current manifests; review and test non-default selections first. Ordinary business payload fields are unaffected.
|
|
16
|
+
|
|
17
|
+
Debugger execution defaults to the caller and can explicitly select the global endpoint or job policy. Browser Live Preview supports pointer gestures, selected-text feedback and active-session status while retaining privacy controls. See the [2.1.0 changelog](CHANGELOG.md).
|
|
16
18
|
|
|
17
19
|
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`.
|
|
18
20
|
|
|
@@ -532,11 +534,11 @@ Existing `database-schema` selectors and `revo database-schemas` commands remain
|
|
|
532
534
|
|
|
533
535
|
Older Event manifests without `custom` must be refreshed with `revo events pull` from the source environment or edited to set `custom` explicitly. The pull upgrades an unchanged, locked manifest without `--force`. Check the `type` too: a legacy `CUSTOM_EXPORT` event now uses `type: "EXPORT", custom: true` when that is the source definition. An Event plan blocks manifests with no `custom` classifier.
|
|
534
536
|
|
|
535
|
-
Event and Schedule manifests retain
|
|
537
|
+
Event and Schedule manifests retain a JSON object `input` at the top level. Pull, plan, push, migration and readback verification preserve it. The runtime exposes it on each trigger. Invalid input and duplicate top-level/extension input block writes, including with `--force`.
|
|
536
538
|
|
|
537
|
-
Previously pulled Event manifests
|
|
539
|
+
Previously pulled Event manifests can still supply input through `extensions.input`. A fresh pull writes `input` at the top level. With `--omit`, the two input layouts share ownership, and pulls retain omitted destination values while refreshing managed nested siblings. The retired `inputMode` field is ignored. Old Event lock hashes are recognized using the complete live input values, so they cannot hide remote drift. Other extension fields still block deployment.
|
|
538
540
|
|
|
539
|
-
|
|
541
|
+
Omitting `input` means `{}` in the portable definition. Older Schedule pulls may omit this field. Pull the source before promotion if a Schedule uses nonempty input, and regenerate saved reviewed plans after upgrading the CLI.
|
|
540
542
|
|
|
541
543
|
### Definition contract checks
|
|
542
544
|
|
|
@@ -683,7 +685,7 @@ Save changes to `endpoint.json`, a component, or a JS/TS library. In local previ
|
|
|
683
685
|
|
|
684
686
|
Pass `--skip-validate` to skip low-code source analysis for the component and libraries in Sandbox preview. Endpoint input schemas and runtime checks still apply.
|
|
685
687
|
|
|
686
|
-
The emulator authenticates upstream as the CLI user. Browser authorization headers and cookies are stripped. Local preview supports JSON bodies, flat query parameters, and ordinary HTTP responses. Application SSE is unavailable. Local preview
|
|
688
|
+
The emulator authenticates upstream as the CLI user. Browser authorization headers and cookies are stripped. Local preview supports JSON bodies, flat query parameters, and ordinary HTTP responses. Application SSE is unavailable. Local preview excludes non-low-code components. Retired library-selection fields are rejected during configuration validation. The sandbox applies debugger logging, which can capture inputs and outputs even when the Run manifest sets `hideRequest` or `hideResponse`. Use development data.
|
|
687
689
|
|
|
688
690
|
## Other commands
|
|
689
691
|
|
|
@@ -705,6 +707,8 @@ revo component debug <componentId> --read-only=true --stream
|
|
|
705
707
|
revo component debug <componentId> --read-only=false
|
|
706
708
|
```
|
|
707
709
|
|
|
710
|
+
Component debugging accepts `--call-strategy=caller|endpoints|jobs` or `callStrategy` in `.revoengine/debug.json`. The flag takes precedence; the default is `caller`. `endpoints` and `jobs` select the corresponding global execution policy, subject to account delegation and source approval. An inherited execution authority cannot be changed.
|
|
711
|
+
|
|
708
712
|
Use low-level `request` carefully; it bypasses the higher-level migration planner.
|
|
709
713
|
|
|
710
714
|
## Command arguments and local workspace safety
|
|
@@ -866,10 +870,10 @@ An unqualified path must be supported by every selected family. Qualify family-s
|
|
|
866
870
|
| --- | --- |
|
|
867
871
|
| `database-table`, `database-view` | `name`, `category`, `description`, `metadata.label` |
|
|
868
872
|
| `component` | `name`, `description` (alias of `desc`), `active`, `testConfig`, `metadata.label` |
|
|
869
|
-
| `job-template` | `name`, `category`, `description`, `timeout`, `inputs`, `options.retry.maxAttempts` |
|
|
873
|
+
| `job-template` | `name`, `category`, `description`, `timeout`, `inputs`, `delivery`, `options.retry.maxAttempts` |
|
|
870
874
|
| `endpoint` | `name`, `category`, `description`, `active`, `timeout`, `options.input.tenant` |
|
|
871
|
-
| `schedule` | `name`, `category`, `description`, `cron`, `timezone`, `input.tenant
|
|
872
|
-
| `event` | `name`, `category`, `description`, `filter`, `input.tenant
|
|
875
|
+
| `schedule` | `name`, `category`, `description`, `cron`, `timezone`, `input.tenant` |
|
|
876
|
+
| `event` | `name`, `category`, `description`, `filter`, `input.tenant` |
|
|
873
877
|
| `group`, `role-group` | `name`, `category`, `description`, `metadata.label` |
|
|
874
878
|
| `service-account` | `name`, `metadata.label` |
|
|
875
879
|
| `agent` | `name`, `description`, `definition.config.model`, `definition.policy.maxTicks` |
|
|
@@ -893,6 +897,8 @@ Endpoint and Job Template pins use the API content identity `v1:sha256:<64 lower
|
|
|
893
897
|
|
|
894
898
|
Repository `plan/deploy` without `--activate` preserves existing Event and Schedule activation and creates new definitions inactive. Differences from manifest activation remain visible as `activation-drift`, but do not prevent definition convergence. With `--activate`, strict plans and final verification require activation to match the manifest. Reviewed deployment still fences live target activation and rejects changes after planning, in either mode. Named migration and dedicated family plans retain their activation-convergence checks. Deprecated Schedule `targetVersion` is reported diagnostically; the backend does not use it to select a Job Template revision.
|
|
895
899
|
|
|
900
|
+
On Platform 1.9.0, configure collection on the Job Template manifest with top-level `delivery`: `{ "mode": "BATCH", "maxSize": 100, "maxWaitSeconds": 600 }`, or use `"mode": "DEBOUNCE"` with `quietPeriodSeconds`. `maxSize` is 2–1000 and wait/quiet periods are 1–3600 seconds; the quiet period must not exceed the maximum wait. Remove `delivery` or set it to `null` for SINGLE. Collection combines Event, Schedule, manual Run and low-code/API admissions for the same Job configuration. Pull, plan and push preserve this policy, and removing it clears grouping on the target. Former Event-level `delivery` is rejected with an upgrade instruction; move the collection policy to the target Job and remove the former Event `keyPath`, since concurrency is configured separately. Job Template manifests can set `options.concurrency.keyPath` to a JSON Pointer such as `/message/orderId`. Event and Schedule manifests carry their own `input`, exposed on each `api.input().triggers` entry. The CLI ignores retired `inputMode` when reading existing manifests and omits it from pulled definitions and API writes.
|
|
901
|
+
|
|
896
902
|
`CUSTOM_NODEJS` deployment verifies runtime availability and the active desired revision after source readback. Automatic deployment waits up to two minutes for readiness; failed attempts, manual activation requirements and unavailable/pending revisions fail verification without adopting a deployment baseline. Re-run after the runtime is ready. Named `env diff/apply` also reports unavailable unchanged custom runtimes and returns an error on unverified writes. Definition synchronization does not invoke provider/plugin tests; component dependencies and their pinned revisions are checked with read-only API calls, including unchanged definitions.
|
|
897
903
|
|
|
898
904
|
Execution options are compared without hiding runtime differences: an explicit Job Template memory value remains distinct from missing/null memory, which falls back to template input or the current 128 MiB runtime default. The create API initially materializes 256 MiB; CLI creation restores the desired options with a version-guarded update before verification when needed. An empty `options.input` overrides legacy `inputs`. Endpoint null/zero memory is normalized to 32 MiB by both create and update. Old Job baselines that omitted explicit 256 MiB cannot prove memory convergence; re-pull and review those definitions before promotion.
|
|
@@ -187,7 +187,7 @@ function actionContract(args) {
|
|
|
187
187
|
if (!action)
|
|
188
188
|
return {};
|
|
189
189
|
if (component && action === 'debug')
|
|
190
|
-
return { ...v('id i body d timeout t memory m'), ...b('read-only stream extra-libs no-extra-libs raw-debug debug-raw debug-payload') };
|
|
190
|
+
return { ...v('id i body d timeout t memory m call-strategy'), ...b('read-only stream extra-libs no-extra-libs raw-debug debug-raw debug-payload') };
|
|
191
191
|
const result = { ...all, ...output, ...omit,
|
|
192
192
|
...(action === 'plan' ? plan : force),
|
|
193
193
|
...(['push', 'push-all'].includes(action) ? yes : {}),
|
|
@@ -142,10 +142,6 @@ export declare const requestContracts: {
|
|
|
142
142
|
readonly EndpointOptionsDto: {
|
|
143
143
|
readonly type: "object";
|
|
144
144
|
readonly properties: {
|
|
145
|
-
readonly skipLibs: {
|
|
146
|
-
readonly nullable: true;
|
|
147
|
-
readonly type: "boolean";
|
|
148
|
-
};
|
|
149
145
|
readonly legacyResults: {
|
|
150
146
|
readonly nullable: true;
|
|
151
147
|
readonly type: "boolean";
|
|
@@ -209,20 +205,6 @@ export declare const requestContracts: {
|
|
|
209
205
|
readonly nullable: true;
|
|
210
206
|
readonly type: "boolean";
|
|
211
207
|
};
|
|
212
|
-
readonly includeLibs: {
|
|
213
|
-
readonly nullable: true;
|
|
214
|
-
readonly type: "array";
|
|
215
|
-
readonly items: {
|
|
216
|
-
readonly type: "string";
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
readonly excludeLibs: {
|
|
220
|
-
readonly nullable: true;
|
|
221
|
-
readonly type: "array";
|
|
222
|
-
readonly items: {
|
|
223
|
-
readonly type: "string";
|
|
224
|
-
};
|
|
225
|
-
};
|
|
226
208
|
readonly componentSchemaId: {
|
|
227
209
|
readonly nullable: true;
|
|
228
210
|
readonly type: "string";
|
|
@@ -279,6 +261,13 @@ export declare const requestContracts: {
|
|
|
279
261
|
readonly JobTemplateRequestDto: {
|
|
280
262
|
readonly type: "object";
|
|
281
263
|
readonly properties: {
|
|
264
|
+
readonly delivery: {
|
|
265
|
+
readonly allOf: readonly [{
|
|
266
|
+
readonly $ref: "#/components/schemas/JobDeliveryDto";
|
|
267
|
+
}];
|
|
268
|
+
readonly nullable: true;
|
|
269
|
+
readonly type: "object";
|
|
270
|
+
};
|
|
282
271
|
readonly executionPolicy: {
|
|
283
272
|
readonly allOf: readonly [{
|
|
284
273
|
readonly $ref: "#/components/schemas/RuntimeJobExecutionPolicyDto";
|
|
@@ -342,6 +331,13 @@ export declare const requestContracts: {
|
|
|
342
331
|
readonly UpdateJobTemplate: {
|
|
343
332
|
readonly type: "object";
|
|
344
333
|
readonly properties: {
|
|
334
|
+
readonly delivery: {
|
|
335
|
+
readonly allOf: readonly [{
|
|
336
|
+
readonly $ref: "#/components/schemas/JobDeliveryDto";
|
|
337
|
+
}];
|
|
338
|
+
readonly nullable: true;
|
|
339
|
+
readonly type: "object";
|
|
340
|
+
};
|
|
345
341
|
readonly executionPolicy: {
|
|
346
342
|
readonly allOf: readonly [{
|
|
347
343
|
readonly $ref: "#/components/schemas/RuntimeJobExecutionPolicyDto";
|
|
@@ -412,10 +408,6 @@ export declare const requestContracts: {
|
|
|
412
408
|
readonly nullable: true;
|
|
413
409
|
readonly type: "object";
|
|
414
410
|
};
|
|
415
|
-
readonly skipLibs: {
|
|
416
|
-
readonly nullable: true;
|
|
417
|
-
readonly type: "boolean";
|
|
418
|
-
};
|
|
419
411
|
readonly legacyResults: {
|
|
420
412
|
readonly nullable: true;
|
|
421
413
|
readonly type: "boolean";
|
|
@@ -459,6 +451,13 @@ export declare const requestContracts: {
|
|
|
459
451
|
readonly pattern: "^[a-zA-Z0-9_-]*$";
|
|
460
452
|
readonly patternFlags: "";
|
|
461
453
|
};
|
|
454
|
+
readonly keyPath: {
|
|
455
|
+
readonly nullable: true;
|
|
456
|
+
readonly type: "string";
|
|
457
|
+
readonly maxLength: 256;
|
|
458
|
+
readonly pattern: "^(?:\\/(?:[^~/\\u0000-\\u001f\\u007f]|~[01])*)+(?![\\s\\S])";
|
|
459
|
+
readonly patternFlags: "u";
|
|
460
|
+
};
|
|
462
461
|
readonly limit: {
|
|
463
462
|
readonly nullable: true;
|
|
464
463
|
readonly type: "integer";
|
|
@@ -520,6 +519,63 @@ export declare const requestContracts: {
|
|
|
520
519
|
};
|
|
521
520
|
readonly additionalProperties: false;
|
|
522
521
|
};
|
|
522
|
+
readonly EventDeliveryDto: {
|
|
523
|
+
readonly type: "object";
|
|
524
|
+
readonly properties: {
|
|
525
|
+
readonly mode: {
|
|
526
|
+
readonly enum: readonly ["BATCH", "DEBOUNCE"];
|
|
527
|
+
};
|
|
528
|
+
readonly keyPath: {
|
|
529
|
+
readonly nullable: true;
|
|
530
|
+
readonly type: "string";
|
|
531
|
+
readonly maxLength: 256;
|
|
532
|
+
readonly pattern: "^(?:\\/(?:[^~/\\u0000-\\u001f\\u007f]|~[01])*)+(?![\\s\\S])";
|
|
533
|
+
readonly patternFlags: "u";
|
|
534
|
+
};
|
|
535
|
+
readonly maxSize: {
|
|
536
|
+
readonly type: "integer";
|
|
537
|
+
readonly minimum: 2;
|
|
538
|
+
readonly maximum: 1000;
|
|
539
|
+
};
|
|
540
|
+
readonly maxWaitSeconds: {
|
|
541
|
+
readonly type: "integer";
|
|
542
|
+
readonly minimum: 1;
|
|
543
|
+
readonly maximum: 3600;
|
|
544
|
+
};
|
|
545
|
+
readonly quietPeriodSeconds: {
|
|
546
|
+
readonly type: "integer";
|
|
547
|
+
readonly minimum: 1;
|
|
548
|
+
readonly maximum: 3600;
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
readonly required: readonly ["mode", "maxSize", "maxWaitSeconds"];
|
|
552
|
+
readonly additionalProperties: false;
|
|
553
|
+
};
|
|
554
|
+
readonly JobDeliveryDto: {
|
|
555
|
+
readonly type: "object";
|
|
556
|
+
readonly properties: {
|
|
557
|
+
readonly mode: {
|
|
558
|
+
readonly enum: readonly ["BATCH", "DEBOUNCE"];
|
|
559
|
+
};
|
|
560
|
+
readonly maxSize: {
|
|
561
|
+
readonly type: "integer";
|
|
562
|
+
readonly minimum: 2;
|
|
563
|
+
readonly maximum: 1000;
|
|
564
|
+
};
|
|
565
|
+
readonly maxWaitSeconds: {
|
|
566
|
+
readonly type: "integer";
|
|
567
|
+
readonly minimum: 1;
|
|
568
|
+
readonly maximum: 3600;
|
|
569
|
+
};
|
|
570
|
+
readonly quietPeriodSeconds: {
|
|
571
|
+
readonly type: "integer";
|
|
572
|
+
readonly minimum: 1;
|
|
573
|
+
readonly maximum: 3600;
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
readonly required: readonly ["mode", "maxSize", "maxWaitSeconds"];
|
|
577
|
+
readonly additionalProperties: false;
|
|
578
|
+
};
|
|
523
579
|
readonly RuntimeExecutionPolicyDto: {
|
|
524
580
|
readonly type: "object";
|
|
525
581
|
readonly properties: {
|
|
@@ -680,7 +736,6 @@ export declare const requestContractDefaults: {
|
|
|
680
736
|
readonly hideRequest: false;
|
|
681
737
|
readonly hideResponse: false;
|
|
682
738
|
readonly legacyResults: false;
|
|
683
|
-
readonly skipLibs: false;
|
|
684
739
|
readonly memory: 256;
|
|
685
740
|
readonly concurrency: {
|
|
686
741
|
readonly key: null;
|
|
@@ -724,25 +779,25 @@ export declare const requestContractDefaults: {
|
|
|
724
779
|
readonly hideRequest: false;
|
|
725
780
|
readonly hideResponse: false;
|
|
726
781
|
readonly legacyResults: false;
|
|
727
|
-
readonly skipLibs: false;
|
|
728
782
|
readonly memory: 32;
|
|
729
783
|
};
|
|
730
784
|
};
|
|
731
785
|
};
|
|
732
786
|
export declare const requestContractSemanticSources: {
|
|
733
|
-
readonly "packages/domain/src/utils/backend-metadata.util.ts#assertJsonValue": "
|
|
787
|
+
readonly "packages/domain/src/utils/backend-metadata.util.ts#assertJsonValue": "e3856d26eb4c43aae24e033691f677f700d6d4f7793dd2be79ce89b8a60ad067";
|
|
734
788
|
readonly "packages/domain/src/dto/automation/run.options.dto.ts#JobRetryMinBackoffWithinMaxConstraint": "2c8eb4f844ffabfd03f5ae9617a2b0e9e578fa0b9d2a563081648b6688629439";
|
|
735
789
|
readonly "packages/execution-core/src/modules/@core/services/virtualization.service.ts#normalizeIsolateMemoryLimit": "4cce767b32d7b848cea9502eec5d3df2b7a7dc3e41227eeffda1a6a1e8fc9d96";
|
|
790
|
+
readonly "packages/domain/src/dto/automation/event-delivery.dto.ts#isValidEventDeliveryWait": "25fd97d39db416f9b3087ed29984f853d587b34d8ec54b7e7ac2378108bbd89f";
|
|
736
791
|
readonly "packages/domain/src/utils/backend-metadata.util.ts#assertUserMetadataWritable": "ffc70235399e7542c71b58ae4c31ac55d7db29431fc2b3f51c690dba7281a66a";
|
|
737
792
|
readonly "packages/platform-shared/src/utils/job-retry-policy.util.ts#normalizeJobRetryPolicy": "facef84884b5b4311af06bfb4469f071ff42a4bca067b6d9092d4f6571e8ee86";
|
|
738
793
|
readonly "packages/platform-shared/src/utils/job-retry-policy.util.ts#assertJobRetryPolicyValid": "6511ccafc15233a4ffe4e024f13e6c0e5c9d8a53c261ecc571300495afd804cf";
|
|
739
794
|
readonly "packages/domain/src/dto/components/component.validator.ts#validateEndpointGuardSemantics": "fd885b48c2990e47d1f05965af044aef8e2256da5fa4a86d1248967b04a3fd1e";
|
|
740
795
|
readonly "apps/api/src/modules/endpoints/endpoint.service.ts#create": "cb10fc198892423088d396acd09618d8c64504a57fac0df3a892d57993913067";
|
|
741
796
|
readonly "apps/api/src/modules/endpoints/endpoint.service.ts#update": "bc59acaffdb7275659bddb65b8d71e9d8266447054723ea87495eaa0dd512fe1";
|
|
742
|
-
readonly "apps/api/src/modules/endpoints/endpoint.service.ts#validateEndpointOptions": "
|
|
743
|
-
readonly "apps/api/src/modules/endpoints/endpoint.service.ts#applyEndpointOptionDefaults": "
|
|
744
|
-
readonly "apps/api/src/modules/automation/jobs.service.ts#createJobTemplate": "
|
|
745
|
-
readonly "apps/api/src/modules/automation/jobs.service.ts#update": "
|
|
797
|
+
readonly "apps/api/src/modules/endpoints/endpoint.service.ts#validateEndpointOptions": "64686ee1c1e2611aa00847b771de637797a3007062b95e303046ad2cba69e729";
|
|
798
|
+
readonly "apps/api/src/modules/endpoints/endpoint.service.ts#applyEndpointOptionDefaults": "9da1bdfd83a3142b7f44d4ce5ee2aac6cf4ed70bef790f979c412c411fe2790d";
|
|
799
|
+
readonly "apps/api/src/modules/automation/jobs.service.ts#createJobTemplate": "59a8433530980f3970c5915f696611f14820c10183b0f917a74912245f1cbd78";
|
|
800
|
+
readonly "apps/api/src/modules/automation/jobs.service.ts#update": "d8b3ccef6ae812e8bcdcd21cf5184c2afe9ede28055f355f684e13a64b094933";
|
|
746
801
|
readonly "packages/platform-shared/src/services/job.scheduler.service.ts#resolveTemplateInputs": "a9a4cc5df4627abf7ee2d2df7f2494d290292a15f4889a5f07a9de104ee33d9f";
|
|
747
802
|
readonly "packages/domain/src/dto/components/component-element-key.const.ts#isLowCodeComponentType": "4918470ef562727becb8c97c5afb7761a49734ecd21a6d3d5436576dbd10a6da";
|
|
748
803
|
readonly "packages/domain/src/dto/components/component-element-key.const.ts#isDefaultLibraryElement": "4faa356b91be5c44ebe3d442b6da26088d6d35d2db5fb073e1103165431cee48";
|
|
@@ -756,13 +811,15 @@ export declare const requestContractSourceProvenance: {
|
|
|
756
811
|
readonly main: {
|
|
757
812
|
readonly "packages/domain/src/dto/automation/endpoint.template.request.dto.ts#EndpointRequestDto": "45a1a84e200b2cdf9b44051fe36cb7bda1b577a0f5bbcc88942764336a6d7302";
|
|
758
813
|
readonly "packages/domain/src/dto/automation/update.api.template.request.dto.ts#UpdateEndpointRequestDto": "20ee0c9afbfa594f189ead2b751aa00b6003efe0b70c5e1158ee78c1e0d29567";
|
|
759
|
-
readonly "packages/domain/src/dto/automation/endpoint.template.request.dto.ts#EndpointOptionsDto": "
|
|
814
|
+
readonly "packages/domain/src/dto/automation/endpoint.template.request.dto.ts#EndpointOptionsDto": "1ade11735627613a81b5cfaa796dfdc49d4c7e0db01ae6467da6a99a9f3af683";
|
|
760
815
|
readonly "packages/domain/src/dto/automation/endpoint.sse.dto.ts#EndpointSseDto": "960d56ebb300ded00f61f1318522c010135675e0f32a8084fb3e9b16a1c20ecc";
|
|
761
|
-
readonly "packages/domain/src/dto/automation/job.template.request.dto.ts#JobTemplateRequestDto": "
|
|
762
|
-
readonly "packages/domain/src/dto/automation/update.job.template.dto.ts#UpdateJobTemplate": "
|
|
763
|
-
readonly "packages/domain/src/dto/automation/run.options.dto.ts#JobOptionsDto": "
|
|
764
|
-
readonly "packages/domain/src/dto/automation/run.options.dto.ts#ConcurrencyJobDto": "
|
|
816
|
+
readonly "packages/domain/src/dto/automation/job.template.request.dto.ts#JobTemplateRequestDto": "fcbcfa8fd7b600dabe25d9d1e36414db1894bff89980a106b2cc7fbc7feb94d8";
|
|
817
|
+
readonly "packages/domain/src/dto/automation/update.job.template.dto.ts#UpdateJobTemplate": "bb83065b8ae816cc917ec73abc83af6749bc5fdc00e460b889c41cd34443123e";
|
|
818
|
+
readonly "packages/domain/src/dto/automation/run.options.dto.ts#JobOptionsDto": "a4ee900b8610f7edbabf8d07738f99b33a288327ea0d66e67c0f8c28260215c8";
|
|
819
|
+
readonly "packages/domain/src/dto/automation/run.options.dto.ts#ConcurrencyJobDto": "8410d5a666f02c0eb09d466f630fe63eb5bcdf77f245e1a8ff1a14894f314966";
|
|
765
820
|
readonly "packages/domain/src/dto/automation/run.options.dto.ts#RetryJobDto": "e42fcd447fe111bdf2da20ad42654e536a01d566f33a1d8f52ec1bb0bd1ee8b1";
|
|
821
|
+
readonly "packages/domain/src/dto/automation/event-delivery.dto.ts#EventDeliveryDto": "0e126b97d338891c74c1e9eaebce5417b2ece210f991dde5dc4ee3b048ba9297";
|
|
822
|
+
readonly "packages/domain/src/dto/automation/job-delivery.dto.ts#JobDeliveryDto": "3c3cc0e3f03e0bd8853d63265218cd80876aca00b4b0ddcdea368f2a2831d922";
|
|
766
823
|
readonly "packages/domain/src/dto/automation/runtime.execution.policy.dto.ts#RuntimeExecutionPolicyDto": "9978ee21a9b7da26c93a4e1516dfc319166a2b55520edee9319d17922b375474";
|
|
767
824
|
readonly "packages/domain/src/dto/automation/runtime.execution.policy.dto.ts#RuntimeJobExecutionPolicyDto": "d900a693362a9de02839e2ae959c4e8ac2ac8e0206a4cbe69e889a3636793d23";
|
|
768
825
|
readonly "packages/domain/src/dto/components/update.component.dto.ts#UpdateComponentDto": "bac5c210c38eb230ae6ca2b42428956ea1c2065ffc947c40478152098a50e673";
|
|
@@ -194,10 +194,6 @@ export const requestContracts = {
|
|
|
194
194
|
"EndpointOptionsDto": {
|
|
195
195
|
"type": "object",
|
|
196
196
|
"properties": {
|
|
197
|
-
"skipLibs": {
|
|
198
|
-
"nullable": true,
|
|
199
|
-
"type": "boolean"
|
|
200
|
-
},
|
|
201
197
|
"legacyResults": {
|
|
202
198
|
"nullable": true,
|
|
203
199
|
"type": "boolean"
|
|
@@ -264,20 +260,6 @@ export const requestContracts = {
|
|
|
264
260
|
"nullable": true,
|
|
265
261
|
"type": "boolean"
|
|
266
262
|
},
|
|
267
|
-
"includeLibs": {
|
|
268
|
-
"nullable": true,
|
|
269
|
-
"type": "array",
|
|
270
|
-
"items": {
|
|
271
|
-
"type": "string"
|
|
272
|
-
}
|
|
273
|
-
},
|
|
274
|
-
"excludeLibs": {
|
|
275
|
-
"nullable": true,
|
|
276
|
-
"type": "array",
|
|
277
|
-
"items": {
|
|
278
|
-
"type": "string"
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
263
|
"componentSchemaId": {
|
|
282
264
|
"nullable": true,
|
|
283
265
|
"type": "string",
|
|
@@ -338,6 +320,15 @@ export const requestContracts = {
|
|
|
338
320
|
"JobTemplateRequestDto": {
|
|
339
321
|
"type": "object",
|
|
340
322
|
"properties": {
|
|
323
|
+
"delivery": {
|
|
324
|
+
"allOf": [
|
|
325
|
+
{
|
|
326
|
+
"$ref": "#/components/schemas/JobDeliveryDto"
|
|
327
|
+
}
|
|
328
|
+
],
|
|
329
|
+
"nullable": true,
|
|
330
|
+
"type": "object"
|
|
331
|
+
},
|
|
341
332
|
"executionPolicy": {
|
|
342
333
|
"allOf": [
|
|
343
334
|
{
|
|
@@ -408,6 +399,15 @@ export const requestContracts = {
|
|
|
408
399
|
"UpdateJobTemplate": {
|
|
409
400
|
"type": "object",
|
|
410
401
|
"properties": {
|
|
402
|
+
"delivery": {
|
|
403
|
+
"allOf": [
|
|
404
|
+
{
|
|
405
|
+
"$ref": "#/components/schemas/JobDeliveryDto"
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
"nullable": true,
|
|
409
|
+
"type": "object"
|
|
410
|
+
},
|
|
411
411
|
"executionPolicy": {
|
|
412
412
|
"allOf": [
|
|
413
413
|
{
|
|
@@ -484,10 +484,6 @@ export const requestContracts = {
|
|
|
484
484
|
"nullable": true,
|
|
485
485
|
"type": "object"
|
|
486
486
|
},
|
|
487
|
-
"skipLibs": {
|
|
488
|
-
"nullable": true,
|
|
489
|
-
"type": "boolean"
|
|
490
|
-
},
|
|
491
487
|
"legacyResults": {
|
|
492
488
|
"nullable": true,
|
|
493
489
|
"type": "boolean"
|
|
@@ -535,6 +531,13 @@ export const requestContracts = {
|
|
|
535
531
|
"pattern": "^[a-zA-Z0-9_-]*$",
|
|
536
532
|
"patternFlags": ""
|
|
537
533
|
},
|
|
534
|
+
"keyPath": {
|
|
535
|
+
"nullable": true,
|
|
536
|
+
"type": "string",
|
|
537
|
+
"maxLength": 256,
|
|
538
|
+
"pattern": "^(?:\\/(?:[^~/\\u0000-\\u001f\\u007f]|~[01])*)+(?![\\s\\S])",
|
|
539
|
+
"patternFlags": "u"
|
|
540
|
+
},
|
|
538
541
|
"limit": {
|
|
539
542
|
"nullable": true,
|
|
540
543
|
"type": "integer",
|
|
@@ -596,6 +599,77 @@ export const requestContracts = {
|
|
|
596
599
|
},
|
|
597
600
|
"additionalProperties": false
|
|
598
601
|
},
|
|
602
|
+
"EventDeliveryDto": {
|
|
603
|
+
"type": "object",
|
|
604
|
+
"properties": {
|
|
605
|
+
"mode": {
|
|
606
|
+
"enum": [
|
|
607
|
+
"BATCH",
|
|
608
|
+
"DEBOUNCE"
|
|
609
|
+
]
|
|
610
|
+
},
|
|
611
|
+
"keyPath": {
|
|
612
|
+
"nullable": true,
|
|
613
|
+
"type": "string",
|
|
614
|
+
"maxLength": 256,
|
|
615
|
+
"pattern": "^(?:\\/(?:[^~/\\u0000-\\u001f\\u007f]|~[01])*)+(?![\\s\\S])",
|
|
616
|
+
"patternFlags": "u"
|
|
617
|
+
},
|
|
618
|
+
"maxSize": {
|
|
619
|
+
"type": "integer",
|
|
620
|
+
"minimum": 2,
|
|
621
|
+
"maximum": 1000
|
|
622
|
+
},
|
|
623
|
+
"maxWaitSeconds": {
|
|
624
|
+
"type": "integer",
|
|
625
|
+
"minimum": 1,
|
|
626
|
+
"maximum": 3600
|
|
627
|
+
},
|
|
628
|
+
"quietPeriodSeconds": {
|
|
629
|
+
"type": "integer",
|
|
630
|
+
"minimum": 1,
|
|
631
|
+
"maximum": 3600
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
"required": [
|
|
635
|
+
"mode",
|
|
636
|
+
"maxSize",
|
|
637
|
+
"maxWaitSeconds"
|
|
638
|
+
],
|
|
639
|
+
"additionalProperties": false
|
|
640
|
+
},
|
|
641
|
+
"JobDeliveryDto": {
|
|
642
|
+
"type": "object",
|
|
643
|
+
"properties": {
|
|
644
|
+
"mode": {
|
|
645
|
+
"enum": [
|
|
646
|
+
"BATCH",
|
|
647
|
+
"DEBOUNCE"
|
|
648
|
+
]
|
|
649
|
+
},
|
|
650
|
+
"maxSize": {
|
|
651
|
+
"type": "integer",
|
|
652
|
+
"minimum": 2,
|
|
653
|
+
"maximum": 1000
|
|
654
|
+
},
|
|
655
|
+
"maxWaitSeconds": {
|
|
656
|
+
"type": "integer",
|
|
657
|
+
"minimum": 1,
|
|
658
|
+
"maximum": 3600
|
|
659
|
+
},
|
|
660
|
+
"quietPeriodSeconds": {
|
|
661
|
+
"type": "integer",
|
|
662
|
+
"minimum": 1,
|
|
663
|
+
"maximum": 3600
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
"required": [
|
|
667
|
+
"mode",
|
|
668
|
+
"maxSize",
|
|
669
|
+
"maxWaitSeconds"
|
|
670
|
+
],
|
|
671
|
+
"additionalProperties": false
|
|
672
|
+
},
|
|
599
673
|
"RuntimeExecutionPolicyDto": {
|
|
600
674
|
"type": "object",
|
|
601
675
|
"properties": {
|
|
@@ -786,7 +860,6 @@ export const requestContractDefaults = {
|
|
|
786
860
|
"hideRequest": false,
|
|
787
861
|
"hideResponse": false,
|
|
788
862
|
"legacyResults": false,
|
|
789
|
-
"skipLibs": false,
|
|
790
863
|
"memory": 256,
|
|
791
864
|
"concurrency": {
|
|
792
865
|
"key": null,
|
|
@@ -1011,25 +1084,25 @@ export const requestContractDefaults = {
|
|
|
1011
1084
|
"hideRequest": false,
|
|
1012
1085
|
"hideResponse": false,
|
|
1013
1086
|
"legacyResults": false,
|
|
1014
|
-
"skipLibs": false,
|
|
1015
1087
|
"memory": 32
|
|
1016
1088
|
}
|
|
1017
1089
|
}
|
|
1018
1090
|
};
|
|
1019
1091
|
export const requestContractSemanticSources = {
|
|
1020
|
-
"packages/domain/src/utils/backend-metadata.util.ts#assertJsonValue": "
|
|
1092
|
+
"packages/domain/src/utils/backend-metadata.util.ts#assertJsonValue": "e3856d26eb4c43aae24e033691f677f700d6d4f7793dd2be79ce89b8a60ad067",
|
|
1021
1093
|
"packages/domain/src/dto/automation/run.options.dto.ts#JobRetryMinBackoffWithinMaxConstraint": "2c8eb4f844ffabfd03f5ae9617a2b0e9e578fa0b9d2a563081648b6688629439",
|
|
1022
1094
|
"packages/execution-core/src/modules/@core/services/virtualization.service.ts#normalizeIsolateMemoryLimit": "4cce767b32d7b848cea9502eec5d3df2b7a7dc3e41227eeffda1a6a1e8fc9d96",
|
|
1095
|
+
"packages/domain/src/dto/automation/event-delivery.dto.ts#isValidEventDeliveryWait": "25fd97d39db416f9b3087ed29984f853d587b34d8ec54b7e7ac2378108bbd89f",
|
|
1023
1096
|
"packages/domain/src/utils/backend-metadata.util.ts#assertUserMetadataWritable": "ffc70235399e7542c71b58ae4c31ac55d7db29431fc2b3f51c690dba7281a66a",
|
|
1024
1097
|
"packages/platform-shared/src/utils/job-retry-policy.util.ts#normalizeJobRetryPolicy": "facef84884b5b4311af06bfb4469f071ff42a4bca067b6d9092d4f6571e8ee86",
|
|
1025
1098
|
"packages/platform-shared/src/utils/job-retry-policy.util.ts#assertJobRetryPolicyValid": "6511ccafc15233a4ffe4e024f13e6c0e5c9d8a53c261ecc571300495afd804cf",
|
|
1026
1099
|
"packages/domain/src/dto/components/component.validator.ts#validateEndpointGuardSemantics": "fd885b48c2990e47d1f05965af044aef8e2256da5fa4a86d1248967b04a3fd1e",
|
|
1027
1100
|
"apps/api/src/modules/endpoints/endpoint.service.ts#create": "cb10fc198892423088d396acd09618d8c64504a57fac0df3a892d57993913067",
|
|
1028
1101
|
"apps/api/src/modules/endpoints/endpoint.service.ts#update": "bc59acaffdb7275659bddb65b8d71e9d8266447054723ea87495eaa0dd512fe1",
|
|
1029
|
-
"apps/api/src/modules/endpoints/endpoint.service.ts#validateEndpointOptions": "
|
|
1030
|
-
"apps/api/src/modules/endpoints/endpoint.service.ts#applyEndpointOptionDefaults": "
|
|
1031
|
-
"apps/api/src/modules/automation/jobs.service.ts#createJobTemplate": "
|
|
1032
|
-
"apps/api/src/modules/automation/jobs.service.ts#update": "
|
|
1102
|
+
"apps/api/src/modules/endpoints/endpoint.service.ts#validateEndpointOptions": "64686ee1c1e2611aa00847b771de637797a3007062b95e303046ad2cba69e729",
|
|
1103
|
+
"apps/api/src/modules/endpoints/endpoint.service.ts#applyEndpointOptionDefaults": "9da1bdfd83a3142b7f44d4ce5ee2aac6cf4ed70bef790f979c412c411fe2790d",
|
|
1104
|
+
"apps/api/src/modules/automation/jobs.service.ts#createJobTemplate": "59a8433530980f3970c5915f696611f14820c10183b0f917a74912245f1cbd78",
|
|
1105
|
+
"apps/api/src/modules/automation/jobs.service.ts#update": "d8b3ccef6ae812e8bcdcd21cf5184c2afe9ede28055f355f684e13a64b094933",
|
|
1033
1106
|
"packages/platform-shared/src/services/job.scheduler.service.ts#resolveTemplateInputs": "a9a4cc5df4627abf7ee2d2df7f2494d290292a15f4889a5f07a9de104ee33d9f",
|
|
1034
1107
|
"packages/domain/src/dto/components/component-element-key.const.ts#isLowCodeComponentType": "4918470ef562727becb8c97c5afb7761a49734ecd21a6d3d5436576dbd10a6da",
|
|
1035
1108
|
"packages/domain/src/dto/components/component-element-key.const.ts#isDefaultLibraryElement": "4faa356b91be5c44ebe3d442b6da26088d6d35d2db5fb073e1103165431cee48",
|
|
@@ -1043,13 +1116,15 @@ export const requestContractSourceProvenance = {
|
|
|
1043
1116
|
"main": {
|
|
1044
1117
|
"packages/domain/src/dto/automation/endpoint.template.request.dto.ts#EndpointRequestDto": "45a1a84e200b2cdf9b44051fe36cb7bda1b577a0f5bbcc88942764336a6d7302",
|
|
1045
1118
|
"packages/domain/src/dto/automation/update.api.template.request.dto.ts#UpdateEndpointRequestDto": "20ee0c9afbfa594f189ead2b751aa00b6003efe0b70c5e1158ee78c1e0d29567",
|
|
1046
|
-
"packages/domain/src/dto/automation/endpoint.template.request.dto.ts#EndpointOptionsDto": "
|
|
1119
|
+
"packages/domain/src/dto/automation/endpoint.template.request.dto.ts#EndpointOptionsDto": "1ade11735627613a81b5cfaa796dfdc49d4c7e0db01ae6467da6a99a9f3af683",
|
|
1047
1120
|
"packages/domain/src/dto/automation/endpoint.sse.dto.ts#EndpointSseDto": "960d56ebb300ded00f61f1318522c010135675e0f32a8084fb3e9b16a1c20ecc",
|
|
1048
|
-
"packages/domain/src/dto/automation/job.template.request.dto.ts#JobTemplateRequestDto": "
|
|
1049
|
-
"packages/domain/src/dto/automation/update.job.template.dto.ts#UpdateJobTemplate": "
|
|
1050
|
-
"packages/domain/src/dto/automation/run.options.dto.ts#JobOptionsDto": "
|
|
1051
|
-
"packages/domain/src/dto/automation/run.options.dto.ts#ConcurrencyJobDto": "
|
|
1121
|
+
"packages/domain/src/dto/automation/job.template.request.dto.ts#JobTemplateRequestDto": "fcbcfa8fd7b600dabe25d9d1e36414db1894bff89980a106b2cc7fbc7feb94d8",
|
|
1122
|
+
"packages/domain/src/dto/automation/update.job.template.dto.ts#UpdateJobTemplate": "bb83065b8ae816cc917ec73abc83af6749bc5fdc00e460b889c41cd34443123e",
|
|
1123
|
+
"packages/domain/src/dto/automation/run.options.dto.ts#JobOptionsDto": "a4ee900b8610f7edbabf8d07738f99b33a288327ea0d66e67c0f8c28260215c8",
|
|
1124
|
+
"packages/domain/src/dto/automation/run.options.dto.ts#ConcurrencyJobDto": "8410d5a666f02c0eb09d466f630fe63eb5bcdf77f245e1a8ff1a14894f314966",
|
|
1052
1125
|
"packages/domain/src/dto/automation/run.options.dto.ts#RetryJobDto": "e42fcd447fe111bdf2da20ad42654e536a01d566f33a1d8f52ec1bb0bd1ee8b1",
|
|
1126
|
+
"packages/domain/src/dto/automation/event-delivery.dto.ts#EventDeliveryDto": "0e126b97d338891c74c1e9eaebce5417b2ece210f991dde5dc4ee3b048ba9297",
|
|
1127
|
+
"packages/domain/src/dto/automation/job-delivery.dto.ts#JobDeliveryDto": "3c3cc0e3f03e0bd8853d63265218cd80876aca00b4b0ddcdea368f2a2831d922",
|
|
1053
1128
|
"packages/domain/src/dto/automation/runtime.execution.policy.dto.ts#RuntimeExecutionPolicyDto": "9978ee21a9b7da26c93a4e1516dfc319166a2b55520edee9319d17922b375474",
|
|
1054
1129
|
"packages/domain/src/dto/automation/runtime.execution.policy.dto.ts#RuntimeJobExecutionPolicyDto": "d900a693362a9de02839e2ae959c4e8ac2ac8e0206a4cbe69e889a3636793d23",
|
|
1055
1130
|
"packages/domain/src/dto/components/update.component.dto.ts#UpdateComponentDto": "bac5c210c38eb230ae6ca2b42428956ea1c2065ffc947c40478152098a50e673",
|
package/dist/src/client.d.ts
CHANGED
|
@@ -225,6 +225,7 @@ export type EventMetadataWritePayload = {
|
|
|
225
225
|
metadata: Record<string, unknown>;
|
|
226
226
|
};
|
|
227
227
|
export type EventWritePayload = EventMetadataWritePayload & AutomationRuntimeInputFields & {
|
|
228
|
+
delivery?: null;
|
|
228
229
|
custom?: boolean;
|
|
229
230
|
name?: string;
|
|
230
231
|
category?: string | null;
|
|
@@ -273,6 +274,7 @@ export type ScheduleCreatePayload = AutomationRuntimeInputFields & {
|
|
|
273
274
|
targetConfig?: Record<string, unknown> | null;
|
|
274
275
|
};
|
|
275
276
|
export type JobTemplateUpdatePayload = {
|
|
277
|
+
delivery?: import('./types.ts').JobDelivery | null;
|
|
276
278
|
executionPolicy?: RuntimeExecutionPolicy;
|
|
277
279
|
triggerUser?: string | null;
|
|
278
280
|
version: number;
|
|
@@ -288,6 +290,7 @@ export type JobTemplateUpdatePayload = {
|
|
|
288
290
|
inputs?: unknown;
|
|
289
291
|
};
|
|
290
292
|
export type JobTemplateCreatePayload = {
|
|
293
|
+
delivery?: import('./types.ts').JobDelivery | null;
|
|
291
294
|
executionPolicy?: RuntimeExecutionPolicy;
|
|
292
295
|
triggerUser?: string | null;
|
|
293
296
|
name: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { retiredLibraryOptionErrors } from "../request-contract.js";
|
|
1
2
|
import { buildDebugElements, normalizeComponentType, readDebugElementKey, readDebugElementOrder, sortDebugElements } from "../component-debug-source.js";
|
|
2
3
|
import { withCommandSyncOmit } from "../sync-omit-command.js";
|
|
3
4
|
import { preserveOmittedProperties, syncBaselineHash, syncSourceBaselineHash, withoutSyncOmit, assertOmittedPropertiesPreserved, omitPaths } from "../sync-omit.js";
|
|
@@ -1920,7 +1921,19 @@ function resolveDebugReadOnly(cwd, flag) {
|
|
|
1920
1921
|
}
|
|
1921
1922
|
return true;
|
|
1922
1923
|
}
|
|
1924
|
+
function resolveDebugCallStrategy(cwd, flag) {
|
|
1925
|
+
const configPath = path.join(getProjectRoot(cwd) || cwd, '.revoengine', 'debug.json');
|
|
1926
|
+
const config = fs.existsSync(configPath) ? JSON.parse(fs.readFileSync(configPath, 'utf8')) : {};
|
|
1927
|
+
const strategy = flag ?? config.callStrategy ?? 'caller';
|
|
1928
|
+
if (strategy !== 'caller' && strategy !== 'endpoints' && strategy !== 'jobs') {
|
|
1929
|
+
throw new Error('callStrategy / --call-strategy must be caller, endpoints or jobs.');
|
|
1930
|
+
}
|
|
1931
|
+
return strategy;
|
|
1932
|
+
}
|
|
1923
1933
|
function buildDebugPayload(cwd, component, input) {
|
|
1934
|
+
const retired = retiredLibraryOptionErrors(input.inputs, 'inputs');
|
|
1935
|
+
if (retired.length)
|
|
1936
|
+
throw new Error(retired.join('\n'));
|
|
1924
1937
|
const type = normalizeComponentType(component);
|
|
1925
1938
|
const base = {
|
|
1926
1939
|
type,
|
|
@@ -1928,6 +1941,7 @@ function buildDebugPayload(cwd, component, input) {
|
|
|
1928
1941
|
timeout: input.timeout,
|
|
1929
1942
|
memory: input.memory,
|
|
1930
1943
|
readOnly: input.readOnly,
|
|
1944
|
+
callStrategy: input.callStrategy,
|
|
1931
1945
|
...(input.extraLibs?.length ? { extraLibs: input.extraLibs } : {}),
|
|
1932
1946
|
};
|
|
1933
1947
|
if (!isDebugLibraryType(type)) {
|
|
@@ -2044,6 +2058,7 @@ async function debugSingleComponent(context, componentId) {
|
|
|
2044
2058
|
const timeout = parseDebugNumber(context.args, ['timeout', 't'], 10, 600, 'Timeout');
|
|
2045
2059
|
const memory = parseDebugNumber(context.args, ['memory', 'm'], 128, 1024, 'Memory');
|
|
2046
2060
|
const readOnly = resolveDebugReadOnly(context.cwd, context.args['read-only']);
|
|
2061
|
+
const callStrategy = resolveDebugCallStrategy(context.cwd, context.args['call-strategy']);
|
|
2047
2062
|
const stream = readBoolFlag(context.args, ['stream']);
|
|
2048
2063
|
const includeExtraLibs = context.args['extra-libs'] !== false
|
|
2049
2064
|
&& !readBoolFlag(context.args, ['no-extra-libs']);
|
|
@@ -2059,6 +2074,7 @@ async function debugSingleComponent(context, componentId) {
|
|
|
2059
2074
|
timeout,
|
|
2060
2075
|
memory,
|
|
2061
2076
|
readOnly,
|
|
2077
|
+
callStrategy,
|
|
2062
2078
|
extraLibs: extraLibs.map((entry) => entry.payload),
|
|
2063
2079
|
});
|
|
2064
2080
|
const endpoint = stream ? buildSandboxDebugStreamUrl(sandboxEndpoint) : buildSandboxDebugUrl(sandboxEndpoint);
|