@burdenoff/microfe-bigconsole 2026.1005.1 → 2026.1005.3

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":"assistantProduct.d.ts","sourceRoot":"","sources":["../../../src/bigconsole/assistant/assistantProduct.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AACjG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4DAA4D,CAAC;AACvG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAOjG;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AAEX;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,oBAAoB,EAoCxD,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,EAAE,qBAG/B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,MAAM,0BAA0B,GAAG,QAAQ,CAC/C,IAAI,CAAC,6BAA6B,EAAE,UAAU,GAAG,kBAAkB,GAAG,cAAc,CAAC,CACtF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B,EAAE,0BA+B1C,CAAC"}
1
+ {"version":3,"file":"assistantProduct.d.ts","sourceRoot":"","sources":["../../../src/bigconsole/assistant/assistantProduct.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AACjG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4DAA4D,CAAC;AACvG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AAQjG;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AAEX;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,aAAa,EAAE,SAAS,oBAAoB,EAoCxD,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,EAAE,qBAK/B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,MAAM,0BAA0B,GAAG,QAAQ,CAC/C,IAAI,CAAC,6BAA6B,EAAE,UAAU,GAAG,kBAAkB,GAAG,cAAc,CAAC,CACtF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B,EAAE,0BA+B1C,CAAC"}
@@ -1,18 +1,19 @@
1
1
  import { BIGCONSOLE_PRODUCT as e } from "./product.js";
2
2
  import { describeCurrentPage as t, gatherPageContext as n } from "./pageContext.js";
3
3
  import { buildPromptForMode as r } from "./assistantPrompt.js";
4
- import { BIGCONSOLE_ASSISTANT_MODES as i } from "./modes.js";
4
+ import { BIGCONSOLE_RECORD_ADAPTERS as i } from "./recordAdapters.js";
5
+ import { BIGCONSOLE_ASSISTANT_MODES as a } from "./modes.js";
5
6
  //#region src/bigconsole/assistant/assistantProduct.ts
6
- var a = {
7
+ var o = {
7
8
  attachments: "/BigConsole/AI Assistant/Attachments",
8
9
  artifacts: "/BigConsole/AI Assistant/Artifacts"
9
- }, o = {
10
+ }, s = {
10
11
  product: e,
11
- modes: i,
12
+ modes: a,
12
13
  describeCurrentPage: t,
13
14
  gatherPageContext: n,
14
15
  buildPrompt: r,
15
- storageFolders: a,
16
+ storageFolders: o,
16
17
  localUiCommands: {
17
18
  themeWords: "mode-only",
18
19
  entityRoutes: [
@@ -75,12 +76,13 @@ var a = {
75
76
  fallback: "Connected Systems"
76
77
  }
77
78
  }
78
- ]
79
+ ],
80
+ records: i
79
81
  },
80
82
  reportTurnTimings: !0,
81
83
  writeApproval: "proposal-v1"
82
84
  };
83
85
  //#endregion
84
- export { o as BIGCONSOLE_ASSISTANT_PRODUCT, a as STORAGE_FOLDERS };
86
+ export { s as BIGCONSOLE_ASSISTANT_PRODUCT, o as STORAGE_FOLDERS };
85
87
 
