@broberg/lens-daemon 0.1.7 → 0.1.8

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@broberg/lens-daemon",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "The Lens module of the cardmem daemon (flows, critic, coverage, capture sessions, the /lens/* routes and the cardmem-lens MCP) as a package. The daemon mounts createLensRouter(deps) + createLensMcpRouter(deps). Bun runtime.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -15,8 +15,8 @@
15
15
  "sharp": "^0.33.5",
16
16
  "turndown": "^7.2.4",
17
17
  "zod": "^3.23.8",
18
- "@broberg/lens-engine": "0.11.0",
19
- "@broberg/lens-svg": "0.1.0"
18
+ "@broberg/lens-svg": "0.1.0",
19
+ "@broberg/lens-engine": "0.11.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@happy-dom/global-registrator": "^20.10.6",
package/src/flow-store.ts CHANGED
@@ -17,6 +17,8 @@ export interface StoredFlowStep {
17
17
  index: number;
18
18
  type: string;
19
19
  label: string;
20
+ /** F009.122 — the named browser the step ran in; absent = the default one. */
21
+ browser?: string;
20
22
  status: 'pass' | 'fail' | 'skip';
21
23
  testid: string | null;
22
24
  detail: string | null;
@@ -82,6 +84,8 @@ export async function recordFlowRun(
82
84
  index: s.index,
83
85
  type: s.type,
84
86
  label: s.label,
87
+ // F009.122 — third-place rule: a field only flow.ts knows reaches nobody.
88
+ ...(s.browser ? { browser: s.browser } : {}),
85
89
  status: s.status,
86
90
  testid: s.testid,
87
91
  detail: s.detail,
package/src/service.ts CHANGED
@@ -682,6 +682,8 @@ export function flowRunView(row: LensFlowRunRow, port: number) {
682
682
  type: s.type,
683
683
  label: s.label,
684
684
  status: s.status,
685
+ // F009.122 — which named browser ran the step. Absent = the default one.
686
+ ...(s.browser ? { browser: s.browser } : {}),
685
687
  testid: s.testid,
686
688
  detail: s.detail,
687
689
  ...(s.fault ? { fault: s.fault } : {}),