@deepseek-ai/dsh-client-test-runtime 0.2.1-rc.5 → 0.2.2-alpha.3

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/README.i18n.yaml CHANGED
@@ -6,8 +6,8 @@
6
6
  en: 6fd77b7a27000bf1
7
7
  zh: 4a9606aa75285111
8
8
  /deepseek-ai-dsh-client-test-runtime:
9
- en: edb01d7d9545062d
10
- zh: de5e5ac8a9ff2f9b
9
+ en: c8ace9e40ec1a7a0
10
+ zh: d952212ed5d6acb6
11
11
  /deepseek-ai-dsh-client-test-runtime/summary:
12
12
  en: ff69de920b4ab273
13
13
  zh: 225437473535326a
@@ -18,8 +18,8 @@
18
18
  en: 12afbb217bc06678
19
19
  zh: c07f001ed8bb3300
20
20
  /deepseek-ai-dsh-client-test-runtime/use-this-package/setting-up-a-feature-spec:
21
- en: 620906bcbaba405a
22
- zh: b7c34920ba5873d1
21
+ en: 2cc497326fc544d9
22
+ zh: db7f73ab937d7c05
23
23
  /deepseek-ai-dsh-client-test-runtime/use-this-package/local-dom-snapshots:
24
24
  en: 1abbbed6cc4cf57b
25
25
  zh: ab3975178b589653
@@ -30,8 +30,8 @@
30
30
  en: 1442fc215c8128e8
31
31
  zh: 8439861b08e46ea2
32
32
  /deepseek-ai-dsh-client-test-runtime/use-this-package/roster-and-startup-behavior:
33
- en: 95c5c2121547bd60
34
- zh: 4dfb089ba7aac04d
33
+ en: 4dc5a5be6d89f43c
34
+ zh: df2d67460aa863d9
35
35
  /deepseek-ai-dsh-client-test-runtime/use-this-package/when-to-use-it:
36
36
  en: eb2f9bc90acb7a62
37
37
  zh: cb59a2134bc83106
@@ -45,8 +45,8 @@
45
45
  en: 3264640018c1a0e8
46
46
  zh: d777e0b8ad8b602f
47
47
  /deepseek-ai-dsh-client-test-runtime/understand-the-implementation/source-map:
48
- en: e3ef8397426d484b
49
- zh: 23f735f4bda1534a
48
+ en: f9d1e576b34bd2d6
49
+ zh: 73bd7c2d57852a9f
50
50
  /deepseek-ai-dsh-client-test-runtime/understand-the-implementation/lifecycle:
51
51
  en: b42779f364504719
52
52
  zh: a10bad7ea1161388
package/README.md CHANGED
@@ -7,6 +7,8 @@ kind: "package-library"
7
7
 
8
8
  English | [中文](README.zh.md)
9
9
 
10
+ Direct component fixtures use `contextMenuHook(open)` to supply the global menu hook with production gesture handling. An unstubbed activation throws; Slot composition tests mount the menu plugin itself.
11
+
10
12
  ## Summary
11
13
 
12
14
  `SlotTestRuntime.create()` lets Vitest suites drive production slots, stores, typed Session and Workspace fixtures, and local DOM assertions in jsdom. For plugin activation, reload, reconnect, and cleanup tests, `createClientTest` starts the web profile's bundle roster with endpoint-named Remote mocks, without a business Host. Missing services and unstubbed calls fail explicitly. The whole-client fixture owns startup and disposal; the local runtime provides idempotent disposal. Use this package through `devDependencies` for client tests; it is not a product plugin.
@@ -42,9 +44,9 @@ expect(view.container).toMatchSnapshot()
42
44
  await runtime.dispose()
