@haitang-hub/dsh-3d-director-desk 0.3.13 → 0.3.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/client.js CHANGED
@@ -263,8 +263,12 @@ window.__ModuleLoader__.load({
263
263
  .finally(() => setBusy(false))
264
264
  }
265
265
 
266
+ // 新窗口带 dshWindow=1:页面经同源 BroadcastChannel 跟随本 iframe 的共享设置、Harness 模型与实例。
266
267
  const openExternal = () => {
267
- if (info?.port) window.open(`${bridgeOrigin(info)}/`, '_blank', 'noopener')
268
+ if (!info?.port) return
269
+ const base = `${bridgeOrigin(info)}/${instanceId ? `director/editor?instanceId=${encodeURIComponent(instanceId)}` : ''}`
270
+ const query = `dshWindow=1&dshSettingsProject=${SHARED_PROJECT_ID}`
271
+ window.open(`${base}${base.includes('?') ? '&' : '?'}${query}`, '_blank', 'noopener')
268
272
  }
269
273
 
270
274
  return h('div', { style: SHELL_STYLE },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haitang-hub/dsh-3d-director-desk",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "3D 导演台右侧栏插件:画布与对话并排,Agent 经 director-desk 工具实时编排场景。",
5
5
  "icon": "./icon.png",
6
6
  "type": "module",