@broberg/lens-daemon 0.1.45 → 0.1.47
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 +3 -3
- package/src/flow.ts +8 -1
- package/src/owner-fill.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@broberg/lens-daemon",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.47",
|
|
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.35.5",
|
|
16
16
|
"turndown": "^7.2.4",
|
|
17
17
|
"zod": "^3.23.8",
|
|
18
|
-
"@broberg/lens-
|
|
19
|
-
"@broberg/lens-
|
|
18
|
+
"@broberg/lens-engine": "0.14.1",
|
|
19
|
+
"@broberg/lens-svg": "0.1.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@happy-dom/global-registrator": "^20.10.6",
|
package/src/flow.ts
CHANGED
|
@@ -3081,7 +3081,14 @@ export async function runFlow(flow: Flow, env: AuthEnv, opts: RunFlowOptions = {
|
|
|
3081
3081
|
// at load has not ejected us, and comparing against what we asked for
|
|
3082
3082
|
// would call that an ejection on every single run.
|
|
3083
3083
|
if (formsAVerdict(step.type)) formedAVerdict = true;
|
|
3084
|
-
|
|
3084
|
+
// F009.139 (jam, run 03c39df0) — the ejection guard watches the page under
|
|
3085
|
+
// test only. A step in an opened window or an extension popup acts on
|
|
3086
|
+
// ANOTHER page, whose own navigations (an OAuth dialog moving from account
|
|
3087
|
+
// switch to consent) are that window's business, not an ejection.
|
|
3088
|
+
const onPageUnderTest = (step as { in?: string }).in === undefined;
|
|
3089
|
+
if (!onPageUnderTest) {
|
|
3090
|
+
// nothing: the page under test was not touched by this step
|
|
3091
|
+
} else if (NAVIGATES_BY_DESIGN.has(step.type)) {
|
|
3085
3092
|
urlAtLoad = safeUrl(sp) ?? urlAtLoad;
|
|
3086
3093
|
// A goto is already settled — Playwright waited for it. Any OTHER
|
|
3087
3094
|
// navigating action may commit after it returns, so it leaves a note
|
package/src/owner-fill.ts
CHANGED
|
@@ -37,11 +37,11 @@ export type OwnerAnswer =
|
|
|
37
37
|
|
|
38
38
|
export type OwnerAsker = (q: { kind: OwnerKind; question: string; timeout: number }) => Promise<OwnerAnswer>;
|
|
39
39
|
|
|
40
|
-
// One config value
|
|
41
|
-
//
|
|
42
|
-
// and differs per edge.
|
|
40
|
+
// One config value. buddy gives `ars` one fixed path on every edge, ~/.buddy/bin/ars
|
|
41
|
+
// (buddy #44209: measured on m1 and cb-2). launchd's PATH is NOT searched — it is
|
|
42
|
+
// narrow and differs per edge.
|
|
43
43
|
export function arsBinary(): string {
|
|
44
|
-
return process.env.LENS_ARS_BIN || join(homedir(), '.
|
|
44
|
+
return process.env.LENS_ARS_BIN || join(homedir(), '.buddy', 'bin', 'ars');
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
const spawnAsker: OwnerAsker = ({ kind, question, timeout }) =>
|