86
88
  //# sourceMappingURL=assistantProduct.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"assistantProduct.js","names":[],"sources":["../../../src/bigconsole/assistant/assistantProduct.ts"],"sourcesContent":["/**\n * BigConsole's answers to the shared assistant's product seam, as one value.\n *\n * ★★ Every capability field on fe-libs' `AssistantProductProvider` is OPTIONAL,\n * and a missing one does not throw — it degrades SILENTLY. No `gatherPageContext`\n * sends every turn with no page context; no `buildPrompt` drops both the\n * confirm-before-mutate guardrail and the language directive; no\n * `storageFolders` starts a second folder beside the one holding every saved\n * attachment.\n *\n * So the value is typed `Required<…>` over the provider's own props: forgetting\n * a field, or fe-libs ADDING one, is a type error in this file rather than a\n * quiet regression in production.\n */\nimport type { LocalUiCommandOptions } from '@burdenoff/fe-libs/shared/assistant/localUiCommands';\nimport type { AssistantEntityRoute } from '@burdenoff/fe-libs/shared/assistant/uiActions/entityRoutes';\nimport type { AssistantProductProviderProps } from '@burdenoff/fe-libs/shared/assistant/product';\n\nimport { buildPromptForMode } from './assistantPrompt';\nimport { BIGCONSOLE_ASSISTANT_MODES } from './modes';\nimport { describeCurrentPage, gatherPageContext } from './pageContext';\nimport { BIGCONSOLE_PRODUCT } from './product';\n\n/**\n * Where this product's assistant files land in the workspace file library.\n *\n * ★★ Capitalised as a DISPLAY name while the product id is `bigconsole`, which\n * is exactly why fe-libs cannot derive it: its fallback is\n * `/${product}/AI Assistant/…` → `/bigconsole/AI Assistant/…`.\n *\n * These strings become load-bearing the moment anything is saved. A wrong value\n * does not fail loudly — it quietly starts a SECOND folder beside the first and\n * orphans everything in the original. Today nothing can be orphaned: BigConsole's\n * legacy transport extracts uploaded files into the prompt and saves nothing to\n * the library, so no `/BigConsole/AI Assistant/*` path exists yet. That makes\n * this a free choice now and an expensive one the moment BC4 ships attachments.\n */\nexport const STORAGE_FOLDERS = {\n attachments: '/BigConsole/AI Assistant/Attachments',\n artifacts: '/BigConsole/AI Assistant/Artifacts',\n} as const;\n\n/**\n * The pages of ONE record that no sidebar entry names (BOFF-8060 N1b), so \"take me\n * there\" can open them from a link in the assistant's own reply.\n *\n * ★★ `exclude` lists the router's STATIC siblings of each `:id` segment\n * (`BigConsoleRoutes.tsx`): `datasinks/new` is the builder, not a data source.\n * `entityRoutes.test.ts` resolves every template through the real route table and\n * checks every static sibling against them, so the two lists cannot drift from the\n * router unnoticed.\n *\n * ★ A workflow's address is `workflows/workflow/<key>/<version>` (a slug key such\n * as `github_user_profile` or a UUID, plus `v1`); the version-less\n * `workflows/:workflowId` is a different page and is deliberately not declared.\n *\n * ★ `/integrations/connections` is the app shell's Connected Systems page, shown\n * to whoever can see the Integrations entry.\n */\nexport const ENTITY_ROUTES: readonly AssistantEntityRoute[] = [\n {\n id: 'bigconsole-datasink',\n pattern: '/bigconsole/datasinks/:id',\n params: { id: { kind: 'id', exclude: ['new'] } },\n visibleWith: 'bigconsole-datasinks',\n noun: { key: 'entity.datasink', fallback: 'data source' },\n },\n {\n id: 'bigconsole-dashboard',\n pattern: '/bigconsole/dashboards/:id',\n params: { id: { kind: 'id' } },\n visibleWith: 'bigconsole-dashboards',\n noun: { key: 'entity.dashboard', fallback: 'dashboard' },\n },\n {\n id: 'bigconsole-parser',\n pattern: '/bigconsole/parsers/:id',\n params: { id: { kind: 'id', exclude: ['new'] } },\n visibleWith: 'bigconsole-parsers',\n noun: { key: 'entity.parser', fallback: 'parser' },\n },\n {\n id: 'bigconsole-workflow',\n pattern: '/bigconsole/workflows/workflow/:key/:version',\n params: { key: { kind: 'slug' }, version: { kind: 'slug' } },\n visibleWith: 'bigconsole-workflows-list',\n noun: { key: 'entity.workflow', fallback: 'workflow' },\n },\n {\n id: 'bigconsole-connections',\n pattern: '/integrations/connections',\n params: {},\n visibleWith: 'integrations',\n noun: { key: 'entity.connections', fallback: 'Connected Systems' },\n },\n];\n\n/**\n * How the panel reads a UI command it carries out itself (BOFF-7802), for\n * BigConsole.\n *\n * ★★ `mode-only` because BigConsole's CONTENT has themes of its own: a\n * dashboard has a theme, so \"use the dark theme\" in a dashboard builder is a\n * request about the dashboard, and must reach the model rather than flip the\n * app. fe-libs names this exact case (`LocalUiCommandOptions.themeWords`). Only\n * \"<name> mode\" (\"dark mode\") or a theme qualified as the app's (\"change the\n * app theme to dark\") still changes the app locally, with no turn.\n *\n * ★ Its own exported constant so the seam test can pin the field by identity,\n * like every other field on the seam value.\n */\nexport const LOCAL_UI_COMMANDS: LocalUiCommandOptions = {\n themeWords: 'mode-only',\n entityRoutes: ENTITY_ROUTES,\n};\n\n/**\n * Every seam field, required — the provider's props minus its children, and\n * minus the two answers BigConsole deliberately does not give.\n *\n * ★★ `reportTokenUsage` is omitted ON EVIDENCE, not by oversight, and this\n * `Omit` member is the only place that decision is expressed in the type system.\n * `wspace-bigconsole-svc` declares NO token-usage mutation at all, and nothing in\n * this MFE reports one today. The obvious \"fix\" — wiring fe-libs' shared\n * reporter — would bill VibeControls for BigConsole turns: `reportAiTokenUsage`\n * is declared only in `wspace-vibecontrols-svc`, against the\n * `vibecontrols.ai.credits` quota. Metering BigConsole is a backend change.\n *\n * Note that BigConsole's `bigconsole.*` quotas are a different mechanism —\n * they cap entity counts, not AI spend — so their presence is not evidence that\n * turns are metered.\n *\n * ★★ `confirmWrite` is omitted so a HIGH-risk write proposal is confirmed in\n * fe-libs' shared `AssistantWriteConfirmDialog` (BOFF-7803 5a). That is the\n * documented default when a product has no dialog of its own, and BigConsole\n * has none. A product dialog must meet the whole contract fe-libs sets for it\n * (readback, target count, consequences, the exact confirm label, sensitive\n * values masked, never `window.confirm`), and the shared one already does, so a\n * BigConsole copy would only be a second place for that to go wrong. The\n * bigconsole-app ambient declaration of this value mirrors this `Omit`.\n */\nexport type BigConsoleAssistantProduct = Required<\n Omit<AssistantProductProviderProps, 'children' | 'reportTokenUsage' | 'confirmWrite'>\n>;\n\n/**\n * ★ Each field points at a product-owned implementation BY IDENTITY — no inline\n * arrow wrappers. The seam guard asserts `toBe`, because a wrapper is how a\n * function silently stops being the one the tests cover.\n *\n * ★ `writeAccess` is deliberately absent: it is a PROP on the shared panel, not\n * a seam field, so it belongs to BC4's panel mount rather than here. Same for\n * the preview controller, which the panel takes as `panelProps.preview`.\n */\nexport const BIGCONSOLE_ASSISTANT_PRODUCT: BigConsoleAssistantProduct = {\n product: BIGCONSOLE_PRODUCT,\n modes: BIGCONSOLE_ASSISTANT_MODES,\n describeCurrentPage,\n gatherPageContext,\n buildPrompt: buildPromptForMode,\n storageFolders: STORAGE_FOLDERS,\n localUiCommands: LOCAL_UI_COMMANDS,\n /**\n * ★ On. That is fe-libs' own default (on unless `false`, BOFF-7801) and\n * what BigConsole does today: this seam never set the field, so its turns\n * have been reported by default. The reports carry timings and coarse\n * dimensions only, and BigConsole is the first proposal-v1 product, so its\n * latency is the measurement the rollout needs.\n */\n reportTurnTimings: true,\n /**\n * ★★★ BigConsole is the FIRST proposal-v1 product (BOFF-7803 5a). At\n * `'proposal-v1'` fe-libs provisions Ask and Build (`api-calls`) through the\n * `assistant:use`-gated `provisionAssistantSandbox`, requests the proposal\n * flow for Build, and lets a spoken Build turn through when the sandbox's\n * own `/health` also says v1. Every change then waits for the button on its\n * card; the sandbox and wspace-sandbox-svc decide whether it runs.\n *\n * ★★ That provisioning path has NO `createSandbox` fallback: while\n * wspace-sandbox-svc answers it with 503 (its session relay switched off),\n * BigConsole's assistant cannot start at all. This flag reaches users only\n * when bigconsole-app pins the microfe version that carries it, so the app\n * bump is the release switch, and it waits for the relay.\n */\n writeApproval: 'proposal-v1',\n};\n"],"mappings":";;;;;AAqCA,IAAa,IAAkB;CAC7B,aAAa;CACb,WAAW;CACZ,EAkHY,IAA2D;CACtE,SAAS;CACT,OAAO;CACP;CACA;CACA,aAAa;CACb,gBAAgB;CAChB,iBAlDsD;EACtD,YAAY;EACZ,cAtD4D;GAC5D;IACE,IAAI;IACJ,SAAS;IACT,QAAQ,EAAE,IAAI;KAAE,MAAM;KAAM,SAAS,CAAC,MAAM;KAAE,EAAE;IAChD,aAAa;IACb,MAAM;KAAE,KAAK;KAAmB,UAAU;KAAe;IAC1D;GACD;IACE,IAAI;IACJ,SAAS;IACT,QAAQ,EAAE,IAAI,EAAE,MAAM,MAAM,EAAE;IAC9B,aAAa;IACb,MAAM;KAAE,KAAK;KAAoB,UAAU;KAAa;IACzD;GACD;IACE,IAAI;IACJ,SAAS;IACT,QAAQ,EAAE,IAAI;KAAE,MAAM;KAAM,SAAS,CAAC,MAAM;KAAE,EAAE;IAChD,aAAa;IACb,MAAM;KAAE,KAAK;KAAiB,UAAU;KAAU;IACnD;GACD;IACE,IAAI;IACJ,SAAS;IACT,QAAQ;KAAE,KAAK,EAAE,MAAM,QAAQ;KAAE,SAAS,EAAE,MAAM,QAAQ;KAAE;IAC5D,aAAa;IACb,MAAM;KAAE,KAAK;KAAmB,UAAU;KAAY;IACvD;GACD;IACE,IAAI;IACJ,SAAS;IACT,QAAQ,EAAE;IACV,aAAa;IACb,MAAM;KAAE,KAAK;KAAsB,UAAU;KAAqB;IACnE;GACF;EAmBA;CAuDC,mBAAmB;CAenB,eAAe;CAChB"}
