@uipath/maestro-builder-sdk 6.97.2 → 6.98.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.
@@ -0,0 +1,132 @@
1
+ /**
2
+ * baseline-scope — the part of `check --baseline <original>` every family shares:
3
+ * given each finding's place and whether that place is unchanged from the
4
+ * original, decide which findings the edit did not cause.
5
+ *
6
+ * The family decides the two things that are its own: where a finding sits (a
7
+ * Flow node, a BPMN element) and what "unchanged" means there (Flow: merge's
8
+ * `classifyDrafts`; BPMN: the same built element, payload and all). This file
9
+ * matches the findings against the original's own check, the same way for all.
10
+ *
11
+ * For instance, an edited check that reports `INTSVC_CONNECTION_MISSING` on an
12
+ * element `task1` the edit did not touch, while the original's check reports
13
+ * the same code on `task1`, gets that finding back as pre-existing. The same
14
+ * finding on an element the edit changed is not, and neither is a finding the
15
+ * original does not have.
16
+ *
17
+ * Pure: no file access, no family imports.
18
+ */
19
+ import { refusalClass } from './refusals.js';
20
+ /** The identity of a finding for the introduced-or-not comparison: its code and message. */
21
+ function findingKey(f) {
22
+ return `${f.code}\n${f.message}`;
23
+ }
24
+ /** How many times each code-and-message pair occurs, for {@link splitUnplaced}'s baseline. */
25
+ export function findingCounts(findings) {
26
+ const counts = new Map();
27
+ for (const f of findings)
28
+ counts.set(findingKey(f), (counts.get(findingKey(f)) ?? 0) + 1);
29
+ return counts;
30
+ }
31
+ /**
32
+ * Sort findings that name no node or element by whether the edit introduced
33
+ * them: `known` when the ORIGINAL's own check (`baseline`, as
34
+ * {@link findingCounts}) reports the same code and message — once per
35
+ * occurrence, so a second copy of a finding the original has once is
36
+ * `introduced` — and `introduced` otherwise. With no baseline counts (a
37
+ * precompiled `--baseline` file in `flow merge`), every one is `introduced`.
38
+ */
39
+ export function splitUnplaced(unplaced, baseline) {
40
+ const known = [];
41
+ const introduced = [];
42
+ const left = new Map(baseline ?? []);
43
+ for (const f of unplaced) {
44
+ const n = left.get(findingKey(f)) ?? 0;
45
+ if (n > 0) {
46
+ left.set(findingKey(f), n - 1);
47
+ known.push(f);
48
+ }
49
+ else
50
+ introduced.push(f);
51
+ }
52
+ return { known, introduced };
53
+ }
54
+ /** The `"quoted"` names in a finding's message, in order: what it is about, apart from its wording. */
55
+ function quotedSubjects(message) {
56
+ return JSON.stringify(message.match(/"[^"]*"/g) ?? []);
57
+ }
58
+ /**
59
+ * The indexes into `edited` of the findings the edit did not cause:
60
+ *
61
+ * - a finding on an unchanged place is pre-existing when the original
62
+ * reports the same code on the same place, once per occurrence. Exact
63
+ * messages are matched first; a second pass forgives wording the edit can
64
+ * shift without touching the finding (a "Known steps: ..." list), but only
65
+ * between messages that name the same `"quoted"` subjects;
66
+ * - a finding that names no place is pre-existing when the original reports
67
+ * the same code and message ({@link splitUnplaced});
68
+ * - a finding on a changed or new place never is.
69
+ *
70
+ * Every match also needs the same level: an edited error is never vouched for by a
71
+ * warning the original has, since the edit is what made it an error.
72
+ */
73
+ export function preExistingFindings(edited, baseline) {
74
+ const onPlace = (f) => `${f.place}\n${f.level}\n${f.code}`;
75
+ // The original's findings on each place, by code; each one vouches for one edited finding.
76
+ const pool = new Map();
77
+ for (const b of baseline) {
78
+ if (b.place === '')
79
+ continue;
80
+ pool.set(onPlace(b), [...(pool.get(onPlace(b)) ?? []), b.message]);
81
+ }
82
+ const preExisting = new Set();
83
+ for (const exact of [true, false]) {
84
+ for (const [i, f] of edited.entries()) {
85
+ if (f.place === '' || !f.unchanged || preExisting.has(i))
86
+ continue;
87
+ const messages = pool.get(onPlace(f)) ?? [];
88
+ const j = exact ? messages.indexOf(f.message) : messages.findIndex((m) => quotedSubjects(m) === quotedSubjects(f.message));
89
+ if (j < 0)
90
+ continue;
91
+ messages.splice(j, 1);
92
+ preExisting.add(i);
93
+ }
94
+ }
95
+ // The level rides in the code, so a warning the original has does not vouch for an error.
96
+ const leveled = (f) => ({ ...f, code: `${f.level}\n${f.code}` });
97
+ const unplaced = [...edited.entries()].filter(([, f]) => f.place === '').map(([i, f]) => ({ ...leveled(f), i }));
98
+ for (const f of splitUnplaced(unplaced, findingCounts(baseline.map(leveled))).known)
99
+ preExisting.add(f.i);
100
+ return preExisting;
101
+ }
102
+ /**
103
+ * `diags` with an `origin` on each: `pre-existing` for the indexes in
104
+ * `preExisting` (a {@link preExistingFindings} result), `edited` for the rest.
105
+ * A pre-existing finding becomes a warning, so it does not fail the check; a
106
+ * pre-existing `lowering` error also gets `loweringNote` on a line of its own,
107
+ * since the SDK cannot write back what the original holds there.
108
+ */
109
+ export function scopeFindings(diags, preExisting, loweringNote) {
110
+ return diags.map((d, i) => {
111
+ if (!preExisting.has(i))
112
+ return { ...d, origin: 'edited' };
113
+ const defect = d.level === 'error' && (d.class ?? refusalClass(d.code)) === 'lowering';
114
+ return { ...d, level: 'warning', message: defect ? `${d.message}\n ${loweringNote}` : d.message, origin: 'pre-existing' };
115
+ });
116
+ }
117
+ /**
118
+ * The `check --baseline` summary line: the errors that fail the check (the
119
+ * edit's), the pre-existing lowering findings (probable SDK defects) and the
120
+ * other pre-existing findings, and the edit's own warnings when there are any.
121
+ * `places` names what was edited (`nodes`, `elements`). For instance
122
+ * `1 error(s) in edited nodes, 1 pre-existing SDK defect(s), 1 pre-existing warning(s)`.
123
+ */
124
+ export function baselineSummary(diags, places) {
125
+ const edited = diags.filter((d) => d.origin !== 'pre-existing');
126
+ const pre = diags.filter((d) => d.origin === 'pre-existing');
127
+ const errors = edited.filter((d) => d.level === 'error').length;
128
+ const defects = pre.filter((d) => (d.class ?? refusalClass(d.code)) === 'lowering').length;
129
+ const warnings = edited.length - errors;
130
+ return `${errors} error(s) in edited ${places}, ${defects} pre-existing SDK defect(s), ${pre.length - defects} pre-existing warning(s)`
131
+ + (warnings ? `, ${warnings} warning(s) in edited ${places}` : '');
132
+ }
@@ -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 ?? '';
@@ -211,27 +211,9 @@ export type PlacedDiagnostic = Diagnostic & {
211
211
  * to, gets nodeId `''`.
212
212
  */
213
213
  export declare function placeDiagnostics(diagnostics: readonly Diagnostic[], editedFlow: any): PlacedDiagnostic[];
214
- /** How many times each {@link findingKey} occurs, for {@link splitUnplaced}'s baseline. */
215
- export declare function findingCounts(findings: ReadonlyArray<{
216
- code: string;
217
- message: string;
218
- }>): Map<string, number>;
219
214
  /**
220
- * Sort findings merge could not place on a node by whether the edit introduced
221
- * them: `known` when the ORIGINAL's own round trip (`baseline`, the decompiled
222
- * original compiled and checked, as {@link findingCounts}) reports the same
223
- * code and message — once per occurrence, so a second copy of a finding the
224
- * original has once is `introduced` — so the finding predates the edit and
225
- * only prints; `introduced` otherwise, which is refused like any error on an
226
- * edited node (#1322). With no baseline findings to compare against (a
227
- * precompiled `--baseline` file), every one is `introduced`, as merge treated
228
- * them before.
215
+ * Sorting the findings that name no node by whether the original has them too
216
+ * (`findingCounts`, `splitUnplaced`) is shared with every family's
217
+ * `check --baseline` (core/baseline-scope.ts).
229
218
  */
230
- export declare function splitUnplaced<T extends {
231
- code: string;
232
- message: string;
233
- }>(unplaced: readonly T[], baseline: ReadonlyMap<string, number> | undefined): {
234
- known: T[];
235
- introduced: T[];
236
- };
237
- export {};
219
+ export { findingCounts, splitUnplaced } from './core/baseline-scope.js';
@@ -292,42 +292,11 @@ export function placeDiagnostics(diagnostics, editedFlow) {
292
292
  };
293
293
  return diagnostics.map((d) => ({ ...d, ...place(d.step) }));
294
294
  }
295
- /** The identity of a finding for the introduced-or-not comparison: its code and message. */
296
- function findingKey(f) {
297
- return `${f.code}\n${f.message}`;
298
- }
299
- /** How many times each {@link findingKey} occurs, for {@link splitUnplaced}'s baseline. */
300
- export function findingCounts(findings) {
301
- const counts = new Map();
302
- for (const f of findings)
303
- counts.set(findingKey(f), (counts.get(findingKey(f)) ?? 0) + 1);
304
- return counts;
305
- }
306
295
  /**
307
- * Sort findings merge could not place on a node by whether the edit introduced
308
- * them: `known` when the ORIGINAL's own round trip (`baseline`, the decompiled
309
- * original compiled and checked, as {@link findingCounts}) reports the same
310
- * code and message — once per occurrence, so a second copy of a finding the
311
- * original has once is `introduced` — so the finding predates the edit and
312
- * only prints; `introduced` otherwise, which is refused like any error on an
313
- * edited node (#1322). With no baseline findings to compare against (a
314
- * precompiled `--baseline` file), every one is `introduced`, as merge treated
315
- * them before.
296
+ * Sorting the findings that name no node by whether the original has them too
297
+ * (`findingCounts`, `splitUnplaced`) is shared with every family's
298
+ * `check --baseline` (core/baseline-scope.ts).
316
299
  */
317
- export function splitUnplaced(unplaced, baseline) {
318
- const known = [];
319
- const introduced = [];
320
- const left = new Map(baseline ?? []);
321
- for (const f of unplaced) {
322
- const n = left.get(findingKey(f)) ?? 0;
323
- if (n > 0) {
324
- left.set(findingKey(f), n - 1);
325
- known.push(f);
326
- }
327
- else
328
- introduced.push(f);
329
- }
330
- return { known, introduced };
331
- }
300
+ export { findingCounts, splitUnplaced } from './core/baseline-scope.js';
332
301
  /** How `check` joins a subflow's calling step and the step inside it in a diagnostic's `step`. */
333
302
  const SUBFLOW_STEP_SEPARATOR = ' › ';
@@ -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.2",
3
+ "version": "6.98.0",
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",
@@ -77,7 +77,8 @@
77
77
  "prepare-resource",
78
78
  "bpmn-merge-source",
79
79
  "flow-merge-source",
80
- "fetch-definitions"
80
+ "fetch-definitions",
81
+ "bpmn-check-baseline"
81
82
  ],
82
83
  "files": [
83
84
  "dist",
@@ -114,5 +115,5 @@
114
115
  "@types/node": "^22.7.0",
115
116
  "esbuild": "^0.28.1"
116
117
  },
117
- "gitref": "9ad73714ac7ceb1c2b19bf4053ddd91cc122a5ed"
118
+ "gitref": "c34b7ab7eafff32159cf7ae8d651cbf7aa65465c"
118
119
  }