@uipath/maestro-builder-sdk 6.96.4 → 6.96.6
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/case/case-sdk.js +2 -1
- package/dist/case/check.js +26 -0
- package/dist/case/reference-mode.d.ts +10 -0
- package/dist/case/reference-mode.js +3 -0
- package/dist/check.js +23 -20
- package/dist/core/contribution-bindings.d.ts +1 -1
- package/dist/core/contribution-bindings.js +1 -1
- package/dist/core/nodes/node-type.d.ts +13 -0
- package/dist/core/refusals.d.ts +1 -0
- package/dist/core/refusals.js +1 -0
- package/dist/extend.d.ts +1 -1
- package/dist/flow-node-type.d.ts +10 -0
- package/dist/nodes/agent/flow/family.d.ts +1 -0
- package/dist/nodes/agent/flow/family.js +1 -0
- package/dist/nodes/agent/flow/resources.d.ts +10 -0
- package/dist/nodes/agent/flow/resources.js +12 -0
- package/dist/nodes/connector/flow/family.d.ts +1 -0
- package/dist/nodes/connector/flow/family.js +1 -0
- package/dist/{core/connector-raw-node.js → nodes/connector/flow/raw-node.js} +4 -2
- package/dist/nodes/http/flow/family.d.ts +0 -5
- package/dist/nodes/http/flow/family.js +0 -5
- package/dist/nodes/http/flow/node-type.js +7 -4
- package/dist/nodes/process/flow/node-type.js +5 -0
- package/dist/raw-node-advice.d.ts +3 -1
- package/dist/raw-node-advice.js +1 -1
- package/dist/raw-node.js +1 -1
- package/dist/serialize.js +5 -6
- package/package.json +2 -2
- /package/dist/{core/connector-raw-node.d.ts → nodes/connector/flow/raw-node.d.ts} +0 -0
package/dist/case/case-sdk.js
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* `casePlan` (not `case`) is the entry point: `case` is a reserved word.
|
|
19
19
|
*/
|
|
20
|
+
import { REFERENCE_MODE_TASK_KINDS } from './reference-mode.js';
|
|
20
21
|
import { lowerScriptFunction } from '../core/script-function.js';
|
|
21
22
|
import { CASE_SCRIPT_RUNTIME } from './script.js';
|
|
22
23
|
import { ACTION_PASSTHROUGH_SETTINGS } from './action-settings.js';
|
|
@@ -870,7 +871,7 @@ class TaskBuilder {
|
|
|
870
871
|
// `response` and `Error` rows, and each extract (`=response.<field>`) is one
|
|
871
872
|
// more row after them, as `uip maestro case sdd convert` and `case splice`
|
|
872
873
|
// write an SDD row `app_id -> postAppId`.
|
|
873
|
-
const REF_IO =
|
|
874
|
+
const REF_IO = REFERENCE_MODE_TASK_KINDS;
|
|
874
875
|
// A document extraction and a script task write their two outputs, an
|
|
875
876
|
// http-request task the activity's four; an extract maps one to a variable.
|
|
876
877
|
const CONNECTOR_OUTPUTS = new Set(['connector', 'wait-for-connector', 'document-extraction', 'script', 'http-request']);
|
package/dist/case/check.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { REFERENCE_MODE_TASK_KINDS } from './reference-mode.js';
|
|
1
2
|
import { types } from '../core/expr.js';
|
|
2
3
|
import { CASE_FORMAT_PROFILE, CASE_SCHEMA_VERSIONS, authoredCaseVersion } from './format-profile.js';
|
|
3
4
|
import { schemaVersionRefusal } from '../schema-version.js';
|
|
@@ -689,6 +690,31 @@ function checkStage(stage, diags, refStage, refPlacement) {
|
|
|
689
690
|
message: `${t.kind === 'connector' ? 'Connector' : 'Wait-for-connector'} task "${t.name}" output "${o.var}" reads "${o.source}". A connector task's result is its response: write "=response.${o.source.replace(/^=\s*/, '')}" (or "=Error.<field>" for the error).`,
|
|
690
691
|
where: t.name,
|
|
691
692
|
});
|
|
693
|
+
// The reverse holds for a reference-mode task (agent, process, RPA, API
|
|
694
|
+
// workflow, ...): its result fields are at the top of its result, so the
|
|
695
|
+
// Designer and `uip maestro case sdd convert` (`outputSourceFor`) write
|
|
696
|
+
// `=AgentExpenseRequest`. `=response.AgentExpenseRequest` names a
|
|
697
|
+
// `response` the result does not have, and the variable is left empty
|
|
698
|
+
// (builder-sdk#1565).
|
|
699
|
+
if (REFERENCE_MODE_TASK_KINDS.has(t.kind))
|
|
700
|
+
for (const o of t.outputs ?? []) {
|
|
701
|
+
if (o.custom)
|
|
702
|
+
continue; // an assigned value, not a result field
|
|
703
|
+
// `=response.X` and `=response[...]`. `check` does not see the
|
|
704
|
+
// artifact's argument list, so an artifact whose own output argument is
|
|
705
|
+
// named `response` is flagged too (the trade-off BUSINESS_RULE_OUTPUT_SOURCE
|
|
706
|
+
// makes for `=result.`). A bare `=response` is left alone: it names
|
|
707
|
+
// such an argument whole, and has no field to suggest.
|
|
708
|
+
if (!/^=\s*response\s*[.[]/.test(o.source))
|
|
709
|
+
continue;
|
|
710
|
+
const fix = /^=\s*response\s*\.\s*(.+)$/.exec(o.source)?.[1];
|
|
711
|
+
diags.push({
|
|
712
|
+
level: 'error',
|
|
713
|
+
code: 'REFERENCE_OUTPUT_SOURCE',
|
|
714
|
+
message: `Task "${t.name}" (${t.kind}) output "${o.var}" reads "${o.source}". This ${t.kind} task's result fields are read directly; \`=response.<field>\` is the connector form and reads nothing here. Write ${fix !== undefined ? `"=${fix}"` : 'the field without the `response` prefix'} (the source the Designer and \`uip maestro case sdd convert\` write).`,
|
|
715
|
+
where: t.name,
|
|
716
|
+
});
|
|
717
|
+
}
|
|
692
718
|
if (t.kind === 'flow-process' && (!t.ref || !t.ref.name.trim()))
|
|
693
719
|
diags.push({
|
|
694
720
|
level: 'error',
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reference-mode task kinds: a task that runs a separately published artifact
|
|
3
|
+
* (a process, agent, RPA or API workflow, ...) and binds its arguments with
|
|
4
|
+
* `.inputs()` / `.outputs()`. The artifact's result fields are at the top of
|
|
5
|
+
* its result, so an extract reads `=<Field>`, not the connector form
|
|
6
|
+
* `=response.<field>` (builder-sdk#1565). Shared by the builder (which kinds
|
|
7
|
+
* take `.inputs()`) and `check` (REFERENCE_OUTPUT_SOURCE).
|
|
8
|
+
*/
|
|
9
|
+
import type { TaskKind } from './case-sdk.js';
|
|
10
|
+
export declare const REFERENCE_MODE_TASK_KINDS: ReadonlySet<TaskKind>;
|
package/dist/check.js
CHANGED
|
@@ -18,8 +18,8 @@ import { endContentKey } from './flow-end-content.js';
|
|
|
18
18
|
import { FLOW_NODE_TYPES, FLOW_TRIGGER_TYPES } from './flow-node-registry.js';
|
|
19
19
|
import { stepExits, stepRouting } from './flow-step-exits.js';
|
|
20
20
|
import { stepDeclaredVariables } from './flow-step-variables.js';
|
|
21
|
-
import { plainHttpOnErrorMessage } from './nodes/http/flow/family.js';
|
|
22
21
|
import { resolveVersion, resolveVersionCarried } from './core/nodes/versioned.js';
|
|
22
|
+
import { registeredRawType } from './raw-node-advice.js';
|
|
23
23
|
import { loopParallelWarning, resolveLoopDefinition, loopVersion } from './loop-version.js';
|
|
24
24
|
import { refusalClass } from './core/refusals.js';
|
|
25
25
|
import { classifyDrafts, findingCounts, placeDiagnostics, splitUnplaced } from './edit-scope.js';
|
|
@@ -330,9 +330,9 @@ function checkFlow(built, ancestors, opts = {}) {
|
|
|
330
330
|
// readable result (see TERMINATE_HAS_NO_OUTPUT below) — and it stops the RUN,
|
|
331
331
|
// so anything after it is unreachable (TERMINATE_UNREACHABLE_AFTER).
|
|
332
332
|
const terminateNames = new Set();
|
|
333
|
-
//
|
|
334
|
-
//
|
|
335
|
-
const
|
|
333
|
+
// Step name → the option that makes it wait, for a step that dispatches
|
|
334
|
+
// without waiting (`FlowNodeType.fireAndForget`): FIRE_AND_FORGET_READ below.
|
|
335
|
+
const fireAndForgetSteps = new Map();
|
|
336
336
|
// Step name → the read rule for its output, bound to its inputs. Filled from
|
|
337
337
|
// OUTPUT_READ_RULES for every kind whose inputs take a `returns`.
|
|
338
338
|
const outputReaders = new Map();
|
|
@@ -487,6 +487,11 @@ function checkFlow(built, ancestors, opts = {}) {
|
|
|
487
487
|
if (registered) {
|
|
488
488
|
const { placed, checked } = checkRegisteredStep(registered, s, exprs, errorSource, opts, diags, typeOf, triggerId, carriedLookup([built, ...ancestors]));
|
|
489
489
|
checkedSteps.set(s.name, checked);
|
|
490
|
+
// The flow-level fire-and-forget read rule below needs to know which
|
|
491
|
+
// steps dispatch without waiting.
|
|
492
|
+
const dispatchOnly = checked.impl.fireAndForget?.(checked.spec);
|
|
493
|
+
if (dispatchOnly)
|
|
494
|
+
fireAndForgetSteps.set(s.name, dispatchOnly.fix);
|
|
490
495
|
if (placed)
|
|
491
496
|
registeredSteps.set(s.name, checked);
|
|
492
497
|
else
|
|
@@ -521,10 +526,6 @@ function checkFlow(built, ancestors, opts = {}) {
|
|
|
521
526
|
// as an arm, so it never belongs there.
|
|
522
527
|
if (routing?.unsplit && s0.kind !== 'stepSwitch')
|
|
523
528
|
hitlChoiceNoPorts.set(s.name, routing.unsplit);
|
|
524
|
-
// The process family checks the step itself; the flow-level fire-and-forget
|
|
525
|
-
// read rule below needs to know which steps dispatch without waiting.
|
|
526
|
-
if (s.spec.kind === 'agenticProcess')
|
|
527
|
-
agenticProcesses.set(s.name, s.spec.inputs);
|
|
528
529
|
{
|
|
529
530
|
const rule = OUTPUT_READ_RULES[s.spec.kind];
|
|
530
531
|
if (typeof rule === 'function') {
|
|
@@ -883,16 +884,16 @@ function checkFlow(built, ancestors, opts = {}) {
|
|
|
883
884
|
// A fire-and-forget dispatch publishes no output: any read of it would wait
|
|
884
885
|
// on a value the run will never produce. Error reads stay legal — dispatch
|
|
885
886
|
// failures still route (design §2.2).
|
|
886
|
-
const fireAndForget = new Set([...agenticProcesses.entries()].filter(([, i]) => i.completion === 'fire-and-forget').map(([n]) => n));
|
|
887
887
|
for (const { js, step } of exprs) {
|
|
888
888
|
for (const m of js.matchAll(/\$vars\.([A-Za-z0-9_]+)\.output\b/g)) {
|
|
889
|
-
|
|
889
|
+
const fix = fireAndForgetSteps.get(m[1]);
|
|
890
|
+
if (fix !== undefined) {
|
|
890
891
|
diags.push({
|
|
891
892
|
level: 'error',
|
|
892
893
|
code: 'FIRE_AND_FORGET_READ',
|
|
893
894
|
step,
|
|
894
895
|
message: `"${step}" reads $vars.${m[1]}.output, but "${m[1]}" is fire-and-forget — it dispatches `
|
|
895
|
-
+ `and publishes no output. Use
|
|
896
|
+
+ `and publishes no output. Use ${fix} on "${m[1]}", or stop reading its result.`,
|
|
896
897
|
});
|
|
897
898
|
}
|
|
898
899
|
}
|
|
@@ -2527,8 +2528,8 @@ placed, opts) {
|
|
|
2527
2528
|
// is left here is a node type's own refusal of a handler on a port it has.
|
|
2528
2529
|
if (!step || step.kind === 'loop' || step.kind === 'doWhile')
|
|
2529
2530
|
return;
|
|
2530
|
-
// A custom node
|
|
2531
|
-
//
|
|
2531
|
+
// A custom node built on a registered type's definition gets that type's
|
|
2532
|
+
// handler rules: they are about the node type, not the SDK kind.
|
|
2532
2533
|
const maybeCustom = step.spec;
|
|
2533
2534
|
if (!('kind' in maybeCustom) && maybeCustom instanceof FlowNode) {
|
|
2534
2535
|
let def;
|
|
@@ -2540,8 +2541,15 @@ placed, opts) {
|
|
|
2540
2541
|
// A contribution compile cannot lower is the serializer's CONTRIBUTION_INVALID.
|
|
2541
2542
|
return;
|
|
2542
2543
|
}
|
|
2543
|
-
|
|
2544
|
-
|
|
2544
|
+
// As for a registered step, the type's rules apply only to a port that exists;
|
|
2545
|
+
// a definition with none is the serializer's ONERROR_NO_ERROR_PORT.
|
|
2546
|
+
if (!definitionHasErrorPort(def))
|
|
2547
|
+
return;
|
|
2548
|
+
const found = registeredRawType(def?.nodeType, String(def?.version ?? ''));
|
|
2549
|
+
found?.impl.checkCustomErrorHandler?.({
|
|
2550
|
+
step: step.name,
|
|
2551
|
+
report: (code, message, suggestion) => diags.push(catalogued(found.entry, step.name, code, message, suggestion)),
|
|
2552
|
+
});
|
|
2545
2553
|
return;
|
|
2546
2554
|
}
|
|
2547
2555
|
// A registered node type (an unregistered pin still has a record, with the
|
|
@@ -2563,11 +2571,6 @@ placed, opts) {
|
|
|
2563
2571
|
if (hasPort)
|
|
2564
2572
|
impl.checkErrorHandler?.(placed.spec, placed.ctx);
|
|
2565
2573
|
}
|
|
2566
|
-
/** `.onError` after a custom node built on the plain `core.action.http` definition (the http family's refusal). */
|
|
2567
|
-
function plainHttpOnErrorRefusal(stepName) {
|
|
2568
|
-
const { message, suggestion } = plainHttpOnErrorMessage(stepName);
|
|
2569
|
-
return { level: 'error', code: 'HTTP_ONERROR_V1', message, step: stepName, suggestion };
|
|
2570
|
-
}
|
|
2571
2574
|
/**
|
|
2572
2575
|
* Reading a value that only ONE arm produces (flow-builder-sdk#200).
|
|
2573
2576
|
*
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* `connection` resources are out of scope: a connector definition's entries are
|
|
24
24
|
* keyed by the tenant connection id, which the definition does not carry. A raw
|
|
25
|
-
* connector node is refused for that reason (`connector
|
|
25
|
+
* connector node is refused for that reason (`nodes/connector/flow/raw-node.ts`).
|
|
26
26
|
*
|
|
27
27
|
* Pure: `serialize` lowers with it, and `check` runs it dry so the two agree.
|
|
28
28
|
*/
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
*
|
|
23
23
|
* `connection` resources are out of scope: a connector definition's entries are
|
|
24
24
|
* keyed by the tenant connection id, which the definition does not carry. A raw
|
|
25
|
-
* connector node is refused for that reason (`connector
|
|
25
|
+
* connector node is refused for that reason (`nodes/connector/flow/raw-node.ts`).
|
|
26
26
|
*
|
|
27
27
|
* Pure: `serialize` lowers with it, and `check` runs it dry so the two agree.
|
|
28
28
|
*/
|
|
@@ -135,6 +135,12 @@ export interface ArtifactContexts {
|
|
|
135
135
|
check: unknown;
|
|
136
136
|
familyCheck: unknown;
|
|
137
137
|
}
|
|
138
|
+
/** What {@link NodeType.checkCustomErrorHandler} reports through: the step and the report, and no spec. */
|
|
139
|
+
export interface ErrorHandlerCheckContext {
|
|
140
|
+
/** The step name the author gave the node. */
|
|
141
|
+
readonly step: string;
|
|
142
|
+
report(code: string, message: string, suggestion?: string): void;
|
|
143
|
+
}
|
|
138
144
|
/** One node type at one version, for one artifact. See the module header. */
|
|
139
145
|
export interface NodeType<Spec, Serialized, Ctx extends ArtifactContexts> {
|
|
140
146
|
/** The spec discriminator, e.g. `'dataFabricRead'`. Unique within the artifact's registry. */
|
|
@@ -172,6 +178,13 @@ export interface NodeType<Spec, Serialized, Ctx extends ArtifactContexts> {
|
|
|
172
178
|
* 4xx/5xx and publishes no envelope. Reported through `ctx` like `check`.
|
|
173
179
|
*/
|
|
174
180
|
checkErrorHandler?(spec: Spec, ctx: Ctx['check']): void;
|
|
181
|
+
/**
|
|
182
|
+
* The same rules for a custom node built on this type's definition, run only
|
|
183
|
+
* when that definition has an error port. Such a node has no spec of this type,
|
|
184
|
+
* so the rule is about the node type alone, and `ctx` carries only the step and
|
|
185
|
+
* the report. Omit it and a custom node gets no handler rules from this type.
|
|
186
|
+
*/
|
|
187
|
+
checkCustomErrorHandler?(ctx: ErrorHandlerCheckContext): void;
|
|
175
188
|
/**
|
|
176
189
|
* Every authored value evaluated against the artifact's scope. Required: a type
|
|
177
190
|
* with none returns `[]`, by decision, because an omitted hook would silently
|
package/dist/core/refusals.d.ts
CHANGED
|
@@ -630,6 +630,7 @@ export declare const REFUSALS: {
|
|
|
630
630
|
readonly RAW_NODE_UNKNOWN_INPUT: "lowering";
|
|
631
631
|
readonly RAW_NODE_VERSION_MISMATCH: "lowering";
|
|
632
632
|
readonly READ_TEXT_UNAVAILABLE: "lowering";
|
|
633
|
+
readonly REFERENCE_OUTPUT_SOURCE: "lint";
|
|
633
634
|
readonly REF_INTO_LOOP: "lint";
|
|
634
635
|
readonly REF_INTO_PARALLEL_ARM: "lint";
|
|
635
636
|
readonly REF_INTO_PORT_LIST: "lint";
|
package/dist/core/refusals.js
CHANGED
|
@@ -704,6 +704,7 @@ export const REFUSALS = {
|
|
|
704
704
|
RAW_NODE_UNKNOWN_INPUT: 'lowering',
|
|
705
705
|
RAW_NODE_VERSION_MISMATCH: 'lowering',
|
|
706
706
|
READ_TEXT_UNAVAILABLE: 'lowering',
|
|
707
|
+
REFERENCE_OUTPUT_SOURCE: 'lint',
|
|
707
708
|
REF_INTO_LOOP: 'lint',
|
|
708
709
|
REF_INTO_PARALLEL_ARM: 'lint',
|
|
709
710
|
REF_INTO_PORT_LIST: 'lint',
|
package/dist/extend.d.ts
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
import type { NodeFamily, DiagnosticCatalog, PackageOrigin } from './core/nodes/family.js';
|
|
26
26
|
import type { FlowAction } from './core/node-classes.js';
|
|
27
27
|
import type { FlowContexts, FlowNodeFamily } from './flow-node-type.js';
|
|
28
|
-
export type { NodeType, FactoryCall, OutputContract, ExprSite, DefinitionSource, ArtifactContexts, FieldsRead, OutputRead, OutputPathRead, } from './core/nodes/node-type.js';
|
|
28
|
+
export type { NodeType, FactoryCall, OutputContract, ExprSite, DefinitionSource, ArtifactContexts, ErrorHandlerCheckContext, FieldsRead, OutputRead, OutputPathRead, } from './core/nodes/node-type.js';
|
|
29
29
|
export type { VersionedNodeType } from './core/nodes/versioned.js';
|
|
30
30
|
export type { NodeFamily, Placement, DiagnosticCatalog, PackageOrigin } from './core/nodes/family.js';
|
|
31
31
|
export type { DefinitionReference } from './core/node-classes.js';
|
package/dist/flow-node-type.d.ts
CHANGED
|
@@ -602,6 +602,16 @@ export interface FlowNodeType<Spec> extends NodeType<Spec, FlowNodeContribution,
|
|
|
602
602
|
* node has no such exits, and a fully wired one forks over its `exits`.
|
|
603
603
|
*/
|
|
604
604
|
savedExits?(node: unknown): FlowSavedExits;
|
|
605
|
+
/**
|
|
606
|
+
* Set when a step of this spec dispatches without waiting, so it publishes no
|
|
607
|
+
* output: `check`'s flow-level FIRE_AND_FORGET_READ refuses every read of the
|
|
608
|
+
* step's output, and names `fix`, the option that makes it wait. Its error
|
|
609
|
+
* reads stay legal, since a failed dispatch still routes. Omitted, or
|
|
610
|
+
* `undefined`: the step waits.
|
|
611
|
+
*/
|
|
612
|
+
fireAndForget?(spec: Spec): {
|
|
613
|
+
readonly fix: string;
|
|
614
|
+
} | undefined;
|
|
605
615
|
/**
|
|
606
616
|
* The flow variables a step of this type DECLARES by running: names a later
|
|
607
617
|
* `$vars.<name>` read resolves to that are neither a `.var()` nor a step
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
/** The agents node family, as flow-node-registry.ts lists it: the inline, conversational and voice agents and the voice call steps. */
|
|
2
2
|
import type { FlowNodeFamily } from '../../../flow-node-type.js';
|
|
3
3
|
export declare const agentFlowFamily: FlowNodeFamily;
|
|
4
|
+
export { isAgentResourceType } from './resources.js';
|
|
@@ -2,6 +2,16 @@ import type { ContextIndexRef, EscalationRef, ProcessToolKind, ToolArgument } fr
|
|
|
2
2
|
import { CompileRefusal } from '../../../core/compile-refusal.js';
|
|
3
3
|
import type { ResolvedConnector } from '../../../core/library.js';
|
|
4
4
|
import type { ProcessResourceSubType } from '../../../core/process-resource.js';
|
|
5
|
+
/**
|
|
6
|
+
* Whether a saved node's type is one of an agent's resource nodes
|
|
7
|
+
* (`uipath.agent.resource.tool.connector.…`, a context index, an escalation, a
|
|
8
|
+
* memory). Their binding placeholders are resolved through the AGENT project —
|
|
9
|
+
* `uip agent refresh` generates a connector tool's resource — and the deployed
|
|
10
|
+
* corpus carries no flow `bindings[]` entry for them, so serialize's placeholder
|
|
11
|
+
* check passes them by. By type name, not by what attached them: a raw resource
|
|
12
|
+
* node reaches that check too (decompile keeps an orphaned one as a `rawNode`).
|
|
13
|
+
*/
|
|
14
|
+
export declare function isAgentResourceType(typeName: string): boolean;
|
|
5
15
|
/** The inline (autonomous) agent's node type — fixed, not per-instance. */
|
|
6
16
|
export declare const INLINE_AGENT = "uipath.agent.autonomous";
|
|
7
17
|
/**
|
|
@@ -19,6 +19,18 @@ import { formFieldJsonSchema } from '../../../core/form-field-type.js';
|
|
|
19
19
|
import { jsonClone } from '../../../core/json-clone.js';
|
|
20
20
|
import { ownEntry } from '../../../core/own-entry.js';
|
|
21
21
|
import { argumentTypes, jsonPathKey, promptOf, toolArgumentProperties } from '../../../core/tool-argument.js';
|
|
22
|
+
/**
|
|
23
|
+
* Whether a saved node's type is one of an agent's resource nodes
|
|
24
|
+
* (`uipath.agent.resource.tool.connector.…`, a context index, an escalation, a
|
|
25
|
+
* memory). Their binding placeholders are resolved through the AGENT project —
|
|
26
|
+
* `uip agent refresh` generates a connector tool's resource — and the deployed
|
|
27
|
+
* corpus carries no flow `bindings[]` entry for them, so serialize's placeholder
|
|
28
|
+
* check passes them by. By type name, not by what attached them: a raw resource
|
|
29
|
+
* node reaches that check too (decompile keeps an orphaned one as a `rawNode`).
|
|
30
|
+
*/
|
|
31
|
+
export function isAgentResourceType(typeName) {
|
|
32
|
+
return typeName.startsWith('uipath.agent.resource.');
|
|
33
|
+
}
|
|
22
34
|
/** The inline (autonomous) agent's node type — fixed, not per-instance. */
|
|
23
35
|
export const INLINE_AGENT = 'uipath.agent.autonomous';
|
|
24
36
|
const IXP_DEF = ixpDefinition;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Internal: the one rule that keeps `rawNode` from standing in for `connector()
|
|
2
|
+
* Internal: the one rule that keeps `rawNode` from standing in for `connector()`,
|
|
3
|
+
* `onEvent()` or `waitForEvent()`, the connector family's three types, for
|
|
4
|
+
* every name under `uipath.connector.` (one no type claims included).
|
|
3
5
|
* Not re-exported from the package entry point.
|
|
4
6
|
*/
|
|
5
|
-
import { prepareCommand } from '
|
|
7
|
+
import { prepareCommand } from '../../../core/cli-spelling.js';
|
|
6
8
|
/**
|
|
7
9
|
* Why a `rawNode` may not carry a connector node type, or `undefined` when the
|
|
8
10
|
* type is not a connector's.
|
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
/** The HTTP node family, as flow-node-registry.ts lists it: `core.action.http` and `core.action.http.v2`. */
|
|
2
2
|
import type { FlowNodeFamily } from '../../../flow-node-type.js';
|
|
3
3
|
export declare const httpFlowFamily: FlowNodeFamily;
|
|
4
|
-
/**
|
|
5
|
-
* The plain node's `.onError` refusal, for check.ts: a custom node built on the
|
|
6
|
-
* `core.action.http` definition gets the same answer as an `http()` step.
|
|
7
|
-
*/
|
|
8
|
-
export { plainHttpOnErrorMessage } from './check.js';
|
|
@@ -6,8 +6,3 @@ export const httpFlowFamily = {
|
|
|
6
6
|
types: httpNodeTypes,
|
|
7
7
|
diagnostics: HTTP_DIAGNOSTICS,
|
|
8
8
|
};
|
|
9
|
-
/**
|
|
10
|
-
* The plain node's `.onError` refusal, for check.ts: a custom node built on the
|
|
11
|
-
* `core.action.http` definition gets the same answer as an `http()` step.
|
|
12
|
-
*/
|
|
13
|
-
export { plainHttpOnErrorMessage } from './check.js';
|
|
@@ -16,6 +16,11 @@ import { CompileRefusal } from '../../../core/compile-refusal.js';
|
|
|
16
16
|
const PLAIN = 'core.action.http';
|
|
17
17
|
const MANAGED = 'core.action.http.v2';
|
|
18
18
|
/** The definition's `inputDefaults` at the version being emitted. */
|
|
19
|
+
/** `.onError` on a plain HTTP node, typed or custom: the port exists but catches nothing a handler can read. */
|
|
20
|
+
function refusePlainHttpHandler(ctx) {
|
|
21
|
+
const { message, suggestion } = plainHttpOnErrorMessage(ctx.step);
|
|
22
|
+
ctx.report('HTTP_ONERROR_V1', message, suggestion);
|
|
23
|
+
}
|
|
19
24
|
function defaults(ctx, typeName) {
|
|
20
25
|
return jsonClone(ctx.definition(typeName, ctx.version)?.inputDefaults ?? {});
|
|
21
26
|
}
|
|
@@ -391,10 +396,8 @@ function httpAt(typeName, version, managed) {
|
|
|
391
396
|
// The plain node's port exists (its definition declares it) but catches
|
|
392
397
|
// nothing a handler can read; see plainHttpOnErrorMessage.
|
|
393
398
|
...(managed ? {} : {
|
|
394
|
-
checkErrorHandler: (_spec, ctx) =>
|
|
395
|
-
|
|
396
|
-
ctx.report('HTTP_ONERROR_V1', message, suggestion);
|
|
397
|
-
},
|
|
399
|
+
checkErrorHandler: (_spec, ctx) => refusePlainHttpHandler(ctx),
|
|
400
|
+
checkCustomErrorHandler: refusePlainHttpHandler,
|
|
398
401
|
}),
|
|
399
402
|
expressions: ({ inputs }) => [
|
|
400
403
|
{ value: inputs.url },
|
|
@@ -844,6 +844,11 @@ function processType(kind, prefix, factory, form) {
|
|
|
844
844
|
// check collected no expressions for a process step before the port; unchanged by it.
|
|
845
845
|
expressions: () => [],
|
|
846
846
|
output: processOutput,
|
|
847
|
+
...(kind === 'agenticProcess' ? {
|
|
848
|
+
fireAndForget: ({ inputs }) => inputs?.completion === 'fire-and-forget'
|
|
849
|
+
? { fix: "completion: 'wait'" }
|
|
850
|
+
: undefined,
|
|
851
|
+
} : {}),
|
|
847
852
|
};
|
|
848
853
|
return {
|
|
849
854
|
kind, typeName: `${prefix}*`, typeNamePrefix: prefix, factory, defaultVersion: '1.0.0',
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import type { FlowNodeType } from './flow-node-type.js';
|
|
1
|
+
import type { FlowContexts, FlowNodeType } from './flow-node-type.js';
|
|
2
|
+
import type { Registered } from './core/nodes/registry.js';
|
|
2
3
|
/**
|
|
3
4
|
* The registered node type a raw node of `nodeType@version` is, at that version
|
|
4
5
|
* when it is registered and at the default otherwise (a raw node is often how an
|
|
5
6
|
* author reaches an unregistered version); undefined for an unregistered type.
|
|
6
7
|
*/
|
|
7
8
|
export declare function registeredRawType(nodeType: unknown, version: string): {
|
|
9
|
+
entry: Registered<FlowContexts>;
|
|
8
10
|
impl: FlowNodeType<unknown>;
|
|
9
11
|
} | undefined;
|
|
10
12
|
/** An input a registered node type never reads, as RAW_NODE_UNKNOWN_INPUT reports it; undefined otherwise. */
|
package/dist/raw-node-advice.js
CHANGED
|
@@ -18,7 +18,7 @@ export function registeredRawType(nodeType, version) {
|
|
|
18
18
|
return undefined;
|
|
19
19
|
const registered = Object.hasOwn(entry.type.versions, version);
|
|
20
20
|
const impl = (registered ? entry.type.versions[version] : entry.type.versions[entry.type.defaultVersion]);
|
|
21
|
-
return { impl };
|
|
21
|
+
return { entry, impl };
|
|
22
22
|
}
|
|
23
23
|
/** An input a registered node type never reads, as RAW_NODE_UNKNOWN_INPUT reports it; undefined otherwise. */
|
|
24
24
|
export function rawNodeInputProblem(nodeType, version, inputs) {
|
package/dist/raw-node.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* re-exports it, so authors import it exactly as before.
|
|
7
7
|
*/
|
|
8
8
|
import { FlowAction, } from './core/node-classes.js';
|
|
9
|
-
import { connectorRawNodeRefusal } from './
|
|
9
|
+
import { connectorRawNodeRefusal } from './nodes/connector/flow/family.js';
|
|
10
10
|
import { rawNodeInputProblem, rawNodeTypedFamilyWarning } from './raw-node-advice.js';
|
|
11
11
|
import { forwardFanOut } from './core/definition-handles.js';
|
|
12
12
|
import { RAW_NODE_EXITS } from './core/raw-node-exits.js';
|
package/dist/serialize.js
CHANGED
|
@@ -11,7 +11,8 @@ import { BUNDLED_DEFINITIONS, bundledVersions } from './flow-definitions.js';
|
|
|
11
11
|
import { LOOP_DEFAULT_VERSION, bodyUsesBreak, loopDeclaredInputs, loopHasInnerHandles, loopVersion, loopVersionRefusal } from './loop-version.js';
|
|
12
12
|
import { Expr, toExpr, flatNameSegmentsOf, parallelFork } from './flow-sdk.js';
|
|
13
13
|
import { FlowAction, FlowTrigger } from './core/node-classes.js';
|
|
14
|
-
import { connectorRawNodeRefusal } from './
|
|
14
|
+
import { connectorRawNodeRefusal } from './nodes/connector/flow/family.js';
|
|
15
|
+
import { isAgentResourceType } from './nodes/agent/flow/family.js';
|
|
15
16
|
import { CompileRefusal, LibraryRequiredRefusal } from './core/compile-refusal.js';
|
|
16
17
|
import { nearestName } from './core/edit-distance.js';
|
|
17
18
|
import { rawNodeInputProblem, registeredRawType } from './raw-node-advice.js';
|
|
@@ -3737,11 +3738,9 @@ export function assertBindingPlaceholdersResolve(flow, unbound = new Set()) {
|
|
|
3737
3738
|
}
|
|
3738
3739
|
const dangling = [];
|
|
3739
3740
|
for (const node of nodes) {
|
|
3740
|
-
// An agent's resource nodes
|
|
3741
|
-
//
|
|
3742
|
-
|
|
3743
|
-
// deployed corpus carries no flow `bindings[]` entry for them.
|
|
3744
|
-
if (typeof node?.type !== 'string' || node.type.startsWith('uipath.agent.resource.'))
|
|
3741
|
+
// An agent's resource nodes carry the same placeholders, but resolve them
|
|
3742
|
+
// through the agent project (`isAgentResourceType`).
|
|
3743
|
+
if (typeof node?.type !== 'string' || isAgentResourceType(node.type))
|
|
3745
3744
|
continue;
|
|
3746
3745
|
if (unbound.has(node.id))
|
|
3747
3746
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.96.
|
|
3
|
+
"version": "6.96.6",
|
|
4
4
|
"description": "Build UiPath Flow, Case, and BPMN artifacts by writing TypeScript.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://docs.uipath.com/maestro",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"@types/node": "^22.7.0",
|
|
114
114
|
"esbuild": "^0.28.1"
|
|
115
115
|
},
|
|
116
|
-
"gitref": "
|
|
116
|
+
"gitref": "d9bc41712e2b48a217958488517e21449bdd9ded"
|
|
117
117
|
}
|
|
File without changes
|