一键导入
verify
Build, launch, and drive HomeGlow locally to verify client/server changes end-to-end.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build, launch, and drive HomeGlow locally to verify client/server changes end-to-end.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | verify |
| description | Build, launch, and drive HomeGlow locally to verify client/server changes end-to-end. |
# API server — demo mode auto-seeds chores + calendar for each new device
cd server && PORT=5001 DEMO_MODE=true node index.js &
# Client dev server (client/ expects the API at localhost:5001 in dev mode)
cd client && npx vite --port 3012 --strictPort &
Gotchas:
homeglow_device_name in
localStorage). Demo seeding only happens for first-run devices: if you
intercept GET /api/devices/*/settings and inject widgetSettings into an
empty response, the app thinks it's configured and never seeds.npm i playwright-core in the scratchpad, then
chromium.launch({ channel: 'msedge', headless: true }).
Useful handles:
Widgets: .widget-wrapper; refresh ring: button[aria-label="Refresh widget now"].
Shrink widget refresh intervals by rewriting GET /api/devices/*/settings
responses (only when widgetSettings already exists — see gotcha above).
Simulate tab hide/show: Object.defineProperty(document,'visibilityState',...)
plus dispatching visibilitychange.
Screensaver: seed localStorage screensaverSettings
({enabled,mode:'photos'|'tabs',timeout(minutes, fractions ok),slideshowInterval})
before load; exit by clicking the overlay.
Track data churn with page.on('request') filtered to localhost:5001.
Chore cards (.chore-card, [data-schedule-id]) have a long-press/right-click
context menu; locator.click({ button: 'right' }) opens it. Long-press via CDP
Input.dispatchTouchEvent (context needs hasTouch: true), hold ~900ms.
PIN-gated flows need a non-demo server (file DB_PATH) with a PIN set via
POST /api/admin-pin/set; PinModal accepts keyboard digits + Enter.
cd client && npm test (vitest). Server: cd server && npm test.