@uipath/maestro-builder-sdk 6.107.0 → 6.109.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/dist/api-index.md +10 -10
- package/dist/api-members.md +50 -45
- package/dist/check-cli.js +8 -3
- package/dist/check.d.ts +8 -0
- package/dist/check.js +10 -6
- package/dist/compile-cli.js +5 -0
- package/dist/core/nodes/node-type.d.ts +12 -2
- package/dist/core/refusals.d.ts +13 -0
- package/dist/core/refusals.js +13 -0
- package/dist/core/resource-resolution.d.ts +32 -0
- package/dist/core/resource-resolution.js +2 -0
- package/dist/core/solution-projects.d.ts +63 -0
- package/dist/core/solution-projects.js +37 -0
- package/dist/flow-node-type.d.ts +17 -0
- package/dist/merge-cli.js +8 -3
- package/dist/nodes/process/flow/check.js +36 -20
- package/dist/nodes/process/flow/contract.d.ts +81 -0
- package/dist/nodes/process/flow/contract.js +253 -0
- package/dist/nodes/process/flow/in-solution.d.ts +32 -0
- package/dist/nodes/process/flow/in-solution.js +169 -0
- package/dist/nodes/process/flow/node-type.js +37 -12
- package/dist/nodes/process/flow/refusals.d.ts +4 -1
- package/dist/nodes/process/flow/refusals.js +13 -1
- package/dist/nodes/process/flow/spec.d.ts +175 -20
- package/dist/registry/prepare/process-schema.d.ts +39 -0
- package/dist/registry/prepare/process-schema.js +90 -0
- package/dist/registry/prepare/resources.d.ts +2 -1
- package/dist/registry/prepare/resources.js +24 -3
- package/dist/registry/uip/commands.d.ts +8 -0
- package/dist/registry/uip/commands.js +10 -0
- package/dist/serialize.d.ts +9 -0
- package/dist/serialize.js +4 -2
- package/dist/solution-projects-files.d.ts +6 -0
- package/dist/solution-projects-files.js +163 -0
- package/package.json +2 -2
package/dist/api-index.md
CHANGED
|
@@ -51,21 +51,21 @@ could hand you spans for a version you do not have.
|
|
|
51
51
|
| `ActionSchemaSection` | interface | `dist/nodes/hitl/flow/spec.d.ts:274-280` | Supporting types | One section (`inputs`, `outputs`, `inOuts`, `outcomes`) of an `action-schema.json`. |
|
|
52
52
|
| `ActionSpec` | type | `dist/core/actions.d.ts:978-986` | Supporting types | One action step's spec: `{ kind }` plus that kind's body from FlowActionSpecs, for every kind there. |
|
|
53
53
|
| `agent` | function | `dist/nodes/process/flow/factories.d.ts:159-213` | Actions | Invoke an AGENT resource — either one published to Orchestrator or a sibling agent project registered in the same… |
|
|
54
|
-
| `AgentFlavour` | type | `dist/nodes/process/flow/spec.d.ts:
|
|
54
|
+
| `AgentFlavour` | type | `dist/nodes/process/flow/spec.d.ts:418-422` | Supporting types | Which KIND of agent project was published behind a `uipath.core.agent.<key>` resource. |
|
|
55
55
|
| `AgentGuardrail` | type | `dist/core/actions.d.ts:430` | Supporting types | |
|
|
56
56
|
| `agenticProcess` | function | `dist/nodes/process/flow/factories.d.ts:113-158` | Actions | Invoke a deployed AGENTIC PROCESS — a Maestro process orchestration published to Orchestrator: a BPMN process that… |
|
|
57
|
-
| `AgenticProcessCompletion` | type | `dist/nodes/process/flow/spec.d.ts:
|
|
58
|
-
| `AgenticProcessInputs` | type | `dist/nodes/process/flow/spec.d.ts:
|
|
59
|
-
| `AgenticProcessInputsBase` | interface | `dist/nodes/process/flow/spec.d.ts:
|
|
60
|
-
| `AgentInputs` | interface | `dist/nodes/process/flow/spec.d.ts:
|
|
61
|
-
| `AgentLocation` | type | `dist/nodes/process/flow/spec.d.ts:
|
|
57
|
+
| `AgenticProcessCompletion` | type | `dist/nodes/process/flow/spec.d.ts:373-415` | Supporting types | Whether an Agentic Process step waits for the process's result. |
|
|
58
|
+
| `AgenticProcessInputs` | type | `dist/nodes/process/flow/spec.d.ts:416-417` | Option shapes | What `agenticProcess()` takes: the shared fields plus the completion policy. |
|
|
59
|
+
| `AgenticProcessInputsBase` | interface | `dist/nodes/process/flow/spec.d.ts:288-372` | Option shapes | 8 field(s) |
|
|
60
|
+
| `AgentInputs` | interface | `dist/nodes/process/flow/spec.d.ts:425-551` | Option shapes | What `agent()` takes: the agent resource to start, its arguments, and the output fields a read may name. |
|
|
61
|
+
| `AgentLocation` | type | `dist/nodes/process/flow/spec.d.ts:423-424` | Supporting types | Where a published agent lives: deployed to a folder (`'published'`) or a sibling project of the same solution… |
|
|
62
62
|
| `AgentMemoryRef` | interface | `dist/core/actions.d.ts:589-613` | Supporting types | An episodic memory the agent learns from across runs, wired to the agent's own `memory` handle. |
|
|
63
63
|
| `AgentResourcePlacement` | interface | `dist/core/actions.d.ts:443-478` | Supporting types | Where one of an inline agent's resources (a context index, a tool, an escalation) sits in the `.flow`: the id of its own… |
|
|
64
64
|
| `AgentResources` | type | `dist/nodes/agent/flow/spec.d.ts:38-44` | Supporting types | The resources an agent attaches on its artifact handles — `context`, `tools` and `escalation`, written exactly as… |
|
|
65
65
|
| `Aggregation` | interface | `dist/nodes/transform/flow/spec.d.ts:36-42` | Supporting types | 3 field(s) |
|
|
66
66
|
| `AggregationOperation` | type | `dist/nodes/transform/flow/spec.d.ts:35` | Supporting types | |
|
|
67
67
|
| `apiWorkflow` | function | `dist/nodes/process/flow/factories.d.ts:53-87` | Actions | Invoke a deployed API workflow — a coded workflow published to Orchestrator, run as a serverless job rather than by a… |
|
|
68
|
-
| `ApiWorkflowInputs` | interface | `dist/nodes/process/flow/spec.d.ts:
|
|
68
|
+
| `ApiWorkflowInputs` | interface | `dist/nodes/process/flow/spec.d.ts:104-194` | Option shapes | 8 field(s) |
|
|
69
69
|
| `AppRef` | interface | `dist/nodes/hitl/flow/spec.d.ts:146-254` | Supporting types | A deployed Action App that supplies a human task's form — the `'action-app'` variant's subject. |
|
|
70
70
|
| `ArmBuilder` | class | `dist/flow-sdk.d.ts:1271-1294` | Builders | The sub-builder an ARM callback receives — a `StepList` that can also name itself with `.label(...)`. |
|
|
71
71
|
| `AskedField` | interface | `dist/core/actions.d.ts:258-277` | Supporting types | A value the reviewer FILLS IN: read downstream with `out('<step>', '<id>')`. |
|
|
@@ -236,7 +236,7 @@ could hand you spans for a version you do not have.
|
|
|
236
236
|
| `ProcessToolKind` | type | `dist/core/actions.d.ts:712-725` | Supporting types | The tool kinds that wrap a DEPLOYED tenant resource. |
|
|
237
237
|
| `ProcessToolRef` | interface | `dist/core/actions.d.ts:755-788` | Supporting types | A deployed tenant resource the agent may invoke. |
|
|
238
238
|
| `publishedFunction` | function | `dist/nodes/process/flow/factories.d.ts:88-112` | Actions | Invoke a published Orchestrator **Function** — a deployed unit of code run as one step (`uipath.core.function.<key>`,… |
|
|
239
|
-
| `PublishedFunctionInputs` | interface | `dist/nodes/process/flow/spec.d.ts:
|
|
239
|
+
| `PublishedFunctionInputs` | interface | `dist/nodes/process/flow/spec.d.ts:195-287` | Option shapes | A published Orchestrator **Function** — a small, single-purpose unit of code deployed as its own resource and invoked as… |
|
|
240
240
|
| `queueItem` | function | `dist/nodes/queue/flow/factories.d.ts:4-49` | Actions | Declare an Orchestrator QUEUE ITEM step. |
|
|
241
241
|
| `QueueItemInputs` | interface | `dist/nodes/queue/flow/spec.d.ts:11-84` | Option shapes | 10 field(s) |
|
|
242
242
|
| `QueuePriority` | type | `dist/nodes/queue/flow/spec.d.ts:9-10` | Supporting types | The three priorities an Orchestrator queue item can carry. |
|
|
@@ -250,11 +250,11 @@ could hand you spans for a version you do not have.
|
|
|
250
250
|
| `resolvedValue` | function | `dist/core/lookups.d.ts:185-192` | Generated descriptors | The recorded id for a token, or `undefined`. |
|
|
251
251
|
| `resolveEventWhere` | function | `dist/core/lookups.d.ts:268-285` | Generated descriptors | An event subscription's `where` with every lookup token swapped for the id `registry prepare --resolve` recorded, or a… |
|
|
252
252
|
| `ResourceRef` | interface | `dist/core/resource-resolution.d.ts:4-18` | Supporting types | A solution resource by kind and name, and — for one in an Orchestrator folder — that folder's PATH (`Shared`,… |
|
|
253
|
-
| `ResourceToken` | interface | `dist/core/resource-resolution.d.ts:
|
|
253
|
+
| `ResourceToken` | interface | `dist/core/resource-resolution.d.ts:198-208` | Supporting types | A solution resource as a connector input: what `resource()` and `entity()` return. |
|
|
254
254
|
| `ReturnFieldType` | type | `dist/core/actions.d.ts:305-322` | Supporting types | A JSON-schema-ish type for one field of a step's declared `returns`. |
|
|
255
255
|
| `ReturnOptions` | interface | `dist/flow-sdk.d.ts:384-425` | Option shapes | `.return(...)`-specific options. |
|
|
256
256
|
| `rpaWorkflow` | function | `dist/nodes/process/flow/factories.d.ts:8-52` | Actions | Invoke a deployed RPA (robotic process automation) workflow — a classic UI-automation process, published to… |
|
|
257
|
-
| `RpaWorkflowInputs` | interface | `dist/nodes/process/flow/spec.d.ts:11-
|
|
257
|
+
| `RpaWorkflowInputs` | interface | `dist/nodes/process/flow/spec.d.ts:11-103` | Option shapes | 8 field(s) |
|
|
258
258
|
| `SCHEDULE_PRESETS` | const | `dist/nodes/trigger/flow/spec.d.ts:8-15` | Actions | The eight intervals the designer offers in its Frequency dropdown. |
|
|
259
259
|
| `scheduled` | function | `dist/nodes/trigger/flow/factories.d.ts:12-31` | Actions | Start the flow on a recurring schedule instead of on demand. |
|
|
260
260
|
| `ScheduledInputs` | interface | `dist/nodes/trigger/flow/spec.d.ts:29-51` | Option shapes | 1 field(s) |
|
package/dist/api-members.md
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
# Maestro Builder SDK — member index
|
|
7
7
|
|
|
8
|
-
**A lookup table of
|
|
8
|
+
**A lookup table of 1352 rows — match one name in it, do not read it.**
|
|
9
9
|
Grep or search for the member you have; the row it lands on is the whole
|
|
10
10
|
answer. Reading top to bottom costs ~20x what the one row does and tells you
|
|
11
11
|
nothing you asked for.
|
|
12
12
|
|
|
13
|
-
Every field and method of every exported shape —
|
|
13
|
+
Every field and method of every exported shape — 1352 across
|
|
14
14
|
250 interfaces and classes — keyed by the MEMBER's own name.
|
|
15
15
|
|
|
16
16
|
**Use this when the name you have is a field or a method**, which is usually
|
|
@@ -32,7 +32,7 @@ truncated summary would, for less. Read the span.
|
|
|
32
32
|
Member names repeat across shapes (`name` is declared on 69 of them), so the
|
|
33
33
|
`Declared on` column is what makes a match actionable. For the whole shape
|
|
34
34
|
rather than the one field, look that name up in [`api-index.md`](api-index.md) —
|
|
35
|
-
which is why its span is not repeated on all
|
|
35
|
+
which is why its span is not repeated on all 1352 rows here.
|
|
36
36
|
|
|
37
37
|
**A name that misses both indexes is probably not part of the API.** The one
|
|
38
38
|
that comes up is a RUNTIME output key — a human task's `Action`, a step's
|
|
@@ -46,7 +46,7 @@ not find it either.
|
|
|
46
46
|
| --- | --- | --- | --- |
|
|
47
47
|
| `__lookup` | property | `LookupToken` | `dist/core/lookups.d.ts:46-51` |
|
|
48
48
|
| `__outputs` | property | `FlowNode` | `dist/core/node-classes.d.ts:146-150` |
|
|
49
|
-
| `__resource` | property | `ResourceToken` | `dist/core/resource-resolution.d.ts:
|
|
49
|
+
| `__resource` | property | `ResourceToken` | `dist/core/resource-resolution.d.ts:207` |
|
|
50
50
|
| `$guardrailType` | property | `BuiltInValidatorGuardrail` | `dist/core/actions.d.ts:392` |
|
|
51
51
|
| `$guardrailType` | property | `CustomGuardrail` | `dist/core/actions.d.ts:379` |
|
|
52
52
|
| `action` | property | `BuiltInValidatorGuardrail` | `dist/core/actions.d.ts:396` |
|
|
@@ -61,16 +61,16 @@ not find it either.
|
|
|
61
61
|
| `activity` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3205-3243` |
|
|
62
62
|
| `actualPrompt` | property | `StartingPrompt` | `dist/nodes/trigger/flow/spec.d.ts:59-60` |
|
|
63
63
|
| `additionalOutputs` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:98-102` |
|
|
64
|
-
| `agent` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:
|
|
64
|
+
| `agent` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:570-573` |
|
|
65
65
|
| `agent` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1326-1335` |
|
|
66
|
-
| `agenticProcess` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:
|
|
66
|
+
| `agenticProcess` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:566-569` |
|
|
67
67
|
| `aiSummary` | property | `CaseAppConfig` | `dist/case/case-sdk.d.ts:1121-1126` |
|
|
68
68
|
| `alias` | property | `Aggregation` | `dist/nodes/transform/flow/spec.d.ts:38-39` |
|
|
69
69
|
| `aliases` | property | `LookupSpec` | `dist/core/lookups.d.ts:31-32` |
|
|
70
70
|
| `allErrors` | property | `RetrySpec` | `dist/bpmn/bpmn-sdk.d.ts:950-951` |
|
|
71
71
|
| `allowAdhocOptionalStageTasks` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:1199-1200` |
|
|
72
72
|
| `allowAdhocTasks` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1977-1984` |
|
|
73
|
-
| `apiWorkflow` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:
|
|
73
|
+
| `apiWorkflow` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:558-561` |
|
|
74
74
|
| `apiWorkflow` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1346-1355` |
|
|
75
75
|
| `app` | property | `EscalationRef` | `dist/core/actions.d.ts:852-879` |
|
|
76
76
|
| `app` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:326-330` |
|
|
@@ -440,7 +440,7 @@ not find it either.
|
|
|
440
440
|
| `filters` | property | `DataFabricReadInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:85-86` |
|
|
441
441
|
| `filters` | property | `EventSubscription` | `dist/core/actions.d.ts:1212-1213` |
|
|
442
442
|
| `filters` | property | `TriggerOptions` | `dist/core/actions.d.ts:1169-1170` |
|
|
443
|
-
| `flavour` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
443
|
+
| `flavour` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:536-550` |
|
|
444
444
|
| `flowIds` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3407-3450` |
|
|
445
445
|
| `flowMode` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2347-2386` |
|
|
446
446
|
| `flowProcess` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1368-1377` |
|
|
@@ -476,9 +476,9 @@ not find it either.
|
|
|
476
476
|
| `folderKey` | property | `RemoteA2aToolRef` | `dist/core/actions.d.ts:526` |
|
|
477
477
|
| `FolderKey` | property | `FlowMetadata` | `dist/nodes/script/flow/spec.d.ts:85-86` |
|
|
478
478
|
| `folderName` | property | `IxpExtractInputs` | `dist/nodes/document/flow/spec.d.ts:143-149` |
|
|
479
|
-
| `folderPath` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:
|
|
480
|
-
| `folderPath` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
481
|
-
| `folderPath` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
479
|
+
| `folderPath` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:340-347` |
|
|
480
|
+
| `folderPath` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:476-487` |
|
|
481
|
+
| `folderPath` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:153-160` |
|
|
482
482
|
| `folderPath` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:198-204` |
|
|
483
483
|
| `folderPath` | property | `ConnectorEventOpts` | `dist/bpmn/bpmn-sdk.d.ts:1663-1669` |
|
|
484
484
|
| `folderPath` | property | `ContextIndexRef` | `dist/core/actions.d.ts:912-913` |
|
|
@@ -486,14 +486,14 @@ not find it either.
|
|
|
486
486
|
| `folderPath` | property | `IxpExtractInputs` | `dist/nodes/document/flow/spec.d.ts:169-175` |
|
|
487
487
|
| `folderPath` | property | `McpToolRef` | `dist/core/actions.d.ts:492-493` |
|
|
488
488
|
| `folderPath` | property | `ProcessToolRef` | `dist/core/actions.d.ts:772-773` |
|
|
489
|
-
| `folderPath` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
489
|
+
| `folderPath` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:250-260` |
|
|
490
490
|
| `folderPath` | property | `QueueItemInputs` | `dist/nodes/queue/flow/spec.d.ts:14-15` |
|
|
491
491
|
| `folderPath` | property | `RemoteA2aToolRef` | `dist/core/actions.d.ts:525` |
|
|
492
|
-
| `folderPath` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
492
|
+
| `folderPath` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:58-65` |
|
|
493
493
|
| `folderPath` | property | `TaskRef` | `dist/case/case-sdk.d.ts:748` |
|
|
494
494
|
| `fork` | property | `ParallelOptions` | `dist/flow-sdk.d.ts:356-373` |
|
|
495
495
|
| `fork` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3350-3375` |
|
|
496
|
-
| `form` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:
|
|
496
|
+
| `form` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:364-371` |
|
|
497
497
|
| `form` | property | `HumanTaskAppOpts` | `dist/bpmn/bpmn-sdk.d.ts:1554-1555` |
|
|
498
498
|
| `form` | property | `HumanTaskFormOpts` | `dist/bpmn/bpmn-sdk.d.ts:1588-1589` |
|
|
499
499
|
| `format` | property | `ActionSchemaProperty` | `dist/nodes/hitl/flow/spec.d.ts:267-268` |
|
|
@@ -579,9 +579,9 @@ not find it either.
|
|
|
579
579
|
| `inputs` | property | `ActionSchemaFile` | `dist/nodes/hitl/flow/spec.d.ts:283-284` |
|
|
580
580
|
| `inputs` | property | `ActionSpecData` | `dist/case/case-sdk.d.ts:889-890` |
|
|
581
581
|
| `inputs` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1779-1780` |
|
|
582
|
-
| `inputs` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:
|
|
583
|
-
| `inputs` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
584
|
-
| `inputs` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
582
|
+
| `inputs` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:358-363` |
|
|
583
|
+
| `inputs` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:494-511` |
|
|
584
|
+
| `inputs` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:172-176` |
|
|
585
585
|
| `inputs` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:211-219` |
|
|
586
586
|
| `inputs` | property | `BuiltEntryPoint` | `dist/flow-sdk.d.ts:733-734` |
|
|
587
587
|
| `inputs` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:751` |
|
|
@@ -592,9 +592,9 @@ not find it either.
|
|
|
592
592
|
| `inputs` | property | `NodeContribution` | `dist/core/node-classes.d.ts:122-126` |
|
|
593
593
|
| `inputs` | property | `PlatformActionSchema` | `dist/nodes/hitl/flow/spec.d.ts:307-308` |
|
|
594
594
|
| `inputs` | property | `ProcessToolRef` | `dist/core/actions.d.ts:780-785` |
|
|
595
|
-
| `inputs` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
595
|
+
| `inputs` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:272-273` |
|
|
596
596
|
| `inputs` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:95-96` |
|
|
597
|
-
| `inputs` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
597
|
+
| `inputs` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:77-82` |
|
|
598
598
|
| `inputs` | property | `ScriptTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1026-1045` |
|
|
599
599
|
| `inputs` | property | `SubflowSpec` | `dist/flow-sdk.d.ts:58-59` |
|
|
600
600
|
| `inputs` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1658-1693` |
|
|
@@ -629,19 +629,19 @@ not find it either.
|
|
|
629
629
|
| `join` | property | `ChooseOpts` | `dist/bpmn/bpmn-sdk.d.ts:2082-2083` |
|
|
630
630
|
| `join` | property | `SplitOpts` | `dist/bpmn/bpmn-sdk.d.ts:2089-2090` |
|
|
631
631
|
| `js` | property | `Expr` | `dist/core/expr.d.ts:17` |
|
|
632
|
-
| `key` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:
|
|
633
|
-
| `key` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
634
|
-
| `key` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
632
|
+
| `key` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:289-307` |
|
|
633
|
+
| `key` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:427-448` |
|
|
634
|
+
| `key` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:105-124` |
|
|
635
635
|
| `key` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:179-185` |
|
|
636
636
|
| `key` | property | `HitlConnection` | `dist/nodes/hitl/flow/spec.d.ts:28-29` |
|
|
637
637
|
| `key` | property | `HttpRequestConnector` | `dist/case/case-sdk.d.ts:613-614` |
|
|
638
638
|
| `key` | property | `HumanTaskAppOpts` | `dist/bpmn/bpmn-sdk.d.ts:1568-1569` |
|
|
639
639
|
| `key` | property | `McpToolRef` | `dist/core/actions.d.ts:489-490` |
|
|
640
640
|
| `key` | property | `ProcessToolRef` | `dist/core/actions.d.ts:764-769` |
|
|
641
|
-
| `key` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
641
|
+
| `key` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:202-220` |
|
|
642
642
|
| `key` | property | `QueueItemInputs` | `dist/nodes/queue/flow/spec.d.ts:16-25` |
|
|
643
643
|
| `key` | property | `RemoteA2aToolRef` | `dist/core/actions.d.ts:517-518` |
|
|
644
|
-
| `key` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:12-
|
|
644
|
+
| `key` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:12-30` |
|
|
645
645
|
| `kind` | property | `BuiltinToolRef` | `dist/core/actions.d.ts:619` |
|
|
646
646
|
| `kind` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:995` |
|
|
647
647
|
| `kind` | property | `BuiltTrigger` | `dist/case/case-sdk.d.ts:282` |
|
|
@@ -681,13 +681,13 @@ not find it either.
|
|
|
681
681
|
| `limit` | property | `DataFabricReadInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:101-106` |
|
|
682
682
|
| `limit` | property | `DoWhileOptions` | `dist/flow-sdk.d.ts:456-457` |
|
|
683
683
|
| `literal` | property | `Expr` | `dist/core/expr.d.ts:18` |
|
|
684
|
-
| `location` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:
|
|
685
|
-
| `location` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
686
|
-
| `location` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
684
|
+
| `location` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:310-320` |
|
|
685
|
+
| `location` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:451-456` |
|
|
686
|
+
| `location` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:127-133` |
|
|
687
687
|
| `location` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:186-197` |
|
|
688
688
|
| `location` | property | `CarriedConnectorField` | `dist/core/carried-connector-fields.d.ts:43-44` |
|
|
689
|
-
| `location` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
690
|
-
| `location` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
689
|
+
| `location` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:223-230` |
|
|
690
|
+
| `location` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:33-38` |
|
|
691
691
|
| `lookups` | property | `ConnectorMeta` | `dist/core/connectors.d.ts:89-100` |
|
|
692
692
|
| `loop` | property | `ActivityNodeFields` | `dist/bpmn/bpmn-sdk.d.ts:365-366` |
|
|
693
693
|
| `loop` | property | `ActivityOpts` | `dist/bpmn/bpmn-sdk.d.ts:979-980` |
|
|
@@ -754,10 +754,10 @@ not find it either.
|
|
|
754
754
|
| `name` | property | `ActionAppRef` | `dist/case/case-sdk.d.ts:834-835` |
|
|
755
755
|
| `name` | property | `ActionField` | `dist/case/case-sdk.d.ts:795-796` |
|
|
756
756
|
| `name` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1767-1768` |
|
|
757
|
-
| `name` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:
|
|
758
|
-
| `name` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
757
|
+
| `name` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:308-309` |
|
|
758
|
+
| `name` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:449-450` |
|
|
759
759
|
| `name` | property | `AgentMemoryRef` | `dist/core/actions.d.ts:598-599` |
|
|
760
|
-
| `name` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
760
|
+
| `name` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:125-126` |
|
|
761
761
|
| `name` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:177-178` |
|
|
762
762
|
| `name` | property | `BindingContribution` | `dist/core/node-classes.d.ts:96-97` |
|
|
763
763
|
| `name` | property | `BindingDecl` | `dist/bpmn/bpmn-sdk.d.ts:468-469` |
|
|
@@ -815,7 +815,7 @@ not find it either.
|
|
|
815
815
|
| `name` | property | `PlainTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1874-1875` |
|
|
816
816
|
| `name` | property | `PlatformActionSchemaArg` | `dist/nodes/hitl/flow/spec.d.ts:294-295` |
|
|
817
817
|
| `name` | property | `ProcessToolRef` | `dist/core/actions.d.ts:770-771` |
|
|
818
|
-
| `name` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
818
|
+
| `name` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:221-222` |
|
|
819
819
|
| `name` | property | `QueueItemOpts` | `dist/bpmn/bpmn-sdk.d.ts:1486-1487` |
|
|
820
820
|
| `name` | property | `ReceiveMessageOpts` | `dist/bpmn/bpmn-sdk.d.ts:1614-1615` |
|
|
821
821
|
| `name` | property | `RegistryContextField` | `dist/bpmn/typed-node.d.ts:22` |
|
|
@@ -825,7 +825,7 @@ not find it either.
|
|
|
825
825
|
| `name` | property | `ResolvedEventTriggerOpts` | `dist/case/case-sdk.d.ts:369-370` |
|
|
826
826
|
| `name` | property | `ResourceRef` | `dist/core/resource-resolution.d.ts:14-15` |
|
|
827
827
|
| `name` | property | `ReturnOptions` | `dist/flow-sdk.d.ts:399-424` |
|
|
828
|
-
| `name` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
828
|
+
| `name` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:31-32` |
|
|
829
829
|
| `name` | property | `ScriptTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:991-992` |
|
|
830
830
|
| `name` | property | `SplitOpts` | `dist/bpmn/bpmn-sdk.d.ts:2087-2088` |
|
|
831
831
|
| `name` | property | `StartOpts` | `dist/bpmn/bpmn-sdk.d.ts:725-726` |
|
|
@@ -967,13 +967,18 @@ not find it either.
|
|
|
967
967
|
| `process` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1288-1297` |
|
|
968
968
|
| `processId` | property | `SugarRegistry` | `dist/bpmn/bpmn-sdk.d.ts:2226-2231` |
|
|
969
969
|
| `ProcessKey` | property | `FlowMetadata` | `dist/nodes/script/flow/spec.d.ts:89-90` |
|
|
970
|
+
| `project` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:321-339` |
|
|
971
|
+
| `project` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:457-475` |
|
|
972
|
+
| `project` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:134-152` |
|
|
970
973
|
| `project` | property | `IxpExtractInputs` | `dist/nodes/document/flow/spec.d.ts:111-124` |
|
|
971
|
-
| `
|
|
972
|
-
| `
|
|
973
|
-
| `projectId` | property | `
|
|
974
|
+
| `project` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:231-249` |
|
|
975
|
+
| `project` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:39-57` |
|
|
976
|
+
| `projectId` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:348-357` |
|
|
977
|
+
| `projectId` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:488-493` |
|
|
978
|
+
| `projectId` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:161-171` |
|
|
974
979
|
| `projectId` | property | `IxpToolRef` | `dist/core/actions.d.ts:801-811` |
|
|
975
|
-
| `projectId` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
976
|
-
| `projectId` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
980
|
+
| `projectId` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:261-271` |
|
|
981
|
+
| `projectId` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:66-76` |
|
|
977
982
|
| `prompt` | property | `BatchTransformInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:48-49` |
|
|
978
983
|
| `prompt` | property | `SummarizeInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:33-34` |
|
|
979
984
|
| `properties` | property | `ActionSchemaProperty` | `dist/nodes/hitl/flow/spec.d.ts:271-272` |
|
|
@@ -981,7 +986,7 @@ not find it either.
|
|
|
981
986
|
| `propertyAttribute` | property | `BindingContribution` | `dist/core/node-classes.d.ts:106-107` |
|
|
982
987
|
| `propertyAttribute` | property | `BindingDecl` | `dist/bpmn/bpmn-sdk.d.ts:472-473` |
|
|
983
988
|
| `propertyAttribute` | property | `BindingOpts` | `dist/bpmn/bpmn-sdk.d.ts:1202-1203` |
|
|
984
|
-
| `publishedFunction` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:
|
|
989
|
+
| `publishedFunction` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:562-565` |
|
|
985
990
|
| `query` | property | `BuiltinToolRef` | `dist/core/actions.d.ts:624-630` |
|
|
986
991
|
| `query` | property | `CaseHttpRequestSpec` | `dist/case/case-sdk.d.ts:588-594` |
|
|
987
992
|
| `query` | property | `ContextIndexRef` | `dist/core/actions.d.ts:916-921` |
|
|
@@ -1061,15 +1066,15 @@ not find it either.
|
|
|
1061
1066
|
| `retryCount` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:119-133` |
|
|
1062
1067
|
| `return` | method | `StepList` | `dist/flow-sdk.d.ts:1260-1269` |
|
|
1063
1068
|
| `returnCitations` | property | `SummarizeInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:35-40` |
|
|
1064
|
-
| `returns` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
1065
|
-
| `returns` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
1069
|
+
| `returns` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:512-535` |
|
|
1070
|
+
| `returns` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:177-193` |
|
|
1066
1071
|
| `returns` | property | `ClientSideToolRef` | `dist/core/actions.d.ts:542-543` |
|
|
1067
1072
|
| `returns` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:69-91` |
|
|
1068
1073
|
| `returns` | property | `InlineAgentInputs` | `dist/nodes/agent/flow/spec.d.ts:280-293` |
|
|
1069
1074
|
| `returns` | property | `ProcessToolRef` | `dist/core/actions.d.ts:786-787` |
|
|
1070
|
-
| `returns` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
1075
|
+
| `returns` | property | `PublishedFunctionInputs` | `dist/nodes/process/flow/spec.d.ts:274-286` |
|
|
1071
1076
|
| `returns` | property | `QueueItemInputs` | `dist/nodes/queue/flow/spec.d.ts:63-83` |
|
|
1072
|
-
| `returns` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:
|
|
1077
|
+
| `returns` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:83-102` |
|
|
1073
1078
|
| `returns` | property | `ScriptInputs` | `dist/nodes/script/flow/spec.d.ts:10-43` |
|
|
1074
1079
|
| `role` | property | `FlowAction` | `dist/core/node-classes.d.ts:175-176` |
|
|
1075
1080
|
| `role` | property | `FlowNode` | `dist/core/node-classes.d.ts:151-152` |
|
|
@@ -1077,7 +1082,7 @@ not find it either.
|
|
|
1077
1082
|
| `role` | property | `FlowTrigger` | `dist/core/node-classes.d.ts:182-183` |
|
|
1078
1083
|
| `routedWaypoints` | property | `EdgeRoute` | `dist/flow-sdk.d.ts:657-662` |
|
|
1079
1084
|
| `rpa` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1336-1345` |
|
|
1080
|
-
| `rpaWorkflow` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:
|
|
1085
|
+
| `rpaWorkflow` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:554-557` |
|
|
1081
1086
|
| `rule` | property | `CaseRule` | `dist/case/case-sdk.d.ts:98` |
|
|
1082
1087
|
| `rules` | property | `BuiltCaseExitCondition` | `dist/case/case-sdk.d.ts:458` |
|
|
1083
1088
|
| `rules` | property | `BuiltEntryCondition` | `dist/case/case-sdk.d.ts:400` |
|
package/dist/check-cli.js
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
* `flow merge` and `flow decompile` take it.
|
|
16
16
|
*/
|
|
17
17
|
import { existsSync, readFileSync } from 'node:fs';
|
|
18
|
+
import { dirname, resolve } from 'node:path';
|
|
18
19
|
import { diagnosticLine, reportDiagnostics, reportResult } from './cli-result.js';
|
|
19
20
|
import { defaultBindingsFile, defaultResourcesFile } from './workdir.js';
|
|
20
21
|
import { readCliResources } from './registry/prepare/resources.js';
|
|
@@ -29,6 +30,7 @@ import { ensureTypeScriptRuntime } from './node-runtime.js';
|
|
|
29
30
|
import { withDecompiledOriginal } from './merge-compile.js';
|
|
30
31
|
import { baselineSummary } from './core/baseline-scope.js';
|
|
31
32
|
import { loadNodePackages } from './node-packages.js';
|
|
33
|
+
import { readSolutionProjects } from './solution-projects-files.js';
|
|
32
34
|
/** Flags that take a value, so the value is never read as the source argument. */
|
|
33
35
|
const VALUE_FLAGS = new Set(['--library', '--bindings', '--connectors-local', '--resources', '--baseline', '--package']);
|
|
34
36
|
/**
|
|
@@ -44,7 +46,7 @@ const VALUE_FLAGS = new Set(['--library', '--bindings', '--connectors-local', '-
|
|
|
44
46
|
* compile-cli's flags and defaults: the library is the one
|
|
45
47
|
* `withFetchedDefinitions` opens for compile.
|
|
46
48
|
*/
|
|
47
|
-
function checkOpts(argv, library) {
|
|
49
|
+
function checkOpts(argv, library, solution) {
|
|
48
50
|
// The default bindings.json (workdir.ts), exactly as compile-cli finds it — so the
|
|
49
51
|
// own-name refusal compile would raise is reported here first.
|
|
50
52
|
const bindFlag = argv.indexOf('--bindings');
|
|
@@ -56,7 +58,7 @@ function checkOpts(argv, library) {
|
|
|
56
58
|
// The resource ledger `prepare` writes, the default found as bindings.json is.
|
|
57
59
|
const resources = readCliResources(argv, defaultResourcesFile());
|
|
58
60
|
// The node registry cache a manifest-less `rawNode` resolves from (#1981), read on first use.
|
|
59
|
-
return { ...flowCheckOpts(library, bindings), ...(resources ? { resources } : {}), nodeCatalog: readNodeCatalog() };
|
|
61
|
+
return { ...flowCheckOpts(library, bindings), ...(resources ? { resources } : {}), nodeCatalog: readNodeCatalog(), ...(solution ? { solution } : {}) };
|
|
60
62
|
}
|
|
61
63
|
export async function run(argv) {
|
|
62
64
|
const arg = argv.find((a, i) => !a.startsWith('--') && !VALUE_FLAGS.has(argv[i - 1])) ?? argv[0];
|
|
@@ -74,10 +76,13 @@ export async function run(argv) {
|
|
|
74
76
|
const file = resolveFlowFile(arg);
|
|
75
77
|
ensureTypeScriptRuntime();
|
|
76
78
|
const built = await loadBuiltFlow(file);
|
|
79
|
+
// The solution the flow sits in, read as compile reads it, so an in-solution
|
|
80
|
+
// step named by `project` is judged against the same sibling (#1978).
|
|
81
|
+
const solution = readSolutionProjects(dirname(resolve(file)));
|
|
77
82
|
// A connector operation no layer carries is fetched through `uip` and the
|
|
78
83
|
// check runs again, as `compile` does (docs/CONNECTOR_LIBRARY_OPTIONAL_DESIGN.md).
|
|
79
84
|
const diags = await withFetchedDefinitions(argv, (library) => {
|
|
80
|
-
const opts = checkOpts(argv, library);
|
|
85
|
+
const opts = checkOpts(argv, library, solution);
|
|
81
86
|
return baselinePath !== undefined ? checkAgainstBaseline(built, baselinePath, original, opts, flagValues(argv, '--package')) : check(built, opts);
|
|
82
87
|
}, { who: 'check' });
|
|
83
88
|
reportDiagnostics(diags);
|
package/dist/check.d.ts
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* serializer in collect mode (`serializerRefusals`), so each of those rules
|
|
9
9
|
* lives in the serializer alone.
|
|
10
10
|
*/
|
|
11
|
+
import type { SolutionProjects } from './core/solution-projects.js';
|
|
11
12
|
import type { ResourceResolutions } from './core/resource-resolution.js';
|
|
12
13
|
import type { NodeCatalog } from './core/node-catalog.js';
|
|
13
14
|
import type { Library } from './core/library.js';
|
|
@@ -68,6 +69,13 @@ export interface CheckOpts extends ConnectorCheckOpts, EventCheckOpts {
|
|
|
68
69
|
* `entity()`, with no row here is `RESOURCE_UNRESOLVED`.
|
|
69
70
|
*/
|
|
70
71
|
resources?: ResourceResolutions;
|
|
72
|
+
/**
|
|
73
|
+
* The solution the flow is authored in and its sibling projects, read by the
|
|
74
|
+
* CLI (`readSolutionProjects`, #1978). `check` gives it to the serializer
|
|
75
|
+
* pass and to each step's `withSolution`, as `compile` does, so an in-solution
|
|
76
|
+
* step named by `project` is judged as it compiles.
|
|
77
|
+
*/
|
|
78
|
+
solution?: SolutionProjects;
|
|
71
79
|
/** Resolve the measured collection envelope for one connector operation. */
|
|
72
80
|
listEnvelope?: (connector: string, operation: string, version?: string, object?: string) => ListEnvelopeFields | undefined;
|
|
73
81
|
/**
|
package/dist/check.js
CHANGED
|
@@ -54,7 +54,7 @@ export function checkCompiled(built, opts = {}) {
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
const serialized = opts.serializer !== false
|
|
57
|
-
? serializerRefusals(built, { library: opts.library, bindings: opts.bindings, resources: opts.resources, nodeCatalog: opts.nodeCatalog }, diags)
|
|
57
|
+
? serializerRefusals(built, { library: opts.library, bindings: opts.bindings, resources: opts.resources, nodeCatalog: opts.nodeCatalog, ...(opts.solution !== undefined ? { solution: opts.solution } : {}) }, diags)
|
|
58
58
|
: { diagnostics: [], flow: undefined };
|
|
59
59
|
diags.push(...serialized.diagnostics);
|
|
60
60
|
const placed = serialized.flow !== undefined ? placeDiagnostics(diags, serialized.flow) : undefined;
|
|
@@ -1124,7 +1124,7 @@ function checkFlow(built, ancestors, opts = {}) {
|
|
|
1124
1124
|
// at the same point as the per-family no-output rules below.
|
|
1125
1125
|
const placed = checkedSteps.get(name);
|
|
1126
1126
|
if (placed) {
|
|
1127
|
-
const contract = placed.impl.output(placed.spec);
|
|
1127
|
+
const contract = placed.impl.output(placed.spec, { resources: opts.resources });
|
|
1128
1128
|
if (contract.kind === 'none') {
|
|
1129
1129
|
diags.push(catalogued(placed.entry, step, contract.code, contract.message({ node: name, ref: `$vars.${name}${field ? '.' + field : ''}`, reader: step })));
|
|
1130
1130
|
continue;
|
|
@@ -1199,7 +1199,7 @@ function checkFlow(built, ancestors, opts = {}) {
|
|
|
1199
1199
|
// A registered node type that states its output's fields: the same read
|
|
1200
1200
|
// rule, worded by its contract and reported through its family's catalog.
|
|
1201
1201
|
const fieldsPlaced = checkedSteps.get(name);
|
|
1202
|
-
const fieldsContract = fieldsPlaced?.impl.output(fieldsPlaced.spec);
|
|
1202
|
+
const fieldsContract = fieldsPlaced?.impl.output(fieldsPlaced.spec, { resources: opts.resources });
|
|
1203
1203
|
if (fieldsPlaced && fieldsContract?.kind === 'fields') {
|
|
1204
1204
|
const found = [];
|
|
1205
1205
|
checkDeclaredOutputRead({
|
|
@@ -2404,9 +2404,11 @@ function registeredKind(spec) {
|
|
|
2404
2404
|
* cause the gap, so there is no author diagnostic to report.
|
|
2405
2405
|
*/
|
|
2406
2406
|
function checkRegisteredStep(entry, s, exprs, errorSource, opts, diags, typeOf, triggerId, carried) {
|
|
2407
|
-
|
|
2407
|
+
/** The spec `impl` judges: what the solution says about a sibling it names filled in (#1978), as serialize fills it. */
|
|
2408
|
+
const specFor = (impl) => (impl.withSolution ? impl.withSolution(s.spec, opts.solution) : s.spec);
|
|
2408
2409
|
/** The step's node-local rules and expressions, as `impl` defines them. */
|
|
2409
2410
|
const runRules = (impl, version = impl.version, carriedDef) => {
|
|
2411
|
+
const spec = specFor(impl);
|
|
2410
2412
|
const ctx = {
|
|
2411
2413
|
step: s.name,
|
|
2412
2414
|
// At a carried version, the version and definition serialize emits.
|
|
@@ -2458,7 +2460,7 @@ function checkRegisteredStep(entry, s, exprs, errorSource, opts, diags, typeOf,
|
|
|
2458
2460
|
let carriedDef;
|
|
2459
2461
|
try {
|
|
2460
2462
|
// A pin the registry lacks but the flow carries resolves (#1128), as in serialize.
|
|
2461
|
-
const resolved = resolveVersionCarried(entry.type, spec, s.options?.version, `step "${s.name}"`, carried);
|
|
2463
|
+
const resolved = resolveVersionCarried(entry.type, s.spec, s.options?.version, `step "${s.name}"`, carried);
|
|
2462
2464
|
impl = resolved.impl;
|
|
2463
2465
|
version = resolved.version;
|
|
2464
2466
|
carriedDef = resolved.carried;
|
|
@@ -2472,14 +2474,16 @@ function checkRegisteredStep(entry, s, exprs, errorSource, opts, diags, typeOf,
|
|
|
2472
2474
|
// would get unpinned (select(), else the default) — as decompile lifts an
|
|
2473
2475
|
// unregistered version — so fixing the pin is not followed by a second round.
|
|
2474
2476
|
// It stays unplaced: the pin is wrong, so no family rule may rely on it.
|
|
2475
|
-
const fallback = resolveVersion(entry.type, spec, undefined, `step "${s.name}"`);
|
|
2477
|
+
const fallback = resolveVersion(entry.type, s.spec, undefined, `step "${s.name}"`);
|
|
2476
2478
|
const fallbackCtx = runRules(fallback);
|
|
2479
|
+
const spec = specFor(fallback);
|
|
2477
2480
|
return {
|
|
2478
2481
|
placed: false,
|
|
2479
2482
|
checked: { entry, impl: fallback, spec, placement: { step: s.name, kind: fallback.kind, spec, version: fallback.version }, ctx: fallbackCtx },
|
|
2480
2483
|
};
|
|
2481
2484
|
}
|
|
2482
2485
|
const ctx = runRules(impl, version, carriedDef);
|
|
2486
|
+
const spec = specFor(impl);
|
|
2483
2487
|
return {
|
|
2484
2488
|
placed: true,
|
|
2485
2489
|
checked: {
|
package/dist/compile-cli.js
CHANGED
|
@@ -40,6 +40,7 @@ import { Bindings } from './bindings.js';
|
|
|
40
40
|
import { flagValue, runWhenInvokedDirectly } from './cli-run.js';
|
|
41
41
|
import { connectionResources, inlineAgentResources, mergeBindingsV2, projectBindingRows, refreshInlineAgentRows } from './bindings-v2.js';
|
|
42
42
|
import { readBindingsV2, readInlineAgentFiles } from './bindings-v2-files.js';
|
|
43
|
+
import { readSolutionProjects } from './solution-projects-files.js';
|
|
43
44
|
import { ensureTypeScriptRuntime } from './node-runtime.js';
|
|
44
45
|
import { defaultBindingsFile, defaultResourcesFile } from './workdir.js';
|
|
45
46
|
import { readCliResources } from './registry/prepare/resources.js';
|
|
@@ -87,6 +88,9 @@ export async function run(argv) {
|
|
|
87
88
|
// The resource ledger `registry prepare` writes (docs/ENTITY_RESOLUTION_DESIGN.md);
|
|
88
89
|
// a Data Fabric step naming `{ name, folder }` compiles from its row.
|
|
89
90
|
const resources = readCliResources(argv, defaultResourcesFile());
|
|
91
|
+
// The solution the flow sits in: an in-solution step named by `project` compiles
|
|
92
|
+
// from its sibling's resource file and entry points (#1978).
|
|
93
|
+
const solution = readSolutionProjects(dirname(resolve(file)));
|
|
90
94
|
// One list per run; every exit path reports it (reportResult overwrites keys).
|
|
91
95
|
const diagnostics = [];
|
|
92
96
|
// The serializer's own observations — a connection or folder value that can
|
|
@@ -169,6 +173,7 @@ export async function run(argv) {
|
|
|
169
173
|
warnings.length = 0;
|
|
170
174
|
return serializeWithSidecars(built, {
|
|
171
175
|
library, bindings, warn: (w) => warnings.push(w), resources, agentSource, nodeCatalog,
|
|
176
|
+
...(solution !== undefined ? { solution } : {}),
|
|
172
177
|
carriedDrafts: (d) => warnings.push(draftWarning(d)),
|
|
173
178
|
});
|
|
174
179
|
});
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
* `flow-node-type.ts`), so a contributor never writes these parameters.
|
|
20
20
|
*/
|
|
21
21
|
import type { TypeDesc } from '../expr.js';
|
|
22
|
+
import type { ResourceResolutions } from '../resource-resolution.js';
|
|
22
23
|
/**
|
|
23
24
|
* Where a node type's definition comes from. `bundled`: a `<typeName>@<version>`
|
|
24
25
|
* entry the SDK ships, which every answer the definition can give (its error port,
|
|
@@ -48,6 +49,15 @@ export type ExprSite = {
|
|
|
48
49
|
} | {
|
|
49
50
|
readonly code: string;
|
|
50
51
|
};
|
|
52
|
+
/**
|
|
53
|
+
* What an output contract may consult beyond its spec: the solution resources
|
|
54
|
+
* `registry prepare` recorded, for a type whose output schema can come from the
|
|
55
|
+
* tenant (a published process's `returns`, #1979). Undefined when `check` was
|
|
56
|
+
* given no ledger.
|
|
57
|
+
*/
|
|
58
|
+
export interface OutputContext {
|
|
59
|
+
readonly resources?: ResourceResolutions;
|
|
60
|
+
}
|
|
51
61
|
/** A read of a node's output, as the output rules see it. */
|
|
52
62
|
export interface OutputRead {
|
|
53
63
|
/** The step name being read. */
|
|
@@ -216,8 +226,8 @@ export interface NodeType<Spec, Serialized, Ctx extends ArtifactContexts> {
|
|
|
216
226
|
* switch off every reference rule for its steps.
|
|
217
227
|
*/
|
|
218
228
|
expressions(spec: Spec): Iterable<ExprSite>;
|
|
219
|
-
/** What reading this node's output yields. */
|
|
220
|
-
output(spec: Spec): OutputContract;
|
|
229
|
+
/** What reading this node's output yields; `ctx` carries what `check` was given beyond the spec. */
|
|
230
|
+
output(spec: Spec, ctx?: OutputContext): OutputContract;
|
|
221
231
|
/**
|
|
222
232
|
* Whether this node type is the one for `spec`, when several share a kind (see
|
|
223
233
|
* VersionedNodeType.matches). On a single-version type only; a versioned type
|
package/dist/core/refusals.d.ts
CHANGED
|
@@ -529,6 +529,11 @@ export declare const REFUSALS: {
|
|
|
529
529
|
readonly FLOW_AGENT_TOOL_UNKNOWN_KIND: "lowering";
|
|
530
530
|
readonly INLINE_AGENT_UNDECLARED_PLACEHOLDER: "lint";
|
|
531
531
|
readonly INLINE_AGENT_UNREFERENCED_INPUT: "lint";
|
|
532
|
+
readonly IN_SOLUTION_KEY_MISMATCH: "lowering";
|
|
533
|
+
readonly IN_SOLUTION_NO_SOLUTION: "lowering";
|
|
534
|
+
readonly IN_SOLUTION_PROJECT_NOT_FOUND: "lowering";
|
|
535
|
+
readonly IN_SOLUTION_PROJECT_PUBLISHED: "lowering";
|
|
536
|
+
readonly IN_SOLUTION_WRONG_BUILDER: "lowering";
|
|
532
537
|
readonly INPUT_READ_WITHOUT_TRIGGER: "lint";
|
|
533
538
|
readonly INTSVC_BINDING_MISMATCH: "lint";
|
|
534
539
|
readonly INTSVC_BINDING_UNDECLARED: "lint";
|
|
@@ -625,6 +630,14 @@ export declare const REFUSALS: {
|
|
|
625
630
|
readonly PRESERVATION_FIELD_COLLISION: "lowering";
|
|
626
631
|
readonly PRESERVATION_LEGACY_DEFAULT_MISMATCH: "lowering";
|
|
627
632
|
readonly PRESERVATION_TARGET_MISSING: "lowering";
|
|
633
|
+
readonly PROCESS_INPUT_MISSING: "lint";
|
|
634
|
+
readonly PROCESS_INPUT_TYPE: "lint";
|
|
635
|
+
readonly PROCESS_INPUT_UNKNOWN: "lint";
|
|
636
|
+
readonly PROCESS_KEY_MISMATCH: "lint";
|
|
637
|
+
readonly PROCESS_RECORD_STALE: "lint";
|
|
638
|
+
readonly PROCESS_RETURNS_TYPE: "lint";
|
|
639
|
+
readonly PROCESS_RETURNS_UNKNOWN: "lint";
|
|
640
|
+
readonly PROCESS_TYPE_MISMATCH: "lint";
|
|
628
641
|
readonly QUEUE_BAD_DATE: "lint";
|
|
629
642
|
readonly QUEUE_BAD_PRIORITY: "lint";
|
|
630
643
|
readonly QUEUE_ITEM_EXPR_UNSUPPORTED: "lowering";
|
package/dist/core/refusals.js
CHANGED
|
@@ -605,6 +605,11 @@ export const REFUSALS = {
|
|
|
605
605
|
FLOW_AGENT_TOOL_UNKNOWN_KIND: 'lowering',
|
|
606
606
|
INLINE_AGENT_UNDECLARED_PLACEHOLDER: 'lint',
|
|
607
607
|
INLINE_AGENT_UNREFERENCED_INPUT: 'lint',
|
|
608
|
+
IN_SOLUTION_KEY_MISMATCH: 'lowering',
|
|
609
|
+
IN_SOLUTION_NO_SOLUTION: 'lowering',
|
|
610
|
+
IN_SOLUTION_PROJECT_NOT_FOUND: 'lowering',
|
|
611
|
+
IN_SOLUTION_PROJECT_PUBLISHED: 'lowering',
|
|
612
|
+
IN_SOLUTION_WRONG_BUILDER: 'lowering',
|
|
608
613
|
INPUT_READ_WITHOUT_TRIGGER: 'lint',
|
|
609
614
|
INTSVC_BINDING_MISMATCH: 'lint',
|
|
610
615
|
INTSVC_BINDING_UNDECLARED: 'lint',
|
|
@@ -701,6 +706,14 @@ export const REFUSALS = {
|
|
|
701
706
|
PRESERVATION_FIELD_COLLISION: 'lowering',
|
|
702
707
|
PRESERVATION_LEGACY_DEFAULT_MISMATCH: 'lowering',
|
|
703
708
|
PRESERVATION_TARGET_MISSING: 'lowering',
|
|
709
|
+
PROCESS_INPUT_MISSING: 'lint',
|
|
710
|
+
PROCESS_INPUT_TYPE: 'lint',
|
|
711
|
+
PROCESS_INPUT_UNKNOWN: 'lint',
|
|
712
|
+
PROCESS_KEY_MISMATCH: 'lint',
|
|
713
|
+
PROCESS_RECORD_STALE: 'lint',
|
|
714
|
+
PROCESS_RETURNS_TYPE: 'lint',
|
|
715
|
+
PROCESS_RETURNS_UNKNOWN: 'lint',
|
|
716
|
+
PROCESS_TYPE_MISMATCH: 'lint',
|
|
704
717
|
QUEUE_BAD_DATE: 'lint',
|
|
705
718
|
QUEUE_BAD_PRIORITY: 'lint',
|
|
706
719
|
QUEUE_ITEM_EXPR_UNSUPPORTED: 'lowering',
|
|
@@ -64,7 +64,39 @@ export interface ResourceResolution {
|
|
|
64
64
|
* before prepare recorded it; `check` then checks no column.
|
|
65
65
|
*/
|
|
66
66
|
fields?: EntityFieldSchema[];
|
|
67
|
+
/**
|
|
68
|
+
* For a published process (kind `Process`): its Orchestrator `ProcessType`
|
|
69
|
+
* (`Process`, `Api`, `Function`, `ProcessOrchestration`, `Flow`,
|
|
70
|
+
* `CaseManagement`, `Agent`), as `uip or processes get <key>` reports it.
|
|
71
|
+
* Absent for a process authored in the solution, and for every other kind.
|
|
72
|
+
*/
|
|
73
|
+
processType?: string;
|
|
74
|
+
/**
|
|
75
|
+
* For a published process: its argument contract, the JSON Schemas in its
|
|
76
|
+
* `ArgumentsV2.Input` and `ArgumentsV2.Output` (#1979). A side Orchestrator
|
|
77
|
+
* left blank is absent: blank means the contract was not extracted, not that
|
|
78
|
+
* the process takes nothing (every `Api` process on the dev tenant answers
|
|
79
|
+
* `{"Input":"","Output":""}`, every RPA one `{}`). Absent altogether when
|
|
80
|
+
* neither side was read: every kind but `Process`, a process authored in the
|
|
81
|
+
* solution, and a process whose `ArgumentsV2` is blank.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* { input: { type: 'object', properties: { name: { type: 'string' } } },
|
|
85
|
+
* output: { type: 'object', properties: { EstimatedAge: { type: 'integer' } } } }
|
|
86
|
+
*/
|
|
87
|
+
schema?: ResourceSchema;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* A published resource's argument contract, as `prepare` recorded it (JSON
|
|
91
|
+
* Schema objects). A side that is absent is unknown, and nothing is checked
|
|
92
|
+
* or filled in from it.
|
|
93
|
+
*/
|
|
94
|
+
export interface ResourceSchema {
|
|
95
|
+
input?: Readonly<Record<string, unknown>>;
|
|
96
|
+
output?: Readonly<Record<string, unknown>>;
|
|
67
97
|
}
|
|
98
|
+
/** The kind a published Orchestrator process (RPA, API workflow, function, agentic process, agent) is catalogued under. */
|
|
99
|
+
export declare const PROCESS_KIND = "Process";
|
|
68
100
|
/** Every recorded resolution, keyed by {@link resourceLedgerKey}. */
|
|
69
101
|
export type ResourceResolutions = Readonly<Record<string, ResourceResolution>>;
|
|
70
102
|
/**
|