43
45
  ```
44
46
 
45
- `mount` prechecks required services and fails loud when one is missing — `provide(name, value)` supplies an extra service first. The runtime provides a `fileUpload` stub that rejects every call until a suite replaces `runtime.fileUpload.upload`. `storeOf(key, scopeKey)` returns the live store instance the renderer hands a slot's component for identity and action-driven-write assertions.
47
+ `mount` prechecks required services and fails loud when one is missing — `provide(name, value)` supplies an extra service first. The runtime provides a `fileUpload` stub whose `upload` and `uploadImage` reject every call until a suite replaces them. `storeOf(key, scopeKey)` returns the live store instance the renderer hands a slot's component for identity and action-driven-write assertions.
46
48
 
47
- The runtime installs `allowAllAccessPlugin` before ui-session: its `remoteAccess` service answers true for every resource, so every access Hook allows every action. Hand-built component props spread `...allowAllAccess` to receive the same Hooks; a spec of a refused path overrides one Hook.
49
+ The runtime installs `allowAllAccessPlugin` before ui-session: its `remoteAccess` service, a `StaticRemoteAccess`, answers true for every resource, so every access Hook allows every action and every `whenAccess` callback runs at once. `TestClientOptions.access` fixes the answer per action instead, through `staticAccessPlugin(allows)`. Hand-built component props spread `...allowAllAccess` to receive the same Hooks; a spec of a refused path overrides one Hook or provides `new StaticRemoteAccess(ctx, allows)`.
48
50
 
49
51
  The optional render options select a keyed entry with `entryKey` or a list item with `only`; `view.update(owner)` retains that selection. `runtime.panelInfo` supplies the default `usePanelInfo` source with no global panel selected. Release it with `releasePanelInfoSource()` before mounting the production Layout owner. `dispose()` releases both default Workspace and panel-info root sources; early release is idempotent and does not remove replacement owners.
50
52
 
@@ -93,7 +95,7 @@ The [generic Remote proxy](../remote-mock/README.md#remote-proxy) supports every
93
95
 
94
96
  ### Roster and startup behavior
95
97
 
96
- `webApp` is the `web` profile's browser roster, read when the assembly entry is first imported from its bundles (`dsh-base`, then `dsh-web-app`) as the launcher composes them, except that a patch matching nothing throws here where the launcher warns: each bundle's `dsh.bundle.patch` list is parsed with the include plugin's YAML dialect and composed by its `applyEntryPatches`, and every enabled row whose package declares `dsh.client.platform === 'web'` becomes a row carrying that declaration's `inject` and `immediately`; `bundleRoster(bundles, anchor, disabledContext)` accepts an explicit Loader evaluation scope for conditional `disabled` flags; without one, browser expressions are rejected. `webApp` supplies the Web profile name, not business Host services. Nothing is copied from the bundles, so a bundle change is visible at the next test run. `webApp.closure(names)` keeps the named rows plus everything they inject, transitively (the rows a spec needs to boot those plugins as the bundle composes them), `webApp.pick(names)` and `webApp.without(names)` cut it down by hand, all three throw on unknown names, and `ClientRoster.of(rows)` builds one inline. `remoteDefaultResponses` holds default responses for exactly the Remote endpoints the roster calls while booting with no sessions, no workspaces, and default settings; a spec layers its own `RemoteTable` on top with `mock.load(table)`, and any call without a rule fails the test at `dispose()` through `mock.assertNoUnmatched()`. `mount` requires a roster that provides `uiRenderer`; `start` fails loud otherwise instead of returning an empty container. `client.connection` is the roster's Connection service (no `Context` augmentation declares it), and `connectTimeoutMs` bounds the readiness wait, whose failure message lists the mock log. `reload(name)` rebuilds one Loader entry through the shared Client Modules helper (registry-first teardown, then `entry.refresh()`); each client retains its own module system and instance-bound Connection replacement, so starts and reloads can overlap without changing a page global. `unload(name)` removes an entry and waits for plugin cleanup; `flush()` settles React inside `act`. jsdom implements neither `EventSource` (client-hmr opens one at apply) nor `ResizeObserver` nor the `document.fonts` event target (layout components observe size and font loading at mount), so `start` reference-counts inert stubs for whichever global is absent and `dispose` removes exactly those — a jsdom gap, not a client identity channel. The `@deepseek-ai/dsh-api-remotes` row is dropped from every roster: its generated Remote clients exist only in built `lib/`, and `remote.<ns>` is what the tier replaces anyway. The `@deepseek-ai/dsh-api-remote-access` row, which mounts its own generated contribution, is dropped too, and `start` installs `allowAllAccessPlugin` in its place; a plan `provide` entry for either row is refused. `start` instead provides one contract-free proxy per `remote.<ns>` service the roster injects (plus the namespaces the mock has rules for at that point; a namespace first registered later has no proxy); `ctx.remote.<ns>.<method>(...args)` becomes a call on the endpoint `<ns>/<method>` carrying the positional args, a stream when the mock registered a `stream()` script and a unary call otherwise, with the generated client's outcome folding (`gateway/internal` for carrier throws, `gateway/cancelled` on abort). An endpoint without a rule is still dispatched, so the mock logs it and `dispose()` fails the test.
98
+ `webApp` is the `web` profile's browser roster, read when the assembly entry is first imported from its bundles (`dsh-base`, then `dsh-web-app`) as the launcher composes them, except that a patch matching nothing throws here where the launcher warns: each bundle's `dsh.bundle.patch` list is parsed with the include plugin's YAML dialect and composed by its `applyEntryPatches`, and every enabled row whose package declares `dsh.client.platform === 'web'` becomes a row carrying that declaration's `inject` and `immediately`; `bundleRoster(bundles, anchor, disabledContext)` accepts an explicit Loader evaluation scope for conditional `disabled` flags; without one, browser expressions are rejected. Both bundle and browser-entry lookup prefer an anchor manifest with the requested package name over dependency directories, including self-referencing bundles. `webApp` supplies the Web profile name, not business Host services. Nothing is copied from the bundles, so a bundle change is visible at the next test run. `webApp.closure(names)` keeps the named rows plus everything they inject, transitively (the rows a spec needs to boot those plugins as the bundle composes them), `webApp.pick(names)` and `webApp.without(names)` cut it down by hand, all three throw on unknown names, and `ClientRoster.of(rows)` builds one inline. `remoteDefaultResponses` holds default responses for exactly the Remote endpoints the roster calls while booting with no sessions, no workspaces, and default settings; a spec layers its own `RemoteTable` on top with `mock.load(table)`, and any call without a rule fails the test at `dispose()` through `mock.assertNoUnmatched()`. `mount` requires a roster that provides `uiRenderer`; `start` fails loud otherwise instead of returning an empty container. `client.connection` is the roster's Connection service (no `Context` augmentation declares it), and `connectTimeoutMs` bounds the readiness wait, whose failure message lists the mock log. `reload(name)` rebuilds one Loader entry through the shared Client Modules helper (registry-first teardown, then `entry.refresh()`); each client retains its own module system and instance-bound Connection replacement, so starts and reloads can overlap without changing a page global. `unload(name)` removes an entry and waits for plugin cleanup; `flush()` settles React inside `act`. jsdom implements neither `EventSource` (client-hmr opens one at apply) nor `ResizeObserver`, `matchMedia`, or the `document.fonts` event target (layout components observe size, media queries, and font loading at mount), so `start` reference-counts inert stubs for whichever global is absent and `dispose` removes exactly those — a jsdom gap, not a client identity channel. The `@deepseek-ai/dsh-api-remotes` row is dropped from every roster: its generated Remote clients exist only in built `lib/`, and `remote.<ns>` is what the tier replaces anyway. The `@deepseek-ai/dsh-api-remote-access` row, which mounts its own generated contribution, is dropped too, and `start` installs `allowAllAccessPlugin`, or `staticAccessPlugin(options.access)`, in its place; a plan `provide` entry for either row is refused. `start` instead provides one contract-free proxy per `remote.<ns>` service the roster injects (plus the namespaces the mock has rules for at that point; a namespace first registered later has no proxy); `ctx.remote.<ns>.<method>(...args)` becomes a call on the endpoint `<ns>/<method>` carrying the positional args, a stream when the mock registered a `stream()` script and a unary call otherwise, with the generated client's outcome folding (`gateway/internal` for carrier throws, `gateway/cancelled` on abort). An endpoint without a rule is still dispatched, so the mock logs it and `dispose()` fails the test.
97
99
 
98
100
  ### When to use it
99
101
 
@@ -127,7 +129,7 @@ The bench copies no production logic: it mounts the production `SlotRegistry`, p
127
129
  | [`src/sessions.ts`](src/sessions.ts) + [`src/workspaces.ts`](src/workspaces.ts) | `ISessions`/`IWorkspaces` test doubles and `FixtureSession` behavior stubs |
128
130
  | [`src/fixtures.ts`](src/fixtures.ts) | Plain fixture builders: conversation snapshots, workspace list state |
129
131
  | [`src/snapshot.ts`](src/snapshot.ts) | DOM snapshot serializer (class-hash folding, `<svg>` fingerprint) |
130
- | [`src/access.ts`](src/access.ts) | `allowAllAccess` props and `allowAllAccessPlugin`, the allow-all stand-in for the remote-access Client row |
132
+ | [`src/access.ts`](src/access.ts) | `allowAllAccess` props, `StaticRemoteAccess`, `staticAccessPlugin`, and `allowAllAccessPlugin`, the fixed-answer stand-ins for the remote-access Client row |
131
133
  | [`src/remote.ts`](src/remote.ts) | `TestRemote` double for host RPC, `RemoteError` value re-export |
132
134
  | [`src/translate.ts`](src/translate.ts) + [`src/locale-env.ts`](src/locale-env.ts) | Translation and pinned-browser-language test helpers |
133
135
  | [`src/config-form.ts`](src/config-form.ts) | `stubConfigForm` with test-driven publications and write spies |
package/README.zh.md CHANGED
@@ -7,6 +7,8 @@ kind: "package-library"
7
7
 
8
8
  [English](README.md) | 中文
9
9
 
10
+ 直接挂载组件的夹具使用 `contextMenuHook(open)` 提供全局菜单 hook,并复用生产手势处理。未提供行为的触发会抛错;Slot 组合测试挂载菜单插件本身。
11
+
10
12
  ## 概述
11
13
 
12
14
  `SlotTestRuntime.create()` 让 Vitest 套件在 jsdom 中驱动生产 slot、store、带类型的 Session 与 Workspace fixture,并对局部 DOM 断言。面向插件激活、重载、重连与清理的测试,`createClientTest` 使用具名端点 Remote mock 启动 web profile 的 bundle roster,无需业务 Host。缺失服务与未打桩调用会明确失败。整机 fixture 拥有启动和销毁,局部 runtime 提供幂等销毁。通过 `devDependencies` 将本包用于客户端测试;它不是产品插件。
@@ -42,9 +44,9 @@ expect(view.container).toMatchSnapshot()
42
44
  await runtime.dispose()
43
45
  ```
