@burdenoff/microfe-cosmicintersection 2026.1109.4 → 2026.1109.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"databricksTransport.d.ts","sourceRoot":"","sources":["../../../src/cosmicintersection/api/databricksTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AASnD,iFAAiF;AACjF,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAsB,iBAAiB,CAAC,CAAC,EACvC,KAAK,EAAE,sBAAsB,EAC7B,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,CAAC,CAAC,CA0CZ"}
1
+ {"version":3,"file":"databricksTransport.d.ts","sourceRoot":"","sources":["../../../src/cosmicintersection/api/databricksTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AASnD,iFAAiF;AACjF,MAAM,WAAW,sBAAsB;IACrC,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAsB,iBAAiB,CAAC,CAAC,EACvC,KAAK,EAAE,sBAAsB,EAC7B,QAAQ,EAAE,YAAY,EACtB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,CAAC,CAAC,CA4CZ"}
@@ -2,35 +2,35 @@ import { getStoredOrganizationId as e, getStoredProjectId as t, graphqlFetchPinn
2
2
  import { print as a } from "graphql";
3
3
  //#region src/cosmicintersection/api/databricksTransport.ts
4
4
  async function o(o, s, c, l) {
5
- let u = () => {
6
- if ((o.organizationId ?? null) !== (e() ?? null) || (o.projectId ?? null) !== (t() ?? null)) throw Error("The active context changed. Reopen the Databricks panel before continuing.");
5
+ let u = { ...o }, d = () => {
6
+ if ((u.organizationId ?? null) !== (e() ?? null) || (u.projectId ?? null) !== (t() ?? null)) throw Error("The active context changed. Reopen the Databricks panel before continuing.");
7
7
  };
8
- u();
9
- let d = i("workspace", o.apiGatewayUrl), f = a(s), p = await r({
10
- url: d,
11
- authToken: o.authToken,
12
- actorId: o.actorId,
13
- workspaceId: o.workspaceId,
14
- tenantId: o.tenantId,
15
- currentQuery: f,
8
+ d();
9
+ let f = i("workspace", u.apiGatewayUrl), p = a(s), m = await r({
10
+ url: f,
11
+ authToken: u.authToken,
12
+ actorId: u.actorId,
13
+ workspaceId: u.workspaceId,
14
+ tenantId: u.tenantId,
15
+ currentQuery: p,
16
16
  signal: l
17
17
  });
18
- u(), p.assertCurrent();
19
- let m = await n({
18
+ d(), m.assertCurrent();
19
+ let h = await n({
20
20
  gateway: "workspace",
21
- baseUrl: d,
22
- query: f,
21
+ baseUrl: u.apiGatewayUrl,
22
+ query: p,
23
23
  variables: c,
24
- authToken: o.authToken,
25
- workspaceToken: p.workspaceToken,
26
- workspaceId: o.workspaceId,
27
- organizationId: o.organizationId ?? !1,
28
- tenantId: o.tenantId ?? !1,
29
- projectId: o.projectId ?? !1,
24
+ authToken: u.authToken,
25
+ workspaceToken: m.workspaceToken,
26
+ workspaceId: u.workspaceId,
27
+ organizationId: u.organizationId ?? !1,
28
+ tenantId: u.tenantId ?? !1,
29
+ projectId: u.projectId ?? !1,
30
30
  signal: l
31
31
  });
32
- if (u(), p.assertCurrent(), m.errors?.length || m.data == null) throw Error("Databricks request was not confirmed. Refresh status before retrying.");
33
- return m.data;
32
+ if (d(), m.assertCurrent(), h.errors?.length || h.data == null) throw Error("Databricks request was not confirmed. Refresh status before retrying.");
33
+ return h.data;
34
34
  }
35
35
  //#endregion
36
36
  export { o as databricksRequest };
@@ -1 +1 @@
1
- {"version":3,"file":"databricksTransport.js","names":[],"sources":["../../../src/cosmicintersection/api/databricksTransport.ts"],"sourcesContent":["import { print, type DocumentNode } from 'graphql';\nimport {\n getStoredOrganizationId,\n getStoredProjectId,\n graphqlFetchPinned,\n prepareWorkspaceRequest,\n resolveGatewayUrl,\n} from '@burdenoff/fe-libs/shared/graphql';\n\n/** Captured by the mounted run panel; never persisted or used as a cache key. */\nexport interface DatabricksRequestScope {\n apiGatewayUrl: string;\n authToken: string;\n actorId: string;\n workspaceId: string;\n tenantId?: string;\n organizationId?: string;\n projectId?: string;\n}\n\nexport async function databricksRequest<T>(\n scope: DatabricksRequestScope,\n document: DocumentNode,\n variables: Record<string, unknown>,\n signal: AbortSignal\n): Promise<T> {\n const assertCapturedContext = () => {\n if (\n (scope.organizationId ?? null) !== (getStoredOrganizationId() ?? null) ||\n (scope.projectId ?? null) !== (getStoredProjectId() ?? null)\n ) {\n throw new Error('The active context changed. Reopen the Databricks panel before continuing.');\n }\n };\n assertCapturedContext();\n const url = resolveGatewayUrl('workspace', scope.apiGatewayUrl);\n const query = print(document);\n const prepared = await prepareWorkspaceRequest({\n url,\n authToken: scope.authToken,\n actorId: scope.actorId,\n workspaceId: scope.workspaceId,\n tenantId: scope.tenantId,\n currentQuery: query,\n signal,\n });\n assertCapturedContext();\n prepared.assertCurrent();\n const response = await graphqlFetchPinned<T>({\n gateway: 'workspace',\n baseUrl: url,\n query,\n variables,\n authToken: scope.authToken,\n workspaceToken: prepared.workspaceToken,\n workspaceId: scope.workspaceId,\n organizationId: scope.organizationId ?? false,\n tenantId: scope.tenantId ?? false,\n projectId: scope.projectId ?? false,\n signal,\n });\n assertCapturedContext();\n prepared.assertCurrent();\n if (response.errors?.length || response.data == null) {\n throw new Error('Databricks request was not confirmed. Refresh status before retrying.');\n }\n return response.data;\n}\n"],"mappings":";;;AAoBA,eAAsB,EACpB,GACA,GACA,GACA,GACY;CACZ,IAAM,UAA8B;EAClC,KACG,EAAM,kBAAkB,WAAW,EAAwB,KAAK,UAChE,EAAM,aAAa,WAAW,EAAmB,KAAK,OAEvD,MAAU,MAAM,4EAA4E;CAEhG;CACA,EAAsB;CACtB,IAAM,IAAM,EAAkB,aAAa,EAAM,aAAa,GACxD,IAAQ,EAAM,CAAQ,GACtB,IAAW,MAAM,EAAwB;EAC7C;EACA,WAAW,EAAM;EACjB,SAAS,EAAM;EACf,aAAa,EAAM;EACnB,UAAU,EAAM;EAChB,cAAc;EACd;CACF,CAAC;CAED,AADA,EAAsB,GACtB,EAAS,cAAc;CACvB,IAAM,IAAW,MAAM,EAAsB;EAC3C,SAAS;EACT,SAAS;EACT;EACA;EACA,WAAW,EAAM;EACjB,gBAAgB,EAAS;EACzB,aAAa,EAAM;EACnB,gBAAgB,EAAM,kBAAkB;EACxC,UAAU,EAAM,YAAY;EAC5B,WAAW,EAAM,aAAa;EAC9B;CACF,CAAC;CAGD,IAFA,EAAsB,GACtB,EAAS,cAAc,GACnB,EAAS,QAAQ,UAAU,EAAS,QAAQ,MAC9C,MAAU,MAAM,uEAAuE;CAEzF,OAAO,EAAS;AAClB"}
1
+ {"version":3,"file":"databricksTransport.js","names":[],"sources":["../../../src/cosmicintersection/api/databricksTransport.ts"],"sourcesContent":["import { print, type DocumentNode } from 'graphql';\nimport {\n getStoredOrganizationId,\n getStoredProjectId,\n graphqlFetchPinned,\n prepareWorkspaceRequest,\n resolveGatewayUrl,\n} from '@burdenoff/fe-libs/shared/graphql';\n\n/** Captured by the mounted run panel; never persisted or used as a cache key. */\nexport interface DatabricksRequestScope {\n apiGatewayUrl: string;\n authToken: string;\n actorId: string;\n workspaceId: string;\n tenantId?: string;\n organizationId?: string;\n projectId?: string;\n}\n\nexport async function databricksRequest<T>(\n scope: DatabricksRequestScope,\n document: DocumentNode,\n variables: Record<string, unknown>,\n signal: AbortSignal\n): Promise<T> {\n const captured = { ...scope };\n const assertCapturedContext = () => {\n if (\n (captured.organizationId ?? null) !== (getStoredOrganizationId() ?? null) ||\n (captured.projectId ?? null) !== (getStoredProjectId() ?? null)\n ) {\n throw new Error('The active context changed. Reopen the Databricks panel before continuing.');\n }\n };\n assertCapturedContext();\n const url = resolveGatewayUrl('workspace', captured.apiGatewayUrl);\n const query = print(document);\n const prepared = await prepareWorkspaceRequest({\n url,\n authToken: captured.authToken,\n actorId: captured.actorId,\n workspaceId: captured.workspaceId,\n tenantId: captured.tenantId,\n currentQuery: query,\n signal,\n });\n assertCapturedContext();\n prepared.assertCurrent();\n const response = await graphqlFetchPinned<T>({\n gateway: 'workspace',\n // Pinned fetch resolves the endpoint itself; preparation needs the full URL.\n baseUrl: captured.apiGatewayUrl,\n query,\n variables,\n authToken: captured.authToken,\n workspaceToken: prepared.workspaceToken,\n workspaceId: captured.workspaceId,\n organizationId: captured.organizationId ?? false,\n tenantId: captured.tenantId ?? false,\n projectId: captured.projectId ?? false,\n signal,\n });\n assertCapturedContext();\n prepared.assertCurrent();\n if (response.errors?.length || response.data == null) {\n throw new Error('Databricks request was not confirmed. Refresh status before retrying.');\n }\n return response.data;\n}\n"],"mappings":";;;AAoBA,eAAsB,EACpB,GACA,GACA,GACA,GACY;CACZ,IAAM,IAAW,EAAE,GAAG,EAAM,GACtB,UAA8B;EAClC,KACG,EAAS,kBAAkB,WAAW,EAAwB,KAAK,UACnE,EAAS,aAAa,WAAW,EAAmB,KAAK,OAE1D,MAAU,MAAM,4EAA4E;CAEhG;CACA,EAAsB;CACtB,IAAM,IAAM,EAAkB,aAAa,EAAS,aAAa,GAC3D,IAAQ,EAAM,CAAQ,GACtB,IAAW,MAAM,EAAwB;EAC7C;EACA,WAAW,EAAS;EACpB,SAAS,EAAS;EAClB,aAAa,EAAS;EACtB,UAAU,EAAS;EACnB,cAAc;EACd;CACF,CAAC;CAED,AADA,EAAsB,GACtB,EAAS,cAAc;CACvB,IAAM,IAAW,MAAM,EAAsB;EAC3C,SAAS;EAET,SAAS,EAAS;EAClB;EACA;EACA,WAAW,EAAS;EACpB,gBAAgB,EAAS;EACzB,aAAa,EAAS;EACtB,gBAAgB,EAAS,kBAAkB;EAC3C,UAAU,EAAS,YAAY;EAC/B,WAAW,EAAS,aAAa;EACjC;CACF,CAAC;CAGD,IAFA,EAAsB,GACtB,EAAS,cAAc,GACnB,EAAS,QAAQ,UAAU,EAAS,QAAQ,MAC9C,MAAU,MAAM,uEAAuE;CAEzF,OAAO,EAAS;AAClB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-cosmicintersection",
3
- "version": "2026.1109.4",
3
+ "version": "2026.1109.6",
4
4
  "description": "Burdenoff CosmicIntersection Microfrontend",
5
5
  "type": "module",
6
6
  "files": [