Files
deepseek-harness/packages/client/script-realm-iframe/README.md
T
imccyu 695f640063 Merge pull request #8133 from deepseek-harness/discuss-client-iframe
refactor(client): add client module js realm (with module manifest and style operation)
2026-11-13 10:11:54 +08:00

2.3 KiB

description, kind
description kind
Provide optional same-origin iframe script environments through the Realm registry. package-reference

@deepseek-ai/dsh-client-script-realm-iframe

English | 中文

Summary

Use this provider when framework code explicitly needs a separate browser global environment with direct object references. Loading the plugin registers the iframe factory without allocating a frame. It does not move application plugins or change their default execution environment.

Table of Contents

Use this package

The normal Client plugin injects scriptRealms and registers its factory. A composition must supply the registry; neither package is a default application entry. The provider accepts no configuration.

Understand the implementation

Each request creates a hidden same-origin iframe. expose() installs direct references without replacing existing or reserved globals. execute() loads an external classic script, resolving relative URLs against the provider page. Cancellation or disposal rejects pending executions and removes the frame. Callers retain responsibility for disposing created instances.

Further Exploration

Model Experience

None, as this optional browser infrastructure registers no model-facing tools or prompts.

KV Cache effect

None; this package neither assembles nor sends a provider request.

Known Limitations and Deferred Work

  • Same-origin access is not hostile-code isolation. Native window, document, viewport, timers, and DOM constructors belong to the iframe; no transparent main-page emulation is provided. Module placement, pooling, and Shadow DOM are deferred.

Dev Note

None.