@uipath/maestro-builder-sdk 6.107.0 → 6.108.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 +9 -9
- package/dist/api-members.md +49 -44
- package/dist/check-cli.js +8 -3
- package/dist/check.d.ts +8 -0
- package/dist/check.js +8 -4
- package/dist/compile-cli.js +5 -0
- package/dist/core/refusals.d.ts +5 -0
- package/dist/core/refusals.js +5 -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 +17 -10
- 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 +12 -5
- package/dist/nodes/process/flow/spec.d.ts +120 -20
- 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:374-378` | 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:333-371` | Supporting types | Whether an Agentic Process step waits for the process's result. |
|
|
58
|
+
| `AgenticProcessInputs` | type | `dist/nodes/process/flow/spec.d.ts:372-373` | Option shapes | What `agenticProcess()` takes: the shared fields plus the completion policy. |
|
|
59
|
+
| `AgenticProcessInputsBase` | interface | `dist/nodes/process/flow/spec.d.ts:255-332` | Option shapes | 8 field(s) |
|
|
60
|
+
| `AgentInputs` | interface | `dist/nodes/process/flow/spec.d.ts:381-496` | 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:379-380` | 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:93-172` | 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:173-254` | 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. |
|
|
@@ -254,7 +254,7 @@ could hand you spans for a version you do not have.
|
|
|
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-92` | 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
|
|
@@ -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:515-518` |
|
|
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:511-514` |
|
|
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:503-506` |
|
|
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:481-495` |
|
|
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:300-307` |
|
|
480
|
+
| `folderPath` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:425-436` |
|
|
481
|
+
| `folderPath` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:135-142` |
|
|
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:221-231` |
|
|
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:51-58` |
|
|
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:324-331` |
|
|
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:318-323` |
|
|
583
|
+
| `inputs` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:443-460` |
|
|
584
|
+
| `inputs` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:154-158` |
|
|
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:243-244` |
|
|
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:70-75` |
|
|
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:256-267` |
|
|
633
|
+
| `key` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:383-397` |
|
|
634
|
+
| `key` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:94-106` |
|
|
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:180-191` |
|
|
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-23` |
|
|
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:270-280` |
|
|
685
|
+
| `location` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:400-405` |
|
|
686
|
+
| `location` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:109-115` |
|
|
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:194-201` |
|
|
690
|
+
| `location` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:26-31` |
|
|
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:268-269` |
|
|
758
|
+
| `name` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:398-399` |
|
|
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:107-108` |
|
|
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:192-193` |
|
|
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:24-25` |
|
|
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:281-299` |
|
|
971
|
+
| `project` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:406-424` |
|
|
972
|
+
| `project` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:116-134` |
|
|
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:202-220` |
|
|
975
|
+
| `project` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:32-50` |
|
|
976
|
+
| `projectId` | property | `AgenticProcessInputsBase` | `dist/nodes/process/flow/spec.d.ts:308-317` |
|
|
977
|
+
| `projectId` | property | `AgentInputs` | `dist/nodes/process/flow/spec.d.ts:437-442` |
|
|
978
|
+
| `projectId` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:143-153` |
|
|
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:232-242` |
|
|
981
|
+
| `projectId` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:59-69` |
|
|
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:507-510` |
|
|
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:461-480` |
|
|
1070
|
+
| `returns` | property | `ApiWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:159-171` |
|
|
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:245-253` |
|
|
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:76-91` |
|
|
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:499-502` |
|
|
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;
|
|
@@ -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
|
});
|
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";
|
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',
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* core/solution-projects — the sibling projects of the solution a flow is
|
|
3
|
+
* authored in, as `compile` and `check` read them off disk (#1978).
|
|
4
|
+
*
|
|
5
|
+
* A step that calls a sibling (`rpaWorkflow({ location: 'in-solution', project:
|
|
6
|
+
* 'CalculatePay' })`) needs that sibling's resource key, its project id and its
|
|
7
|
+
* argument contract. All three are files of the solution:
|
|
8
|
+
*
|
|
9
|
+
* - `resources/solution_folder/process/<type>/<Project>.json` holds the
|
|
10
|
+
* resource: `resource.key` (the node type's suffix), `resource.projectKey`
|
|
11
|
+
* (the step's `projectId`) and `resource.type`, the folder it sits in;
|
|
12
|
+
* - the project's `entry-points.json` holds the contract: the first entry
|
|
13
|
+
* point's `type`, and its `input` / `output` schemas.
|
|
14
|
+
*
|
|
15
|
+
* This module is the portable half: the shape the CLI hands in. Reading the
|
|
16
|
+
* files is `solution-projects-files.ts`, next to the CLIs that call it, so the
|
|
17
|
+
* flow core reaches no `node:` builtin (FB015).
|
|
18
|
+
*/
|
|
19
|
+
/** One sibling project, as its resource file and entry points describe it. */
|
|
20
|
+
export interface SolutionProject {
|
|
21
|
+
/** The resource's name (`resource.name`), which is the project's name. */
|
|
22
|
+
readonly name: string;
|
|
23
|
+
/**
|
|
24
|
+
* The resource's type (`resource.type`), which is also the folder under
|
|
25
|
+
* `resources/solution_folder/process/` it sits in: `process`, `api`,
|
|
26
|
+
* `function`, `agent`, `flow`, `processOrchestration`, `caseManagement`, …
|
|
27
|
+
*/
|
|
28
|
+
readonly resourceType: string;
|
|
29
|
+
/** The resource key (`resource.key`): the suffix of the node type. */
|
|
30
|
+
readonly key: string;
|
|
31
|
+
/** The project id (`resource.projectKey`): the step's `projectId`. */
|
|
32
|
+
readonly projectId: string;
|
|
33
|
+
/** The resource file, relative to the solution folder, for messages. */
|
|
34
|
+
readonly file: string;
|
|
35
|
+
/**
|
|
36
|
+
* The first entry point's `type` in the project's `entry-points.json`, as
|
|
37
|
+
* written (`agent`, `function`, `Api`, `Process`); undefined when the
|
|
38
|
+
* project has no readable entry points.
|
|
39
|
+
*/
|
|
40
|
+
readonly entryPointType?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The output fields the first entry point declares, each with its JSON
|
|
43
|
+
* schema `type`; undefined when no contract is on disk (an RPA project
|
|
44
|
+
* that was never built has none, #1042).
|
|
45
|
+
*/
|
|
46
|
+
readonly outputs?: Readonly<Record<string, string>>;
|
|
47
|
+
}
|
|
48
|
+
/** The solution a flow is authored in, and its sibling projects. */
|
|
49
|
+
export interface SolutionProjects {
|
|
50
|
+
/** The folder holding the solution's `.uipx`, for messages. */
|
|
51
|
+
readonly dir: string;
|
|
52
|
+
/** Every project with a resource file under `resources/solution_folder/process/`. */
|
|
53
|
+
readonly projects: readonly SolutionProject[];
|
|
54
|
+
}
|
|
55
|
+
/** GUIDs compare case-insensitively: a `.uipx` id and a `projectKey` can differ in case. */
|
|
56
|
+
export declare function sameGuid(a: string, b: string): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* The project named `name`: the exact name, else the only one that matches
|
|
59
|
+
* ignoring case. Undefined when none does, or when several do.
|
|
60
|
+
*/
|
|
61
|
+
export declare function solutionProjectByName(solution: SolutionProjects, name: string): SolutionProject | undefined;
|
|
62
|
+
/** The project whose resource key is `key`, if any. */
|
|
63
|
+
export declare function solutionProjectByKey(solution: SolutionProjects, key: string): SolutionProject | undefined;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* core/solution-projects — the sibling projects of the solution a flow is
|
|
3
|
+
* authored in, as `compile` and `check` read them off disk (#1978).
|
|
4
|
+
*
|
|
5
|
+
* A step that calls a sibling (`rpaWorkflow({ location: 'in-solution', project:
|
|
6
|
+
* 'CalculatePay' })`) needs that sibling's resource key, its project id and its
|
|
7
|
+
* argument contract. All three are files of the solution:
|
|
8
|
+
*
|
|
9
|
+
* - `resources/solution_folder/process/<type>/<Project>.json` holds the
|
|
10
|
+
* resource: `resource.key` (the node type's suffix), `resource.projectKey`
|
|
11
|
+
* (the step's `projectId`) and `resource.type`, the folder it sits in;
|
|
12
|
+
* - the project's `entry-points.json` holds the contract: the first entry
|
|
13
|
+
* point's `type`, and its `input` / `output` schemas.
|
|
14
|
+
*
|
|
15
|
+
* This module is the portable half: the shape the CLI hands in. Reading the
|
|
16
|
+
* files is `solution-projects-files.ts`, next to the CLIs that call it, so the
|
|
17
|
+
* flow core reaches no `node:` builtin (FB015).
|
|
18
|
+
*/
|
|
19
|
+
/** GUIDs compare case-insensitively: a `.uipx` id and a `projectKey` can differ in case. */
|
|
20
|
+
export function sameGuid(a, b) {
|
|
21
|
+
return a.trim().toLowerCase() === b.trim().toLowerCase();
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The project named `name`: the exact name, else the only one that matches
|
|
25
|
+
* ignoring case. Undefined when none does, or when several do.
|
|
26
|
+
*/
|
|
27
|
+
export function solutionProjectByName(solution, name) {
|
|
28
|
+
const exact = solution.projects.find((p) => p.name === name);
|
|
29
|
+
if (exact !== undefined)
|
|
30
|
+
return exact;
|
|
31
|
+
const folded = solution.projects.filter((p) => p.name.toLowerCase() === name.toLowerCase());
|
|
32
|
+
return folded.length === 1 ? folded[0] : undefined;
|
|
33
|
+
}
|
|
34
|
+
/** The project whose resource key is `key`, if any. */
|
|
35
|
+
export function solutionProjectByKey(solution, key) {
|
|
36
|
+
return solution.projects.find((p) => sameGuid(p.key, key));
|
|
37
|
+
}
|
package/dist/flow-node-type.d.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* owns the node's id, label, `typeVersion`, layout, edges and definition dedupe;
|
|
10
10
|
* each context below is the whole of what a node type can see.
|
|
11
11
|
*/
|
|
12
|
+
import type { SolutionProjects } from './core/solution-projects.js';
|
|
12
13
|
import type { ResourceResolutions } from './core/resource-resolution.js';
|
|
13
14
|
import type { ArtifactContexts, FactoryCall, NodeType, OptionKeyLists } from './core/nodes/node-type.js';
|
|
14
15
|
import type { VersionedNodeType } from './core/nodes/versioned.js';
|
|
@@ -159,6 +160,12 @@ export interface FlowSerializeContext {
|
|
|
159
160
|
* (docs/ENTITY_RESOLUTION_DESIGN.md); undefined when the compile was given no ledger.
|
|
160
161
|
*/
|
|
161
162
|
readonly resources: ResourceResolutions | undefined;
|
|
163
|
+
/**
|
|
164
|
+
* The solution the flow is compiled in, and its sibling projects, as the CLI
|
|
165
|
+
* read them (`SerializeOpts.solution`, #1978); undefined when the compile was
|
|
166
|
+
* given none.
|
|
167
|
+
*/
|
|
168
|
+
readonly solution?: SolutionProjects;
|
|
162
169
|
/**
|
|
163
170
|
* The bundled definition `<typeName>@<version>`, else one the flow carries;
|
|
164
171
|
* undefined when neither exists. When the node is emitted at a carried
|
|
@@ -673,6 +680,16 @@ export interface FlowNodeType<Spec> extends NodeType<Spec, FlowNodeContribution,
|
|
|
673
680
|
typeName: string;
|
|
674
681
|
version?: string;
|
|
675
682
|
} | undefined;
|
|
683
|
+
/**
|
|
684
|
+
* The spec with what the solution on disk says filled in, for a type whose
|
|
685
|
+
* step can name a sibling project instead of copying its identifiers (an
|
|
686
|
+
* in-solution process step's `project`, #1978). `check` and `serialize` both
|
|
687
|
+
* call it before anything else reads the spec — the type's `check`,
|
|
688
|
+
* `serialize` and `output` see its result — so the two rungs judge the same
|
|
689
|
+
* spec. `solution` is undefined when the caller gave none. Omitted: the spec
|
|
690
|
+
* is used as authored.
|
|
691
|
+
*/
|
|
692
|
+
withSolution?(spec: Spec, solution: SolutionProjects | undefined): Spec;
|
|
676
693
|
}
|
|
677
694
|
/** What decompile's graph reads off a saved node's exits (`FlowNodeType.savedExits`). */
|
|
678
695
|
export interface FlowSavedExits {
|