@ agent-forge/plugin-桌面窗口输入
关闭的 Windows 桌面输入能力插件 福吉探员从主机中提取
src/plugins/desktop (D-075 S3) (英语). 登记 desktop_execute (一个焦点/点击/类型/关键/对观察到的UIA目标移动动作,总是
之后是新的观察),并且,只有在被注入的运行时间暴露出重放方法时, desktop_replay。运出的生产外观
故意暴露没有重播.
当主机运行时, 插件拒绝注册任何工具 readonly 模式。 在导入软件包的非窗口平台上不投掷;
工具报告明确 unsupported 而不是去探险 或回到不同的驱动器.
安装
# from a local checkout
agent-forge plugin install ./plugins/desktop-windows-input
# from npm
agent-forge plugin install @ai-agent-forge/plugin-desktop-windows-input
货包船有两艘货单: agent-forge.json (确定性插件解析器显示的系统, platform.os: ["windows"]和
plugin.json (主机载重清单 loadCapabilityPluginFromManifest条目 ./dist/entry.js) (中文(简体) ).
图书馆表面
import { DesktopWindowsInputAdapter, WindowsUiAutomationDriver } from "@agent-forge/plugin-desktop-windows-input";
DesktopWindowsInputAdapter——生产输入外观(无回放方法).WindowsUiAutomationDriver(options?)— PowerShell UIA 驱动程序;支持command编号 :timeoutMs编号 :spawnSync编号 :platform给经纪人注射和测试.DesktopWindowsAdapter——有回放的全控适配器,为主机接线等同观察包所携带.createDesktopInputCapabilityFactoryV1(runtime)- 登记册desktop_execute(和desktop_replay当运行时间提供它),在一个CapabilityAPI。 。 。 .- 默认导出
dist/entry.js——外部插件加载所使用的预编厂.
UIA适配码是一个有意的内置复制件,与 @agent-forge/plugin-desktop-windows-observe 所以两个包裹都保持自成一体.
发展
npm install --ignore-scripts # repo root, creates the workspace symlink
npm run build # plugins/desktop-windows-input (tsgo)
npm test # vitest; the entry fidelity test requires `npm run build` first