@uipath/maestro-builder-sdk 6.96.5 → 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
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/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/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
|
}
|