open-design/apps/daemon/tests
VanJay 369d136d19
Add Docker Compose deployment workflow (#65)
* Add Docker Compose deployment workflow

* Address Docker deployment review feedback

Harden publishing inputs and temporary credential handling, and tighten Docker runtime defaults requested by the PR review.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* Fix Docker publish build in CI mode

Set CI=true during the image build so pnpm prune can run non-interactively inside Docker.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* Fix Docker runtime dependency layout

Use pnpm deploy for the daemon package so the runtime image includes production dependencies where Node resolves them.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* Use legacy pnpm deploy in Docker build

Allow pnpm v10 deploy to package the daemon workspace without requiring injected workspace packages.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* Align Docker runtime with Node 24

Use Node 24 for both build and runtime stages and update image verification for the workspace daemon dependency layout.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* Remove legacy OD_HOST Docker binding fallback

Use OD_BIND_HOST as the single daemon bind-host setting for Docker deployment and origin validation.

* Update Docker image verifier for daemon dist runtime

Check the packaged daemon dist entrypoint and allow npm from the Node 24 runtime image while still rejecting build-only tools.

* Allow private LAN browser origins for daemon

* Share daemon origin validation helpers

Move browser origin validation into a shared daemon module so tests exercise the production logic and cover the remaining private LAN edge cases.

* Harden Docker Compose port exposure

Bind the Compose deployment to localhost by default and pass the published port through to the daemon origin checks so host-port overrides remain same-origin.

* Keep deployment hosts out of local-only no-origin checks

Require an actual matching Origin before configured deployment origins can satisfy local-only daemon guards, preventing no-Origin remote clients from bypassing those checks.

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: mrcfps <mrc@powerformer.com>
Co-authored-by: lefarcen <935902669@qq.com>
2026-05-08 11:51:51 +08:00
..
prompts Add live artifacts and Composio connector catalog (#381) 2026-05-05 16:42:11 +08:00
acp.test.ts fix(acp): normalize mcpServers to stdio shape for Kimi/Hermes ACP (#612) 2026-05-06 15:03:51 +08:00
agent-runtime-env.test.ts Add live artifacts and Composio connector catalog (#381) 2026-05-05 16:42:11 +08:00
agents.test.ts fix: expand Codex picker coverage (#757) 2026-05-07 20:17:15 +08:00
app-config.test.ts Add Docker Compose deployment workflow (#65) 2026-05-08 11:51:51 +08:00
app-version.test.ts Optimize packaged mac artifact size (#424) 2026-05-05 10:37:19 +08:00
artifact-manifest.test.ts feat: add markdown and svg artifact renderers (#73) 2026-04-30 20:05:00 +08:00
chat-route.test.ts feat: agent-callable research command and /search (#615) 2026-05-08 10:33:44 +08:00
claude-design-import.test.ts fix(daemon): unbreak Claude Design ZIP import on Node 24 and raise file ceiling (#591) 2026-05-07 10:31:30 +08:00
comment-attachments.test.ts Add Tweaks mode for HTML previews with picker, pod selection, and batched chat attachments (#513) 2026-05-05 21:09:20 +08:00
composio-config.test.ts Add live artifacts and Composio connector catalog (#381) 2026-05-05 16:42:11 +08:00
composio-descriptions.test.ts Add live artifacts and Composio connector catalog (#381) 2026-05-05 16:42:11 +08:00
connection-test.test.ts Improve Windows beta packaging and installer flow (#768) 2026-05-07 16:44:15 +08:00
connectors-routes.test.ts Add live artifacts and Composio connector catalog (#381) 2026-05-05 16:42:11 +08:00
connectors-service.test.ts Add live artifacts and Composio connector catalog (#381) 2026-05-05 16:42:11 +08:00
craft.test.ts feat(craft): add brand-agnostic craft references + Refero-derived lint rules (#225) 2026-05-02 11:00:33 +08:00
critique-authority.test.ts feat: Critique Theater Phase 4 (persistence + transcript + orchestrator) (#481) 2026-05-05 15:50:35 +08:00
critique-boot-reconcile.test.ts feat: Critique Theater Phase 4 (persistence + transcript + orchestrator) (#481) 2026-05-05 15:50:35 +08:00
critique-composer.test.ts feat: Critique Theater Phase 5 (panel prompt template + system composer wiring) 2026-05-07 16:35:04 +08:00
critique-config.test.ts feat: Critique Theater Phase 4 (persistence + transcript + orchestrator) (#481) 2026-05-05 15:50:35 +08:00
critique-interrupt-endpoint.test.ts feat(daemon): add critique interrupt endpoint + project-keyed run registry (Task 6.1) (#819) 2026-05-08 11:29:37 +08:00
critique-lifecycle.test.ts feat: Critique Theater Phase 4 (persistence + transcript + orchestrator) (#481) 2026-05-05 15:50:35 +08:00
critique-orchestrator.test.ts feat: Critique Theater Phase 4 (persistence + transcript + orchestrator) (#481) 2026-05-05 15:50:35 +08:00
critique-panel-prompt.test.ts feat: Critique Theater Phase 5 (panel prompt template + system composer wiring) 2026-05-07 16:35:04 +08:00
critique-persistence.test.ts feat: Critique Theater Phase 4 (persistence + transcript + orchestrator) (#481) 2026-05-05 15:50:35 +08:00
critique-run-registry.test.ts feat(daemon): add critique interrupt endpoint + project-keyed run registry (Task 6.1) (#819) 2026-05-08 11:29:37 +08:00
critique-spawn-wiring.test.ts feat[qoder cli] add Qoder CLI agent support (#626) 2026-05-06 19:54:03 +08:00
critique-transcript.test.ts feat: Critique Theater Phase 4 (persistence + transcript + orchestrator) (#481) 2026-05-05 15:50:35 +08:00
cwd-aliases.test.ts fix(daemon): expose skill resources via cwd-relative aliases (#435) 2026-05-04 17:48:20 +08:00
deploy-routes.test.ts feat: support Cloudflare Pages custom domains (#851) 2026-05-08 11:11:22 +08:00
deploy.test.ts feat: support Cloudflare Pages custom domains (#851) 2026-05-08 11:11:22 +08:00
design-system-showcase.test.ts fix(web): tighten entry-tab layout and design-system showcase color picker (#412) 2026-05-04 13:49:41 +08:00
folder-import-projects.test.ts feat: import existing local folder as project (#597) (#624) 2026-05-07 20:43:31 +08:00
folder-import-route.test.ts feat: import existing local folder as project (#597) (#624) 2026-05-07 20:43:31 +08:00
json-event-stream.test.ts feat(web): add connection tests for execution settings (#507) 2026-05-07 11:25:37 +08:00
legacy-data-migrator.test.ts fix(daemon): add legacy data dir migrator 2026-05-07 15:19:04 +08:00
linked-dirs.test.ts Improve Windows beta packaging and installer flow (#768) 2026-05-07 16:44:15 +08:00
lint-artifact.test.ts feat(craft): add brand-agnostic craft references + Refero-derived lint rules (#225) 2026-05-02 11:00:33 +08:00
live-artifacts-routes.test.ts Add live artifacts and Composio connector catalog (#381) 2026-05-05 16:42:11 +08:00
live-artifacts-schema.test.ts Add live artifacts and Composio connector catalog (#381) 2026-05-05 16:42:11 +08:00
live-artifacts-store.test.ts Add live artifacts and Composio connector catalog (#381) 2026-05-05 16:42:11 +08:00
mcp-daemon-url.test.ts fix(daemon): make MCP install snippet survive daemon port changes (#846) 2026-05-08 10:59:09 +08:00
mcp-extract-refs.test.ts feat(daemon): add od mcp - expose Open Design as an MCP server (#399) 2026-05-04 22:34:17 +08:00
mcp-get-artifact.test.ts feat(daemon): add od mcp - expose Open Design as an MCP server (#399) 2026-05-04 22:34:17 +08:00
mcp-get-file.test.ts feat(daemon): add od mcp - expose Open Design as an MCP server (#399) 2026-05-04 22:34:17 +08:00
mcp-install-info.test.ts Add Docker Compose deployment workflow (#65) 2026-05-08 11:51:51 +08:00
mcp-resolve-project.test.ts feat(daemon): add od mcp - expose Open Design as an MCP server (#399) 2026-05-04 22:34:17 +08:00
media-config.test.ts Improve Windows beta packaging and installer flow (#768) 2026-05-07 16:44:15 +08:00
media-nanobanana.test.ts feat(media): add Nano Banana image provider (#631) 2026-05-06 20:26:31 +08:00
native-folder-dialog.test.ts Fix Windows link code folder dialog (#698) 2026-05-07 17:27:01 +08:00
origin-validation.test.ts Add Docker Compose deployment workflow (#65) 2026-05-08 11:51:51 +08:00
parser.test.ts feat: Critique Theater Phase 4 (persistence + transcript + orchestrator) (#481) 2026-05-05 15:50:35 +08:00
pi-rpc.test.ts feat(daemon): close pi adapter parity gaps 2026-05-07 20:03:46 +08:00
project-archive.test.ts fix(web): make share-menu "Download as .zip" return the actual project tree (#341) 2026-05-03 10:34:33 +08:00
project-classifiers.test.ts fix(daemon): serve .jsx / .tsx with JS-family MIME so browser loaders accept them (#340) 2026-05-03 10:37:14 +08:00
project-status.test.ts Fix chat runs surviving web disconnects (#146) 2026-04-30 20:16:46 +08:00
project-watchers.test.ts fix(daemon): ignore .venv and other large dirs in project file watcher (#531) 2026-05-06 18:07:08 +08:00
proxy-routes.test.ts feat(web): add connection tests for execution settings (#507) 2026-05-07 11:25:37 +08:00
qoder-stream.test.ts feat[qoder cli] add Qoder CLI agent support (#626) 2026-05-06 19:54:03 +08:00
research-cli.test.ts feat: agent-callable research command and /search (#615) 2026-05-08 10:33:44 +08:00
research-contract.test.ts feat: agent-callable research command and /search (#615) 2026-05-08 10:33:44 +08:00
research.test.ts feat: agent-callable research command and /search (#615) 2026-05-08 10:33:44 +08:00
resolve-data-dir.test.ts fix: batch of small bug fixes (#283, #275, #390) (#530) 2026-05-07 11:17:02 +08:00
sanitize-name.test.ts fix(daemon): preserve non-ASCII filenames on multipart upload (#166) 2026-04-30 19:49:43 +08:00
server-cors.test.ts fix(daemon): add CORS header to raw project file endpoint (#140) 2026-05-01 10:39:51 +08:00
server-paths.test.ts Migrate beta release publishing to R2 (#805) 2026-05-07 19:13:52 +08:00
setup.ts Add live artifacts and Composio connector catalog (#381) 2026-05-05 16:42:11 +08:00
skill-asset-rewrite.test.ts feat(skills): open-design-landing rename, kami skills, landing OG (#428) 2026-05-04 19:22:46 +08:00
skill-id-aliases.test.ts feat(skills): open-design-landing rename, kami skills, landing OG (#428) 2026-05-04 19:22:46 +08:00
skills.test.ts feat: agent-callable research command and /search (#615) 2026-05-08 10:33:44 +08:00
sse-response.test.ts Fix chat runs surviving web disconnects (#146) 2026-04-30 20:16:46 +08:00
structured-streams.test.ts test(e2e): gate beta packaged runtime (#637) 2026-05-06 17:44:29 +08:00
system-prompt-template.test.ts feat(daemon): let Codex image projects use built-in imagegen (#622) 2026-05-06 18:28:16 +08:00
tool-tokens.test.ts Add live artifacts and Composio connector catalog (#381) 2026-05-05 16:42:11 +08:00
tools-live-artifacts-cli.test.ts Add live artifacts and Composio connector catalog (#381) 2026-05-05 16:42:11 +08:00
transcript-export.test.ts feat(daemon): export project transcript to disk for downstream consumption (prereq for #450) (#493) 2026-05-06 21:48:39 +08:00
version-route.test.ts fix(daemon): restore startServer Promise contract — return url / { url, server } (#268) 2026-05-02 20:56:06 +08:00