@uipath/maestro-builder-sdk 6.44.1 → 6.44.2

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.
@@ -698,10 +698,13 @@ function liftProcess(node, ctx, prefix, kind, form) {
698
698
  const n = node;
699
699
  const key = n.type.slice(prefix.length);
700
700
  const def = ctx.definition();
701
- const values = (def?.model?.bindings?.values ?? []);
701
+ // Descriptor rows (`[{ name, default }]`), or the early `{ name, folderPath }` object.
702
+ const values = def?.model?.bindings?.values;
702
703
  const binding = (name) => {
703
- const row = values.find((v) => v.name === name);
704
- return typeof row?.default === 'string' ? row.default : undefined;
704
+ const v = Array.isArray(values)
705
+ ? values.find((r) => r?.name === name)?.default
706
+ : values !== null && typeof values === 'object' ? values[name] : undefined;
707
+ return typeof v === 'string' ? v : undefined;
705
708
  };
706
709
  const name = binding('name');
707
710
  const folderPath = binding('folderPath');
@@ -712,11 +715,13 @@ function liftProcess(node, ctx, prefix, kind, form) {
712
715
  const projectId = typeof def?.model?.projectId === 'string' ? def.model.projectId : undefined;
713
716
  const inSolution = def?.model?.isInSolution === true || projectId !== undefined;
714
717
  const inputs = { ...(n.inputs ?? {}) };
715
- // The design-time fire-and-forget switch is an OPTION on the factory, not a
716
- // process argument — serialize adds it to `inputs` after rendering the
717
- // author's map, so it comes back off here.
718
- const fireAndForget = ctx.plainValue(inputs.fireAndForget) === true;
719
- delete inputs.fireAndForget;
718
+ // The design-time fire-and-forget switch is an OPTION on agenticProcess(),
719
+ // not a process argument — serialize adds it to `inputs` after rendering the
720
+ // author's map, so it comes back off here. No other factory has the option, so
721
+ // on another kind the key stays an ordinary input and round-trips as one.
722
+ const fireAndForget = kind === 'agenticProcess' && ctx.plainValue(inputs.fireAndForget) === true;
723
+ if (kind === 'agenticProcess')
724
+ delete inputs.fireAndForget;
720
725
  if (kind === 'agent' && (def?.model?.isInSolution === true || def?.model?.projectId !== undefined)) {
721
726
  for (const [k, v] of Object.entries(inputs))
722
727
  inputs[k] = legacyAgentTemplateInput(v);
@@ -748,6 +753,9 @@ function liftProcess(node, ctx, prefix, kind, form) {
748
753
  ...(returns !== undefined && !fireAndForget ? { returns } : {}),
749
754
  ...(form !== undefined ? { form } : {}),
750
755
  ...(fireAndForget ? { completion: 'fire-and-forget' } : {}),
756
+ // The only field a coded agent's definition differs in (see agentDef);
757
+ // 'lowcode' is the default, so only 'coded' is written.
758
+ ...(kind === 'agent' && def?.display?.icon === 'coded-agent' ? { flavour: 'coded' } : {}),
751
759
  };
752
760
  return { kind, inputs: spec };
753
761
  }
@@ -767,6 +775,7 @@ function printProcess(spec, ctx, factory) {
767
775
  ['returns', p.returns !== undefined ? obj(Object.entries(p.returns).map(([k, t]) => [k, ctx.string(t)])) : undefined],
768
776
  ['form', p.form !== undefined ? ctx.string(p.form) : undefined],
769
777
  ['completion', p.completion !== undefined ? ctx.string(p.completion) : undefined],
778
+ ['flavour', p.flavour !== undefined ? ctx.string(p.flavour) : undefined],
770
779
  ],
771
780
  };
772
781
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-builder-sdk",
3
- "version": "6.44.1",
3
+ "version": "6.44.2",
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",
@@ -93,5 +93,5 @@
93
93
  "@types/node": "^22.7.0",
94
94
  "esbuild": "^0.28.1"
95
95
  },
96
- "gitref": "7e2a9339fd00189290ce2ac453aa52636426d6ce"
96
+ "gitref": "7afed05cfe5a6856deb6fe7984a5cf2b31a2dd20"
97
97
  }