DAG总览 / 组目录 / G13 实验特性

dsh-experimental-computer-use-cua-driver-native · @deepseek-ai/dsh-experimental-computer-use-cua-driver-native

Layer 7G13L3 其余
目录:ACP 协议API 网关与控制器附件启动与插件管理客户端运行时客户端 UI 包上下文压缩上下文注入核心运行时凭据与授权交付物文档处理实验特性宿主扩展反馈通道文件系统目标与计划工具守卫Hooks 扩展宿主服务交互命令作业调度LLM 适配LSP 集成MCP 协议规划模式Agent 预设代码执行运行时运行时诊断沙箱定时调度SDK 与协议会话核心会话检索设置Shell 执行技能溢出存储SSH 远程执行存储子代理子进程终端待办类型契约框架 vendorWeb 访问Webhook工作流工作区
依赖链 · 上游(该插件依赖的前驱):
依赖链 · 下游(依赖该插件的节点):
无下游(叶子/被消费端)
同一拓扑层(Layer 7,层次遍历层序):
↑ Layer 6(18 插件)Layer 7↓ Layer 8(4 插件)

插件信息

包名@deepseek-ai/dsh-experimental-computer-use-cua-driver-native
分组G13 · 实验特性
拓扑层Layer 7(层次遍历:被依赖方先于依赖方)
源码路径packages/experimental/computer-use-cua-driver-native
来源层L3 其余插件(独立于 bundle 装配的扩展/变体/示例)

① 实现逻辑

通过 in-process 原生 Cua Driver SDK 注册 `cua_driver_native__*` 工具:动态 `import('@trycua/cua-driver')`、`CuaDriver.create`、`listToolsJson` 解析工具目录并用 `createMcpToolDefinition` 适配(src/index.ts:88-118)。`tools/execute` 监听器把这些工具调用绑定到 lifetime signal 并跟踪 pending(src/index.ts:119-131),同时注册 computer-use systemPrompt guidance(src/index.ts:132-136)。卸载时 abort lifetime、等待 pending、`driver.shutdown()` 后 `uniffiDestroy()`(src/index.ts:59-78)。

内部结构动态 DAG(深色主题:橙色=上游依赖 · 绿色=下游依赖 · 棕色=外部seam · 蓝=本插件)
本插件 上游依赖 下游依赖 外部 seam

② 注册/提供(provides)

③ 依赖(depends_on · 上游前驱)

dsh-mcp-clientE1
把原生工具目录适配为 MCP 形状工具定义
src/index.ts:9 import createMcpToolDefinition + src/index.ts:103 createMcpToolDefinition
dsh-system-promptE1+E2
注入桌面操作 guidance 段落
src/index.ts:13 import type {} from '@deepseek-ai/dsh-system-prompt' + src/index.ts:20 inject 'systemPrompt' + src/index.ts:132 systemPrompt.section
dsh-toolsE1+E2
注册原生工具并接管其执行信号
src/index.ts:14 import type {} from '@deepseek-ai/dsh-tools' + src/index.ts:20 inject 'tools' + src/index.ts:117 tools.register + src/index.ts:119 tools/execute

④ 被依赖(dependents · 下游消费者)

无下游(叶子/被消费端)