feat: add dev-server preview system with proxy, file serving, and HTML artifact preview

Adds a full dev-server preview system including:
- Backend proxy/upgrade handler for dev server traffic
- File-serving backend route with CSP headers
- DevServerPreviewButton and HtmlArtifactPanel components
- HTML artifact detection and preview in messages
- File preview improvements with mobile support
- Shared types and settings schema for dev server config
- Comprehensive test coverage for all new code
This commit is contained in:
Chris Scott committed 2026-06-21 14:37:53 -04:00
1 parent 71ba7371bc
commit 9afd5f04d5
57 files changed
+3464 -184

No files matched your search

@@ -53,7 +53,7 @@ describe('ocm-gh-env plugin', () => {
expect(output.env).toEqual({ GH_TOKEN: 'ghp', GITHUB_TOKEN: 'ghp' })
const [url, options] = fetchMock.mock.calls[0]!
expect(url.toString()).toBe('http://localhost:5003/api/internal/git-credentials/gh-env?cwd=%2Frepo')
expect(url.toString()).toBe('http://localhost:5003/api/internal/shell-env?cwd=%2Frepo')
expect(options).toEqual({ headers: { Authorization: 'Bearer secret-token' } })
})