fix(canvas): let headless hosts configure asset display routes

This commit is contained in:
2026-11-11 16:04:12 +08:00
parent 0ced171305
commit db6594f473
5 changed files with 25 additions and 8 deletions
+8
View File
@@ -1187,3 +1187,11 @@ shared HTTP transport. `foundry-ai.integration.mjs` additionally requires a real
successful 202 before testing lost admission recovery; a rejected admission is
not evidence for response-loss recovery. Its remote worker fixture replaces
only generation output, not authenticated HTTP, PostgreSQL or service receipts.
`createFoundryAssets` accepts a host `displayURL(id)` callback. Its default is
Endoleap's same-origin `/api/foundry/...` preview route; a Node or other host must
provide its own reachable preview route and arrange authentication there. This
does not change `sourceURL`, canonical asset identity or the authority scope.
Use `assets.authority.read` for original bytes and digest verification: a display
preview may have a different encoding or size. Credentials remain in the host's
fetch/transport, never in document records or generated display URLs.