co-mono/packages/web-ui/src
Mario Zechner 26b774bb04 Add standalone mode for HTML artifact downloads
When downloading HTML artifacts, the generated HTML now works standalone
without requiring the extension runtime.

Changes:
- Add PrepareHtmlOptions config object to SandboxedIframe.prepareHtmlDocument()
- Add isStandalone flag to skip runtime bridge and navigation interceptor
- When isStandalone=true:
  - window.sendRuntimeMessage is NOT defined
  - Navigation interceptor is NOT injected
  - Artifact runtime providers fall back to embedded data
- HtmlArtifact download button now uses isStandalone: true

This fixes the issue where downloaded HTML artifacts would:
- Try to call window.sendRuntimeMessage (which would fail silently)
- Try to postMessage to non-existent parent window
- Not work when opened via file:// protocol

Now downloaded artifacts work completely standalone with embedded data.
2025-10-12 00:39:26 +02:00
..
agent Add ToolRenderResult interface for custom tool rendering 2025-10-11 04:40:42 +02:00
components Add standalone mode for HTML artifact downloads 2025-10-12 00:39:26 +02:00
dialogs Add ollama dependency and dialog backdrop blur 2025-10-08 17:49:56 +02:00
prompts Add ToolRenderResult interface for custom tool rendering 2025-10-11 04:40:42 +02:00
storage Add getAllFromIndex method for efficient sorted queries 2025-10-11 16:21:28 +02:00
tools Add standalone mode for HTML artifact downloads 2025-10-12 00:39:26 +02:00
utils Refactor artifacts renderer and add Console component 2025-10-08 01:54:50 +02:00
app.css Add Anthropic prompt caching, pluggable storage, and CORS proxy support 2025-10-05 23:00:36 +02:00
ChatPanel.ts Expose agent, agentInterface, and artifactsPanel as public in ChatPanel 2025-10-10 11:40:07 +02:00
index.ts Add ToolRenderResult interface for custom tool rendering 2025-10-11 04:40:42 +02:00