44
46
 
45
- `mount` 会预检必需服务,缺失时自明报错——先用 `provide(name, value)` 提供额外服务。运行时提供的 `fileUpload` 替身会拒绝每次调用,直到测试套件替换 `runtime.fileUpload.upload`。`storeOf(key, scopeKey)` 返回渲染器交给 slot 组件的实时存储实例,用于身份与动作驱动写入断言。
47
+ `mount` 会预检必需服务,缺失时自明报错——先用 `provide(name, value)` 提供额外服务。运行时提供的 `fileUpload` 替身,其 `upload` 与 `uploadImage` 会拒绝每次调用,直到测试套件替换它们。`storeOf(key, scopeKey)` 返回渲染器交给 slot 组件的实时存储实例,用于身份与动作驱动写入断言。
46
48
 
47
- 运行时在 ui-session 之前安装 `allowAllAccessPlugin`:它的 `remoteAccess` 服务对每个资源都回答 true,因此每个访问 Hook 都允许每个 action。手工构造的组件 props 展开 `...allowAllAccess` 以获得同样的 Hook;测试被拒绝路径的 spec 覆盖其中一个 Hook。
49
+ 运行时在 ui-session 之前安装 `allowAllAccessPlugin`:它的 `remoteAccess` 服务是一个 `StaticRemoteAccess`,对每个资源都回答 true,因此每个访问 Hook 都允许每个 action,每个 `whenAccess` 回调都立即执行。`TestClientOptions.access` 改为按 action 固定答案,经由 `staticAccessPlugin(allows)`。手工构造的组件 props 展开 `...allowAllAccess` 以获得同样的 Hook;测试被拒绝路径的 spec 覆盖其中一个 Hook,或提供 `new StaticRemoteAccess(ctx, allows)`。
48
50
 
49
51
  可选渲染参数通过 `entryKey` 选择 keyed 条目,或通过 `only` 选择 list 条目;`view.update(owner)` 保留该选择。`runtime.panelInfo` 提供默认的 `usePanelInfo` 数据源,初始不选中全局面板。挂载生产 Layout 所有者之前,先调用 `releasePanelInfoSource()` 释放该数据源。`dispose()` 同时释放默认的工作区与面板信息根数据源;提前释放是幂等的,不会移除替代它们的所有者。
50
52
 
