@uipath/maestro-builder-sdk 6.106.0 → 6.107.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.
package/dist/serialize.js CHANGED
@@ -385,6 +385,14 @@ function renderUpdates(updates, rename) {
385
385
  return { variableId: rename.updates?.get(name) ?? name, expression };
386
386
  });
387
387
  }
388
+ /**
389
+ * The `type` a declared variable's global carries: its `types.*` name, or for
390
+ * a `{ type: types.number, format }` the width (`"double"`), the type the
391
+ * `.flow` it was decompiled from had (`VarSpec.format`).
392
+ */
393
+ function globalType(decl) {
394
+ return decl.format ?? decl.type;
395
+ }
388
396
  /**
389
397
  * The optional metadata a declared variable persists on its global — appended
390
398
  * AFTER the fixed fields so a flow that declares none is byte-identical to
@@ -1989,16 +1997,16 @@ function serializeFlow(built, opts) {
1989
1997
  emitEnd(scope, uid(scope, 'end'), capped);
1990
1998
  const globals = [];
1991
1999
  for (const inp of child.inputs)
1992
- globals.push({ id: inp.name, name: inp.name, direction: 'in', type: inp.type, triggerNodeId: startId, ...varMeta(inp) });
2000
+ globals.push({ id: inp.name, name: inp.name, direction: 'in', type: globalType(inp), triggerNodeId: startId, ...varMeta(inp) });
1993
2001
  for (const o of childGlobals.outputs)
1994
- globals.push({ id: o.name, name: o.name, direction: 'out', type: o.type, ...varMeta(o) });
2002
+ globals.push({ id: o.name, name: o.name, direction: 'out', type: globalType(o), ...varMeta(o) });
1995
2003
  for (const o of childGlobals.outputs) {
1996
2004
  const b = childGlobals.backing.get(o.name);
1997
2005
  if (b && !childGlobals.backingAdopted.has(o.name))
1998
2006
  globals.push(outputBackingGlobal(o, b));
1999
2007
  }
2000
2008
  for (const vd of childGlobals.vars)
2001
- globals.push({ id: vd.name, name: vd.name, direction: 'inout', type: vd.type, ...varMeta(vd) });
2009
+ globals.push({ id: vd.name, name: vd.name, direction: 'inout', type: globalType(vd), ...varMeta(vd) });
2002
2010
  resolveRejoins(scope, addEdge, (from, refusal) => refuseOn(scope, stepOfNode(scope, from.node), refusal));
2003
2011
  assertHitlExitInvariant(scope.nodes, scope.edges, legacyCompletedNodes);
2004
2012
  typeAgentInputSchemas(scope, globals);
@@ -3632,19 +3640,19 @@ function serializeFlow(built, opts) {
3632
3640
  const globals = [];
3633
3641
  const triggerNodeId = built.triggerId ?? 'start';
3634
3642
  for (const inp of built.inputs)
3635
- globals.push({ id: inp.name, name: inp.name, direction: 'in', type: inp.type, triggerNodeId, ...varMeta(inp) });
3643
+ globals.push({ id: inp.name, name: inp.name, direction: 'in', type: globalType(inp), triggerNodeId, ...varMeta(inp) });
3636
3644
  for (const o of rootGlobals.outputs)
3637
- globals.push({ id: o.name, name: o.name, direction: 'out', type: o.type, ...varMeta(o) });
3645
+ globals.push({ id: o.name, name: o.name, direction: 'out', type: globalType(o), ...varMeta(o) });
3638
3646
  for (const o of rootGlobals.outputs) {
3639
3647
  const b = rootGlobals.backing.get(o.name);
3640
3648
  if (b && !rootGlobals.backingAdopted.has(o.name))
3641
3649
  globals.push(outputBackingGlobal(o, b));
3642
3650
  }
3643
3651
  for (const vd of rootGlobals.vars)
3644
- globals.push({ id: vd.name, name: vd.name, direction: 'inout', type: vd.type, ...varMeta(vd) });
3652
+ globals.push({ id: vd.name, name: vd.name, direction: 'inout', type: globalType(vd), ...varMeta(vd) });
3645
3653
  for (const ep of entryPoints) {
3646
3654
  for (const inp of ep.inputs) {
3647
- globals.push({ id: inp.name, name: inp.name, direction: 'in', type: inp.type, triggerNodeId: ep.id, ...varMeta(inp) });
3655
+ globals.push({ id: inp.name, name: inp.name, direction: 'in', type: globalType(inp), triggerNodeId: ep.id, ...varMeta(inp) });
3648
3656
  }
3649
3657
  }
3650
3658
  resolveRejoins(root, addEdge, (from, refusal) => refuseOn(root, stepOfNode(root, from.node), refusal));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-builder-sdk",
3
- "version": "6.106.0",
3
+ "version": "6.107.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",
@@ -123,5 +123,5 @@
123
123
  "@types/node": "^22.7.0",
124
124
  "esbuild": "^0.28.1"
125
125
  },
126
- "gitref": "b84c2c90fcc6512f55ef828fb753ba84a698af3d"
126
+ "gitref": "4295f20ce709d1016209913e4bfc43b93ee986ef"
127
127
  }