@melaya/runner 1.0.68 → 1.0.69

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.
@@ -168,7 +168,19 @@ export async function runLinkedInLoginFlow(progress) {
168
168
  viewport: { width: 1280, height: 820 },
169
169
  });
170
170
  const page = await context.newPage();
171
- await page.goto("https://www.linkedin.com/login", { waitUntil: "domcontentloaded" });
171
+ // LinkedIn's login page no longer fires DOMContentLoaded within 30s (some
172
+ // resource keeps the load pending) — verified 2026-06-18: a `domcontentloaded`
173
+ // wait times out (the title + form DO render, but the event never fires),
174
+ // which aborts the whole flow with login_flow_error. `commit` resolves as
175
+ // soon as the navigation commits (~1.4s); the window keeps loading and the
176
+ // user signs in normally. Wrapped so even a slow commit can't abort — the
177
+ // poll loop below waits for the logged-in URL regardless.
178
+ try {
179
+ await page.goto("https://www.linkedin.com/login", { waitUntil: "commit", timeout: 60000 });
180
+ }
181
+ catch (e) {
182
+ progress(`Login page slow to start (${(e?.message || e).toString().split("\n")[0]}); the window is open — sign in there.`);
183
+ }
172
184
  progress("Sign in with your LinkedIn account in the window that just opened.");
173
185
  // 3. Wait for the user to finish signing in. Two terminal conditions:
174
186
  // (a) URL becomes a logged-in LinkedIn path → success.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@melaya/runner",
3
- "version": "1.0.68",
3
+ "version": "1.0.69",
4
4
  "description": "Run Melaya AI pipelines locally with your own LM Studio or Ollama models",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,