@@ -93,7 +95,7 @@ test('registers into the sidebar', async ({ remote, start }) => {
93
95
 
94
96
  ### Roster 与启动行为
95
97
 
96
- `webApp` 是 `web` profile 的浏览器 roster,首次 import 装配入口时从它的 bundle(先 `dsh-base`、再 `dsh-web-app`)按启动器的方式现读,只是匹配不到任何行的补丁在这里抛错、启动器只警告:每个 bundle 的 `dsh.bundle.patch` 列表用 include 插件的 YAML 方言解析、用它的 `applyEntryPatches` 合成,每个未禁用且其包声明 `dsh.client.platform === 'web'` 的行成为一行,带上该声明的 `inject` 与 `immediately`;`bundleRoster(bundles, anchor, disabledContext)` 接受显式 Loader 求值作用域来处理条件 `disabled` 标记;未提供作用域时拒绝浏览器表达式。`webApp` 仅提供 Web profile 名称,不提供业务 Host 服务。没有任何东西从 bundle 拷贝出来,bundle 一改下次跑测试就能看见。`webApp.closure(names)` 保留点名的行及其传递注入的全部行(即按 bundle 组合方式起这些插件所需的行),`webApp.pick(names)` 与 `webApp.without(names)` 手工裁剪,三者都对未知名字抛错,`ClientRoster.of(rows)` 内联构造一份。`remoteDefaultResponses` 是 roster 在没有 session、没有 workspace、默认设置下启动时恰好会打的那些 Remote 端点的默认响应;测试用 `mock.load(table)` 在其上叠加自己的 `RemoteTable`,任何没有规则的调用都会在 `dispose()` 时经 `mock.assertNoUnmatched()` 让测试失败。`mount` 要求 roster 提供 `uiRenderer`;否则 `start` 响亮失败而不是返回一个空容器。`client.connection` 是 roster 的 Connection 服务(没有任何 `Context` 增强声明它),`connectTimeoutMs` 限定等就绪的时长,超时消息列出 mock log。`reload(name)` 通过共享的 Client Modules 辅助函数重建一个 Loader entry(先拆 registry,再 `entry.refresh()`);每个客户端都保留自己的模块系统和绑定实例的 Connection 替换,因此启动与重载可以重叠而无需改写页面全局变量。`unload(name)` 移除 entry 并等待插件清理完成,`flush()` 在 `act` 内让 React 落定。jsdom 既没有 `EventSource`(client-hmr 在 apply 时打开一个)也没有 `ResizeObserver` 和 `document.fonts` 事件目标(布局组件挂载时观察尺寸与字体加载),所以 `start` 对缺失的全局惰性桩做引用计数,`dispose` 只移除它装的那些——这是 jsdom 的缺口,不是客户端身份通道。每个 roster 里的 `@deepseek-ai/dsh-api-remotes` 行都会被去掉:它生成的 Remote 客户端只存在于构建后的 `lib/`,而 `remote.<ns>` 正是本档要替掉的东西。自行挂载其生成 contribution 的 `@deepseek-ai/dsh-api-remote-access` 行同样会被去掉,`start` 改为安装 `allowAllAccessPlugin`;计划中为这两行之一提供的 `provide` 项会被拒绝。`start` 改为给 roster 注入的每个 `remote.<ns>` 服务(加上此刻 mock 登记过规则的命名空间;之后才首次登记的命名空间没有代理)提供一个无契约代理;`ctx.remote.<ns>.<method>(...args)` 变成对端点 `<ns>/<method>` 的调用,携带位置参数,mock 登记了 `stream()` 脚本的走流、否则走一元,并沿用生成客户端的结果折叠(载体抛错折成 `gateway/internal`,中止折成 `gateway/cancelled`)。没有规则的端点照样发出,所以 mock 会记下它、`dispose()` 让测试失败。
98
+ `webApp` 是 `web` profile 的浏览器 roster,首次 import 装配入口时从它的 bundle(先 `dsh-base`、再 `dsh-web-app`)按启动器的方式现读,只是匹配不到任何行的补丁在这里抛错、启动器只警告:每个 bundle 的 `dsh.bundle.patch` 列表用 include 插件的 YAML 方言解析、用它的 `applyEntryPatches` 合成,每个未禁用且其包声明 `dsh.client.platform === 'web'` 的行成为一行,带上该声明的 `inject` 与 `immediately`;`bundleRoster(bundles, anchor, disabledContext)` 接受显式 Loader 求值作用域来处理条件 `disabled` 标记;未提供作用域时拒绝浏览器表达式。查找 bundle 和浏览器入口时,优先使用包名匹配的 anchor 清单,再搜索依赖目录;这也适用于注册自身浏览器入口的 bundle。`webApp` 仅提供 Web profile 名称,不提供业务 Host 服务。没有任何东西从 bundle 拷贝出来,bundle 一改下次跑测试就能看见。`webApp.closure(names)` 保留点名的行及其传递注入的全部行(即按 bundle 组合方式起这些插件所需的行),`webApp.pick(names)` 与 `webApp.without(names)` 手工裁剪,三者都对未知名字抛错,`ClientRoster.of(rows)` 内联构造一份。`remoteDefaultResponses` 是 roster 在没有 session、没有 workspace、默认设置下启动时恰好会打的那些 Remote 端点的默认响应;测试用 `mock.load(table)` 在其上叠加自己的 `RemoteTable`,任何没有规则的调用都会在 `dispose()` 时经 `mock.assertNoUnmatched()` 让测试失败。`mount` 要求 roster 提供 `uiRenderer`;否则 `start` 响亮失败而不是返回一个空容器。`client.connection` 是 roster 的 Connection 服务(没有任何 `Context` 增强声明它),`connectTimeoutMs` 限定等就绪的时长,超时消息列出 mock log。`reload(name)` 通过共享的 Client Modules 辅助函数重建一个 Loader entry(先拆 registry,再 `entry.refresh()`);每个客户端都保留自己的模块系统和绑定实例的 Connection 替换,因此启动与重载可以重叠而无需改写页面全局变量。`unload(name)` 移除 entry 并等待插件清理完成,`flush()` 在 `act` 内让 React 落定。jsdom 既没有 `EventSource`(client-hmr 在 apply 时打开一个)也没有 `ResizeObserver`、`matchMedia` 和 `document.fonts` 事件目标(布局组件挂载时观察尺寸、媒体查询与字体加载),所以 `start` 对缺失的全局惰性桩做引用计数,`dispose` 只移除它装的那些——这是 jsdom 的缺口,不是客户端身份通道。每个 roster 里的 `@deepseek-ai/dsh-api-remotes` 行都会被去掉:它生成的 Remote 客户端只存在于构建后的 `lib/`,而 `remote.<ns>` 正是本档要替掉的东西。自行挂载其生成 contribution 的 `@deepseek-ai/dsh-api-remote-access` 行同样会被去掉,`start` 改为安装 `allowAllAccessPlugin` 或 `staticAccessPlugin(options.access)`;计划中为这两行之一提供的 `provide` 项会被拒绝。`start` 改为给 roster 注入的每个 `remote.<ns>` 服务(加上此刻 mock 登记过规则的命名空间;之后才首次登记的命名空间没有代理)提供一个无契约代理;`ctx.remote.<ns>.<method>(...args)` 变成对端点 `<ns>/<method>` 的调用,携带位置参数,mock 登记了 `stream()` 脚本的走流、否则走一元,并沿用生成客户端的结果折叠(载体抛错折成 `gateway/internal`,中止折成 `gateway/cancelled`)。没有规则的端点照样发出,所以 mock 会记下它、`dispose()` 让测试失败。
97
99
 
98
100
  ### 何时使用
99
101
 
@@ -127,7 +129,7 @@ test('registers into the sidebar', async ({ remote, start }) => {
127
129
  | [`src/sessions.ts`](src/sessions.ts) + [`src/workspaces.ts`](src/workspaces.ts) | `ISessions`/`IWorkspaces` 测试替身与 `FixtureSession` 行为桩 |
128
130
  | [`src/fixtures.ts`](src/fixtures.ts) | 普通 fixture 构造器:会话快照、workspace 列表状态 |
129
131
  | [`src/snapshot.ts`](src/snapshot.ts) | DOM 快照序列化器(类名哈希折叠、`<svg>` 指纹) |
130
- | [`src/access.ts`](src/access.ts) | `allowAllAccess` props 与 `allowAllAccessPlugin`:remote-access Client 行的全允许替身 |
132
+ | [`src/access.ts`](src/access.ts) | `allowAllAccess` props、`StaticRemoteAccess`、`staticAccessPlugin` 与 `allowAllAccessPlugin`:remote-access Client 行的固定答案替身 |
131
133
  | [`src/remote.ts`](src/remote.ts) | 用于 host RPC 的 `TestRemote` 替身、`RemoteError` 值转出 |
132
134
  | [`src/translate.ts`](src/translate.ts) + [`src/locale-env.ts`](src/locale-env.ts) | 翻译与固定浏览器语言测试辅助 |
133
135
  | [`src/config-form.ts`](src/config-form.ts) | 带测试驱动发布与写入 spy 的 `stubConfigForm` |
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Context, Inject } from "@deepseek-ai/cordis";
1
+ import { Context, Inject, Service } from "@deepseek-ai/cordis";
2
2
  import { Fragment, createElement, useSyncExternalStore } from "react";
3
3
  import { act, render, within } from "@testing-library/react";
4
4
  import { SlotRegistry } from "@deepseek-ai/dsh-client-ui-renderer/client";
@@ -12,6 +12,7 @@ import { MutableSessionEventSource, SESSION_SEARCH_RESULT_LIMIT, createScope, sc
12
12
  import { scopeIdentityOf } from "@deepseek-ai/dsh-api-session-controller/src/client/scope.ts";
13
13
  import { EMPTY_CONVERSATION_SNAPSHOT } from "@deepseek-ai/dsh-client-ui-conversation/client";
14
14
  import { EMPTY_CHAT_SNAPSHOT } from "@deepseek-ai/dsh-client-ui-chat/client";
15
+ import { createContextMenuBindings } from "@deepseek-ai/dsh-client-ui-context-menu/src/client/trigger.ts";
15
16
  //#region lib/types/snapshot.js
16
17
  /**
17
18
  * DOM snapshot hygiene: a vitest snapshot serializer that keeps `.snap`
@@ -328,10 +329,10 @@ var FixtureSession = class {
328
329
  submissionSeq = 0;
329
330
  /**
330
331
  * Fail-loud stub; supply `readAttachment` on the fixture's session face to exercise it.
331
- * @param _attachmentId - opaque durable attachment id.
332
+ * @param _attachment - complete durable image reference.
332
333
  * @returns never — always throws.
333
334
  */
334
- readAttachment(_attachmentId) {
335
+ readAttachment(_attachment) {
335
336
  throw new Error(`test session "${this.sessionId}": readAttachment is not stubbed — supply it on the fixture's session face`);
336
337
  }
337
338
  /**
@@ -1177,14 +1178,15 @@ var TestWorkspaces = class {
1177
1178
  //#endregion
1178
1179
  //#region lib/types/access.js
1179
1180
  /**
1180
- * Allow-all access for client specs. Production pages receive the
1181
+ * Static access for client specs. Production pages receive the
1181
1182
  * `remoteAccess` Client service and the global-resource `useRemoteAccess` Hook
1182
1183
  * from the remote-access Client plugin, and the Session and Workspace access
1183
1184
  * Hooks (Session-scope `useAccess`, `useSessionAccess`, `useWorkspaceAccess`)
1184
1185
  * from ui-session and ui-workspace over that service. The test runtimes
1185
1186
  * install an allow-all service and `useRemoteAccess` Hook instead, and
1186
1187
  * hand-built component props spread {@link allowAllAccess}; a spec of a
1187
- * refused path overrides one Hook.
1188
+ * refused path overrides one Hook or provides a {@link StaticRemoteAccess}
1189
+ * that refuses the action.
1188
1190
  * @module @deepseek-ai/dsh-client-test-runtime/src/access
1189
1191
  */
1190
1192
  /** Access Hooks that allow every action on every resource, for hand-built component props. */
@@ -1198,24 +1200,60 @@ const ALLOWED = {
1198
1200
  getSnapshot: () => true,
1199
1201
  subscribe: () => () => {}
1200
1202
  };
1201
- const allowed = () => ALLOWED;
1202
- /** The `remoteAccess` Client service answering true for every resource. */
1203
- const allowAllRemoteAccess = { source: allowed };
1203
+ const REFUSED = {
1204
+ getSnapshot: () => false,
1205
+ subscribe: () => () => {}
1206
+ };
1204
1207
  /**
1205
- * Plugin standing in for the remote-access Client row: it provides an
1206
- * allow-all `remoteAccess` service, so ui-session and ui-workspace publish
1207
- * their resource Hooks over it, and the allow-all `useRemoteAccess` Hook on
1208
- * the global resource.
1208
+ * A `remoteAccess` Client service whose answers never change: `allows`
1209
+ * decides each action on every resource once. `whenAccess` installs an
1210
+ * allowed action's effects in the caller's fiber at once and never installs a
1211
+ * refused action's effects.
1209
1212
  */
1210
- const allowAllAccessPlugin = {
1211
- name: "client-test-runtime:allow-all-access",
1212
- inject: ["slots"],
1213
- /** @param ctx - plugin Context with the Slot registry injected. */
1214
- apply(ctx) {
1215
- ctx.provide("remoteAccess", allowAllRemoteAccess);
1216
- ctx.slots.provideRoot({ keyedHooks: { remoteAccess: allowed } });
1213
+ var StaticRemoteAccess = class extends Service {
1214
+ allows;
1215
+ /**
1216
+ * @param ctx - Context the service is provided on.
1217
+ * @param allows - the fixed answer for each action; allows everything when omitted.
1218
+ */
1219
+ constructor(ctx, allows = () => true) {
1220
+ super(ctx, "remoteAccess");
1221
+ this.allows = allows;
1222
+ }
1223
+ source(_kind, _id, action) {
1224
+ return this.allows(action) ? ALLOWED : REFUSED;
1225
+ }
1226
+ whenAccess(action, callback) {
1227
+ if (!this.allows(action)) return () => {};
1228
+ const dispose = this.ctx.effect(callback, `remoteAccess.whenAccess(${JSON.stringify(action)})`);
1229
+ return () => {
1230
+ dispose();
1231
+ };
1232
+ }
1233
+ whenResourceAccess(_kind, _id, action, callback) {
1234
+ return this.whenAccess(action, callback);
1217
1235
  }
1218
1236
  };
1237
+ /**
1238
+ * Plugin standing in for the remote-access Client row with fixed answers: it
1239
+ * provides a {@link StaticRemoteAccess}, so ui-session and ui-workspace
1240
+ * publish their resource Hooks over it, and the matching `useRemoteAccess`
1241
+ * Hook on the global resource.
1242
+ * @param allows - the fixed answer for each action on every resource.
1243
+ * @returns the plugin.
1244
+ */
1245
+ function staticAccessPlugin(allows) {
1246
+ return {
1247
+ name: "client-test-runtime:static-access",
1248
+ inject: ["slots"],
1249
+ apply(ctx) {
1250
+ new StaticRemoteAccess(ctx, allows);
1251
+ ctx.slots.provideRoot({ keyedHooks: { remoteAccess: (action) => allows(action) ? ALLOWED : REFUSED } });
1252
+ }
1253
+ };
1254
+ }
1255
+ /** {@link staticAccessPlugin} allowing every action on every resource. */
1256
+ const allowAllAccessPlugin = staticAccessPlugin(() => true);
1219
1257
  //#endregion
1220
1258
  //#region lib/types/config-form.js
1221
1259
  /** Test doubles for settings transport. */
@@ -1264,6 +1302,19 @@ function stubConfigForm() {
1264
1302
  };
1265
1303
  }
1266
1304
  //#endregion
1305
+ //#region lib/types/context-menu.js
1306
+ /**
1307
+ * Supply the global hook to a component mounted outside the Slot renderer.
1308
+ * @param open - Observe captured targets; an unstubbed activation throws.
1309
+ * @returns Stable hook using the production pointer and keyboard handlers.
1310
+ */
1311
+ function contextMenuHook(open = () => {
1312
+ throw new Error("Unexpected context menu");
1313
+ }) {
1314
+ const bindings = createContextMenuBindings(open, () => true);
1315
+ return () => bindings;
1316
+ }
1317
+ //#endregion
1267
1318
  //#region lib/types/translate.js
1268
1319
  /**
1269
1320
  * Test double of the locale lookup chain: a translate stub over plain
@@ -1481,7 +1532,10 @@ var SlotTestRuntime = class SlotTestRuntime {
1481
1532
  this.sessions = new TestSessions(this.stabilizer, ctx);
1482
1533
  this.remote = new TestRemote(ctx);
1483
1534
  this.workspaces = new TestWorkspaces(this.stabilizer);
1484
- this.fileUpload = { upload: () => Promise.reject(/* @__PURE__ */ new Error("client test runtime: file upload is not stubbed")) };
1535
+ this.fileUpload = {
1536
+ upload: () => Promise.reject(/* @__PURE__ */ new Error("client test runtime: file upload is not stubbed")),
1537
+ uploadImage: () => Promise.reject(/* @__PURE__ */ new Error("client test runtime: image upload is not stubbed"))
1538
+ };
1485
1539
  ctx.provide("sessions", this.sessions);
1486
1540
  ctx.provide("workspaces", this.workspaces);
1487
1541
  ctx.provide("fileUpload", this.fileUpload);
@@ -1674,4 +1728,4 @@ var SlotTestRuntime = class SlotTestRuntime {
1674
1728
  }
1675
1729
  };
1676
1730
  //#endregion
1677
- export { FixtureSession, RemoteError, SlotTestRuntime, TestRemote, TestRoot, TestSessions, TestWorkspaces, allowAllAccess, allowAllAccessPlugin, bindSnapshotSelector, chatSnapshot, conversationSnapshot, createSlotRenderer, domSnapshotSerializer, makeTranslate, registerDomSnapshotSerializer, sessionSnapshot, stubConfigForm, usePinnedBrowserLanguages, workspaceSnapshot };
1731
+ export { FixtureSession, RemoteError, SlotTestRuntime, StaticRemoteAccess, TestRemote, TestRoot, TestSessions, TestWorkspaces, allowAllAccess, allowAllAccessPlugin, bindSnapshotSelector, chatSnapshot, contextMenuHook, conversationSnapshot, createSlotRenderer, domSnapshotSerializer, makeTranslate, registerDomSnapshotSerializer, sessionSnapshot, staticAccessPlugin, stubConfigForm, usePinnedBrowserLanguages, workspaceSnapshot };
@@ -1,30 +1,54 @@
1
1
  /**
2
- * Allow-all access for client specs. Production pages receive the
2
+ * Static access for client specs. Production pages receive the
3
3
  * `remoteAccess` Client service and the global-resource `useRemoteAccess` Hook
4
4
  * from the remote-access Client plugin, and the Session and Workspace access
5
5
  * Hooks (Session-scope `useAccess`, `useSessionAccess`, `useWorkspaceAccess`)
6
6
  * from ui-session and ui-workspace over that service. The test runtimes
7
7
  * install an allow-all service and `useRemoteAccess` Hook instead, and
8
8
  * hand-built component props spread {@link allowAllAccess}; a spec of a
9
- * refused path overrides one Hook.
9
+ * refused path overrides one Hook or provides a {@link StaticRemoteAccess}
10
+ * that refuses the action.
10
11
  * @module @deepseek-ai/dsh-client-test-runtime/src/access
11
12
  */
12
- import type { Context } from '@deepseek-ai/cordis';
13
- import type { GlobalStandardProps, SessionStandardProps } from '@deepseek-ai/dsh-client-ui-slots';
13
+ import { Service, type Context } from '@deepseek-ai/cordis';
14
+ import type { AccessEffect, ClientRemoteAccess, RemoteEndpoint, TypertResourceKind } from '@deepseek-ai/dsh-api-remote-access/client';
15
+ import type { GlobalStandardProps, HostObservable, SessionStandardProps } from '@deepseek-ai/dsh-client-ui-slots';
14
16
  /** The access Hooks every Slot component receives. */
15
17
  export type AccessStandardProps = Pick<GlobalStandardProps, 'useRemoteAccess' | 'useSessionAccess' | 'useWorkspaceAccess'> & Pick<SessionStandardProps, 'useAccess'>;
16
18
  /** Access Hooks that allow every action on every resource, for hand-built component props. */
17
19
  export declare const allowAllAccess: AccessStandardProps;
18
20
  /**
19
- * Plugin standing in for the remote-access Client row: it provides an
20
- * allow-all `remoteAccess` service, so ui-session and ui-workspace publish
21
- * their resource Hooks over it, and the allow-all `useRemoteAccess` Hook on
22
- * the global resource.
21
+ * A `remoteAccess` Client service whose answers never change: `allows`
22
+ * decides each action on every resource once. `whenAccess` installs an
23
+ * allowed action's effects in the caller's fiber at once and never installs a
24
+ * refused action's effects.
23
25
  */
24
- export declare const allowAllAccessPlugin: {
25
- name: string;
26
- inject: string[];
27
- /** @param ctx - plugin Context with the Slot registry injected. */
26
+ export declare class StaticRemoteAccess extends Service implements ClientRemoteAccess {
27
+ private readonly allows;
28
+ /**
29
+ * @param ctx - Context the service is provided on.
30
+ * @param allows - the fixed answer for each action; allows everything when omitted.
31
+ */
32
+ constructor(ctx: Context, allows?: (action: string) => boolean);
33
+ source(_kind: TypertResourceKind, _id: string, action: string): HostObservable<boolean>;
34
+ whenAccess(action: RemoteEndpoint, callback: () => AccessEffect): () => void;
35
+ whenResourceAccess(_kind: TypertResourceKind, _id: string, action: RemoteEndpoint, callback: () => AccessEffect): () => void;
36
+ }
37
+ /** The plugin shape {@link staticAccessPlugin} returns. */
38
+ export interface StaticAccessPlugin {
39
+ readonly name: string;
40
+ readonly inject: readonly string[];
28
41
  apply(ctx: Context): void;
29
- };
42
+ }
43
+ /**
44
+ * Plugin standing in for the remote-access Client row with fixed answers: it
45
+ * provides a {@link StaticRemoteAccess}, so ui-session and ui-workspace
46
+ * publish their resource Hooks over it, and the matching `useRemoteAccess`
47
+ * Hook on the global resource.
48
+ * @param allows - the fixed answer for each action on every resource.
49
+ * @returns the plugin.
50
+ */
51
+ export declare function staticAccessPlugin(allows: (action: string) => boolean): StaticAccessPlugin;
52
+ /** {@link staticAccessPlugin} allowing every action on every resource. */
53
+ export declare const allowAllAccessPlugin: StaticAccessPlugin;
30
54
  //# sourceMappingURL=access.d.ts.map
@@ -1,5 +1,8 @@
1
1
  import { ClientRoster } from './roster.ts';
2
- /** The `web` profile's bundle layers, in the order `dsh --profile web` applies them (app-boot `PROFILE_TEMPLATES.web`). */
2
+ /**
3
+ * The `web` profile's bundle layers, in the order `dsh --profile web` applies them
4
+ * (`PROFILE_TEMPLATES.web` in `@deepseek-ai/dsh-official-bundles`).
5
+ */
3
6
  export declare const WEB_PROFILE_BUNDLES: readonly string[];
4
7
  /**
5
8
  * Compose the browser roster of `bundles`, applied in order.
@@ -19,6 +19,8 @@ export interface TestClientOptions {
19
19
  readonly awaitConnected?: boolean;
20
20
  /** Readiness budget in milliseconds before `start` rejects with the mock log summary. Default 5000. */
21
21
  readonly connectTimeoutMs?: number;
22
+ /** The fixed access answer for each action on every resource. Default: every action is allowed. */
23
+ readonly access?: (action: string) => boolean;
22
24
  }
23
25
  /** A booted client under test. */
24
26
  export declare class TestClient {
@@ -0,0 +1,11 @@
1
+ /** Gesture bindings for direct component fixtures, using the production adapter. */
2
+ import type { ContextMenuTriggerProps, MenuPoint, ContextMenuTarget } from '@deepseek-ai/dsh-client-ui-context-menu/client';
3
+ /**
4
+ * Supply the global hook to a component mounted outside the Slot renderer.
5
+ * @param open - Observe captured targets; an unstubbed activation throws.
6
+ * @returns Stable hook using the production pointer and keyboard handlers.
7
+ */
8
+ export declare function contextMenuHook<Target extends object = ContextMenuTarget>(open?: (target: Target, point: MenuPoint) => void): () => {
9
+ getTriggerProps: (target: Target | (() => Target) | undefined, handlers?: ContextMenuTriggerProps) => ContextMenuTriggerProps;
10
+ };
11
+ //# sourceMappingURL=context-menu.d.ts.map
@@ -33,9 +33,10 @@ export { TestWorkspaces } from './workspaces.ts';
33
33
  export { RemoteError, TestRemote } from './remote.ts';
34
34
  export { chatSnapshot, conversationSnapshot, sessionSnapshot, workspaceSnapshot, } from './fixtures.ts';
35
35
  export type { FixtureSnapshot, SessionBehaviorOverrides, SessionFixture, SessionFixtureSnapshot, Stabilizer, } from './fixtures.ts';
36
+ export { contextMenuHook } from './context-menu.ts';
36
37
  export { makeTranslate } from './translate.ts';
37
- export { allowAllAccess, allowAllAccessPlugin } from './access.ts';
38
- export type { AccessStandardProps } from './access.ts';
38
+ export { allowAllAccess, allowAllAccessPlugin, StaticRemoteAccess, staticAccessPlugin } from './access.ts';
39
+ export type { AccessStandardProps, StaticAccessPlugin } from './access.ts';
39
40
  export { usePinnedBrowserLanguages } from './locale-env.ts';
40
41
  /**
41
42
  * Bind an observable source to the production renderer's selector hook.
@@ -90,6 +91,8 @@ export interface FeatureHandle {
90
91
  export interface TestFileUpload {
91
92
  /** Test-supplied upload behavior; the default rejects every call. */
92
93
  upload: (sessionId: SessionId, ...args: unknown[]) => Promise<unknown>;
94
+ /** Test-supplied image upload behavior; the default rejects every call. */
95
+ uploadImage: (sessionId: SessionId, ...args: unknown[]) => Promise<unknown>;
93
96
  }
94
97
  /**
95
98
  * The test-owned 'root' occupant: declares the child slots a suite needs
@@ -1,6 +1,6 @@
1
1
  /** Test-owned Session Controller faces over declarative fixtures. */
2
2
  import type { Context } from '@deepseek-ai/cordis';
3
- import type { AttachmentIdType } from '@deepseek-ai/dsh-attachment';
3
+ import type { ImageAttachmentRef } from '@deepseek-ai/dsh-attachment';
4
4
  import { MutableSessionEventSource } from '@deepseek-ai/dsh-api-session-controller/client';
5
5
  import type { AgentContext, ISessions, ProjectionsFace, SessionBinding, SessionFace, SessionListState, SessionEventLikeEntry, SessionLiveEventEntry, SessionSearchResultItem, SessionReference, SessionRetainInfo, SessionRetainOptions, SessionSnapshot, SessionSummary, SessionTarget, SubmissionHandle } from '@deepseek-ai/dsh-api-session-controller/client';
6
6
  import type { SubagentAddress } from '@deepseek-ai/dsh-subagent/client';
@@ -61,10 +61,10 @@ export declare class FixtureSession implements SessionFace {
61
61
  private submissionSeq;
62
62
  /**
63
63
  * Fail-loud stub; supply `readAttachment` on the fixture's session face to exercise it.
64
- * @param _attachmentId - opaque durable attachment id.
64
+ * @param _attachment - complete durable image reference.
65
65
  * @returns never — always throws.
66
66
  */
67
- readAttachment(_attachmentId: AttachmentIdType): never;
67
+ readAttachment(_attachment: ImageAttachmentRef): never;
68
68
  /**
69
69
  * Fail-loud stub; supply `updateQueue` on the fixture's session face to exercise it.
70
70
  * @returns never — always throws.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-client-test-runtime",
3
3
  "description": "Browser test runtimes: a jsdom slot bench with test-owned Session and Workspace doubles, and a whole-client tier that boots the web roster through the production bootClient over an endpoint-named Remote mock",
4
- "version": "0.2.1-rc.5",
4
+ "version": "0.2.2-alpha.3",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -29,65 +29,67 @@
29
29
  "vitest": "^4.1.11"
30
30
  },
31
31
  "peerDependencies": {
32
- "@deepseek-ai/cordis": "~4.0.5",
33
- "@deepseek-ai/cordis-plugin-include": "~1.0.10",
34
- "@deepseek-ai/cordis-plugin-loader": "~1.0.6",
35
- "@deepseek-ai/dsh-api-gateway": "0.2.1-rc.5",
36
- "@deepseek-ai/dsh-api-session-controller": "0.2.1-rc.5",
37
- "@deepseek-ai/dsh-api-workspace-controller": "0.2.1-rc.5",
38
- "@deepseek-ai/dsh-attachment": "0.2.1-rc.5",
39
- "@deepseek-ai/dsh-client-connection": "0.2.1-rc.5",
40
- "@deepseek-ai/dsh-client-hmr": "0.2.1-rc.5",
41
- "@deepseek-ai/dsh-client-modules": "0.2.1-rc.5",
42
- "@deepseek-ai/dsh-client-store": "0.2.1-rc.5",
43
- "@deepseek-ai/dsh-client-ui-chat": "0.2.1-rc.5",
44
- "@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.5",
45
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.5",
46
- "@deepseek-ai/dsh-client-ui-session": "0.2.1-rc.5",
47
- "@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.5",
48
- "@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.5",
49
- "@deepseek-ai/dsh-client-web": "0.2.1-rc.5",
50
- "@deepseek-ai/dsh-remote-mock": "0.2.1-rc.5",
51
- "@deepseek-ai/dsh-session": "0.2.1-rc.5",
52
- "@deepseek-ai/dsh-subagent": "0.2.1-rc.5",
53
- "@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.5",
32
+ "@deepseek-ai/cordis": "~4.0.6-alpha.2",
33
+ "@deepseek-ai/cordis-plugin-include": "~1.0.11-alpha.2",
34
+ "@deepseek-ai/cordis-plugin-loader": "~1.0.7-alpha.2",
35
+ "@deepseek-ai/dsh-api-gateway": "0.2.2-alpha.3",
36
+ "@deepseek-ai/dsh-api-session-controller": "0.2.2-alpha.3",
37
+ "@deepseek-ai/dsh-api-workspace-controller": "0.2.2-alpha.3",
38
+ "@deepseek-ai/dsh-attachment": "0.2.2-alpha.3",
39
+ "@deepseek-ai/dsh-client-connection": "0.2.2-alpha.3",
40
+ "@deepseek-ai/dsh-client-hmr": "0.2.2-alpha.3",
41
+ "@deepseek-ai/dsh-client-modules": "0.2.2-alpha.3",
42
+ "@deepseek-ai/dsh-client-store": "0.2.2-alpha.3",
43
+ "@deepseek-ai/dsh-client-ui-chat": "0.2.2-alpha.3",
44
+ "@deepseek-ai/dsh-client-ui-conversation": "0.2.2-alpha.3",
45
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.2-alpha.3",
46
+ "@deepseek-ai/dsh-client-ui-session": "0.2.2-alpha.3",
47
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.2-alpha.3",
48
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.2-alpha.3",
49
+ "@deepseek-ai/dsh-client-web": "0.2.2-alpha.3",
50
+ "@deepseek-ai/dsh-remote-mock": "0.2.2-alpha.3",
51
+ "@deepseek-ai/dsh-session": "0.2.2-alpha.3",
52
+ "@deepseek-ai/dsh-subagent": "0.2.2-alpha.3",
53
+ "@deepseek-ai/dsh-typert-protocol": "0.2.2-alpha.3",
54
54
  "react": "^18.2.0",
55
- "react-dom": "^18.2.0"
55
+ "react-dom": "^18.2.0",
56
+ "@deepseek-ai/dsh-client-ui-context-menu": "0.2.2-alpha.3"
56
57
  },
57
58
  "devDependencies": {
58
- "@deepseek-ai/cordis": "~4.0.5",
59
- "@deepseek-ai/cordis-plugin-include": "~1.0.10",
60
- "@deepseek-ai/cordis-plugin-loader": "~1.0.6",
61
- "@deepseek-ai/dsh-api-gateway": "0.2.1-rc.5",
62
- "@deepseek-ai/dsh-api-remote-access": "0.2.1-rc.5",
63
- "@deepseek-ai/dsh-api-remotes": "0.2.1-rc.5",
64
- "@deepseek-ai/dsh-api-session-controller": "0.2.1-rc.5",
65
- "@deepseek-ai/dsh-api-workspace-controller": "0.2.1-rc.5",
66
- "@deepseek-ai/dsh-attachment": "0.2.1-rc.5",
67
- "@deepseek-ai/dsh-base": "0.2.1-rc.5",
68
- "@deepseek-ai/dsh-client-connection": "0.2.1-rc.5",
69
- "@deepseek-ai/dsh-client-hmr": "0.2.1-rc.5",
70
- "@deepseek-ai/dsh-client-locale": "0.2.1-rc.5",
71
- "@deepseek-ai/dsh-client-modules": "0.2.1-rc.5",
72
- "@deepseek-ai/dsh-client-store": "0.2.1-rc.5",
73
- "@deepseek-ai/dsh-client-ui-chat": "0.2.1-rc.5",
74
- "@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.5",
75
- "@deepseek-ai/dsh-client-ui-layout": "0.2.1-rc.5",
76
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.5",
77
- "@deepseek-ai/dsh-client-ui-session": "0.2.1-rc.5",
78
- "@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.5",
79
- "@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.5",
80
- "@deepseek-ai/dsh-client-ui-workspace": "0.2.1-rc.5",
81
- "@deepseek-ai/dsh-client-web": "0.2.1-rc.5",
82
- "@deepseek-ai/dsh-remote-mock": "0.2.1-rc.5",
83
- "@deepseek-ai/dsh-session": "0.2.1-rc.5",
84
- "@deepseek-ai/dsh-settings": "0.2.1-rc.5",
85
- "@deepseek-ai/dsh-subagent": "0.2.1-rc.5",
86
- "@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.5",
87
- "@deepseek-ai/dsh-web-app": "0.2.1-rc.5",
59
+ "@deepseek-ai/cordis": "~4.0.6-alpha.2",
60
+ "@deepseek-ai/cordis-plugin-include": "~1.0.11-alpha.2",
61
+ "@deepseek-ai/cordis-plugin-loader": "~1.0.7-alpha.2",
62
+ "@deepseek-ai/dsh-api-gateway": "0.2.2-alpha.3",
63
+ "@deepseek-ai/dsh-api-remote-access": "0.2.2-alpha.3",
64
+ "@deepseek-ai/dsh-api-remotes": "0.2.2-alpha.3",
65
+ "@deepseek-ai/dsh-api-session-controller": "0.2.2-alpha.3",
66
+ "@deepseek-ai/dsh-api-workspace-controller": "0.2.2-alpha.3",
67
+ "@deepseek-ai/dsh-attachment": "0.2.2-alpha.3",
68
+ "@deepseek-ai/dsh-base": "0.2.2-alpha.3",
69
+ "@deepseek-ai/dsh-client-connection": "0.2.2-alpha.3",
70
+ "@deepseek-ai/dsh-client-hmr": "0.2.2-alpha.3",
71
+ "@deepseek-ai/dsh-client-locale": "0.2.2-alpha.3",
72
+ "@deepseek-ai/dsh-client-modules": "0.2.2-alpha.3",
73
+ "@deepseek-ai/dsh-client-store": "0.2.2-alpha.3",
74
+ "@deepseek-ai/dsh-client-ui-chat": "0.2.2-alpha.3",
75
+ "@deepseek-ai/dsh-client-ui-conversation": "0.2.2-alpha.3",
76
+ "@deepseek-ai/dsh-client-ui-layout": "0.2.2-alpha.3",
77
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.2-alpha.3",
78
+ "@deepseek-ai/dsh-client-ui-session": "0.2.2-alpha.3",
79
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.2-alpha.3",
80
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.2-alpha.3",
81
+ "@deepseek-ai/dsh-client-ui-workspace": "0.2.2-alpha.3",
82
+ "@deepseek-ai/dsh-client-web": "0.2.2-alpha.3",
83
+ "@deepseek-ai/dsh-remote-mock": "0.2.2-alpha.3",
84
+ "@deepseek-ai/dsh-session": "0.2.2-alpha.3",
85
+ "@deepseek-ai/dsh-settings": "0.2.2-alpha.3",
86
+ "@deepseek-ai/dsh-subagent": "0.2.2-alpha.3",
87
+ "@deepseek-ai/dsh-typert-protocol": "0.2.2-alpha.3",
88
+ "@deepseek-ai/dsh-web-app": "0.2.2-alpha.3",
88
89
  "@types/js-yaml": "^4.0.9",
89
90
  "react": "^18.2.0",
90
- "react-dom": "^18.2.0"
91
+ "react-dom": "^18.2.0",
92
+ "@deepseek-ai/dsh-client-ui-context-menu": "0.2.2-alpha.3"
91
93
  },
92
94
  "files": [
93
95
  "lib/index.js",