@ agent-forge/plugin-desktop-windows-观察器
只读 Windows 桌面观察能力插件 福吉探员从主机中提取
src/plugins/desktop (D-075 S3) (英语). 它登记了五个只读工具—— desktop_probe, (中文(简体) ), desktop_session_open, (中文(简体) ), desktop_observe, (中文(简体) ), desktop_reobserve, (中文(简体) ),
desktop_session_stop ——由Windows UI自动化动力壳驱动器支持. 它从不注册输入或重放工具.
该插件自载UIA适配器. 在导入软件包的非窗口平台上不丢出;每个工具都报告一个明确的 unsupported
而不是去探险 或回到不同的驱动器.
安装
# from a local checkout
agent-forge plugin install ./plugins/desktop-windows-observe
# from npm
agent-forge plugin install @ai-agent-forge/plugin-desktop-windows-observe
货包船有两艘货单: agent-forge.json (确定性插件解析器显示的系统, platform.os: ["windows"]和
plugin.json (主机载重清单 loadCapabilityPluginFromManifest条目 ./dist/entry.js) (中文(简体) ).
图书馆表面
import { DesktopWindowsAdapter, WindowsUiAutomationDriver } from "@agent-forge/plugin-desktop-windows-observe";
DesktopWindowsAdapter——UIA适配器外观(主机默认的桌面接线构造这个).WindowsUiAutomationDriver(options?)— PowerShell UIA 驱动程序;支持command编号 :timeoutMs编号 :spawnSync编号 :platform给经纪人注射和测试.createDesktopObserveCapabilityFactoryV1(runtime)- 将5个观察工具登记在CapabilityAPI。 。 。 .- 默认导出
dist/entry.js——外部插件加载所使用的预编厂.
UIA适配码是一个有意的内置复制件,与 @agent-forge/plugin-desktop-windows-input 所以两个包裹都保持自成一体.
发展
npm install --ignore-scripts # repo root, creates the workspace symlink
npm run build # plugins/desktop-windows-observe (tsgo)
npm test # vitest; the entry fidelity test requires `npm run build` first