@uipath/maestro-builder-sdk 6.97.1 → 6.97.3

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.
@@ -393,14 +393,47 @@ export interface BpmnFlow {
393
393
  * return value), or `'inputOutput'` (a mutable flow variable).
394
394
  */
395
395
  export type VarDirection = 'input' | 'inputOutput' | 'output';
396
+ /**
397
+ * A BPMN variable's `type` — the core {@link TypeDesc} spellings, plus the ones
398
+ * the product writes that are not core types.
399
+ *
400
+ * Studio Web stores a variable's `type` as free text, and the engine coerces a
401
+ * value only for the primitives it knows (`string`, `number`, `integer`,
402
+ * `boolean`, `null`); any other name is parsed generically. The designer fills it
403
+ * from the activity's manifest `outputType` when a task's output lands in a
404
+ * variable, so a real export carries names no core type covers:
405
+ *
406
+ * - `'null'` — the JSON-schema `null` type. Studio Web gives it to an output
407
+ * whose inferred schema is empty, such as a script task's `response`; the
408
+ * engine reads a value of this type as null.
409
+ * - `'custom'` — the manifest `outputType` of an activity whose output shape is
410
+ * per instance (timer and connector triggers, for example).
411
+ * - `` `${Namespace}.${Name}` `` — the manifest `outputType` of an activity with a
412
+ * named output shape: `'Orchestrator.RunJob'` for a start-job task,
413
+ * `'Actions.HITL'`, `'Maestro.ReceiveMessageEvent'`. The namespace is one the
414
+ * manifest's `outputType` values use (`A2A`, `Actions`, `Maestro`,
415
+ * `Orchestrator`), so a quoted descriptor such as `'types.string'` is still
416
+ * a type error.
417
+ * - `` `Collection{${T}}` `` — the output of a multi-instance (looped) task or
418
+ * sub-process: Studio Web wraps the per-iteration type `T`, so a looped string
419
+ * output is `'Collection{string}'`.
420
+ *
421
+ * `compile` writes each one back exactly as spelled; only the core types are
422
+ * mapped (`object`/`array`/`any` to `json`).
423
+ *
424
+ * ```ts
425
+ * .vars([{ id: 'job', type: 'Orchestrator.RunJob', elementId: 'startJob' }])
426
+ * ```
427
+ */
428
+ export type BpmnVarType = TypeDesc | 'null' | 'custom' | `${'A2A' | 'Actions' | 'Maestro' | 'Orchestrator'}.${string}` | `Collection{${string}}`;
396
429
  /** A declared variable in the built graph (`uipath:input` / `uipath:inputOutput` / `uipath:output`, by `direction`). */
