@uipath/maestro-builder-sdk 6.119.2 → 6.119.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.
@@ -33,14 +33,15 @@ interface RtFlow {
33
33
  /** One difference, or one inconsistency in the merged file. */
34
34
  export interface MergeFinding {
35
35
  /** Which comparison found it. */
36
- kind: 'node-removed' | 'node-added' | 'node-type' | 'implicit-end' | 'edge-handle-renamed' | 'edge-rewired' | 'edge-removed' | 'edge-added' | 'handle-ids' | 'binding-removed' | 'binding-added' | 'variable-added' | 'variable-changed' | 'undeclared-handle' | 'duplicate-binding' | 'agent-sidecar' | 'agent-storage' | 'agent-prompt-input' | 'agent-embedded-edit' | 'outputs-superseded';
36
+ kind: 'node-removed' | 'node-added' | 'node-type' | 'implicit-end' | 'edge-handle-renamed' | 'edge-rewired' | 'edge-removed' | 'edge-added' | 'handle-ids' | 'binding-removed' | 'binding-added' | 'variable-added' | 'variable-changed' | 'undeclared-handle' | 'duplicate-binding' | 'agent-sidecar' | 'agent-storage' | 'agent-prompt-input' | 'agent-embedded-edit' | 'outputs-superseded' | 'entry-point-repaired';
37
37
  /** The finding, phrased for the author, naming the node, edge or row. */
38
38
  message: string;
39
39
  /**
40
40
  * Whether `strict` refuses the merge over it. False for `implicit-end` and
41
41
  * `binding-removed`, which leave the merged file doing what the original does,
42
- * for `agent-embedded-edit`, which reports what merge did not carry, and for
43
- * `outputs-superseded`, which reports a declaration merge corrected.
42
+ * for `agent-embedded-edit`, which reports what merge did not carry, for
43
+ * `outputs-superseded`, which reports a declaration merge corrected, and for
44
+ * `entry-point-repaired`, which reports a fix merge made.
44
45
  */
45
46
  refuses: boolean;
46
47
  }
package/dist/merge.js CHANGED
@@ -96,6 +96,7 @@
96
96
  * original plus the author's change to the node. See merge-embedded-agent.ts.
97
97
  */
98
98
  import { bindingIdentity } from './core/binding-identity.js';
99
+ import { GUID_RE } from './core/binding-messages.js';
99
100
  import { jsonClone } from './core/json-clone.js';
100
101
  import { isRecord } from './core/node-envelope.js';
101
102
  import { DEFINITIONLESS_NODE_TYPES } from './core/definitionless-node-types.js';
@@ -514,6 +515,7 @@ function mergeFlowFindings(original, edited, options) {
514
515
  result.nodes = finalNodes;
515
516
  for (const node of finalNodes)
516
517
  repairBareBranches(node, baseNodes.get(node.id));
518
+ const entryPointRepairs = repairEntryPointIds(finalNodes, byId(edited.nodes));
517
519
  // Nodes present in the original but absent from `edited` were deleted by the
518
520
  // user; they are simply not carried over.
519
521
  // ── Subflows: the edited flow is authoritative (the user's graph) — except a
@@ -659,6 +661,7 @@ function mergeFlowFindings(original, edited, options) {
659
661
  const findings = [
660
662
  ...superseded.findings,
661
663
  ...(options.baseline ? roundTripFindings(original, options.baseline, result, superseded.rootVariables) : []),
664
+ ...entryPointRepairs,
662
665
  ...mergedFileFindings(result, original),
663
666
  ];
664
667
  const agentFindings = (authored) => embeddedAgentFindings(!!options.baseline, [
@@ -672,6 +675,28 @@ function mergeFlowFindings(original, edited, options) {
672
675
  ], authored);
673
676
  return { result, findings, agentFindings };
674
677
  }
678
+ /**
679
+ * Replace a non-GUID root `entryPointId` with the edited compile's GUID: publish
680
+ * refuses non-GUIDs (1205). The edited id is deterministic; a GUID is never replaced.
681
+ */
682
+ function repairEntryPointIds(nodes, editedNodes) {
683
+ const out = [];
684
+ for (const node of nodes) {
685
+ const inputs = node.inputs;
686
+ const old = inputs?.entryPointId;
687
+ if (typeof old !== 'string' || GUID_RE.test(old))
688
+ continue;
689
+ const fresh = editedNodes.get(node.id)?.inputs?.entryPointId;
690
+ if (typeof fresh !== 'string' || !GUID_RE.test(fresh))
691
+ continue;
692
+ inputs.entryPointId = fresh;
693
+ out.push({
694
+ kind: 'entry-point-repaired', refuses: false,
695
+ message: `node "${node.id}" has entryPointId ${JSON.stringify(old)}; publish refuses non-GUIDs (1205). Replaced with ${fresh}.`,
696
+ });
697
+ }
698
+ return out;
699
+ }
675
700
  /**
676
701
  * Whether the merged node for `orig` must be built from the original rather than
677
702
  * taken from `edited`: the original is an embedded agent and the edited node is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-builder-sdk",
3
- "version": "6.119.2",
3
+ "version": "6.119.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",
@@ -124,5 +124,5 @@
124
124
  "@types/node": "^22.7.0",
125
125
  "esbuild": "^0.28.1"
126
126
  },
127
- "gitref": "2caacf86f4a3083208a58ffcd799a4b098acaf8d"
127
+ "gitref": "c2af9744363693a894d14ff8c0ce6cfb99c55d9b"
128
128
  }