Repository navigation
feat(plugin-api): 补齐有界宿主工作流 API 与四种 SDK - #193
Merged
Merged
Conversation
…apis # Conflicts: # shared/plugins/reference/protocol-changelog.md
…apis # Conflicts: # shared/plugins/reference/protocol-changelog.md
xiaoyumuxi
marked this pull request as ready for review
November 23, 2026 21:28
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs 1lck/Lithe-IDEA#2371
类型:feat
插件已有文档编辑、文件服务和视图函数,仍无法组合完整的输入、预览、反馈和网络工作流。本 PR 在 Rust Core 补齐 19 个公共宿主方法及四语 SDK;桌面端只负责原生 I/O 和已有控件呈现,另提依赖 PR。
plugins.workflow统一搜索过滤、状态优先级排序、分页停止条件及输出增量投影;不会把完整输出历史来回跨边界传递。版本与兼容:保持 pluginAPIVersion 0、litheFunctions 0 和既有能力版本;新增方法由 getCapabilities 发现,老宿主按已有 unavailable / unknown-permission 规则拒绝。没有新增错误码,复用 invalidParams、unsupportedOption、permissionDenied、notFound、limitExceeded、busy、cancelled、timeout、failed 等既有码,不占用新的业务编号。既有四语示例后端继续通过端到端验证。公共方法可同时服务交互式开发工具、远程服务客户端、文档工具等,Core 不识别具体插件业务。
日志:宿主请求终态继续走既有 host-request 目录事件与操作身份;plugins.workflow 为高频/敏感载荷禁止 trace 请求体,SDK 复用现有自动终态记录。HTTP 错误不得携带 URL/query/header/body,密码及剪贴板内容不进入日志。原生失败与清理由桌面端边界记录;本 PR 无原生 UI,不把未来桌面验收记作已通过。
本地 macOS 验证:
Windows 本地验收按用户要求不执行;桌面原生交互在依赖 PR 验证。本次不含浏览器 Cookie 自动提取、认证会话、AI/MCP 授权或下载到文件。
statusBar/setItemstatusBar/removeItemeditor/showDiffviews/refreshpreview/openMarkdownpreview/openHTMLbrowser/openExternalwindow/showQuickPickwindow/showInputBoxclipboard/readTextclipboard/writeTextworkspace/revealoutput/createoutput/appendoutput/clearoutput/showoutput/disposeprogress/createprogress/reportprogress/endnetwork/request