* feat(forge): let providers declare their hosts, names, sign-in, and review decisions Prepare the forge contract for a second provider: - ForgeProvider lists the hosts it serves and names itself (label, changeRequestNoun); registering a provider that lists a host another registered provider lists throws, so each URL has at most one provider. ctx.forge.describe(forge) returns the family's ForgeDescription. - ForgeReadiness carries the sign-in command, which the panel's sign-in banner shows instead of building `gh auth login` for the github family. - ForgeReviewData lists the review decisions the host lets the reader record; the review dialog offers only those instead of hardcoding the GitHub rule that a pull request's author may only comment. - ForgeReviewThread.original may name a later commit the host carried the thread to while its lines stayed unchanged. - The changes view names the code host and its word for a change request from the entry's ForgeDescription instead of hardcoding GitHub and PR. The GitHub provider declares its configured hosts, GitHub, pull requests, `gh auth login --hostname <host>`, and reads viewerDidAuthor for the review decisions. Upgrade guide: forge-provider-hosts. * feat(forge-gitlab): read GitLab merge requests through the GitLab CLI Add the experimental forge-gitlab provider. It serves the configured GitLab hosts through glab: status batches over GraphQL, head-pinned patches from merge request diff versions, commit listings, merge bases, pipeline jobs, closing issues, and review threads mapped from REST discussions, including outdated threads' hunks. The forge bundle composes the provider, disabled by default. * feat(forge-gitlab): write GitLab reviews, retry pipelines, request reviews, and rebase The GitLab provider now writes through glab as well as reading: comments start discussions at positions derived from the head's diff version, pending replies and comments are draft notes that a review publishes with its summary and review state, and approving checks the head through GitLab's sha parameter. Review reads carry the signed-in user's rights from GraphQL, their draft notes as the pending review, and the decisions GitLab lets them record. Snapshots name the head pipeline as every job's rerun, offer rebase as the branch update, and follow GitLab's permissions for reruns and review requests. updateBranch's contract now states how a provider whose host takes no expected head checks it. * feat(forge): let forge providers register the commands that bind change requests forge-session no longer recognizes gh commands by itself. A provider now registers a declarative ForgeCommandRule through ctx.forgeSession.registerCommands: its executable, creation and reference subcommands, change request page path, JSON URL members, declared options, and a pure select that maps one parsed reference command to a URL or a read-only lookup. forge-github registers gh and forge-gitlab registers glab, which adds glab mr create, view, update, and checkout, including numbers with -R: a full project URL binds directly, and other repository forms resolve through glab mr view in the call's shell. forge-session keeps the shared parts: the literal shell tokenizer, option parsing, output reading, lookups, and the projection. The forgeChangeRequests state version derives from the recognized rules, so a changed rule set refolds every Session, including commands that ran before the provider loaded. Ending a registration keeps its rule recognized until restart, so unloading providers at shutdown does not rewrite every checkpoint. * refactor(forge-gitlab): publish the GitLab provider as @deepseek-ai/dsh-forge-gitlab New experimental packages omit the experimental prefix so that promotion keeps their npm name. Register the directory in EXPERIMENTAL_PACKAGE_NAME_EXCEPTIONS instead of growing the legacy prefixed list, and rename every dependency, configuration row, path mapping, and document that names the package. * fix(forge-gitlab): keep review writes, comment positions, and reads within GitLab's facts and the limits - After GitLab refuses a publication, read the drafts again: delete them only when all remain, since GitLab can publish them before it refuses the summary, and report the outcome as unknown otherwise. A rollback that leaves drafts reports how many may remain. - Place comments on files GitLab collapsed through the diff compared from their texts, and let a file's new path name it over another file's old path after chained renames. - Keep the final newline of raw file reads. - Apply maxOutputBytes to the complete review result, and report a read whose rights stop early or skip a discussion's later notes as truncated. - Serve a version over maxCachedVersionBytes without keeping it. - Resolve uploaded avatars GitLab names by their path on the host. - Schedule bounded reads through p-limit. * fix(forge-session): run lookups only for live command rules and keep the projection registered - Reference lookups use the rules of live registrations, so a disposed provider's rule still folds but starts no gh or glab process. - A failed re-registration registers the projection again with the earlier rules, so clients keep its view; an error is logged only when that fails too. - Document the startup re-registration, test that the checkpointed state version survives a real Loader start, shutdown, and restart, and record that starting without a provider removes the bindings only its commands made. - Describe the changes view's pending review and single comment without naming GitHub, which keeps its own rule in forge-github, and render registerCommands as code in the generated service reference. * fix(forge-bundle): name GitLab merge requests in the bundle description The bundle now follows GitLab merge requests as well as GitHub pull requests, so the description's first sentence in every locale names both kinds of change request. * feat(forge): bind the change requests that gh api and glab api requests name Models often read a merge request through `glab api` or a pull request through `gh api` instead of `glab mr view` or `gh pr view`, which left the change request unbound. A command rule now declares raw API request subcommands beside its reference subcommands, each group with its own options, since `-f` is a value of `gh api` and a flag of `gh pr checkout`. An API request binds, as referenced, only the change request its REST path names, such as `projects/group%2Fapp/merge_requests/7/changes` or `repos/octo/demo/pulls/7/files`; its output is not read, since one request can list many change requests. A path whose host the command names binds directly, and one without a host, or with the current repository's placeholders, resolves through the CLI's view command in the call's shell. The gh and glab rules move to version 2. * docs(forge): add forge-gitlab and the forge-session peers to the module graph Regenerate docs/module-graph for the renamed GitLab provider and the optional forge-session peer of both providers. * test(web): refresh the forge bundle description in the recommended plugin catalog The creation recommendation recording carries every recommended plugin's description; refresh it for the forge bundle description that now names GitLab merge requests and the glab sign-in. * chore(forge-gitlab): carry the 0.2.2-rc.3 release version and move upgrade guides to v0.2.2-rc.3
11 KiB
11 KiB
description, kind
| description | kind |
|---|---|
| 实验组地图:可公开安装的预稳定原型。 | package-group |
packages/experimental
English | 中文
概述
实验性能力可按需安装和组合,但不提供产品支持承诺。包命名和发布遵循实验包策略。可选组合规则决定哪些能力以默认关闭状态随安装提供,并在 GUI 插件管理器的官方分组显式启用;Liveshare owner bundle 及其共享协议包也在其中。插件管理页管理哪些组合包默认展示,以及如何启用隐藏项。
目录
实验性、可选与官方
实验性表示整个公开能力仍在评估中,不属于产品支持承诺。其行为或 API 可能变更,能力也可能被撤回;工程、安全、文档、测试和已发布数据的义务仍然适用。只有其完整公开约定均为实验性或仅限内部使用的包才属于本组;产品包中的实验选项仍归原产品职责所有。
可选表示用户显式选择该能力。官方表示项目维护并在插件页列出该包。两者均不表示成熟度;发布、默认安装和界面可见性也不决定成熟度。组外产品包承担维护职责,其公开 API 仍遵循仓库的预稳定政策。
晋升需要明确的产品职责、公开行为与限制、当前消费者、发布内容以及测试证据。晋升时将包移入对应产品组,并同时更新受影响的消费者。子树规则规定包命名、依赖隔离和发布要求。
包
| 包 | 职责 | ctx 键 |
|---|---|---|
action-cards |
回答下方的可选操作卡片:提议工具、卡片状态、用户操作与状态通知 | ctx.actionCards |
client-ui-action-cards |
已完成回答下方的卡片框架、种类正文与提议过程行 | — |
creation-recommendations |
针对明确需求创建持续可用、可移除的界面插件 | — |
client-ui-creation-recommendations |
个性化页面卡片正文、位置选择和撤销 | — |
plugin-recommendations |
在对话中针对明确需求推荐官方插件 | ctx.pluginRecommendations |
client-ui-plugin-recommendations |
官方插件卡片正文:目录文本与启用 | — |
personalized-recommendations |
默认禁用的个性化页面、插件推荐及其操作卡片组合 | — |
tool-session-query |
按工作区授权的模型会话搜索、追踪与事件读取 | — |
session-search |
可选实验性全局会话搜索工具 | — |
deepseek-chat-import |
可选上传 DeepSeek 官网会话导出,存为所选工作区中的会话 | ctx.deepseekChatImport |
ralph-bundle |
带隔离 workflow 引擎的可选重复委派 | — |
terminal-bundle |
可选全局持久终端工具 | — |
badge-skill-bundle |
可选 powered-by-dsh 徽章技能 | — |
session-titles-bundle |
随对话中人类提示更新的可选标题 | — |
hook-protocol |
钩子桥接的通信类型与持久事件 | — |
hooks-claude-code |
Claude Code 钩子桥接 | — |
hooks-codex |
Codex 钩子桥接 | — |
webhook |
已认证投递分发与 Workspace Session 创建 | ctx.webhookRuntime |
webhook-github |
带签名的 GitHub webhook 入口 | — |
session-title-all-prompts-llm |
根据所有人类提示生成会话标题 | — |
tool-terminal |
持久终端工具 | — |
terminal-panel |
Web 侧栏中的 Agent 终端与只读的用户终端工具 | — |
tool-ralph |
有界重复委派任务 | — |
skill-badge |
powered-by-dsh 徽章技能 | — |
translator |
免登录 Google 与 Bing 文本翻译 | ctx.translator |
client-ui-cot-translation |
展开的思考内容翻译与原文控件 | ctx.cotTranslation |
cot-translation-bundle |
默认禁用的思考内容翻译组合 | — |
speech-to-text |
具名语音识别 Provider | ctx.speechToText |
speech-to-text-sensevoice |
托管本地 SenseVoice 推理 | — |
api-speech-to-text |
带认证的临时转写 Remote | ctx.speechController |
client-ui-voice-input |
麦克风录音与版本检查后的草稿插入 | — |
plugin-market-bundle |
默认禁用的可选自定义插件索引:索引服务和「发现」标签页 | — |
liveshare |
可选 LiveShare host bundle:通过 Relay 以 view 或 write 档分享会话,派生与附件上传为独立开关 |
注入 connection;通过宿主 Web 资源提供查看页 |
liveshare-protocol |
owner bundle 与 Relay 共用的线路帧与身份契约 | 库与协议,不使用 ctx key |
voice-input-bundle |
默认禁用的可选语音输入组合 | — |
client-ui-stats |
Web 端按轮次与步骤展示上下文、耗时、缓存与工具成本 | — |
auto-review |
显式 Web 层,在每个原生或 PTC inner 工具调用前使用同一模型审查 | — |
subagent-oar |
通过 OAR 执行外部编程智能体的独立任务 | ctx.subagents |
tool-subagent-oar |
为每项委派任务选择配置的外部代理 | ctx.tools |
claude-code-mods |
把 Claude Code 模组作为插件运行:钩子链落在 harness 扩展点上,并在提示框上方绘制横幅 | ctx.claudeCodeMods |
client-ui-claude-code-mods |
在提示框上方绘制模组树并把按钮点击发回的 Web 横幅 | — |
| CUA | 应用与窗口对象、授权执行和权限控件。 | ctx.cuaAccess |
| macOS CUA | Swift 原生执行与平台组件准备。 | ctx.computerUse |
| Windows CUA | 通过 Windows UI Automation 操作应用与窗口。 | ctx.computerUse |
cua-bundle |
面向 PTC 会话、默认关闭的 Computer Use 开关 | — |
cua-mcp |
由 cua-mcp profile 向外部 agent harness 提供的 Computer Use MCP stdio 服务器 |
— |
timeline |
当前会话的任务树、进度条与间隔报告 | ctx.timeline |
computer-use-cua-driver-mcp |
通过 MCP 使用已安装的 Cua Driver | ctx.computerUse |
computer-use-cua-driver-native |
嵌入 Cua Driver 原生 npm 运行时 | ctx.computerUse |
browser-use-playwright-mcp |
通过 MCP 提供 Playwright 浏览器工具 | ctx.browserUse |
browser-use-chrome-devtools-mcp |
通过 MCP 提供 Chrome DevTools 检查与浏览器控制 | ctx.browserUse |
browser-use-stagehand-native |
Stagehand 浏览器操作与显式配置的原生模型 | ctx.browserUse |
browser-use-runtime |
实验性提供方共享的 Session 浏览器资源 | — |
inspector |
用于 Host 调试、Client Runtime 检查、网络采集与 Cordis 树的跨 realm CDP hub | ctx.inspector |
session-inspector |
展示原始 Session 日志与 Chat 节点的 Sidebar 表格 | — |
inspector-profile |
用于 Session 日志与 Chat 节点检查的可选 Web 组合包 | — |
tool-worktree |
创建并进入工作树的可选 bundle 与模型工具 | ctx.tools |
webworker-packer |
构建浏览器 worker 预览所消费的 gzip 压缩虚拟文件系统(VFS)镜像 | 库与 CLI(命令行界面),不使用 ctx key |
webworker-runtime |
在专用浏览器 worker 中运行 harness 插件树 | 库与 worker 入口,不使用 ctx key |
worktree |
创建具名 Git 工作树并改变调用 Session 的当前目录 | ctx.worktrees |
forge |
代码托管提供方注册表,共享变更请求轮询 | ctx.forge |
forge-github |
通过宿主 GitHub CLI 读取 pull request 的 GitHub 提供方 | 在 ctx.forge 上注册提供方 |
forge-gitlab |
通过宿主 GitLab CLI 读写合并请求的 GitLab 提供方 | 在 ctx.forge 上注册提供方 |
forge-session |
把变更请求绑定到创建、推送或跟踪它们的 Session | ctx.forgeSession |
client-ui-forge |
展示 Session 的 Git 检出、worktree 与已绑定 pull request 的 GUI 面板 | ctx.forgePanel |
forge-bundle |
默认禁用的 pull request 与 worktree 面板组合 | — |
相关文档
- 实验包发布说明——默认公开与私有例外。
- 工作树——显式创建分支与检出目录。
- Forges——变更请求提供方、状态轮询、Session 绑定与面板。
- 计算机操作——桌面提供方选择。
- 浏览器操作——浏览器提供方选择与 Session 所有权。
- Agent Teams 子系统——持久 Team 类型与
ctx.agentTeams服务 API。 - 实验子树规则——实验状态放宽了什么、不放宽什么。
开发备注
维护者的工作上下文——点击展开
无。