1
+ {"version":3,"file":"assistantProduct.js","names":[],"sources":["../../../src/bigconsole/assistant/assistantProduct.ts"],"sourcesContent":["/**\n * BigConsole's answers to the shared assistant's product seam, as one value.\n *\n * ★★ Every capability field on fe-libs' `AssistantProductProvider` is OPTIONAL,\n * and a missing one does not throw — it degrades SILENTLY. No `gatherPageContext`\n * sends every turn with no page context; no `buildPrompt` drops both the\n * confirm-before-mutate guardrail and the language directive; no\n * `storageFolders` starts a second folder beside the one holding every saved\n * attachment.\n *\n * So the value is typed `Required<…>` over the provider's own props: forgetting\n * a field, or fe-libs ADDING one, is a type error in this file rather than a\n * quiet regression in production.\n */\nimport type { LocalUiCommandOptions } from '@burdenoff/fe-libs/shared/assistant/localUiCommands';\nimport type { AssistantEntityRoute } from '@burdenoff/fe-libs/shared/assistant/uiActions/entityRoutes';\nimport type { AssistantProductProviderProps } from '@burdenoff/fe-libs/shared/assistant/product';\n\nimport { buildPromptForMode } from './assistantPrompt';\nimport { BIGCONSOLE_RECORD_ADAPTERS } from './recordAdapters';\nimport { BIGCONSOLE_ASSISTANT_MODES } from './modes';\nimport { describeCurrentPage, gatherPageContext } from './pageContext';\nimport { BIGCONSOLE_PRODUCT } from './product';\n\n/**\n * Where this product's assistant files land in the workspace file library.\n *\n * ★★ Capitalised as a DISPLAY name while the product id is `bigconsole`, which\n * is exactly why fe-libs cannot derive it: its fallback is\n * `/${product}/AI Assistant/…` → `/bigconsole/AI Assistant/…`.\n *\n * These strings become load-bearing the moment anything is saved. A wrong value\n * does not fail loudly — it quietly starts a SECOND folder beside the first and\n * orphans everything in the original. Today nothing can be orphaned: BigConsole's\n * legacy transport extracts uploaded files into the prompt and saves nothing to\n * the library, so no `/BigConsole/AI Assistant/*` path exists yet. That makes\n * this a free choice now and an expensive one the moment BC4 ships attachments.\n */\nexport const STORAGE_FOLDERS = {\n attachments: '/BigConsole/AI Assistant/Attachments',\n artifacts: '/BigConsole/AI Assistant/Artifacts',\n} as const;\n\n/**\n * The pages of ONE record that no sidebar entry names (BOFF-8060 N1b), so \"take me\n * there\" can open them from a link in the assistant's own reply.\n *\n * ★★ `exclude` lists the router's STATIC siblings of each `:id` segment\n * (`BigConsoleRoutes.tsx`): `datasinks/new` is the builder, not a data source.\n * `entityRoutes.test.ts` resolves every template through the real route table and\n * checks every static sibling against them, so the two lists cannot drift from the\n * router unnoticed.\n *\n * ★ A workflow's address is `workflows/workflow/<key>/<version>` (a slug key such\n * as `github_user_profile` or a UUID, plus `v1`); the version-less\n * `workflows/:workflowId` is a different page and is deliberately not declared.\n *\n * ★ `/integrations/connections` is the app shell's Connected Systems page, shown\n * to whoever can see the Integrations entry.\n */\nexport const ENTITY_ROUTES: readonly AssistantEntityRoute[] = [\n {\n id: 'bigconsole-datasink',\n pattern: '/bigconsole/datasinks/:id',\n params: { id: { kind: 'id', exclude: ['new'] } },\n visibleWith: 'bigconsole-datasinks',\n noun: { key: 'entity.datasink', fallback: 'data source' },\n },\n {\n id: 'bigconsole-dashboard',\n pattern: '/bigconsole/dashboards/:id',\n params: { id: { kind: 'id' } },\n visibleWith: 'bigconsole-dashboards',\n noun: { key: 'entity.dashboard', fallback: 'dashboard' },\n },\n {\n id: 'bigconsole-parser',\n pattern: '/bigconsole/parsers/:id',\n params: { id: { kind: 'id', exclude: ['new'] } },\n visibleWith: 'bigconsole-parsers',\n noun: { key: 'entity.parser', fallback: 'parser' },\n },\n {\n id: 'bigconsole-workflow',\n pattern: '/bigconsole/workflows/workflow/:key/:version',\n params: { key: { kind: 'slug' }, version: { kind: 'slug' } },\n visibleWith: 'bigconsole-workflows-list',\n noun: { key: 'entity.workflow', fallback: 'workflow' },\n },\n {\n id: 'bigconsole-connections',\n pattern: '/integrations/connections',\n params: {},\n visibleWith: 'integrations',\n noun: { key: 'entity.connections', fallback: 'Connected Systems' },\n },\n];\n\n/**\n * How the panel reads a UI command it carries out itself (BOFF-7802), for\n * BigConsole.\n *\n * ★★ `mode-only` because BigConsole's CONTENT has themes of its own: a\n * dashboard has a theme, so \"use the dark theme\" in a dashboard builder is a\n * request about the dashboard, and must reach the model rather than flip the\n * app. fe-libs names this exact case (`LocalUiCommandOptions.themeWords`). Only\n * \"<name> mode\" (\"dark mode\") or a theme qualified as the app's (\"change the\n * app theme to dark\") still changes the app locally, with no turn.\n *\n * ★ Its own exported constant so the seam test can pin the field by identity,\n * like every other field on the seam value.\n */\nexport const LOCAL_UI_COMMANDS: LocalUiCommandOptions = {\n themeWords: 'mode-only',\n entityRoutes: ENTITY_ROUTES,\n // BOFF-8060 N1b: \"open the Coffee Shop Sales dashboard\" / data source, by name.\n records: BIGCONSOLE_RECORD_ADAPTERS,\n};\n\n/**\n * Every seam field, required — the provider's props minus its children, and\n * minus the two answers BigConsole deliberately does not give.\n *\n * ★★ `reportTokenUsage` is omitted ON EVIDENCE, not by oversight, and this\n * `Omit` member is the only place that decision is expressed in the type system.\n * `wspace-bigconsole-svc` declares NO token-usage mutation at all, and nothing in\n * this MFE reports one today. The obvious \"fix\" — wiring fe-libs' shared\n * reporter — would bill VibeControls for BigConsole turns: `reportAiTokenUsage`\n * is declared only in `wspace-vibecontrols-svc`, against the\n * `vibecontrols.ai.credits` quota. Metering BigConsole is a backend change.\n *\n * Note that BigConsole's `bigconsole.*` quotas are a different mechanism —\n * they cap entity counts, not AI spend — so their presence is not evidence that\n * turns are metered.\n *\n * ★★ `confirmWrite` is omitted so a HIGH-risk write proposal is confirmed in\n * fe-libs' shared `AssistantWriteConfirmDialog` (BOFF-7803 5a). That is the\n * documented default when a product has no dialog of its own, and BigConsole\n * has none. A product dialog must meet the whole contract fe-libs sets for it\n * (readback, target count, consequences, the exact confirm label, sensitive\n * values masked, never `window.confirm`), and the shared one already does, so a\n * BigConsole copy would only be a second place for that to go wrong. The\n * bigconsole-app ambient declaration of this value mirrors this `Omit`.\n */\nexport type BigConsoleAssistantProduct = Required<\n Omit<AssistantProductProviderProps, 'children' | 'reportTokenUsage' | 'confirmWrite'>\n>;\n\n/**\n * ★ Each field points at a product-owned implementation BY IDENTITY — no inline\n * arrow wrappers. The seam guard asserts `toBe`, because a wrapper is how a\n * function silently stops being the one the tests cover.\n *\n * ★ `writeAccess` is deliberately absent: it is a PROP on the shared panel, not\n * a seam field, so it belongs to BC4's panel mount rather than here. Same for\n * the preview controller, which the panel takes as `panelProps.preview`.\n */\nexport const BIGCONSOLE_ASSISTANT_PRODUCT: BigConsoleAssistantProduct = {\n product: BIGCONSOLE_PRODUCT,\n modes: BIGCONSOLE_ASSISTANT_MODES,\n describeCurrentPage,\n gatherPageContext,\n buildPrompt: buildPromptForMode,\n storageFolders: STORAGE_FOLDERS,\n localUiCommands: LOCAL_UI_COMMANDS,\n /**\n * ★ On. That is fe-libs' own default (on unless `false`, BOFF-7801) and\n * what BigConsole does today: this seam never set the field, so its turns\n * have been reported by default. The reports carry timings and coarse\n * dimensions only, and BigConsole is the first proposal-v1 product, so its\n * latency is the measurement the rollout needs.\n */\n reportTurnTimings: true,\n /**\n * ★★★ BigConsole is the FIRST proposal-v1 product (BOFF-7803 5a). At\n * `'proposal-v1'` fe-libs provisions Ask and Build (`api-calls`) through the\n * `assistant:use`-gated `provisionAssistantSandbox`, requests the proposal\n * flow for Build, and lets a spoken Build turn through when the sandbox's\n * own `/health` also says v1. Every change then waits for the button on its\n * card; the sandbox and wspace-sandbox-svc decide whether it runs.\n *\n * ★★ That provisioning path has NO `createSandbox` fallback: while\n * wspace-sandbox-svc answers it with 503 (its session relay switched off),\n * BigConsole's assistant cannot start at all. This flag reaches users only\n * when bigconsole-app pins the microfe version that carries it, so the app\n * bump is the release switch, and it waits for the relay.\n */\n writeApproval: 'proposal-v1',\n};\n"],"mappings":";;;;;;AAsCA,IAAa,IAAkB;CAC7B,aAAa;CACb,WAAW;CACZ,EAoHY,IAA2D;CACtE,SAAS;CACT,OAAO;CACP;CACA;CACA,aAAa;CACb,gBAAgB;CAChB,iBApDsD;EACtD,YAAY;EACZ,cAtD4D;GAC5D;IACE,IAAI;IACJ,SAAS;IACT,QAAQ,EAAE,IAAI;KAAE,MAAM;KAAM,SAAS,CAAC,MAAM;KAAE,EAAE;IAChD,aAAa;IACb,MAAM;KAAE,KAAK;KAAmB,UAAU;KAAe;IAC1D;GACD;IACE,IAAI;IACJ,SAAS;IACT,QAAQ,EAAE,IAAI,EAAE,MAAM,MAAM,EAAE;IAC9B,aAAa;IACb,MAAM;KAAE,KAAK;KAAoB,UAAU;KAAa;IACzD;GACD;IACE,IAAI;IACJ,SAAS;IACT,QAAQ,EAAE,IAAI;KAAE,MAAM;KAAM,SAAS,CAAC,MAAM;KAAE,EAAE;IAChD,aAAa;IACb,MAAM;KAAE,KAAK;KAAiB,UAAU;KAAU;IACnD;GACD;IACE,IAAI;IACJ,SAAS;IACT,QAAQ;KAAE,KAAK,EAAE,MAAM,QAAQ;KAAE,SAAS,EAAE,MAAM,QAAQ;KAAE;IAC5D,aAAa;IACb,MAAM;KAAE,KAAK;KAAmB,UAAU;KAAY;IACvD;GACD;IACE,IAAI;IACJ,SAAS;IACT,QAAQ,EAAE;IACV,aAAa;IACb,MAAM;KAAE,KAAK;KAAsB,UAAU;KAAqB;IACnE;GACF;EAoBC,SAAS;EACV;CAuDC,mBAAmB;CAenB,eAAe;CAChB"}
@@ -0,0 +1,15 @@
1
+ import { AssistantRecordAdapter } from '@burdenoff/fe-libs/shared/assistant/uiActions/recordNames';
2
+ import { graphqlFetch } from '@burdenoff/fe-libs/shared/graphql';
3
+
4
+ /** More than a handful of candidates is never offered (the panel offers at most four). */
5
+ export declare const RECORD_LOOKUP_PAGE_SIZE = 10;
6
+ export declare const FIND_DASHBOARDS_BY_NAME = "\n query AssistantFindDashboards($search: String, $first: Int) {\n listDashboards(search: $search, first: $first, includeArchived: false) {\n edges { node { id name workspaceId } }\n }\n }\n";
7
+ export declare const FIND_DATA_SINKS_BY_NAME = "\n query AssistantFindDataSinks($search: String, $first: Int) {\n listDataSinks(search: $search, first: $first) {\n edges { node { id name key workspaceId deletedAt } }\n }\n }\n";
8
+ /** The two things the adapters need from the app; injectable so tests run without a network. */
9
+ export interface RecordAdapterDeps {
10
+ graphqlFetch: typeof graphqlFetch;
11
+ getWorkspaceId: () => string | null;
12
+ }
13
+ export declare function createBigConsoleRecordAdapters(deps?: RecordAdapterDeps): readonly AssistantRecordAdapter[];
14
+ export declare const BIGCONSOLE_RECORD_ADAPTERS: readonly AssistantRecordAdapter[];
15
+ //# sourceMappingURL=recordAdapters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recordAdapters.d.ts","sourceRoot":"","sources":["../../../src/bigconsole/assistant/recordAdapters.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,EACV,sBAAsB,EAEvB,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAwB,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEvF,0FAA0F;AAC1F,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAE1C,eAAO,MAAM,uBAAuB,gNAMnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,oMAMnC,CAAC;AAEF,gGAAgG;AAChG,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,OAAO,YAAY,CAAC;IAClC,cAAc,EAAE,MAAM,MAAM,GAAG,IAAI,CAAC;CACrC;AA2DD,wBAAgB,8BAA8B,CAAC,IAAI,GAAE,iBAA6B,GAAG,SAAS,sBAAsB,EAAE,CAuBrH;AAED,eAAO,MAAM,0BAA0B,EAAE,SAAS,sBAAsB,EAAqC,CAAC"}
@@ -0,0 +1,71 @@
1
+ import { getStoredWorkspaceId as e, graphqlFetch as t } from "@burdenoff/fe-libs/shared/graphql";
2
+ var n = "\n query AssistantFindDashboards($search: String, $first: Int) {\n listDashboards(search: $search, first: $first, includeArchived: false) {\n edges { node { id name workspaceId } }\n }\n }\n", r = "\n query AssistantFindDataSinks($search: String, $first: Int) {\n listDataSinks(search: $search, first: $first) {\n edges { node { id name key workspaceId deletedAt } }\n }\n }\n", i = {
3
+ graphqlFetch: t,
4
+ getWorkspaceId: e
5
+ };
6
+ async function a(e, t, n, r, i, a, o) {
7
+ let s = e.getWorkspaceId();
8
+ if (!s) return [];
9
+ let c = await e.graphqlFetch({
10
+ gateway: "workspace",
11
+ query: t,
12
+ operationName: n,
13
+ variables: {
14
+ search: i,
15
+ first: 10
16
+ },
17
+ workspaceToken: !0,
18
+ workspaceId: s,
19
+ organizationId: !0,
20
+ signal: a,
21
+ suppressGlobalErrorEvent: !0
22
+ });
23
+ if (c.errors?.length) return [];
24
+ let l = c.data?.[r]?.edges;
25
+ if (!Array.isArray(l)) return [];
26
+ let u = [];
27
+ for (let e of l) {
28
+ let t = e?.node;
29
+ if (!t || typeof t.id != "string" || t.id.length === 0 || typeof t.workspaceId == "string" && t.workspaceId !== s) continue;
30
+ let n = o(t);
31
+ n !== null && u.push({
32
+ params: { id: t.id },
33
+ name: n
34
+ });
35
+ }
36
+ return u;
37
+ }
38
+ var o = (e) => typeof e == "string" && e.trim().length > 0 ? e.trim() : null;
39
+ function s(e = i) {
40
+ return [{
41
+ id: "bigconsole-dashboard",
42
+ nouns: ["dashboard", "dashboards"],
43
+ noun: {
44
+ key: "entity.dashboard",
45
+ fallback: "dashboard"
46
+ },
47
+ entityRouteId: "bigconsole-dashboard",
48
+ find: (t, r) => a(e, n, "AssistantFindDashboards", "listDashboards", t, r, (e) => o(e.name))
49
+ }, {
50
+ id: "bigconsole-datasink",
51
+ nouns: [
52
+ "data source",
53
+ "data sources",
54
+ "data sink",
55
+ "data sinks",
56
+ "datasink",
57
+ "datasinks"
58
+ ],
59
+ noun: {
60
+ key: "entity.datasink",
61
+ fallback: "data source"
62
+ },
63
+ entityRouteId: "bigconsole-datasink",
64
+ find: (t, n) => a(e, r, "AssistantFindDataSinks", "listDataSinks", t, n, (e) => e.deletedAt ? null : o(e.name) ?? o(e.key))
65
+ }];
66
+ }
67
+ var c = s();
68
+ //#endregion
69
+ export { c as BIGCONSOLE_RECORD_ADAPTERS };
70
+
71
+ //# sourceMappingURL=recordAdapters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recordAdapters.js","names":[],"sources":["../../../src/bigconsole/assistant/recordAdapters.ts"],"sourcesContent":["/**\n * BigConsole's named-record adapters for the shared assistant (BOFF-8060 N1b):\n * \"open the Coffee Shop Sales dashboard\", \"open the Orders data source\".\n *\n * An adapter only LOOKS A RECORD UP BY NAME through the READ API the product's\n * own list pages already use (`listDashboards`, `listDataSinks`, with their\n * `search` argument), as the signed-in person: the workspace token is theirs and\n * the gateway's `@rbac` filters the list, so a record they may not read never\n * comes back. The adapter produces route params, never a path: fe-libs fills the\n * entity route declared in `assistantProduct.ts` (`ENTITY_ROUTES`) and re-validates\n * it, and only for a person who can see the route's sidebar entry.\n *\n * ★ Raw operation strings, as in `conversationHistoryApi.ts`: two tiny read-only\n * selections used only here. `tests/recordAdapters.test.ts` validates both against\n * the committed workspace schema, so a renamed field fails there, not in prod.\n *\n * ★ Nothing here writes, opens a form, or touches the DOM.\n */\nimport type {\n AssistantRecordAdapter,\n AssistantRecordMatch,\n} from '@burdenoff/fe-libs/shared/assistant/uiActions/recordNames';\nimport { getStoredWorkspaceId, graphqlFetch } from '@burdenoff/fe-libs/shared/graphql';\n\n/** More than a handful of candidates is never offered (the panel offers at most four). */\nexport const RECORD_LOOKUP_PAGE_SIZE = 10;\n\nexport const FIND_DASHBOARDS_BY_NAME = `\n query AssistantFindDashboards($search: String, $first: Int) {\n listDashboards(search: $search, first: $first, includeArchived: false) {\n edges { node { id name workspaceId } }\n }\n }\n`;\n\nexport const FIND_DATA_SINKS_BY_NAME = `\n query AssistantFindDataSinks($search: String, $first: Int) {\n listDataSinks(search: $search, first: $first) {\n edges { node { id name key workspaceId deletedAt } }\n }\n }\n`;\n\n/** The two things the adapters need from the app; injectable so tests run without a network. */\nexport interface RecordAdapterDeps {\n graphqlFetch: typeof graphqlFetch;\n getWorkspaceId: () => string | null;\n}\nconst LIVE_DEPS: RecordAdapterDeps = { graphqlFetch, getWorkspaceId: getStoredWorkspaceId };\n\ninterface RawNode {\n id?: unknown;\n name?: unknown;\n key?: unknown;\n workspaceId?: unknown;\n deletedAt?: unknown;\n}\ntype ListData = Record<string, { edges?: Array<{ node?: RawNode | null } | null> | null } | null | undefined>;\n\n/**\n * Run one list query as the signed-in person and map its nodes to matches.\n * Any failure (no workspace, a GraphQL error, a refusal, an abort) is \"no\n * match\": the sentence then goes to the model exactly as it would have.\n */\nasync function findByName(\n deps: RecordAdapterDeps,\n query: string,\n operationName: string,\n field: string,\n name: string,\n signal: AbortSignal,\n pick: (node: RawNode) => string | null\n): Promise<readonly AssistantRecordMatch[]> {\n const workspaceId = deps.getWorkspaceId();\n if (!workspaceId) return [];\n const result = await deps.graphqlFetch<ListData>({\n gateway: 'workspace',\n query,\n operationName,\n variables: { search: name, first: RECORD_LOOKUP_PAGE_SIZE },\n // The person's own workspace token, minted for THIS workspace.\n workspaceToken: true,\n workspaceId,\n organizationId: true,\n signal,\n suppressGlobalErrorEvent: true,\n });\n if (result.errors?.length) return [];\n const edges = result.data?.[field]?.edges;\n if (!Array.isArray(edges)) return [];\n const matches: AssistantRecordMatch[] = [];\n for (const edge of edges) {\n const node = edge?.node;\n if (!node || typeof node.id !== 'string' || node.id.length === 0) continue;\n // A list answered for another workspace (a switch mid-request) is not used.\n if (typeof node.workspaceId === 'string' && node.workspaceId !== workspaceId) continue;\n const label = pick(node);\n if (label === null) continue;\n matches.push({ params: { id: node.id }, name: label });\n }\n return matches;\n}\n\nconst text = (value: unknown): string | null =>\n typeof value === 'string' && value.trim().length > 0 ? value.trim() : null;\n\nexport function createBigConsoleRecordAdapters(deps: RecordAdapterDeps = LIVE_DEPS): readonly AssistantRecordAdapter[] {\n const dashboards: AssistantRecordAdapter = {\n id: 'bigconsole-dashboard',\n nouns: ['dashboard', 'dashboards'],\n noun: { key: 'entity.dashboard', fallback: 'dashboard' },\n entityRouteId: 'bigconsole-dashboard',\n find: (name, signal) =>\n findByName(deps, FIND_DASHBOARDS_BY_NAME, 'AssistantFindDashboards', 'listDashboards', name, signal, (node) =>\n text(node.name)\n ),\n };\n const dataSinks: AssistantRecordAdapter = {\n id: 'bigconsole-datasink',\n nouns: ['data source', 'data sources', 'data sink', 'data sinks', 'datasink', 'datasinks'],\n noun: { key: 'entity.datasink', fallback: 'data source' },\n entityRouteId: 'bigconsole-datasink',\n find: (name, signal) =>\n findByName(deps, FIND_DATA_SINKS_BY_NAME, 'AssistantFindDataSinks', 'listDataSinks', name, signal, (node) =>\n // A deleted data source is not a page to open; an unnamed one is called by its key.\n node.deletedAt ? null : (text(node.name) ?? text(node.key))\n ),\n };\n return [dashboards, dataSinks];\n}\n\nexport const BIGCONSOLE_RECORD_ADAPTERS: readonly AssistantRecordAdapter[] = createBigConsoleRecordAdapters();\n"],"mappings":";AA2BA,IAAa,IAA0B,+MAQ1B,IAA0B,mMAajC,IAA+B;CAAE;CAAc,gBAAgB;CAAsB;AAgB3F,eAAe,EACb,GACA,GACA,GACA,GACA,GACA,GACA,GAC0C;CAC1C,IAAM,IAAc,EAAK,gBAAgB;AACzC,KAAI,CAAC,EAAa,QAAO,EAAE;CAC3B,IAAM,IAAS,MAAM,EAAK,aAAuB;EAC/C,SAAS;EACT;EACA;EACA,WAAW;GAAE,QAAQ;GAAM,OAAA;GAAgC;EAE3D,gBAAgB;EAChB;EACA,gBAAgB;EAChB;EACA,0BAA0B;EAC3B,CAAC;AACF,KAAI,EAAO,QAAQ,OAAQ,QAAO,EAAE;CACpC,IAAM,IAAQ,EAAO,OAAO,IAAQ;AACpC,KAAI,CAAC,MAAM,QAAQ,EAAM,CAAE,QAAO,EAAE;CACpC,IAAM,IAAkC,EAAE;AAC1C,MAAK,IAAM,KAAQ,GAAO;EACxB,IAAM,IAAO,GAAM;AAGnB,MAFI,CAAC,KAAQ,OAAO,EAAK,MAAO,YAAY,EAAK,GAAG,WAAW,KAE3D,OAAO,EAAK,eAAgB,YAAY,EAAK,gBAAgB,EAAa;EAC9E,IAAM,IAAQ,EAAK,EAAK;AACpB,QAAU,QACd,EAAQ,KAAK;GAAE,QAAQ,EAAE,IAAI,EAAK,IAAI;GAAE,MAAM;GAAO,CAAC;;AAExD,QAAO;;AAGT,IAAM,KAAQ,MACZ,OAAO,KAAU,YAAY,EAAM,MAAM,CAAC,SAAS,IAAI,EAAM,MAAM,GAAG;AAExE,SAAgB,EAA+B,IAA0B,GAA8C;AAsBrH,QAAO,CArBoC;EACzC,IAAI;EACJ,OAAO,CAAC,aAAa,aAAa;EAClC,MAAM;GAAE,KAAK;GAAoB,UAAU;GAAa;EACxD,eAAe;EACf,OAAO,GAAM,MACX,EAAW,GAAM,GAAyB,2BAA2B,kBAAkB,GAAM,IAAS,MACpG,EAAK,EAAK,KAAK,CAChB;EACJ,EACyC;EACxC,IAAI;EACJ,OAAO;GAAC;GAAe;GAAgB;GAAa;GAAc;GAAY;GAAY;EAC1F,MAAM;GAAE,KAAK;GAAmB,UAAU;GAAe;EACzD,eAAe;EACf,OAAO,GAAM,MACX,EAAW,GAAM,GAAyB,0BAA0B,iBAAiB,GAAM,IAAS,MAElG,EAAK,YAAY,OAAQ,EAAK,EAAK,KAAK,IAAI,EAAK,EAAK,IAAI,CAC3D;EACJ,CAC6B;;AAGhC,IAAa,IAAgE,GAAgC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-bigconsole",
3
- "version": "2026.1005.1",
3
+ "version": "2026.1005.3",
4
4
  "description": "BigConsole - AI-powered analytics and dashboard platform",
5
5
  "type": "module",
6
6
  "files": [
@@ -50,7 +50,7 @@
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@apollo/client": "^4.0.11",
53
- "@burdenoff/fe-libs": "2026.1004.6",
53
+ "@burdenoff/fe-libs": "2026.1005.2",
54
54
  "@burdenoff/fluidgrids-fe-sdk": "2026.731.4",
55
55
  "@iconify/react": "^6.0.2",
56
56
  "@monaco-editor/react": "^4.7.0",
@@ -85,7 +85,7 @@
85
85
  "zustand": "^5.0.3"
86
86
  },
87
87
  "devDependencies": {
88
- "@burdenoff/fe-libs": "2026.1004.6",
88
+ "@burdenoff/fe-libs": "2026.1005.2",
89
89
  "@burdenoff/fluidgrids-fe-sdk": "2026.731.4",
90
90
  "@eslint/js": "^10.0.1",
91
91
  "@graphql-codegen/add": "^5.0.0",