Skip to content

✨ Make CLI context handoff production-ready#269

Merged
Robdel12 merged 10 commits into
mainfrom
rd/visual-context-cli-context
May 21, 2026
Merged

✨ Make CLI context handoff production-ready#269
Robdel12 merged 10 commits into
mainfrom
rd/visual-context-cli-context

Conversation

@Robdel12
Copy link
Copy Markdown
Contributor

Summary

This PR makes the CLI a much more natural local context surface for agents and SDK dogfooding.

  • Aligns CLI messaging around reviewed UI context and approved baselines
  • Resets local TDD run context before screenshots so each run reflects the current truth
  • Removes the reporter highlight CSS warning noise
  • Improves local context output so agents can consume build, screenshot, comparison, and review state without guessing
  • Dogfoods the richer context flow through the SDK/e2e projects
  • Preserves cloud build context in CLI runs so local and cloud paths tell the same story
  • Pins workflow actions and keeps the GitHub Actions runtime aligned with Node 24

Testing

  • npm run test:cli -- ... focused CLI/context tests
  • npm run test:e2e -- ... focused SDK/e2e dogfood paths
  • node --test ... focused command/context tests
  • npm run lint
  • npm run build
  • git diff --check

Robdel12 added 7 commits May 20, 2026 22:49
Make build context render the canonical app shape, add local baseline truth parity, and surface agent handoff commands from cloud and TDD runs.
Render syntax tokens with normal spans instead of CSS Custom Highlight API selectors so Lightning CSS can minify the reporter bundle cleanly.
Clear per-run report, detail, current, and diff artifacts before each local TDD run while preserving approved baselines. This keeps CLI dogfood context aligned with the screenshots captured in the current run.
Surface the generated local report URL in workspace context and include reviewed screenshot names in all-green agent handoffs so agents can orient from the current run without switching to JSON first.
Run broader SDK E2E flows through local TDD context and make the Swift E2E assert the agent handoff before cleanup. Also refresh the Ember test-app lockfile metadata corrected by npm install.
Simplify the Swift SDK E2E handoff cleanup and make agent context evidence classification resilient to status-only failed comparisons.
@Robdel12 Robdel12 force-pushed the rd/visual-context-cli-context branch from d7785fa to 13291f4 Compare May 21, 2026 03:53
@vizzly-testing

This comment has been minimized.

@vizzly-testing

This comment has been minimized.

## Summary

This PR layers the secure cloud auth flow on top of the CLI context work
from #269.

- Separates user login from project upload credentials
- Adds `vizzly project link <org>/<project>` for minting project-scoped
upload credentials
- Stores linked project tokens in macOS Keychain when available, with
config-file fallback
- Uses linked project tokens for cloud uploads while keeping user JWTs
for review actions
- Prevents failed project-token requests from consuming user refresh
tokens
- Updates review commands so approval/comment actions require user auth
instead of project tokens
- Adds credential-store coverage for Keychain/file fallback behavior

## Testing

- node --test tests/commands/project.test.js
tests/utils/config-loader.test.js tests/project/core.test.js
tests/project/operations.test.js tests/commands/login.test.js
tests/commands/review.test.js tests/api/client.test.js
- node --test tests/utils/project-link-store.test.js
tests/commands/project.test.js tests/utils/config-loader.test.js
tests/api/client.test.js tests/commands/review.test.js
- npm run lint
- npm run build
- git diff --check
@Robdel12 Robdel12 enabled auto-merge (squash) May 21, 2026 04:03
@vizzly-testing

This comment has been minimized.

@vizzly-testing
Copy link
Copy Markdown

vizzly-testing Bot commented May 21, 2026

Vizzly - Visual Test Results

CLI Reporter - 1 change needs review
Status Count
Passed 18
Changed 1
Auto-approved 18
Changes needing review (1)

fullscreen-viewer · Firefox · 375×667 · 78.5% diff

fullscreen-viewer

Review changes

CLI TUI - 2 changes need review
Status Count
Passed 3
Changed 2
Auto-approved 3
Changes needing review (2)

vizzly-tdd-help · 1202×578 · 27.8% diff

vizzly-tdd-help

vizzly-help · 1202×1430 · 283.8% diff

vizzly-help

Review changes


rd/visual-context-cli-context · ba7fb499

@Robdel12 Robdel12 merged commit 08a716e into main May 21, 2026
28 of 30 checks passed
@Robdel12 Robdel12 deleted the rd/visual-context-cli-context branch May 21, 2026 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant