jiazekang/dsh-office
jiazekang★ 0TypeScriptLast synced: 2026-08-15
可以读写办公文件的插件,支持拖动办公文件到对话框
README excerpt
dsh-office DSH Office 文档插件:Excel 读取 + 精准修改 + 办公文件拖入附件栏。 结构 常用命令(在仓库根目录执行) 安装 / 联调(web profile) 发布到 npm 插件写法速记 - 插件 = 导出 name / inject / Config / apply 的 npm 包。 - 工具用 defineTool({ name, description, parameters, output, execute }) 定义, 参数与输出都必须是 JSON Schema, output.render 返回 ContentBlock[] 。 - 所有注册都包在 ctx.effect(fn, label) 里,卸载时自动清理。 - @deepseek-ai/ 运行时服务声明为 peerDependencies,构建时保持外部( deps.neverBundle ), 运行时由宿主进程解析,避免重复实例。 - 包内 cordis.patch.yml 用 insert 把插件行加进 roster;声明 dsh.bundle.patch 后 dsh plugin add 会自动把它加入 profile 的 bundles 层。 更完整的参考: @linxin666/dsh-ssh (服务端全流程)与 @linxin666/dsh-client-ui-task-board (客户端全流程), 源码见 https://github.com/zhu1090093659/dsh-web-ui。
View full README on GitHub →