@uipath/maestro-builder-sdk 6.124.17 → 6.124.18

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.
@@ -109,6 +109,13 @@ function liftableEscalationFor(agentType) {
109
109
  return n.type === 'uipath.agent.resource.escalation.coded-action-app' && v === appVersion;
110
110
  };
111
111
  }
112
+ /**
113
+ * Which nodes on an agent's `context` port the lift can write as a `context`
114
+ * entry: a context index only. Any other context resource (a Data Fabric
115
+ * entity set, for instance) stays reported as a dropped edge, not printed as an
116
+ * index with no id.
117
+ */
118
+ const liftableContext = (n) => parseContextIndexType(n.type) !== undefined;
112
119
  const QUICK_FORM_ESCALATION = 'uipath.agent.resource.escalation.quick-form';
113
120
  const CONNECTOR_TOOL_PREFIX = 'uipath.agent.resource.tool.connector.';
114
121
  /**
@@ -767,7 +774,7 @@ export function liftAgentResources(node, ctx, withMemory, agentInputs = []) {
767
774
  ['context', 'Context', Infinity], ['tool', 'Tool', Infinity],
768
775
  ['escalation', 'Escalation', Infinity], ...(withMemory ? [['memory', 'Memory', 1]] : []),
769
776
  ]) {
770
- const targets = ctx.attachedIds(port, port === 'tool' ? liftable : port === 'escalation' ? liftableEscalation : undefined);
777
+ const targets = ctx.attachedIds(port, port === 'tool' ? liftable : port === 'escalation' ? liftableEscalation : port === 'context' ? liftableContext : undefined);
771
778
  const keep = port !== 'memory'
772
779
  && targets.some((id, k) => id !== derivedResourceNodeId(node.id, kind, k));
773
780
  targets.forEach((id, k) => {
@@ -986,7 +993,7 @@ export function liftAgentResources(node, ctx, withMemory, agentInputs = []) {
986
993
  // `liftableToolFor` admits no other type.
987
994
  throw new Error(`internal SDK error: tool "${t.id}" of type ${type} has no lift.`);
988
995
  });
989
- const contextSrc = resource('context').map((c) => {
996
+ const contextSrc = resource('context', Infinity, liftableContext).map((c) => {
990
997
  const { name, id, folderPath, sidecar } = contextIndexIdentity(node, c, rPlain, ctx);
991
998
  // Compile labels the node with `name`; a canvas rename is kept as `label`.
992
999
  const label = typeof c.display?.label === 'string' && c.display.label !== '' && c.display.label !== name
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-builder-sdk",
3
- "version": "6.124.17",
3
+ "version": "6.124.18",
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",
@@ -128,5 +128,5 @@
128
128
  "@types/node": "^22.7.0",
129
129
  "esbuild": "^0.28.1"
130
130
  },
131
- "gitref": "50cc067a825606c491d7a7c3b08a204d33887546"
131
+ "gitref": "ee27233f8a6142eb8d89ce7c3824aa8c0697fe5f"
132
132
  }