397
430
  export interface BpmnVarDecl {
398
431
  /** The variable's id — what expressions read as `vars.<id>`. */
399
432
  id: string;
400
433
  /** Display name; `.var()`/`.input()`/`.output()` default it to the id. */
401
434
  name: string;
402
- /** The variable's `types.*` descriptor. */
403
- type: TypeDesc;
435
+ /** The variable's type — a `types.*` descriptor or another product spelling; see {@link BpmnVarType}. */
436
+ type: BpmnVarType;
404
437
  /** How the variable crosses the process boundary — see {@link VarDirection}. */
405
438
  direction: VarDirection;
406
439
  /** Optional initial value. */
@@ -1125,8 +1158,8 @@ export interface SubProcessOpts extends ActivityOpts {
1125
1158
  export interface VarEntry extends VarOpts {
1126
1159
  /** The variable's id — what expressions read as `vars.<id>`. */
1127
1160
  id: string;
1128
- /** A `types.*` descriptor. */
1129
- type: TypeDesc;
1161
+ /** A `types.*` descriptor, or another product spelling — see {@link BpmnVarType}. */
1162
+ type: BpmnVarType;
1130
1163
  /** Which declaration this is. Defaults to `'inputOutput'`, the `.var()` kind. */
1131
1164
  direction?: VarDirection;
1132
1165
  }
@@ -3428,29 +3461,29 @@ declare abstract class ScopeBuilder {
3428
3461
  * A mutable flow variable (`uipath:inputOutput`). Root unless `elementId` scopes it.
3429
3462
  *
3430
3463
  * @param id - The variable's name.
3431
- * @param type - A `types.*` descriptor.
3464
+ * @param type - A `types.*` descriptor, or another product spelling ({@link BpmnVarType}).
3432
3465
  * @param opts - `direction`, a `default`, and `elementId` to scope it to one element.
3433
3466
  * @returns This builder, so calls chain.
3434
3467
  */
3435
- var(id: string, type: TypeDesc, opts?: VarOpts): this;
3468
+ var(id: string, type: BpmnVarType, opts?: VarOpts): this;
3436
3469
  /**
3437
3470
  * A read-only entry input (`uipath:input`).
3438
3471
  *
3439
3472
  * @param id - The input's name.
3440
- * @param type - A `types.*` descriptor.
3473
+ * @param type - A `types.*` descriptor, or another product spelling ({@link BpmnVarType}).
3441
3474
  * @param opts - A `default`, and `elementId` to scope it to one element.
3442
3475
  * @returns This builder, so calls chain.
3443
3476
  */
3444
- input(id: string, type: TypeDesc, opts?: VarOpts): this;
3477
+ input(id: string, type: BpmnVarType, opts?: VarOpts): this;
3445
3478
  /**
3446
3479
  * A return value (`uipath:output`).
3447
3480
  *
3448
3481
  * @param id - The output's name.
3449
- * @param type - A `types.*` descriptor.
3482
+ * @param type - A `types.*` descriptor, or another product spelling ({@link BpmnVarType}).
3450
3483
  * @param opts - A `default`, and `elementId` to scope it to one element.
3451
3484
  * @returns This builder, so calls chain.
3452
3485
  */
3453
- output(id: string, type: TypeDesc, opts?: VarOpts): this;
3486
+ output(id: string, type: BpmnVarType, opts?: VarOpts): this;
3454
3487
  /**
3455
3488
  * Several declarations as one call — the array form of `.var()` / `.input()` /
3456
3489
  * `.output()`.
@@ -2420,7 +2420,7 @@ class ScopeBuilder {
2420
2420
  * A mutable flow variable (`uipath:inputOutput`). Root unless `elementId` scopes it.
2421
2421
  *
2422
2422
  * @param id - The variable's name.
2423
- * @param type - A `types.*` descriptor.
2423
+ * @param type - A `types.*` descriptor, or another product spelling ({@link BpmnVarType}).
2424
2424
  * @param opts - `direction`, a `default`, and `elementId` to scope it to one element.
2425
2425
  * @returns This builder, so calls chain.
2426
2426
  */
@@ -2431,7 +2431,7 @@ class ScopeBuilder {
2431
2431
  * A read-only entry input (`uipath:input`).
2432
2432
  *
2433
2433
  * @param id - The input's name.
2434
- * @param type - A `types.*` descriptor.
2434
+ * @param type - A `types.*` descriptor, or another product spelling ({@link BpmnVarType}).
2435
2435
  * @param opts - A `default`, and `elementId` to scope it to one element.
2436
2436
  * @returns This builder, so calls chain.
2437
2437
  */
@@ -2442,7 +2442,7 @@ class ScopeBuilder {
2442
2442
  * A return value (`uipath:output`).
2443
2443
  *
2444
2444
  * @param id - The output's name.
2445
- * @param type - A `types.*` descriptor.
2445
+ * @param type - A `types.*` descriptor, or another product spelling ({@link BpmnVarType}).
2446
2446
  * @param opts - A `default`, and `elementId` to scope it to one element.
2447
2447
  * @returns This builder, so calls chain.
2448
2448
  */
@@ -53,7 +53,7 @@ function mapType(t) {
53
53
  case 'any':
54
54
  return 'json';
55
55
  default:
56
- return t; // string | number | boolean | file
56
+ return t; // a core primitive, or a product spelling (`null`, `Orchestrator.RunJob`, …) written back as-is
57
57
  }
58
58
  }
59
59
  export async function serialize(built, opts = {}) {
package/dist/bpmn-api.md CHANGED
@@ -94,9 +94,9 @@ The set of node/flow/variable methods common to the process root and every sub-p
94
94
  - `ScopeBuilder.race(id: string, arms: ArmBodyFn[], opts?: SplitOpts): this` — An event-based gateway whose arms are written in place: each arm begins with something to wait for, the first to happen…
95
95
  - `ScopeBuilder.flowIds(entries: PinnedFlowId[]): this` — Give the edges the nesting constructs IMPLY the ids you choose.
96
96
  - `ScopeBuilder.sequenceFlow(source: string, target: string, opts?: FlowOpts): this` — A sequence flow from `source` to `target` (1-1 with `bpmn:sequenceFlow`).
97
- - `ScopeBuilder.var(id: string, type: TypeDesc, opts?: VarOpts): this` — A mutable flow variable (`uipath:inputOutput`).
98
- - `ScopeBuilder.input(id: string, type: TypeDesc, opts?: VarOpts): this` — A read-only entry input (`uipath:input`).
99
- - `ScopeBuilder.output(id: string, type: TypeDesc, opts?: VarOpts): this` — A return value (`uipath:output`).
97
+ - `ScopeBuilder.var(id: string, type: BpmnVarType, opts?: VarOpts): this` — A mutable flow variable (`uipath:inputOutput`).
98
+ - `ScopeBuilder.input(id: string, type: BpmnVarType, opts?: VarOpts): this` — A read-only entry input (`uipath:input`).
99
+ - `ScopeBuilder.output(id: string, type: BpmnVarType, opts?: VarOpts): this` — A return value (`uipath:output`).
100
100
  - `ScopeBuilder.vars(entries: VarEntry[]): this` — Several declarations as one call — the array form of `.var()` / `.input()` / `.output()`.
101
101
 
102
102
  ### `SubProcessBuilder`
@@ -621,7 +621,7 @@ A declared variable in the built graph (`uipath:input` / `uipath:inputOutput` /
621
621
 
622
622
  - `BpmnVarDecl.id: string` — The variable's id — what expressions read as `vars.<id>`.
623
623
  - `BpmnVarDecl.name: string` — Display name; `.var()`/`.input()`/`.output()` default it to the id.
624
- - `BpmnVarDecl.type: TypeDesc` — The variable's `types.*` descriptor.
624
+ - `BpmnVarDecl.type: BpmnVarType` — The variable's type — a `types.*` descriptor or another product spelling; see BpmnVarType.
625
625
  - `BpmnVarDecl.direction: VarDirection` — How the variable crosses the process boundary — see VarDirection.
626
626
  - `BpmnVarDecl.default?: unknown` — Optional initial value.
627
627
  - `BpmnVarDecl.elementId?: string | null` — The element the declaration belongs to — see VarOpts.elementId.
@@ -781,9 +781,11 @@ One implied edge whose id is pinned — see ScopeBuilder.flowIds.
781
781
  - `PinnedFlowId.target: string` — The element it flows into.
782
782
  - `PinnedFlowId.id: string` — The id to give it instead of the derived `Flow_<source>_<target>`.
783
783
 
784
- ### `TypeDesc`
784
+ ### `BpmnVarType`
785
785
 
786
- - `type TypeDesc = (typeof types)[keyof typeof types]`
786
+ A BPMN variable's `type` — the core TypeDesc spellings, plus the ones the product writes that are not core types.
787
+
788
+ - `` type BpmnVarType = TypeDesc | 'null' | 'custom' | `${'A2A' | 'Actions' | 'Maestro' | 'Orchestrator'}.${string}` | `Collection{${string}}` ``
787
789
 
788
790
  ### `VarEntry`
789
791
 
@@ -792,7 +794,7 @@ One entry of ScopeBuilder.vars — a `.var()` / `.input()` / `.output()` call wr
792
794
  Extends `VarOpts` — its fields and methods apply here too.
793
795
 
794
796
  - `VarEntry.id: string` — The variable's id — what expressions read as `vars.<id>`.
795
- - `VarEntry.type: TypeDesc` — A `types.*` descriptor.
797
+ - `VarEntry.type: BpmnVarType` — A `types.*` descriptor, or another product spelling — see BpmnVarType.
796
798
  - `VarEntry.direction?: VarDirection` — Which declaration this is.
797
799
 
798
800
  ### `MessageDecl`
@@ -986,6 +988,10 @@ The entity a `.dataService()` addresses: a tenant-level entity by name; a folder
986
988
 
987
989
  - `type DataServiceEntity = string | EntityRef | DataServiceFolderEntity`
988
990
 
991
+ ### `TypeDesc`
992
+
993
+ - `type TypeDesc = (typeof types)[keyof typeof types]`
994
+
989
995
  ### `RetrySpec`
990
996
 
991
997
  Retry an activity that fails (`uipath:retry`).
@@ -39,7 +39,8 @@ export interface ProcessResourceDef {
39
39
  * `<folderPath>.<name>`; the folder default is `''`;
40
40
  * - no `section: 'Published'`;
41
41
  * - `projectId` on the definition AND on the model, with `projectName` and
42
- * `isInSolution: true` (the marker the canvas reads);
42
+ * `isInSolution: true` (the marker the canvas reads). With no `projectId`
43
+ * the model carries only `projectName`, the shape Studio Web writes;
43
44
  * - description `(In-solution) <name>`, tags `in-solution` / `local`, and the
44
45
  * `open-workflow` toolbar action.
45
46
  */
@@ -13,7 +13,8 @@
13
13
  * `<folderPath>.<name>`; the folder default is `''`;
14
14
  * - no `section: 'Published'`;
15
15
  * - `projectId` on the definition AND on the model, with `projectName` and
16
- * `isInSolution: true` (the marker the canvas reads);
16
+ * `isInSolution: true` (the marker the canvas reads). With no `projectId`
17
+ * the model carries only `projectName`, the shape Studio Web writes;
17
18
  * - description `(In-solution) <name>`, tags `in-solution` / `local`, and the
18
19
  * `open-workflow` toolbar action.
19
20
  */
@@ -31,7 +32,12 @@ export function processResourceLocation(spec) {
31
32
  },
32
33
  projectId: spec.projectId,
33
34
  },
34
- modelExtras: { projectId: spec.projectId, projectName: spec.name, isInSolution: true },
35
+ // With no projectId, the shape Studio Web writes: `projectName` and no
36
+ // `isInSolution` (10 corpus flows, all accepted by `flow validate`).
37
+ // `isInSolution` without a `projectId` is a shape no oracle writes.
38
+ modelExtras: blank(spec.projectId)
39
+ ? { projectName: spec.name }
40
+ : { projectId: spec.projectId, projectName: spec.name, isInSolution: true },
35
41
  };
36
42
  }
37
43
  const folderPath = spec.folderPath ?? '';
package/dist/index.d.ts CHANGED
@@ -25,7 +25,7 @@ export type { CaseRule, CaseRuleInput, CaseRuleGrid, WhenExpression, CaseJsonPre
25
25
  export { serialize as serializeCase } from './case/serialize.js';
26
26
  export { decompile as decompileCase, decompileWithDiagnostics as decompileCaseWithDiagnostics } from './case/decompile.js';
27
27
  export { bpmn } from './bpmn/bpmn-sdk.js';
28
- export type { BuiltBpmn, BpmnNode, BpmnFlow, BpmnVarDecl, EventDef, GatewayKind, EventKind, LoopSpec, RetrySpec, ActivityOpts, HttpOpts, ActivityBodyFn, ArmBodyFn, HandlerOpts, ErrorHandlerOpts, TimerHandlerOpts, MessageHandlerOpts, ChooseArm, ChooseOpts, SplitOpts, JoinOpts, EventSubProcessOpts, FlowMode, } from './bpmn/bpmn-sdk.js';
28
+ export type { BuiltBpmn, BpmnNode, BpmnFlow, BpmnVarDecl, BpmnVarType, EventDef, GatewayKind, EventKind, LoopSpec, RetrySpec, ActivityOpts, HttpOpts, ActivityBodyFn, ArmBodyFn, HandlerOpts, ErrorHandlerOpts, TimerHandlerOpts, MessageHandlerOpts, ChooseArm, ChooseOpts, SplitOpts, JoinOpts, EventSubProcessOpts, FlowMode, } from './bpmn/bpmn-sdk.js';
29
29
  export { PathBuilder, ActivityBuilder } from './bpmn/bpmn-sdk.js';
30
30
  export { renderGraph as renderBpmnGraph, graphModel as bpmnGraphModel } from './bpmn/graph.js';
31
31
  export type { GraphScope as BpmnGraphScope, GraphNode as BpmnGraphNode, GraphEdge as BpmnGraphEdge } from './bpmn/graph.js';
@@ -21,7 +21,7 @@ export const PROCESS_DIAGNOSTICS = {
21
21
  AGENTIC_KEY_NOT_KEY: { severity: 'error', summary: 'an agentic process step whose key is not a GUID' },
22
22
  AGENTIC_LOCAL_FORM_UNVERIFIED: { severity: 'error', summary: 'an agentic process step in-solution, with a form other than flow' },
23
23
  AGENTIC_LOCAL_HAS_FOLDER: { severity: 'error', summary: 'an agentic process step in-solution, with a folderPath' },
24
- AGENTIC_LOCAL_NO_PROJECT_ID: { severity: 'error', summary: 'an agentic process step in-solution, with no projectId' },
24
+ AGENTIC_LOCAL_NO_PROJECT_ID: { severity: 'warning', summary: 'an agentic process step in-solution, with no projectId' },
25
25
  AGENTIC_LOCAL_PROJECT_ID_NOT_GUID: { severity: 'error', summary: 'an agentic process step in-solution, with a projectId that is not a GUID' },
26
26
  AGENTIC_NAME_IS_PATH: { severity: 'error', summary: 'an agentic process step whose name looks like a folder path' },
27
27
  AGENTIC_NO_FOLDER: { severity: 'error', summary: 'an agentic process step with no folderPath' },
@@ -34,7 +34,7 @@ export const PROCESS_DIAGNOSTICS = {
34
34
  APIWF_EMPTY_RETURNS: { severity: 'warning', summary: 'an API workflow step with returns: {}' },
35
35
  APIWF_KEY_NOT_KEY: { severity: 'error', summary: 'an API workflow step whose key is not a GUID' },
36
36
  APIWF_LOCAL_HAS_FOLDER: { severity: 'error', summary: 'an API workflow step in-solution, with a folderPath' },
37
- APIWF_LOCAL_NO_PROJECT_ID: { severity: 'error', summary: 'an API workflow step in-solution, with no projectId' },
37
+ APIWF_LOCAL_NO_PROJECT_ID: { severity: 'warning', summary: 'an API workflow step in-solution, with no projectId' },
38
38
  APIWF_LOCAL_PROJECT_ID_NOT_GUID: { severity: 'error', summary: 'an API workflow step in-solution, with a projectId that is not a GUID' },
39
39
  APIWF_NAME_IS_PATH: { severity: 'error', summary: 'an API workflow step whose name looks like a folder path' },
40
40
  APIWF_NO_FOLDER: { severity: 'error', summary: 'an API workflow step with no folderPath' },
@@ -46,7 +46,7 @@ export const PROCESS_DIAGNOSTICS = {
46
46
  FUNCTION_EMPTY_RETURNS: { severity: 'warning', summary: 'a function step with returns: {}' },
47
47
  FUNCTION_KEY_NOT_KEY: { severity: 'error', summary: 'a function step whose key is not a GUID' },
48
48
  FUNCTION_LOCAL_HAS_FOLDER: { severity: 'error', summary: 'a function step in-solution, with a folderPath' },
49
- FUNCTION_LOCAL_NO_PROJECT_ID: { severity: 'error', summary: 'a function step in-solution, with no projectId' },
49
+ FUNCTION_LOCAL_NO_PROJECT_ID: { severity: 'warning', summary: 'a function step in-solution, with no projectId' },
50
50
  FUNCTION_LOCAL_PROJECT_ID_NOT_GUID: { severity: 'error', summary: 'a function step in-solution, with a projectId that is not a GUID' },
51
51
  FUNCTION_NAME_IS_PATH: { severity: 'error', summary: 'a function step whose name looks like a folder path' },
52
52
  FUNCTION_NO_FOLDER: { severity: 'error', summary: 'a function step with no folderPath' },
@@ -57,7 +57,7 @@ export const PROCESS_DIAGNOSTICS = {
57
57
  FUNCTION_READ_WITHOUT_RETURNS: { severity: 'error', summary: 'a function step field read with no returns' },
58
58
  RPA_KEY_NOT_KEY: { severity: 'error', summary: 'an RPA step whose key is not a GUID' },
59
59
  RPA_LOCAL_HAS_FOLDER: { severity: 'error', summary: 'an RPA step in-solution, with a folderPath' },
60
- RPA_LOCAL_NO_PROJECT_ID: { severity: 'error', summary: 'an RPA step in-solution, with no projectId' },
60
+ RPA_LOCAL_NO_PROJECT_ID: { severity: 'warning', summary: 'an RPA step in-solution, with no projectId' },
61
61
  RPA_LOCAL_PROJECT_ID_NOT_GUID: { severity: 'error', summary: 'an RPA step in-solution, with a projectId that is not a GUID' },
62
62
  RPA_NAME_IS_PATH: { severity: 'error', summary: 'an RPA step whose name looks like a folder path' },
63
63
  RPA_NO_FOLDER: { severity: 'error', summary: 'an RPA step with no folderPath' },
@@ -67,6 +67,25 @@ export const PROCESS_DIAGNOSTICS = {
67
67
  RPA_READ_UNKNOWN_FIELD: { severity: 'error', summary: 'an RPA step read of a field returns does not declare' },
68
68
  RPA_READ_WITHOUT_RETURNS: { severity: 'error', summary: 'an RPA step field read with no returns' },
69
69
  };
70
+ /**
71
+ * The `*_LOCAL_NO_PROJECT_ID` warning (RPA, API workflow, function, agentic
72
+ * process). A warning, not an error: `uip maestro flow validate` matches an
73
+ * in-solution step by `key` (the binding's bare resourceKey), the step's
74
+ * runtime context carries only the name and folder bindings, and Studio Web
75
+ * itself writes the node without `projectId` (10 corpus flows). But one
76
+ * design-time path reads it: Studio Web's Run node (flow-workbench
77
+ * `BackgroundService.inspectRunNodeContext`) treats the step as in-solution,
78
+ * and deploys the sibling before running it, only when `model.projectId` is
79
+ * set. So the message says to keep a decompiled step as is and to add the id
80
+ * on a step you author. The agent's rule stays an error: no in-solution agent
81
+ * without one has been run.
82
+ */
83
+ function noProjectIdMessage(kind, step, solutionFolder) {
84
+ return `In-solution ${kind} step "${step}" has no \`projectId\`. \`flow validate\` matches the step by \`key\` `
85
+ + `(the binding's bare resourceKey), so a step decompiled without one can stay as is. On a step you author, `
86
+ + `add it: Studio Web's Run node reads \`model.projectId\` to deploy the sibling before it runs the step. `
87
+ + `Read \`resource.projectKey\` from \`resources/solution_folder/process/${solutionFolder}/<project>.json\`.`;
88
+ }
70
89
  /**
71
90
  * Check an `rpaWorkflow(...)` call.
72
91
  *
@@ -109,8 +128,7 @@ export function checkRpaWorkflow(inputs, ctx) {
109
128
  + `Orchestrator folder holding the process is required.`, `folderPath: 'Shared/uipath-maestro-flow/ProjectEuler RPA'`);
110
129
  }
111
130
  if (inSolution && blank(inputs?.projectId)) {
112
- at('RPA_LOCAL_NO_PROJECT_ID', `In-solution RPA step "${step}" has no \`projectId\`. Read \`resource.projectKey\` from `
113
- + `\`resources/solution_folder/process/process/<project>.json\`.`, `projectId: '<resource.projectKey>'`);
131
+ at('RPA_LOCAL_NO_PROJECT_ID', noProjectIdMessage('RPA', step, 'process'), `projectId: '<resource.projectKey>'`);
114
132
  }
115
133
  else if (inSolution && !GUID_RE.test(String(inputs.projectId).trim())) {
116
134
  at('RPA_LOCAL_PROJECT_ID_NOT_GUID', `In-solution RPA step "${step}" has projectId ${JSON.stringify(inputs.projectId)}, which is not `
@@ -167,8 +185,7 @@ export function checkApiWorkflow(inputs, ctx) {
167
185
  + `\`location: 'in-solution'\` and its \`projectId\` instead.`, `folderPath: 'Shared'`);
168
186
  }
169
187
  if (inSolution && blank(inputs?.projectId)) {
170
- at('APIWF_LOCAL_NO_PROJECT_ID', `In-solution API workflow step "${step}" has no \`projectId\`. Read \`resource.projectKey\` from `
171
- + `\`resources/solution_folder/process/api/<project>.json\`.`, `projectId: '<resource.projectKey>'`);
188
+ at('APIWF_LOCAL_NO_PROJECT_ID', noProjectIdMessage('API workflow', step, 'api'), `projectId: '<resource.projectKey>'`);
172
189
  }
173
190
  else if (inSolution && !GUID_RE.test(String(inputs.projectId).trim())) {
174
191
  at('APIWF_LOCAL_PROJECT_ID_NOT_GUID', `In-solution API workflow step "${step}" has projectId ${JSON.stringify(inputs.projectId)}, which is not `
@@ -219,8 +236,7 @@ export function checkPublishedFunction(inputs, ctx) {
219
236
  + `and its \`projectId\` instead.`, `folderPath: 'Shared/acme-echo'`);
220
237
  }
221
238
  if (inSolution && blank(inputs?.projectId)) {
222
- at('FUNCTION_LOCAL_NO_PROJECT_ID', `In-solution function step "${step}" has no \`projectId\`. Read \`resource.projectKey\` from `
223
- + `\`resources/solution_folder/process/function/<project>.json\`.`, `projectId: '<resource.projectKey>'`);
239
+ at('FUNCTION_LOCAL_NO_PROJECT_ID', noProjectIdMessage('function', step, 'function'), `projectId: '<resource.projectKey>'`);
224
240
  }
225
241
  else if (inSolution && !GUID_RE.test(String(inputs.projectId).trim())) {
226
242
  at('FUNCTION_LOCAL_PROJECT_ID_NOT_GUID', `In-solution function step "${step}" has projectId ${JSON.stringify(inputs.projectId)}, which is not `
@@ -304,8 +320,7 @@ export function checkAgenticProcess(inputs, ctx) {
304
320
  }
305
321
  if (inSolution && blank(inputs?.projectId)) {
306
322
  const folder = (ownEntry(AGENTIC_PROCESS_FORMS, inputs?.form ?? 'bpmn') ?? AGENTIC_PROCESS_FORMS.bpmn).solutionFolder;
307
- at('AGENTIC_LOCAL_NO_PROJECT_ID', `In-solution agentic process step "${step}" has no \`projectId\`. Read \`resource.projectKey\` from `
308
- + `\`resources/solution_folder/process/${folder}/<project>.json\`.`, `projectId: '<resource.projectKey>'`);
323
+ at('AGENTIC_LOCAL_NO_PROJECT_ID', noProjectIdMessage('agentic process', step, folder), `projectId: '<resource.projectKey>'`);
309
324
  }
310
325
  else if (inSolution && !GUID_RE.test(String(inputs.projectId).trim())) {
311
326
  at('AGENTIC_LOCAL_PROJECT_ID_NOT_GUID', `In-solution agentic process step "${step}" has projectId ${JSON.stringify(inputs.projectId)}, which is not `
@@ -38,10 +38,12 @@ export interface RpaWorkflowInputs {
38
38
  folderPath?: string;
39
39
  /**
40
40
  * The sibling RPA project's `resource.projectKey`, read from
41
- * `resources/solution_folder/process/process/<project>.json`. Required only
42
- * when `location` is `'in-solution'`.
41
+ * `resources/solution_folder/process/process/<project>.json`. Used only when
42
+ * `location` is `'in-solution'`. The step resolves by `key`, so omitting it is a
43
+ * warning, not an error; but Studio Web's Run node reads it to deploy the
44
+ * sibling first, so set it on a step you author.
43
45
  *
44
- * @enforcedBy RPA_LOCAL_NO_PROJECT_ID An in-solution process needs its project id.
46
+ * @enforcedBy RPA_LOCAL_NO_PROJECT_ID An in-solution process should name its project (warning).
45
47
  */
46
48
  projectId?: string;
47
49
  /**
@@ -99,10 +101,12 @@ export interface ApiWorkflowInputs {
99
101
  folderPath?: string;
100
102
  /**
101
103
  * The sibling API workflow project's `resource.projectKey`, read from
102
- * `resources/solution_folder/process/api/<project>.json`. Required only when
103
- * `location` is `'in-solution'`.
104
+ * `resources/solution_folder/process/api/<project>.json`. Used only when
105
+ * `location` is `'in-solution'`. The step resolves by `key`, so omitting it is a
106
+ * warning, not an error; but Studio Web's Run node reads it to deploy the
107
+ * sibling first, so set it on a step you author.
104
108
  *
105
- * @enforcedBy APIWF_LOCAL_NO_PROJECT_ID An in-solution API workflow needs its project id.
109
+ * @enforcedBy APIWF_LOCAL_NO_PROJECT_ID An in-solution API workflow should name its project (warning).
106
110
  * @enforcedBy APIWF_LOCAL_PROJECT_ID_NOT_GUID The project id is the sibling's GUID, not its name.
107
111
  */
108
112
  projectId?: string;
@@ -166,10 +170,12 @@ export interface PublishedFunctionInputs {
166
170
  folderPath?: string;
167
171
  /**
168
172
  * The sibling function project's `resource.projectKey`, read from
169
- * `resources/solution_folder/process/function/<project>.json`. Required only
170
- * when `location` is `'in-solution'`.
173
+ * `resources/solution_folder/process/function/<project>.json`. Used only when
174
+ * `location` is `'in-solution'`. The step resolves by `key`, so omitting it is a
175
+ * warning, not an error; but Studio Web's Run node reads it to deploy the
176
+ * sibling first, so set it on a step you author.
171
177
  *
172
- * @enforcedBy FUNCTION_LOCAL_NO_PROJECT_ID An in-solution function needs its project id.
178
+ * @enforcedBy FUNCTION_LOCAL_NO_PROJECT_ID An in-solution function should name its project (warning).
173
179
  * @enforcedBy FUNCTION_LOCAL_PROJECT_ID_NOT_GUID The project id is the sibling's GUID, not its name.
174
180
  */
175
181
  projectId?: string;
@@ -222,9 +228,11 @@ interface AgenticProcessInputsBase {
222
228
  /**
223
229
  * The sibling project's `resource.projectKey`, read from the same resource
224
230
  * file as `key` (`resources/solution_folder/process/flow/<project>.json`).
225
- * Required only when `location` is `'in-solution'`.
231
+ * Used only when `location` is `'in-solution'`. The step resolves by `key`, so
232
+ * omitting it is a warning, not an error; but Studio Web's Run node reads it
233
+ * to deploy the sibling first, so set it on a step you author.
226
234
  *
227
- * @enforcedBy AGENTIC_LOCAL_NO_PROJECT_ID An in-solution process needs its project id.
235
+ * @enforcedBy AGENTIC_LOCAL_NO_PROJECT_ID An in-solution process should name its project (warning).
228
236
  */
229
237
  projectId?: string;
230
238
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-builder-sdk",
3
- "version": "6.97.1",
3
+ "version": "6.97.3",
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",
@@ -114,5 +114,5 @@
114
114
  "@types/node": "^22.7.0",
115
115
  "esbuild": "^0.28.1"
116
116
  },
117
- "gitref": "9ed95e4a157d2c2e05ceb0b3e0634c6d61e6d21e"
117
+ "gitref": "2ae3d2904f0970fae81e8f36dbb3d30ae97be938"
118
118
  }