Extract authenticated coulomb.social design language via designlang
Session probe lands on /vw_pages (Research). Use main designlang extract with --cookie-file — pack ignores auth. 39 artifacts under docs/design-extract; tolerate designlang late summary crash when cores exist.
This commit is contained in:
parent
319dd00465
commit
6fe263444a
71 changed files with 4939 additions and 797 deletions
21
scripts/probe-auth-session.mjs
Executable file
21
scripts/probe-auth-session.mjs
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env node
|
||||
/** Print final URL after loading coulomb.social with storageState (no secrets). */
|
||||
import { chromium } from "playwright";
|
||||
import { homedir } from "os";
|
||||
import { join } from "path";
|
||||
|
||||
const statePath =
|
||||
process.env.COULOMB_SOCIAL_STORAGE_STATE ||
|
||||
join(homedir(), ".config/coulomb-social/auth/storage-state.json");
|
||||
const url = process.env.COULOMB_SOCIAL_URL || "https://coulomb.social";
|
||||
|
||||
const browser = await chromium.launch({ headless: true });
|
||||
try {
|
||||
const context = await browser.newContext({ storageState: statePath });
|
||||
const page = await context.newPage();
|
||||
await page.goto(url, { waitUntil: "domcontentloaded", timeout: 45000 });
|
||||
await page.waitForTimeout(3000);
|
||||
console.log(page.url());
|
||||
} finally {
|
||||
await browser.close();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue