AGENT SKILL
verify
Build, launch and drive the Solo app locally to verify a change end-to-end.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- verify
- description
- Build, launch and drive the Solo app locally to verify a change end-to-end.
03 SKILL.md 正文
Verifying Solo changes locally
Launch
- Dev Postgres:
docker start solo-pg(container on port 55432; connection string and Google auth config live indotnet user-secretsfor Solo.Api). - Server:
dotnet run --project src/Solo.Api --launch-profile httpserves the API and the Blazor WASM client athttp://localhost:5144..Codex/launch.jsonhas asolo-apientry for the browser-panepreview_starttool.
Getting a signed-in browser session (no Google round-trip)
The web client only sends Google ID tokens; the solo_ session-token path is
desktop-only, gated on window.soloDesktop existing at Blazor boot
(GoogleIdentityService caches the check). Recipe:
- Mint a session row (any existing user in
"Users"):TOKEN="solo_$(openssl rand -hex 24)", hash withprintf %s "$TOKEN" | shasum -a 256, INSERT into"AuthSessions"(TokenHash,UserId, timestamps, shortExpiresAt, a recognizableDescriptionfor later cleanup). - Temporarily add the shim as an external file — the CSP in
src/Solo.Api/SecurityHeaders.csisscript-src 'self' 'wasm-unsafe-eval' https://accounts.google.comwith no'unsafe-inline', so an inline<script>is blocked andwindow.soloDesktopis never set. It fails silently: the app just sits on the sign-in page and the only clue is a CSP violation in the browser console.'self'allows a file underwwwroot, so writesrc/Solo.Client/wwwroot/js/dev-desktop.js:if (localStorage.getItem('solo.dev.desktop')) window.soloDesktop = { beginSignIn: () => {} };and reference it fromsrc/Solo.Client/wwwroot/index.htmlbefore the other scripts:<script src="js/dev-desktop.js"></script>(injecting after page load loses the race — the flag must exist at boot). Remove both the file and the index.html line when done; neither may be committed. - In the browser pane, set localStorage on the app origin:
solo.dev.desktop=1,solo.session.token=<TOKEN>,solo.session.user=<JSON of /api/users/me shape>, then reload. - Clean up after: delete the
AuthSessionsrow, remove the localStorage keys, deletejs/dev-desktop.jsand revert index.html, and undo any data edits made while driving.
Driving gotchas
- Coordinate clicks from screenshots don't land reliably (screenshot is 1.25×
the 1280×720 viewport); use
read_pagerefs or element.click()via javascript_tool. - Task cards and the description read-box aren't in the interactive
accessibility tree; click them via
.mud-drop-itemdescendants /.markdown-read. - The drawer overlay is
.mud-overlay; drawer content is inside.mud-drawer. - Direct board/task URL:
/projects/{PROJ}/boards/{BOARD}?task={N}. - Restart the server after editing
index.html— Solo.Api serves the client's build output, so the edit is not picked up live. - HTML5 drag & drop can't be driven with the browser pane's
left_click_drag; CDP mouse events don't start a native drag. Dispatch the events via javascript_tool instead —new DragEvent(type, {bubbles:true, cancelable:true, dataTransfer:new DataTransfer()})fordragstart/dragenter/dragover/drop— which does exercise the full Blazor + API path.
04 同仓库更多 Skills
verify
Build, launch and drive the Solo app locally to verify a change end-to-end.
★ 0
solo-summarize-work
暂无简介
★ 0
solo-recent-work
暂无简介
★ 0
solo-implement-task
暂无简介
★ 0
solo-create-task
暂无简介
★ 0
extension
Build a Solo extension — a self-contained package adding endpoints, data, hooks or client pages. Use when asked to add an extension, plugin, add-on or module, or when deciding whether a feature belongs in core or an extension.
★ 0