@uipath/maestro-builder-sdk 6.6.0 → 6.6.1

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.
@@ -688,8 +688,7 @@ export class Library {
688
688
  build(dir, e, nodeType, opts = {}) {
689
689
  const entryPath = join(dir, e.path);
690
690
  const entry = JSON.parse(readFileSync(entryPath, 'utf8'));
691
- const v1defRaw = JSON.parse(readFileSync(entryPath.replace(/\.json$/, '.v1def.json'), 'utf8'));
692
- const v1def = Array.isArray(v1defRaw) ? v1defRaw[0] : v1defRaw;
691
+ const v1def = readV1def(entryPath);
693
692
  // A stamped object (case 4) reaches here with the index entry's `objectName`
694
693
  // replaced but the sibling's FILE on disk — so restate the object and derive
695
694
  // the endpoint from the sibling's own template, rather than shipping a node
@@ -805,10 +804,30 @@ function deriveObjectPath(operation, objectName) {
805
804
  }
806
805
  return out;
807
806
  }
808
- /** Read the `.v1def.json` sidecar beside a library entry file. */
807
+ /**
808
+ * Read the `.v1def.json` sidecar beside a library entry file, with a connection
809
+ * definition's `model.bindings.resource` in the designer's canonical casing.
810
+ *
811
+ * The registry serves raw node data in two casings — `uipath-microsoft-outlook365`
812
+ * `trigger-email-received` says `Connection`, its siblings `connection` — and the
813
+ * sidecar keeps whatever it was given. The designer never ships the raw value: its
814
+ * connector mapper builds every definition with `CONNECTION_BINDING_RESOURCE`
815
+ * (`'connection'`, flow-v1 `flow-schema/src/connection-binding.ts`), and the v1.1→v1.2
816
+ * migration lowercased every `.flow` on disk. Studio Web's unresolved-binding check
817
+ * (`matchContextBindings`) filters the flow's `bindings[]` by that string EXACTLY, and
818
+ * since MST-15010 an unresolved placeholder blocks publish. A `Connection` definition
819
+ * beside our `connection` registry entries therefore matched nothing, and the node
820
+ * reported both its connection and `FolderKey` as "not configured" (UV-16774) while
821
+ * validate and debug — which fold the case — passed.
822
+ */
809
823
  function readV1def(entryPath) {
810
824
  const raw = JSON.parse(readFileSync(entryPath.replace(/\.json$/, '.v1def.json'), 'utf8'));
811
- return Array.isArray(raw) ? raw[0] : raw;
825
+ const v1def = Array.isArray(raw) ? raw[0] : raw;
826
+ const bindings = v1def?.model?.bindings;
827
+ if (typeof bindings?.resource === 'string' && bindings.resource.toLowerCase() === 'connection') {
828
+ bindings.resource = 'connection';
829
+ }
830
+ return v1def;
812
831
  }
813
832
  /**
814
833
  * The platform's `connectorDetail.configuration` blob — the designer's own
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-builder-sdk",
3
- "version": "6.6.0",
3
+ "version": "6.6.1",
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",
@@ -87,5 +87,5 @@
87
87
  "@types/node": "^22.7.0",
88
88
  "esbuild": "^0.28.1"
89
89
  },
90
- "gitref": "fde2e4ef67894bab9ddb61be204f4d0775c08ea1"
90
+ "gitref": "cd125317bcecb3a004dfe47cf11ef6b9878fe331"
91
91
  }