chore: update plan automation and chat status UI
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import process from 'node:process';
|
||||
import { chromium } from 'playwright';
|
||||
import { createCaptureContext, getCaptureRuntimeConfig } from './capture-auth-utils.mjs';
|
||||
import { ensureDirectory, getKstDate, resolveCapturePaths, updateWorklogCaptureSection } from './worklog-capture-utils.mjs';
|
||||
|
||||
const cwd = process.cwd();
|
||||
const captureDate = process.argv[2] ?? getKstDate();
|
||||
const baseUrl = process.env.CAPTURE_BASE_URL ?? 'http://127.0.0.1:5174';
|
||||
const { baseUrl } = getCaptureRuntimeConfig(cwd);
|
||||
const screenshotFileName = 'search-command.png';
|
||||
const { screenshotDir, screenshotPath, worklogPath, markdownImagePath } = resolveCapturePaths({
|
||||
cwd,
|
||||
@@ -13,7 +14,7 @@ const { screenshotDir, screenshotPath, worklogPath, markdownImagePath } = resolv
|
||||
});
|
||||
|
||||
const browser = await chromium.launch({ headless: true });
|
||||
const context = await browser.newContext({
|
||||
const context = await createCaptureContext(browser, {
|
||||
viewport: { width: 430, height: 932 },
|
||||
isMobile: true,
|
||||
hasTouch: true,
|
||||
|
||||
Reference in New Issue
Block a user