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.
21 lines
763 B
JavaScript
Executable file
21 lines
763 B
JavaScript
Executable file
#!/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();
|
|
}
|