@burdenoff/microfe-labsofscience 2026.801.2 → 2026.820.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.
Files changed (62) hide show
  1. package/dist/generated/wspace-types.d.ts +68885 -33499
  2. package/dist/generated/wspace-types.d.ts.map +1 -1
  3. package/dist/labsofscience/LabsOfScienceRoot.d.ts.map +1 -1
  4. package/dist/labsofscience/LabsOfScienceRoot.js +57 -49
  5. package/dist/labsofscience/LabsOfScienceRoot.js.map +1 -1
  6. package/dist/labsofscience/LabsOfScienceRoutes.d.ts.map +1 -1
  7. package/dist/labsofscience/LabsOfScienceRoutes.js +10 -6
  8. package/dist/labsofscience/LabsOfScienceRoutes.js.map +1 -1
  9. package/dist/labsofscience/components/BottomNav.d.ts.map +1 -1
  10. package/dist/labsofscience/components/BottomNav.js +36 -30
  11. package/dist/labsofscience/components/BottomNav.js.map +1 -1
  12. package/dist/labsofscience/components/MetricsCard.d.ts +1 -2
  13. package/dist/labsofscience/components/MetricsCard.d.ts.map +1 -1
  14. package/dist/labsofscience/components/MetricsCard.js.map +1 -1
  15. package/dist/labsofscience/components/StatusBadge.d.ts.map +1 -1
  16. package/dist/labsofscience/components/StatusBadge.js +10 -1
  17. package/dist/labsofscience/components/StatusBadge.js.map +1 -1
  18. package/dist/labsofscience/hooks/index.d.ts +1 -1
  19. package/dist/labsofscience/hooks/index.d.ts.map +1 -1
  20. package/dist/labsofscience/hooks/useLabsOfScienceApi.d.ts +82 -1
  21. package/dist/labsofscience/hooks/useLabsOfScienceApi.d.ts.map +1 -1
  22. package/dist/labsofscience/hooks/useLabsOfScienceApi.js +326 -199
  23. package/dist/labsofscience/hooks/useLabsOfScienceApi.js.map +1 -1
  24. package/dist/labsofscience/pages/ai/AiDialogs.d.ts +20 -0
  25. package/dist/labsofscience/pages/ai/AiDialogs.d.ts.map +1 -0
  26. package/dist/labsofscience/pages/ai/AiDialogs.js +566 -0
  27. package/dist/labsofscience/pages/ai/AiDialogs.js.map +1 -0
  28. package/dist/labsofscience/pages/ai/AiErrorNotice.d.ts +20 -0
  29. package/dist/labsofscience/pages/ai/AiErrorNotice.d.ts.map +1 -0
  30. package/dist/labsofscience/pages/ai/AiErrorNotice.js +67 -0
  31. package/dist/labsofscience/pages/ai/AiErrorNotice.js.map +1 -0
  32. package/dist/labsofscience/pages/ai/AiOperationsPage.d.ts +29 -0
  33. package/dist/labsofscience/pages/ai/AiOperationsPage.d.ts.map +1 -0
  34. package/dist/labsofscience/pages/ai/AiOperationsPage.js +196 -0
  35. package/dist/labsofscience/pages/ai/AiOperationsPage.js.map +1 -0
  36. package/dist/labsofscience/pages/ai/DecisionCard.d.ts +9 -0
  37. package/dist/labsofscience/pages/ai/DecisionCard.d.ts.map +1 -0
  38. package/dist/labsofscience/pages/ai/DecisionCard.js +282 -0
  39. package/dist/labsofscience/pages/ai/DecisionCard.js.map +1 -0
  40. package/dist/labsofscience/pages/ai/ModelSettings.d.ts +20 -0
  41. package/dist/labsofscience/pages/ai/ModelSettings.d.ts.map +1 -0
  42. package/dist/labsofscience/pages/ai/ModelSettings.js +141 -0
  43. package/dist/labsofscience/pages/ai/ModelSettings.js.map +1 -0
  44. package/dist/labsofscience/pages/ai/aiReaders.d.ts +82 -0
  45. package/dist/labsofscience/pages/ai/aiReaders.d.ts.map +1 -0
  46. package/dist/labsofscience/pages/ai/aiReaders.js +86 -0
  47. package/dist/labsofscience/pages/ai/aiReaders.js.map +1 -0
  48. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js +18 -18
  49. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js +6 -6
  50. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js +14 -14
  51. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js +6 -6
  52. package/dist/labsofscience/pages/projects/ProjectDetailPage.js +16 -16
  53. package/dist/labsofscience/pages/projects/ProjectsListPage.js +6 -6
  54. package/dist/labsofscience/types/index.d.ts +133 -2
  55. package/dist/labsofscience/types/index.d.ts.map +1 -1
  56. package/dist/services/createSandboxAssistantTransport.js +6 -6
  57. package/dist/services/createSandboxAssistantTransport.js.map +1 -1
  58. package/dist/utils/pageContext.d.ts +13 -0
  59. package/dist/utils/pageContext.d.ts.map +1 -1
  60. package/dist/utils/pageContext.js +89 -26
  61. package/dist/utils/pageContext.js.map +1 -1
  62. package/package.json +2 -2
@@ -1,11 +1,27 @@
1
1
  //#region src/utils/pageContext.ts
2
- function e() {
3
- let e = window.location.href, t = window.location.pathname.split("/").filter(Boolean).slice(0, 3).join("/") || "home", r = n(window.location.pathname, window.location.search);
2
+ var e = /* @__PURE__ */ new Set([
3
+ "currentUrl",
4
+ "currentPage",
5
+ "entityType",
6
+ "entityId",
7
+ "entityName",
8
+ "pageTitle",
9
+ "pageType",
10
+ "activeTab",
11
+ "activeTool",
12
+ "selectedText",
13
+ "workspaceId",
14
+ "workspaceName",
15
+ "projectId",
16
+ "projectName"
17
+ ]);
18
+ function t() {
19
+ let e = window.location.href, t = window.location.pathname.split("/").filter(Boolean).slice(0, 3).join("/") || "home", n = a(window.location.pathname, window.location.search);
4
20
  return {
5
21
  currentUrl: e,
6
22
  currentPage: t,
7
- entityType: r.entityType,
8
- entityId: r.entityId,
23
+ entityType: n.entityType,
24
+ entityId: n.entityId,
9
25
  platform: "labsofscience",
10
26
  version: "0.0.0-dev",
11
27
  viewportSize: `${window.innerWidth}x${window.innerHeight}`,
@@ -13,38 +29,85 @@ function e() {
13
29
  timestamp: (/* @__PURE__ */ new Date()).toISOString()
14
30
  };
15
31
  }
16
- function t(e, t) {
32
+ function n(t) {
33
+ let n = {};
34
+ for (let [r, i] of Object.entries(t)) i == null || i === "" || e.has(r) && (n[r] = i);
35
+ return n;
36
+ }
37
+ var r = [
38
+ {
39
+ pattern: /^\/labsofscience\/experiments\/([^/]+)\/runs\/([^/]+)\/?$/,
40
+ entityType: "LABSOFSCIENCE_EXPERIMENT_RUN",
41
+ entityIdGroup: 2,
42
+ metadataFromMatch: (e) => ({ experimentId: e[1] })
43
+ },
44
+ {
45
+ pattern: /^\/labsofscience\/pipelines\/([^/]+)\/runs\/([^/]+)\/?$/,
46
+ entityType: "LABSOFSCIENCE_PIPELINE_RUN",
47
+ entityIdGroup: 2,
48
+ metadataFromMatch: (e) => ({ pipelineId: e[1] })
49
+ },
50
+ {
51
+ pattern: /^\/labsofscience\/projects\/([^/]+)\/?$/,
52
+ entityType: "LABSOFSCIENCE_PROJECT"
53
+ },
54
+ {
55
+ pattern: /^\/labsofscience\/experiments\/([^/]+)\/?$/,
56
+ entityType: "LABSOFSCIENCE_EXPERIMENT"
57
+ },
58
+ {
59
+ pattern: /^\/labsofscience\/datasets\/([^/]+)\/?$/,
60
+ entityType: "LABSOFSCIENCE_DATASET"
61
+ },
62
+ {
63
+ pattern: /^\/labsofscience\/protocols\/([^/]+)\/?$/,
64
+ entityType: "LABSOFSCIENCE_PROTOCOL"
65
+ },
66
+ {
67
+ pattern: /^\/labsofscience\/instruments\/([^/]+)\/?$/,
68
+ entityType: "LABSOFSCIENCE_INSTRUMENT"
69
+ },
70
+ {
71
+ pattern: /^\/labsofscience\/inventory\/([^/]+)\/?$/,
72
+ entityType: "LABSOFSCIENCE_INVENTORY_ITEM"
73
+ },
74
+ {
75
+ pattern: /^\/labsofscience\/notebook\/([^/]+)\/?$/,
76
+ entityType: "LABSOFSCIENCE_NOTEBOOK_ENTRY"
77
+ },
78
+ {
79
+ pattern: /^\/labsofscience\/pipelines\/?$/,
80
+ entityType: "LABSOFSCIENCE_PIPELINE"
81
+ }
82
+ ];
83
+ function i(e, t) {
17
84
  return t.match(e);
18
85
  }
19
- function n(e, n) {
20
- let r = new URLSearchParams(n);
21
- for (let [n, r] of [
22
- [/^\/labsofscience\/projects\/([^/]+)$/, "LABSOFSCIENCE_PROJECT"],
23
- [/^\/labsofscience\/experiments\/([^/]+)$/, "LABSOFSCIENCE_EXPERIMENT"],
24
- [/^\/labsofscience\/datasets\/([^/]+)$/, "LABSOFSCIENCE_DATASET"],
25
- [/^\/labsofscience\/protocols\/([^/]+)$/, "LABSOFSCIENCE_PROTOCOL"],
26
- [/^\/labsofscience\/instruments\/([^/]+)$/, "LABSOFSCIENCE_INSTRUMENT"],
27
- [/^\/labsofscience\/inventory\/([^/]+)$/, "LABSOFSCIENCE_INVENTORY_ITEM"],
28
- [/^\/labsofscience\/notebook\/([^/]+)$/, "LABSOFSCIENCE_NOTEBOOK_ENTRY"],
29
- [/^\/labsofscience\/pipelines$/, "LABSOFSCIENCE_PIPELINE"]
30
- ]) {
31
- let i = t(n, e);
32
- if (i) return {
33
- entityType: r,
34
- entityId: i[1],
35
- metadata: { routePattern: n.source }
86
+ function a(e, t) {
87
+ let n = new URLSearchParams(t);
88
+ for (let t of r) {
89
+ let n = i(t.pattern, e);
90
+ if (!n) continue;
91
+ let r = n[t.entityIdGroup ?? 1], a = t.metadataFromMatch?.(n) ?? {};
92
+ return {
93
+ entityType: t.entityType,
94
+ entityId: r,
95
+ metadata: {
96
+ routePattern: t.pattern.source,
97
+ ...a
98
+ }
36
99
  };
37
100
  }
38
- let i = r.get("tab") ?? (() => {
101
+ let a = n.get("tab") ?? (() => {
39
102
  let t = e.split("/").filter(Boolean);
40
103
  return t.length > 2 ? t[t.length - 1] : void 0;
41
104
  })();
42
105
  return {
43
- activeTab: i ?? void 0,
44
- metadata: i ? { activeTab: i } : void 0
106
+ activeTab: a ?? void 0,
107
+ metadata: a ? { activeTab: a } : void 0
45
108
  };
46
109
  }
47
110
  //#endregion
48
- export { e as gatherPageContext, n as resolveLabsofscienceConversationContext };
111
+ export { t as gatherPageContext, a as resolveLabsofscienceConversationContext, n as toAgentPageContext };
49
112
 
50
113
  //# sourceMappingURL=pageContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pageContext.js","names":[],"sources":["../../src/utils/pageContext.ts"],"sourcesContent":["/**\n * Page context gathering for the LabsOfScience assistant.\n *\n * Captures the current browser context so the sandbox agent can answer\n * \"this experiment\", \"current dataset\", etc. without asking for IDs.\n */\n\ninterface ConversationContextShape {\n entityType?: string;\n entityId?: string;\n activeTab?: string;\n metadata?: Record<string, unknown>;\n}\n\nexport interface PageContext {\n currentUrl: string;\n currentPage: string;\n entityType?: string;\n entityId?: string;\n platform: string;\n version: string;\n viewportSize: string;\n userAgent: string;\n timestamp: string;\n}\n\nexport function gatherPageContext(): PageContext {\n const url = window.location.href;\n const pathSegments = window.location.pathname.split('/').filter(Boolean);\n const currentPage = pathSegments.slice(0, 3).join('/') || 'home';\n const entity = resolveLabsofscienceConversationContext(\n window.location.pathname,\n window.location.search\n );\n\n return {\n currentUrl: url,\n currentPage,\n entityType: entity.entityType,\n entityId: entity.entityId,\n platform: 'labsofscience',\n version: import.meta.env.VITE_APP_VERSION ?? '0.0.0-dev',\n viewportSize: `${window.innerWidth}x${window.innerHeight}`,\n userAgent: navigator.userAgent,\n timestamp: new Date().toISOString(),\n };\n}\n\nfunction matchPath(pattern: RegExp, pathname: string): RegExpMatchArray | null {\n return pathname.match(pattern);\n}\n\nexport function resolveLabsofscienceConversationContext(\n pathname: string,\n search: string\n): ConversationContextShape {\n const params = new URLSearchParams(search);\n\n const directMatches: Array<[RegExp, string]> = [\n [/^\\/labsofscience\\/projects\\/([^/]+)$/, 'LABSOFSCIENCE_PROJECT'],\n [/^\\/labsofscience\\/experiments\\/([^/]+)$/, 'LABSOFSCIENCE_EXPERIMENT'],\n [/^\\/labsofscience\\/datasets\\/([^/]+)$/, 'LABSOFSCIENCE_DATASET'],\n [/^\\/labsofscience\\/protocols\\/([^/]+)$/, 'LABSOFSCIENCE_PROTOCOL'],\n [/^\\/labsofscience\\/instruments\\/([^/]+)$/, 'LABSOFSCIENCE_INSTRUMENT'],\n [/^\\/labsofscience\\/inventory\\/([^/]+)$/, 'LABSOFSCIENCE_INVENTORY_ITEM'],\n [/^\\/labsofscience\\/notebook\\/([^/]+)$/, 'LABSOFSCIENCE_NOTEBOOK_ENTRY'],\n // Pipelines has no detail route (runs open in an in-page dialog, not a\n // URL) — match the list page itself so the assistant still knows the\n // user is looking at analysis pipelines, matching the entity types\n // registered for every other LabsOfScienceRoutes.tsx route (BOFF-3603).\n [/^\\/labsofscience\\/pipelines$/, 'LABSOFSCIENCE_PIPELINE'],\n ];\n\n for (const [pattern, entityType] of directMatches) {\n const match = matchPath(pattern, pathname);\n if (match) {\n return {\n entityType,\n entityId: match[1],\n metadata: {\n routePattern: pattern.source,\n },\n };\n }\n }\n\n const activeTab =\n params.get('tab') ??\n (() => {\n const segments = pathname.split('/').filter(Boolean);\n return segments.length > 2 ? segments[segments.length - 1] : undefined;\n })();\n\n return {\n activeTab: activeTab ?? undefined,\n metadata: activeTab ? { activeTab } : undefined,\n };\n}\n"],"mappings":";AA0BA,SAAgB,IAAiC;CAC/C,IAAM,IAAM,OAAO,SAAS,MAEtB,IADe,OAAO,SAAS,SAAS,MAAM,GAAG,CAAC,CAAC,OAAO,OAC5C,CAAA,CAAa,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,KAAK,QACpD,IAAS,EACb,OAAO,SAAS,UAChB,OAAO,SAAS,MAClB;CAEA,OAAO;EACL,YAAY;EACZ;EACA,YAAY,EAAO;EACnB,UAAU,EAAO;EACjB,UAAU;EACV,SAA6C;EAC7C,cAAc,GAAG,OAAO,WAAW,GAAG,OAAO;EAC7C,WAAW,UAAU;EACrB,4BAAW,IAAI,KAAK,EAAA,CAAE,YAAY;CACpC;AACF;AAEA,SAAS,EAAU,GAAiB,GAA2C;CAC7E,OAAO,EAAS,MAAM,CAAO;AAC/B;AAEA,SAAgB,EACd,GACA,GAC0B;CAC1B,IAAM,IAAS,IAAI,gBAAgB,CAAM;CAiBzC,KAAK,IAAM,CAAC,GAAS,MAAe;EAdlC,CAAC,wCAAwC,uBAAuB;EAChE,CAAC,2CAA2C,0BAA0B;EACtE,CAAC,wCAAwC,uBAAuB;EAChE,CAAC,yCAAyC,wBAAwB;EAClE,CAAC,2CAA2C,0BAA0B;EACtE,CAAC,yCAAyC,8BAA8B;EACxE,CAAC,wCAAwC,8BAA8B;EAKvE,CAAC,gCAAgC,wBAAwB;CAGvB,GAAe;EACjD,IAAM,IAAQ,EAAU,GAAS,CAAQ;EACzC,IAAI,GACF,OAAO;GACL;GACA,UAAU,EAAM;GAChB,UAAU,EACR,cAAc,EAAQ,OACxB;EACF;CAEJ;CAEA,IAAM,IACJ,EAAO,IAAI,KAAK,YACT;EACL,IAAM,IAAW,EAAS,MAAM,GAAG,CAAC,CAAC,OAAO,OAAO;EACnD,OAAO,EAAS,SAAS,IAAI,EAAS,EAAS,SAAS,KAAK,KAAA;CAC/D,EAAA,CAAG;CAEL,OAAO;EACL,WAAW,KAAa,KAAA;EACxB,UAAU,IAAY,EAAE,aAAU,IAAI,KAAA;CACxC;AACF"}
1
+ {"version":3,"file":"pageContext.js","names":[],"sources":["../../src/utils/pageContext.ts"],"sourcesContent":["/**\n * Page context gathering for the LabsOfScience assistant.\n *\n * Captures the current browser context so the sandbox agent can answer\n * \"this experiment\", \"current dataset\", etc. without asking for IDs.\n *\n * The agent filters payloads to an allow-list (`ALLOWED_CONTEXT_KEYS` in\n * `ai-assistant/src/context-loader.ts`). `gatherPageContext()` returns the full\n * local shape; `toAgentPageContext()` strips it down to exactly the keys the\n * agent accepts, so keys like `userAgent` and `timestamp` stay local and no\n * disallowed PII/notebook bodies are forwarded.\n */\n\ninterface ConversationContextShape {\n entityType?: string;\n entityId?: string;\n activeTab?: string;\n metadata?: Record<string, unknown>;\n}\n\nexport interface PageContext {\n currentUrl: string;\n currentPage: string;\n entityType?: string;\n entityId?: string;\n platform: string;\n version: string;\n viewportSize: string;\n userAgent: string;\n timestamp: string;\n}\n\n/**\n * Mirror of the agent-side `ALLOWED_CONTEXT_KEYS` set.\n *\n * Keep this in sync with `~/products/wspace/sandbox/ai-assistant/src/context-loader.ts`.\n * Only these keys are forwarded to the model; everything else is dropped.\n */\nconst AGENT_ALLOWED_CONTEXT_KEYS = new Set([\n // cross-product contract\n 'currentUrl',\n 'currentPage',\n 'entityType',\n 'entityId',\n 'entityName',\n 'pageTitle',\n 'pageType',\n 'activeTab',\n 'activeTool',\n 'selectedText',\n 'workspaceId',\n 'workspaceName',\n 'projectId',\n 'projectName',\n]);\n\nexport function gatherPageContext(): PageContext {\n const url = window.location.href;\n const pathSegments = window.location.pathname.split('/').filter(Boolean);\n const currentPage = pathSegments.slice(0, 3).join('/') || 'home';\n const entity = resolveLabsofscienceConversationContext(\n window.location.pathname,\n window.location.search\n );\n\n return {\n currentUrl: url,\n currentPage,\n entityType: entity.entityType,\n entityId: entity.entityId,\n platform: 'labsofscience',\n version: import.meta.env.VITE_APP_VERSION ?? '0.0.0-dev',\n viewportSize: `${window.innerWidth}x${window.innerHeight}`,\n userAgent: navigator.userAgent,\n timestamp: new Date().toISOString(),\n };\n}\n\n/**\n * Filter a local `PageContext` down to the keys the agent allow-lists.\n *\n * This is what the transport actually sends; `userAgent`/`timestamp`/etc. stay\n * in the browser.\n */\nexport function toAgentPageContext(ctx: PageContext): Record<string, unknown> {\n const out: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(ctx)) {\n if (value === undefined || value === null || value === '') continue;\n if (!AGENT_ALLOWED_CONTEXT_KEYS.has(key)) continue;\n out[key] = value;\n }\n return out;\n}\n\ninterface RouteContextRule {\n pattern: RegExp;\n entityType: string;\n /** Which regex capture group holds the entity id. Defaults to 1. */\n entityIdGroup?: number;\n /** Extra metadata derived from the regex match (parent ids, pattern name, ...). */\n metadataFromMatch?: (match: RegExpMatchArray) => Record<string, unknown>;\n}\n\n/**\n * Route → entity mapping for LabsOfScience.\n *\n * Order matters: more specific patterns must precede the general pattern they\n * would otherwise be swallowed by (e.g. `/experiments/:id/runs/:runId` before\n * `/experiments/:id`).\n */\nconst ROUTE_CONTEXT_RULES: RouteContextRule[] = [\n // Run detail nested under an experiment (most specific first).\n {\n pattern: /^\\/labsofscience\\/experiments\\/([^/]+)\\/runs\\/([^/]+)\\/?$/,\n entityType: 'LABSOFSCIENCE_EXPERIMENT_RUN',\n entityIdGroup: 2,\n metadataFromMatch: (match) => ({ experimentId: match[1] }),\n },\n // Pipeline run detail nested under a pipeline.\n {\n pattern: /^\\/labsofscience\\/pipelines\\/([^/]+)\\/runs\\/([^/]+)\\/?$/,\n entityType: 'LABSOFSCIENCE_PIPELINE_RUN',\n entityIdGroup: 2,\n metadataFromMatch: (match) => ({ pipelineId: match[1] }),\n },\n\n // Detail routes.\n { pattern: /^\\/labsofscience\\/projects\\/([^/]+)\\/?$/, entityType: 'LABSOFSCIENCE_PROJECT' },\n { pattern: /^\\/labsofscience\\/experiments\\/([^/]+)\\/?$/, entityType: 'LABSOFSCIENCE_EXPERIMENT' },\n { pattern: /^\\/labsofscience\\/datasets\\/([^/]+)\\/?$/, entityType: 'LABSOFSCIENCE_DATASET' },\n { pattern: /^\\/labsofscience\\/protocols\\/([^/]+)\\/?$/, entityType: 'LABSOFSCIENCE_PROTOCOL' },\n { pattern: /^\\/labsofscience\\/instruments\\/([^/]+)\\/?$/, entityType: 'LABSOFSCIENCE_INSTRUMENT' },\n {\n pattern: /^\\/labsofscience\\/inventory\\/([^/]+)\\/?$/,\n entityType: 'LABSOFSCIENCE_INVENTORY_ITEM',\n },\n {\n pattern: /^\\/labsofscience\\/notebook\\/([^/]+)\\/?$/,\n entityType: 'LABSOFSCIENCE_NOTEBOOK_ENTRY',\n },\n\n // Pipelines has no detail route (runs open in an in-page dialog, not a URL)\n // but the list page itself is a meaningful context.\n {\n pattern: /^\\/labsofscience\\/pipelines\\/?$/,\n entityType: 'LABSOFSCIENCE_PIPELINE',\n },\n];\n\nfunction matchPath(pattern: RegExp, pathname: string): RegExpMatchArray | null {\n return pathname.match(pattern);\n}\n\nexport function resolveLabsofscienceConversationContext(\n pathname: string,\n search: string\n): ConversationContextShape {\n const params = new URLSearchParams(search);\n\n for (const rule of ROUTE_CONTEXT_RULES) {\n const match = matchPath(rule.pattern, pathname);\n if (!match) continue;\n\n const entityId = match[rule.entityIdGroup ?? 1];\n const extraMetadata = rule.metadataFromMatch?.(match) ?? {};\n\n return {\n entityType: rule.entityType,\n entityId,\n metadata: {\n routePattern: rule.pattern.source,\n ...extraMetadata,\n },\n };\n }\n\n const activeTab =\n params.get('tab') ??\n (() => {\n const segments = pathname.split('/').filter(Boolean);\n return segments.length > 2 ? segments[segments.length - 1] : undefined;\n })();\n\n return {\n activeTab: activeTab ?? undefined,\n metadata: activeTab ? { activeTab } : undefined,\n };\n}\n"],"mappings":";AAsCA,IAAM,oBAA6B,IAAI,IAAI;CAEzC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AAED,SAAgB,IAAiC;CAC/C,IAAM,IAAM,OAAO,SAAS,MAEtB,IADe,OAAO,SAAS,SAAS,MAAM,GAAG,CAAC,CAAC,OAAO,OAC5C,CAAA,CAAa,MAAM,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,KAAK,QACpD,IAAS,EACb,OAAO,SAAS,UAChB,OAAO,SAAS,MAClB;CAEA,OAAO;EACL,YAAY;EACZ;EACA,YAAY,EAAO;EACnB,UAAU,EAAO;EACjB,UAAU;EACV,SAA6C;EAC7C,cAAc,GAAG,OAAO,WAAW,GAAG,OAAO;EAC7C,WAAW,UAAU;EACrB,4BAAW,IAAI,KAAK,EAAA,CAAE,YAAY;CACpC;AACF;AAQA,SAAgB,EAAmB,GAA2C;CAC5E,IAAM,IAA+B,CAAC;CACtC,KAAK,IAAM,CAAC,GAAK,MAAU,OAAO,QAAQ,CAAG,GACvC,KAAiC,QAAQ,MAAU,MAClD,EAA2B,IAAI,CAAG,MACvC,EAAI,KAAO;CAEb,OAAO;AACT;AAkBA,IAAM,IAA0C;CAE9C;EACE,SAAS;EACT,YAAY;EACZ,eAAe;EACf,oBAAoB,OAAW,EAAE,cAAc,EAAM,GAAG;CAC1D;CAEA;EACE,SAAS;EACT,YAAY;EACZ,eAAe;EACf,oBAAoB,OAAW,EAAE,YAAY,EAAM,GAAG;CACxD;CAGA;EAAE,SAAS;EAA2C,YAAY;CAAwB;CAC1F;EAAE,SAAS;EAA8C,YAAY;CAA2B;CAChG;EAAE,SAAS;EAA2C,YAAY;CAAwB;CAC1F;EAAE,SAAS;EAA4C,YAAY;CAAyB;CAC5F;EAAE,SAAS;EAA8C,YAAY;CAA2B;CAChG;EACE,SAAS;EACT,YAAY;CACd;CACA;EACE,SAAS;EACT,YAAY;CACd;CAIA;EACE,SAAS;EACT,YAAY;CACd;AACF;AAEA,SAAS,EAAU,GAAiB,GAA2C;CAC7E,OAAO,EAAS,MAAM,CAAO;AAC/B;AAEA,SAAgB,EACd,GACA,GAC0B;CAC1B,IAAM,IAAS,IAAI,gBAAgB,CAAM;CAEzC,KAAK,IAAM,KAAQ,GAAqB;EACtC,IAAM,IAAQ,EAAU,EAAK,SAAS,CAAQ;EAC9C,IAAI,CAAC,GAAO;EAEZ,IAAM,IAAW,EAAM,EAAK,iBAAiB,IACvC,IAAgB,EAAK,oBAAoB,CAAK,KAAK,CAAC;EAE1D,OAAO;GACL,YAAY,EAAK;GACjB;GACA,UAAU;IACR,cAAc,EAAK,QAAQ;IAC3B,GAAG;GACL;EACF;CACF;CAEA,IAAM,IACJ,EAAO,IAAI,KAAK,YACT;EACL,IAAM,IAAW,EAAS,MAAM,GAAG,CAAC,CAAC,OAAO,OAAO;EACnD,OAAO,EAAS,SAAS,IAAI,EAAS,EAAS,SAAS,KAAK,KAAA;CAC/D,EAAA,CAAG;CAEL,OAAO;EACL,WAAW,KAAa,KAAA;EACxB,UAAU,IAAY,EAAE,aAAU,IAAI,KAAA;CACxC;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-labsofscience",
3
- "version": "2026.801.2",
3
+ "version": "2026.820.1",
4
4
  "description": "Burdenoff LabsOfScience Microfrontend",
5
5
  "type": "module",
6
6
  "files": [
@@ -105,7 +105,7 @@
105
105
  "zustand": "^5.0.0"
106
106
  },
107
107
  "publishConfig": {
108
- "access": "restricted"
108
+ "access": "public"
109
109
  },
110
110
  "overrides": {
111
111
  "@burdenoff/fe-libs": "2026.801.1",