nexarch 0.9.19 → 0.9.20

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.
@@ -1445,7 +1445,7 @@ export async function initProject(args) {
1445
1445
  try {
1446
1446
  const orgRaw = await callMcpProfiled("nexarch_list_entities", { entityTypeCode: "organisation", status: "active", limit: 1, companyId: creds.companyId }, { entityTypeCode: "organisation", limit: 1 });
1447
1447
  const orgData = parseToolText(orgRaw);
1448
- const org = (orgData.entities ?? [])[0];
1448
+ const org = (orgData.entities ?? []).find((e) => e.entityTypeCode === "organisation");
1449
1449
  if (org?.entityRef || org?.externalKey)
1450
1450
  orgExternalKey = (org.entityRef ?? org.externalKey);
1451
1451
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexarch",
3
- "version": "0.9.19",
3
+ "version": "0.9.20",
4
4
  "description": "Your architecture workspace for AI delivery.",
5
5
  "keywords": [
6
6
  "nexarch",