Merge remote-tracking branch 'origin/master' into turtle/rename-deepseek-api-ca2c0fb1df3e
Co-authored-by: Yudong Han <[email protected]> # Conflicts: # packages/client/ui-settings-models/README.i18n.yaml
This commit is contained in:
commit
e0e6b7d841
1034 files changed
+11199
-5564
No files matched your search
+2
-2
@@ -9,8 +9,8 @@
|
||||
en: 8578b584bda3abdc
|
||||
zh: 85dcf44aab2cfd51
|
||||
/agent-note-desktop-welcome-window-material/decision:
|
||||
en: 1affa7f1fccc945f
|
||||
zh: e5aea959e7886a59
|
||||
en: 307d17b576022b26
|
||||
zh: 2992ab7d8abde284
|
||||
/agent-note-desktop-welcome-window-material/alternatives-considered:
|
||||
en: cf42e200b1d0f00a
|
||||
zh: de96b5647f5ffb23
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ The desktop welcome design blurs the desktop behind its entire window. Chromium
|
||||
|
||||
The [Electron welcome window](../../../../apps/desktop/src/welcome-window.ts) owns native material and window controls. Its independently bundled React renderer supplies the entry, account sign-in states and API-key form. It shares the `StateDot` loading component with the Web UI without booting the Web plugin graph. The Desktop build emits local JavaScript and CSS under `lib/welcome`, included in packaged applications; the document keeps its network-denying content security policy. A narrow preload supplies typed shell copy, a write-only key operation, and a skip operation; IPC rejects other windows and subframes. Each sandboxed preload is bundled independently because Electron’s restricted require cannot load sibling chunks. The Electron main process authenticates through the shared Web launch URL and resolves the official provider's reference through the existing settings and credential RPC methods. The [thin Web wrapper](2026-09-10-desktop-web-wrapper.md) owns the HTTP server; onboarding adds no Host endpoint or child IPC operation. Responses contain metadata or a safe outcome, never a key or private provider diagnostics.
|
||||
|
||||
Cold startup opens the entry when neither an account credential nor a model API key is configured. Saving enters the workspace after persistence succeeds; skipping enters without saving a draft or a credential-entry completion flag. The next process launch checks credentials again. The Desktop preload marker suppresses the automatic Web credential step and welcome notice; settings and explicit API-key editing remain available. The [Desktop onboarding reference](../../../../packages/client/ui-settings-account/README.md) owns the separate device-local introduction after account login. Other native shells can disable only the credential step through the Models Host plugin's `credentialOnboarding` page-injection value. The module graph carries package identities rather than arbitrary Host config, so a Host row alone does not configure its Client half. The [account provider](2026-09-14-deepseek-account-login.md) supplies login and sign-out state while preserving independently stored API keys.
|
||||
Cold startup opens the entry when neither an account credential nor a model API key is configured. Saving enters the workspace after persistence succeeds; skipping enters without saving a draft or a credential-entry completion flag. The next process launch checks credentials again. The Desktop preload marker suppresses the automatic Web credential step and welcome notice; settings and explicit API-key editing remain available. The [Desktop onboarding reference](../../../../packages/client/ui-settings-account/README.md) owns the separate device-local introduction after account login. Other native shells can disable only the credential step through the Models plugin's synced `credentialOnboarding` Config field. The module graph carries package identities rather than arbitrary Host config, so a Host row alone does not configure its Client half. The [account provider](2026-09-14-deepseek-account-login.md) supplies login and sign-out state while preserving independently stored API keys.
|
||||
|
||||
The generated project follows declared workspace dependencies because pnpm’s hoist index alone can omit configured plugins.
|
||||
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ Status: implemented
|
||||
|
||||
[Electron 欢迎窗口](../../../../apps/desktop/src/welcome-window.ts)负责原生材质和窗口控件。独立打包的 React 渲染器提供入口、账号登录状态和 API Key 表单。它与 Web UI 共用 `StateDot` 加载组件,不启动 Web 插件图。Desktop 构建将本地 JavaScript 和 CSS 输出到 `lib/welcome`,并纳入应用安装包;文档继续使用禁止网络访问的内容安全策略。窄接口 preload 提供强类型桌面文案、仅写密钥操作和跳过操作;IPC 拒绝其他窗口和子 frame。每个沙箱 preload 都独立打包,因为 Electron 受限的 require 无法加载同目录中的拆分模块。Electron 主进程通过共享 Web 启动 URL 认证,并通过现有设置和凭证 RPC 方法解析官方提供方的引用。[Web 薄壳](2026-09-10-desktop-web-wrapper.zh.md)负责 HTTP 服务;引导不增加 Host 端点或子进程 IPC 操作。响应只包含元数据或安全结果,不包含密钥或提供方的私有诊断。
|
||||
|
||||
冷启动在账号凭证与模型 API Key 均未配置时打开入口。保存会在持久化成功后进入工作区;跳过会直接进入,不保存草稿或凭证入口完成标记。下次进程启动时会重新检查凭证。Desktop preload 标记抑制自动 Web 凭证步骤和欢迎须知;设置与显式 API Key 编辑仍然可用。[Desktop 引导参考](../../../../packages/client/ui-settings-account/README.zh.md)负责账号登录后独立的设备本地介绍流程。其他原生壳可以通过 Models Host 插件注入页面的 `credentialOnboarding` 值仅禁用凭证步骤。模块图传递的是包标识,而不是任意 Host 配置,因此单独配置 Host 行不会配置其 Client 半部。[账号提供方](2026-09-14-deepseek-account-login.zh.md)提供登录与退出登录状态,同时保留独立存储的 API Key。
|
||||
冷启动在账号凭证与模型 API Key 均未配置时打开入口。保存会在持久化成功后进入工作区;跳过会直接进入,不保存草稿或凭证入口完成标记。下次进程启动时会重新检查凭证。Desktop preload 标记抑制自动 Web 凭证步骤和欢迎须知;设置与显式 API Key 编辑仍然可用。[Desktop 引导参考](../../../../packages/client/ui-settings-account/README.zh.md)负责账号登录后独立的设备本地介绍流程。其他原生壳可以通过 Models 插件同步到浏览器的 `credentialOnboarding` Config 字段仅禁用凭证步骤。模块图传递的是包标识,而不是任意 Host 配置,因此单独配置 Host 行不会配置其 Client 半部。[账号提供方](2026-09-14-deepseek-account-login.zh.md)提供登录与退出登录状态,同时保留独立存储的 API Key。
|
||||
|
||||
生成的开发项目沿已声明的 workspace 依赖建立链接,因为单独依赖 pnpm 的提升索引会漏掉配置插件。
|
||||
|
||||
|
||||
+4
-4
@@ -9,11 +9,11 @@
|
||||
en: 31fba384d90ce7d2
|
||||
zh: f8b814868f3280c3
|
||||
/agent-note-session-working-directory/decision:
|
||||
en: 9ccde1c5e635b9c0
|
||||
zh: 4dc76229703d3ef7
|
||||
en: 5de5171ee52a62b4
|
||||
zh: 7f78197ea38af658
|
||||
/agent-note-session-working-directory/alternatives-considered:
|
||||
en: f0995feb9b6bcce8
|
||||
zh: 97417085fd17f70f
|
||||
/agent-note-session-working-directory/consequences:
|
||||
en: 2dd3a4de72ee6d74
|
||||
zh: be5d8a80c8eaac6e
|
||||
en: da8ef050c25c7a7b
|
||||
zh: 8c9c1ca7467f986e
|
||||
@@ -10,13 +10,13 @@ A fixed Session creation directory cannot represent a task that changes checkout
|
||||
|
||||
## Decision
|
||||
|
||||
`dsh-working-directory` owns one logged effective directory per Session. Its projection initializes from the immutable original project and folds `working-directory/change`; consumers read that owner instead of deriving execution paths from the header or sandbox root. Directory changes validate through the filesystem provider, serialize within the Session, and publish only after the new directory is available.
|
||||
`dsh-working-directory` owns one logged effective directory per Session. Its projection initializes from the immutable original project and folds `workspace-root/change` events; consumers read that owner instead of deriving execution paths from the header or sandbox root. Directory changes validate through the filesystem provider, serialize within the Session, and publish only after the new directory is available.
|
||||
|
||||
The `dsh-base` composition mounts `working_directory({ cd? })` globally. The tool reads or changes the Session directory, so every Agent preset can select or recover it, including presets without file-editing tools. The Web composition keeps action tools in preset scopes.
|
||||
Only Host operations change the directory: worktree creation and exit, the forge panel, SDK requests, and child startup call the service. The [workspace-root note](2026-11-03-session-workspace-root.md) removed the model-facing `working_directory` tool, records each change as `workspace-root/change`, and ignores stored `working-directory/change` events.
|
||||
|
||||
Required user-context snapshots carry the current value; each committed change attempts to queue a notice through the ordinary Agent inbox. Cancellation or disposal may discard unadmitted notices while the directory event survives for subsequent requests. The original project is the recovery destination when the selected directory disappears. Missing recovery destinations produce an error. Write permissions remain independent.
|
||||
|
||||
Subagents capture the parent's current directory or an explicit override and commit their selected directory after inherited history. Existing processes, terminals, and persistent shells keep their process-local directory. Project instructions, skills, and completion follow the effective directory without changing Session identity, grouping, or runtime composition.
|
||||
Subagents start in the parent's current directory or a Host-chosen directory and commit that directory after inherited history. Existing processes, terminals, and persistent shells keep their process-local directory. Project instructions, skills, and completion follow the effective directory without changing Session identity, grouping, or runtime composition.
|
||||
|
||||
Live Session skill catalogs and file completion validate through the same directory owner. These reads can commit recovery and queue its notice before discovery, keeping discovered files and subsequent operations tied to the committed Session directory. Cold skill catalogs read the recorded projection without activating an Agent.
|
||||
|
||||
@@ -44,4 +44,4 @@ The runtime exposes one directory owner and preserves the original project. Cons
|
||||
|
||||
`{{cwd}}` has no loop-provided value; custom personas that depend on that built-in fail strict interpolation. Deployments remove those references using the [system-prompt migration guidance](../../../../packages/core/system-prompt/README.md). When both the current directory and its recovery destination are unavailable, prompt assembly rejects model turns; the [directory service recovery guidance](../../../../packages/session/working-directory/README.md#known-limitations-and-deferred-work) requires restoring the directory or selecting an existing absolute directory through the SDK or host service.
|
||||
|
||||
Verification covers independent Sessions, relative changes, replay, cancellation, recovery, tool disposal, user-context rendering, provider inheritance, and real directory-based operations.
|
||||
Verification covers independent Sessions, relative changes, replay, cancellation, recovery, user-context rendering, provider inheritance, and real directory-based operations.
|
||||
@@ -10,13 +10,13 @@ Status: implemented
|
||||
|
||||
## Decision
|
||||
|
||||
`dsh-working-directory` 拥有每个 Session 的一个日志化有效目录。投影从不可变的原始项目初始化,并折叠 `working-directory/change`;消费者读取该服务,而不是从 header 或沙箱根目录派生执行路径。目录变更通过文件系统 provider 验证,在 Session 内串行执行,并只在新目录可用后发布。
|
||||
`dsh-working-directory` 拥有每个 Session 的一个日志化有效目录。投影从不可变的原始项目初始化,并折叠 `workspace-root/change` 事件;消费者读取该服务,而不是从 header 或沙箱根目录派生执行路径。目录变更通过文件系统 provider 验证,在 Session 内串行执行,并只在新目录可用后发布。
|
||||
|
||||
`dsh-base` 组合在全局挂载 `working_directory({ cd? })`。该工具读取或改变 Session 目录,使每个 Agent preset 都能选择或恢复它,包括没有文件编辑工具的 preset。Web 组合把操作工具放在 preset 作用域中。
|
||||
只有 Host 操作改变目录:工作树的创建与退出、forge 面板、SDK 请求和子代理启动调用该服务。[工作区根记录](2026-11-03-session-workspace-root.zh.md)移除了面向模型的 `working_directory` 工具,把每次变更记录为 `workspace-root/change`,并忽略已存储的 `working-directory/change` 事件。
|
||||
|
||||
必需的用户上下文快照携带当前值;每次已提交变更都会尝试通过普通 Agent 收件箱排入通知。取消或销毁可能丢弃尚未进入请求的通知,但目录事件仍然保留,供后续请求使用。所选目录消失时恢复到原始项目。恢复目录也消失时返回错误。写权限保持独立。
|
||||
|
||||
子代理捕获父代理当前目录或显式覆盖值,并在继承历史之后提交选定目录。已有进程、终端和持久 shell 保留进程局部目录。项目指令、技能和补全跟随有效目录,不改变 Session 身份、归属或运行时组合。
|
||||
子代理从父代理的当前目录或 Host 选定的目录启动,并在继承历史之后提交该目录。已有进程、终端和持久 shell 保留进程局部目录。项目指令、技能和补全跟随有效目录,不改变 Session 身份、归属或运行时组合。
|
||||
|
||||
活跃 Session 的技能目录与文件补全通过同一个目录 owner 验证目录。这些读取可在发现操作之前提交恢复并排入通知,使发现的文件与后续操作关联到已提交的 Session 目录。冷态技能目录读取已记录的投影,不激活 Agent。
|
||||
|
||||
@@ -44,4 +44,4 @@ Playwright MCP 和 Chrome DevTools MCP 在获取 Session 的 MCP 连接时验证
|
||||
|
||||
`{{cwd}}` 没有循环提供的值;依赖该内置变量的自定义 persona 会触发严格插值错误。部署方按照[系统提示词迁移说明](../../../../packages/core/system-prompt/README.zh.md)移除这些引用。当前目录与恢复目标均不可用时,提示词组装会拒绝模型轮次;[目录服务恢复说明](../../../../packages/session/working-directory/README.zh.md#known-limitations-and-deferred-work)要求恢复目录,或通过 SDK 或 Host 服务选择现有的绝对目录。
|
||||
|
||||
验证覆盖 Session 相互独立、相对路径变更、回放、取消、恢复、工具卸载、用户上下文渲染、provider 继承和真实目录操作。
|
||||
验证覆盖 Session 相互独立、相对路径变更、回放、取消、恢复、用户上下文渲染、provider 继承和真实目录操作。
|
||||
+2
-2
@@ -15,8 +15,8 @@
|
||||
en: 9ff7f15985d06986
|
||||
zh: fe27ef687594c124
|
||||
/agent-note-client-session-references-reference-sources-and-ui-status/decision/addresses-bindings-and-references:
|
||||
en: 3743abc8bca00348
|
||||
zh: d79e6a9311f0a2fe
|
||||
en: 21659869e0d90071
|
||||
zh: 6a011076cf6676ca
|
||||
/agent-note-client-session-references-reference-sources-and-ui-status/decision/acquisition-failure-and-release:
|
||||
en: 84e9528d4f995460
|
||||
zh: f79f197d3dfbe8e9
|
||||
|
||||
@@ -52,7 +52,9 @@ The [blank Session decision](2026-09-17-process-local-blank-sessions.md) owns cr
|
||||
| `sessions.sessionOf(ctx)` | Returns the matching live Session face or `undefined`; an ended Context cannot resolve to a same-id replacement |
|
||||
| `sessions.create(...)` / `sessions.fork(...)` | Existing Host operations returning a Session identity; retaining and displaying it remain explicit |
|
||||
|
||||
`SessionRetainOptions` contains required `source: SessionReferenceSource` and optional `signal: AbortSignal`. Both acquisition methods accept `target: SessionTarget` and these options. Source keys are consumer-defined and declaration-merge extensible; there is no runtime source-registration protocol or default main-view source. A source is a usage label, not another Session address or a permission to act on it.
|
||||
`SessionRetainOptions` contains required `source: SessionReferenceSource`, optional `facets`, and optional `signal: AbortSignal`. Both acquisition methods accept `target: SessionTarget` and these options. Source keys are consumer-defined and declaration-merge extensible; there is no runtime source-registration protocol or default main-view source. A source is a usage label, not another Session address or a permission to act on it.
|
||||
|
||||
[Session retain facets and recent views](2026-11-15-session-retain-facets-and-recent-views.md) owns `facets`, the independently counted parts a reference keeps beyond its history stream, and the `recentViews` source.
|
||||
|
||||
### Acquisition, failure, and release
|
||||
|
||||
|
||||
@@ -52,7 +52,9 @@ Client Session 对象、Agent 作用域的 Client Context、引用、使用方
|
||||
| `sessions.sessionOf(ctx)` | 返回匹配的活跃 Session 接口或 `undefined`;已结束的 Context 不能解析为同 ID 替代代 |
|
||||
| `sessions.create(...)` / `sessions.fork(...)` | 既有 Host 操作,返回 Session 身份;持有与展示仍需显式执行 |
|
||||
|
||||
`SessionRetainOptions` 包含必填 `source: SessionReferenceSource` 与可选 `signal: AbortSignal`。两个获取方法均接受 `target: SessionTarget` 和这些 options。来源键由使用方定义,通过声明合并扩展;不提供运行时来源注册协议,也不默认使用主视图来源。来源是使用标签,不是另一种 Session 地址,也不授予操作权限。
|
||||
`SessionRetainOptions` 包含必填 `source: SessionReferenceSource`、可选 `facets` 与可选 `signal: AbortSignal`。两个获取方法均接受 `target: SessionTarget` 和这些 options。来源键由使用方定义,通过声明合并扩展;不提供运行时来源注册协议,也不默认使用主视图来源。来源是使用标签,不是另一种 Session 地址,也不授予操作权限。
|
||||
|
||||
[Session retain 子要素与最近访问会话](2026-11-15-session-retain-facets-and-recent-views.zh.md) 负责 `facets`,即引用在历史流之外独立计数保活的部分,以及 `recentViews` 来源。
|
||||
|
||||
### 获取、失败与释放
|
||||
|
||||
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
# Bilingual-pair consistency record for 2026-10-28-upstream-skills-runtime-download.md (docs/i18n/README.md): per heading
|
||||
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
||||
# After editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write .agents/notes/implemented/architecture/2026-10-28-upstream-skills-runtime-download.md
|
||||
/agent-note-runtime-download-of-upstream-skills:
|
||||
en: aa22dd6b2e4a7dd5
|
||||
zh: 19e36747a2ae6310
|
||||
/agent-note-runtime-download-of-upstream-skills/problem:
|
||||
en: 755fe8a192cfebe1
|
||||
zh: 855ad2920b33e364
|
||||
/agent-note-runtime-download-of-upstream-skills/decision:
|
||||
en: e601879f83a17cba
|
||||
zh: a5ab03a7804787fc
|
||||
/agent-note-runtime-download-of-upstream-skills/alternatives-considered:
|
||||
en: 3828cc141c037db6
|
||||
zh: 3a164d7a5886cbd2
|
||||
/agent-note-runtime-download-of-upstream-skills/consequences:
|
||||
en: 124556ff88e9e014
|
||||
zh: d25070f79bb2c726
|
||||
@@ -0,0 +1,31 @@
|
||||
# Agent Note: Runtime download of upstream skills
|
||||
|
||||
Status: implemented
|
||||
|
||||
English | [中文](2026-10-28-upstream-skills-runtime-download.zh.md)
|
||||
|
||||
## Problem
|
||||
|
||||
The WeCom and Tencent Meeting plugins index guides that their vendors publish only in their GitHub repositories: 180 files, about 1.75 MB, for WeCom and 11 for Tencent Meeting. A copy in this repository dominates each plugin's diff and every upstream update, and the plugins' npm packages would publish DeepSeek's copy of another company's content. DeepSeek does not publish such copies.
|
||||
|
||||
## Decision
|
||||
|
||||
Each of these plugins keeps only its DSH-authored entry `SKILL.md`, pins the upstream files by repository, commit, kept directory, exclusions, license file, total size, and a digest of the kept files, and registers both with `ctx.upstreamSkills`, the Service of [`@deepseek-ai/dsh-upstream-skills`](../../../../packages/connector/upstream-skills/README.md). The Service downloads the commit archive from GitHub when the plugin loads, keeps the directory and the license file, verifies them, publishes them in `$DSH_HOME/cache/<plugin>`, and lists the entry skill with that directory as its base directory. The plugin shows the download state beside the account state. Its check reads only the account and restarts a failed download without waiting for it: the CLI account runtime runs one operation at a time, so a check that waited for a slow GitHub download would also hold sign-in. Each archive source has `skillsTimeoutMs` to deliver the whole archive, and reading stops once the kept files exceed the pinned size. A plugin's `skillsDir` points at prepared files for tests and offline installations, and the Service's `skillsUrls` replaces the archive host for every plugin.
|
||||
|
||||
## Alternatives considered
|
||||
|
||||
**A copy in this repository.** It was the earlier approach. Byte-identical copies dominate review and upstream updates, and the plugins' npm packages republish them.
|
||||
|
||||
**A DSH-published package of the upstream files.** It moves the copy out of this repository, but it is still DeepSeek's own publication of another company's content.
|
||||
|
||||
**The vendors' npm packages.** Neither `@wecom/cli` nor `@tencentcloud/tmeet` ships the skills.
|
||||
|
||||
**jsDelivr or one request per file.** A CDN adds a third party between the vendor and the user. Per-file downloads need the file list in the pin and one request per file, while one archive per commit needs one request and lets the digest cover exactly what is kept.
|
||||
|
||||
**A digest of the archive bytes.** The files of a commit archive are stable, but GitHub does not keep its compressed bytes stable, so the digest covers the kept files' paths and contents instead.
|
||||
|
||||
**DingTalk's downloader.** DingTalk downloads checksummed release assets together with its executable. WeCom and Tencent Meeting publish no release assets and install their CLIs from npm, so only these two plugins register with this Service, and DingTalk keeps its own downloader.
|
||||
|
||||
## Consequences
|
||||
|
||||
The repository and the plugins' npm packages carry only the entry skills. The first load after a new pin needs GitHub or a configured mirror; until a download succeeds, the entry skill is not listed and the plugin shows the failure, which its next check retries. Tests, recorded Sessions, and Web end-to-end tests set `skillsDir` to fixture files and make no network requests. Published directories are never pruned. Updating a pin is a code change: `scripts/upstream-skills-digest.ts` prints the new pin, and the entry's guide index and a real-model run follow it.
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
# Agent Note:运行时下载上游技能
|
||||
|
||||
Status: implemented
|
||||
|
||||
[English](2026-10-28-upstream-skills-runtime-download.md) | 中文
|
||||
|
||||
## 问题
|
||||
|
||||
企业微信和腾讯会议插件索引的子指南,厂商只在自己的 GitHub 仓库里发布:企业微信 180 个文件,约 1.75 MB;腾讯会议 11 个。把它们复制进本仓库,会让副本占据每个插件的 diff 和每次上游更新,插件的 npm 包也会发布 DeepSeek 复制的其他公司内容。DeepSeek 不发布这类副本。
|
||||
|
||||
## 决策
|
||||
|
||||
这些插件只保留 DSH 自己编写的入口 `SKILL.md`,按仓库、提交、保留的目录、排除项、许可证文件、总大小和保留文件的摘要固定上游文件,并把两者注册到 `ctx.upstreamSkills`,即 [`@deepseek-ai/dsh-upstream-skills`](../../../../packages/connector/upstream-skills/README.zh.md) 的 Service。插件加载时,Service 从 GitHub 下载这个提交的归档,保留该目录和许可证文件,校验后发布到 `$DSH_HOME/cache/<插件>`,再列出入口技能,并把这个目录作为它的基础目录。插件在账号状态旁显示下载状态。它的检查只读取账号,并在不等待的情况下重新开始失败的下载:CLI 账号运行时一次只执行一个操作,检查若等待缓慢的 GitHub 下载,登录也会被占住。每个归档来源要在 `skillsTimeoutMs` 内送达完整归档,保留文件超过固定的大小时停止读取。插件的 `skillsDir` 为测试和离线安装指向准备好的文件,Service 的 `skillsUrls` 为所有插件替换归档主机。
|
||||
|
||||
## 考虑过的替代方案
|
||||
|
||||
**在本仓库中保留副本。** 这是之前的做法。逐字节相同的副本占据评审和上游更新,插件的 npm 包还会再次发布它们。
|
||||
|
||||
**由 DSH 发布上游文件的包。** 它把副本移出本仓库,但仍是 DeepSeek 自己发布其他公司的内容。
|
||||
|
||||
**厂商的 npm 包。** `@wecom/cli` 和 `@tencentcloud/tmeet` 都不包含这些技能。
|
||||
|
||||
**jsDelivr 或逐个文件请求。** CDN 在厂商和用户之间多了一个第三方。逐个文件下载需要在固定信息中列出文件,每个文件一次请求;每个提交一个归档只需一次请求,摘要也正好覆盖保留的文件。
|
||||
|
||||
**对归档字节做摘要。** 提交归档中的文件是稳定的,但 GitHub 不保证压缩后的字节稳定,因此摘要覆盖保留文件的路径和内容。
|
||||
|
||||
**钉钉的下载器。** 钉钉把带校验和的发布资产和可执行文件一起下载。企业微信和腾讯会议没有发布资产,CLI 从 npm 安装,因此只有这两个插件注册到这个 Service,钉钉保留自己的下载器。
|
||||
|
||||
## 影响
|
||||
|
||||
仓库和插件的 npm 包里只有入口技能。换用新的固定提交后,首次加载需要能访问 GitHub 或配置的镜像;下载成功之前,入口技能不会列出,插件显示失败,下一次检查会重试。测试、录制的 Session 和 Web 端到端测试都把 `skillsDir` 设为夹具文件,不发起网络请求。已发布的目录从不清理。更新固定提交需要改代码:`scripts/upstream-skills-digest.ts` 输出新的固定信息,随后更新入口的子指南索引,并用真实模型运行一次。
|
||||
@@ -0,0 +1,22 @@
|
||||
# Bilingual-pair consistency record for 2026-11-03-session-workspace-root.md (docs/i18n/README.md): per heading
|
||||
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
||||
# After editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write .agents/notes/implemented/architecture/2026-11-03-session-workspace-root.md
|
||||
/agent-note-session-workspace-root:
|
||||
en: f746e6645bc11001
|
||||
zh: b7666200c98a96fc
|
||||
/agent-note-session-workspace-root/problem:
|
||||
en: 6938aa715106bb99
|
||||
zh: ea1497b337712f33
|
||||
/agent-note-session-workspace-root/decision:
|
||||
en: b42597fdf9838587
|
||||
zh: cb36853abde00754
|
||||
/agent-note-session-workspace-root/deferred:
|
||||
en: 8807b3829badfdcd
|
||||
zh: 2ec10ce7f0dda3f4
|
||||
/agent-note-session-workspace-root/alternatives-considered:
|
||||
en: 35ccc31b8b40d014
|
||||
zh: 7bf3c9f45afae8ab
|
||||
/agent-note-session-workspace-root/consequences:
|
||||
en: 7cef9fcd81f95833
|
||||
zh: 4211d4ae53dd4974
|
||||
@@ -0,0 +1,49 @@
|
||||
# Agent Note: Session workspace root
|
||||
|
||||
Status: implemented
|
||||
|
||||
English | [中文](2026-11-03-session-workspace-root.zh.md)
|
||||
|
||||
## Problem
|
||||
|
||||
A Session that enters a Git worktree records only a changed current directory. The `working_directory` tool recorded the same event for a model's `cd` into a subdirectory or out of the project, so a consumer could not tell a model-moved cursor from a changed checkout: a file view, a change summary, or a write boundary either followed every `cd` or stayed on the original project. Usage did not justify the cursor: in 58 recorded Sessions of one developer that offered the tool, the model called it once in 6,229 tool calls and prefixed 61% of its shell commands with `cd`.
|
||||
|
||||
## Decision
|
||||
|
||||
A Session works in one directory, and only Host operations move it. The model-facing `working_directory` tool and the `cwd` parameter of the delegation tools are removed; the model reaches a subdirectory through paths and the shell's per-call `workdir`. `header.cwd` remains the immutable original project: Session identity, workspace grouping, and the recovery destination. `dsh-working-directory` owns the directory and has one read, `get`: relative paths resolve from the directory, and it is the workspace root that consumers bound writes, file views, and discovery by. Every change the service records, through `set` or the recovery of `ensure`, is a `workspace-root/change`.
|
||||
|
||||
`workspace-root/change` is a new ordinary event type, recorded as a same-version persistence change in the [acknowledgement](../../../../docs/persistence-changes/2026-11-13-workspace-root-change.md). `working-directory/change` stays in the event vocabulary, deprecated and without a writer. Readers ignore a stored one: the same event recorded the model's `cd` and an entered worktree, and most stored ones are a `cd`, since few stored Sessions ran the worktree plugin. A Session that holds them resumes in its original project, or in the directory of its last `workspace-root/change`, and the next request's context reports the directory. An older build refuses a log that holds `workspace-root/change`; a Session that never moves its workspace holds none.
|
||||
|
||||
Worktree creation enters the checkout through `set`. The model has one tool for entering a checkout, `enter_worktree`: a name selects a worktree inside the pool of the checkout the Session works in. An existing one is entered through `ctx.worktrees.enter`, and a new one is created through `ctx.worktrees.create` when none has that name. The name cannot leave that pool, so the model still cannot choose an arbitrary directory. `ctx.worktrees.exit`, exposed as `exit_worktree`, returns the Session from the recorded worktree that contains its directory to the checkout it created or entered that worktree from. A child subagent keeps the parent's original project in its header and starts, through `set`, in the parent's directory or a Host-chosen directory.
|
||||
|
||||
## Deferred
|
||||
|
||||
The sandbox write boundary, the workspace file service, desktop file drag, the change recorder, and the client file tree, deliverables, open-in-app actions, and Session rows still read `header.cwd`. Until those consumers read the Session's directory, they behave as they did before this decision, and a worktree outside the original project is writable only where the original project's boundary already allows it.
|
||||
|
||||
## Alternatives considered
|
||||
|
||||
**Keep the cursor and derive the root from registered anchors.** An optional `anchor` on the change, an anchor list, and a longest-containing-anchor rule separate a model's `cd` from a changed checkout, at the cost of three directories, a relocation operation, and an inheritance rule for children. Removing the only model-facing mover makes that separation unnecessary.
|
||||
|
||||
**Derive the root from the worktree plugin's creation record.** That record is an ignorable experimental plugin record, which a format migration keeps only on a best-effort basis; a released package must not derive a write boundary from it.
|
||||
|
||||
**Rewrite the header on relocation.** The header is identity metadata for storage, grouping, and permission roots; the [working-directory note](2026-09-13-session-working-directory.md) rejected rewriting it.
|
||||
|
||||
**An optional `workspace` marker on `working-directory/change`.** Older readers ignore the property and keep reading every log. Every change the service records would then carry a constant, and a missing property would be the only sign of a stored change; a separate event names the workspace move and leaves the stored event unchanged.
|
||||
|
||||
**Retire `working-directory/change` through a format migration.** The stored event carries no origin, so a migration would classify each one by its neighbouring events. Ignoring stored events needs no rewrite of the log. The [compatibility rules](../../../../docs/persistence-changes/README.md#compatibility-rules) reserve a version bump for changes that an existing discriminator cannot make safe.
|
||||
|
||||
**Enter a worktree by path.** A model-supplied path would move the write boundary to any registered worktree, which removing the directory tool ruled out unless the user approves each move. A `tools/pre-execute` listener can ask for that approval through the approval service; this decision leaves the path form, and with it entry of a sibling from inside a worktree, to a later change. A name inside the pool keeps the boundary inside the checkout.
|
||||
|
||||
**Separate tools for creation and entry.** `create_worktree` beside `enter_worktree` gave the model two tools for one action, entering a worktree, and made it choose by whether the worktree exists. One tool follows Claude Code's `EnterWorktree`, which creates a worktree or opens the one of that name. In the 79 recorded Sessions of one developer that offered `create_worktree`, the model called it once in 6,599 tool calls, so removing the name affects few stored Sessions.
|
||||
|
||||
**Persist the shell's `cd` between calls.** That is an implicit cursor. In that developer's Sessions, 68% of `cd` prefixes named a directory outside the Session directory and 30% the Session directory itself, so a persisted directory confined to the workspace would apply to about 2%.
|
||||
|
||||
**Two public reads.** `get` for relative paths beside `rootOf` for the workspace root kept every stored directory, and made each consumer choose between two values that are equal in every Session started from this version on. One read removes that choice.
|
||||
|
||||
**Keep every stored directory.** Reading every stored `working-directory/change` as the directory would let a stored model `cd`, including one to a home directory, become the write boundary once consumers follow the directory.
|
||||
|
||||
**Keep stored directories inside the original project.** A Session that entered a worktree would resume there, but the rule cannot tell a worktree from a `cd`: a stored `cd` into a subdirectory would narrow the write boundary and the file views, and a worktree outside the directory a Session was opened in would be dropped.
|
||||
|
||||
## Consequences
|
||||
|
||||
Consumers read one directory through `get`. A stored Session resumes in its original project whatever directory its `working-directory/change` events recorded, and follows Host moves from there. One that worked in a worktree returns to it through `enter_worktree`; until then its relative paths resolve in the original project. The model enters a checkout only through `enter_worktree`: a new one, or a registered one in the pool. A checkout elsewhere needs a Host operation. The ACP, SDK, and Web producers record the original project by its canonical spelling, so a Host move back to it records no change. The worktree snapshot fixture covers entering, leaving, and losing a worktree. Moving the consumers listed under Deferred is a separate change.
|
||||
@@ -0,0 +1,49 @@
|
||||
# Agent Note: Session workspace root
|
||||
|
||||
Status: implemented
|
||||
|
||||
[English](2026-11-03-session-workspace-root.md) | 中文
|
||||
|
||||
## Problem
|
||||
|
||||
进入 Git 工作树的 Session 只记录当前目录的变化。`working_directory` 工具在模型 `cd` 进子目录或离开项目时记录的是同一种事件,消费方因此无法区分模型移动的光标和已切换的检出:文件视图、变更汇总或写边界要么跟随每一次 `cd`,要么停留在原始项目。实际用法也不支持保留光标:在一位开发者的 58 个提供该工具的已记录 Session 中,模型在 6,229 次工具调用里只调用了它一次,61% 的 shell 命令自带 `cd` 前缀。
|
||||
|
||||
## Decision
|
||||
|
||||
一个 Session 在一个目录中工作,只有 Host 操作移动它。面向模型的 `working_directory` 工具与委派工具的 `cwd` 参数被移除;模型通过路径和 shell 的单次调用参数 `workdir` 到达子目录。`header.cwd` 仍是不可变的原始项目:Session 身份、工作区归属和恢复目的地。`dsh-working-directory` 拥有该目录,只有一个读取接口 `get`:相对路径从该目录解析,消费方也以它作为工作区根来限定写入、文件视图和发现。服务通过 `set` 或 `ensure` 的恢复记录的每次变更都是 `workspace-root/change`。
|
||||
|
||||
`workspace-root/change` 是新增的普通事件类型,作为同版本持久化变更记录在[确认记录](../../../../docs/persistence-changes/2026-11-13-workspace-root-change.zh.md)中。`working-directory/change` 保留在事件词汇表中,已标为 deprecated,没有写入方。读者忽略已存储的这类事件:同一种事件既记录模型的 `cd`,也记录进入工作树,而已存储的 Session 很少启用工作树插件,其中大多数是 `cd`。含有这类事件的 Session 在原始项目中恢复,或在最近一条 `workspace-root/change` 的目录中恢复,下一次请求的上下文会报告该目录。旧版本拒绝含有 `workspace-root/change` 的日志;从未移动工作区的 Session 不含该事件。
|
||||
|
||||
工作树创建通过 `set` 进入检出目录。模型只有一个进入检出的工具 `enter_worktree`:名称在 Session 所在检出的池中选中一个工作树。已有的工作树通过 `ctx.worktrees.enter` 进入,没有同名工作树时通过 `ctx.worktrees.create` 新建。名称无法离开该池,因此模型仍然不能选择任意目录。`ctx.worktrees.exit` 以 `exit_worktree` 的形式提供,它找到包含 Session 目录的已记录工作树,把 Session 送回创建或进入该工作树时所在的检出。子代理的 header 保留父级的原始项目,并通过 `set` 从父级的目录或 Host 选定的目录启动。
|
||||
|
||||
## Deferred
|
||||
|
||||
沙箱写边界、工作区文件服务、桌面文件拖拽、变更记录器,以及客户端文件树、交付物、在应用中打开的操作和 Session 行仍然读取 `header.cwd`。在这些消费方改读 Session 的目录之前,它们的行为与本决策之前相同,位于原始项目之外的工作树只有在原始项目的边界已经允许时才可写。
|
||||
|
||||
## Alternatives considered
|
||||
|
||||
**保留光标,从已登记的锚推导根。** 在变更上增加可选的 `anchor`、维护锚列表并取包含目录的最长锚,可以区分模型的 `cd` 与检出切换,代价是三个目录、一个重定位操作和一条子会话继承规则。移除唯一面向模型的移动入口之后,这种区分不再必要。
|
||||
|
||||
**从工作树插件的创建记录推导根。** 该记录是可忽略的实验性插件记录,格式迁移只尽力保留;已发布的包不能据此推导写边界。
|
||||
|
||||
**重定位时改写 header。** header 是存储、归属与权限根使用的身份元数据;[工作目录记录](2026-09-13-session-working-directory.zh.md)已否决改写它。
|
||||
|
||||
**在 `working-directory/change` 上增加可选的 `workspace` 标记。** 旧读者忽略该属性,仍能读取所有日志。但服务记录的每次变更都要带一个恒定值,缺少属性成为识别已存储变更的唯一依据;单独的事件为工作区移动命名,并让已存储的事件保持不变。
|
||||
|
||||
**通过格式迁移退役 `working-directory/change`。** 已存储的事件不带来源,迁移只能依据相邻事件逐条分类。忽略已存储的事件不需要改写日志。[兼容性规则](../../../../docs/persistence-changes/README.zh.md#compatibility-rules)只在现有判别符无法保证安全时才要求升版本。
|
||||
|
||||
**按路径进入工作树。** 模型提供的路径会把写边界移到任意已登记的工作树,除非用户逐次批准,否则这正是移除目录工具所排除的。`tools/pre-execute` 监听器可以通过审批服务请求这一批准;本决定把路径形式,以及随之而来的“从工作树内进入同级工作树”,留给之后的变更。池内的名称把边界留在检出之内。
|
||||
|
||||
**创建与进入各用一个工具。** `create_worktree` 与 `enter_worktree` 并存时,模型为“进入工作树”这一个动作面对两个工具,还要按工作树是否存在来选择。单一工具与 Claude Code 的 `EnterWorktree` 一致,后者创建工作树,或打开同名的已有工作树。在一位开发者提供过 `create_worktree` 的 79 个已记录 Session 中,模型在 6,599 次工具调用里只调用过它一次,因此移除这个名称影响的已存储 Session 很少。
|
||||
|
||||
**在调用之间保留 shell 的 `cd`。** 这是一个隐式的光标。在该开发者的 Session 中,68% 的 `cd` 前缀指向 Session 目录之外,30% 指向 Session 目录本身,限制在工作区内的保留只对约 2% 生效。
|
||||
|
||||
**两个公开读取接口。** 用 `get` 读相对路径的基准、用 `rootOf` 读工作区根,可以保留每个已存储的目录,但每个消费方都要在两个值之间做选择,而这两个值在从这个版本起启动的每个 Session 中都相等。只保留一个读取接口,就不需要这种选择。
|
||||
|
||||
**保留每个已存储的目录。** 把每条已存储的 `working-directory/change` 都读作目录,消费方跟随目录之后,已存储的模型 `cd`(包括进入用户主目录的)会成为写边界。
|
||||
|
||||
**保留原始项目之内的已存储目录。** 进入过工作树的 Session 会在工作树中恢复,但这条规则分不清工作树与 `cd`:已存储的进入子目录的 `cd` 会收窄写边界和文件视图,而位于 Session 打开目录之外的工作树会被丢弃。
|
||||
|
||||
## Consequences
|
||||
|
||||
消费方通过 `get` 读取一个目录。无论 `working-directory/change` 事件记录了什么目录,已存储的 Session 都在原始项目中恢复,并从那里跟随 Host 移动。曾在工作树中工作的 Session 通过 `enter_worktree` 回到工作树;在此之前,它的相对路径在原始项目中解析。模型只能通过 `enter_worktree` 进入检出:新建的检出,或池中已登记的检出。其他位置的检出需要 Host 操作。ACP、SDK 与 Web 的生产方以规范拼写记录原始项目,因此 Host 移回原始项目时不记录变更。工作树快照夹具覆盖进入、离开和失去工作树。迁移 Deferred 中列出的消费方是另一项变更。
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
# Bilingual-pair consistency record for 2026-11-15-session-retain-facets-and-recent-views.md (docs/i18n/README.md): per heading
|
||||
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
||||
# After editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write .agents/notes/implemented/architecture/2026-11-15-session-retain-facets-and-recent-views.md
|
||||
/agent-note-session-retain-facets-and-recently-viewed-sessions:
|
||||
en: 903aecad7bc8a610
|
||||
zh: 17f8f0c420035cc1
|
||||
/agent-note-session-retain-facets-and-recently-viewed-sessions/problem:
|
||||
en: 455344d0dc6aec78
|
||||
zh: cd0b86cc1cd2cbe7
|
||||
/agent-note-session-retain-facets-and-recently-viewed-sessions/decision:
|
||||
en: d1fa71821f857f8b
|
||||
zh: 15308ccd85c6c25c
|
||||
/agent-note-session-retain-facets-and-recently-viewed-sessions/decision/connection-and-facets:
|
||||
en: 6c72ad036c9f9834
|
||||
zh: 0922647e1f58a811
|
||||
/agent-note-session-retain-facets-and-recently-viewed-sessions/decision/the-conversation-facet:
|
||||
en: a6031fa553aae23b
|
||||
zh: 77e534b656ae660e
|
||||
/agent-note-session-retain-facets-and-recently-viewed-sessions/decision/the-draft-reference:
|
||||
en: db1266225cc204e9
|
||||
zh: d786fe7fca2c783e
|
||||
/agent-note-session-retain-facets-and-recently-viewed-sessions/decision/reference-sources-and-facets:
|
||||
en: cb761521ca56fe93
|
||||
zh: 76f8797f4808407d
|
||||
/agent-note-session-retain-facets-and-recently-viewed-sessions/decision/recently-viewed-sessions-recentviews:
|
||||
en: 1af8b25948c049f2
|
||||
zh: 6444d8d9eacf6fc2
|
||||
/agent-note-session-retain-facets-and-recently-viewed-sessions/alternatives-considered:
|
||||
en: 7a484119b745aee9
|
||||
zh: 3092d3dbda8397cd
|
||||
/agent-note-session-retain-facets-and-recently-viewed-sessions/consequences:
|
||||
en: 9ec4b80ad5f74041
|
||||
zh: f20bc50bf5e4dd2c
|
||||
/agent-note-session-retain-facets-and-recently-viewed-sessions/testing:
|
||||
en: 83e4d88dce18a4de
|
||||
zh: 36bdf8f95c1fa373
|
||||
+131
@@ -0,0 +1,131 @@
|
||||
# Agent Note: Session retain facets and recently viewed Sessions
|
||||
|
||||
Status: implemented
|
||||
|
||||
English | [中文](2026-11-15-session-retain-facets-and-recent-views.zh.md)
|
||||
|
||||
## Problem
|
||||
|
||||
When the Web Client main view switched away from a Session, it released that Session's `mainView` reference. Once the reference count reached zero, the Client disposed the Session's binding, event window, and Conversation assembly state, so returning to it pulled history again.
|
||||
|
||||
Keeping a Session alive is inexpensive: the event window only appends, the stream shares the one Gateway WebSocket, and Host-side subscriptions are passive. The cost lies in derived computation. [`BoundConversation`](../../../../packages/client/ui-conversation/src/client/conversation/assembly.ts) subscribed to the event window when constructed; afterwards every event, including every `assistant/live-chunk`, passed through Definition `match`/`update` folding and rAF-batched publication whether or not the Session was rendered. A retained background Session that keeps running would keep paying that cost.
|
||||
|
||||
The retain interface could only express retaining or releasing the whole Session; it could not express receiving data without derived computation.
|
||||
|
||||
## Decision
|
||||
|
||||
This decision extends [Client Session references](2026-09-15-client-session-references.md) without superseding it: references and source counts are unchanged; `SessionRetainOptions` carries `connection` and facets, and a reference without the connection is ready once its binding exists. It replaces the draft-attachment ownership of [draft attachments across Session switches](../bug-fix/2026-11-13-draft-attachments-across-session-switches.md) with the `draft` reference.
|
||||
|
||||
### Connection and facets
|
||||
|
||||
A Session reference always keeps the Session object and its scope, which hold local state such as the composer draft and pending submission echoes. Two options decide what it keeps beyond that:
|
||||
|
||||
```ts ignore-check
|
||||
export interface SessionRetainOptions {
|
||||
readonly source: SessionReferenceSource
|
||||
/** Keeps the Session's own event connection and the event window it keeps current; defaults to `true`. */
|
||||
readonly connection?: boolean
|
||||
/** Owner-declared facets this reference keeps computing over the Session's data; an absent key is not computed. */
|
||||
readonly facets?: Readonly<Partial<Record<SessionRetainFacet, true>>>
|
||||
readonly signal?: AbortSignal | undefined
|
||||
}
|
||||
|
||||
export interface SessionRetainInfo {
|
||||
// existing members unchanged
|
||||
/** Positive counts of references retaining each facet; absent while no reference retains any facet. */
|
||||
readonly retainedFacets?: Readonly<Partial<Record<SessionRetainFacet, number>>>
|
||||
/** Positive count of references keeping the event connection; absent while none does. */
|
||||
readonly connectionCount?: number
|
||||
}
|
||||
```
|
||||
|
||||
| Rule | Behavior |
|
||||
|---|---|
|
||||
| Connection | The connection is the Session's own follow stream plus the event window it keeps current, not the page transport. It opens when the first reference that keeps it is retained; when the last such reference is released while the scope remains, `Session.disconnect()` closes it, empties the window, and returns the Session to its cold state while keeping pending submission echoes; the next reference that keeps it connects as a first open |
|
||||
| Facets | The owning package adds a facet to `SessionRetainFacetMap` through declaration merging; the Controller assigns no meaning to any facet. An absent key is not computed; a facet computes over the data the connection keeps, so without it there is nothing to compute |
|
||||
| Buffered older pages | When the last facet is released while the connection remains, `Session.bufferOlder()` keeps only the last Turn-aligned page visible and hands the older entries to its `SessionEventStream`. The Session pages back exactly as before; the stream answers page reads from those buffered records, cut by the request's Turn window, without a request, and reads Host pages after they run out. A replaced window drops the buffer, and it leaves with the stream on resync, disconnect, or disposal. [`buffered-pages.ts`](../../../../packages/api/session-controller/src/client/sessions/buffered-pages.ts) owns the page cut |
|
||||
| Counting | [`shiftFacetCounts`](../../../../packages/api/session-controller/src/client/sessions/facets.ts) keeps one count per facet beside `connectionCount` and the per-source `retainedBy` counts in the generation's `SessionRetainInfo`; `retainInfo(id)` publishes every change, and owners derive their facet from that snapshot and the current binding, so `SessionBinding` is unchanged |
|
||||
| Immutability | A reference's options are fixed at creation; changing them retains a new reference before releasing the old one |
|
||||
| `using()` | Signature unchanged; borrowed references keep the connection by default and request no facet |
|
||||
| `retainAgentScope` | Keeps neither the connection nor a facet |
|
||||
|
||||
### The `conversation` facet
|
||||
|
||||
`ui-conversation` declares `conversation`: Conversation assembly of the event window and materialization of its views.
|
||||
|
||||
- `BoundConversation` remains one per binding, and its `snapshot`, `openTurn`, and `target(t)` sources keep stable identities. `UiConversation.binding()` registers the binding's disposal on the Session scope before the binding starts following, and a failed initial fold disposes the binding so the next resolution starts afresh.
|
||||
- While the facet is retained, the binding folds the whole current window once, publishes it synchronously, and follows window changes; a fold that fails leaves the binding unfolded, so the next window change folds the whole window again.
|
||||
- When the facet is released, the binding unsubscribes, cancels a pending rAF, drops its fold, and publishes the empty result once; registry changes while released are not applied until it is retained again. A feed dispatch already in progress checks whether the binding still follows, so a release during that dispatch stops folding immediately.
|
||||
- Two computations follow the `conversation` facet: `BoundConversation` and the [ui-chat](../../../../packages/client/ui-chat/src/client/apply.ts) quota listener, which neither publishes nor replays notices for failures received while the facet is not retained.
|
||||
|
||||
### The `draft` reference
|
||||
|
||||
The [input hub](../../../../packages/client/ui-conversation/src/client/input/hub.ts) holds a Session with `{ source: 'draft', connection: false }` while its composer draft has attachments and the Session is not removed. The scope, and with it the same composer shell and its browser-owned attachments, therefore survives every view releasing the Session; returning reconnects and refolds while the composer keeps its attachments, uploads, and failed-upload retries. Removing the last attachment, sending it, or removing the Session releases the hold, and scope teardown then releases every draft attachment. A page unload still marks the Sessions whose draft holds attachments, and the next page reports them as discarded.
|
||||
|
||||
### Reference sources and facets
|
||||
|
||||
| Source | Owning package | Options |
|
||||
|---|---|---|
|
||||
| `mainView` | declared by ui-session, retained by ui-workspace | `{ conversation: true }` |
|
||||
| `sidebarView` | ui-sidebar-right | `{ conversation: true }` |
|
||||
| `sidebarChat` | ui-subagent | `{ conversation: true }` |
|
||||
| `recentViews` | ui-workspace | omitted: connection only |
|
||||
| `draft` | ui-conversation | `{ connection: false }` |
|
||||
| `using()` callers | their own packages | omitted |
|
||||
| `gateway` | session-controller | internal entry without connection |
|
||||
| Test fixture default | test-support/client-runtime | `{ source: 'testFixture', facets: { conversation: true } }` |
|
||||
|
||||
### Recently viewed Sessions: `recentViews`
|
||||
|
||||
ui-workspace [navigation](../../../../packages/client/ui-workspace/src/client/navigation.ts) owns a [`RecentSessionViews`](../../../../packages/client/ui-workspace/src/client/recent-views.ts), which holds one `recentViews` reference for each recent view.
|
||||
|
||||
Its state records only what the user did: the order in which Sessions left the main view and the Session the main view shows now. One idempotent `sync()` derives the Sessions to hold from that state and the current Session list, Workspace list, and Session UI status, retains the missing ones, then releases the rest. Navigation calls `show(sessionId)` after retaining the new `mainView` reference and before releasing the previous one; Session list, Workspace list, and status changes call `sync()`. Retaining publishes the Session list synchronously, so a re-entrant `sync()` only marks the state dirty and the running pass repeats until the selection is stable.
|
||||
|
||||
| Rule | Behavior |
|
||||
|---|---|
|
||||
| Order | Both `mainView` references are held while `show()` syncs, so the previous Session moves to the recent views before its `mainView` reference is released and its reference count never reaches zero; the main-view Session is never a recent view, and reselecting it leaves the selection unchanged |
|
||||
| Blank | A Session still blank when the main view leaves it does not enter |
|
||||
| Failure | A failed retention is reported to the console once and the Session leaves the order, so it is released with its `mainView` reference; navigation continues |
|
||||
| Exit | A removed, archived, or evicted Session leaves the order and returns only when the main view leaves it again |
|
||||
| Attention | A Session that is running, awaits the user, or has an unread completion, as the unified Session UI status reports, is neither counted nor evicted; once it is read and idle it counts again |
|
||||
| Limit | The ui-workspace `recentViewLimit` configuration, 10 by default, counted Sessions besides the main-view Session; a volatile Host `Config` field the browser receives through [synced plugin configuration](2026-11-15-client-config-sync.md), so a change applies without a reload and Sessions already evicted do not return |
|
||||
| Eviction | Beyond the limit, the least recently left unpinned Session is evicted first, then the least recently left pinned one; the list is checked again whenever the Session list, Workspace list, or Session UI status changes |
|
||||
| Disposal | Plugin disposal unsubscribes from both lists and the status, clears the order, and releases every reference |
|
||||
|
||||
## Alternatives considered
|
||||
|
||||
**Decide following by subscriber count.** `BoundConversation` would fold only while subscribed and catch up synchronously on cold reads. React renders before it subscribes, so following would depend on read-time catch-up to avoid a stale first frame, and whether computation runs would follow incidental subscription timing rather than the owner's intent.
|
||||
|
||||
**Split reference sources into render and hold classes.** This expresses only one switch; an independently counted part such as a draft would need another classification.
|
||||
|
||||
**Owner-declared facet defaults at runtime.** This requires a Controller runtime registry plus recounting across load order and HMR, while the rule that an omitted facet is not retained suffices.
|
||||
|
||||
**Expose a facet observable on `SessionBinding`.** A new required `SessionBinding` member breaks every hand-built binding, including third-party test fakes, while facet counts are local reference counts that `retainInfo` already publishes beside the per-source counts.
|
||||
|
||||
**Retention levels instead of facets.** A fixed `state`, `cache`, `live` enumeration cannot grow with later owner needs, while a default-on `connection` plus owner facets expresses the same three states.
|
||||
|
||||
**Keep the last fold after the facet is released.** A stale result with no owner adds a hidden state; the window stays, and folding only its last page on return is cheap.
|
||||
|
||||
**Root-level draft-attachment ownership.** Recording owners in the Conversation service and re-adopting them in a new composer duplicates Session lifetime tracking with a catalog watch; holding the scope keeps the composer itself.
|
||||
|
||||
**Keep background Session DOM.** React 18 has no `<Activity>`; K hidden subtrees pay layout, memory, and subscription costs and conflict with the single-Session `session-maybe` binding.
|
||||
|
||||
**Keep folding while unretained and only defer publication.** The `match`/`update` cost of stream chunks remains.
|
||||
|
||||
**Compute a bespoke difference between the folded inputs and the window.** One attempt can start, stream, and settle entirely while unretained, which makes such difference logic error-prone; returning folds the last page from scratch instead.
|
||||
|
||||
## Consequences
|
||||
|
||||
- A recent view switches back without a history request and folds only its last page; paging back through pages already loaded makes no request.
|
||||
- A recent view keeps its whole loaded window in memory; it keeps no Conversation fold.
|
||||
- A Session evicted from the recent views with draft attachments keeps its composer but not its window, so returning to it requests history again.
|
||||
- The attention-protected recent views have no upper bound: an unread completion stays protected until the user reads it, so each Session that finishes unread while the user is elsewhere keeps its generation, loaded event window, and history follow stream until it is read, marked read, removed, or archived.
|
||||
- A rendering owner that omits `conversation: true` sees an unretained stale or empty snapshot without an error.
|
||||
- `SessionRetainOptions` and `SessionRetainInfo` gain optional fields only; a third-party Client plugin that renders a Session it retains under its own source must add `facets: { conversation: true }`, and a plugin that only needs local state may pass `connection: false`, which the [upgrade guide](../../../../docs/upgrade-guide/v0.2.2-rc.3/session-retain-conversation-facet/guide.md) describes.
|
||||
|
||||
## Testing
|
||||
|
||||
- [reference-ownership.client.spec.ts](../../../../packages/api/session-controller/tests/reference-ownership.client.spec.ts) covers per-facet and connection counting, holding a Session without connecting it, disconnecting after the last connected reference, buffering older pages after the last facet, and counts ending with the generation and root disposal; [session.client.spec.ts](../../../../packages/api/session-controller/tests/session.client.spec.ts) covers buffered-page paging, Turn jumps, Host paging after buffered pages, buffering again after live growth, and disconnect then reconnect.
|
||||
- [conversation-registry.client.spec.ts](../../../../packages/client/ui-conversation/tests/conversation-registry.client.spec.ts) covers dropping the fold on release, one synchronous fold on retention, equality with continuous following, activation and registry changes while not following, a release during an in-progress dispatch, a cancelled rAF publication, a failed fold, and a failed initial fold leaving no subscription; [draft-attachment-retention.client.spec.ts](../../../../packages/client/ui-conversation/tests/draft-attachment-retention.client.spec.ts) covers the `draft` reference, its release, removed Sessions, and unload marks.
|
||||
- [quota-notice.client.spec.tsx](../../../../packages/client/ui-chat/tests/quota-notice.client.spec.tsx) covers quota notices publishing only while the facet is retained.
|
||||
- [recent-views.client.spec.ts](../../../../packages/client/ui-workspace/tests/recent-views.client.spec.ts) and [workspaces-service.client.spec.ts](../../../../packages/client/ui-workspace/tests/workspaces-service.client.spec.ts) cover the attention and pin rules, synchronous re-entrancy during retention, the main-view Session staying out of the count, eviction without automatic return, configuration, list-driven reconciliation, and returning to a recent view through the same generation without reopening history.
|
||||
+131
@@ -0,0 +1,131 @@
|
||||
# Agent Note: Session retain 子要素与最近访问会话
|
||||
|
||||
Status: implemented
|
||||
|
||||
[English](2026-11-15-session-retain-facets-and-recent-views.md) | 中文
|
||||
|
||||
## 问题
|
||||
|
||||
Web Client 的主视图切走一个 Session 时,会释放该 Session 的 `mainView` 引用。引用计数归零后,Client 销毁该 Session 的 binding、事件窗口和 Conversation 折叠状态,切回时只能重新拉取历史。
|
||||
|
||||
保住 Session 本身代价不高:事件窗口只追加,数据流复用同一条 Gateway WebSocket,Host 侧订阅是被动的。真正的开销在派生计算。[`BoundConversation`](../../../../packages/client/ui-conversation/src/client/conversation/assembly.ts) 在构造时就订阅事件窗口,此后不论 Session 是否被渲染,每个事件(包括每个 `assistant/live-chunk`)都要经过 Definition 的 `match`/`update` 折叠,并按 rAF 合批发布。被保住的后台 Session 只要仍在运行,就会一直付出这笔计算。
|
||||
|
||||
retain 接口只能表达保住或释放整个 Session,无法表达「只收数据,不做派生计算」。
|
||||
|
||||
## 决策
|
||||
|
||||
本决策扩展 [Client Session 引用](2026-09-15-client-session-references.zh.md),但不取代它:引用与来源计数不变;`SessionRetainOptions` 携带 `connection` 与子要素,不保留连接的引用在 binding 建好时即就绪。它以 `draft` 引用取代 [跨会话切换保留草稿附件](../bug-fix/2026-11-13-draft-attachments-across-session-switches.zh.md) 中的草稿附件归属机制。
|
||||
|
||||
### 连接与子要素
|
||||
|
||||
Session 引用始终保活 Session 对象及其作用域,作用域上保存草稿、发送回显等本地状态。两个选项决定在此之外还保留什么:
|
||||
|
||||
```ts ignore-check
|
||||
export interface SessionRetainOptions {
|
||||
readonly source: SessionReferenceSource
|
||||
/** Keeps the Session's own event connection and the event window it keeps current; defaults to `true`. */
|
||||
readonly connection?: boolean
|
||||
/** Owner-declared facets this reference keeps computing over the Session's data; an absent key is not computed. */
|
||||
readonly facets?: Readonly<Partial<Record<SessionRetainFacet, true>>>
|
||||
readonly signal?: AbortSignal | undefined
|
||||
}
|
||||
|
||||
export interface SessionRetainInfo {
|
||||
// existing members unchanged
|
||||
/** Positive counts of references retaining each facet; absent while no reference retains any facet. */
|
||||
readonly retainedFacets?: Readonly<Partial<Record<SessionRetainFacet, number>>>
|
||||
/** Positive count of references keeping the event connection; absent while none does. */
|
||||
readonly connectionCount?: number
|
||||
}
|
||||
```
|
||||
|
||||
| 规则 | 行为 |
|
||||
|---|---|
|
||||
| 连接 | 连接指 Session 自己的 follow 流及其维持最新的事件窗口,不是页面传输连接。第一个保留连接的引用出现时建立;作用域仍在而最后一个保留连接的引用被释放时,`Session.disconnect()` 关闭连接、清空窗口,并让 Session 回到 cold 状态,发送回显保留;下一个保留连接的引用按首次打开的流程重新连接 |
|
||||
| 子要素 | owner 包通过声明合并把子要素加入 `SessionRetainFacetMap`;Controller 不赋予任何子要素含义。未写的键不计算;子要素基于连接保有的数据计算,没有数据就无从计算 |
|
||||
| 缓冲的更早页 | 连接仍在而最后一个子要素被释放时,`Session.bufferOlder()` 只让按 Turn 对齐的最后一页可见,并把更早的条目交给它的 `SessionEventStream`。Session 的翻页逻辑不变;stream 读页时先按请求的 Turn 窗口从这些缓冲记录中切一页返回,不发请求,用完后再读 Host 分页。窗口被整体替换时丢弃缓冲,resync、断开或销毁时随 stream 一起丢弃。[`buffered-pages.ts`](../../../../packages/api/session-controller/src/client/sessions/buffered-pages.ts) 负责分页切点 |
|
||||
| 计数 | [`shiftFacetCounts`](../../../../packages/api/session-controller/src/client/sessions/facets.ts) 在 generation 的 `SessionRetainInfo` 中为每个子要素记一个计数,与 `connectionCount` 和按来源的 `retainedBy` 并列;`retainInfo(id)` 发布每次变化,owner 根据该快照与当前 binding 推导自己的子要素,因此 `SessionBinding` 不变 |
|
||||
| 不可变 | 一条引用的选项在创建时固定;更改时先 retain 新引用,再 release 旧引用 |
|
||||
| `using()` | 签名不变;借出的引用默认保留连接,不请求子要素 |
|
||||
| `retainAgentScope` | 既不保留连接,也不保留子要素 |
|
||||
|
||||
### `conversation` 子要素
|
||||
|
||||
`ui-conversation` 声明 `conversation`:对事件窗口做 Conversation 折叠并物化其视图。
|
||||
|
||||
- `BoundConversation` 仍然每个 binding 一个,其 `snapshot`、`openTurn` 和 `target(t)` 数据源保持对象标识稳定。`UiConversation.binding()` 先在 Session 作用域上登记该绑定的清理,再让绑定开始跟随;首次折叠失败时清理该绑定,下次解析重新开始。
|
||||
- 子要素被保留期间,绑定对当前整个窗口折叠一次、同步发布,并跟随窗口变化;折叠失败时绑定保持未折叠,下一次窗口变化重新整窗折叠。
|
||||
- 子要素被释放时,绑定退订、取消待发的 rAF、丢弃折叠结果,并发布一次空结果;释放期间的注册表变化要等再次保留时才生效。正在进行的事件分发会检查绑定是否仍在跟随,因此分发中途的释放会立即停止折叠。
|
||||
- 跟随 `conversation` 子要素的计算有两项:`BoundConversation` 与 [ui-chat](../../../../packages/client/ui-chat/src/client/apply.ts) 的 quota 监听;后者对子要素未被保留期间收到的失败既不发布也不补发提示。
|
||||
|
||||
### `draft` 引用
|
||||
|
||||
[输入 hub](../../../../packages/client/ui-conversation/src/client/input/hub.ts) 在某个 Session 的输入框草稿有附件且该 Session 未被移除时,以 `{ source: 'draft', connection: false }` 持有它。因此所有视图都释放该 Session 后,作用域以及同一个输入框 shell 和其中的浏览器侧附件仍然保留;切回时重新连接并重新折叠,输入框保留附件、上传进度和失败上传的重试。移除最后一个附件、发送它或移除 Session 会释放这条引用,随后作用域销毁时释放全部草稿附件。页面卸载时仍为草稿有附件的 Session 写标记,下一个页面提示这些附件已失效。
|
||||
|
||||
### 引用来源与子要素
|
||||
|
||||
| 来源 | 所属包 | 选项 |
|
||||
|---|---|---|
|
||||
| `mainView` | ui-session 声明,ui-workspace 调用 | `{ conversation: true }` |
|
||||
| `sidebarView` | ui-sidebar-right | `{ conversation: true }` |
|
||||
| `sidebarChat` | ui-subagent | `{ conversation: true }` |
|
||||
| `recentViews` | ui-workspace | 不写:只保连接 |
|
||||
| `draft` | ui-conversation | `{ connection: false }` |
|
||||
| `using()` 调用方 | 各自的包 | 不写 |
|
||||
| `gateway` | session-controller | 不保留连接的内部入口 |
|
||||
| 测试替身默认值 | test-support/client-runtime | `{ source: 'testFixture', facets: { conversation: true } }` |
|
||||
|
||||
### 最近访问会话 `recentViews`
|
||||
|
||||
ui-workspace 的 [navigation](../../../../packages/client/ui-workspace/src/client/navigation.ts) 持有一个 [`RecentSessionViews`](../../../../packages/client/ui-workspace/src/client/recent-views.ts),为每个最近访问会话持有一条 `recentViews` 引用。
|
||||
|
||||
它的状态只记录用户做过什么:Session 离开主视图的顺序,以及主视图当前显示的 Session。一个幂等的 `sync()` 根据这些状态和当前的 Session 列表、Workspace 列表与 Session UI 状态算出应持有的 Session,先 retain 缺少的,再释放其余的。导航在 retain 新的 `mainView` 引用之后、释放上一个之前调用 `show(sessionId)`;Session 列表、Workspace 列表和状态变化时调用 `sync()`。retain 会同步发布 Session 列表,因此重入的 `sync()` 只标记状态已变化,正在执行的一轮会重复,直到选择稳定。
|
||||
|
||||
| 规则 | 行为 |
|
||||
|---|---|
|
||||
| 顺序 | `show()` 同步时两个 `mainView` 引用都还在,因此上一个 Session 先成为最近访问会话、再释放其 `mainView` 引用,引用计数不会归零;主视图 Session 永远不是最近访问会话,重复选中它时选择保持不变 |
|
||||
| 空白 | 离开时仍是空白的 Session 不入队 |
|
||||
| 失败 | retain 失败时报告到控制台一次,该 Session 离开顺序列表,随其 `mainView` 引用一起释放;导航继续 |
|
||||
| 出队 | 被移除、归档或淘汰的 Session 离开顺序列表,只有主视图再次离开它时才会回来 |
|
||||
| 关注 | 统一 Session UI 状态显示为运行中、等待用户或完成未读的 Session 既不计数也不淘汰;读过且空闲后重新计数 |
|
||||
| 上限 | 由 ui-workspace 配置 `recentViewLimit` 决定,默认 10,计数的 Session 不含主视图 Session;它是 Host `Config` 的 volatile 字段,浏览器经[前端插件配置同步](2026-11-15-client-config-sync.zh.md)接收,修改后无需刷新即生效,已淘汰的 Session 不会回来 |
|
||||
| 淘汰 | 超出上限时先淘汰最早离开的未置顶 Session,再淘汰最早离开的置顶 Session;Session 列表、Workspace 列表或 Session UI 状态变化时都会重新检查 |
|
||||
| 卸载 | 插件卸载时退订两个列表与状态,清空顺序列表,并释放全部引用 |
|
||||
|
||||
## 备选方案
|
||||
|
||||
**按订阅数决定是否跟随。** `BoundConversation` 只在有订阅时折叠,冷态读取时同步补齐。React 先渲染后订阅,跟随要靠读取时补齐来避免首帧陈旧,而且是否计算取决于偶然的订阅时序,而不是持有方的意图。
|
||||
|
||||
**把引用来源分成 render 与 hold 两类。** 这只能表达一个开关;草稿这类独立计数的部分还需要另一种分类。
|
||||
|
||||
**由子要素 owner 在运行时声明默认值。** 这需要 Controller 维护运行时注册表,并在加载顺序与 HMR 下重新计数;而「未写即不保留」的规则已经足够。
|
||||
|
||||
**在 `SessionBinding` 上暴露子要素 observable。** `SessionBinding` 新增必需成员会让所有手写 binding(包括第三方测试替身)失效,而子要素计数本就是本地引用计数,`retainInfo` 已在按来源计数旁发布它们。
|
||||
|
||||
**用固定级别代替子要素。** 固定的 `state`、`cache`、`live` 枚举无法随后续 owner 诉求扩展,而默认开启的 `connection` 加上 owner 子要素就能表达这三种状态。
|
||||
|
||||
**释放子要素后保留最后一次折叠结果。** 无主的陈旧结果会多出一个隐含状态;窗口仍在,切回时只折叠最后一页的代价很小。
|
||||
|
||||
**在根级维护草稿附件归属。** 在 Conversation 服务中记录归属并在新输入框中重新接回,等于用会话目录监听重复跟踪 Session 生命周期;保住作用域就能保住输入框本身。
|
||||
|
||||
**保留后台 Session 的 DOM。** React 18 没有 `<Activity>`;K 个隐藏子树要付出布局、内存和订阅成本,还与 `session-maybe` 只绑定一个 Session 的设计冲突。
|
||||
|
||||
**未被保留时继续折叠,只推迟发布。** 流式块的 `match`/`update` 成本仍然存在。
|
||||
|
||||
**自行计算已折叠输入与窗口之间的差集。** 未被保留期间,一次 attempt 可能从开始、流式到 settle 全部完成,这类差集逻辑容易出错;切回时改为从头折叠最后一页。
|
||||
|
||||
## 后果
|
||||
|
||||
- 最近访问会话切回时无需历史请求,只折叠最后一页;往上翻阅已加载的页不发请求。
|
||||
- 最近访问会话在内存中保留其完整的已加载窗口,但不保留 Conversation 折叠结果。
|
||||
- 带草稿附件被淘汰出最近访问会话的 Session 保留输入框,但不保留窗口,切回时要重新请求历史。
|
||||
- 受关注保护的最近访问会话没有总量上限:完成未读会一直受保护直到用户读过,因此用户不在时每个以未读状态完成的 Session 都会保留其 generation、已加载的事件窗口和历史跟随流,直到被读过、标为已读、被移除或归档。
|
||||
- 漏写 `conversation: true` 的渲染方会看到未被保留的陈旧或空快照,不会报错。
|
||||
- `SessionRetainOptions` 与 `SessionRetainInfo` 只新增可选字段;以自己的来源 retain 并渲染 Session 的第三方 Client 插件需加上 `facets: { conversation: true }`,只需本地状态的插件可写 `connection: false`,见[升级指南](../../../../docs/upgrade-guide/v0.2.2-rc.3/session-retain-conversation-facet/guide.zh.md)。
|
||||
|
||||
## 测试
|
||||
|
||||
- [reference-ownership.client.spec.ts](../../../../packages/api/session-controller/tests/reference-ownership.client.spec.ts) 覆盖按子要素与连接计数、不建立连接地持有 Session、最后一个保留连接的引用释放后断开、最后一个子要素释放后缓冲更早页,以及计数随 generation 退役与根释放结束;[session.client.spec.ts](../../../../packages/api/session-controller/tests/session.client.spec.ts) 覆盖缓冲页翻页、Turn 跳转、缓冲页用完后的 Host 分页、实时增长后再次缓冲,以及断开后重新连接。
|
||||
- [conversation-registry.client.spec.ts](../../../../packages/client/ui-conversation/tests/conversation-registry.client.spec.ts) 覆盖释放时丢弃折叠、保留时同步折叠一次、与持续跟随结果一致、未跟随期间的激活与注册表变化、分发中途的释放、被取消的 rAF 发布、折叠失败,以及首次折叠失败不残留订阅;[draft-attachment-retention.client.spec.ts](../../../../packages/client/ui-conversation/tests/draft-attachment-retention.client.spec.ts) 覆盖 `draft` 引用、其释放、被移除的 Session 与卸载标记。
|
||||
- [quota-notice.client.spec.tsx](../../../../packages/client/ui-chat/tests/quota-notice.client.spec.tsx) 覆盖 quota 提示只在子要素被保留时发布。
|
||||
- [recent-views.client.spec.ts](../../../../packages/client/ui-workspace/tests/recent-views.client.spec.ts) 与 [workspaces-service.client.spec.ts](../../../../packages/client/ui-workspace/tests/workspaces-service.client.spec.ts) 覆盖关注与置顶规则、retain 期间的同步重入、主视图 Session 不计数、淘汰后不自动回来、配置、由列表变化驱动的对账,以及经由同一 generation 切回最近访问会话且不重新打开历史。
|
||||
+4
-4
@@ -9,11 +9,11 @@
|
||||
en: 3f4030763e1f0105
|
||||
zh: c8a0bc5641d7bed4
|
||||
/agent-note-draft-attachments-across-session-switches/decision:
|
||||
en: 40697e88c2ed6ca8
|
||||
zh: eeb363374b25c3a2
|
||||
en: 3b2603721398054c
|
||||
zh: 7d2e5f3be236f1d3
|
||||
/agent-note-draft-attachments-across-session-switches/alternatives-considered:
|
||||
en: 2c43ad479f4a3577
|
||||
zh: 07743f45870eb0fe
|
||||
en: 01a406120acfc8b9
|
||||
zh: 17a3fd9be7a303fb
|
||||
/agent-note-draft-attachments-across-session-switches/consequences:
|
||||
en: 6ac6defa552ea040
|
||||
zh: aa64a3c3e54dbebc
|
||||
+4
-2
@@ -10,14 +10,16 @@ Switching to another Session and back emptied the composer's attachment rail whi
|
||||
|
||||
## Decision
|
||||
|
||||
**The Conversation service keeps every draft attachment across a switch.** `ConversationController` records which Session owns each draft attachment. A message the Host accepts leaves that ownership at once, while the registry keeps its attachments until the echo settles them. A retiring composer releases its attachments only when its Session was removed or a message or command was already submitted, because the Client cannot tell whether a submitted command consumed them; an aborted slash-line adjudication keeps them. Otherwise they stay registered, an active upload keeps running, a failed upload keeps its in-place retry, and the Session's next composer re-adopts them in rail order. A Session removed while no composer is mounted releases its attachments through the hub's catalog watch. Picked and dropped files hold only a browser file handle; a pasted image keeps its bytes in memory until it is sent or removed or its Session is removed.
|
||||
**A draft with attachments holds its Session's scope.** While a composer draft has attachments and its Session is not removed, the input hub holds the Session with a `draft` reference that keeps no event connection, as [Session retain facets and recently viewed Sessions](../architecture/2026-11-15-session-retain-facets-and-recent-views.md) defines. Switching away and evicting the Session from the recent views therefore keep the same composer shell and its attachments: an active upload keeps running, a failed upload keeps its in-place retry, and a pasted image keeps its bytes in memory. Removing the last attachment, sending it, or removing the Session releases the hold; scope teardown then releases every attachment the draft still holds.
|
||||
|
||||
**A reload reports discarded attachments instead of restoring them.** On `pagehide`, the input hub marks each Session that still owns draft attachments in browser storage; a back-forward cache restore clears the marks. A composer mounted with a mark and no registered attachments shows the "add them again" notice.
|
||||
**A reload reports discarded attachments instead of restoring them.** On `pagehide`, the input hub marks each Session whose draft holds attachments in browser storage; a back-forward cache restore clears the marks. A composer mounted with a mark shows the "add them again" notice.
|
||||
|
||||
## Alternatives considered
|
||||
|
||||
**Restoring attachments after a reload from durable browser references and a Host `restore` Remote.** It would bring uploaded files and images back after a page reload, but it needs a Host Remote with its Liveshare and catalog classifications, a persisted browser format, a send gate during restoration, and an image byte payload. Desktop, where most users work, gains little: its Host binds a new port on every launch, so its storage origin, and with it every saved reference, does not survive an application restart.
|
||||
|
||||
**Recording draft-attachment owners in the Conversation service and re-adopting them in the next composer.** It keeps attachments without holding the scope, but it tracks Session lifetime a second time through a catalog watch and splits submission release across composer phases; holding the scope keeps the composer itself.
|
||||
|
||||
**Releasing settled attachments on a switch and restoring them from the Host on return.** It would save the memory of pasted images while a Session is not shown, but every return needs a Host round trip, fails on a weak network, and allocates the same bytes again.
|
||||
|
||||
## Consequences
|
||||
|
||||
+4
-2
@@ -10,14 +10,16 @@ Status: implemented
|
||||
|
||||
## 决策
|
||||
|
||||
**Conversation 服务在切换期间保留全部草稿附件。** `ConversationController` 记录每个草稿附件属于哪个会话。Host 接受消息时,这些附件立即退出会话归属,注册表则保留它们直到回显结算。退役的输入框只在其会话已被删除、或消息与命令已经提交时释放附件,因为客户端无法判断已提交的命令是否用掉了附件;被中止的斜杠行裁决会保留附件。其他情况下附件继续登记,进行中的上传继续进行,失败的上传保留原位重试,会话下一次挂载的输入框按附件栏顺序接回它们。没有挂载输入框时被删除的会话,由 hub 的会话目录监听释放其附件。选择或拖入的文件只占一个浏览器文件句柄;粘贴的图片会把字节保留在内存中,直到发送、移除或其会话被删除。
|
||||
**带附件的草稿持有其会话的作用域。** 输入框草稿有附件且其会话未被删除时,输入 hub 以不保留事件连接的 `draft` 引用持有该会话,见 [Session retain 子要素与最近访问会话](../architecture/2026-11-15-session-retain-facets-and-recent-views.zh.md)。因此切走以及从最近访问会话中被淘汰时,同一个输入框 shell 和其中的附件都会保留:进行中的上传继续进行,失败的上传保留原位重试,粘贴的图片把字节保留在内存中。移除最后一个附件、发送它或删除会话会释放这条引用;随后作用域销毁时释放草稿仍持有的全部附件。
|
||||
|
||||
**刷新时提示被丢弃的附件,而不恢复它们。** `pagehide` 时,输入 hub 在浏览器存储中为每个仍持有草稿附件的会话写一个标记;往返缓存恢复页面时清除这些标记。挂载时有标记且没有已登记附件的输入框,会显示「请重新添加」提示。
|
||||
**刷新时提示被丢弃的附件,而不恢复它们。** `pagehide` 时,输入 hub 在浏览器存储中为每个草稿持有附件的会话写一个标记;往返缓存恢复页面时清除这些标记。挂载时有标记的输入框会显示「请重新添加」提示。
|
||||
|
||||
## 考虑过的替代方案
|
||||
|
||||
**刷新后通过浏览器 durable 引用与 Host `restore` Remote 恢复附件。** 它能在页面刷新后找回已上传的文件和图片,但需要新增一个 Host Remote 及其 Liveshare 与目录分类、一种浏览器持久化格式、恢复期间的发送拦截和图片字节载荷。主要用户所在的桌面端收益很小:桌面端 Host 每次启动都绑定新端口,存储 origin 连同所有已存引用都无法跨应用重启保留。
|
||||
|
||||
**在 Conversation 服务中记录草稿附件归属,并在下一个输入框中接回。** 它不持有作用域也能保留附件,但要通过会话目录监听再跟踪一遍 Session 生命周期,并按输入框阶段拆分已提交附件的释放;持有作用域就能保住输入框本身。
|
||||
|
||||
**切换时释放已结算附件,切回时由 Host 恢复。** 它能在会话不显示期间省下粘贴图片的内存,但每次切回都需要一次 Host 往返,弱网下会失败,并且之后还要再分配同样的字节。
|
||||
|
||||
## 影响
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
en: 16c4ee08b65ead23
|
||||
zh: df80d6e49982615b
|
||||
/agent-note-parallel-tool-call-execution-by-per-call-safety/configuration-and-declarations:
|
||||
en: 082e5a02b092b656
|
||||
zh: ca674a08323d8cc1
|
||||
en: 5ef62a9b07a857eb
|
||||
zh: 931f648655a0cb34
|
||||
/agent-note-parallel-tool-call-execution-by-per-call-safety/verification:
|
||||
en: 20d0e1724ebc1247
|
||||
zh: baa89694cea135c8
|
||||
|
||||
@@ -62,7 +62,7 @@ Any shared state touched during execution must be concurrency-safe. This include
|
||||
|
||||
The shipped declarations are conservative. Web search, web fetch, filesystem read, glob, grep, the session-query trace/read tools, and subagent delegation opt in — delegation because a child works in its own session and its run never mutates the parent session, with sibling workspace coordination owned by the model ([parallel subagent Agent Note](../../archived/feature/2026-08-09-parallel-subagent-delegations.md)). Read-only queries also opt in: the background job list, the subagent tree and model listings, scheduled task and Team task reads, Cordis Inspect queries, and MCP resource reads. Filesystem writes and edits, bash tools, `job_output` because it consumes a read cursor, the session-query search tools, workflow, user interaction, todo mutation, PTC mode, and Cordis mutation tools remain exclusive. Bash has no proven input-sensitive classifier and remains exclusive. Read-only `lsp` stays exclusive because its language-server pool already serializes queries per workspace, so overlap would gain nothing, and the goal tools stay exclusive under the [goal tools Agent Note](2026-07-19-model-facing-goal-tools.md).
|
||||
|
||||
Filesystem read relies on a narrow recorder exception: its synchronous observation updates may settle out of order, but write and edit re-check the observed version before mutation, so stale state only produces `FS_STALE_VERSION`. Filesystem read, glob, and grep also share a working-directory recovery exception: when the Session's recorded directory is unset or missing, the body's `ctx.workingDirectory.ensure()` appends `working-directory/change` and, when it restores a missing directory, injects a model-visible notice; the working-directory service serializes that recovery per Session.
|
||||
Filesystem read relies on a narrow recorder exception: its synchronous observation updates may settle out of order, but write and edit re-check the observed version before mutation, so stale state only produces `FS_STALE_VERSION`. Filesystem read, glob, and grep also share a working-directory recovery exception: when the Session's recorded directory is unset or missing, the body's `ctx.workingDirectory.ensure()` appends `workspace-root/change` and, when it restores a missing directory, injects a model-visible notice; the working-directory service serializes that recovery per Session.
|
||||
|
||||
## Verification
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ Status: implemented
|
||||
|
||||
当前实现中的声明保持保守。Web 搜索、Web 获取、文件系统读取、glob、grep、会话查询的 trace/read 工具和 subagent 委派选择并行;委派之所以并行,是因为子 agent 在自己的会话中工作,其运行绝不变更父会话,并列委派间的工作区协调由模型负责([并行 subagent Agent Note](../../archived/feature/2026-08-09-parallel-subagent-delegations.md))。只读查询也选择并行:后台任务列表、subagent 树与模型列表、定时任务与 Team 任务读取、Cordis Inspect 查询以及 MCP 资源读取。文件系统写入与编辑、bash 工具、`job_output`(因为它会消费读取游标)、会话查询的 search 工具、工作流、用户交互、todo 变更、PTC mode 以及 Cordis 变更工具仍按独占方式执行。Bash 没有已证明的输入敏感分类器,因此仍按独占方式执行。只读的 `lsp` 仍按独占方式执行,因为其语言服务器池已按工作区串行化查询,重叠执行不会带来收益;goal 工具依照 [goal 工具 Agent Note](2026-07-19-model-facing-goal-tools.zh.md) 仍按独占方式执行。
|
||||
|
||||
文件系统读取依赖一个范围很窄的记录器例外:其同步观察更新可以不按顺序结算,但写入和编辑在变更前会重新检查已观察的版本,因此陈旧状态只会导致 `FS_STALE_VERSION`。文件系统读取、glob 和 grep 还共享一个工作目录恢复例外:当会话记录的目录未设置或不存在时,工具主体中的 `ctx.workingDirectory.ensure()` 会追加 `working-directory/change`,并在恢复不存在的目录时注入一条模型可见的通知;工作目录服务按会话串行化该恢复过程。
|
||||
文件系统读取依赖一个范围很窄的记录器例外:其同步观察更新可以不按顺序结算,但写入和编辑在变更前会重新检查已观察的版本,因此陈旧状态只会导致 `FS_STALE_VERSION`。文件系统读取、glob 和 grep 还共享一个工作目录恢复例外:当会话记录的目录未设置或不存在时,工具主体中的 `ctx.workingDirectory.ensure()` 会追加 `workspace-root/change`,并在恢复不存在的目录时注入一条模型可见的通知;工作目录服务按会话串行化该恢复过程。
|
||||
|
||||
## 验证
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
en: 12ab239ab0c58e31
|
||||
zh: c32874442ce66041
|
||||
/agent-note-explicit-worktree-creation/decision:
|
||||
en: 571a2d4c5352170b
|
||||
zh: aeb12b849c5f8d31
|
||||
en: 98289c9b859516cd
|
||||
zh: ac45d0997966840b
|
||||
/agent-note-explicit-worktree-creation/alternatives-considered:
|
||||
en: 72d42e892a37b94c
|
||||
zh: 92a14a51c6a89c53
|
||||
|
||||
@@ -10,7 +10,7 @@ A Session that needs an isolated checkout otherwise has to coordinate Git comman
|
||||
|
||||
## Decision
|
||||
|
||||
The experimental [worktree runtime](../../../../packages/experimental/worktree/README.md) creates a new named branch and checkout from a pinned local commit, then enters its canonical directory through the shared working-directory service. The [tool](../../../../packages/experimental/tool-worktree/README.md) exposes `create_worktree({ name?, from? })`. These packages use ordinary explicit composition, with no additional runtime feature flag.
|
||||
The experimental [worktree runtime](../../../../packages/experimental/worktree/README.md) creates a new named branch and checkout from a pinned local commit, then enters its canonical directory through the shared working-directory service. The [tool](../../../../packages/experimental/tool-worktree/README.md) exposes it as `enter_worktree({ name?, from? })`, which also enters an existing worktree of that name. These packages use ordinary explicit composition, with no additional runtime feature flag.
|
||||
|
||||
The source repository comes from the calling Session's current directory. Creation does not fetch or copy uncommitted files. The default pool is `.agents/worktrees` under the current checkout’s top-level directory, including when the caller is in a linked checkout. The process that creates a pool writes its self-ignoring `.gitignore`; existing directories and ignore files are preserved. Names must be new branches and unused checkout paths.
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ Status: implemented
|
||||
|
||||
## Decision
|
||||
|
||||
实验性[工作树运行时](../../../../packages/experimental/worktree/README.zh.md)从固定的本地提交创建新的具名分支与检出目录,然后通过共享工作目录服务进入其规范路径。[工具](../../../../packages/experimental/tool-worktree/README.zh.md)公开 `create_worktree({ name?, from? })`。这些包使用普通的显式组合,不添加额外运行时功能开关。
|
||||
实验性[工作树运行时](../../../../packages/experimental/worktree/README.zh.md)从固定的本地提交创建新的具名分支与检出目录,然后通过共享工作目录服务进入其规范路径。[工具](../../../../packages/experimental/tool-worktree/README.zh.md)以 `enter_worktree({ name?, from? })` 公开它,同名工作树已存在时进入该工作树。这些包使用普通的显式组合,不添加额外运行时功能开关。
|
||||
|
||||
源仓库由调用 Session 的当前目录决定。创建操作不会获取远端提交或复制未提交文件。默认父目录是当前检出目录顶层路径下的 `.agents/worktrees`,调用方位于链接检出目录中时也一样。创建该目录的进程写入忽略自身的 `.gitignore`;已有目录与忽略文件保持不变。名称必须对应新分支与尚未使用的检出路径。
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
# Bilingual-pair consistency record for 2026-10-08-mcp-on-demand-tool-loading.md (docs/i18n/README.md): per heading
|
||||
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
||||
# After editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write .agents/notes/implemented/feature/2026-10-08-mcp-on-demand-tool-loading.md
|
||||
/agent-note-on-demand-mcp-tool-loading:
|
||||
en: f3ae8820249277c7
|
||||
zh: e93dfdb03fbf1788
|
||||
/agent-note-on-demand-mcp-tool-loading/problem:
|
||||
en: 8b6051ee3006e42d
|
||||
zh: b54399f1a65c6751
|
||||
/agent-note-on-demand-mcp-tool-loading/decision:
|
||||
en: d6ad94daf6a36798
|
||||
zh: c243547d88d752be
|
||||
/agent-note-on-demand-mcp-tool-loading/alternatives-considered:
|
||||
en: eb073fc5dfd6692d
|
||||
zh: 51e842eae3fe7c61
|
||||
/agent-note-on-demand-mcp-tool-loading/testing:
|
||||
en: 22966b6f3a05d7bd
|
||||
zh: 1bf76080026d447f
|
||||
/agent-note-on-demand-mcp-tool-loading/consequences:
|
||||
en: 2a4e348e3e43fe78
|
||||
zh: c7fdb56494f2bef3
|
||||
@@ -0,0 +1,53 @@
|
||||
# Agent Note: On-demand MCP tool loading
|
||||
|
||||
Status: implemented
|
||||
|
||||
English | [中文](2026-10-08-mcp-on-demand-tool-loading.zh.md)
|
||||
|
||||
## Problem
|
||||
|
||||
A connected MCP server sends every tool definition with every request. Notion's hosted server advertises 46 tools whose definitions total about 214,500 characters; one tool's input schema alone is about 83,000 characters. A Notion plugin that only registers the server therefore costs that context on every request, before the model uses a single Notion tool.
|
||||
|
||||
The existing `ToolSchema.deferLoading` marker does not solve this. Only routes that declare `toolUpdate` honor it, and the default `deepseek-flash` entry is the only catalog route that does. The marker keeps a prefix reusable; it does not reduce context.
|
||||
|
||||
## Decision
|
||||
|
||||
An mcp-client entry with `toolLoading: on-demand` keeps the server's tools out of the tool registry. The behavior lives in mcp-client; no session event, message type, or other package changes, and mcp-manager only passes the field to its instances.
|
||||
|
||||
**One loader per server.** The server registers `mcp__<serverName>__load_tools` where an eager server registers its tools, and withdraws it where an eager server removes them, so outages and reconnects follow the eager lifecycle. A server tool named `load_tools` is left out of the catalog with a logged warning.
|
||||
|
||||
**The catalog is a system prompt section.** The `mcp:<serverName>:tools` section lists each tool's raw name with the first line of its description, capped by `catalogDescriptionMaxLength`, and renders only for an agent that sees the loader. The session log already records the system prompt, so the catalog needs no new message type, and it changes only when the server's tool list does.
|
||||
|
||||
**Loading registers in the agent's own scope.** The loader validates every requested raw name before registering any, then registers the definitions in a scope the plugin creates for that agent. The plugin releases the scope on `agent/disposed`, and plugin unload disposes it. The next request header carries the definitions, and the agent loop records the addition. Subagents, forks, and resumed sessions start with no loaded tools.
|
||||
|
||||
**Each published generation carries loaded tools forward.** A tool definition calls the client of the generation that built it, so a reconnect must replace loaded definitions. Each published generation re-registers every agent's loaded names that it still offers and drops the rest. A failed re-registration drops only that agent's tool and logs the failure.
|
||||
|
||||
**The loader decides access.** Tool restrictions filter only inherited tools, so seeing the loader permits loading any listed tool, as seeing `skill` permits loading any listed skill. Execution guards and permissions still apply.
|
||||
|
||||
## Alternatives considered
|
||||
|
||||
**A shared `load_mcp_tools` tool in mcp-resources with a session catalog message.** Rejected after implementation: it needed a cross-package catalog interface, a Host-wide-only restriction, an `agent/pre-step` listener that scanned session history on every step of every agent, and a persisted message type.
|
||||
|
||||
**The catalog in the loader's tool description.** Rejected: OpenAI and Azure OpenAI Chat Completions reject tool descriptions longer than 1024 characters, pi-ai routes pass descriptions through unchanged, and a catalog of a dozen tools exceeds that limit.
|
||||
|
||||
**A static `includeTools` list per entry.** Rejected: each plugin must choose its tools ahead of time, and the model cannot use the other tools during a session.
|
||||
|
||||
**A proxy tool `call_mcp_tool(server, tool, args)`.** Rejected: the tool list never changes, but the model loses each tool's argument schema, and permissions, presentation, and guards that match tool names would need forwarding.
|
||||
|
||||
**Mark MCP tools with `deferLoading`.** Rejected: it saves no context and works only on routes that declare `toolUpdate`.
|
||||
|
||||
**Global registration hidden per agent with `tools.restrict({ deny })`.** Rejected: every agent needs a restriction scope, and every tool change rescans the registry and copies every schema.
|
||||
|
||||
**Restore loaded tools on resume.** Rejected: it needs a durable record of loaded names, which is a session format change. The agent loop already records which tools a resumed session lost.
|
||||
|
||||
## Testing
|
||||
|
||||
mcp-client specs cover the loader-only registration and the prompt catalog, catalog omission for agents that cannot see the loader, loading into one agent's scope, invalid loads, carrying loaded tools across generations, withdrawal and restoration, agent release, a contained re-registration failure, the excluded `load_tools` server tool, a loader-name conflict, and the plugin path from load through call to unload. A manager spec mounts an on-demand entry. The `mcp-tool-loading` session snapshot pins the catalog section, the loader schema, the tool-addition record, and a call after loading.
|
||||
|
||||
## Consequences
|
||||
|
||||
- An on-demand server costs the loader definition and one catalog line per tool until an agent loads tools.
|
||||
- Each load changes the next request's tool list. Routes declaring tool updates keep the earlier prefix; other routes start a new request series once per load.
|
||||
- The model needs one extra tool call before using a server's tools.
|
||||
- Agent tool restrictions do not filter loaded tools; `tools.guard` denies a loadable tool by name.
|
||||
- A PTC program sees a tool loaded inside `run_code` only from the next program.
|
||||
@@ -0,0 +1,53 @@
|
||||
# Agent Note: On-demand MCP tool loading
|
||||
|
||||
Status: implemented
|
||||
|
||||
[English](2026-10-08-mcp-on-demand-tool-loading.md) | 中文
|
||||
|
||||
## Problem
|
||||
|
||||
已连接的 MCP 服务器会在每次请求中发送全部工具定义。Notion 托管服务器提供 46 个工具,定义合计约 214,500 字符;其中一个工具的输入 schema 就约有 83,000 字符。因此,只注册服务器的 Notion 插件在模型使用任何 Notion 工具之前,就会让每次请求都承担这部分上下文。
|
||||
|
||||
现有的 `ToolSchema.deferLoading` 标记解决不了这个问题。只有声明了 `toolUpdate` 的路由才会遵循它,而目录中只有默认的 `deepseek-flash` 条目声明了。该标记能保留可复用的前缀,但不会减少上下文。
|
||||
|
||||
## Decision
|
||||
|
||||
配置 `toolLoading: on-demand` 的 mcp-client 条目不把服务器的工具注册到工具注册表。该行为位于 mcp-client 内部;不改动会话事件、消息类型或其他包,mcp-manager 只把该字段传给它的实例。
|
||||
|
||||
**每个服务器一个加载器。** 服务器在 eager 服务器注册工具的位置注册 `mcp__<serverName>__load_tools`,并在 eager 服务器移除工具的位置撤下它,因此断线与重连遵循 eager 的生命周期。服务器自己名为 `load_tools` 的工具不列入目录,并记录一条警告。
|
||||
|
||||
**目录是一个系统提示词段落。** `mcp:<serverName>:tools` 段落列出每个工具的原始名称及其描述的第一行,长度以 `catalogDescriptionMaxLength` 为上限,并且只对能看到加载器的 agent 渲染。会话日志本来就记录系统提示词,所以目录不需要新的消息类型;只有服务器的工具列表变化时目录才会变化。
|
||||
|
||||
**加载注册到 agent 自己的作用域。** 加载器先校验所有请求的原始名称,再注册任何工具;随后把这些定义注册到插件为该 agent 创建的作用域中。插件在 `agent/disposed` 时释放该作用域,插件卸载时也会释放它。下一次请求头带上这些定义,agent loop 记录这次添加。子 agent、fork 和恢复的会话开始时都没有已加载的工具。
|
||||
|
||||
**每个发布的注册代都会延续已加载的工具。** 工具定义调用的是构建它的那一代连接的 client,因此重连后必须替换已加载的定义。每次发布注册代时,会为每个 agent 重新注册该代仍提供的已加载名称,并丢弃其余名称。重新注册失败只丢弃该 agent 的这个工具,并记录失败。
|
||||
|
||||
**加载器决定访问权限。** 工具限制只过滤继承的工具,因此能看到加载器就能加载目录中的任何工具,就像能看到 `skill` 就能加载目录中的任何 skill。执行 guard 与权限检查照常生效。
|
||||
|
||||
## Alternatives considered
|
||||
|
||||
**在 mcp-resources 中放一个共享的 `load_mcp_tools` 工具,并发布会话目录消息。** 实现后否决:它需要跨包的目录接口、只支持 Host 级服务器的限制、在每个 agent 的每一步都扫描会话历史的 `agent/pre-step` 监听器,以及一种持久化消息类型。
|
||||
|
||||
**把目录放进加载器的工具描述。** 否决:OpenAI 与 Azure OpenAI 的 Chat Completions 会拒绝超过 1024 字符的工具描述,pi-ai 路由原样传递描述,而十几个工具的目录就会超过这个上限。
|
||||
|
||||
**每个条目一个静态 `includeTools` 列表。** 否决:每个插件都必须预先选定工具,会话中模型无法使用其他工具。
|
||||
|
||||
**代理工具 `call_mcp_tool(server, tool, args)`。** 否决:工具列表从不变化,但模型失去每个工具的参数 schema,按工具名匹配的权限、展示与 guard 都需要转发。
|
||||
|
||||
**给 MCP 工具加 `deferLoading` 标记。** 否决:它不节省上下文,且只在声明 `toolUpdate` 的路由上生效。
|
||||
|
||||
**全局注册,再用 `tools.restrict({ deny })` 按 agent 隐藏。** 否决:每个 agent 都需要一个限制作用域,每次工具变化都会重新扫描注册表并复制每个 schema。
|
||||
|
||||
**恢复会话时恢复已加载的工具。** 否决:这需要持久记录已加载的名称,也就是改动会话格式。agent loop 已经会记录恢复的会话失去了哪些工具。
|
||||
|
||||
## Testing
|
||||
|
||||
mcp-client 规格覆盖:只注册加载器与提示词目录、看不到加载器的 agent 不渲染目录、加载到单个 agent 的作用域、无效加载、跨注册代延续已加载工具、撤下与恢复、释放 agent、限定在单个 agent 的重新注册失败、被排除的 `load_tools` 服务器工具、加载器名称冲突,以及从加载、调用到卸载的插件路径。一个 manager 规格挂载按需条目。`mcp-tool-loading` 会话快照固定目录段落、加载器 schema、工具添加记录,以及加载后的一次调用。
|
||||
|
||||
## Consequences
|
||||
|
||||
- 在 agent 加载工具之前,按需服务器的开销是加载器定义加每个工具一行目录。
|
||||
- 每次加载都会改变下一次请求的工具列表。声明了工具更新的路由保留之前的前缀;其他路由每次加载开始一个新的请求序列。
|
||||
- 模型在使用服务器的工具之前需要多一次工具调用。
|
||||
- agent 的工具限制不过滤已加载的工具;用 `tools.guard` 可按名称禁止可加载的工具。
|
||||
- PTC 程序要到下一个程序才能看到在 `run_code` 内加载的工具。
|
||||
@@ -9,8 +9,8 @@
|
||||
en: 344bcc7e9825bbc8
|
||||
zh: c1d0f4b54f5b3786
|
||||
/agent-note-change-request-panel-and-worktree-sessions/decision:
|
||||
en: a2da424833a8aa0a
|
||||
zh: 9ab23d2e5bde31de
|
||||
en: 5d2dc730467e4bf3
|
||||
zh: 4aca28691504cd7b
|
||||
/agent-note-change-request-panel-and-worktree-sessions/deferred:
|
||||
en: 32ef8af85f4d2f66
|
||||
zh: b82b67f94346399e
|
||||
|
||||
@@ -14,7 +14,7 @@ English | [中文](2026-10-09-forge-panel.zh.md)
|
||||
|
||||
Review and worktree controls serve one code-change workflow. One Plugins entry lets users enable that workflow without having to distinguish the underlying package split. Packages and the two worktree services remain independent so each owns its before-Session or in-conversation creation flow.
|
||||
|
||||
The Remote inspects the checkout through the Session's subprocess provider under its [resolved permissions and query restrictions](../bug-fix/2026-10-28-forge-git-session-permissions.md), so it reads what the Session's commands see. Inspection reads the top-level, Git, and common Git directories, the branch or the abbreviated HEAD commit, the upstream, the remotes, and the size of the branch's changes against its fork point. It runs when a Session is followed, after each `working-directory/change`, `tool/result`, and `sandbox/mode` event, and on refresh, one at a time with one trailing rerun.
|
||||
The Remote inspects the checkout through the Session's subprocess provider under its [resolved permissions and query restrictions](../bug-fix/2026-10-28-forge-git-session-permissions.md), so it reads what the Session's commands see. Inspection reads the top-level, Git, and common Git directories, the branch or the abbreviated HEAD commit, the upstream, the remotes, and the size of the branch's changes against its fork point. It runs when a Session is followed, after each `workspace-root/change`, `tool/result`, and `sandbox/mode` event, and on refresh, one at a time with one trailing rerun.
|
||||
|
||||
Status polling follows panel subscriptions: a Session's bindings are watched only while one of its surfaces is mounted, and the registry stops polling change requests nobody watches. Each card keeps the last snapshot a poll returned, so a transient failure keeps the title and number visible. A Session's only open change request starts expanded, and with several every card starts collapsed; the user's first toggle replaces this default.
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ Status: implemented
|
||||
|
||||
评审与工作树控件服务于同一个代码修改流程。统一插件入口让用户可以一次启用这些能力,无需根据底层包的拆分判断应该开启哪张卡片。包与两套工作树服务仍保持独立,分别负责会话开始前和对话中创建工作树的流程。
|
||||
|
||||
Remote 通过 Session 的子进程提供方,按其[解析出的权限与查询限制](../bug-fix/2026-10-28-forge-git-session-permissions.zh.md)检查检出,因此它读到的与 Session 命令看到的相同。检查读取顶层目录、Git 目录与公共 Git 目录、分支或缩写的 HEAD 提交、上游与远端,以及分支相对于其分叉点的变更规模。它在 Session 被关注时、每个 `working-directory/change`、`tool/result` 与 `sandbox/mode` 事件之后以及刷新时运行,一次只运行一个,最多再追加一次。
|
||||
Remote 通过 Session 的子进程提供方,按其[解析出的权限与查询限制](../bug-fix/2026-10-28-forge-git-session-permissions.zh.md)检查检出,因此它读到的与 Session 命令看到的相同。检查读取顶层目录、Git 目录与公共 Git 目录、分支或缩写的 HEAD 提交、上游与远端,以及分支相对于其分叉点的变更规模。它在 Session 被关注时、每个 `workspace-root/change`、`tool/result` 与 `sandbox/mode` 事件之后以及刷新时运行,一次只运行一个,最多再追加一次。
|
||||
|
||||
状态轮询跟随面板订阅:只有该 Session 的某个界面挂载时才监听其绑定,注册表停止轮询无人监听的变更请求。每张卡片保留最近一次轮询得到的快照,因此短暂的失败不会让标题与编号消失。Session 只有一个打开的变更请求时,它的卡片默认展开;有多个时全部折叠;用户第一次展开或收起卡片后,以用户的选择为准。
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
en: 07ba0c3bf73a2446
|
||||
zh: 2413783a6697133e
|
||||
/agent-note-forge-state-in-the-session-list/decision:
|
||||
en: e1d03cf4e1afd5aa
|
||||
zh: b2386cb7c17c58dd
|
||||
en: 51fc671a0c3e682e
|
||||
zh: cec607f46e7dc4b8
|
||||
/agent-note-forge-state-in-the-session-list/alternatives-considered:
|
||||
en: 3b08440ee2bf7809
|
||||
zh: a90e3fcb89cf3f74
|
||||
|
||||
@@ -12,7 +12,7 @@ The [forge panel](2026-10-09-forge-panel.md) named a Session's branch in a chip
|
||||
|
||||
The chip beside the Session title is gone, and the tab's first row names the branch. A Session row shows, after its time, a branch glyph while the Session works in the worktree the panel created for it, and the glyph of its most urgent change request: one needing attention first, then open, draft, not yet polled, merged, and closed. An open change request's glyph keeps the row's subdued color with a dot for its checks; merged and closed ones keep their state colors. The row's hover card section names the worktree branch and what it started from, then up to three change requests with their state and checks, and how many more there are.
|
||||
|
||||
Log facts reach the list as projection client views, which the Session summary carries. The `forgeWorktree` projection also records the Session's directory from its header and each `working-directory/change`, and its view is the created worktree while that directory is the worktree or lies below it, else null. The `forgeChangeRequests` view lists the bindings without status, as the [binding decision](2026-10-09-session-change-request-bindings.md) intended. The projection cache keeps both for Sessions that are not loaded.
|
||||
Log facts reach the list as projection client views, which the Session summary carries. The `forgeWorktree` projection also records the Session's directory from its header and each `workspace-root/change` or `working-directory/change`, and its view is the created worktree while that directory is the worktree or lies below it, else null. The `forgeChangeRequests` view lists the bindings without status, as the [binding decision](2026-10-09-session-change-request-bindings.md) intended. The projection cache keeps both for Sessions that are not loaded.
|
||||
|
||||
Polled states reach the list through the `forgePanel.changeRequestStates` stream. One Host run serves every stream and stops with the last one. It lists Sessions through `sessionQuery` without loading them, takes the visible bindings of loaded Sessions from `ctx.forgeSession` and those of other Sessions from their cached summary, follows binding changes of loaded Sessions, and subscribes to each bound change request through the shared `ctx.forge.watch`; closed requests use the idle polling cadence, and merged requests remain subscribed for explicit refresh. Every changed state is stored in the `forge_panel_change_requests` storage domain under the SHA-256 digest of its URL, so a restart shows the last known states before the next poll, and unbound stored states are dropped only when every listed Session has known bindings. A stream sends a `baseline` of the states its caller may read, then `changed` frames, filtered through Remote access.
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ Status: implemented
|
||||
|
||||
Session 标题旁的标签已移除,由标签页顶部一行写出分支。Session 在面板为它创建的 worktree 中工作时,会话行在时间之后显示分支图标;另有一个图标显示它最需要关注的变更请求,依次为需要处理、打开、草稿、尚未轮询、已合并、已关闭。打开中的变更请求图标保持会话行的浅色,并用圆点标出检查;已合并与已关闭的保留各自的状态颜色。会话行悬浮卡片中的部分写出 worktree 分支及其起点,再列出最多三个变更请求的状态与检查,并说明还有多少个。
|
||||
|
||||
日志事实经投影的客户端视图进入列表,由 Session 摘要携带。`forgeWorktree` 投影还从 Session 头部与每个 `working-directory/change` 记录 Session 的目录;该目录就是所创建的 worktree 或位于其下时,视图为该 worktree,否则为 null。`forgeChangeRequests` 视图列出绑定但不含状态,与[绑定决策](2026-10-09-session-change-request-bindings.zh.md)的设想一致。投影缓存为未加载的 Session 保留这两项。
|
||||
日志事实经投影的客户端视图进入列表,由 Session 摘要携带。`forgeWorktree` 投影还从 Session 头部与每个 `workspace-root/change` 或 `working-directory/change` 记录 Session 的目录;该目录就是所创建的 worktree 或位于其下时,视图为该 worktree,否则为 null。`forgeChangeRequests` 视图列出绑定但不含状态,与[绑定决策](2026-10-09-session-change-request-bindings.zh.md)的设想一致。投影缓存为未加载的 Session 保留这两项。
|
||||
|
||||
轮询到的状态经 `forgePanel.changeRequestStates` 流进入列表。宿主用一次运行服务所有流,最后一条流结束时运行停止。它经 `sessionQuery` 列出 Session 而不加载它们,已加载 Session 的可见绑定取自 `ctx.forgeSession`,其他 Session 的取自缓存的摘要;它跟随已加载 Session 的绑定变化,并经共享的 `ctx.forge.watch` 订阅每个已绑定的变更请求;已关闭的按空闲间隔轮询,已合并的保留订阅以接收显式刷新结果。每个变化了的状态以其 URL 的 SHA-256 摘要为键存入 `forge_panel_change_requests` 存储域,因此重启后在下次轮询之前就能显示最近已知的状态;仅在所有已列出 Session 的绑定均已知时删除无人绑定的已存状态。每条流先发送调用方可读状态的 `baseline`,之后发送 `changed` 帧,均经 Remote 访问控制过滤。
|
||||
|
||||
|
||||
@@ -87,8 +87,26 @@ jobs:
|
||||
if ! git merge-base "$HEAD_SHA" "$BASE_SHA" >/dev/null; then
|
||||
stop "the pull request shares no commit with $BASE_SHA within 150 commits of history, so nothing was merged or compiled; merge master into it and push, then this check runs again"
|
||||
fi
|
||||
git -c user.name=pr-check -c [email protected] merge --no-ff --no-edit -m "Merge $BASE_SHA into $HEAD_SHA" "$BASE_SHA" ||
|
||||
stop "the pull request cannot merge $BASE_SHA; merge master into it and push, then this check runs again"
|
||||
# The blobless history makes Git fetch missing blobs from origin on demand. Within one process, Git's cache of
|
||||
# loose-object directories does not see the merged blobs it writes, so a single `git merge` asks origin for
|
||||
# them while it checks out the result, and origin, which has never seen them, refuses the whole fetch.
|
||||
# The merge is computed by `git merge-tree` and checked out by a separate process, which rereads the
|
||||
# directories.
|
||||
set +e
|
||||
merge_output=$(git merge-tree --write-tree "$HEAD_SHA" "$BASE_SHA")
|
||||
merge_status=$?
|
||||
set -e
|
||||
if [ "$merge_status" -eq 1 ]; then
|
||||
echo "$merge_output"
|
||||
stop "the pull request conflicts with $BASE_SHA; merge master into it and push, then this check runs again"
|
||||
fi
|
||||
if [ "$merge_status" -ne 0 ]; then
|
||||
stop "git merge-tree could not merge $BASE_SHA (exit $merge_status), so nothing was compiled"
|
||||
fi
|
||||
merge_commit=$(git -c user.name=pr-check -c [email protected] commit-tree "${merge_output%%$'\n'*}" -p "$HEAD_SHA" -p "$BASE_SHA" -m "Merge $BASE_SHA into $HEAD_SHA") ||
|
||||
stop "the merged tree of $BASE_SHA could not be committed, so nothing was compiled"
|
||||
git checkout --quiet --detach "$merge_commit" ||
|
||||
stop "the merged tree of $BASE_SHA could not be checked out, so nothing was compiled"
|
||||
echo "merged=true" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- uses: pnpm/[email protected]
|
||||
|
||||
@@ -70,8 +70,6 @@ flowchart LR
|
||||
cfg --> plugin_dsh_base_session_query_sqlite
|
||||
plugin_dsh_base_working_directory["working-directory<br/>@deepseek-ai/dsh-working-directory"]
|
||||
cfg --> plugin_dsh_base_working_directory
|
||||
plugin_dsh_base_tool_working_directory["tool-working-directory<br/>@deepseek-ai/dsh-tool-working-directory"]
|
||||
cfg --> plugin_dsh_base_tool_working_directory
|
||||
plugin_dsh_base_session_projection["session-projection<br/>@deepseek-ai/dsh-session-projection"]
|
||||
cfg --> plugin_dsh_base_session_projection
|
||||
plugin_dsh_base_storage["storage<br/>@deepseek-ai/dsh-storage"]
|
||||
@@ -124,6 +122,8 @@ flowchart LR
|
||||
cfg --> plugin_dsh_base_skill_filesystem
|
||||
plugin_dsh_base_tool_skill["tool-skill<br/>@deepseek-ai/dsh-tool-skill"]
|
||||
cfg --> plugin_dsh_base_tool_skill
|
||||
plugin_dsh_base_upstream_skills["upstream-skills<br/>@deepseek-ai/dsh-upstream-skills"]
|
||||
cfg --> plugin_dsh_base_upstream_skills
|
||||
plugin_dsh_base_commands["commands<br/>@deepseek-ai/dsh-commands"]
|
||||
cfg --> plugin_dsh_base_commands
|
||||
plugin_dsh_base_command_feedback["command-feedback<br/>@deepseek-ai/dsh-command-feedback"]
|
||||
@@ -245,7 +245,6 @@ flowchart LR
|
||||
| `attachment-local` | `@deepseek-ai/dsh-attachment-local` |
|
||||
| `session-query-sqlite` | `@deepseek-ai/dsh-session-query-sqlite` |
|
||||
| `working-directory` | `@deepseek-ai/dsh-working-directory` |
|
||||
| `tool-working-directory` | `@deepseek-ai/dsh-tool-working-directory` |
|
||||
| `session-projection` | `@deepseek-ai/dsh-session-projection` |
|
||||
| `storage` | `@deepseek-ai/dsh-storage` |
|
||||
| `storage-json` | `@deepseek-ai/dsh-storage-json` |
|
||||
@@ -272,6 +271,7 @@ flowchart LR
|
||||
| `skill` | `@deepseek-ai/dsh-skill` |
|
||||
| `skill-filesystem` | `@deepseek-ai/dsh-skill-filesystem` |
|
||||
| `tool-skill` | `@deepseek-ai/dsh-tool-skill` |
|
||||
| `upstream-skills` | `@deepseek-ai/dsh-upstream-skills` |
|
||||
| `commands` | `@deepseek-ai/dsh-commands` |
|
||||
| `command-feedback` | `@deepseek-ai/dsh-command-feedback` |
|
||||
| `goal` | `@deepseek-ai/dsh-goal` |
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@deepseek-ai/dsh",
|
||||
"description": "dsh CLI: profile launch, plugin management, and configuration inspection",
|
||||
"version": "0.2.2-rc.3",
|
||||
"version": "0.2.2-rc.4",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
en: 8d2cfff9bab7327f
|
||||
zh: 21515ab6e6798504
|
||||
/dsh-cli-behavior-reference/web-profile:
|
||||
en: afc6ddcd63f24664
|
||||
zh: ed11d2ad6d7a9852
|
||||
en: b9bf517793555b80
|
||||
zh: 3dd96ecaaa6faea3
|
||||
/dsh-cli-behavior-reference/shared-deployment-behavior:
|
||||
en: f02219118dcec531
|
||||
zh: fe2977628d7340da
|
||||
|
||||
@@ -132,7 +132,7 @@ The base-backed modes treat the invoking directory as the default workspace root
|
||||
|
||||
New sessions in base-backed profiles default to the `workspace-write` permission preset. Bash and filesystem mutations are restricted to the session workspace and platform temporary roots; reads and network access are not confined, while process visibility depends on the selected sandbox backend — bwrap runs commands in a private PID namespace that hides host processes, and Landlock and Seatbelt leave host process visibility unchanged. `DSH_PERMISSION_MODE` changes the process fallback. Stored General-settings permissions affect later Web sessions, not an already-open one. The standalone `sdk-minimal` tree instead pins `danger-full-access` and mounts no approval or permission-settings service.
|
||||
|
||||
Web, headless, and SDK inherit native tool execution from the base bundle; use a [PTC overlay](../config/examples/ptc.yml) to select PTC. The shipped `minimal` agent preset keeps that deployment presentation, fixes the complete system prompt to `You are a helpful software engineer assistant.`, and provides the platform-selected persistent shell, `read_image`, and `working_directory`. It supports automatic context compaction and the human `/compact` command. Select 极简模式 when creating a Web session; the shared browser, workspace, persistence, sandbox, and permission host remains in place.
|
||||
Web, headless, and SDK inherit native tool execution from the base bundle; use a [PTC overlay](../config/examples/ptc.yml) to select PTC. The shipped `minimal` agent preset keeps that deployment presentation, fixes the complete system prompt to `You are a helpful software engineer assistant.`, and provides the platform-selected persistent shell and `read_image`. It supports automatic context compaction and the human `/compact` command. Select 极简模式 when creating a Web session; the shared browser, workspace, persistence, sandbox, and permission host remains in place.
|
||||
|
||||
## Shared deployment behavior
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ dsh web --help
|
||||
|
||||
基于 base 的 profile 中,新会话默认使用 `workspace-write` 权限预设。Bash 和文件系统修改仅限于会话 workspace 与平台临时根目录;读取和网络访问不受限制,进程可见性则取决于所选沙箱后端——bwrap 在私有 PID 命名空间中运行命令并隐藏宿主进程,Landlock 与 Seatbelt 保持宿主进程可见性不变。`DSH_PERMISSION_MODE` 更改进程后备值。General settings 中存储的权限影响后续 Web 会话,不改变已打开的会话。独立的 `sdk-minimal` 配置树则固定为 `danger-full-access`,且不挂载 approval 或权限 settings 服务。
|
||||
|
||||
Web、headless 与 SDK 继承 base bundle 的原生工具执行;使用 [PTC overlay](../config/examples/ptc.yml) 可选择 PTC。随附的 `minimal` agent preset 会保留该部署的呈现方式,将完整系统提示词固定为 `You are a helpful software engineer assistant.`,并提供按平台选择的持久 shell、`read_image` 和 `working_directory`。它支持自动上下文压缩和用户 `/compact` 命令。创建 Web 会话时请选择极简模式;共享的浏览器、workspace、持久化、沙箱与权限宿主保持不变。
|
||||
Web、headless 与 SDK 继承 base bundle 的原生工具执行;使用 [PTC overlay](../config/examples/ptc.yml) 可选择 PTC。随附的 `minimal` agent preset 会保留该部署的呈现方式,将完整系统提示词固定为 `You are a helpful software engineer assistant.`,并提供按平台选择的持久 shell 和 `read_image`。它支持自动上下文压缩和用户 `/compact` 命令。创建 Web 会话时请选择极简模式;共享的浏览器、workspace、持久化、沙箱与权限宿主保持不变。
|
||||
|
||||
## 共享部署行为
|
||||
|
||||
|
||||
@@ -1270,7 +1270,6 @@ describe.skipIf(!existsSync(dshBin))('dsh BUILT bin (node lib/bin.js, no tsx)',
|
||||
['attachment-local', '@deepseek-ai/dsh-attachment-local'],
|
||||
['tool-fs', '@deepseek-ai/dsh-tool-fs'],
|
||||
['working-directory', '@deepseek-ai/dsh-working-directory'],
|
||||
['tool-working-directory', '@deepseek-ai/dsh-tool-working-directory'],
|
||||
['session-projection', '@deepseek-ai/dsh-session-projection'],
|
||||
['token-meter', '@deepseek-ai/dsh-token-meter'],
|
||||
['compaction-basic', '@deepseek-ai/dsh-compaction-basic'],
|
||||
|
||||
@@ -172,8 +172,8 @@ describe.skipIf(!existsSync(join(root, 'apps/cli/lib/bin.js')))('Official option
|
||||
it('keeps the default host and minimal tool catalogs while every optional bundle is off', async () => {
|
||||
const minimal = await agent('minimal')
|
||||
const standard = await agent()
|
||||
expect(names()).toEqual(['team_task_create', 'team_task_get', 'team_task_list', 'team_task_update', 'working_directory'])
|
||||
expect(names(minimal.agent)).toEqual([process.platform === 'win32' ? 'pwsh' : 'bash', 'read_image', 'team_task_create', 'team_task_get', 'team_task_list', 'team_task_update', 'working_directory'])
|
||||
expect(names()).toEqual(['team_task_create', 'team_task_get', 'team_task_list', 'team_task_update'])
|
||||
expect(names(minimal.agent)).toEqual([process.platform === 'win32' ? 'pwsh' : 'bash', 'read_image', 'team_task_create', 'team_task_get', 'team_task_list', 'team_task_update'])
|
||||
for (const name of ['str_replace_editor', 'session_search', 'terminal_open', 'user_terminal_list', 'ralph']) expect(names(standard.agent)).not.toContain(name)
|
||||
expect((await ctx.skills.list({ cwd: workspace, scope: standard.agent })).some(skill => skill.name === 'dsh-badge')).toBe(false)
|
||||
})
|
||||
@@ -247,7 +247,7 @@ describe.skipIf(!existsSync(join(root, 'apps/cli/lib/bin.js')))('Official option
|
||||
expect(toolResult(owner.agent, 'badge-on')).toContain('dsh-badge.png')
|
||||
const minimal = await agent('minimal')
|
||||
expect((await ctx.skills.list({ cwd: workspace, scope: minimal.agent })).map(skill => skill.name)).toContain('dsh-badge')
|
||||
expect(names(minimal.agent)).toEqual([process.platform === 'win32' ? 'pwsh' : 'bash', 'read_image', 'team_task_create', 'team_task_get', 'team_task_list', 'team_task_update', 'working_directory'])
|
||||
expect(names(minimal.agent)).toEqual([process.platform === 'win32' ? 'pwsh' : 'bash', 'read_image', 'team_task_create', 'team_task_get', 'team_task_list', 'team_task_update'])
|
||||
await select(bundles.badge, false)
|
||||
expect((await load('badge-after')).isError).toBe(true)
|
||||
})
|
||||
@@ -347,7 +347,7 @@ describe.skipIf(!existsSync(join(root, 'apps/cli/lib/bin.js')))('Official option
|
||||
])
|
||||
expect(toolResult(coded, 'combined-program')).toContain(coded.session.id)
|
||||
expect(toolResult(coded, 'combined-program')).toContain('dsh-badge')
|
||||
expect(names()).toEqual(expect.arrayContaining(['session_search', 'terminal_open', 'ralph', 'working_directory']))
|
||||
expect(names()).toEqual(expect.arrayContaining(['session_search', 'terminal_open', 'ralph']))
|
||||
for (const name of [...Object.values(bundles)].reverse()) await select(name, false)
|
||||
expect(names((await agent()).agent)).not.toContain('session_search')
|
||||
})
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { realpathSync } from 'node:fs'
|
||||
import { createServer } from 'node:http'
|
||||
import type { IncomingMessage, ServerResponse } from 'node:http'
|
||||
import { join } from 'node:path'
|
||||
import { basename, dirname, join } from 'node:path'
|
||||
import { expect, it } from 'vitest'
|
||||
import {
|
||||
runScenario,
|
||||
@@ -140,8 +141,9 @@ it('pins Messages Files offload and inline fallback in assembled requests', asyn
|
||||
const fileImage = { type: 'image', source: { type: 'file', file_id: 'file-api-snapshot-1' } }
|
||||
const offloadedImage = `[image omitted to fit request image limits; ${attachmentId}.${normalizedAccess}]`
|
||||
const imageHandle = `Image ${attachmentId}; request preview 1x1px.${normalizedAccess}`
|
||||
// The Session header records the canonical spelling of the scenario's directory, which is removed by now.
|
||||
const runtimeContext = (cwd: string): string => '<system-reminder>\nThe following information describes your current session:\n\n'
|
||||
+ `Current working directory: ${JSON.stringify(cwd)}.\n\n`
|
||||
+ `Current working directory: ${JSON.stringify(join(realpathSync.native(dirname(cwd)), basename(cwd)))}.\n\n`
|
||||
+ 'Current DSH file policy: danger-full-access. The DSH file sandbox does not restrict file modifications by available operations.\n\n'
|
||||
+ 'Approval prompts are disabled in this session: actions that require approval are rejected automatically — do not request sandbox escalation (do not set `sandbox_permissions`).\n\n'
|
||||
+ 'You are the root agent. Your name is "lead".\n\n'
|
||||
|
||||
+2
-2
@@ -17,8 +17,8 @@
|
||||
{"type":"system/message","data":{"turn":2,"step":1,"message":{"role":"system","content":[{"type":"text","text":"{{system}}"}],"source":{"kind":"system-prompt"},"id":"{{sessionId}}"}},"sourceEventSeqs":[2],"surfaceOp":{"op":"replace","startSeq":2,"endSeq":2}}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"Delegate the write probe to a subagent."}],"source":{"kind":"user"},"role":"user","id":"{{sessionId}}"},"surfaceOp":"append"}
|
||||
{"type":"user/message","data":{"content":[{"type":"text","text":"<system-reminder>\nThe following information describes your current session:\n\nCurrent working directory: \"{{cwd}}\".\n\nCurrent DSH file policy: read-only. Any available operation enforced by the DSH file sandbox cannot modify files in the standing mode. Do not refuse a required modification from this policy alone: try an available tool normally and follow any denial and escalation guidance it returns.\n\nApproval prompts are enabled in this session: operations that require approval may ask through the configured answerers; without an available answerer, the request fails closed.\n\nYou are the root agent. Your name is \"lead\".\n\nTo message other agents, use send_message({ agent: \"<agent-name>\", message: \"...\" }).\nUse list_agents({}) to find your collaborator agents and their names.\n</system-reminder>"}],"source":{"kind":"runtime-context","form":"snapshot","sections":[{"name":"working-directory:current","text":"Current working directory: \"{{cwd}}\"."},{"name":"sandbox:policy","text":"Current DSH file policy: read-only. Any available operation enforced by the DSH file sandbox cannot modify files in the standing mode. Do not refuse a required modification from this policy alone: try an available tool normally and follow any denial and escalation guidance it returns."},{"name":"approval:policy","text":"Approval prompts are enabled in this session: operations that require approval may ask through the configured answerers; without an available answerer, the request fails closed."},{"name":"subagent:identity","text":"You are the root agent. Your name is \"lead\".\n\nTo message other agents, use send_message({ agent: \"<agent-name>\", message: \"...\" }).\nUse list_agents({}) to find your collaborator agents and their names."}]},"role":"user","id":"{{sessionId}}"},"surfaceOp":"append"}
|
||||
{"type":"request/header","data":{"header":{"config":{"provider":"deepseek-official","model":"deepseek-v4-flash","reasoningEffort":"low"},"tools":["apply_patch","bash","create_goal","edit","get_goal","glob","grep","job_kill","job_list","job_output","list_agents","read","read_image","send_message","skill","subagent","subagent_fork","todo_write","update_goal","wait_agent","web_fetch","web_search","workflow","working_directory","write"]},"reason":"resume","startsSeries":true}}
|
||||
{"type":"developer/message","data":{"turn":2,"step":1,"message":{"source":{"kind":"tool-registry"},"content":[{"type":"tool-addition","toolName":"apply_patch"},{"type":"tool-addition","toolName":"bash"},{"type":"tool-addition","toolName":"create_goal"},{"type":"tool-addition","toolName":"edit"},{"type":"tool-addition","toolName":"get_goal"},{"type":"tool-addition","toolName":"glob"},{"type":"tool-addition","toolName":"grep"},{"type":"tool-addition","toolName":"job_kill"},{"type":"tool-addition","toolName":"job_list"},{"type":"tool-addition","toolName":"job_output"},{"type":"tool-addition","toolName":"list_agents"},{"type":"tool-addition","toolName":"read"},{"type":"tool-addition","toolName":"read_image"},{"type":"tool-addition","toolName":"send_message"},{"type":"tool-addition","toolName":"skill"},{"type":"tool-addition","toolName":"subagent"},{"type":"tool-addition","toolName":"subagent_fork"},{"type":"tool-addition","toolName":"todo_write"},{"type":"tool-addition","toolName":"update_goal"},{"type":"tool-addition","toolName":"wait_agent"},{"type":"tool-addition","toolName":"web_fetch"},{"type":"tool-addition","toolName":"web_search"},{"type":"tool-addition","toolName":"workflow"},{"type":"tool-addition","toolName":"working_directory"},{"type":"tool-addition","toolName":"write"}],"role":"developer","id":"{{sessionId}}"},"headerSeq":18},"surfaceOp":"append"}
|
||||
{"type":"request/header","data":{"header":{"config":{"provider":"deepseek-official","model":"deepseek-v4-flash","reasoningEffort":"low"},"tools":["apply_patch","bash","create_goal","edit","get_goal","glob","grep","job_kill","job_list","job_output","list_agents","read","read_image","send_message","skill","subagent","subagent_fork","todo_write","update_goal","wait_agent","web_fetch","web_search","workflow","write"]},"reason":"resume","startsSeries":true}}
|
||||
{"type":"developer/message","data":{"turn":2,"step":1,"message":{"source":{"kind":"tool-registry"},"content":[{"type":"tool-addition","toolName":"apply_patch"},{"type":"tool-addition","toolName":"bash"},{"type":"tool-addition","toolName":"create_goal"},{"type":"tool-addition","toolName":"edit"},{"type":"tool-addition","toolName":"get_goal"},{"type":"tool-addition","toolName":"glob"},{"type":"tool-addition","toolName":"grep"},{"type":"tool-addition","toolName":"job_kill"},{"type":"tool-addition","toolName":"job_list"},{"type":"tool-addition","toolName":"job_output"},{"type":"tool-addition","toolName":"list_agents"},{"type":"tool-addition","toolName":"read"},{"type":"tool-addition","toolName":"read_image"},{"type":"tool-addition","toolName":"send_message"},{"type":"tool-addition","toolName":"skill"},{"type":"tool-addition","toolName":"subagent"},{"type":"tool-addition","toolName":"subagent_fork"},{"type":"tool-addition","toolName":"todo_write"},{"type":"tool-addition","toolName":"update_goal"},{"type":"tool-addition","toolName":"wait_agent"},{"type":"tool-addition","toolName":"web_fetch"},{"type":"tool-addition","toolName":"web_search"},{"type":"tool-addition","toolName":"workflow"},{"type":"tool-addition","toolName":"write"}],"role":"developer","id":"{{sessionId}}"},"headerSeq":18},"surfaceOp":"append"}
|
||||
{"type":"request/context","data":{"provider":"deepseek-official","model":"deepseek-v4-flash"}}
|
||||
{"type":"session/title","data":{"title":"Tighten this session to read-only.","messageSeqs":[3],"source":{"kind":"fallback"}}}
|
||||
{"type":"assistant/message","data":{"turn":2,"step":1,"message":{"role":"assistant","content":[{"type":"tool-call","id":"delegate-write","name":"subagent","arguments":"{\"description\": \"Delegated write probe\", \"prompt\": \"Use the write tool exactly once with file_path set to exactly the relative path inherited.txt and content escaped. If the write is denied, reply with the single word CHILD_DENIED and the denial marker line; do not retry and do not request escalation. If it succeeds, reply CHILD_WROTE.\"}"}],"source":{"kind":"model","provider":"deepseek-official","model":"deepseek-v4-flash"},"id":"{{sessionId}}"},"usage":{"inputTokens":10,"outputTokens":5},"stream":[{"type":"chunk","time":0,"chunk":{"type":"block-start","index":0,"blockType":"tool-call"}},{"type":"tool-call-chunks","time0":0,"index":0,"dt":[],"id":"delegate-write","name":"subagent","args":["{\"description\": \"Delegated write probe\", \"prompt\": \"Use the write tool exactly once with file_path set to exactly the relative path inherited.txt and content escaped. If the write is denied, reply with the single word CHILD_DENIED and the denial marker line; do not retry and do not request escalation. If it succeeds, reply CHILD_WROTE.\"}"]},{"type":"chunk","time":0,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"delegate-write","name":"subagent","arguments":"{\"description\": \"Delegated write probe\", \"prompt\": \"Use the write tool exactly once with file_path set to exactly the relative path inherited.txt and content escaped. If the write is denied, reply with the single word CHILD_DENIED and the denial marker line; do not retry and do not request escalation. If it succeeds, reply CHILD_WROTE.\"}"}}},{"type":"chunk","time":0,"chunk":{"type":"usage","usage":{"inputTokens":10,"outputTokens":5}}},{"type":"chunk","time":0,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}]},"surfaceOp":"append"}
|
||||
|
||||
@@ -392,7 +392,6 @@ describe('Python SDK dsh profile keyless smoke', () => {
|
||||
process.platform === 'win32' ? 'pwsh' : 'bash',
|
||||
...(optOut ? [] : ['read_image']),
|
||||
...(editorEnabled ? ['str_replace_editor'] : []),
|
||||
'working_directory',
|
||||
])
|
||||
expect(modelRequests).toHaveLength(editorEnabled ? 3 : imageEnabled ? 2 : 1)
|
||||
if (imageEnabled) {
|
||||
|
||||
@@ -252,7 +252,7 @@ beforeAll(async () => {
|
||||
describe('the shipped Web composition', () => {
|
||||
it('registers the directory and conditional Team tools in the global layer', () => {
|
||||
// Team registrations are shared; session mode controls their step-time availability.
|
||||
expect(toolNames(ctx)).toEqual(['team_task_create', 'team_task_get', 'team_task_list', 'team_task_update', 'working_directory'])
|
||||
expect(toolNames(ctx)).toEqual(['team_task_create', 'team_task_get', 'team_task_list', 'team_task_update'])
|
||||
})
|
||||
|
||||
it('keeps the token meter and its context-meter projections on the host plane', async () => {
|
||||
@@ -356,7 +356,7 @@ describe('the shipped Web composition', () => {
|
||||
'schedule_create', 'schedule_edit', 'schedule_list', 'schedule_view',
|
||||
'send_message', 'skill',
|
||||
'subagent', 'subagent_fork', 'team_task_create', 'team_task_get', 'team_task_list', 'team_task_update', 'todo_write', 'update_goal', 'wait_agent', 'web_fetch', 'web_search',
|
||||
'workflow', 'working_directory', 'write',
|
||||
'workflow', 'write',
|
||||
])
|
||||
expect(ctx.commands.find(handle.agent, 'goal')).toBeDefined()
|
||||
for (const query of [undefined, { platform: 'host', provider: 'Config', method: 'listConfigs', input: { name: '@deepseek-ai/dsh-agent-loop' } }] as const) {
|
||||
@@ -409,7 +409,7 @@ describe('the shipped Web composition', () => {
|
||||
'model', 'provider', 'reasoning_effort',
|
||||
]))
|
||||
for (const agent of [disabled.agent, enabled.agent]) {
|
||||
expect(toolParameterNames(ctx, agent, 'subagent_fork')).toEqual(['cwd', 'description', 'name', 'prompt'])
|
||||
expect(toolParameterNames(ctx, agent, 'subagent_fork')).toEqual(['description', 'name', 'prompt'])
|
||||
}
|
||||
} finally {
|
||||
await ctx.settings.update(SUBAGENT_MODEL_SELECTION_SETTINGS_NAMESPACE, { enabled: false })
|
||||
@@ -471,7 +471,7 @@ describe('the shipped Web composition', () => {
|
||||
expect(assembly.sections).toEqual([
|
||||
{ name: 'deployment:persona-prefix', text: MINIMAL_PROMPT },
|
||||
])
|
||||
expect(assembly.tools.map(tool => tool.name)).toEqual(['bash', 'read_image', 'team_task_create', 'team_task_get', 'team_task_list', 'team_task_update', 'working_directory'])
|
||||
expect(assembly.tools.map(tool => tool.name)).toEqual(['bash', 'read_image', 'team_task_create', 'team_task_get', 'team_task_list', 'team_task_update'])
|
||||
expect(assembly.tools.find(tool => tool.name === 'bash')?.description).toBe(MINIMAL_BASH_DESCRIPTION)
|
||||
expect(ctx.commands.find(handle.agent, 'goal')).toBeUndefined()
|
||||
// serviceFor reports preset-owned providers; unisolated consumers inherit the host fs.
|
||||
@@ -513,7 +513,7 @@ describe('the shipped Web composition', () => {
|
||||
if (image?.type !== 'image') throw new Error('minimal image read produced no durable image')
|
||||
expect((await ctx.attachments.readImage(image.attachment)).data.byteLength).toBe(image.attachment.bytes)
|
||||
expect(JSON.stringify(adapter.requests[1]?.messages)).toContain(image.attachment.attachmentId)
|
||||
expect(adapter.requests[0]?.tools?.map(tool => tool.name)).toEqual(['bash', 'read_image', 'working_directory'])
|
||||
expect(adapter.requests[0]?.tools?.map(tool => tool.name)).toEqual(['bash', 'read_image'])
|
||||
expect(result?.data.meta).toMatchObject({ path: await realpath(join(cwd, 'red.png')) })
|
||||
} finally {
|
||||
await handle.dispose()
|
||||
@@ -548,7 +548,7 @@ describe('the shipped Web composition', () => {
|
||||
const last = adapter.requests.at(-1)
|
||||
expect(last?.messages.flatMap(message => message.content)
|
||||
.some(block => block.type === 'text' && block.text.includes('Preserve the requested project task.'))).toBe(true)
|
||||
expect(toolNames(ctx, handle.agent)).toEqual(['bash', 'read_image', 'team_task_create', 'team_task_get', 'team_task_list', 'team_task_update', 'working_directory'])
|
||||
expect(toolNames(ctx, handle.agent)).toEqual(['bash', 'read_image', 'team_task_create', 'team_task_get', 'team_task_list', 'team_task_update'])
|
||||
} finally {
|
||||
await handle.dispose()
|
||||
}
|
||||
@@ -592,7 +592,7 @@ describe('the shipped Web composition', () => {
|
||||
setup: agentCtx => ctx.agentPresets.mount(agentCtx, 'minimal').then(() => undefined),
|
||||
})
|
||||
try {
|
||||
expect(toolNames(ctx, minimal.agent)).toEqual(['bash', 'read_image', 'team_task_create', 'team_task_get', 'team_task_list', 'team_task_update', 'working_directory'])
|
||||
expect(toolNames(ctx, minimal.agent)).toEqual(['bash', 'read_image', 'team_task_create', 'team_task_get', 'team_task_list', 'team_task_update'])
|
||||
expect(toolNames(ctx, full.agent).length).toBeGreaterThan(10)
|
||||
expect(ctx.agentPresets.serviceFor(minimal.agent, 'compaction'))
|
||||
.not.toBe(ctx.agentPresets.serviceFor(full.agent, 'compaction'))
|
||||
@@ -601,7 +601,7 @@ describe('the shipped Web composition', () => {
|
||||
|
||||
// Tearing the minimal session down leaves the full one whole.
|
||||
expect(toolNames(ctx, full.agent).length).toBeGreaterThan(10)
|
||||
expect(toolNames(ctx)).toEqual(['team_task_create', 'team_task_get', 'team_task_list', 'team_task_update', 'working_directory'])
|
||||
expect(toolNames(ctx)).toEqual(['team_task_create', 'team_task_get', 'team_task_list', 'team_task_update'])
|
||||
} finally {
|
||||
await full.dispose()
|
||||
}
|
||||
@@ -812,7 +812,7 @@ describe('the shipped Web composition', () => {
|
||||
// stays the preset's choice — minimal mounts no `tool-skill`, so its
|
||||
// tool table has no loader even though the global layer is readable.
|
||||
expect((await ctx.skills.list({ scope: handle.agent })).map(skill => skill.name)).toContain('dsh-badge')
|
||||
expect(toolNames(ctx, handle.agent)).toEqual(['bash', 'read_image', 'team_task_create', 'team_task_get', 'team_task_list', 'team_task_update', 'working_directory'])
|
||||
expect(toolNames(ctx, handle.agent)).toEqual(['bash', 'read_image', 'team_task_create', 'team_task_get', 'team_task_list', 'team_task_update'])
|
||||
} finally {
|
||||
await handle.dispose()
|
||||
}
|
||||
@@ -917,7 +917,7 @@ describe.each(['web', 'desktop'] as const)('%s native subagent bundles', (surfac
|
||||
})
|
||||
try {
|
||||
for (const product of installed) {
|
||||
expect(toolParameterNames(productCtx, handle.agent, toolName(product))).toEqual(['cwd', 'description', 'name', 'prompt'])
|
||||
expect(toolParameterNames(productCtx, handle.agent, toolName(product))).toEqual(['description', 'name', 'prompt'])
|
||||
}
|
||||
} finally { await handle.dispose() }
|
||||
expect(spawn).not.toHaveBeenCalled()
|
||||
@@ -1352,7 +1352,7 @@ describe('the default preset as a user setting', () => {
|
||||
})
|
||||
try {
|
||||
// An omitted preset id resolves the stored default instead of the composed default.
|
||||
expect(toolNames(ctx, handle.agent)).toEqual(['bash', 'read_image', 'team_task_create', 'team_task_get', 'team_task_list', 'team_task_update', 'working_directory'])
|
||||
expect(toolNames(ctx, handle.agent)).toEqual(['bash', 'read_image', 'team_task_create', 'team_task_get', 'team_task_list', 'team_task_update'])
|
||||
} finally {
|
||||
await handle.dispose()
|
||||
}
|
||||
@@ -1398,7 +1398,7 @@ describe('a profile patch stored before Developer tools owned preset selection',
|
||||
setup: agentCtx => legacy.agentPresets.mount(agentCtx).then(() => undefined),
|
||||
})
|
||||
try {
|
||||
expect(toolNames(legacy, handle.agent)).toEqual(['bash', 'read_image', 'team_task_create', 'team_task_get', 'team_task_list', 'team_task_update', 'working_directory'])
|
||||
expect(toolNames(legacy, handle.agent)).toEqual(['bash', 'read_image', 'team_task_create', 'team_task_get', 'team_task_list', 'team_task_update'])
|
||||
} finally {
|
||||
await handle.dispose()
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@deepseek-ai/dsh-desktop-host",
|
||||
"description": "Private Node-mode host process for the Electron desktop application",
|
||||
"version": "0.2.2-rc.3",
|
||||
"version": "0.2.2-rc.4",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@deepseek-ai/dsh-desktop-publisher",
|
||||
"version": "0.2.2-rc.3",
|
||||
"version": "0.2.2-rc.4",
|
||||
"description": "Private Desktop release metadata, rollout and website publisher",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@deepseek-ai/dsh-desktop",
|
||||
"description": "Electron desktop shell for a bundled dsh runtime and external plugins",
|
||||
"version": "0.2.2-rc.3",
|
||||
"version": "0.2.2-rc.4",
|
||||
"private": true,
|
||||
"license": "MIT",
|
||||
"author": {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@deepseek-ai/dsh-plugin-market-generator",
|
||||
"description": "Reference generator of plugin market index files from a list of npm packages and Git repositories",
|
||||
"version": "0.2.2-rc.3",
|
||||
"version": "0.2.2-rc.4",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@deepseek-ai/dsh-web-frontend",
|
||||
"description": "Web application entry: vite build over the @deepseek-ai/dsh-client-web shell library; dist/ served by apps/cli's dsh web",
|
||||
"version": "0.2.2-rc.3",
|
||||
"version": "0.2.2-rc.4",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
|
||||
@@ -217,6 +217,8 @@ describe.each(['MacIntel', 'Win32', 'Linux x86_64'])('web context menus on %s',
|
||||
await page.getByRole('menuitem', { name: 'Copy file path', exact: true }).waitFor()
|
||||
await page.keyboard.press('End')
|
||||
expect(await page.getByRole('menuitem', { name: 'Save as…', exact: true }).count()).toBe(0)
|
||||
expect(await page.getByRole('menuitem', { name: 'Add to chat', exact: true }).evaluate(element => element === document.activeElement)).toBe(true)
|
||||
await page.keyboard.press('ArrowUp')
|
||||
expect(await page.getByRole('menuitem', { name: 'Download', exact: true }).evaluate(element => element === document.activeElement)).toBe(true)
|
||||
await page.keyboard.press('ArrowUp')
|
||||
expect(await page.getByRole('menuitem', { name: 'Copy file path', exact: true }).evaluate(element => element === document.activeElement)).toBe(true)
|
||||
|
||||
@@ -406,9 +406,10 @@ describe.skipIf(MODE === 'record')('web e2e: details panel follows the current S
|
||||
expect(await panel.getAttribute('data-sidebar-right-panel')).toBe('push')
|
||||
expect(await paneSnapshot(page)).toEqual(retainedB)
|
||||
await open()
|
||||
await expect.poll(() => workspaceDirectory.getAttribute('aria-expanded')).toBe('false')
|
||||
// B stayed a recent view while A was shown, so its Files tree keeps the expanded directory.
|
||||
await expect.poll(() => workspaceDirectory.getAttribute('aria-expanded')).toBe('true')
|
||||
expect(await paneSnapshot(page)).toEqual(retainedB)
|
||||
await checkpoint('B restored: normal mode and collapsed Files directory')
|
||||
await checkpoint('B restored: normal mode and expanded Files directory')
|
||||
await close()
|
||||
await select(original, 'LIGHTHOUSE')
|
||||
await expect.poll(() => columns(page)).toEqual(normalColumns)
|
||||
|
||||
@@ -73,11 +73,12 @@ async function observeDraftApi(page: Page): Promise<void> {
|
||||
if (typeof exports.apply !== 'function') {
|
||||
throw new Error(`ui-workspace factory returned keys ${Object.keys(exports).join(',')}; apply is ${typeof exports.apply}`)
|
||||
}
|
||||
const originalApply = exports.apply as (ctx: WorkspaceApplyContext) => unknown
|
||||
const originalApply = exports.apply as (ctx: WorkspaceApplyContext, ...rest: readonly unknown[]) => unknown
|
||||
return {
|
||||
...exports,
|
||||
apply(ctx: WorkspaceApplyContext) {
|
||||
const result = originalApply.call(exports, ctx)
|
||||
// Forward the synced Config and any later argument the Loader passes.
|
||||
apply(ctx: WorkspaceApplyContext, ...rest: readonly unknown[]) {
|
||||
const result = originalApply.call(exports, ctx, ...rest)
|
||||
observation.startSession = (workspaceId, options) => {
|
||||
const workspace = ctx.get('uiWorkspace')
|
||||
if (workspace === undefined) throw new Error('The shipped uiWorkspace service is unavailable')
|
||||
|
||||
@@ -800,7 +800,7 @@ it.skipIf(MODE === 'record')('automatically shows a numbered PR when gh JSON omi
|
||||
const sessionId = await settled
|
||||
const events = await readPersistedEvents(launch.scaffold, sessionId)
|
||||
const request = events.find(event => event.type === 'request/header')
|
||||
expect(request?.data.header.tools?.filter(tool => tool.name === 'create_worktree')).toHaveLength(1)
|
||||
expect(request?.data.header.tools?.filter(tool => tool.name === 'enter_worktree')).toHaveLength(1)
|
||||
const toolOutput = events.flatMap(event => event.type === 'tool/result'
|
||||
? event.data.message.content.flatMap(block => block.type === 'text' ? [block.text] : []) : []).join('\n')
|
||||
expect(toolOutput).toContain('Add the pull request panel')
|
||||
|
||||
@@ -11,9 +11,9 @@ import { sessionFileAddress } from '@deepseek-ai/dsh-util-workspace-path'
|
||||
import type {} from '@deepseek-ai/dsh-session-title'
|
||||
import {
|
||||
assertFixtureInventory, captureStableAria, compareOrRefreshGolden,
|
||||
launchWebScaffold, seedSession, watchConsole, webSnapshotMode, type WebScaffold,
|
||||
launchWebScaffold, readPersistedEvents, seedSession, watchConsole, webSnapshotMode, type WebScaffold,
|
||||
} from './scaffold.ts'
|
||||
import { expandOwningTurnProcess, newEnglishPage, saveFailureShot } from './support.ts'
|
||||
import { expandOwningTurnProcess, newEnglishPage, saveFailureShot, writeComposerDraft } from './support.ts'
|
||||
|
||||
const SNAPSHOT_DIR = fileURLToPath(new URL('../../../snapshots/web/markdown-file-links', import.meta.url))
|
||||
const MODE = webSnapshotMode()
|
||||
@@ -77,7 +77,7 @@ function changedDirectoryFixture(path: string): string {
|
||||
content: [{ type: 'text', text: 'Enter the worktree and link its notes.' }], source: { kind: 'user' },
|
||||
}), { surfaceOp: 'append' })
|
||||
session.append('session/title', { title: 'Changed directory links', messageSeqs: [user.seq], source: { kind: 'fallback' } })
|
||||
session.append('working-directory/change', { cwd: '{{cwd}}/.agents/worktrees/w' })
|
||||
session.append('workspace-root/change', { cwd: '{{cwd}}/.agents/worktrees/w' })
|
||||
session.append('step/start', { turn: 1, step: 1 })
|
||||
session.append('assistant/message', {
|
||||
turn: 1, step: 1, stream: [],
|
||||
@@ -161,7 +161,52 @@ describe('web e2e: Markdown file links', () => {
|
||||
expect(page.url()).toBe(beforeUrl)
|
||||
expect(tripwire.pageErrors).toEqual([])
|
||||
expect(tripwire.warnings).toEqual([])
|
||||
await assertFixtureInventory(SNAPSHOT_DIR, ['session.v3.jsonl', 'links.expected.md', 'preview.expected.md'])
|
||||
})
|
||||
|
||||
it('adds a recorded line-labeled file to the draft without its line suffix or a new turn', async () => {
|
||||
onTestFailed(() => saveFailureShot(page, 'web-e2e-markdown-file-add-to-chat'))
|
||||
const sessionId = brandString<SessionId>('markdown-file-links')
|
||||
const beforeEvents = await readPersistedEvents(scaffold, sessionId)
|
||||
const beforeMessages = await page.locator('[data-chat-flow-kind="user"]').count()
|
||||
const input = page.locator('[data-composer-input]').first()
|
||||
const draft = 'Review this file next: '
|
||||
await writeComposerDraft(page, input, draft)
|
||||
await page.getByRole('button', { name: 'src/example.txt:24–30', exact: true }).click({ button: 'right' })
|
||||
const menu = page.getByRole('menu')
|
||||
const action = menu.getByRole('menuitem', { name: 'Add to chat', exact: true })
|
||||
await action.waitFor()
|
||||
expect(await menu.getByRole('menuitem').last().textContent()).toBe('Add to chat')
|
||||
const menuAria = await captureStableAria(page, '[role="menu"]', scaffold.workspaceCwd)
|
||||
await action.click()
|
||||
await menu.waitFor({ state: 'hidden' })
|
||||
await expect.poll(() => input.evaluate(node => node === document.activeElement)).toBe(true)
|
||||
await expect.poll(() => input.textContent()).toBe(`${draft}example.txt `)
|
||||
const chip = input.locator('[data-composer-chip]')
|
||||
expect(await chip.count()).toBe(1)
|
||||
expect(await chip.textContent()).toBe('example.txt')
|
||||
expect(await chip.locator('svg').count()).toBe(1)
|
||||
const composerAria = await captureStableAria(page, '[data-composer-input]', scaffold.workspaceCwd)
|
||||
await compareOrRefreshGolden(join(SNAPSHOT_DIR, 'add-to-chat.expected.md'),
|
||||
`## File menu\n\n${menuAria}\n\n## Composer\n\n${composerAria}`, MODE)
|
||||
|
||||
await page.keyboard.press('ControlOrMeta+A')
|
||||
const copied = await input.evaluate((node) => {
|
||||
const clipboardData = new DataTransfer()
|
||||
node.dispatchEvent(new ClipboardEvent('copy', { clipboardData, bubbles: true, cancelable: true }))
|
||||
return clipboardData.getData('text/plain')
|
||||
})
|
||||
const path = join(scaffold.workspaceCwd, 'src/example.txt')
|
||||
expect(copied).toBe(`${draft}@${path} `)
|
||||
expect(copied).not.toContain(':24')
|
||||
expect(copied).not.toContain('#L24')
|
||||
expect(await page.locator('[data-chat-flow-kind="user"]').count()).toBe(beforeMessages)
|
||||
expect(await readPersistedEvents(scaffold, sessionId)).toEqual(beforeEvents)
|
||||
await writeComposerDraft(page, input, '')
|
||||
expect(tripwire.pageErrors).toEqual([])
|
||||
expect(tripwire.warnings).toEqual([])
|
||||
await assertFixtureInventory(SNAPSHOT_DIR, [
|
||||
'session.v3.jsonl', 'links.expected.md', 'preview.expected.md', 'add-to-chat.expected.md',
|
||||
])
|
||||
})
|
||||
|
||||
it('replays colon line suffixes as locations and shares tabs with fragment links', async () => {
|
||||
|
||||
@@ -139,7 +139,6 @@ describe('minimal agent preset', () => {
|
||||
"tools": [
|
||||
"bash",
|
||||
"read_image",
|
||||
"working_directory",
|
||||
],
|
||||
}
|
||||
`)
|
||||
@@ -393,7 +392,7 @@ describe('minimal image reading', () => {
|
||||
|
||||
it('logs a durable image with the minimal tool roster', async () => {
|
||||
const session = handle.agent.session
|
||||
expect(session.requestHeader()?.tools?.map(tool => tool.name)).toEqual(['bash', 'read_image', 'working_directory'])
|
||||
expect(session.requestHeader()?.tools?.map(tool => tool.name)).toEqual(['bash', 'read_image'])
|
||||
const result = session.snapshotEvents().find(event => event.type === 'tool/result')
|
||||
expect(result?.data.message.isError).toBe(false)
|
||||
expect(result?.data.meta).toEqual({ path: join(scaffold.workspaceCwd, 'red.png') })
|
||||
|
||||
@@ -60,7 +60,7 @@ function mentionFixture(): string {
|
||||
}),
|
||||
}, { surfaceOp: 'append' })
|
||||
for (const call of calls) {
|
||||
if (call.path === 'report.txt') session.append('working-directory/change', { cwd: '{{cwd}}/child' })
|
||||
if (call.path === 'report.txt') session.append('workspace-root/change', { cwd: '{{cwd}}/child' })
|
||||
const source = session.append('tool/call', {
|
||||
turn: 1,
|
||||
step: 1,
|
||||
@@ -79,7 +79,7 @@ function mentionFixture(): string {
|
||||
}),
|
||||
}, { surfaceOp: 'append', sourceEventSeqs: [source.seq] })
|
||||
}
|
||||
session.append('working-directory/change', { cwd: '{{cwd}}' })
|
||||
session.append('workspace-root/change', { cwd: '{{cwd}}' })
|
||||
session.append('deliverables/presented', { turn: 1, callId: brandString<ToolCallId>('present-child'), files: [{ path: '{{cwd}}/child/report.txt' }] })
|
||||
session.append('step/end', { turn: 1, step: 1 })
|
||||
session.append('step/start', { turn: 1, step: 2 })
|
||||
|
||||
@@ -165,6 +165,7 @@ describe.skipIf(MODE === 'record')('web e2e: file and session references through
|
||||
// stays out of the menu golden.
|
||||
await mkdir(join(scaffold.workspaceCwd, 'workspace', 'folderx', 'nested'), { recursive: true })
|
||||
await writeFile(join(scaffold.workspaceCwd, 'workspace', 'folderx', 'nested', 'leaf.txt'), 'leaf fixture\n')
|
||||
await writeFile(join(scaffold.workspaceCwd, 'workspace', 'folderx', 'nested', 'space name.txt'), 'space fixture\n')
|
||||
await page.goto(scaffold.authenticatedUrl, { waitUntil: 'load' })
|
||||
await page.waitForSelector('[class*="frame"]', { timeout: 30_000 })
|
||||
await connectFreshWorkspace(page, scaffold.workspaceCwd)
|
||||
@@ -429,4 +430,108 @@ describe.skipIf(MODE === 'record')('web e2e: file and session references through
|
||||
expect(tripwire.warnings).toEqual([])
|
||||
await assertFixtureInventory(SNAPSHOT_DIR, ['menu.expected.md', 'order.expected.md'])
|
||||
})
|
||||
|
||||
it('adds a sidebar file after retained selection without sending and undoes it as one edit', async () => {
|
||||
onTestFailed(() => saveFailureShot(page, 'web-e2e-reference-add-to-chat'))
|
||||
const group = page.getByRole('treeitem', { name: /Ungrouped/ })
|
||||
await group.waitFor({ timeout: 15_000 })
|
||||
if (await group.getAttribute('aria-expanded') !== 'true') await group.click()
|
||||
await page.locator(`[data-row-key="session:${TARGET_SESSION_ID}"]`).click()
|
||||
await page.locator('[data-chat-flow-kind="user"]').filter({ hasText: 'Research notes' }).waitFor()
|
||||
const input = page.locator('[data-composer-input]').first()
|
||||
const suggestions = page.getByRole('listbox', { name: 'Trigger suggestions' })
|
||||
const directory = join(scaffold.workspaceCwd, 'workspace', 'folderx', 'nested')
|
||||
const file = join(directory, 'space name.txt')
|
||||
const sessionId = brandString<SessionId>(TARGET_SESSION_ID)
|
||||
const beforeEvents = (await readPersistedEvents(scaffold, sessionId))
|
||||
.filter(event => event.type === 'user/message' || event.type.startsWith('turn/'))
|
||||
const beforeMessages = await page.locator('[data-chat-flow-kind="user"]').count()
|
||||
|
||||
// An absolute query compares the same resource spelling as the sidebar.
|
||||
await replaceReferenceQuery(page, input, `@"${directory}/`)
|
||||
const option = suggestions.getByRole('option', { name: /^space name\.txt/ })
|
||||
await option.waitFor({ timeout: 15_000 })
|
||||
await option.click()
|
||||
const chip = input.locator('[data-composer-chip]')
|
||||
await expect.poll(() => chip.textContent()).toBe('space name.txt')
|
||||
const pickerAppearance = await chip.evaluate(node => ({
|
||||
source: node.getAttribute('data-composer-chip'),
|
||||
label: node.textContent,
|
||||
icons: node.querySelectorAll('svg').length,
|
||||
}))
|
||||
await page.keyboard.press('ControlOrMeta+A')
|
||||
// A page-local clipboard avoids interference with parallel browser workers.
|
||||
const pickerClipboard = await input.evaluate((node) => {
|
||||
const clipboardData = new DataTransfer()
|
||||
node.dispatchEvent(new ClipboardEvent('copy', { clipboardData, bubbles: true, cancelable: true }))
|
||||
return clipboardData.getData('text/plain')
|
||||
})
|
||||
expect(pickerClipboard).toBe(`@"${file}" `)
|
||||
await writeComposerDraft(page, input, '')
|
||||
|
||||
const column = page.locator('[data-rightbar-col]')
|
||||
await page.locator('[data-sidebar-right-expand]').click()
|
||||
await column.locator('[data-sidebar-right-guide-entry="files"]').click()
|
||||
const navigator = column.locator('[data-files-navigator]:visible')
|
||||
await navigator.waitFor()
|
||||
for (const name of ['workspace', 'folderx', 'nested']) {
|
||||
const folder = navigator.getByRole('button', { name, exact: true })
|
||||
await folder.waitFor()
|
||||
if (await folder.getAttribute('aria-expanded') !== 'true') await folder.click()
|
||||
}
|
||||
const row = navigator.getByRole('button', { name: 'space name.txt', exact: true })
|
||||
await row.waitFor()
|
||||
const draft = 'Review selected, then finish.'
|
||||
await writeComposerDraft(page, input, draft)
|
||||
const word = await input.evaluate((node) => {
|
||||
const text = document.createTreeWalker(node, NodeFilter.SHOW_TEXT).nextNode()
|
||||
if (text === null) throw new Error('Composer draft has no text')
|
||||
const range = document.createRange()
|
||||
range.setStart(text, 'Review '.length)
|
||||
range.setEnd(text, 'Review selected'.length)
|
||||
const rect = range.getBoundingClientRect()
|
||||
return { x: rect.x + rect.width / 2, y: rect.y + rect.height / 2 }
|
||||
})
|
||||
await page.mouse.dblclick(word.x, word.y)
|
||||
expect(await page.evaluate(() => window.getSelection()?.toString())).toBe('selected')
|
||||
// Copy observes the editor's committed selection, not only the native range.
|
||||
await expect.poll(() => input.evaluate((node) => {
|
||||
const clipboardData = new DataTransfer()
|
||||
node.dispatchEvent(new ClipboardEvent('copy', { clipboardData, bubbles: true, cancelable: true }))
|
||||
return clipboardData.getData('text/plain')
|
||||
})).toBe('selected')
|
||||
|
||||
await row.click({ button: 'right' })
|
||||
const menu = page.getByRole('menu')
|
||||
const action = menu.getByRole('menuitem', { name: 'Add to chat', exact: true })
|
||||
await action.waitFor()
|
||||
expect(await menu.getByRole('menuitem').last().textContent()).toBe('Add to chat')
|
||||
expect(await action.isEnabled()).toBe(true)
|
||||
await action.click()
|
||||
await menu.waitFor({ state: 'hidden' })
|
||||
await expect.poll(() => input.evaluate(node => node === document.activeElement)).toBe(true)
|
||||
await expect.poll(() => input.textContent()).toBe('Review selected space name.txt , then finish.')
|
||||
expect(await chip.evaluate(node => ({
|
||||
source: node.getAttribute('data-composer-chip'),
|
||||
label: node.textContent,
|
||||
icons: node.querySelectorAll('svg').length,
|
||||
}))).toEqual(pickerAppearance)
|
||||
await page.keyboard.press('ControlOrMeta+A')
|
||||
const menuClipboard = await input.evaluate((node) => {
|
||||
const clipboardData = new DataTransfer()
|
||||
node.dispatchEvent(new ClipboardEvent('copy', { clipboardData, bubbles: true, cancelable: true }))
|
||||
return clipboardData.getData('text/plain')
|
||||
})
|
||||
expect(menuClipboard).toBe(`Review selected ${pickerClipboard}, then finish.`)
|
||||
|
||||
await page.keyboard.press('ControlOrMeta+Z')
|
||||
await expect.poll(() => input.textContent()).toBe(draft)
|
||||
expect(await chip.count()).toBe(0)
|
||||
expect(await input.evaluate(node => node === document.activeElement)).toBe(true)
|
||||
expect(await page.locator('[data-chat-flow-kind="user"]').count()).toBe(beforeMessages)
|
||||
expect((await readPersistedEvents(scaffold, sessionId))
|
||||
.filter(event => event.type === 'user/message' || event.type.startsWith('turn/'))).toEqual(beforeEvents)
|
||||
expect(tripwire.pageErrors).toEqual([])
|
||||
expect(tripwire.warnings).toEqual([])
|
||||
})
|
||||
})
|
||||
@@ -506,7 +506,6 @@ const EXPECTED_TOOLS = [
|
||||
'web_fetch',
|
||||
'web_search',
|
||||
'workflow',
|
||||
'working_directory',
|
||||
'write',
|
||||
]
|
||||
|
||||
@@ -598,9 +597,9 @@ it('assembles the shipped Web transport, catalog, guidance, and defaults', async
|
||||
"mode": "always",
|
||||
}
|
||||
`)
|
||||
// Directory and conditional Team tools are global; presets supply the remaining registrations.
|
||||
// Conditional Team tools are global; presets supply the remaining registrations.
|
||||
expect(ctx.tools.schemas().map(schema => schema.name)).toEqual([
|
||||
'working_directory', 'team_task_create', 'team_task_list', 'team_task_get', 'team_task_update',
|
||||
'team_task_create', 'team_task_list', 'team_task_get', 'team_task_update',
|
||||
])
|
||||
const handle = await ctx.agents.create({
|
||||
sessionId: brandString<SessionId>('shipped-composition'),
|
||||
|
||||
@@ -1020,7 +1020,8 @@ describe('web e2e: shipped right Sidebar', () => {
|
||||
await expect.poll(async () => await settled.getAttribute('aria-selected')).toBe('true')
|
||||
await expect.poll(records, { timeout: 15_000 }).toEqual(before)
|
||||
expect(await column.locator('[data-sidebar-right-open]').count()).toBe(1)
|
||||
expect(await wrap.getAttribute('aria-pressed')).toBe('true')
|
||||
// The settled Session stayed a recent view, so its preview keeps the wrap choice made before switching.
|
||||
expect(await wrap.getAttribute('aria-pressed')).toBe('false')
|
||||
expect(await column.locator('pre').first().innerText()).toContain('produced by the seeded turn')
|
||||
let warningStart = fxTripwire.warnings.length
|
||||
await fx.reload({ waitUntil: 'load' })
|
||||
|
||||
@@ -83,22 +83,23 @@ it('persists the unified review and worktree switch and retains checkouts after
|
||||
expect(rows()).toEqual([])
|
||||
expect(scaffold.ctx.get('worktrees')).toBeUndefined()
|
||||
expect(scaffold.ctx.get('forgePanel')).toBeUndefined()
|
||||
expect(tools()).toContain('working_directory')
|
||||
expect(tools()).not.toContain('create_worktree')
|
||||
expect(tools()).not.toContain('enter_worktree')
|
||||
expect(tools()).not.toContain('exit_worktree')
|
||||
|
||||
await toggle.click()
|
||||
await expect.poll(() => rows().length, { timeout: PLUGIN_TOGGLE_SETTLE_MS }).toBe(2)
|
||||
await expect.poll(() => toggle.getAttribute('aria-checked'), { timeout: PLUGIN_TOGGLE_SETTLE_MS }).toBe('true')
|
||||
expect(await selectedBundles()).toContain(BUNDLE)
|
||||
expect(tools()).toContain('create_worktree')
|
||||
expect(tools()).toContain('enter_worktree')
|
||||
expect(tools()).toContain('exit_worktree')
|
||||
expect(scaffold.ctx.get('forgePanel')).toBeDefined()
|
||||
const created = { path: join(repository, '.agents/worktrees/gui-opt-in'), baseCommit: (await git('rev-parse', 'HEAD')).stdout.trim() }
|
||||
const result = await scaffold.ctx.tools.execute({
|
||||
agent, signal: new AbortController().signal,
|
||||
calls: [{ type: 'tool-call', id: brandString<ToolCallId>('gui-opt-in'), name: 'create_worktree', arguments: JSON.stringify({ name: 'gui-opt-in' }) }],
|
||||
calls: [{ type: 'tool-call', id: brandString<ToolCallId>('gui-opt-in'), name: 'enter_worktree', arguments: JSON.stringify({ name: 'gui-opt-in' }) }],
|
||||
})
|
||||
expect(result.results[0]?.result.isError).not.toBe(true)
|
||||
expect(result.results[0]?.result.value).toEqual({ ...created, branch: 'gui-opt-in', repositoryRoot: repository })
|
||||
expect(result.results[0]?.result.value).toEqual({ ...created, branch: 'gui-opt-in', repositoryRoot: repository, created: true })
|
||||
expect(await readFile(join(created.path, 'retained.txt'), 'utf8')).toBe('retained checkout\n')
|
||||
expect(scaffold.ctx.workingDirectory.get(agent.session)).toBe(created.path)
|
||||
|
||||
@@ -107,15 +108,15 @@ it('persists the unified review and worktree switch and retains checkouts after
|
||||
card = panel.locator(`[data-plugin-group="more"] [data-plugin-package="${BUNDLE}"]`)
|
||||
toggle = card.getByRole('switch', { name: 'Enable Change requests & worktrees', exact: true })
|
||||
await expect.poll(() => toggle.getAttribute('aria-checked')).toBe('true')
|
||||
expect(tools()).toContain('create_worktree')
|
||||
expect(tools()).toContain('enter_worktree')
|
||||
await toggle.click()
|
||||
await expect.poll(() => rows().length, { timeout: PLUGIN_TOGGLE_SETTLE_MS }).toBe(0)
|
||||
await expect.poll(() => toggle.getAttribute('aria-checked'), { timeout: PLUGIN_TOGGLE_SETTLE_MS }).toBe('false')
|
||||
expect(await selectedBundles()).not.toContain(BUNDLE)
|
||||
expect(scaffold.ctx.get('worktrees')).toBeUndefined()
|
||||
expect(scaffold.ctx.get('forgePanel')).toBeUndefined()
|
||||
expect(tools()).not.toContain('create_worktree')
|
||||
expect(tools()).toContain('working_directory')
|
||||
expect(tools()).not.toContain('enter_worktree')
|
||||
expect(tools()).not.toContain('exit_worktree')
|
||||
expect(await readFile(join(created.path, 'retained.txt'), 'utf8')).toBe('retained checkout\n')
|
||||
expect((await git('show-ref', '--verify', 'refs/heads/gui-opt-in')).stdout).toContain(created.baseCommit)
|
||||
expect(scaffold.ctx.workingDirectory.get(agent.session)).toBe(created.path)
|
||||
@@ -124,7 +125,7 @@ it('persists the unified review and worktree switch and retains checkouts after
|
||||
panel = await openPlugins()
|
||||
await expect.poll(() => panel.getByRole('switch', { name: 'Enable Change requests & worktrees', exact: true })
|
||||
.getAttribute('aria-checked')).toBe('false')
|
||||
expect(tools()).not.toContain('create_worktree')
|
||||
expect(tools()).not.toContain('enter_worktree')
|
||||
expect(await selectedBundles()).not.toContain(BUNDLE)
|
||||
expect(tripwire.pageErrors).toEqual([])
|
||||
})
|
||||
@@ -6,5 +6,5 @@
|
||||
en: 41d772192075e133
|
||||
zh: 5ef3da69b4de1d8a
|
||||
/capability-seams-and-core-services:
|
||||
en: 1c23f1c824f4b729
|
||||
zh: 02da3facff476749
|
||||
en: b8a43c17719d548b
|
||||
zh: 3335f8c8fa696bae
|
||||
@@ -57,7 +57,6 @@ flowchart LR
|
||||
pkg_experimental_tool_worktree["experimental-tool-worktree"]
|
||||
pkg_working_directory["working-directory"]
|
||||
svc_workingDirectory["ctx.workingDirectory<br/>Session working directory"]
|
||||
pkg_tool_working_directory["tool-working-directory"]
|
||||
pkg_tool_fs["tool-fs"]
|
||||
pkg_tool_bash["tool-bash"]
|
||||
pkg_tool_pwsh["tool-pwsh"]
|
||||
@@ -222,6 +221,8 @@ flowchart LR
|
||||
pkg_skill_badge["skill-badge"]
|
||||
pkg_skill_filesystem["skill-filesystem"]
|
||||
pkg_skill_office["skill-office"]
|
||||
pkg_upstream_skills["upstream-skills"]
|
||||
svc_upstreamSkills["ctx.upstreamSkills<br/>Upstream skills of CLI app plugins"]
|
||||
svc_agents["ctx.agents<br/>Agent service"]
|
||||
pkg_acp["acp"]
|
||||
svc_agentDefaultModel["ctx.agentDefaultModel<br/>Default Agent model selection"]
|
||||
@@ -502,6 +503,7 @@ flowchart LR
|
||||
pkg_tool_subagent --> svc_subagentModelSelection
|
||||
pkg_tools --> svc_tools
|
||||
pkg_typert_registry --> svc_typert
|
||||
pkg_upstream_skills --> svc_upstreamSkills
|
||||
pkg_user_approval --> svc_approval
|
||||
pkg_user_questions --> svc_userQuestions
|
||||
pkg_web --> svc_web
|
||||
@@ -684,7 +686,6 @@ flowchart LR
|
||||
svc_workingDirectory --> pkg_tool_bash
|
||||
svc_workingDirectory --> pkg_tool_fs
|
||||
svc_workingDirectory --> pkg_tool_pwsh
|
||||
svc_workingDirectory --> pkg_tool_working_directory
|
||||
svc_workspaceRegistry --> pkg_api_session_controller
|
||||
svc_workspaceRegistry --> pkg_api_workspace_controller
|
||||
svc_worktrees --> pkg_experimental_tool_worktree
|
||||
@@ -712,7 +713,7 @@ flowchart LR
|
||||
| `ctx.forgeSession` | `service` | [`experimental-forge-session`](../packages/experimental/forge-session) | - | [`experimental-client-ui-forge`](../packages/experimental/client-ui-forge) | - | A Session projection derives bindings from shell results and binding records and publishes their URLs without status to clients; push results trigger head-branch discovery, and Session watchers poll bound change requests through the forge registry. |
|
||||
| `ctx.forgePanel` | `service` | [`experimental-client-ui-forge`](../packages/experimental/client-ui-forge) | - | - | - | Streams one panel state per followed Session: Git inspection using Session permissions, the recognized code host and its sign-in, and the bound change requests with polled status. |
|
||||
| `ctx.worktrees` | `seam` | [`experimental-worktree`](../packages/experimental/worktree) | [`experimental-worktree`](../packages/experimental/worktree) | [`experimental-tool-worktree`](../packages/experimental/tool-worktree) | - | Explicit experimental creation from a pinned local commit. Existing write permissions govern checkout and shared Git metadata; the working-directory service owns the resulting Session directory. |
|
||||
| `ctx.workingDirectory` | `seam` | [`working-directory`](../packages/session/working-directory) | [`working-directory`](../packages/session/working-directory) | [`tool-working-directory`](../packages/session/tool-working-directory), [`tool-fs`](../packages/fs/tool-fs), [`tool-bash`](../packages/shell/tool-bash), [`tool-pwsh`](../packages/shell/tool-pwsh), [`subagent`](../packages/subagent/subagent), [`sdk-jsonrpc-server`](../packages/sdk/server) | - | One Session projection owns the effective execution directory. The filesystem validates changes; user context reports them while original metadata and write grants stay fixed. |
|
||||
| `ctx.workingDirectory` | `seam` | [`working-directory`](../packages/session/working-directory) | [`working-directory`](../packages/session/working-directory) | [`tool-fs`](../packages/fs/tool-fs), [`tool-bash`](../packages/shell/tool-bash), [`tool-pwsh`](../packages/shell/tool-pwsh), [`subagent`](../packages/subagent/subagent), [`sdk-jsonrpc-server`](../packages/sdk/server) | - | One Session projection owns the effective execution directory, which only Host operations move. The filesystem validates changes; user context reports them while original metadata and write grants stay fixed. |
|
||||
| `ctx.mcpResources` | `seam` | [`mcp-resources`](../packages/mcp/mcp-resources) | [`mcp-client`](../packages/mcp/mcp-client) | [`mcp-resources`](../packages/mcp/mcp-resources) | - | Connection-owned providers serve shared resource tools in the calling agent scope. |
|
||||
| `ctx.browserUse` | `seam` | [`browser-use`](../packages/browser-use/browser-use) | [`experimental-browser-use-playwright-mcp`](../packages/experimental/browser-use-playwright-mcp), [`experimental-browser-use-chrome-devtools-mcp`](../packages/experimental/browser-use-chrome-devtools-mcp), [`experimental-browser-use-stagehand-native`](../packages/experimental/browser-use-stagehand-native) | [`experimental-browser-use-playwright-mcp`](../packages/experimental/browser-use-playwright-mcp), [`experimental-browser-use-chrome-devtools-mcp`](../packages/experimental/browser-use-chrome-devtools-mcp), [`experimental-browser-use-stagehand-native`](../packages/experimental/browser-use-stagehand-native) | - | One provider-owned name per service instance. Providers own their tools and browser resources per live Session; the shared service has no browser operation API. |
|
||||
| `ctx.computerUse` | `seam` | [`computer-use`](../packages/computer-use/computer-use) | [`experimental-computer-use-cua-driver-mcp`](../packages/experimental/computer-use-cua-driver-mcp), [`experimental-computer-use-cua-driver-native`](../packages/experimental/computer-use-cua-driver-native) | [`experimental-computer-use-cua-driver-mcp`](../packages/experimental/computer-use-cua-driver-mcp), [`experimental-computer-use-cua-driver-native`](../packages/experimental/computer-use-cua-driver-native) | - | One provider-owned name per service instance. Each provider also owns its model tools; the service has no common action API, runtime selection, or Session workflow lock. |
|
||||
@@ -773,6 +774,7 @@ flowchart LR
|
||||
| `ctx.sessionProjections` | `core` | [`session-projection`](../packages/session/session-projection) | - | [`api-session-controller`](../packages/api/session-controller), [`tool-todo`](../packages/todo/tool-todo), [`session-title`](../packages/session/session-title) | - | Domains register state-driven fold units; the eager drive keeps per-session watermark states and the Session controller serves baselines and pushes changed values. |
|
||||
| `ctx.sessionProjectionCache` | `core` | [`session-projection-cache`](../packages/session/session-projection-cache) | - | [`api-session-controller`](../packages/api/session-controller), [`session-query`](../packages/session-query/session-query), [`session-reference`](../packages/context/session-reference) | - | Durably checkpoints projection unit states per session (throttled + turn/end/detach mandatory points), serves cached projection views, and accelerates prepared-Session projection hydration. |
|
||||
| `ctx.skills` | `seam` | [`skill`](../packages/skill/skill) | [`sandbox-windows-acl`](../packages/sandbox/sandbox-windows-acl), [`skill-badge`](../packages/experimental/skill-badge), [`skill-filesystem`](../packages/skill/skill-filesystem), [`skill-office`](../packages/skill/skill-office) | [`tool-skill`](../packages/skill/tool-skill) | - | Merges provider skill catalogs; tool-skill renders the session-prefix catalog and loads complete skill bodies. |
|
||||
| `ctx.upstreamSkills` | `service` | [`upstream-skills`](../packages/connector/upstream-skills) | - | - | - | Holds what each CLI app plugin registers: downloads the pinned upstream files its entry skill indexes from the vendor's GitHub repository, verifies and caches them, and lists the entry skill through `ctx.skills` once they are in place. |
|
||||
| `ctx.agents` | `core` | [`agent`](../packages/core/agent) | - | [`agent-loop`](../packages/core/agent-loop), [`acp`](../packages/acp/acp), [`subagent`](../packages/subagent/subagent) | - | Owns live Agent handles, the create/resume factory seam, and process-local initiator propagation. |
|
||||
| `ctx.agentDefaultModel` | `core` | [`agent-default-model`](../packages/core/agent-default-model) | - | [`api-session-controller`](../packages/api/session-controller), [`headless`](../packages/bundle/headless) | - | Reads the default ModelSelection from volatile Config and saves selections through the profile editor. |
|
||||
| `ctx.agentLoop` | `bundle` | [`agent-loop`](../packages/core/agent-loop) | - | [`base`](../packages/bundle/base), [`sdk-minimal`](../packages/bundle/sdk-minimal) | - | The one concrete loop plugin; extension packages depend on dsh-agent events and services, not on this package. |
|
||||
|
||||
@@ -59,7 +59,6 @@ flowchart LR
|
||||
pkg_experimental_tool_worktree["experimental-tool-worktree"]
|
||||
pkg_working_directory["working-directory"]
|
||||
svc_workingDirectory["ctx.workingDirectory<br/>Session working directory"]
|
||||
pkg_tool_working_directory["tool-working-directory"]
|
||||
pkg_tool_fs["tool-fs"]
|
||||
pkg_tool_bash["tool-bash"]
|
||||
pkg_tool_pwsh["tool-pwsh"]
|
||||
@@ -224,6 +223,8 @@ flowchart LR
|
||||
pkg_skill_badge["skill-badge"]
|
||||
pkg_skill_filesystem["skill-filesystem"]
|
||||
pkg_skill_office["skill-office"]
|
||||
pkg_upstream_skills["upstream-skills"]
|
||||
svc_upstreamSkills["ctx.upstreamSkills<br/>Upstream skills of CLI app plugins"]
|
||||
svc_agents["ctx.agents<br/>Agent service"]
|
||||
pkg_acp["acp"]
|
||||
svc_agentDefaultModel["ctx.agentDefaultModel<br/>Default Agent model selection"]
|
||||
@@ -504,6 +505,7 @@ flowchart LR
|
||||
pkg_tool_subagent --> svc_subagentModelSelection
|
||||
pkg_tools --> svc_tools
|
||||
pkg_typert_registry --> svc_typert
|
||||
pkg_upstream_skills --> svc_upstreamSkills
|
||||
pkg_user_approval --> svc_approval
|
||||
pkg_user_questions --> svc_userQuestions
|
||||
pkg_web --> svc_web
|
||||
@@ -686,7 +688,6 @@ flowchart LR
|
||||
svc_workingDirectory --> pkg_tool_bash
|
||||
svc_workingDirectory --> pkg_tool_fs
|
||||
svc_workingDirectory --> pkg_tool_pwsh
|
||||
svc_workingDirectory --> pkg_tool_working_directory
|
||||
svc_workspaceRegistry --> pkg_api_session_controller
|
||||
svc_workspaceRegistry --> pkg_api_workspace_controller
|
||||
svc_worktrees --> pkg_experimental_tool_worktree
|
||||
@@ -714,7 +715,7 @@ flowchart LR
|
||||
| `ctx.forgeSession` | `service` | [`experimental-forge-session`](../packages/experimental/forge-session) | - | [`experimental-client-ui-forge`](../packages/experimental/client-ui-forge) | - | Session 投影从 shell 结果与绑定记录派生绑定,并把不含状态的 URL 发布给客户端;推送结果触发按 head 分支的发现,Session 监听方通过 forge 注册表轮询已绑定的变更请求。 |
|
||||
| `ctx.forgePanel` | `service` | [`experimental-client-ui-forge`](../packages/experimental/client-ui-forge) | - | - | - | 为每个被跟随的 Session 推送一份面板状态:使用 Session 权限进行的 Git 检查、识别出的代码托管平台及其登录状态,以及带轮询状态的已绑定变更请求。 |
|
||||
| `ctx.worktrees` | `seam` | [`experimental-worktree`](../packages/experimental/worktree) | [`experimental-worktree`](../packages/experimental/worktree) | [`experimental-tool-worktree`](../packages/experimental/tool-worktree) | - | 显式实验组合从固定的本地提交创建工作树。检出目录与共享 Git 元数据受现有写权限约束;工作目录服务拥有创建后的 Session 目录。 |
|
||||
| `ctx.workingDirectory` | `seam` | [`working-directory`](../packages/session/working-directory) | [`working-directory`](../packages/session/working-directory) | [`tool-working-directory`](../packages/session/tool-working-directory), [`tool-fs`](../packages/fs/tool-fs), [`tool-bash`](../packages/shell/tool-bash), [`tool-pwsh`](../packages/shell/tool-pwsh), [`subagent`](../packages/subagent/subagent), [`sdk-jsonrpc-server`](../packages/sdk/server) | - | 一个 Session 投影拥有有效执行目录。文件系统验证变更,用户上下文报告目录信息,原始元数据与写入授权保持不变。 |
|
||||
| `ctx.workingDirectory` | `seam` | [`working-directory`](../packages/session/working-directory) | [`working-directory`](../packages/session/working-directory) | [`tool-fs`](../packages/fs/tool-fs), [`tool-bash`](../packages/shell/tool-bash), [`tool-pwsh`](../packages/shell/tool-pwsh), [`subagent`](../packages/subagent/subagent), [`sdk-jsonrpc-server`](../packages/sdk/server) | - | 两个 Session 投影拥有有效执行目录与工作区根;Host 操作让两者一起移动。文件系统验证变更,用户上下文报告目录信息,原始元数据与写入授权保持不变。 |
|
||||
| `ctx.mcpResources` | `seam` | [`mcp-resources`](../packages/mcp/mcp-resources) | [`mcp-client`](../packages/mcp/mcp-client) | [`mcp-resources`](../packages/mcp/mcp-resources) | - | 连接所有者提供的操作在调用 agent 的作用域内服务于共享资源工具。 |
|
||||
| `ctx.browserUse` | `seam` | [`browser-use`](../packages/browser-use/browser-use) | [`experimental-browser-use-playwright-mcp`](../packages/experimental/browser-use-playwright-mcp), [`experimental-browser-use-chrome-devtools-mcp`](../packages/experimental/browser-use-chrome-devtools-mcp), [`experimental-browser-use-stagehand-native`](../packages/experimental/browser-use-stagehand-native) | [`experimental-browser-use-playwright-mcp`](../packages/experimental/browser-use-playwright-mcp), [`experimental-browser-use-chrome-devtools-mcp`](../packages/experimental/browser-use-chrome-devtools-mcp), [`experimental-browser-use-stagehand-native`](../packages/experimental/browser-use-stagehand-native) | - | 每个服务实例注册一个提供方拥有的名称。提供方按实时 Session 拥有自己的工具与浏览器资源;共享服务不提供浏览器操作 API。 |
|
||||
| `ctx.computerUse` | `seam` | [`computer-use`](../packages/computer-use/computer-use) | [`experimental-computer-use-cua-driver-mcp`](../packages/experimental/computer-use-cua-driver-mcp), [`experimental-computer-use-cua-driver-native`](../packages/experimental/computer-use-cua-driver-native) | [`experimental-computer-use-cua-driver-mcp`](../packages/experimental/computer-use-cua-driver-mcp), [`experimental-computer-use-cua-driver-native`](../packages/experimental/computer-use-cua-driver-native) | - | 每个服务实例只注册一个提供方自定的名称。各提供方也拥有自己的模型工具;服务不提供通用操作 API、运行时选择或 Session 流程锁。 |
|
||||
@@ -775,6 +776,7 @@ flowchart LR
|
||||
| `ctx.sessionProjections` | `core` | [`session-projection`](../packages/session/session-projection) | - | [`api-session-controller`](../packages/api/session-controller), [`tool-todo`](../packages/todo/tool-todo), [`session-title`](../packages/session/session-title) | - | 各领域注册由状态驱动的折叠单元;主动驱动过程维护每个会话的水位状态,Session controller 提供 baseline 并推送发生变化的值。 |
|
||||
| `ctx.sessionProjectionCache` | `core` | [`session-projection-cache`](../packages/session/session-projection-cache) | - | [`api-session-controller`](../packages/api/session-controller), [`session-query`](../packages/session-query/session-query), [`session-reference`](../packages/context/session-reference) | - | 按会话持久保存投影单元状态的检查点(节流检查点,以及轮次/结束/分离时的必选检查点),提供缓存投影视图,并加速 prepared Session 的投影恢复。 |
|
||||
| `ctx.skills` | `seam` | [`skill`](../packages/skill/skill) | [`sandbox-windows-acl`](../packages/sandbox/sandbox-windows-acl), [`skill-badge`](../packages/experimental/skill-badge), [`skill-filesystem`](../packages/skill/skill-filesystem), [`skill-office`](../packages/skill/skill-office) | [`tool-skill`](../packages/skill/tool-skill) | - | 合并提供方的 skill(技能)目录;tool-skill 渲染会话前缀目录,并加载完整的 skill 正文。 |
|
||||
| `ctx.upstreamSkills` | `service` | [`upstream-skills`](../packages/connector/upstream-skills) | - | - | - | 保存每个 CLI 应用插件注册的内容:从厂商 GitHub 仓库下载其入口技能索引的固定上游文件,校验并缓存,文件就位后通过 `ctx.skills` 列出入口技能。 |
|
||||
| `ctx.agents` | `core` | [`agent`](../packages/core/agent) | - | [`agent-loop`](../packages/core/agent-loop), [`acp`](../packages/acp/acp), [`subagent`](../packages/subagent/subagent) | - | 拥有实时 Agent 句柄、创建/恢复工厂 seam,以及进程本地的发起方传播。 |
|
||||
| `ctx.agentDefaultModel` | `core` | [`agent-default-model`](../packages/core/agent-default-model) | - | [`api-session-controller`](../packages/api/session-controller), [`headless`](../packages/bundle/headless) | - | Reads the default ModelSelection from volatile Config and saves selections through the profile editor. |
|
||||
| `ctx.agentLoop` | `bundle` | [`agent-loop`](../packages/core/agent-loop) | - | [`base`](../packages/bundle/base), [`sdk-minimal`](../packages/bundle/sdk-minimal) | - | 唯一的具体循环插件;扩展包依赖 dsh-agent 的事件和服务,而不依赖此包。 |
|
||||
|
||||
+115
-45
@@ -504,13 +504,14 @@ export interface Config {
|
||||
|
||||
## `@deepseek-ai/dsh-client-connection`
|
||||
|
||||
- `source`: [`packages/client/connection/src/index.ts:92`](../packages/client/connection/src/index.ts)
|
||||
- `refs`: `Volatile` (`@deepseek-ai/cordis`)
|
||||
- `source`: [`packages/client/connection/src/types.ts:6`](../packages/client/connection/src/types.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Browser authentication, request limits, and connection recovery configuration. */
|
||||
export interface ConnectionConfig {
|
||||
/** Browser recovery timing, injected into each served page. */
|
||||
recovery?: ConnectionRecoveryConfig
|
||||
/** Browser recovery timing; the browser receives it through its synced Config and reads it once when the plugin activates. */
|
||||
recovery?: Volatile<ConnectionRecoveryConfig>
|
||||
/**
|
||||
* Authorities this deployment serves beyond loopback: exact `host:port`, or
|
||||
* port-less `host` matching any port. The fence accepts loopback and the
|
||||
@@ -587,13 +588,17 @@ export interface Config {
|
||||
|
||||
## `@deepseek-ai/dsh-client-shortcuts`
|
||||
|
||||
- `source`: [`packages/client/shortcuts/src/config.ts:5`](../packages/client/shortcuts/src/config.ts)
|
||||
- `refs`: `Volatile` (`@deepseek-ai/cordis`)
|
||||
- `source`: [`packages/client/shortcuts/src/index.ts:7`](../packages/client/shortcuts/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Fixed shortcut sequence settings. */
|
||||
export interface Config {
|
||||
/** Fixed shortcut sequence timing; the browser receives it through its synced Config. */
|
||||
export type Config = ShortcutsConfig
|
||||
|
||||
/** Fixed shortcut sequence timing; the browser receives it through its synced Config. */
|
||||
export interface ShortcutsConfig {
|
||||
/** Maximum interval between independent Escape presses for stopping a reply, in milliseconds. */
|
||||
stopSequenceMs: number
|
||||
stopSequenceMs: Volatile<number>
|
||||
}
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-client-shortcuts -->
|
||||
@@ -603,17 +608,41 @@ export interface Config {
|
||||
|
||||
## `@deepseek-ai/dsh-client-ui-account-notifications`
|
||||
|
||||
- `source`: [`packages/client/ui-account-notifications/src/config.ts:5`](../packages/client/ui-account-notifications/src/config.ts)
|
||||
- `refs`: `Volatile` (`@deepseek-ai/cordis`)
|
||||
- `source`: [`packages/client/ui-account-notifications/src/index.ts:7`](../packages/client/ui-account-notifications/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Initial polling interval before the server supplies its next delay. */
|
||||
export interface Config {
|
||||
/** Initial polling interval; the browser receives it through its synced Config. */
|
||||
export type Config = AccountNotificationsConfig
|
||||
|
||||
/** Initial polling interval; the browser receives it through its synced Config. */
|
||||
export interface AccountNotificationsConfig {
|
||||
/** Initial query delay in milliseconds, replaced by each successful server response. */
|
||||
notificationPollIntervalMs: number
|
||||
notificationPollIntervalMs: Volatile<number>
|
||||
}
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-client-ui-account-notifications -->
|
||||
|
||||
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-client-ui-context-menu -->
|
||||
<a id="deepseek-aidsh-client-ui-context-menu"></a>
|
||||
|
||||
## `@deepseek-ai/dsh-client-ui-context-menu`
|
||||
|
||||
- `refs`: `Volatile` (`@deepseek-ai/cordis`)
|
||||
- `source`: [`packages/client/ui-context-menu/src/index.ts:7`](../packages/client/ui-context-menu/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Live preparation budget; the browser receives it through its synced Config. */
|
||||
export type Config = ContextMenuConfig
|
||||
|
||||
/** Live preparation budget; the browser receives it through its synced Config. */
|
||||
export interface ContextMenuConfig {
|
||||
/** Maximum time in milliseconds to prepare each contribution before omitting its pending actions. */
|
||||
resolutionTimeoutMs: Volatile<number>
|
||||
}
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-client-ui-context-menu -->
|
||||
|
||||
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-client-ui-plugin-manager -->
|
||||
<a id="deepseek-aidsh-client-ui-plugin-manager"></a>
|
||||
|
||||
@@ -685,13 +714,17 @@ export type OnboardingProcess = 'compact' | 'standard' | 'detailed'
|
||||
|
||||
## `@deepseek-ai/dsh-client-ui-settings-models`
|
||||
|
||||
- `source`: [`packages/client/ui-settings-models/src/onboarding-config.ts:6`](../packages/client/ui-settings-models/src/onboarding-config.ts)
|
||||
- `refs`: `Volatile` (`@deepseek-ai/cordis`)
|
||||
- `source`: [`packages/client/ui-settings-models/src/index.ts:7`](../packages/client/ui-settings-models/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Onboarding options after schema defaults are applied. */
|
||||
export interface Config {
|
||||
/** Offer the browser API-key step when no native shell owns credential onboarding. */
|
||||
credentialOnboarding: boolean
|
||||
/** Credential-onboarding choice synced to the browser. */
|
||||
export type Config = ModelsConfig
|
||||
|
||||
/** Credential-onboarding choice; the browser receives it through its synced Config. */
|
||||
export interface ModelsConfig {
|
||||
/** Offer the browser API-key step automatically when no native shell owns credential onboarding. */
|
||||
credentialOnboarding: Volatile<boolean>
|
||||
}
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-client-ui-settings-models -->
|
||||
@@ -701,31 +734,41 @@ export interface Config {
|
||||
|
||||
## `@deepseek-ai/dsh-client-ui-sidebar-documentpreview`
|
||||
|
||||
- `source`: [`packages/client/ui-sidebar-documentpreview/src/config.ts:5`](../packages/client/ui-sidebar-documentpreview/src/config.ts)
|
||||
- `refs`: `Volatile` (`@deepseek-ai/cordis`)
|
||||
- `source`: [`packages/client/ui-sidebar-documentpreview/src/index.ts:8`](../packages/client/ui-sidebar-documentpreview/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Transient Office conversion reuse within one Client connection. */
|
||||
export interface Config {
|
||||
/** Retained PDF limits; pending conversions share cancellation by reader lifetime. */
|
||||
office: {
|
||||
/** Maximum retained completed PDFs. */
|
||||
maxCachedEntries: number
|
||||
/** Maximum retained PDF bytes, counted by each binary buffer's byteLength. */
|
||||
maxCachedBytes: number
|
||||
/** Maximum unsettled Host conversion RPCs, including cancellation teardown. */
|
||||
maxPending: number
|
||||
/** Maximum readers including source and renderer metadata lookups. */
|
||||
maxReaders: number
|
||||
}
|
||||
/** Browser spreadsheet parser and dense cell allocation limits. */
|
||||
excel: {
|
||||
/** Maximum source file bytes. */
|
||||
maxBytes: number
|
||||
/** Maximum combined rectangular cell area across worksheets. */
|
||||
maxCells: number
|
||||
/** Maximum parser Worker lifetime in milliseconds. */
|
||||
timeoutMs: number
|
||||
}
|
||||
/** Preview limits synced to the browser. */
|
||||
export type Config = DocumentPreviewConfig
|
||||
|
||||
/** Preview limits; the browser receives each object through its synced Config and reads it once when the plugin activates. */
|
||||
export interface DocumentPreviewConfig {
|
||||
/** Transient Office conversion reuse within one Client connection. */
|
||||
office: Volatile<OfficeLimits>
|
||||
/** Browser spreadsheet parser limits. */
|
||||
excel: Volatile<ExcelLimits>
|
||||
}
|
||||
|
||||
/** Retained PDF limits; pending conversions share cancellation by reader lifetime. */
|
||||
export interface OfficeLimits {
|
||||
/** Maximum retained completed PDFs. */
|
||||
maxCachedEntries: number
|
||||
/** Maximum retained PDF bytes, counted by each binary buffer's byteLength. */
|
||||
maxCachedBytes: number
|
||||
/** Maximum unsettled Host conversion RPCs, including cancellation teardown. */
|
||||
maxPending: number
|
||||
/** Maximum readers including source and renderer metadata lookups. */
|
||||
maxReaders: number
|
||||
}
|
||||
|
||||
/** Browser spreadsheet parser and dense cell allocation limits. */
|
||||
export interface ExcelLimits {
|
||||
/** Maximum source file bytes. */
|
||||
maxBytes: number
|
||||
/** Maximum combined rectangular cell area across worksheets. */
|
||||
maxCells: number
|
||||
/** Maximum parser Worker lifetime in milliseconds. */
|
||||
timeoutMs: number
|
||||
}
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-client-ui-sidebar-documentpreview -->
|
||||
@@ -1586,7 +1629,7 @@ export type PaidTranslationProvider = 'deepseek-account' | 'deepseek-official'
|
||||
|
||||
- `inject`: `workingDirectory` · `fs` · `subprocess` · `sandbox` · `sandboxPolicy` · `sessionProjections`
|
||||
- `refs`: `Volatile` (`@deepseek-ai/cordis`)
|
||||
- `source`: [`packages/experimental/worktree/src/index.ts:39`](../packages/experimental/worktree/src/index.ts)
|
||||
- `source`: [`packages/experimental/worktree/src/index.ts:45`](../packages/experimental/worktree/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Worktree location, generated names, executables, subprocess resource limits, and the archive cleanup switch. */
|
||||
@@ -2530,7 +2573,7 @@ export interface LspLocalServerConfig {
|
||||
## `@deepseek-ai/dsh-mcp-client`
|
||||
|
||||
- `inject`: `tools`
|
||||
- `source`: [`packages/mcp/mcp-client/src/index.ts:128`](../packages/mcp/mcp-client/src/index.ts)
|
||||
- `source`: [`packages/mcp/mcp-client/src/index.ts:136`](../packages/mcp/mcp-client/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Configuration for one stdio or Streamable HTTP MCP server. */
|
||||
@@ -2568,6 +2611,10 @@ export interface StdioConfig {
|
||||
maxInstructionBytes?: number
|
||||
/** Automatic reconnect policy after a lost connection; omission uses the defaults. */
|
||||
reconnect?: ReconnectConfig
|
||||
/** `on-demand` lists the server's tools for agents to load instead of registering them (default `eager`). */
|
||||
toolLoading: 'eager' | 'on-demand'
|
||||
/** Maximum characters of each tool's summary in an on-demand server's prompt catalog (default 160). */
|
||||
catalogDescriptionMaxLength: number
|
||||
}
|
||||
|
||||
/** Config for connecting to an MCP server over Streamable HTTP (SSE). */
|
||||
@@ -2600,6 +2647,10 @@ export interface StreamableHttpConfig {
|
||||
maxInstructionBytes?: number
|
||||
/** Automatic reconnect policy after a lost connection; omission uses the defaults. */
|
||||
reconnect?: ReconnectConfig
|
||||
/** `on-demand` lists the server's tools for agents to load instead of registering them (default `eager`). */
|
||||
toolLoading: 'eager' | 'on-demand'
|
||||
/** Maximum characters of each tool's summary in an on-demand server's prompt catalog (default 160). */
|
||||
catalogDescriptionMaxLength: number
|
||||
}
|
||||
|
||||
/** Automatic reconnect policy for one MCP server connection. */
|
||||
@@ -2637,7 +2688,7 @@ export interface McpOAuthConfig {
|
||||
|
||||
- `inject`: `tools`
|
||||
- `refs`: [`McpOAuthConfigInput`](../packages/mcp/mcp-client/src/index.ts) · [`ReconnectConfig`](../packages/mcp/mcp-client/src/index.ts) · `Volatile` (`@deepseek-ai/cordis`)
|
||||
- `source`: [`packages/mcp/mcp-manager/src/index.ts:75`](../packages/mcp/mcp-manager/src/index.ts)
|
||||
- `source`: [`packages/mcp/mcp-manager/src/index.ts:77`](../packages/mcp/mcp-manager/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Manager configuration with live server entries. */
|
||||
@@ -2679,6 +2730,8 @@ export interface McpManagedServerEntry {
|
||||
closeTimeoutMs?: number
|
||||
/** Reconnect policy; the MCP client host validates it, and omission uses the mcp-client defaults. */
|
||||
reconnect?: ReconnectConfig
|
||||
/** `on-demand` keeps the server's tools out of every tool list until an agent loads them; default `eager`. */
|
||||
toolLoading: 'eager' | 'on-demand'
|
||||
}
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-mcp-manager -->
|
||||
@@ -4971,6 +5024,25 @@ export interface Config {
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-typert-loader -->
|
||||
|
||||
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-upstream-skills -->
|
||||
<a id="deepseek-aidsh-upstream-skills"></a>
|
||||
|
||||
## `@deepseek-ai/dsh-upstream-skills`
|
||||
|
||||
- `inject`: `skills`
|
||||
- `source`: [`packages/connector/upstream-skills/src/index.ts:32`](../packages/connector/upstream-skills/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Where every registered plugin's upstream files are downloaded from. */
|
||||
export interface Config {
|
||||
/** Archive download prefixes tried in order; each serves `<owner>/<repository>/tar.gz/<commit>`. */
|
||||
skillsUrls: string[]
|
||||
/** How long one prefix may take to deliver the whole archive before the next one is tried. */
|
||||
skillsTimeoutMs: number
|
||||
}
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-upstream-skills -->
|
||||
|
||||
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-user-approval -->
|
||||
<a id="deepseek-aidsh-user-approval"></a>
|
||||
|
||||
@@ -5225,7 +5297,7 @@ export interface Config {
|
||||
## `@deepseek-ai/dsh-working-directory`
|
||||
|
||||
- `inject`: `fs` · `sessionProjections` · `systemPrompt`
|
||||
- `source`: [`packages/session/working-directory/src/index.ts:64`](../packages/session/working-directory/src/index.ts)
|
||||
- `source`: [`packages/session/working-directory/src/index.ts:75`](../packages/session/working-directory/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Deployment default for Sessions without an original project directory. */
|
||||
@@ -5294,7 +5366,6 @@ These load from a `cordis.yml` entry with no `config:` block; they declare no co
|
||||
| `@deepseek-ai/dsh-client-ui-chat` | — | [`packages/client/ui-chat/src/index.ts`](../packages/client/ui-chat/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-client-ui-commands` | — | [`packages/client/ui-commands/src/index.ts`](../packages/client/ui-commands/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-client-ui-connector-account` | — | [`packages/client/ui-connector-account/src/index.ts`](../packages/client/ui-connector-account/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-client-ui-context-menu` | — | [`packages/client/ui-context-menu/src/index.ts`](../packages/client/ui-context-menu/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-client-ui-conversation` | — | [`packages/client/ui-conversation/src/index.ts`](../packages/client/ui-conversation/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-client-ui-cordis` | — | [`packages/extensions/ui-cordis/src/index.ts`](../packages/extensions/ui-cordis/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-client-ui-creation-recommendations` | — | [`packages/experimental/client-ui-creation-recommendations/src/index.ts`](../packages/experimental/client-ui-creation-recommendations/src/index.ts) |
|
||||
@@ -5392,7 +5463,6 @@ These load from a `cordis.yml` entry with no `config:` block; they declare no co
|
||||
| `@deepseek-ai/dsh-tool-executor-native` | `tools` | [`packages/core/tool-executor-native/src/index.ts`](../packages/core/tool-executor-native/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-tool-schedule` | `tools` · `systemPrompt` | [`packages/schedule/tool-schedule/src/index.ts`](../packages/schedule/tool-schedule/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-tool-session-list` | `tools` · `sessions` · `sessionQuery` · `workspaceRegistry` · `sessionProjections` | [`packages/session-query/tool-session-list/src/index.ts`](../packages/session-query/tool-session-list/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-tool-working-directory` | `tools` · `workingDirectory` | [`packages/session/tool-working-directory/src/index.ts`](../packages/session/tool-working-directory/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-tools` | `systemPrompt` | [`packages/core/tools/src/index.ts`](../packages/core/tools/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-user-questions` | — | [`packages/interaction/user-questions/src/index.ts`](../packages/interaction/user-questions/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-webhook` | `agents` · `agentDefaultModel` · `agentPresets` · `permissionPresets` · `sessionTitle` · `workspaceRegistry` | [`packages/experimental/webhook/src/index.ts`](../packages/experimental/webhook/src/index.ts) |
|
||||
|
||||
+115
-45
@@ -506,13 +506,14 @@ export interface Config {
|
||||
|
||||
## `@deepseek-ai/dsh-client-connection`
|
||||
|
||||
- `source`: [`packages/client/connection/src/index.ts:92`](../packages/client/connection/src/index.ts)
|
||||
- `refs`: `Volatile` (`@deepseek-ai/cordis`)
|
||||
- `source`: [`packages/client/connection/src/types.ts:6`](../packages/client/connection/src/types.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Browser authentication, request limits, and connection recovery configuration. */
|
||||
export interface ConnectionConfig {
|
||||
/** Browser recovery timing, injected into each served page. */
|
||||
recovery?: ConnectionRecoveryConfig
|
||||
/** Browser recovery timing; the browser receives it through its synced Config and reads it once when the plugin activates. */
|
||||
recovery?: Volatile<ConnectionRecoveryConfig>
|
||||
/**
|
||||
* Authorities this deployment serves beyond loopback: exact `host:port`, or
|
||||
* port-less `host` matching any port. The fence accepts loopback and the
|
||||
@@ -589,13 +590,17 @@ export interface Config {
|
||||
|
||||
## `@deepseek-ai/dsh-client-shortcuts`
|
||||
|
||||
- `source`: [`packages/client/shortcuts/src/config.ts:5`](../packages/client/shortcuts/src/config.ts)
|
||||
- `refs`: `Volatile` (`@deepseek-ai/cordis`)
|
||||
- `source`: [`packages/client/shortcuts/src/index.ts:7`](../packages/client/shortcuts/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Fixed shortcut sequence settings. */
|
||||
export interface Config {
|
||||
/** Fixed shortcut sequence timing; the browser receives it through its synced Config. */
|
||||
export type Config = ShortcutsConfig
|
||||
|
||||
/** Fixed shortcut sequence timing; the browser receives it through its synced Config. */
|
||||
export interface ShortcutsConfig {
|
||||
/** Maximum interval between independent Escape presses for stopping a reply, in milliseconds. */
|
||||
stopSequenceMs: number
|
||||
stopSequenceMs: Volatile<number>
|
||||
}
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-client-shortcuts -->
|
||||
@@ -605,17 +610,41 @@ export interface Config {
|
||||
|
||||
## `@deepseek-ai/dsh-client-ui-account-notifications`
|
||||
|
||||
- `source`: [`packages/client/ui-account-notifications/src/config.ts:5`](../packages/client/ui-account-notifications/src/config.ts)
|
||||
- `refs`: `Volatile` (`@deepseek-ai/cordis`)
|
||||
- `source`: [`packages/client/ui-account-notifications/src/index.ts:7`](../packages/client/ui-account-notifications/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Initial polling interval before the server supplies its next delay. */
|
||||
export interface Config {
|
||||
/** Initial polling interval; the browser receives it through its synced Config. */
|
||||
export type Config = AccountNotificationsConfig
|
||||
|
||||
/** Initial polling interval; the browser receives it through its synced Config. */
|
||||
export interface AccountNotificationsConfig {
|
||||
/** Initial query delay in milliseconds, replaced by each successful server response. */
|
||||
notificationPollIntervalMs: number
|
||||
notificationPollIntervalMs: Volatile<number>
|
||||
}
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-client-ui-account-notifications -->
|
||||
|
||||
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-client-ui-context-menu -->
|
||||
<a id="deepseek-aidsh-client-ui-context-menu"></a>
|
||||
|
||||
## `@deepseek-ai/dsh-client-ui-context-menu`
|
||||
|
||||
- `refs`: `Volatile` (`@deepseek-ai/cordis`)
|
||||
- `source`: [`packages/client/ui-context-menu/src/index.ts:7`](../packages/client/ui-context-menu/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Live preparation budget; the browser receives it through its synced Config. */
|
||||
export type Config = ContextMenuConfig
|
||||
|
||||
/** Live preparation budget; the browser receives it through its synced Config. */
|
||||
export interface ContextMenuConfig {
|
||||
/** Maximum time in milliseconds to prepare each contribution before omitting its pending actions. */
|
||||
resolutionTimeoutMs: Volatile<number>
|
||||
}
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-client-ui-context-menu -->
|
||||
|
||||
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-client-ui-plugin-manager -->
|
||||
<a id="deepseek-aidsh-client-ui-plugin-manager"></a>
|
||||
|
||||
@@ -687,13 +716,17 @@ export type OnboardingProcess = 'compact' | 'standard' | 'detailed'
|
||||
|
||||
## `@deepseek-ai/dsh-client-ui-settings-models`
|
||||
|
||||
- `source`: [`packages/client/ui-settings-models/src/onboarding-config.ts:6`](../packages/client/ui-settings-models/src/onboarding-config.ts)
|
||||
- `refs`: `Volatile` (`@deepseek-ai/cordis`)
|
||||
- `source`: [`packages/client/ui-settings-models/src/index.ts:7`](../packages/client/ui-settings-models/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Onboarding options after schema defaults are applied. */
|
||||
export interface Config {
|
||||
/** Offer the browser API-key step when no native shell owns credential onboarding. */
|
||||
credentialOnboarding: boolean
|
||||
/** Credential-onboarding choice synced to the browser. */
|
||||
export type Config = ModelsConfig
|
||||
|
||||
/** Credential-onboarding choice; the browser receives it through its synced Config. */
|
||||
export interface ModelsConfig {
|
||||
/** Offer the browser API-key step automatically when no native shell owns credential onboarding. */
|
||||
credentialOnboarding: Volatile<boolean>
|
||||
}
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-client-ui-settings-models -->
|
||||
@@ -703,31 +736,41 @@ export interface Config {
|
||||
|
||||
## `@deepseek-ai/dsh-client-ui-sidebar-documentpreview`
|
||||
|
||||
- `source`: [`packages/client/ui-sidebar-documentpreview/src/config.ts:5`](../packages/client/ui-sidebar-documentpreview/src/config.ts)
|
||||
- `refs`: `Volatile` (`@deepseek-ai/cordis`)
|
||||
- `source`: [`packages/client/ui-sidebar-documentpreview/src/index.ts:8`](../packages/client/ui-sidebar-documentpreview/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Transient Office conversion reuse within one Client connection. */
|
||||
export interface Config {
|
||||
/** Retained PDF limits; pending conversions share cancellation by reader lifetime. */
|
||||
office: {
|
||||
/** Maximum retained completed PDFs. */
|
||||
maxCachedEntries: number
|
||||
/** Maximum retained PDF bytes, counted by each binary buffer's byteLength. */
|
||||
maxCachedBytes: number
|
||||
/** Maximum unsettled Host conversion RPCs, including cancellation teardown. */
|
||||
maxPending: number
|
||||
/** Maximum readers including source and renderer metadata lookups. */
|
||||
maxReaders: number
|
||||
}
|
||||
/** Browser spreadsheet parser and dense cell allocation limits. */
|
||||
excel: {
|
||||
/** Maximum source file bytes. */
|
||||
maxBytes: number
|
||||
/** Maximum combined rectangular cell area across worksheets. */
|
||||
maxCells: number
|
||||
/** Maximum parser Worker lifetime in milliseconds. */
|
||||
timeoutMs: number
|
||||
}
|
||||
/** Preview limits synced to the browser. */
|
||||
export type Config = DocumentPreviewConfig
|
||||
|
||||
/** Preview limits; the browser receives each object through its synced Config and reads it once when the plugin activates. */
|
||||
export interface DocumentPreviewConfig {
|
||||
/** Transient Office conversion reuse within one Client connection. */
|
||||
office: Volatile<OfficeLimits>
|
||||
/** Browser spreadsheet parser limits. */
|
||||
excel: Volatile<ExcelLimits>
|
||||
}
|
||||
|
||||
/** Retained PDF limits; pending conversions share cancellation by reader lifetime. */
|
||||
export interface OfficeLimits {
|
||||
/** Maximum retained completed PDFs. */
|
||||
maxCachedEntries: number
|
||||
/** Maximum retained PDF bytes, counted by each binary buffer's byteLength. */
|
||||
maxCachedBytes: number
|
||||
/** Maximum unsettled Host conversion RPCs, including cancellation teardown. */
|
||||
maxPending: number
|
||||
/** Maximum readers including source and renderer metadata lookups. */
|
||||
maxReaders: number
|
||||
}
|
||||
|
||||
/** Browser spreadsheet parser and dense cell allocation limits. */
|
||||
export interface ExcelLimits {
|
||||
/** Maximum source file bytes. */
|
||||
maxBytes: number
|
||||
/** Maximum combined rectangular cell area across worksheets. */
|
||||
maxCells: number
|
||||
/** Maximum parser Worker lifetime in milliseconds. */
|
||||
timeoutMs: number
|
||||
}
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-client-ui-sidebar-documentpreview -->
|
||||
@@ -1588,7 +1631,7 @@ export type PaidTranslationProvider = 'deepseek-account' | 'deepseek-official'
|
||||
|
||||
- `inject`: `workingDirectory` · `fs` · `subprocess` · `sandbox` · `sandboxPolicy` · `sessionProjections`
|
||||
- `refs`: `Volatile` (`@deepseek-ai/cordis`)
|
||||
- `source`: [`packages/experimental/worktree/src/index.ts:39`](../packages/experimental/worktree/src/index.ts)
|
||||
- `source`: [`packages/experimental/worktree/src/index.ts:45`](../packages/experimental/worktree/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Worktree location, generated names, executables, subprocess resource limits, and the archive cleanup switch. */
|
||||
@@ -2532,7 +2575,7 @@ export interface LspLocalServerConfig {
|
||||
## `@deepseek-ai/dsh-mcp-client`
|
||||
|
||||
- `inject`: `tools`
|
||||
- `source`: [`packages/mcp/mcp-client/src/index.ts:128`](../packages/mcp/mcp-client/src/index.ts)
|
||||
- `source`: [`packages/mcp/mcp-client/src/index.ts:136`](../packages/mcp/mcp-client/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Configuration for one stdio or Streamable HTTP MCP server. */
|
||||
@@ -2570,6 +2613,10 @@ export interface StdioConfig {
|
||||
maxInstructionBytes?: number
|
||||
/** Automatic reconnect policy after a lost connection; omission uses the defaults. */
|
||||
reconnect?: ReconnectConfig
|
||||
/** `on-demand` lists the server's tools for agents to load instead of registering them (default `eager`). */
|
||||
toolLoading: 'eager' | 'on-demand'
|
||||
/** Maximum characters of each tool's summary in an on-demand server's prompt catalog (default 160). */
|
||||
catalogDescriptionMaxLength: number
|
||||
}
|
||||
|
||||
/** Config for connecting to an MCP server over Streamable HTTP (SSE). */
|
||||
@@ -2602,6 +2649,10 @@ export interface StreamableHttpConfig {
|
||||
maxInstructionBytes?: number
|
||||
/** Automatic reconnect policy after a lost connection; omission uses the defaults. */
|
||||
reconnect?: ReconnectConfig
|
||||
/** `on-demand` lists the server's tools for agents to load instead of registering them (default `eager`). */
|
||||
toolLoading: 'eager' | 'on-demand'
|
||||
/** Maximum characters of each tool's summary in an on-demand server's prompt catalog (default 160). */
|
||||
catalogDescriptionMaxLength: number
|
||||
}
|
||||
|
||||
/** Automatic reconnect policy for one MCP server connection. */
|
||||
@@ -2639,7 +2690,7 @@ export interface McpOAuthConfig {
|
||||
|
||||
- `inject`: `tools`
|
||||
- `refs`: [`McpOAuthConfigInput`](../packages/mcp/mcp-client/src/index.ts) · [`ReconnectConfig`](../packages/mcp/mcp-client/src/index.ts) · `Volatile` (`@deepseek-ai/cordis`)
|
||||
- `source`: [`packages/mcp/mcp-manager/src/index.ts:75`](../packages/mcp/mcp-manager/src/index.ts)
|
||||
- `source`: [`packages/mcp/mcp-manager/src/index.ts:77`](../packages/mcp/mcp-manager/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Manager configuration with live server entries. */
|
||||
@@ -2681,6 +2732,8 @@ export interface McpManagedServerEntry {
|
||||
closeTimeoutMs?: number
|
||||
/** Reconnect policy; the MCP client host validates it, and omission uses the mcp-client defaults. */
|
||||
reconnect?: ReconnectConfig
|
||||
/** `on-demand` keeps the server's tools out of every tool list until an agent loads them; default `eager`. */
|
||||
toolLoading: 'eager' | 'on-demand'
|
||||
}
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-mcp-manager -->
|
||||
@@ -4973,6 +5026,25 @@ export interface Config {
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-typert-loader -->
|
||||
|
||||
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-upstream-skills -->
|
||||
<a id="deepseek-aidsh-upstream-skills"></a>
|
||||
|
||||
## `@deepseek-ai/dsh-upstream-skills`
|
||||
|
||||
- `inject`: `skills`
|
||||
- `source`: [`packages/connector/upstream-skills/src/index.ts:32`](../packages/connector/upstream-skills/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Where every registered plugin's upstream files are downloaded from. */
|
||||
export interface Config {
|
||||
/** Archive download prefixes tried in order; each serves `<owner>/<repository>/tar.gz/<commit>`. */
|
||||
skillsUrls: string[]
|
||||
/** How long one prefix may take to deliver the whole archive before the next one is tried. */
|
||||
skillsTimeoutMs: number
|
||||
}
|
||||
```
|
||||
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-upstream-skills -->
|
||||
|
||||
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-user-approval -->
|
||||
<a id="deepseek-aidsh-user-approval"></a>
|
||||
|
||||
@@ -5227,7 +5299,7 @@ export interface Config {
|
||||
## `@deepseek-ai/dsh-working-directory`
|
||||
|
||||
- `inject`: `fs` · `sessionProjections` · `systemPrompt`
|
||||
- `source`: [`packages/session/working-directory/src/index.ts:64`](../packages/session/working-directory/src/index.ts)
|
||||
- `source`: [`packages/session/working-directory/src/index.ts:75`](../packages/session/working-directory/src/index.ts)
|
||||
|
||||
```ts config-catalog
|
||||
/** Deployment default for Sessions without an original project directory. */
|
||||
@@ -5296,7 +5368,6 @@ export interface Config {
|
||||
| `@deepseek-ai/dsh-client-ui-chat` | — | [`packages/client/ui-chat/src/index.ts`](../packages/client/ui-chat/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-client-ui-commands` | — | [`packages/client/ui-commands/src/index.ts`](../packages/client/ui-commands/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-client-ui-connector-account` | — | [`packages/client/ui-connector-account/src/index.ts`](../packages/client/ui-connector-account/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-client-ui-context-menu` | — | [`packages/client/ui-context-menu/src/index.ts`](../packages/client/ui-context-menu/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-client-ui-conversation` | — | [`packages/client/ui-conversation/src/index.ts`](../packages/client/ui-conversation/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-client-ui-cordis` | — | [`packages/extensions/ui-cordis/src/index.ts`](../packages/extensions/ui-cordis/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-client-ui-creation-recommendations` | — | [`packages/experimental/client-ui-creation-recommendations/src/index.ts`](../packages/experimental/client-ui-creation-recommendations/src/index.ts) |
|
||||
@@ -5394,7 +5465,6 @@ export interface Config {
|
||||
| `@deepseek-ai/dsh-tool-executor-native` | `tools` | [`packages/core/tool-executor-native/src/index.ts`](../packages/core/tool-executor-native/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-tool-schedule` | `tools` · `systemPrompt` | [`packages/schedule/tool-schedule/src/index.ts`](../packages/schedule/tool-schedule/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-tool-session-list` | `tools` · `sessions` · `sessionQuery` · `workspaceRegistry` · `sessionProjections` | [`packages/session-query/tool-session-list/src/index.ts`](../packages/session-query/tool-session-list/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-tool-working-directory` | `tools` · `workingDirectory` | [`packages/session/tool-working-directory/src/index.ts`](../packages/session/tool-working-directory/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-tools` | `systemPrompt` | [`packages/core/tools/src/index.ts`](../packages/core/tools/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-user-questions` | — | [`packages/interaction/user-questions/src/index.ts`](../packages/interaction/user-questions/src/index.ts) |
|
||||
| `@deepseek-ai/dsh-webhook` | `agents` · `agentDefaultModel` · `agentPresets` · `permissionPresets` · `sessionTitle` · `workspaceRegistry` | [`packages/experimental/webhook/src/index.ts`](../packages/experimental/webhook/src/index.ts) |
|
||||
|
||||
@@ -14,6 +14,9 @@
|
||||
/conversation-and-session-rules/retention-follows-one-lifecycle-rule:
|
||||
en: fcb40a31d0881e84
|
||||
zh: 779bc49cce81651e
|
||||
/conversation-and-session-rules/retained-excerpts-do-not-keep-their-source-string-alive:
|
||||
en: 6834b8020ee324b5
|
||||
zh: 10e76904d1470cec
|
||||
/conversation-and-session-rules/node-computation-is-incremental-and-streaming-publication-is-batched:
|
||||
en: 315c7ac2186d0721
|
||||
zh: 06bb4e072b242fe1
|
||||
|
||||
@@ -97,7 +97,7 @@ class SidebarSessionView implements Disposable {
|
||||
private readonly reference: SessionReference
|
||||
|
||||
constructor(readonly id: SessionId, sessions: ISessions) {
|
||||
this.reference = sessions.retain(id, { source: 'sidebarView' })
|
||||
this.reference = sessions.retain(id, { source: 'sidebarView', facets: { conversation: true } })
|
||||
void this.reference.ready.catch((error: unknown) => { console.error('opening failed:', error) })
|
||||
}
|
||||
|
||||
@@ -125,6 +125,26 @@ export function reclaimIdle(): void {
|
||||
|
||||
Nobody can count who still uses the Session, and the next state added to the Session escapes the enumeration and is never reclaimed.
|
||||
|
||||
## Retained excerpts do not keep their source string alive
|
||||
|
||||
Session events, tool result `meta`, and other values kept for a Session's lifetime copy any excerpt taken from a large transient string, such as decoded file text or command output. In V8, a `slice`, `substring`, `split` piece, or regular-expression capture of 13 or more characters can reference its whole parent string, a concatenation references its parts, and `Session.append` copies objects but not string storage. A 200-character line kept in `meta` can therefore keep a 16 MB file in memory until the Session closes.
|
||||
|
||||
- Judged condition: can a retained string be an excerpt of a larger string that would otherwise be garbage? The excerpt is copied with `Buffer.from(text, 'utf16le').toString('utf16le')` before it is retained, and a test drops a heap-allocated source, forces garbage collection, and checks that heap usage does not grow with the source size.
|
||||
- Boundary: the rule applies to excerpts that outlive the operation. It does not apply when the source itself is retained or when the value comes from `JSON.parse`, `TextDecoder`, or `Buffer#toString`. `String()`, `slice(0)`, `trim()`, `'' + text`, and `join` can return the input string itself and are not copies.
|
||||
- Ownership: the code that takes the excerpt copies it; the Session does not copy strings on append.
|
||||
|
||||
The `read` tool copies a returned line once when it was built from a slice:
|
||||
|
||||
```ts ignore-check
|
||||
const line = lineHasSlice ? Buffer.from(lineBuffer, 'utf16le').toString('utf16le') : lineBuffer
|
||||
```
|
||||
|
||||
Keeping the slice keeps the decoded file:
|
||||
|
||||
```ts ignore-check
|
||||
const line = lineBuffer // may be a slice of the whole decoded file
|
||||
```
|
||||
|
||||
## Node computation is incremental and streaming publication is batched
|
||||
|
||||
A new node computation states its complexity, and high-frequency streaming chunks never publish immediately and never recompute in full. A per-chunk full rebuild published at once puts the whole node collection on the frame budget, and the transcript stalls behind the stream. The append-path cost — with `D` registered Definitions, `D` matches and one constant-time Context-key lookup — and the publication vocabulary (`none`, `animation-frame`, `immediate`) are owned by [conversation.md](../subsystems/conversation.md#definition-and-typed-chat-payload).
|
||||
|
||||
@@ -97,7 +97,7 @@ class SidebarSessionView implements Disposable {
|
||||
private readonly reference: SessionReference
|
||||
|
||||
constructor(readonly id: SessionId, sessions: ISessions) {
|
||||
this.reference = sessions.retain(id, { source: 'sidebarView' })
|
||||
this.reference = sessions.retain(id, { source: 'sidebarView', facets: { conversation: true } })
|
||||
void this.reference.ready.catch((error: unknown) => { console.error('opening failed:', error) })
|
||||
}
|
||||
|
||||
@@ -125,6 +125,26 @@ export function reclaimIdle(): void {
|
||||
|
||||
没有人能数清谁仍在使用该 Session,下一个新增的 Session 状态也会漏出枚举、永远不被回收。
|
||||
|
||||
## 保留的摘录不会让来源字符串常驻内存
|
||||
|
||||
Session 事件、工具结果的 `meta`,以及其他在 Session 生命周期内保留的值,若取自大型临时字符串(例如解码后的文件文本或命令输出)的摘录,都要先复制该摘录。在 V8 中,长度不少于 13 个字符的 `slice`、`substring`、`split` 片段或正则表达式捕获可能引用整个父字符串,拼接结果会引用其各个组成部分,而 `Session.append` 复制对象,不复制字符串存储。因此,`meta` 中保留的一行 200 个字符的文本可能让一个 16 MB 的文件一直留在内存中,直到 Session 关闭。
|
||||
|
||||
- 判定条件:被保留的字符串是否可能是某个更大字符串的摘录,而该更大字符串本应被垃圾回收?摘录在保留之前用 `Buffer.from(text, 'utf16le').toString('utf16le')` 复制;测试丢弃一个分配在堆上的来源字符串、强制垃圾回收,并检查堆内存用量不随来源大小增长。
|
||||
- 边界:该规则适用于存活时间超过本次操作的摘录。来源本身被保留,或值来自 `JSON.parse`、`TextDecoder` 或 `Buffer#toString` 时,该规则不适用。`String()`、`slice(0)`、`trim()`、`'' + text` 和 `join` 可能返回输入字符串本身,不算复制。
|
||||
- 归口:截取摘录的代码负责复制;Session 在 append 时不复制字符串。
|
||||
|
||||
返回行由 slice 拼成时,`read` 工具把它复制一次:
|
||||
|
||||
```ts ignore-check
|
||||
const line = lineHasSlice ? Buffer.from(lineBuffer, 'utf16le').toString('utf16le') : lineBuffer
|
||||
```
|
||||
|
||||
保留 slice 会把解码后的文件一并保留:
|
||||
|
||||
```ts ignore-check
|
||||
const line = lineBuffer // may be a slice of the whole decoded file
|
||||
```
|
||||
|
||||
## 节点计算是增量的,流式发布是合批的
|
||||
|
||||
新增节点计算要说明其复杂度;高频流式 chunk 绝不立即发布、也不做全量计算。每个 chunk 全量重算并立即发布,等于把整个节点集合压进帧预算,转写区便会堵在流后面。追加速路径的开销——在 `D` 个已注册 Definition 下执行 `D` 次匹配与一次常量级 Context key 查找——以及发布节拍取值(`none`、`animation-frame`、`immediate`)归 [conversation.zh.md](../subsystems/conversation.zh.md#definition-and-typed-chat-payload)。
|
||||
|
||||
@@ -14,7 +14,7 @@ Application listeners are outside this package matrix. Desktop Host subscribes t
|
||||
| `agent-preset/selected` | `emit` | [`packages/preset/agent-preset-registry/src/types.ts:90`](../packages/preset/agent-preset-registry/src/types.ts) | [`agent-preset-registry`](../packages/preset/agent-preset-registry) (`emit`) | [`cua`](../packages/experimental/cua), `remotes` |
|
||||
| `agent/assistant-stream` | `emit` | [`packages/core/agent/src/runtime-types.ts:400`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`emit`) | [`headless`](../packages/bundle/headless), `session-controller` |
|
||||
| `agent/created` | `serial` | [`packages/core/agent/src/runtime-types.ts:291`](../packages/core/agent/src/runtime-types.ts) | [`agent`](../packages/core/agent) (`serial`) | [`agent-team`](../packages/team/agent-team), `browser-use-runtime`, `claude-code-mods`, [`creation-recommendations`](../packages/experimental/creation-recommendations), [`cua`](../packages/experimental/cua), [`file-reference-local`](../packages/context/file-reference-local), [`goal`](../packages/goal/goal), [`goal-round-driver`](../packages/goal/goal-round-driver), [`hooks-claude-code`](../packages/experimental/hooks-claude-code), [`hooks-codex`](../packages/experimental/hooks-codex), `liveshare`, [`loader-smoke`](../packages/test-support/loader-smoke), [`permission-presets`](../packages/interaction/permission-presets), `session-controller`, [`timeline`](../packages/experimental/timeline) |
|
||||
| `agent/disposed` | `emit` | [`packages/core/agent/src/runtime-types.ts:300`](../packages/core/agent/src/runtime-types.ts) | [`agent`](../packages/core/agent) (`events.dispatch`) | [`agent-loop`](../packages/core/agent-loop), `claude-code-mods`, [`creation-recommendations`](../packages/experimental/creation-recommendations), [`file-reference-local`](../packages/context/file-reference-local), [`goal-round-driver`](../packages/goal/goal-round-driver), `server`, `session-controller`, [`subagent`](../packages/subagent/subagent), [`timeline`](../packages/experimental/timeline), [`tool-office`](../packages/document/tool-office), [`tool-subagent-control`](../packages/subagent/tool-subagent-control) |
|
||||
| `agent/disposed` | `emit` | [`packages/core/agent/src/runtime-types.ts:300`](../packages/core/agent/src/runtime-types.ts) | [`agent`](../packages/core/agent) (`events.dispatch`) | [`agent-loop`](../packages/core/agent-loop), `claude-code-mods`, [`creation-recommendations`](../packages/experimental/creation-recommendations), [`file-reference-local`](../packages/context/file-reference-local), [`goal-round-driver`](../packages/goal/goal-round-driver), [`mcp-client`](../packages/mcp/mcp-client), `server`, `session-controller`, [`subagent`](../packages/subagent/subagent), [`timeline`](../packages/experimental/timeline), [`tool-office`](../packages/document/tool-office), [`tool-subagent-control`](../packages/subagent/tool-subagent-control) |
|
||||
| `agent/error` | `emit` | [`packages/core/agent/src/runtime-types.ts:430`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`emit`) | [`acp`](../packages/acp/acp), [`goal-round-driver`](../packages/goal/goal-round-driver), [`headless`](../packages/bundle/headless), [`llm-deepseek-account`](../packages/llm/llm-deepseek-account), `server`, `session-controller`, [`session-telemetry`](../packages/session/session-telemetry), [`subagent`](../packages/subagent/subagent) |
|
||||
| `agent/inbox/claimed` | `emit` | [`packages/core/agent/src/runtime-types.ts:329`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`emit`) | [`acp`](../packages/acp/acp), [`goal-round-driver`](../packages/goal/goal-round-driver), [`subagent`](../packages/subagent/subagent), [`tool-jobs`](../packages/jobs/tool-jobs), [`user-questions`](../packages/interaction/user-questions) |
|
||||
| `agent/inbox/discarded` | `emit` | [`packages/core/agent/src/runtime-types.ts:337`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`emit`) | [`goal-round-driver`](../packages/goal/goal-round-driver), [`subagent`](../packages/subagent/subagent), [`user-questions`](../packages/interaction/user-questions) |
|
||||
@@ -33,7 +33,7 @@ Application listeners are outside this package matrix. Desktop Host subscribes t
|
||||
| `authorization/settled` | `emit` | [`packages/credentials/authorization/src/index.ts:57`](../packages/credentials/authorization/src/index.ts) | [`authorization`](../packages/credentials/authorization) (`events.dispatch`) | - |
|
||||
| `commands/change` | `emit` | [`packages/interaction/commands/src/types.ts:89`](../packages/interaction/commands/src/types.ts) | [`commands`](../packages/interaction/commands) (`events.dispatch`) | `remotes` |
|
||||
| `compaction/summary-error` | `waterfall` | [`packages/compaction/compaction/src/index.ts:106`](../packages/compaction/compaction/src/index.ts) | [`compaction-basic`](../packages/compaction/compaction-basic) (`waterfall`) | [`compaction-image-offload`](../packages/compaction/compaction-image-offload) |
|
||||
| `connection/request` | `waterfall` | [`packages/client/connection/src/index.ts:67`](../packages/client/connection/src/index.ts) | `connection` (`waterfall`) | - |
|
||||
| `connection/request` | `waterfall` | [`packages/client/connection/src/index.ts:68`](../packages/client/connection/src/index.ts) | `connection` (`waterfall`) | - |
|
||||
| `cordis/dynamic-package` | `emit` | [`packages/extensions/cordis-host-runner/src/types.ts:383`](../packages/extensions/cordis-host-runner/src/types.ts) | [`cordis-host-runner`](../packages/extensions/cordis-host-runner) (`emit`) | `remotes` |
|
||||
| `cordis/dynamic-retract` | `emit` | [`packages/extensions/cordis-host-runner/src/types.ts:389`](../packages/extensions/cordis-host-runner/src/types.ts) | [`cordis-host-runner`](../packages/extensions/cordis-host-runner) (`emit`) | `remotes` |
|
||||
| `cordis/inspect-query` | `emit` | [`packages/extensions/cordis-host-runner/src/types.ts:395`](../packages/extensions/cordis-host-runner/src/types.ts) | [`cordis-host-runner`](../packages/extensions/cordis-host-runner) (`emit`) | `remotes` |
|
||||
@@ -95,7 +95,7 @@ Application listeners are outside this package matrix. Desktop Host subscribes t
|
||||
| `web/providers-changed` | `emit` | [`packages/web/web/src/types.ts:21`](../packages/web/web/src/types.ts) | [`web`](../packages/web/web) (`events.dispatch`) | `remotes` |
|
||||
| `webserver/authorize` | `bail` | [`packages/host/webserver/src/index.ts:60`](../packages/host/webserver/src/index.ts) | `webserver` (`bail`) | `connection` |
|
||||
| `webserver/entry-url` | `emit` | [`packages/host/webserver/src/index.ts:53`](../packages/host/webserver/src/index.ts) | [`web-app`](../packages/bundle/web-app) (`emit`) | `authentication-token` |
|
||||
| `webserver/index-inject` | `emit` | [`packages/host/webserver/src/index.ts:90`](../packages/host/webserver/src/index.ts) | `webserver` (`emit`) | `connection`, `inspector`, `modules`, `remote-access`, `shortcuts`, `ui-sidebar-documentpreview`, `ui-theme` |
|
||||
| `webserver/index-inject` | `emit` | [`packages/host/webserver/src/index.ts:90`](../packages/host/webserver/src/index.ts) | `webserver` (`emit`) | `inspector`, `modules`, `remote-access`, `ui-theme` |
|
||||
| `webserver/request` | `waterfall` | [`packages/host/webserver/src/index.ts:68`](../packages/host/webserver/src/index.ts) | `webserver` (`waterfall`) | `authentication-token`, [`deepseek-account`](../packages/account/deepseek-account), [`mcp-client`](../packages/mcp/mcp-client) |
|
||||
| `webserver/upgrade` | `waterfall` | [`packages/host/webserver/src/index.ts:78`](../packages/host/webserver/src/index.ts) | `webserver` (`waterfall`) | `authentication-token` |
|
||||
| `workflow/agent-end` | `emit` | [`packages/workflow/workflow/src/index.ts:79`](../packages/workflow/workflow/src/index.ts) | [`workflow`](../packages/workflow/workflow) (`events.dispatch`) | [`tool-workflow`](../packages/workflow/tool-workflow) |
|
||||
@@ -109,7 +109,7 @@ Application listeners are outside this package matrix. Desktop Host subscribes t
|
||||
| `workspace/session-archived` | `parallel` | [`packages/workspace/workspace/src/index.ts:157`](../packages/workspace/workspace/src/index.ts) | [`workspace`](../packages/workspace/workspace) (`parallel`) | `worktree` |
|
||||
| `workspace/session-stop` | `parallel` | [`packages/workspace/workspace/src/index.ts:148`](../packages/workspace/workspace/src/index.ts) | [`workspace`](../packages/workspace/workspace) (`parallel`) | [`agent`](../packages/core/agent), [`jobs`](../packages/jobs/jobs), [`schedule`](../packages/schedule/schedule), [`subagent`](../packages/subagent/subagent) |
|
||||
| `workspace/session-unarchiving` | `parallel` | [`packages/workspace/workspace/src/index.ts:164`](../packages/workspace/workspace/src/index.ts) | [`workspace`](../packages/workspace/workspace) (`parallel`) | `worktree` |
|
||||
| `worktree/cleanup` | `emit` | [`packages/experimental/worktree/src/archive.ts:25`](../packages/experimental/worktree/src/archive.ts) | `worktree` (`emit`) | - |
|
||||
| `worktree/cleanup` | `emit` | [`packages/experimental/worktree/src/archive.ts:26`](../packages/experimental/worktree/src/archive.ts) | `worktree` (`emit`) | - |
|
||||
<!-- END GENERATED event-producer-consumer:events -->
|
||||
|
||||
## Non-harness or undeclared event strings seen in package source
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
| `agent-preset/selected` | `emit` | [`packages/preset/agent-preset-registry/src/types.ts:90`](../packages/preset/agent-preset-registry/src/types.ts) | [`agent-preset-registry`](../packages/preset/agent-preset-registry) (`emit`) | [`cua`](../packages/experimental/cua), `remotes` |
|
||||
| `agent/assistant-stream` | `emit` | [`packages/core/agent/src/runtime-types.ts:400`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`emit`) | [`headless`](../packages/bundle/headless), `session-controller` |
|
||||
| `agent/created` | `serial` | [`packages/core/agent/src/runtime-types.ts:291`](../packages/core/agent/src/runtime-types.ts) | [`agent`](../packages/core/agent) (`serial`) | [`agent-team`](../packages/team/agent-team), `browser-use-runtime`, `claude-code-mods`, [`creation-recommendations`](../packages/experimental/creation-recommendations), [`cua`](../packages/experimental/cua), [`file-reference-local`](../packages/context/file-reference-local), [`goal`](../packages/goal/goal), [`goal-round-driver`](../packages/goal/goal-round-driver), [`hooks-claude-code`](../packages/experimental/hooks-claude-code), [`hooks-codex`](../packages/experimental/hooks-codex), `liveshare`, [`loader-smoke`](../packages/test-support/loader-smoke), [`permission-presets`](../packages/interaction/permission-presets), `session-controller`, [`timeline`](../packages/experimental/timeline) |
|
||||
| `agent/disposed` | `emit` | [`packages/core/agent/src/runtime-types.ts:300`](../packages/core/agent/src/runtime-types.ts) | [`agent`](../packages/core/agent) (`events.dispatch`) | [`agent-loop`](../packages/core/agent-loop), `claude-code-mods`, [`creation-recommendations`](../packages/experimental/creation-recommendations), [`file-reference-local`](../packages/context/file-reference-local), [`goal-round-driver`](../packages/goal/goal-round-driver), `server`, `session-controller`, [`subagent`](../packages/subagent/subagent), [`timeline`](../packages/experimental/timeline), [`tool-office`](../packages/document/tool-office), [`tool-subagent-control`](../packages/subagent/tool-subagent-control) |
|
||||
| `agent/disposed` | `emit` | [`packages/core/agent/src/runtime-types.ts:300`](../packages/core/agent/src/runtime-types.ts) | [`agent`](../packages/core/agent) (`events.dispatch`) | [`agent-loop`](../packages/core/agent-loop), `claude-code-mods`, [`creation-recommendations`](../packages/experimental/creation-recommendations), [`file-reference-local`](../packages/context/file-reference-local), [`goal-round-driver`](../packages/goal/goal-round-driver), [`mcp-client`](../packages/mcp/mcp-client), `server`, `session-controller`, [`subagent`](../packages/subagent/subagent), [`timeline`](../packages/experimental/timeline), [`tool-office`](../packages/document/tool-office), [`tool-subagent-control`](../packages/subagent/tool-subagent-control) |
|
||||
| `agent/error` | `emit` | [`packages/core/agent/src/runtime-types.ts:430`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`emit`) | [`acp`](../packages/acp/acp), [`goal-round-driver`](../packages/goal/goal-round-driver), [`headless`](../packages/bundle/headless), [`llm-deepseek-account`](../packages/llm/llm-deepseek-account), `server`, `session-controller`, [`session-telemetry`](../packages/session/session-telemetry), [`subagent`](../packages/subagent/subagent) |
|
||||
| `agent/inbox/claimed` | `emit` | [`packages/core/agent/src/runtime-types.ts:329`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`emit`) | [`acp`](../packages/acp/acp), [`goal-round-driver`](../packages/goal/goal-round-driver), [`subagent`](../packages/subagent/subagent), [`tool-jobs`](../packages/jobs/tool-jobs), [`user-questions`](../packages/interaction/user-questions) |
|
||||
| `agent/inbox/discarded` | `emit` | [`packages/core/agent/src/runtime-types.ts:337`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`emit`) | [`goal-round-driver`](../packages/goal/goal-round-driver), [`subagent`](../packages/subagent/subagent), [`user-questions`](../packages/interaction/user-questions) |
|
||||
@@ -35,7 +35,7 @@
|
||||
| `authorization/settled` | `emit` | [`packages/credentials/authorization/src/index.ts:57`](../packages/credentials/authorization/src/index.ts) | [`authorization`](../packages/credentials/authorization) (`events.dispatch`) | - |
|
||||
| `commands/change` | `emit` | [`packages/interaction/commands/src/types.ts:89`](../packages/interaction/commands/src/types.ts) | [`commands`](../packages/interaction/commands) (`events.dispatch`) | `remotes` |
|
||||
| `compaction/summary-error` | `waterfall` | [`packages/compaction/compaction/src/index.ts:106`](../packages/compaction/compaction/src/index.ts) | [`compaction-basic`](../packages/compaction/compaction-basic) (`waterfall`) | [`compaction-image-offload`](../packages/compaction/compaction-image-offload) |
|
||||
| `connection/request` | `waterfall` | [`packages/client/connection/src/index.ts:67`](../packages/client/connection/src/index.ts) | `connection` (`waterfall`) | - |
|
||||
| `connection/request` | `waterfall` | [`packages/client/connection/src/index.ts:68`](../packages/client/connection/src/index.ts) | `connection` (`waterfall`) | - |
|
||||
| `cordis/dynamic-package` | `emit` | [`packages/extensions/cordis-host-runner/src/types.ts:383`](../packages/extensions/cordis-host-runner/src/types.ts) | [`cordis-host-runner`](../packages/extensions/cordis-host-runner) (`emit`) | `remotes` |
|
||||
| `cordis/dynamic-retract` | `emit` | [`packages/extensions/cordis-host-runner/src/types.ts:389`](../packages/extensions/cordis-host-runner/src/types.ts) | [`cordis-host-runner`](../packages/extensions/cordis-host-runner) (`emit`) | `remotes` |
|
||||
| `cordis/inspect-query` | `emit` | [`packages/extensions/cordis-host-runner/src/types.ts:395`](../packages/extensions/cordis-host-runner/src/types.ts) | [`cordis-host-runner`](../packages/extensions/cordis-host-runner) (`emit`) | `remotes` |
|
||||
@@ -97,7 +97,7 @@
|
||||
| `web/providers-changed` | `emit` | [`packages/web/web/src/types.ts:21`](../packages/web/web/src/types.ts) | [`web`](../packages/web/web) (`events.dispatch`) | `remotes` |
|
||||
| `webserver/authorize` | `bail` | [`packages/host/webserver/src/index.ts:60`](../packages/host/webserver/src/index.ts) | `webserver` (`bail`) | `connection` |
|
||||
| `webserver/entry-url` | `emit` | [`packages/host/webserver/src/index.ts:53`](../packages/host/webserver/src/index.ts) | [`web-app`](../packages/bundle/web-app) (`emit`) | `authentication-token` |
|
||||
| `webserver/index-inject` | `emit` | [`packages/host/webserver/src/index.ts:90`](../packages/host/webserver/src/index.ts) | `webserver` (`emit`) | `connection`, `inspector`, `modules`, `remote-access`, `shortcuts`, `ui-sidebar-documentpreview`, `ui-theme` |
|
||||
| `webserver/index-inject` | `emit` | [`packages/host/webserver/src/index.ts:90`](../packages/host/webserver/src/index.ts) | `webserver` (`emit`) | `inspector`, `modules`, `remote-access`, `ui-theme` |
|
||||
| `webserver/request` | `waterfall` | [`packages/host/webserver/src/index.ts:68`](../packages/host/webserver/src/index.ts) | `webserver` (`waterfall`) | `authentication-token`, [`deepseek-account`](../packages/account/deepseek-account), [`mcp-client`](../packages/mcp/mcp-client) |
|
||||
| `webserver/upgrade` | `waterfall` | [`packages/host/webserver/src/index.ts:78`](../packages/host/webserver/src/index.ts) | `webserver` (`waterfall`) | `authentication-token` |
|
||||
| `workflow/agent-end` | `emit` | [`packages/workflow/workflow/src/index.ts:79`](../packages/workflow/workflow/src/index.ts) | [`workflow`](../packages/workflow/workflow) (`events.dispatch`) | [`tool-workflow`](../packages/workflow/tool-workflow) |
|
||||
@@ -111,7 +111,7 @@
|
||||
| `workspace/session-archived` | `parallel` | [`packages/workspace/workspace/src/index.ts:157`](../packages/workspace/workspace/src/index.ts) | [`workspace`](../packages/workspace/workspace) (`parallel`) | `worktree` |
|
||||
| `workspace/session-stop` | `parallel` | [`packages/workspace/workspace/src/index.ts:148`](../packages/workspace/workspace/src/index.ts) | [`workspace`](../packages/workspace/workspace) (`parallel`) | [`agent`](../packages/core/agent), [`jobs`](../packages/jobs/jobs), [`schedule`](../packages/schedule/schedule), [`subagent`](../packages/subagent/subagent) |
|
||||
| `workspace/session-unarchiving` | `parallel` | [`packages/workspace/workspace/src/index.ts:164`](../packages/workspace/workspace/src/index.ts) | [`workspace`](../packages/workspace/workspace) (`parallel`) | `worktree` |
|
||||
| `worktree/cleanup` | `emit` | [`packages/experimental/worktree/src/archive.ts:25`](../packages/experimental/worktree/src/archive.ts) | `worktree` (`emit`) | - |
|
||||
| `worktree/cleanup` | `emit` | [`packages/experimental/worktree/src/archive.ts:26`](../packages/experimental/worktree/src/archive.ts) | `worktree` (`emit`) | - |
|
||||
<!-- END GENERATED event-producer-consumer:events -->
|
||||
|
||||
## Non-harness or undeclared event strings seen in package source
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
en: a11f106978c9dce7
|
||||
zh: a11f106978c9dce7
|
||||
/experimental-plugin-record-catalog:
|
||||
en: 70a326c106662bf9
|
||||
zh: 876f8036b96985d2
|
||||
en: eb63e54f4ce301b7
|
||||
zh: b2ec1013b131de5e
|
||||
@@ -19,6 +19,7 @@ Shared Session event declarations and resolved schemas appear in the [Session pe
|
||||
| `plugin:translator/request` | `@deepseek-ai/dsh-experimental-translator` | Provider-independent translation input, retained before dispatch. | <code>TranslationRequestRecord</code> · [`packages/experimental/translator/src/types.ts`](../packages/experimental/translator/src/types.ts) |
|
||||
| `plugin:translator/result` | `@deepseek-ai/dsh-experimental-translator` | Successful translation, retained before it is returned to the consumer. | <code>TranslationResultRecord</code> · [`packages/experimental/translator/src/types.ts`](../packages/experimental/translator/src/types.ts) |
|
||||
| `plugin:worktree/created` | `@deepseek-ai/dsh-experimental-worktree` | A checkout the worktree service created for the Session, which entered it in the same operation. | <code>CreatedWorktree</code> · [`packages/experimental/worktree/src/projection.ts`](../packages/experimental/worktree/src/projection.ts) |
|
||||
| `plugin:worktree/entered` | `@deepseek-ai/dsh-experimental-worktree` | An existing checkout the Session entered, and the checkout it entered from. | <code>EnteredWorktree</code> · [`packages/experimental/worktree/src/projection.ts`](../packages/experimental/worktree/src/projection.ts) |
|
||||
| `plugin:timeline/annotation` | `@deepseek-ai/dsh-timeline` | Record a discussion or control request from the user. | <code>{ version: 1; sessionId: SessionId; annotation: Annotation; }</code> · [`packages/experimental/timeline/src/records.ts`](../packages/experimental/timeline/src/records.ts) |
|
||||
| `plugin:timeline/delivery` | `@deepseek-ai/dsh-timeline` | Record whether the agent accepted a control request. | <code>{ version: 1; sessionId: SessionId; id: Annotation['id']; delivery: 'accepted' | 'unknown'; }</code> · [`packages/experimental/timeline/src/records.ts`](../packages/experimental/timeline/src/records.ts) |
|
||||
| `plugin:timeline/failure` | `@deepseek-ai/dsh-timeline` | Record a failed interval report attempt. | <code>{ version: 1; sessionId: SessionId; id: IntervalReport['id']; message: string; }</code> · [`packages/experimental/timeline/src/records.ts`](../packages/experimental/timeline/src/records.ts) |
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
| `plugin:translator/request` | `@deepseek-ai/dsh-experimental-translator` | Provider-independent translation input, retained before dispatch. | <code>TranslationRequestRecord</code> · [`packages/experimental/translator/src/types.ts`](../packages/experimental/translator/src/types.ts) |
|
||||
| `plugin:translator/result` | `@deepseek-ai/dsh-experimental-translator` | Successful translation, retained before it is returned to the consumer. | <code>TranslationResultRecord</code> · [`packages/experimental/translator/src/types.ts`](../packages/experimental/translator/src/types.ts) |
|
||||
| `plugin:worktree/created` | `@deepseek-ai/dsh-experimental-worktree` | A checkout the worktree service created for the Session, which entered it in the same operation. | <code>CreatedWorktree</code> · [`packages/experimental/worktree/src/projection.ts`](../packages/experimental/worktree/src/projection.ts) |
|
||||
| `plugin:worktree/entered` | `@deepseek-ai/dsh-experimental-worktree` | An existing checkout the Session entered, and the checkout it entered from. | <code>EnteredWorktree</code> · [`packages/experimental/worktree/src/projection.ts`](../packages/experimental/worktree/src/projection.ts) |
|
||||
| `plugin:timeline/annotation` | `@deepseek-ai/dsh-timeline` | Record a discussion or control request from the user. | <code>{ version: 1; sessionId: SessionId; annotation: Annotation; }</code> · [`packages/experimental/timeline/src/records.ts`](../packages/experimental/timeline/src/records.ts) |
|
||||
| `plugin:timeline/delivery` | `@deepseek-ai/dsh-timeline` | Record whether the agent accepted a control request. | <code>{ version: 1; sessionId: SessionId; id: Annotation['id']; delivery: 'accepted' | 'unknown'; }</code> · [`packages/experimental/timeline/src/records.ts`](../packages/experimental/timeline/src/records.ts) |
|
||||
| `plugin:timeline/failure` | `@deepseek-ai/dsh-timeline` | Record a failed interval report attempt. | <code>{ version: 1; sessionId: SessionId; id: IntervalReport['id']; message: string; }</code> · [`packages/experimental/timeline/src/records.ts`](../packages/experimental/timeline/src/records.ts) |
|
||||
|
||||
@@ -244,6 +244,7 @@ flowchart TD
|
||||
end
|
||||
subgraph group_connector["packages/connector"]
|
||||
pkg_cli_account["cli-account"]
|
||||
pkg_upstream_skills["upstream-skills"]
|
||||
end
|
||||
subgraph group_context["packages/context"]
|
||||
pkg_agent_instructions["agent-instructions"]
|
||||
@@ -435,7 +436,6 @@ flowchart TD
|
||||
pkg_session_title_first_prompt_llm["session-title-first-prompt-llm"]
|
||||
pkg_session_title_llm["session-title-llm"]
|
||||
pkg_session_turn_outline["session-turn-outline"]
|
||||
pkg_tool_working_directory["tool-working-directory"]
|
||||
pkg_working_directory["working-directory"]
|
||||
end
|
||||
subgraph group_settings["packages/settings"]
|
||||
@@ -601,6 +601,7 @@ flowchart TD
|
||||
pkg_config_editor --> pkg_hmr
|
||||
pkg_cli_account --> pkg_subprocess
|
||||
pkg_cli_account --> pkg_system_prompt
|
||||
pkg_upstream_skills --> pkg_skill
|
||||
pkg_deliverable_file_references --> pkg_system_prompt
|
||||
pkg_experimental_speech_to_text --> pkg_settings
|
||||
pkg_experimental_translator --> pkg_credentials
|
||||
@@ -1083,8 +1084,6 @@ flowchart TD
|
||||
pkg_session_title_first_prompt_llm --> pkg_session
|
||||
pkg_session_title_first_prompt_llm --> pkg_session_title
|
||||
pkg_session_title_first_prompt_llm --> pkg_session_title_llm
|
||||
pkg_tool_working_directory --> pkg_tools
|
||||
pkg_tool_working_directory --> pkg_working_directory
|
||||
pkg_shell_env --> pkg_app_boot
|
||||
pkg_shell_env --> pkg_error
|
||||
pkg_shell_env --> pkg_home_paths
|
||||
@@ -1190,6 +1189,7 @@ flowchart TD
|
||||
pkg_host_plugin_inventory --> pkg_agent_preset_registry
|
||||
pkg_host_plugin_inventory --> pkg_brand
|
||||
pkg_host_plugin_inventory --> pkg_typert_protocol
|
||||
pkg_mcp_client --> pkg_agent
|
||||
pkg_mcp_client --> pkg_attachment
|
||||
pkg_mcp_client --> pkg_authorization
|
||||
pkg_mcp_client --> pkg_credentials
|
||||
@@ -1197,6 +1197,7 @@ flowchart TD
|
||||
pkg_mcp_client --> pkg_host_webserver
|
||||
pkg_mcp_client --> pkg_llm
|
||||
pkg_mcp_client --> pkg_mcp_resources
|
||||
pkg_mcp_client --> pkg_output_retention
|
||||
pkg_mcp_client --> pkg_scope
|
||||
pkg_mcp_client --> pkg_subprocess
|
||||
pkg_mcp_client --> pkg_system_prompt
|
||||
@@ -1813,6 +1814,7 @@ flowchart TD
|
||||
| [`deepseek-account`](../packages/account/deepseek-account) | `account` | [`authorization`](../packages/credentials/authorization), [`brand`](../packages/util/brand), [`credentials`](../packages/credentials/credentials), [`host-webserver`](../packages/host/webserver), [`typert-protocol`](../packages/typert/protocol), [`util-values`](../packages/util/values) |
|
||||
| [`config-editor`](../packages/boot/config-editor) | `boot` | [`app-boot`](../packages/boot/app-boot), [`hmr`](../packages/boot/hmr) |
|
||||
| [`cli-account`](../packages/connector/cli-account) | `connector` | [`subprocess`](../packages/subprocess/subprocess), [`system-prompt`](../packages/core/system-prompt) |
|
||||
| [`upstream-skills`](../packages/connector/upstream-skills) | `connector` | [`skill`](../packages/skill/skill) |
|
||||
| [`deliverable-file-references`](../packages/deliverables/deliverable-file-references) | `deliverables` | [`system-prompt`](../packages/core/system-prompt) |
|
||||
| [`experimental-speech-to-text`](../packages/experimental/speech-to-text) | `experimental` | [`settings`](../packages/settings/settings) |
|
||||
| [`experimental-translator`](../packages/experimental/translator) | `experimental` | [`credentials`](../packages/credentials/credentials), [`launch-environment`](../packages/util/launch-environment), [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`session-persistence`](../packages/session/session-persistence), [`timeout`](../packages/util/timeout), [`util-values`](../packages/util/values) |
|
||||
@@ -1922,7 +1924,6 @@ flowchart TD
|
||||
| [`agent-preset-registry`](../packages/preset/agent-preset-registry) | `preset` | [`agent`](../packages/core/agent), [`scope`](../packages/core/scope), [`session`](../packages/core/session), [`session-projection`](../packages/session/session-projection), [`settings`](../packages/settings/settings), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`typert-protocol`](../packages/typert/protocol) |
|
||||
| [`session-checkpoint-policy`](../packages/session/session-checkpoint-policy) | `session` | [`agent`](../packages/core/agent), [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`session-persistence`](../packages/session/session-persistence), [`tools`](../packages/core/tools) |
|
||||
| [`session-title-first-prompt-llm`](../packages/session/session-title-first-prompt-llm) | `session` | [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`session-title`](../packages/session/session-title), [`session-title-llm`](../packages/session/session-title-llm) |
|
||||
| [`tool-working-directory`](../packages/session/tool-working-directory) | `session` | [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
|
||||
| [`shell-env`](../packages/shell/shell-env) | `shell` | [`app-boot`](../packages/boot/app-boot), [`error`](../packages/util/error), [`home-paths`](../packages/util/home-paths), [`shell`](../packages/shell/shell), [`tools`](../packages/core/tools) |
|
||||
| [`tool-bash-persistent`](../packages/shell/tool-bash-persistent) | `shell` | [`agent`](../packages/core/agent), [`output-retention`](../packages/util/output-retention), [`terminal`](../packages/terminal/terminal), [`timeout`](../packages/util/timeout), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
|
||||
| [`tool-pwsh-persistent`](../packages/shell/tool-pwsh-persistent) | `shell` | [`agent`](../packages/core/agent), [`output-retention`](../packages/util/output-retention), [`terminal`](../packages/terminal/terminal), [`timeout`](../packages/util/timeout), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
|
||||
@@ -1942,7 +1943,7 @@ flowchart TD
|
||||
| [`webhook`](../packages/experimental/webhook) | `experimental` | [`agent`](../packages/core/agent), [`agent-default-model`](../packages/core/agent-default-model), [`agent-preset-registry`](../packages/preset/agent-preset-registry), [`llm`](../packages/llm/llm), [`permission-presets`](../packages/interaction/permission-presets), [`session`](../packages/core/session), [`session-title`](../packages/session/session-title), [`workspace`](../packages/workspace/workspace) |
|
||||
| [`tool-cordis`](../packages/extensions/tool-cordis) | `extensions` | [`agent`](../packages/core/agent), [`app-boot`](../packages/boot/app-boot), [`cordis-host-runner`](../packages/extensions/cordis-host-runner), [`tools`](../packages/core/tools) |
|
||||
| [`host-plugin-inventory`](../packages/host/plugin-inventory) | `host` | [`agent-preset-registry`](../packages/preset/agent-preset-registry), [`brand`](../packages/util/brand), [`typert-protocol`](../packages/typert/protocol) |
|
||||
| [`mcp-client`](../packages/mcp/mcp-client) | `mcp` | [`attachment`](../packages/attachment/attachment), [`authorization`](../packages/credentials/authorization), [`credentials`](../packages/credentials/credentials), [`error`](../packages/util/error), [`host-webserver`](../packages/host/webserver), [`llm`](../packages/llm/llm), [`mcp-resources`](../packages/mcp/mcp-resources), [`scope`](../packages/core/scope), [`subprocess`](../packages/subprocess/subprocess), [`system-prompt`](../packages/core/system-prompt), [`timeout`](../packages/util/timeout), [`tools`](../packages/core/tools) |
|
||||
| [`mcp-client`](../packages/mcp/mcp-client) | `mcp` | [`agent`](../packages/core/agent), [`attachment`](../packages/attachment/attachment), [`authorization`](../packages/credentials/authorization), [`credentials`](../packages/credentials/credentials), [`error`](../packages/util/error), [`host-webserver`](../packages/host/webserver), [`llm`](../packages/llm/llm), [`mcp-resources`](../packages/mcp/mcp-resources), [`output-retention`](../packages/util/output-retention), [`scope`](../packages/core/scope), [`subprocess`](../packages/subprocess/subprocess), [`system-prompt`](../packages/core/system-prompt), [`timeout`](../packages/util/timeout), [`tools`](../packages/core/tools) |
|
||||
| [`agent-preset`](../packages/preset/agent-preset) | `preset` | [`agent-preset-registry`](../packages/preset/agent-preset-registry) |
|
||||
| [`session-telemetry-otel`](../packages/session/session-telemetry-otel) | `session` | [`anonymous-user-id`](../packages/identity/anonymous-user-id), [`command-feedback`](../packages/feedback/command-feedback), [`llm`](../packages/llm/llm), [`message-feedback`](../packages/feedback/message-feedback), [`otel`](../packages/telemetry/otel), [`session`](../packages/core/session), [`session-telemetry`](../packages/session/session-telemetry) |
|
||||
| [`tool-bash`](../packages/shell/tool-bash) | `shell` | [`agent`](../packages/core/agent), [`jobs`](../packages/jobs/jobs), [`llm`](../packages/llm/llm), [`sandbox`](../packages/sandbox/sandbox), [`sandbox-policy`](../packages/sandbox/sandbox-policy), [`shell`](../packages/shell/shell), [`shell-env`](../packages/shell/shell-env), [`subprocess`](../packages/subprocess/subprocess), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`user-approval`](../packages/interaction/user-approval), [`working-directory`](../packages/session/working-directory) |
|
||||
|
||||
@@ -246,6 +246,7 @@ flowchart TD
|
||||
end
|
||||
subgraph group_connector["packages/connector"]
|
||||
pkg_cli_account["cli-account"]
|
||||
pkg_upstream_skills["upstream-skills"]
|
||||
end
|
||||
subgraph group_context["packages/context"]
|
||||
pkg_agent_instructions["agent-instructions"]
|
||||
@@ -437,7 +438,6 @@ flowchart TD
|
||||
pkg_session_title_first_prompt_llm["session-title-first-prompt-llm"]
|
||||
pkg_session_title_llm["session-title-llm"]
|
||||
pkg_session_turn_outline["session-turn-outline"]
|
||||
pkg_tool_working_directory["tool-working-directory"]
|
||||
pkg_working_directory["working-directory"]
|
||||
end
|
||||
subgraph group_settings["packages/settings"]
|
||||
@@ -603,6 +603,7 @@ flowchart TD
|
||||
pkg_config_editor --> pkg_hmr
|
||||
pkg_cli_account --> pkg_subprocess
|
||||
pkg_cli_account --> pkg_system_prompt
|
||||
pkg_upstream_skills --> pkg_skill
|
||||
pkg_deliverable_file_references --> pkg_system_prompt
|
||||
pkg_experimental_speech_to_text --> pkg_settings
|
||||
pkg_experimental_translator --> pkg_credentials
|
||||
@@ -1085,8 +1086,6 @@ flowchart TD
|
||||
pkg_session_title_first_prompt_llm --> pkg_session
|
||||
pkg_session_title_first_prompt_llm --> pkg_session_title
|
||||
pkg_session_title_first_prompt_llm --> pkg_session_title_llm
|
||||
pkg_tool_working_directory --> pkg_tools
|
||||
pkg_tool_working_directory --> pkg_working_directory
|
||||
pkg_shell_env --> pkg_app_boot
|
||||
pkg_shell_env --> pkg_error
|
||||
pkg_shell_env --> pkg_home_paths
|
||||
@@ -1192,6 +1191,7 @@ flowchart TD
|
||||
pkg_host_plugin_inventory --> pkg_agent_preset_registry
|
||||
pkg_host_plugin_inventory --> pkg_brand
|
||||
pkg_host_plugin_inventory --> pkg_typert_protocol
|
||||
pkg_mcp_client --> pkg_agent
|
||||
pkg_mcp_client --> pkg_attachment
|
||||
pkg_mcp_client --> pkg_authorization
|
||||
pkg_mcp_client --> pkg_credentials
|
||||
@@ -1199,6 +1199,7 @@ flowchart TD
|
||||
pkg_mcp_client --> pkg_host_webserver
|
||||
pkg_mcp_client --> pkg_llm
|
||||
pkg_mcp_client --> pkg_mcp_resources
|
||||
pkg_mcp_client --> pkg_output_retention
|
||||
pkg_mcp_client --> pkg_scope
|
||||
pkg_mcp_client --> pkg_subprocess
|
||||
pkg_mcp_client --> pkg_system_prompt
|
||||
@@ -1815,6 +1816,7 @@ flowchart TD
|
||||
| [`deepseek-account`](../packages/account/deepseek-account) | `account` | [`authorization`](../packages/credentials/authorization), [`brand`](../packages/util/brand), [`credentials`](../packages/credentials/credentials), [`host-webserver`](../packages/host/webserver), [`typert-protocol`](../packages/typert/protocol), [`util-values`](../packages/util/values) |
|
||||
| [`config-editor`](../packages/boot/config-editor) | `boot` | [`app-boot`](../packages/boot/app-boot), [`hmr`](../packages/boot/hmr) |
|
||||
| [`cli-account`](../packages/connector/cli-account) | `connector` | [`subprocess`](../packages/subprocess/subprocess), [`system-prompt`](../packages/core/system-prompt) |
|
||||
| [`upstream-skills`](../packages/connector/upstream-skills) | `connector` | [`skill`](../packages/skill/skill) |
|
||||
| [`deliverable-file-references`](../packages/deliverables/deliverable-file-references) | `deliverables` | [`system-prompt`](../packages/core/system-prompt) |
|
||||
| [`experimental-speech-to-text`](../packages/experimental/speech-to-text) | `experimental` | [`settings`](../packages/settings/settings) |
|
||||
| [`experimental-translator`](../packages/experimental/translator) | `experimental` | [`credentials`](../packages/credentials/credentials), [`launch-environment`](../packages/util/launch-environment), [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`session-persistence`](../packages/session/session-persistence), [`timeout`](../packages/util/timeout), [`util-values`](../packages/util/values) |
|
||||
@@ -1924,7 +1926,6 @@ flowchart TD
|
||||
| [`agent-preset-registry`](../packages/preset/agent-preset-registry) | `preset` | [`agent`](../packages/core/agent), [`scope`](../packages/core/scope), [`session`](../packages/core/session), [`session-projection`](../packages/session/session-projection), [`settings`](../packages/settings/settings), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`typert-protocol`](../packages/typert/protocol) |
|
||||
| [`session-checkpoint-policy`](../packages/session/session-checkpoint-policy) | `session` | [`agent`](../packages/core/agent), [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`session-persistence`](../packages/session/session-persistence), [`tools`](../packages/core/tools) |
|
||||
| [`session-title-first-prompt-llm`](../packages/session/session-title-first-prompt-llm) | `session` | [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`session-title`](../packages/session/session-title), [`session-title-llm`](../packages/session/session-title-llm) |
|
||||
| [`tool-working-directory`](../packages/session/tool-working-directory) | `session` | [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
|
||||
| [`shell-env`](../packages/shell/shell-env) | `shell` | [`app-boot`](../packages/boot/app-boot), [`error`](../packages/util/error), [`home-paths`](../packages/util/home-paths), [`shell`](../packages/shell/shell), [`tools`](../packages/core/tools) |
|
||||
| [`tool-bash-persistent`](../packages/shell/tool-bash-persistent) | `shell` | [`agent`](../packages/core/agent), [`output-retention`](../packages/util/output-retention), [`terminal`](../packages/terminal/terminal), [`timeout`](../packages/util/timeout), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
|
||||
| [`tool-pwsh-persistent`](../packages/shell/tool-pwsh-persistent) | `shell` | [`agent`](../packages/core/agent), [`output-retention`](../packages/util/output-retention), [`terminal`](../packages/terminal/terminal), [`timeout`](../packages/util/timeout), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
|
||||
@@ -1944,7 +1945,7 @@ flowchart TD
|
||||
| [`webhook`](../packages/experimental/webhook) | `experimental` | [`agent`](../packages/core/agent), [`agent-default-model`](../packages/core/agent-default-model), [`agent-preset-registry`](../packages/preset/agent-preset-registry), [`llm`](../packages/llm/llm), [`permission-presets`](../packages/interaction/permission-presets), [`session`](../packages/core/session), [`session-title`](../packages/session/session-title), [`workspace`](../packages/workspace/workspace) |
|
||||
| [`tool-cordis`](../packages/extensions/tool-cordis) | `extensions` | [`agent`](../packages/core/agent), [`app-boot`](../packages/boot/app-boot), [`cordis-host-runner`](../packages/extensions/cordis-host-runner), [`tools`](../packages/core/tools) |
|
||||
| [`host-plugin-inventory`](../packages/host/plugin-inventory) | `host` | [`agent-preset-registry`](../packages/preset/agent-preset-registry), [`brand`](../packages/util/brand), [`typert-protocol`](../packages/typert/protocol) |
|
||||
| [`mcp-client`](../packages/mcp/mcp-client) | `mcp` | [`attachment`](../packages/attachment/attachment), [`authorization`](../packages/credentials/authorization), [`credentials`](../packages/credentials/credentials), [`error`](../packages/util/error), [`host-webserver`](../packages/host/webserver), [`llm`](../packages/llm/llm), [`mcp-resources`](../packages/mcp/mcp-resources), [`scope`](../packages/core/scope), [`subprocess`](../packages/subprocess/subprocess), [`system-prompt`](../packages/core/system-prompt), [`timeout`](../packages/util/timeout), [`tools`](../packages/core/tools) |
|
||||
| [`mcp-client`](../packages/mcp/mcp-client) | `mcp` | [`agent`](../packages/core/agent), [`attachment`](../packages/attachment/attachment), [`authorization`](../packages/credentials/authorization), [`credentials`](../packages/credentials/credentials), [`error`](../packages/util/error), [`host-webserver`](../packages/host/webserver), [`llm`](../packages/llm/llm), [`mcp-resources`](../packages/mcp/mcp-resources), [`output-retention`](../packages/util/output-retention), [`scope`](../packages/core/scope), [`subprocess`](../packages/subprocess/subprocess), [`system-prompt`](../packages/core/system-prompt), [`timeout`](../packages/util/timeout), [`tools`](../packages/core/tools) |
|
||||
| [`agent-preset`](../packages/preset/agent-preset) | `preset` | [`agent-preset-registry`](../packages/preset/agent-preset-registry) |
|
||||
| [`session-telemetry-otel`](../packages/session/session-telemetry-otel) | `session` | [`anonymous-user-id`](../packages/identity/anonymous-user-id), [`command-feedback`](../packages/feedback/command-feedback), [`llm`](../packages/llm/llm), [`message-feedback`](../packages/feedback/message-feedback), [`otel`](../packages/telemetry/otel), [`session`](../packages/core/session), [`session-telemetry`](../packages/session/session-telemetry) |
|
||||
| [`tool-bash`](../packages/shell/tool-bash) | `shell` | [`agent`](../packages/core/agent), [`jobs`](../packages/jobs/jobs), [`llm`](../packages/llm/llm), [`sandbox`](../packages/sandbox/sandbox), [`sandbox-policy`](../packages/sandbox/sandbox-policy), [`shell`](../packages/shell/shell), [`shell-env`](../packages/shell/shell-env), [`subprocess`](../packages/subprocess/subprocess), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`user-approval`](../packages/interaction/user-approval), [`working-directory`](../packages/session/working-directory) |
|
||||
|
||||
+114
-102
@@ -9,11 +9,11 @@
|
||||
en: 1387c4505dde2faf
|
||||
zh: 48570fa1c13d6910
|
||||
/session-persistence-event-catalog/persistence-type-fingerprints:
|
||||
en: 5cdccb41a61852df
|
||||
zh: 043191ec758a4baa
|
||||
en: 3de1bc82a91b1fda
|
||||
zh: e4268205f18b81e8
|
||||
/session-persistence-event-catalog/event-envelope:
|
||||
en: 189352d7a3bba620
|
||||
zh: 5361f42035034672
|
||||
en: 5cae0233560db4d6
|
||||
zh: c8f5efc48be52095
|
||||
/session-persistence-event-catalog/events:
|
||||
en: f4776ba3d0fd53ce
|
||||
zh: e86769f50a69055a
|
||||
@@ -45,11 +45,11 @@
|
||||
en: 44426b6cd0dc01cf
|
||||
zh: 44426b6cd0dc01cf
|
||||
/session-persistence-event-catalog/events/assistant/assistant-attempt-log-only:
|
||||
en: f330b2521ca12383
|
||||
zh: cdc6912a9244677d
|
||||
en: 70e451c323143cc6
|
||||
zh: da3d9431dcdf6f72
|
||||
/session-persistence-event-catalog/events/assistant/assistant-message-surface:
|
||||
en: 95916897e677eee6
|
||||
zh: e1ea8b17e5af9f35
|
||||
en: 20a219d6bec394b5
|
||||
zh: 8e736cc1a9cb91eb
|
||||
/session-persistence-event-catalog/events/command:
|
||||
en: 2cecb5b0ee955732
|
||||
zh: 2cecb5b0ee955732
|
||||
@@ -84,8 +84,8 @@
|
||||
en: 3344204b1858edb1
|
||||
zh: 3344204b1858edb1
|
||||
/session-persistence-event-catalog/events/developer/developer-message-surface:
|
||||
en: fd716cfc669a05a0
|
||||
zh: 8693a334958ab3cf
|
||||
en: 9848410ddecc26b3
|
||||
zh: ace06ccc8bc13ff2
|
||||
/session-persistence-event-catalog/events/feedback:
|
||||
en: f50dbac6867fa64d
|
||||
zh: f50dbac6867fa64d
|
||||
@@ -159,11 +159,11 @@
|
||||
en: a8df82440ebdf5f8
|
||||
zh: a8df82440ebdf5f8
|
||||
/session-persistence-event-catalog/events/request/request-context-log-only:
|
||||
en: 22abf9a3f69d498f
|
||||
zh: 94055a136b641207
|
||||
en: 1a3b4a851c4fcd5f
|
||||
zh: 6b04d16c3b887bb9
|
||||
/session-persistence-event-catalog/events/request/request-header-log-only:
|
||||
en: 6c506b420662b60e
|
||||
zh: 823513802c2cc394
|
||||
en: 76b36e4dd1ddbbb9
|
||||
zh: fd33cc82251a53e1
|
||||
/session-persistence-event-catalog/events/sandbox:
|
||||
en: ec841ab8439335b0
|
||||
zh: ec841ab8439335b0
|
||||
@@ -180,8 +180,8 @@
|
||||
en: a1ac8f2660a4f61e
|
||||
zh: a1ac8f2660a4f61e
|
||||
/session-persistence-event-catalog/events/session/session-end-seed-log-only:
|
||||
en: 20645a60e921f012
|
||||
zh: 7141cafe3a0e71d7
|
||||
en: 0ba9c67eb5a991ed
|
||||
zh: 9500b1e7ef982308
|
||||
/session-persistence-event-catalog/events/session/session-title-log-only:
|
||||
en: 5775e52a72c0ce94
|
||||
zh: fa211a35b4660c10
|
||||
@@ -198,11 +198,11 @@
|
||||
en: bd0dcbbc352b771a
|
||||
zh: bd0dcbbc352b771a
|
||||
/session-persistence-event-catalog/events/step/step-end-log-only:
|
||||
en: b30d8571ba611386
|
||||
zh: 42e45b49142c306c
|
||||
en: ce128e6086059525
|
||||
zh: edcac51682c1b053
|
||||
/session-persistence-event-catalog/events/step/step-start-log-only:
|
||||
en: 161a661514649037
|
||||
zh: 5a2e3ec5af378746
|
||||
en: 1fea44306f58917d
|
||||
zh: 299f4c25c8f81df5
|
||||
/session-persistence-event-catalog/events/subagent:
|
||||
en: 9630752e97ddbfbc
|
||||
zh: 9630752e97ddbfbc
|
||||
@@ -219,8 +219,8 @@
|
||||
en: 8cac41d2fb575975
|
||||
zh: 8cac41d2fb575975
|
||||
/session-persistence-event-catalog/events/system/system-message-surface:
|
||||
en: f08085060f967358
|
||||
zh: 4d77a8636d9bfef5
|
||||
en: 0884bfe2040c0fd1
|
||||
zh: 0585042a60f95b6e
|
||||
/session-persistence-event-catalog/events/team:
|
||||
en: a640800a38b3c874
|
||||
zh: a640800a38b3c874
|
||||
@@ -249,8 +249,8 @@
|
||||
en: 28a24430609494b2
|
||||
zh: 28a24430609494b2
|
||||
/session-persistence-event-catalog/events/tool/tool-call-log-only:
|
||||
en: 2edbe249bcd484fc
|
||||
zh: fa838ad8325507b4
|
||||
en: 1a037457c37eee87
|
||||
zh: 83b4ecf3a566010c
|
||||
/session-persistence-event-catalog/events/tool/tool-ptc-dispatch-log-only:
|
||||
en: a62b38c00afed655
|
||||
zh: 793bef93e856eafa
|
||||
@@ -258,8 +258,8 @@
|
||||
en: da841b1ed3b22c87
|
||||
zh: 4c9a4d4bc5bd76b6
|
||||
/session-persistence-event-catalog/events/tool/tool-result-surface:
|
||||
en: e5fdf9592ffa86b4
|
||||
zh: 7455727a8f208a1c
|
||||
en: fab9aa908584968a
|
||||
zh: 689883ffd34869e1
|
||||
/session-persistence-event-catalog/events/tool-workflow:
|
||||
en: 1eac7deac6af15f3
|
||||
zh: 1eac7deac6af15f3
|
||||
@@ -279,17 +279,17 @@
|
||||
en: d7e8c999a0851a0c
|
||||
zh: d7e8c999a0851a0c
|
||||
/session-persistence-event-catalog/events/turn/turn-end-log-only:
|
||||
en: 7d5bacee7392ed18
|
||||
zh: 65b8eb8ab9b10ccd
|
||||
en: 28b8acea9c91a086
|
||||
zh: 23cbafaa71616f65
|
||||
/session-persistence-event-catalog/events/turn/turn-start-log-only:
|
||||
en: 1b5d3369f6178575
|
||||
zh: 34550bedca73336a
|
||||
en: 40e4e52039a55f2b
|
||||
zh: fd077e5f7ee6dfb5
|
||||
/session-persistence-event-catalog/events/user:
|
||||
en: d864a88c03e8971c
|
||||
zh: d864a88c03e8971c
|
||||
/session-persistence-event-catalog/events/user/user-message-surface:
|
||||
en: 836d2e0de5f33816
|
||||
zh: 67055e83e820f5f5
|
||||
en: d2ac94d562647f49
|
||||
zh: 611ddfd797747327
|
||||
/session-persistence-event-catalog/events/web:
|
||||
en: d278748103cf1640
|
||||
zh: d278748103cf1640
|
||||
@@ -300,14 +300,20 @@
|
||||
en: e8dd0cebbb930eb7
|
||||
zh: e8dd0cebbb930eb7
|
||||
/session-persistence-event-catalog/events/working-directory/working-directory-change-log-only:
|
||||
en: bf12683fa0fe3dfa
|
||||
zh: 79a678a53cee33b9
|
||||
en: 361780c2afc0b56f
|
||||
zh: 53c14164db8772bb
|
||||
/session-persistence-event-catalog/events/workspace:
|
||||
en: 63ee1a85e4b59ae3
|
||||
zh: 63ee1a85e4b59ae3
|
||||
/session-persistence-event-catalog/events/workspace/workspace-changes-log-only:
|
||||
en: ee6b592f9e2193a7
|
||||
zh: 7a7a69ae52aa714a
|
||||
/session-persistence-event-catalog/events/workspace-root:
|
||||
en: e15e7133290b732a
|
||||
zh: e15e7133290b732a
|
||||
/session-persistence-event-catalog/events/workspace-root/workspace-root-change-log-only:
|
||||
en: 2a92a2732bc32a7c
|
||||
zh: 5635944a9ce51002
|
||||
/session-persistence-event-catalog/resolved-persistence-types:
|
||||
en: 3493ecf0993e5397
|
||||
zh: ec95688f593a4ed4
|
||||
@@ -954,8 +960,11 @@
|
||||
en: 6aabd13040c9e590
|
||||
zh: 6aabd13040c9e590
|
||||
/session-persistence-event-catalog/resolved-persistence-types/working-directory-change:
|
||||
en: 8fe8f07c8548191d
|
||||
zh: 8fe8f07c8548191d
|
||||
en: 1cbf1d52b9dab6bc
|
||||
zh: 1cbf1d52b9dab6bc
|
||||
/session-persistence-event-catalog/resolved-persistence-types/workspace-root-change:
|
||||
en: 569703026570b23e
|
||||
zh: 569703026570b23e
|
||||
/session-persistence-event-catalog/resolved-persistence-types/workspace-write:
|
||||
en: a529f422b9889f7d
|
||||
zh: a529f422b9889f7d
|
||||
@@ -1005,8 +1014,8 @@
|
||||
en: e393deed01de3665
|
||||
zh: 0fa98ad93c22ce79
|
||||
/session-persistence-event-catalog/resolved-persistence-types/commandsource:
|
||||
en: 7130f07ad7ae38b4
|
||||
zh: 18a5ab4fbd7c767d
|
||||
en: eb46c8a1fdacd013
|
||||
zh: 7e331ff3531407d2
|
||||
/session-persistence-event-catalog/resolved-persistence-types/compactioncheckpointsource:
|
||||
en: 0795c7736e079322
|
||||
zh: b95c1b8790851588
|
||||
@@ -1035,8 +1044,8 @@
|
||||
en: a3f7241ba795de1e
|
||||
zh: 084d2dd90601b2b3
|
||||
/session-persistence-event-catalog/resolved-persistence-types/epochheader:
|
||||
en: 3bdc8ecd0bdf0c9c
|
||||
zh: 0fe5b75c174ebab4
|
||||
en: fa7fd1a765a494e2
|
||||
zh: fd8e6fdd37d986cf
|
||||
/session-persistence-event-catalog/resolved-persistence-types/everyscheduledispatchchange:
|
||||
en: cbd5eb354b025918
|
||||
zh: 953ffea4b40b88cf
|
||||
@@ -1200,11 +1209,11 @@
|
||||
en: 34cbedee7bc95921
|
||||
zh: f7deeddb8d60152a
|
||||
/session-persistence-event-catalog/resolved-persistence-types/requestcontext:
|
||||
en: 544039047a28b6bb
|
||||
zh: c691f0bb1e23db08
|
||||
en: 0c0be85a29481127
|
||||
zh: 0450c89024cfac79
|
||||
/session-persistence-event-catalog/resolved-persistence-types/requestheaderreason:
|
||||
en: 1f691c223f54ab2c
|
||||
zh: f88fef3ee9745c91
|
||||
en: 3f432962f5b2de08
|
||||
zh: 7094578e63835c7f
|
||||
/session-persistence-event-catalog/resolved-persistence-types/sandboxmode:
|
||||
en: 5adc2bf6745ccc67
|
||||
zh: 566cb9aaa4a177c9
|
||||
@@ -1260,8 +1269,8 @@
|
||||
en: e6d9113dc09f4098
|
||||
zh: 3426e4f2f3cc5612
|
||||
/session-persistence-event-catalog/resolved-persistence-types/surfaceop:
|
||||
en: 737806b6ec54263d
|
||||
zh: b4e44293950ddf8c
|
||||
en: 26f3d59c80d9abbe
|
||||
zh: 90a9ba58ff06d197
|
||||
/session-persistence-event-catalog/resolved-persistence-types/systemmessage:
|
||||
en: f689bc49f7561a5d
|
||||
zh: c5eeb6590dcdf42d
|
||||
@@ -1335,11 +1344,11 @@
|
||||
en: 54090e169899c573
|
||||
zh: 530ea8d0d0f8cf68
|
||||
/session-persistence-event-catalog/resolved-persistence-types/turnendcancelcause:
|
||||
en: 778debd61e0284a2
|
||||
zh: 2cc82ad9e80f18b1
|
||||
en: 73fde4d98617b19f
|
||||
zh: adae612c15a67764
|
||||
/session-persistence-event-catalog/resolved-persistence-types/turnendreason:
|
||||
en: 46ab4e88892a5a5f
|
||||
zh: f1b8b47ab29fd9f6
|
||||
en: 8b69c6e26f5843ad
|
||||
zh: 7515d5a3f2419709
|
||||
/session-persistence-event-catalog/resolved-persistence-types/usermessage:
|
||||
en: da2ff374580fcaa8
|
||||
zh: b92e64d68122c337
|
||||
@@ -1440,8 +1449,8 @@
|
||||
en: a117573a5d58cb3c
|
||||
zh: d5ad59e17a3a815d
|
||||
/session-persistence-event-catalog/resolved-persistence-types/arguments-callid-name-step:
|
||||
en: 1cd530a4f45fcb4f
|
||||
zh: 0bf7c0f53d10a5ec
|
||||
en: 0762eb6df9be91ea
|
||||
zh: 06f6c1641ab6e0a2
|
||||
/session-persistence-event-catalog/resolved-persistence-types/callid-files-turn:
|
||||
en: 5f4d3f66ed86a14d
|
||||
zh: 7c729360fa1279e6
|
||||
@@ -1479,8 +1488,8 @@
|
||||
en: a1f188c9058cf621
|
||||
zh: eb43c0f045fb9afb
|
||||
/session-persistence-event-catalog/resolved-persistence-types/code-name-reason:
|
||||
en: 25df2af19bc9c46d
|
||||
zh: ebb6ecbeee25c9be
|
||||
en: 7ae42d830651c83c
|
||||
zh: 1387de7f803d9f08
|
||||
/session-persistence-event-catalog/resolved-persistence-types/commandid-kind-sourceeventseq-text:
|
||||
en: 87b03e1c73d2a326
|
||||
zh: d7b9f06863cad891
|
||||
@@ -1497,8 +1506,8 @@
|
||||
en: bef51e0442ebb903
|
||||
zh: 240ebeb160533d8c
|
||||
/session-persistence-event-catalog/resolved-persistence-types/cwd:
|
||||
en: 166c1be5f6237f1b
|
||||
zh: 5002d35a2ec5fb1e
|
||||
en: dfc595f52f794ea2
|
||||
zh: ae9754ae00a97b5f
|
||||
/session-persistence-event-catalog/resolved-persistence-types/decision-durationms-exitcode-handlerid:
|
||||
en: a99ac57bbec0370f
|
||||
zh: 9073329e324a66e0
|
||||
@@ -1527,14 +1536,14 @@
|
||||
en: 4b7a8793663d3fef
|
||||
zh: 249459c825d330c3
|
||||
/session-persistence-event-catalog/resolved-persistence-types/endseq-op-startseq:
|
||||
en: 766772dfbbb2e164
|
||||
zh: 09973d26e68004cb
|
||||
en: 1b7de272fcc24627
|
||||
zh: 1464f7df891db98b
|
||||
/session-persistence-event-catalog/resolved-persistence-types/error-kind-error:
|
||||
en: e0833e1b1cdb29d0
|
||||
zh: 6244880c79509016
|
||||
en: 1abf274246674789
|
||||
zh: 3d8c38c4240f7e3c
|
||||
/session-persistence-event-catalog/resolved-persistence-types/error-message-meta-step:
|
||||
en: d019b2909673d2a7
|
||||
zh: cc16e9c055ea603d
|
||||
en: 20db789d8ae2101c
|
||||
zh: 77e21bc4380a7033
|
||||
/session-persistence-event-catalog/resolved-persistence-types/failure-kind-aborted:
|
||||
en: 7dddcbc923491531
|
||||
zh: bbdaea7d433b6fda
|
||||
@@ -1542,11 +1551,11 @@
|
||||
en: 4cb1c48095df98dc
|
||||
zh: 5a03e44761af559e
|
||||
/session-persistence-event-catalog/resolved-persistence-types/header-reason-startsseries:
|
||||
en: 2a975e2830957edd
|
||||
zh: ef0b0526e955dd2e
|
||||
en: 025df3bb1bbc5369
|
||||
zh: 52015f4decd2f1e5
|
||||
/session-persistence-event-catalog/resolved-persistence-types/headerseq-message-step-turn:
|
||||
en: 3745d2b89ee9274a
|
||||
zh: 23591d68edf4d4eb
|
||||
en: e06f7b64a1665de2
|
||||
zh: cc2280a56d63cb50
|
||||
/session-persistence-event-catalog/resolved-persistence-types/height-width:
|
||||
en: a5df50710083ac25
|
||||
zh: aad3ccf6f6de70e4
|
||||
@@ -1563,17 +1572,17 @@
|
||||
en: 41f73c58a77dfa28
|
||||
zh: af77f4aee3cb4a40
|
||||
/session-persistence-event-catalog/resolved-persistence-types/inherited:
|
||||
en: aebc8901b0d6f2d9
|
||||
zh: 05afaa245221968c
|
||||
en: 828241cf325d2bec
|
||||
zh: f53b66d8e6e8a41c
|
||||
/session-persistence-event-catalog/resolved-persistence-types/inserted-outcome-removedcount-start:
|
||||
en: cdd4832101b8d5c1
|
||||
zh: a98f9c6cb6701d78
|
||||
/session-persistence-event-catalog/resolved-persistence-types/interrupted-message-step-stream:
|
||||
en: 8e86cd838e3e4a49
|
||||
zh: f5fec2a8adf1f3cc
|
||||
en: 35e45d462a41e963
|
||||
zh: 89953d22ddada652
|
||||
/session-persistence-event-catalog/resolved-persistence-types/kind-aborted-reason:
|
||||
en: d2b0ef9a4e2b9be5
|
||||
zh: 44ad13fbbf836ac7
|
||||
en: ee4118da9df6d1e5
|
||||
zh: 0c6ef48c9a1f8ed2
|
||||
/session-persistence-event-catalog/resolved-persistence-types/kind-action-cards:
|
||||
en: 8d057f0bd0b88fc6
|
||||
zh: 500d1e3d54e6d7c4
|
||||
@@ -1596,17 +1605,17 @@
|
||||
en: 4e030b06ef900819
|
||||
zh: 27532bbabe118206
|
||||
/session-persistence-event-catalog/resolved-persistence-types/kind-blocked:
|
||||
en: 9db831e991ef17ce
|
||||
zh: 332002f65d191b68
|
||||
en: 7f9291c13a4712a3
|
||||
zh: 760647b451762933
|
||||
/session-persistence-event-catalog/resolved-persistence-types/kind-completed:
|
||||
en: 9affe5d5dac75c57
|
||||
zh: 8db62dcb41e804c8
|
||||
en: 816fb33ba156fb05
|
||||
zh: 313418efece50a66
|
||||
/session-persistence-event-catalog/resolved-persistence-types/kind-cordis-host-runner:
|
||||
en: e1fa1148ddbc8aa5
|
||||
zh: 1b8e71ec4dd6cbb3
|
||||
/session-persistence-event-catalog/resolved-persistence-types/kind-disposed:
|
||||
en: 9a3ce668c21d6c90
|
||||
zh: f661c7ce62c44a60
|
||||
en: e373f887d953f75f
|
||||
zh: 61fe50b74eaf2040
|
||||
/session-persistence-event-catalog/resolved-persistence-types/kind-dsh-session-title-llm:
|
||||
en: 428529e5dedc761d
|
||||
zh: 3ca0b54c9c521ea0
|
||||
@@ -1632,11 +1641,11 @@
|
||||
en: 78e34e6d0d70339e
|
||||
zh: 072127e40cfb9686
|
||||
/session-persistence-event-catalog/resolved-persistence-types/kind-forked:
|
||||
en: 4663f6c1a2634822
|
||||
zh: 3a2e4f61195759a0
|
||||
en: 689cece3650ebf4f
|
||||
zh: 2cc6ee80b8b74bf0
|
||||
/session-persistence-event-catalog/resolved-persistence-types/kind-hook:
|
||||
en: 669685ab52bb7b68
|
||||
zh: 94325f99ba96dec5
|
||||
en: 4b6be5e205445eab
|
||||
zh: 1f4f714005b9a16d
|
||||
/session-persistence-event-catalog/resolved-persistence-types/kind-hooks-claude-code:
|
||||
en: 5eb383a67f11ac4d
|
||||
zh: 1943747cb4995dbc
|
||||
@@ -1680,14 +1689,14 @@
|
||||
en: a8a338be3b91008f
|
||||
zh: c7632c42c869c2f6
|
||||
/session-persistence-event-catalog/resolved-persistence-types/kind-interrupted:
|
||||
en: 8f5585c1e90d6ca3
|
||||
zh: 78329cf995882344
|
||||
en: eb4d15b055369bde
|
||||
zh: d8d5179b0456b3d2
|
||||
/session-persistence-event-catalog/resolved-persistence-types/kind-legacy:
|
||||
en: 673110c18ee48238
|
||||
zh: e8dd81d68e1a4ee0
|
||||
en: b2bfee467051409f
|
||||
zh: 295256162fd1fad8
|
||||
/session-persistence-event-catalog/resolved-persistence-types/kind-max-tokens:
|
||||
en: 7092c1681af1dacb
|
||||
zh: a0c5505f839592ed
|
||||
en: 246e204fa781fe3b
|
||||
zh: 74e09927e5d28677
|
||||
/session-persistence-event-catalog/resolved-persistence-types/kind-model-selection:
|
||||
en: a5165486dca91116
|
||||
zh: b7051ca8167806ef
|
||||
@@ -1713,8 +1722,8 @@
|
||||
en: 686b6465397b96c2
|
||||
zh: c21c1cc3c9df4fd8
|
||||
/session-persistence-event-catalog/resolved-persistence-types/kind-parent:
|
||||
en: 5ab43c283829de53
|
||||
zh: 5ed4e90922a3a88b
|
||||
en: 35fd57f6321d17ea
|
||||
zh: ccd26ed30cf6815d
|
||||
/session-persistence-event-catalog/resolved-persistence-types/kind-plan-mode:
|
||||
en: 9758304800b717df
|
||||
zh: dccf14f3a5d0d861
|
||||
@@ -1944,8 +1953,8 @@
|
||||
en: 33c28b8c72b73604
|
||||
zh: 8b606ec7196176c8
|
||||
/session-persistence-event-catalog/resolved-persistence-types/message-step-turn:
|
||||
en: 86fe91fe83eeb08a
|
||||
zh: 2ebf2f1904829753
|
||||
en: 9573c6e91d1e3f53
|
||||
zh: ddd2b6dab3dec069
|
||||
/session-persistence-event-catalog/resolved-persistence-types/message-teamid-version:
|
||||
en: 6eab6fceb441352e
|
||||
zh: 353625684fd63022
|
||||
@@ -1962,8 +1971,8 @@
|
||||
en: 42a6a0b07a66ad45
|
||||
zh: eaecef11c5b3ac02
|
||||
/session-persistence-event-catalog/resolved-persistence-types/reason-turn:
|
||||
en: b8d80b4b1e6441ad
|
||||
zh: d5c52e1bfe560297
|
||||
en: 44759ae067b63ef5
|
||||
zh: f2d101c41110eee6
|
||||
/session-persistence-event-catalog/resolved-persistence-types/role-user:
|
||||
en: d05bb42138160fbd
|
||||
zh: 9a17d062eefa48a3
|
||||
@@ -1974,11 +1983,11 @@
|
||||
en: 7a2ab7b62244f43b
|
||||
zh: 1084e3f8876feebc
|
||||
/session-persistence-event-catalog/resolved-persistence-types/step-stream-turn:
|
||||
en: 59f11c6d124335cb
|
||||
zh: 5bbdd6c88612fcff
|
||||
en: 034511416374bd90
|
||||
zh: baa4945de30bb0f5
|
||||
/session-persistence-event-catalog/resolved-persistence-types/step-turn:
|
||||
en: 8f9e774f89087efa
|
||||
zh: 72474e7e556e2469
|
||||
en: 6b52ead32f8457f6
|
||||
zh: db9f15511b123e7d
|
||||
/session-persistence-event-catalog/resolved-persistence-types/targets:
|
||||
en: 65018960b97dbaab
|
||||
zh: fb48ef7cb33b68aa
|
||||
@@ -1989,8 +1998,8 @@
|
||||
en: 8ab873d30e062fd5
|
||||
zh: a138832c6e299ebb
|
||||
/session-persistence-event-catalog/resolved-persistence-types/turn:
|
||||
en: 374b8adee8d571fa
|
||||
zh: b21057efc58e6490
|
||||
en: e0d6826170f96136
|
||||
zh: c684a666de7cee7c
|
||||
/session-persistence-event-catalog/resolved-persistence-types/type-agent-preset-selected:
|
||||
en: 3ffd4ea16273b2e2
|
||||
zh: 0f8cc2f25c129db2
|
||||
@@ -2214,8 +2223,11 @@
|
||||
en: 557e9462b176c4a3
|
||||
zh: 4dddcab9de61639f
|
||||
/session-persistence-event-catalog/resolved-persistence-types/type-working-directory-change:
|
||||
en: 2fcb09b83898ee18
|
||||
zh: 44c7f987f0bf3588
|
||||
en: cb62664b95e1e58d
|
||||
zh: f7facc1f0bfb289e
|
||||
/session-persistence-event-catalog/resolved-persistence-types/type-workspace-root-change:
|
||||
en: a98e8477fec79a2c
|
||||
zh: 99ead59fdda19b48
|
||||
/session-persistence-event-catalog/resolved-persistence-types/type-workspace-changes:
|
||||
en: 411ecd58c4405c8a
|
||||
zh: e53709d457a1f118
|
||||
|
||||
+97
-50
@@ -84,6 +84,7 @@ The [format references](persistence-changes/historical-formats/README.md) cover
|
||||
| `event:user/message` | event | `fb6a6e338625067ac582f55dde412a583040cd738bb8fc6820cb0b941c59f05a` | [`{ type: "user/message" }`](#persistence-type-sha256-fb6a6e338625067ac582f55dde412a583040cd738bb8fc6820cb0b941c59f05a) |
|
||||
| `event:web/deepseek-search-llm-request` | event | `0c556c9b9f2a96238a6b9bbb99e748206cbff2ed6203041c9571f04ae5802f52` | [`{ type: "web/deepseek-search-llm-request" }`](#persistence-type-sha256-0c556c9b9f2a96238a6b9bbb99e748206cbff2ed6203041c9571f04ae5802f52) |
|
||||
| `event:working-directory/change` | event | `124aa62078ca3311353b39cc3bf6c75da281338be6bbf672f8b361d828cddca3` | [`{ type: "working-directory/change" }`](#persistence-type-sha256-124aa62078ca3311353b39cc3bf6c75da281338be6bbf672f8b361d828cddca3) |
|
||||
| `event:workspace-root/change` | event | `025f11632cd02aaecc23a46c3b5bf43b9009d88293ed9b35ccbc1139d73334dc` | [`{ type: "workspace-root/change" }`](#persistence-type-sha256-025f11632cd02aaecc23a46c3b5bf43b9009d88293ed9b35ccbc1139d73334dc) |
|
||||
| `event:workspace/changes` | event | `e308ccf867a5398e316e0af8cb6ce238a8d33a63b9b384c8250a686786285f72` | [`{ type: "workspace/changes" }`](#persistence-type-sha256-e308ccf867a5398e316e0af8cb6ce238a8d33a63b9b384c8250a686786285f72) |
|
||||
|
||||
## Event envelope
|
||||
@@ -161,7 +162,7 @@ export type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
||||
}[T]
|
||||
```
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:439`](../packages/core/session/src/types.ts) · [`packages/core/session/src/types.ts:447`](../packages/core/session/src/types.ts) · [`packages/core/session/src/types.ts:470`](../packages/core/session/src/types.ts) · [`packages/core/session/src/types.ts:506`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:443`](../packages/core/session/src/types.ts) · [`packages/core/session/src/types.ts:451`](../packages/core/session/src/types.ts) · [`packages/core/session/src/types.ts:474`](../packages/core/session/src/types.ts) · [`packages/core/session/src/types.ts:510`](../packages/core/session/src/types.ts)
|
||||
|
||||
## Events
|
||||
|
||||
@@ -290,7 +291,7 @@ Source: [`packages/interaction/user-approval/src/index.ts:41`](../packages/inter
|
||||
'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[] }
|
||||
```
|
||||
|
||||
Source: [`packages/core/session/src/types.ts:363`](../packages/core/session/src/types.ts)
|
||||
Source: [`packages/core/session/src/types.ts:367`](../packages/core/session/src/types.ts)
|
||||
|
||||
<a id="assistantmessage--surface"></a>
|
||||
|
||||
@@ -320,7 +321,7 @@ Source: [`packages/core/session/src/types.ts:363`](../packages/core/session/src/
|
||||
|
||||
Types: [TokenUsage](subsystems/llm-streaming.md)
|
||||
|
||||
Source: [`packages/core/session/src/types.ts:349`](../packages/core/session/src/types.ts)
|
||||
Source: [`packages/core/session/src/types.ts:353`](../packages/core/session/src/types.ts)
|
||||
|
||||
### `command/*`
|
||||
|
||||
@@ -508,7 +509,7 @@ Source: [`packages/deliverables/tool-present/src/types.ts:15`](../packages/deliv
|
||||
}
|
||||
```
|
||||
|
||||
Source: [`packages/core/session/src/types.ts:317`](../packages/core/session/src/types.ts)
|
||||
Source: [`packages/core/session/src/types.ts:321`](../packages/core/session/src/types.ts)
|
||||
|
||||
### `feedback/*`
|
||||
|
||||
@@ -753,7 +754,7 @@ Source: [`packages/plan/plan-mode/src/index.ts:55`](../packages/plan/plan-mode/s
|
||||
'request/context': RequestContext
|
||||
```
|
||||
|
||||
Source: [`packages/core/session/src/types.ts:410`](../packages/core/session/src/types.ts)
|
||||
Source: [`packages/core/session/src/types.ts:414`](../packages/core/session/src/types.ts)
|
||||
|
||||
<a id="requestheader--log-only"></a>
|
||||
|
||||
@@ -772,7 +773,7 @@ Source: [`packages/core/session/src/types.ts:410`](../packages/core/session/src/
|
||||
}
|
||||
```
|
||||
|
||||
Source: [`packages/core/session/src/types.ts:398`](../packages/core/session/src/types.ts)
|
||||
Source: [`packages/core/session/src/types.ts:402`](../packages/core/session/src/types.ts)
|
||||
|
||||
### `sandbox/*`
|
||||
|
||||
@@ -849,7 +850,7 @@ Source: [`packages/schedule/schedule/src/types.ts:625`](../packages/schedule/sch
|
||||
'session/end-seed': { inherited?: true }
|
||||
```
|
||||
|
||||
Source: [`packages/core/session/src/types.ts:435`](../packages/core/session/src/types.ts)
|
||||
Source: [`packages/core/session/src/types.ts:439`](../packages/core/session/src/types.ts)
|
||||
|
||||
<a id="sessiontitle--log-only"></a>
|
||||
|
||||
@@ -911,7 +912,7 @@ Source: [`packages/session/session-log-deepseek/src/types.ts:96`](../packages/se
|
||||
'step/end': { turn: number; step: number }
|
||||
```
|
||||
|
||||
Source: [`packages/core/session/src/types.ts:307`](../packages/core/session/src/types.ts)
|
||||
Source: [`packages/core/session/src/types.ts:311`](../packages/core/session/src/types.ts)
|
||||
|
||||
<a id="stepstart--log-only"></a>
|
||||
|
||||
@@ -922,7 +923,7 @@ Source: [`packages/core/session/src/types.ts:307`](../packages/core/session/src/
|
||||
'step/start': { turn: number; step: number }
|
||||
```
|
||||
|
||||
Source: [`packages/core/session/src/types.ts:305`](../packages/core/session/src/types.ts)
|
||||
Source: [`packages/core/session/src/types.ts:309`](../packages/core/session/src/types.ts)
|
||||
|
||||
### `subagent/*`
|
||||
|
||||
@@ -999,7 +1000,7 @@ Source: [`packages/subagent/tool-subagent/src/model-selection-state.ts:12`](../p
|
||||
'system/message': { turn: number; step: number; message: SystemMessage }
|
||||
```
|
||||
|
||||
Source: [`packages/core/session/src/types.ts:338`](../packages/core/session/src/types.ts)
|
||||
Source: [`packages/core/session/src/types.ts:342`](../packages/core/session/src/types.ts)
|
||||
|
||||
### `team/*`
|
||||
|
||||
@@ -1103,7 +1104,7 @@ Source: [`packages/todo/tool-todo/src/types.ts:33`](../packages/todo/tool-todo/s
|
||||
|
||||
Types: [ToolCallId](subsystems/core.md)
|
||||
|
||||
Source: [`packages/core/session/src/types.ts:369`](../packages/core/session/src/types.ts)
|
||||
Source: [`packages/core/session/src/types.ts:373`](../packages/core/session/src/types.ts)
|
||||
|
||||
<a id="toolptc-dispatch--log-only"></a>
|
||||
|
||||
@@ -1184,7 +1185,7 @@ Source: [`packages/core/tool-executor-ptc/src/types.ts:45`](../packages/core/too
|
||||
}
|
||||
```
|
||||
|
||||
Source: [`packages/core/session/src/types.ts:383`](../packages/core/session/src/types.ts)
|
||||
Source: [`packages/core/session/src/types.ts:387`](../packages/core/session/src/types.ts)
|
||||
|
||||
### `tool-workflow/*`
|
||||
|
||||
@@ -1264,7 +1265,7 @@ Source: [`packages/workflow/tool-workflow/src/types.ts:47`](../packages/workflow
|
||||
|
||||
Types: [TurnEndReason](subsystems/session.md)
|
||||
|
||||
Source: [`packages/core/session/src/types.ts:303`](../packages/core/session/src/types.ts)
|
||||
Source: [`packages/core/session/src/types.ts:307`](../packages/core/session/src/types.ts)
|
||||
|
||||
<a id="turnstart--log-only"></a>
|
||||
|
||||
@@ -1280,7 +1281,7 @@ Source: [`packages/core/session/src/types.ts:303`](../packages/core/session/src/
|
||||
'turn/start': { turn: number }
|
||||
```
|
||||
|
||||
Source: [`packages/core/session/src/types.ts:294`](../packages/core/session/src/types.ts)
|
||||
Source: [`packages/core/session/src/types.ts:298`](../packages/core/session/src/types.ts)
|
||||
|
||||
### `user/*`
|
||||
|
||||
@@ -1299,7 +1300,7 @@ Source: [`packages/core/session/src/types.ts:294`](../packages/core/session/src/
|
||||
'user/message': UserMessage
|
||||
```
|
||||
|
||||
Source: [`packages/core/session/src/types.ts:315`](../packages/core/session/src/types.ts)
|
||||
Source: [`packages/core/session/src/types.ts:319`](../packages/core/session/src/types.ts)
|
||||
|
||||
### `web/*`
|
||||
|
||||
@@ -1321,14 +1322,20 @@ Source: [`packages/web/web-search-deepseek/src/provider.ts:90`](../packages/web/
|
||||
#### `working-directory/change` — log-only
|
||||
|
||||
```ts persistence-catalog
|
||||
/** Effective working directory; the immutable Session header retains the original project. */
|
||||
/**
|
||||
* Directory change recorded by releases whose model could move the directory. Readers ignore it: a
|
||||
* Session that holds one resumes in its original project, or in the directory of its last
|
||||
* `workspace-root/change`.
|
||||
* @deprecated No writer records this event. `WorkingDirectoryService.set` records
|
||||
* `workspace-root/change`.
|
||||
*/
|
||||
'working-directory/change': {
|
||||
/** Absolute directory used by subsequent directory-based operations. */
|
||||
/** Absolute directory the Session worked in after the change. */
|
||||
cwd: string
|
||||
}
|
||||
```
|
||||
|
||||
Source: [`packages/session/working-directory/src/index.ts:56`](../packages/session/working-directory/src/index.ts)
|
||||
Source: [`packages/session/working-directory/src/index.ts:62`](../packages/session/working-directory/src/index.ts)
|
||||
|
||||
### `workspace/*`
|
||||
|
||||
@@ -1347,6 +1354,22 @@ Source: [`packages/session/working-directory/src/index.ts:56`](../packages/sessi
|
||||
|
||||
Source: [`packages/deliverables/workspace-changes/src/types.ts:106`](../packages/deliverables/workspace-changes/src/types.ts)
|
||||
|
||||
### `workspace-root/*`
|
||||
|
||||
<a id="workspace-rootchange--log-only"></a>
|
||||
|
||||
#### `workspace-root/change` — log-only
|
||||
|
||||
```ts persistence-catalog
|
||||
/** Host move of the Session's directory; the immutable Session header retains the original project. */
|
||||
'workspace-root/change': {
|
||||
/** Absolute directory the Session works in from this event on. */
|
||||
cwd: string
|
||||
}
|
||||
```
|
||||
|
||||
Source: [`packages/session/working-directory/src/index.ts:67`](../packages/session/working-directory/src/index.ts)
|
||||
|
||||
## Resolved persistence types
|
||||
|
||||
Each definition appears once. References preserve sharing and recursion; the digest beside a definition includes its complete reachable structure. Source names and locations identify its declarations but are excluded from its digest.
|
||||
@@ -3077,6 +3100,14 @@ SHA-256: `d4c799e3d51cae1040362ba4968efc484739e14416c9c1df20c2f108b4ef2eb5`
|
||||
|
||||
`"working-directory/change"`
|
||||
|
||||
<a id="persistence-type-sha256-5f22f22ce033e6ce2913445ff1fd80e5dab629a9ac9c19bcffdde8a895b163dd"></a>
|
||||
|
||||
### `"workspace-root/change"`
|
||||
|
||||
SHA-256: `5f22f22ce033e6ce2913445ff1fd80e5dab629a9ac9c19bcffdde8a895b163dd`
|
||||
|
||||
`"workspace-root/change"`
|
||||
|
||||
<a id="persistence-type-sha256-a3edd1efd1fef21b72c55e213c8a8b24196b091abde2b89db52be0b2aaae3cfa"></a>
|
||||
|
||||
### `"workspace-write"`
|
||||
@@ -3290,7 +3321,7 @@ Array of [`AssistantStreamRecord`](#persistence-type-sha256-33341aac09312300de5a
|
||||
|
||||
SHA-256: `ada310bf0bdb8fed51f3b56ea63f6ea6b18bbd587f04fccb63a14ab0b2a24e05`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:195`](../packages/core/session/src/types.ts) · [`packages/interaction/commands/src/types.ts:75`](../packages/interaction/commands/src/types.ts) · [`packages/interaction/commands/src/types.ts:79`](../packages/interaction/commands/src/types.ts) · [`packages/llm/llm/src/message.ts:110`](../packages/llm/llm/src/message.ts) · [`packages/session/session-title/src/types.ts:35`](../packages/session/session-title/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:199`](../packages/core/session/src/types.ts) · [`packages/interaction/commands/src/types.ts:75`](../packages/interaction/commands/src/types.ts) · [`packages/interaction/commands/src/types.ts:79`](../packages/interaction/commands/src/types.ts) · [`packages/llm/llm/src/message.ts:110`](../packages/llm/llm/src/message.ts) · [`packages/session/session-title/src/types.ts:35`](../packages/session/session-title/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -3466,7 +3497,7 @@ Attribution-only additions: `action-cards`, `tmux-context`, `user-question-reply
|
||||
|
||||
SHA-256: `9a930283b91d493d6347146f2475bb107294b379415ca02162354f46a64164f7`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:246`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:250`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -4589,7 +4620,7 @@ Sources: [`packages/llm/llm/src/types.ts:474`](../packages/llm/llm/src/types.ts)
|
||||
|
||||
SHA-256: `b158f3ff6923714807c0d73882f0b05dc87f8fa85c9e90814852d48bbc866081`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:260`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:264`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -4608,7 +4639,7 @@ Sources: [`packages/core/session/src/types.ts:260`](../packages/core/session/src
|
||||
|
||||
SHA-256: `530da6c0267813bb4511af72883cc518834e624e3b3220a7062955fd57a788a6`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:279`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:283`](../packages/core/session/src/types.ts)
|
||||
|
||||
One of:
|
||||
|
||||
@@ -4968,7 +4999,7 @@ Sources: [`packages/subagent/subagent/src/continuation-messages.ts:29`](../packa
|
||||
|
||||
SHA-256: `335e242de1fcc17b6ca920fc420d71bec2d76e53e37955c00948b65ab77f05c5`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:470`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:474`](../packages/core/session/src/types.ts)
|
||||
|
||||
One of:
|
||||
|
||||
@@ -5414,7 +5445,7 @@ Sources: [`packages/workflow/tool-workflow/src/types.ts:14`](../packages/workflo
|
||||
|
||||
SHA-256: `1f8c126cfab3df812cd115cfc23e3256f0fa2383400f4ce91ecad313577e59b0`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:201`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:205`](../packages/core/session/src/types.ts)
|
||||
|
||||
| kind | Form property | Other required fields | Full definition |
|
||||
|---|---|---|---|
|
||||
@@ -5434,7 +5465,7 @@ Sources: [`packages/core/session/src/types.ts:201`](../packages/core/session/src
|
||||
|
||||
SHA-256: `f1687f982fa3d41ef29e159feed154ecd13af4dd209acaee16038f223f2e9402`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:238`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:242`](../packages/core/session/src/types.ts)
|
||||
|
||||
| kind | Form property | Other required fields | Full definition |
|
||||
|---|---|---|---|
|
||||
@@ -5927,7 +5958,7 @@ Sources: [`packages/interaction/commands/src/types.ts:105`](../packages/interact
|
||||
|
||||
SHA-256: `e4c18e294232c3ba6c9f1999f168263cc55956147cfe4121720899be8e52edd1`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:369`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:373`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -6116,7 +6147,7 @@ SHA-256: `cbbe8377ee744964537dbafd83607219e58ba79a13f6db0d0645c7ad3d5e8a09`
|
||||
|
||||
SHA-256: `a81059ca06999da1e712414520c2c65e491d052fcf9640fae20aa38f0a5dc735`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:391`](../packages/core/session/src/types.ts) · [`packages/core/tool-executor-ptc/src/types.ts:27`](../packages/core/tool-executor-ptc/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:395`](../packages/core/session/src/types.ts) · [`packages/core/tool-executor-ptc/src/types.ts:27`](../packages/core/tool-executor-ptc/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -6215,7 +6246,7 @@ Sources: [`packages/compaction/compaction/src/types.ts:24`](../packages/compacti
|
||||
|
||||
SHA-256: `da60ed58a8fa23d7aa4920ab5c1f4e3d28109cb0797ef9e5c8b125721b847582`
|
||||
|
||||
Sources: [`packages/session/working-directory/src/index.ts:56`](../packages/session/working-directory/src/index.ts)
|
||||
Sources: [`packages/session/working-directory/src/index.ts:62`](../packages/session/working-directory/src/index.ts) · [`packages/session/working-directory/src/index.ts:67`](../packages/session/working-directory/src/index.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -6363,7 +6394,7 @@ Sources: [`packages/compaction/compaction/src/types.ts:38`](../packages/compacti
|
||||
|
||||
SHA-256: `bcf0caf62d964b2fcf5404bd5c909cfa9a21c3f3c96e6b7e36d9e33565223825`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:472`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:476`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -6377,7 +6408,7 @@ Sources: [`packages/core/session/src/types.ts:472`](../packages/core/session/src
|
||||
|
||||
SHA-256: `79650cfa10aa3c52440328d85e8a25f0ffadc8d7efd784e3c0819d8bb74a1985`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:218`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:222`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -6390,7 +6421,7 @@ Sources: [`packages/core/session/src/types.ts:218`](../packages/core/session/src
|
||||
|
||||
SHA-256: `5302e763151277614b97e77f00e3b326694c6c1247b916a20503c344dc970777`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:383`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:387`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -6432,7 +6463,7 @@ Sources: [`packages/llm/llm/src/types.ts:168`](../packages/llm/llm/src/types.ts)
|
||||
|
||||
SHA-256: `ad0c38a0adb82a94c925456df41586d9b5f9202fca18593eae2213d4445b4585`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:398`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:402`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -6446,7 +6477,7 @@ Sources: [`packages/core/session/src/types.ts:398`](../packages/core/session/src
|
||||
|
||||
SHA-256: `129f610271310df606674a5ce5c28b444bbf42c231b0f48ad26a0104ffeb6fde`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:317`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:321`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -6529,7 +6560,7 @@ SHA-256: `e3e77b26f0148755a505f5b8ea843a3be117827d4703bb5754d9dc8ddbef521f`
|
||||
|
||||
SHA-256: `17d1afb770d9941936130996da00dc86782cfef731d8d6526162c301256a4ac3`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:435`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:439`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -6557,7 +6588,7 @@ Sources: [`packages/core/agent/src/types.ts:110`](../packages/core/agent/src/typ
|
||||
|
||||
SHA-256: `1ccb56061942f5ccb0d30c9e4f2883b9d115ff906560029de637b61d3cde896d`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:349`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:353`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -6574,7 +6605,7 @@ Sources: [`packages/core/session/src/types.ts:349`](../packages/core/session/src
|
||||
|
||||
SHA-256: `0a30c3be336cdd4f8f34e66543a3d46d611c43986edd9b3ce6cbb9b721d3b5d3`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:209`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:213`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -6672,7 +6703,7 @@ SHA-256: `3247e566f4340029325b70e4366b56fa9719977f1e39033b769a2ec221ab22a9`
|
||||
|
||||
SHA-256: `023a355b2be0d688fb6e4df8388dadb942761d46cfe96d0f499aae9631a159d4`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:211`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:215`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -6684,7 +6715,7 @@ Sources: [`packages/core/session/src/types.ts:211`](../packages/core/session/src
|
||||
|
||||
SHA-256: `b6ef9c6210be8350cd465f485cf520031fffa6bf3809c61a1e713e834c5982d0`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:207`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:211`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -6708,7 +6739,7 @@ Sources: [`packages/extensions/cordis-host-runner/src/index.ts:15`](../packages/
|
||||
|
||||
SHA-256: `4bb451330ff699f36b45539ceb0eb2606ead72084e2c5bb637c36cc80e2252db`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:198`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:202`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -6810,7 +6841,7 @@ Sources: [`packages/session/session-title/src/types.ts:29`](../packages/session/
|
||||
|
||||
SHA-256: `ec8b5ff7c77ca6893ac7ba5a0c5b2aefeb52f12c64450b7359660c2a7e8a53d7`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:234`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:238`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -6822,7 +6853,7 @@ Sources: [`packages/core/session/src/types.ts:234`](../packages/core/session/src
|
||||
|
||||
SHA-256: `6c5a37d42ebdb12db4410699259335f1e149e3a0260425684c00b153afc8990d`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:197`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:201`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -6991,7 +7022,7 @@ SHA-256: `88841202942c7683b3b7e5ea6a796047ec326b6701ac23e58cc236d85613b9fa`
|
||||
|
||||
SHA-256: `56b7c047694875a843ba020dfea3c8380d54ae4ff88ab349e72004dc21e07c23`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:227`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:231`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -7003,7 +7034,7 @@ Sources: [`packages/core/session/src/types.ts:227`](../packages/core/session/src
|
||||
|
||||
SHA-256: `eaa71be0fbf0f702df8ea6c11d0aa2f9782263d45a10d0fb14eda662f4bfe04c`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:201`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:205`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -7015,7 +7046,7 @@ Sources: [`packages/core/session/src/types.ts:201`](../packages/core/session/src
|
||||
|
||||
SHA-256: `ab7ec5f9eb2c6dfacca5da4c37cf7ba85d04172053ee6b1ebf1709ffcd99c1a7`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:220`](../packages/core/session/src/types.ts) · [`packages/llm/llm/src/types.ts:166`](../packages/llm/llm/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:224`](../packages/core/session/src/types.ts) · [`packages/llm/llm/src/types.ts:166`](../packages/llm/llm/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -7117,7 +7148,7 @@ Sources: [`packages/typert/protocol/src/types.ts:457`](../packages/typert/protoc
|
||||
|
||||
SHA-256: `6c03546143cdf6ae88f1745ac98c5139efa1588d1415249bbc5f3104d32ab800`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:196`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:200`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -8011,7 +8042,7 @@ Sources: [`packages/team/agent-team/src/types.ts:179`](../packages/team/agent-te
|
||||
|
||||
SHA-256: `6bc8e51124d0874bc89e1d0ceff381a9c3cd0fc240667d69f841ce4f60f65fe5`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:338`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:342`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -8092,7 +8123,7 @@ Sources: [`packages/interaction/permission-presets/src/index.ts:61`](../packages
|
||||
|
||||
SHA-256: `e481c46af3813e0010558e93f578b2986acd658404cec2d1679e3ac2a6c48654`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:303`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:307`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -8146,7 +8177,7 @@ Sources: [`packages/compaction/compaction/src/types.ts:82`](../packages/compacti
|
||||
|
||||
SHA-256: `54f9276a1617d7c12594722c89cfe864bcbe4517e9a6f9c98bab14f199a135e0`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:363`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:367`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -8160,7 +8191,7 @@ Sources: [`packages/core/session/src/types.ts:363`](../packages/core/session/src
|
||||
|
||||
SHA-256: `ef11a3b7fa2033ae4279545ff8a8a2ee4e301b9b73e5b91654c48e6d08283545`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:305`](../packages/core/session/src/types.ts) · [`packages/core/session/src/types.ts:307`](../packages/core/session/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:309`](../packages/core/session/src/types.ts) · [`packages/core/session/src/types.ts:311`](../packages/core/session/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -8211,7 +8242,7 @@ Sources: [`packages/todo/tool-todo/src/types.ts:33`](../packages/todo/tool-todo/
|
||||
|
||||
SHA-256: `f90eb4ab2d3897bc20c521a038e3119d581f791ec974b1a0004f63a8ab9e232d`
|
||||
|
||||
Sources: [`packages/core/session/src/types.ts:294`](../packages/core/session/src/types.ts) · [`packages/deliverables/workspace-changes/src/types.ts:106`](../packages/deliverables/workspace-changes/src/types.ts)
|
||||
Sources: [`packages/core/session/src/types.ts:298`](../packages/core/session/src/types.ts) · [`packages/deliverables/workspace-changes/src/types.ts:106`](../packages/deliverables/workspace-changes/src/types.ts)
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
@@ -9407,6 +9438,22 @@ SHA-256: `124aa62078ca3311353b39cc3bf6c75da281338be6bbf672f8b361d828cddca3`
|
||||
| `time` | required | `number` |
|
||||
| `type` | required | `"working-directory/change"` |
|
||||
|
||||
<a id="persistence-type-sha256-025f11632cd02aaecc23a46c3b5bf43b9009d88293ed9b35ccbc1139d73334dc"></a>
|
||||
|
||||
<a id="persistence-type-eventworkspace-rootchange"></a>
|
||||
|
||||
### `{ type: "workspace-root/change" }`
|
||||
|
||||
SHA-256: `025f11632cd02aaecc23a46c3b5bf43b9009d88293ed9b35ccbc1139d73334dc`
|
||||
|
||||
| Property | Presence | Type |
|
||||
|---|---|---|
|
||||
| `data` | required | [`{ cwd }`](#persistence-type-sha256-da60ed58a8fa23d7aa4920ab5c1f4e3d28109cb0797ef9e5c8b125721b847582) |
|
||||
| `ignorable` | optional | `true` |
|
||||
| `seq` | required | `number` |
|
||||
| `time` | required | `number` |
|
||||
| `type` | required | `"workspace-root/change"` |
|
||||
|
||||
<a id="persistence-type-sha256-e308ccf867a5398e316e0af8cb6ce238a8d33a63b9b384c8250a686786285f72"></a>
|
||||
|
||||
<a id="persistence-type-eventworkspacechanges"></a>
|
||||
|
||||
@@ -86,6 +86,7 @@
|
||||
| `event:user/message` | event | `fb6a6e338625067ac582f55dde412a583040cd738bb8fc6820cb0b941c59f05a` | [`{ type: "user/message" }`](#persistence-type-sha256-fb6a6e338625067ac582f55dde412a583040cd738bb8fc6820cb0b941c59f05a) |
|
||||
| `event:web/deepseek-search-llm-request` | event | `0c556c9b9f2a96238a6b9bbb99e748206cbff2ed6203041c9571f04ae5802f52` | [`{ type: "web/deepseek-search-llm-request" }`](#persistence-type-sha256-0c556c9b9f2a96238a6b9bbb99e748206cbff2ed6203041c9571f04ae5802f52) |
|
||||
| `event:working-directory/change` | event | `124aa62078ca3311353b39cc3bf6c75da281338be6bbf672f8b361d828cddca3` | [`{ type: "working-directory/change" }`](#persistence-type-sha256-124aa62078ca3311353b39cc3bf6c75da281338be6bbf672f8b361d828cddca3) |
|
||||
| `event:workspace-root/change` | event | `025f11632cd02aaecc23a46c3b5bf43b9009d88293ed9b35ccbc1139d73334dc` | [`{ type: "workspace-root/change" }`](#persistence-type-sha256-025f11632cd02aaecc23a46c3b5bf43b9009d88293ed9b35ccbc1139d73334dc) |
|
||||
| `event:workspace/changes` | event | `e308ccf867a5398e316e0af8cb6ce238a8d33a63b9b384c8250a686786285f72` | [`{ type: "workspace/changes" }`](#persistence-type-sha256-e308ccf867a5398e316e0af8cb6ce238a8d33a63b9b384c8250a686786285f72) |
|
||||
|
||||
## 事件信封
|
||||
@@ -163,7 +164,7 @@ export type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
||||
}[T]
|
||||
```
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:439`](../packages/core/session/src/types.ts) · [`packages/core/session/src/types.ts:447`](../packages/core/session/src/types.ts) · [`packages/core/session/src/types.ts:470`](../packages/core/session/src/types.ts) · [`packages/core/session/src/types.ts:506`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:443`](../packages/core/session/src/types.ts) · [`packages/core/session/src/types.ts:451`](../packages/core/session/src/types.ts) · [`packages/core/session/src/types.ts:474`](../packages/core/session/src/types.ts) · [`packages/core/session/src/types.ts:510`](../packages/core/session/src/types.ts)
|
||||
|
||||
## 事件
|
||||
|
||||
@@ -292,7 +293,7 @@ export type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
||||
'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[] }
|
||||
```
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:363`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:367`](../packages/core/session/src/types.ts)
|
||||
|
||||
<a id="assistantmessage--surface"></a>
|
||||
|
||||
@@ -322,7 +323,7 @@ export type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
||||
|
||||
类型:[TokenUsage](subsystems/llm-streaming.zh.md)
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:349`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:353`](../packages/core/session/src/types.ts)
|
||||
|
||||
### `command/*`
|
||||
|
||||
@@ -510,7 +511,7 @@ export type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
||||
}
|
||||
```
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:317`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:321`](../packages/core/session/src/types.ts)
|
||||
|
||||
### `feedback/*`
|
||||
|
||||
@@ -755,7 +756,7 @@ export type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
||||
'request/context': RequestContext
|
||||
```
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:410`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:414`](../packages/core/session/src/types.ts)
|
||||
|
||||
<a id="requestheader--log-only"></a>
|
||||
|
||||
@@ -774,7 +775,7 @@ export type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
||||
}
|
||||
```
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:398`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:402`](../packages/core/session/src/types.ts)
|
||||
|
||||
### `sandbox/*`
|
||||
|
||||
@@ -851,7 +852,7 @@ export type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
||||
'session/end-seed': { inherited?: true }
|
||||
```
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:435`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:439`](../packages/core/session/src/types.ts)
|
||||
|
||||
<a id="sessiontitle--log-only"></a>
|
||||
|
||||
@@ -913,7 +914,7 @@ export type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
||||
'step/end': { turn: number; step: number }
|
||||
```
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:307`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:311`](../packages/core/session/src/types.ts)
|
||||
|
||||
<a id="stepstart--log-only"></a>
|
||||
|
||||
@@ -924,7 +925,7 @@ export type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
||||
'step/start': { turn: number; step: number }
|
||||
```
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:305`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:309`](../packages/core/session/src/types.ts)
|
||||
|
||||
### `subagent/*`
|
||||
|
||||
@@ -1001,7 +1002,7 @@ export type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
||||
'system/message': { turn: number; step: number; message: SystemMessage }
|
||||
```
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:338`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:342`](../packages/core/session/src/types.ts)
|
||||
|
||||
### `team/*`
|
||||
|
||||
@@ -1105,7 +1106,7 @@ export type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
||||
|
||||
类型:[ToolCallId](subsystems/core.zh.md)
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:369`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:373`](../packages/core/session/src/types.ts)
|
||||
|
||||
<a id="toolptc-dispatch--log-only"></a>
|
||||
|
||||
@@ -1186,7 +1187,7 @@ export type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
||||
}
|
||||
```
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:383`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:387`](../packages/core/session/src/types.ts)
|
||||
|
||||
### `tool-workflow/*`
|
||||
|
||||
@@ -1266,7 +1267,7 @@ export type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
||||
|
||||
类型:[TurnEndReason](subsystems/session.zh.md)
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:303`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:307`](../packages/core/session/src/types.ts)
|
||||
|
||||
<a id="turnstart--log-only"></a>
|
||||
|
||||
@@ -1282,7 +1283,7 @@ export type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
||||
'turn/start': { turn: number }
|
||||
```
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:294`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:298`](../packages/core/session/src/types.ts)
|
||||
|
||||
### `user/*`
|
||||
|
||||
@@ -1301,7 +1302,7 @@ export type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
||||
'user/message': UserMessage
|
||||
```
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:315`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:319`](../packages/core/session/src/types.ts)
|
||||
|
||||
### `web/*`
|
||||
|
||||
@@ -1323,14 +1324,20 @@ export type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
||||
#### `working-directory/change` — log-only
|
||||
|
||||
```ts persistence-catalog
|
||||
/** Effective working directory; the immutable Session header retains the original project. */
|
||||
/**
|
||||
* Directory change recorded by releases whose model could move the directory. Readers ignore it: a
|
||||
* Session that holds one resumes in its original project, or in the directory of its last
|
||||
* `workspace-root/change`.
|
||||
* @deprecated No writer records this event. `WorkingDirectoryService.set` records
|
||||
* `workspace-root/change`.
|
||||
*/
|
||||
'working-directory/change': {
|
||||
/** Absolute directory used by subsequent directory-based operations. */
|
||||
/** Absolute directory the Session worked in after the change. */
|
||||
cwd: string
|
||||
}
|
||||
```
|
||||
|
||||
来源:[`packages/session/working-directory/src/index.ts:56`](../packages/session/working-directory/src/index.ts)
|
||||
来源:[`packages/session/working-directory/src/index.ts:62`](../packages/session/working-directory/src/index.ts)
|
||||
|
||||
### `workspace/*`
|
||||
|
||||
@@ -1349,6 +1356,22 @@ export type SessionEvent<T extends SessionEventType = SessionEventType> = {
|
||||
|
||||
来源:[`packages/deliverables/workspace-changes/src/types.ts:106`](../packages/deliverables/workspace-changes/src/types.ts)
|
||||
|
||||
### `workspace-root/*`
|
||||
|
||||
<a id="workspace-rootchange--log-only"></a>
|
||||
|
||||
#### `workspace-root/change` — log-only
|
||||
|
||||
```ts persistence-catalog
|
||||
/** Host move of the Session's directory; the immutable Session header retains the original project. */
|
||||
'workspace-root/change': {
|
||||
/** Absolute directory the Session works in from this event on. */
|
||||
cwd: string
|
||||
}
|
||||
```
|
||||
|
||||
来源:[`packages/session/working-directory/src/index.ts:67`](../packages/session/working-directory/src/index.ts)
|
||||
|
||||
## 已解析的持久化类型
|
||||
|
||||
每个类型定义仅列出一次。引用保留共享和递归关系;定义旁的摘要涵盖其完整可达结构。源码名称和位置标识声明来源,但不参与摘要计算。
|
||||
@@ -3079,6 +3102,14 @@ SHA-256: `d4c799e3d51cae1040362ba4968efc484739e14416c9c1df20c2f108b4ef2eb5`
|
||||
|
||||
`"working-directory/change"`
|
||||
|
||||
<a id="persistence-type-sha256-5f22f22ce033e6ce2913445ff1fd80e5dab629a9ac9c19bcffdde8a895b163dd"></a>
|
||||
|
||||
### `"workspace-root/change"`
|
||||
|
||||
SHA-256: `5f22f22ce033e6ce2913445ff1fd80e5dab629a9ac9c19bcffdde8a895b163dd`
|
||||
|
||||
`"workspace-root/change"`
|
||||
|
||||
<a id="persistence-type-sha256-a3edd1efd1fef21b72c55e213c8a8b24196b091abde2b89db52be0b2aaae3cfa"></a>
|
||||
|
||||
### `"workspace-write"`
|
||||
@@ -3292,7 +3323,7 @@ SHA-256: `84bbfdce7d2eab5b0c53e72ff7406db856c8bfd621b965b72fd86598ba493bf7`
|
||||
|
||||
SHA-256: `ada310bf0bdb8fed51f3b56ea63f6ea6b18bbd587f04fccb63a14ab0b2a24e05`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:195`](../packages/core/session/src/types.ts) · [`packages/interaction/commands/src/types.ts:75`](../packages/interaction/commands/src/types.ts) · [`packages/interaction/commands/src/types.ts:79`](../packages/interaction/commands/src/types.ts) · [`packages/llm/llm/src/message.ts:110`](../packages/llm/llm/src/message.ts) · [`packages/session/session-title/src/types.ts:35`](../packages/session/session-title/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:199`](../packages/core/session/src/types.ts) · [`packages/interaction/commands/src/types.ts:75`](../packages/interaction/commands/src/types.ts) · [`packages/interaction/commands/src/types.ts:79`](../packages/interaction/commands/src/types.ts) · [`packages/llm/llm/src/message.ts:110`](../packages/llm/llm/src/message.ts) · [`packages/session/session-title/src/types.ts:35`](../packages/session/session-title/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -3468,7 +3499,7 @@ SHA-256: `010783c095f1d9bddbdd2000f3f0a2d31e2ba4a687f2dabf169c5703b98c9def`
|
||||
|
||||
SHA-256: `9a930283b91d493d6347146f2475bb107294b379415ca02162354f46a64164f7`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:246`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:250`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -4591,7 +4622,7 @@ SHA-256: `0acd94fe8794574c9ae72c7855ee16d29c546096d4af760d16d1225385764555`
|
||||
|
||||
SHA-256: `b158f3ff6923714807c0d73882f0b05dc87f8fa85c9e90814852d48bbc866081`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:260`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:264`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -4610,7 +4641,7 @@ SHA-256: `b158f3ff6923714807c0d73882f0b05dc87f8fa85c9e90814852d48bbc866081`
|
||||
|
||||
SHA-256: `530da6c0267813bb4511af72883cc518834e624e3b3220a7062955fd57a788a6`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:279`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:283`](../packages/core/session/src/types.ts)
|
||||
|
||||
以下类型之一:
|
||||
|
||||
@@ -4970,7 +5001,7 @@ SHA-256: `848639f8787f035b480ec53cb5686850897c5e8006d87ca231cd8a9ee8634936`
|
||||
|
||||
SHA-256: `335e242de1fcc17b6ca920fc420d71bec2d76e53e37955c00948b65ab77f05c5`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:470`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:474`](../packages/core/session/src/types.ts)
|
||||
|
||||
以下类型之一:
|
||||
|
||||
@@ -5416,7 +5447,7 @@ SHA-256: `a6da9ad5d42ae83a6833a8288b076688e8e0801633ea36cbdd8a30a6d9f3160c`
|
||||
|
||||
SHA-256: `1f8c126cfab3df812cd115cfc23e3256f0fa2383400f4ce91ecad313577e59b0`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:201`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:205`](../packages/core/session/src/types.ts)
|
||||
|
||||
| kind | form 属性 | 其他必需字段 | 完整定义 |
|
||||
|---|---|---|---|
|
||||
@@ -5436,7 +5467,7 @@ SHA-256: `1f8c126cfab3df812cd115cfc23e3256f0fa2383400f4ce91ecad313577e59b0`
|
||||
|
||||
SHA-256: `f1687f982fa3d41ef29e159feed154ecd13af4dd209acaee16038f223f2e9402`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:238`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:242`](../packages/core/session/src/types.ts)
|
||||
|
||||
| kind | form 属性 | 其他必需字段 | 完整定义 |
|
||||
|---|---|---|---|
|
||||
@@ -5929,7 +5960,7 @@ SHA-256: `a853902cfab417b8f08aa51ad6855fea46f34ed4588a74e47403035111d0fb86`
|
||||
|
||||
SHA-256: `e4c18e294232c3ba6c9f1999f168263cc55956147cfe4121720899be8e52edd1`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:369`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:373`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -6118,7 +6149,7 @@ SHA-256: `cbbe8377ee744964537dbafd83607219e58ba79a13f6db0d0645c7ad3d5e8a09`
|
||||
|
||||
SHA-256: `a81059ca06999da1e712414520c2c65e491d052fcf9640fae20aa38f0a5dc735`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:391`](../packages/core/session/src/types.ts) · [`packages/core/tool-executor-ptc/src/types.ts:27`](../packages/core/tool-executor-ptc/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:395`](../packages/core/session/src/types.ts) · [`packages/core/tool-executor-ptc/src/types.ts:27`](../packages/core/tool-executor-ptc/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -6217,7 +6248,7 @@ SHA-256: `3e4e7683b0192c9f0e6a75c59076108f017892cdb302a98032c2632fd79c356f`
|
||||
|
||||
SHA-256: `da60ed58a8fa23d7aa4920ab5c1f4e3d28109cb0797ef9e5c8b125721b847582`
|
||||
|
||||
来源:[`packages/session/working-directory/src/index.ts:56`](../packages/session/working-directory/src/index.ts)
|
||||
来源:[`packages/session/working-directory/src/index.ts:62`](../packages/session/working-directory/src/index.ts) · [`packages/session/working-directory/src/index.ts:67`](../packages/session/working-directory/src/index.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -6365,7 +6396,7 @@ SHA-256: `9e41386b3a0c9572b0d63078492ebb3997da7d3a830d44e0259418bd02f4bcb2`
|
||||
|
||||
SHA-256: `bcf0caf62d964b2fcf5404bd5c909cfa9a21c3f3c96e6b7e36d9e33565223825`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:472`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:476`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -6379,7 +6410,7 @@ SHA-256: `bcf0caf62d964b2fcf5404bd5c909cfa9a21c3f3c96e6b7e36d9e33565223825`
|
||||
|
||||
SHA-256: `79650cfa10aa3c52440328d85e8a25f0ffadc8d7efd784e3c0819d8bb74a1985`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:218`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:222`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -6392,7 +6423,7 @@ SHA-256: `79650cfa10aa3c52440328d85e8a25f0ffadc8d7efd784e3c0819d8bb74a1985`
|
||||
|
||||
SHA-256: `5302e763151277614b97e77f00e3b326694c6c1247b916a20503c344dc970777`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:383`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:387`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -6434,7 +6465,7 @@ SHA-256: `693f4952fb5565da96c06bace8924b098ac2fbc915fde0ff8019701183abc057`
|
||||
|
||||
SHA-256: `ad0c38a0adb82a94c925456df41586d9b5f9202fca18593eae2213d4445b4585`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:398`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:402`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -6448,7 +6479,7 @@ SHA-256: `ad0c38a0adb82a94c925456df41586d9b5f9202fca18593eae2213d4445b4585`
|
||||
|
||||
SHA-256: `129f610271310df606674a5ce5c28b444bbf42c231b0f48ad26a0104ffeb6fde`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:317`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:321`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -6531,7 +6562,7 @@ SHA-256: `e3e77b26f0148755a505f5b8ea843a3be117827d4703bb5754d9dc8ddbef521f`
|
||||
|
||||
SHA-256: `17d1afb770d9941936130996da00dc86782cfef731d8d6526162c301256a4ac3`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:435`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:439`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -6559,7 +6590,7 @@ SHA-256: `261128de68865c1f92f2bfa2ccd21f362d6e624cb00fc0cf5558d9d7b82302c5`
|
||||
|
||||
SHA-256: `1ccb56061942f5ccb0d30c9e4f2883b9d115ff906560029de637b61d3cde896d`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:349`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:353`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -6576,7 +6607,7 @@ SHA-256: `1ccb56061942f5ccb0d30c9e4f2883b9d115ff906560029de637b61d3cde896d`
|
||||
|
||||
SHA-256: `0a30c3be336cdd4f8f34e66543a3d46d611c43986edd9b3ce6cbb9b721d3b5d3`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:209`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:213`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -6674,7 +6705,7 @@ SHA-256: `3247e566f4340029325b70e4366b56fa9719977f1e39033b769a2ec221ab22a9`
|
||||
|
||||
SHA-256: `023a355b2be0d688fb6e4df8388dadb942761d46cfe96d0f499aae9631a159d4`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:211`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:215`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -6686,7 +6717,7 @@ SHA-256: `023a355b2be0d688fb6e4df8388dadb942761d46cfe96d0f499aae9631a159d4`
|
||||
|
||||
SHA-256: `b6ef9c6210be8350cd465f485cf520031fffa6bf3809c61a1e713e834c5982d0`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:207`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:211`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -6710,7 +6741,7 @@ SHA-256: `02b2c23f2d94b028c9588a8faace3fce1217405db346da3389368b495457bf79`
|
||||
|
||||
SHA-256: `4bb451330ff699f36b45539ceb0eb2606ead72084e2c5bb637c36cc80e2252db`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:198`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:202`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -6812,7 +6843,7 @@ SHA-256: `1b5649238876e28811e80f10ec67a00c197ad3babd4ecc61a22b09064b88c597`
|
||||
|
||||
SHA-256: `ec8b5ff7c77ca6893ac7ba5a0c5b2aefeb52f12c64450b7359660c2a7e8a53d7`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:234`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:238`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -6824,7 +6855,7 @@ SHA-256: `ec8b5ff7c77ca6893ac7ba5a0c5b2aefeb52f12c64450b7359660c2a7e8a53d7`
|
||||
|
||||
SHA-256: `6c5a37d42ebdb12db4410699259335f1e149e3a0260425684c00b153afc8990d`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:197`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:201`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -6993,7 +7024,7 @@ SHA-256: `88841202942c7683b3b7e5ea6a796047ec326b6701ac23e58cc236d85613b9fa`
|
||||
|
||||
SHA-256: `56b7c047694875a843ba020dfea3c8380d54ae4ff88ab349e72004dc21e07c23`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:227`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:231`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -7005,7 +7036,7 @@ SHA-256: `56b7c047694875a843ba020dfea3c8380d54ae4ff88ab349e72004dc21e07c23`
|
||||
|
||||
SHA-256: `eaa71be0fbf0f702df8ea6c11d0aa2f9782263d45a10d0fb14eda662f4bfe04c`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:201`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:205`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -7017,7 +7048,7 @@ SHA-256: `eaa71be0fbf0f702df8ea6c11d0aa2f9782263d45a10d0fb14eda662f4bfe04c`
|
||||
|
||||
SHA-256: `ab7ec5f9eb2c6dfacca5da4c37cf7ba85d04172053ee6b1ebf1709ffcd99c1a7`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:220`](../packages/core/session/src/types.ts) · [`packages/llm/llm/src/types.ts:166`](../packages/llm/llm/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:224`](../packages/core/session/src/types.ts) · [`packages/llm/llm/src/types.ts:166`](../packages/llm/llm/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -7119,7 +7150,7 @@ SHA-256: `deebfc7c62177ea840f23c6362b8615bc78ffa93377dd5d243c04e541c413af5`
|
||||
|
||||
SHA-256: `6c03546143cdf6ae88f1745ac98c5139efa1588d1415249bbc5f3104d32ab800`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:196`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:200`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -8013,7 +8044,7 @@ SHA-256: `b1ebd5cda47d90d980bb05bffc3f970c51537b9aff15b3bc3d639811727741b1`
|
||||
|
||||
SHA-256: `6bc8e51124d0874bc89e1d0ceff381a9c3cd0fc240667d69f841ce4f60f65fe5`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:338`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:342`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -8094,7 +8125,7 @@ SHA-256: `8a9c990773f798eac10ca8878e6bcc531ee080bc589cac956730e462cc6a09ad`
|
||||
|
||||
SHA-256: `e481c46af3813e0010558e93f578b2986acd658404cec2d1679e3ac2a6c48654`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:303`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:307`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -8148,7 +8179,7 @@ SHA-256: `5dd766ccd1702a1142ad8b4bd44f2242f8e8a6752669ad3de0a5d224329b1438`
|
||||
|
||||
SHA-256: `54f9276a1617d7c12594722c89cfe864bcbe4517e9a6f9c98bab14f199a135e0`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:363`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:367`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -8162,7 +8193,7 @@ SHA-256: `54f9276a1617d7c12594722c89cfe864bcbe4517e9a6f9c98bab14f199a135e0`
|
||||
|
||||
SHA-256: `ef11a3b7fa2033ae4279545ff8a8a2ee4e301b9b73e5b91654c48e6d08283545`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:305`](../packages/core/session/src/types.ts) · [`packages/core/session/src/types.ts:307`](../packages/core/session/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:309`](../packages/core/session/src/types.ts) · [`packages/core/session/src/types.ts:311`](../packages/core/session/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -8213,7 +8244,7 @@ SHA-256: `79ddc907312f97cf9553d4841e8b3fc937097bd8d97900a790efad3c05255e99`
|
||||
|
||||
SHA-256: `f90eb4ab2d3897bc20c521a038e3119d581f791ec974b1a0004f63a8ab9e232d`
|
||||
|
||||
来源:[`packages/core/session/src/types.ts:294`](../packages/core/session/src/types.ts) · [`packages/deliverables/workspace-changes/src/types.ts:106`](../packages/deliverables/workspace-changes/src/types.ts)
|
||||
来源:[`packages/core/session/src/types.ts:298`](../packages/core/session/src/types.ts) · [`packages/deliverables/workspace-changes/src/types.ts:106`](../packages/deliverables/workspace-changes/src/types.ts)
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
@@ -9409,6 +9440,22 @@ SHA-256: `124aa62078ca3311353b39cc3bf6c75da281338be6bbf672f8b361d828cddca3`
|
||||
| `time` | 必需 | `number` |
|
||||
| `type` | 必需 | `"working-directory/change"` |
|
||||
|
||||
<a id="persistence-type-sha256-025f11632cd02aaecc23a46c3b5bf43b9009d88293ed9b35ccbc1139d73334dc"></a>
|
||||
|
||||
<a id="persistence-type-eventworkspace-rootchange"></a>
|
||||
|
||||
### `{ type: "workspace-root/change" }`
|
||||
|
||||
SHA-256: `025f11632cd02aaecc23a46c3b5bf43b9009d88293ed9b35ccbc1139d73334dc`
|
||||
|
||||
| 属性 | 存在性 | 类型 |
|
||||
|---|---|---|
|
||||
| `data` | 必需 | [`{ cwd }`](#persistence-type-sha256-da60ed58a8fa23d7aa4920ab5c1f4e3d28109cb0797ef9e5c8b125721b847582) |
|
||||
| `ignorable` | 可选 | `true` |
|
||||
| `seq` | 必需 | `number` |
|
||||
| `time` | 必需 | `number` |
|
||||
| `type` | 必需 | `"workspace-root/change"` |
|
||||
|
||||
<a id="persistence-type-sha256-e308ccf867a5398e316e0af8cb6ce238a8d33a63b9b384c8250a686786285f72"></a>
|
||||
|
||||
<a id="persistence-type-eventworkspacechanges"></a>
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
# Bilingual-pair consistency record for 2026-11-13-workspace-root-change.md (docs/i18n/README.md): per heading
|
||||
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
|
||||
# After editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write docs/persistence-changes/2026-11-13-workspace-root-change.md
|
||||
/:
|
||||
en: 3d5a424ae7d7e46b
|
||||
zh: c22a8e4a62d8cc1a
|
||||
/2026-11-13-workspace-root-change:
|
||||
en: b50c354175978d07
|
||||
zh: 99dbdb03880cbaa2
|
||||
/2026-11-13-workspace-root-change/summary:
|
||||
en: 4a24f9dc5a92921b
|
||||
zh: 552316a8d798e6aa
|
||||
/2026-11-13-workspace-root-change/table-of-contents:
|
||||
en: 6cf314a069ceb451
|
||||
zh: 9adff678e9ecab3b
|
||||
/2026-11-13-workspace-root-change/declaration:
|
||||
en: 6907136f28e48c90
|
||||
zh: 02f8298485f3d8e7
|
||||
/2026-11-13-workspace-root-change/compatibility:
|
||||
en: 79cf117b9054b763
|
||||
zh: eb1d4f4125ac72bd
|
||||
/2026-11-13-workspace-root-change/verification:
|
||||
en: 0b94b76f379e118d
|
||||
zh: 9f7a996db780a565
|
||||
/2026-11-13-workspace-root-change/dev-note:
|
||||
en: b75c8458928b72b9
|
||||
zh: 003ba4e17b4b5269
|
||||
@@ -0,0 +1,48 @@
|
||||
---
|
||||
description: "Records a persistence type transition and its compatibility acknowledgement."
|
||||
kind: persistence-change
|
||||
---
|
||||
|
||||
# 2026-11-13-workspace-root-change
|
||||
|
||||
English | [中文](2026-11-13-workspace-root-change.zh.md)
|
||||
|
||||
## Summary
|
||||
|
||||
Adds the workspace-root/change event, which records a Host move of a Session's directory. working-directory/change keeps its payload and has no writer.
|
||||
|
||||
## Table of Contents
|
||||
|
||||
- [Declaration](#declaration)
|
||||
- [Compatibility](#compatibility)
|
||||
- [Verification](#verification)
|
||||
- [Dev Note](#dev-note)
|
||||
|
||||
<a id="declaration"></a>
|
||||
## Declaration
|
||||
|
||||
```yaml persistence-change
|
||||
schemaVersion: 1
|
||||
id: 2026-11-13-workspace-root-change
|
||||
baseline: false
|
||||
changes:
|
||||
- root: "event:workspace-root/change"
|
||||
previous: null
|
||||
after: "025f11632cd02aaecc23a46c3b5bf43b9009d88293ed9b35ccbc1139d73334dc"
|
||||
decision: same-version
|
||||
```
|
||||
|
||||
<a id="compatibility"></a>
|
||||
## Compatibility
|
||||
|
||||
New readers set a Session's directory from workspace-root/change and ignore working-directory/change. This changes the meaning of a stored working-directory/change: earlier readers moved the current directory to it, and this reader leaves the Session in its original project, or in the directory of its last workspace-root/change. The event recorded both a model's cd and an entered worktree without telling them apart, and consumers bound writes by the Session's directory, so a directory the model chose must not become that boundary. A Session that had entered a worktree resumes in its original project and returns through enter_worktree. The next request's context reports the directory to the model. A Session that never moves holds neither event and older readers read it as before. Older readers do not know workspace-root/change, which carries no ignorable marker, so they refuse a log that holds it when they decode the row and do not rebuild a directory that lacks the move.
|
||||
|
||||
<a id="verification"></a>
|
||||
## Verification
|
||||
|
||||
pnpm exec vitest run packages/session/working-directory/tests: 29 tests passed, including replay of stored working-directory/change events inside and outside the project, before and after a Host move, and in a Session without origin metadata, none of which moves the directory. pnpm exec vitest run packages/session/session-format-catalog/tests/catalog.spec.ts: refusal of a required event type outside the reader's vocabulary.
|
||||
|
||||
<a id="dev-note"></a>
|
||||
## Dev Note
|
||||
|
||||
None.
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"formatVersion": 2,
|
||||
"roots": [
|
||||
{"key":"event:workspace-root/change","kind":"event","event":"workspace-root/change","surface":false,"digest":"025f11632cd02aaecc23a46c3b5bf43b9009d88293ed9b35ccbc1139d73334dc"}
|
||||
],
|
||||
"types": [],
|
||||
"nodes": {
|
||||
"025f11632cd02aae": {"kind":"object","properties":[{"name":"data","type":"da60ed58a8fa23d7","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"5f22f22ce033e6ce","optional":false}],"indices":[]},
|
||||
"0657d3ca5ac4e7bf": {"kind":"primitive","type":"number"},
|
||||
"4cd48f3e5108bd6e": {"kind":"primitive","type":"string"},
|
||||
"5f22f22ce033e6ce": {"kind":"literal","value":"workspace-root/change"},
|
||||
"da60ed58a8fa23d7": {"kind":"object","properties":[{"name":"cwd","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
|
||||
"dacf3d5f3e4ff619": {"kind":"literal","value":true}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
---
|
||||
description: "记录持久化类型更改及其兼容性确认。"
|
||||
kind: persistence-change
|
||||
---
|
||||
|
||||
# 2026-11-13-workspace-root-change
|
||||
|
||||
[English](2026-11-13-workspace-root-change.md) | 中文
|
||||
|
||||
## 概述
|
||||
|
||||
新增 workspace-root/change 事件,它记录 Host 对 Session 目录的一次移动。working-directory/change 的内容不变,不再有写入方。
|
||||
|
||||
## 目录
|
||||
|
||||
- [声明](#declaration)
|
||||
- [兼容性](#compatibility)
|
||||
- [验证](#verification)
|
||||
- [开发备注](#dev-note)
|
||||
|
||||
<a id="declaration"></a>
|
||||
## 声明
|
||||
|
||||
```yaml persistence-change
|
||||
schemaVersion: 1
|
||||
id: 2026-11-13-workspace-root-change
|
||||
baseline: false
|
||||
changes:
|
||||
- root: "event:workspace-root/change"
|
||||
previous: null
|
||||
after: "025f11632cd02aaecc23a46c3b5bf43b9009d88293ed9b35ccbc1139d73334dc"
|
||||
decision: same-version
|
||||
```
|
||||
|
||||
<a id="compatibility"></a>
|
||||
## 兼容性
|
||||
|
||||
新读者依据 workspace-root/change 设置 Session 的目录,并忽略 working-directory/change。这改变了已存储的 working-directory/change 的含义:早期读者把当前目录移到它记录的目录,本读者让 Session 留在原始项目,或留在最近一条 workspace-root/change 的目录。该事件既记录模型的 cd,也记录进入工作树,两者无法区分;而消费方以 Session 的目录限定写入,所以模型选择的目录不能成为这条边界。进入过工作树的 Session 在原始项目中恢复,通过 enter_worktree 回到工作树。下一次请求的上下文向模型报告该目录。从未移动的 Session 不含这两种事件,旧读者照常读取。旧读者不认识 workspace-root/change,它不带 ignorable 标记,所以旧读者在解码该行时拒绝含有它的日志,不会重建出缺少这次移动的目录。
|
||||
|
||||
<a id="verification"></a>
|
||||
## 验证
|
||||
|
||||
pnpm exec vitest run packages/session/working-directory/tests:29 个测试通过,包括回放位于项目之内与之外、Host 移动之前与之后、以及没有来源元数据的 Session 中的已存储 working-directory/change 事件,它们都不移动目录。pnpm exec vitest run packages/session/session-format-catalog/tests/catalog.spec.ts:拒绝读者词汇表之外的必需事件类型。
|
||||
|
||||
<a id="dev-note"></a>
|
||||
## 开发备注
|
||||
|
||||
无。
|
||||
@@ -15,8 +15,8 @@
|
||||
en: 14c57f30e676f6e3
|
||||
zh: b1a0ccf26fab3727
|
||||
/session-persistence-formats/format-references:
|
||||
en: ae333e2dc340fadd
|
||||
zh: b7f2bca953e0e168
|
||||
en: d0b94efc6bce9073
|
||||
zh: 0bc584a91a013c98
|
||||
/session-persistence-formats/scope-and-evidence:
|
||||
en: 44ba17a168ec63ac
|
||||
zh: c80a44bdbf17a174
|
||||
|
||||
@@ -32,7 +32,7 @@ The index is generated from validated snapshots and the current writer constant.
|
||||
| 1 | PR #3349 | [V1](v1.md) | [JSON](v1.schema.json) | 54 / 415 |
|
||||
| 2 | `dsh-v0.1.3-alpha.2` | [V2](v2.md) | [JSON](v2.schema.json) | 56 / 435 |
|
||||
| 3 | PR #4320 | [V3](v3.md) | [JSON](v3.schema.json) | 60 / 467 |
|
||||
| 4 | Current checkout | [Current catalog](../../persistence-catalog.md) | [JSON](../../persistence-schema.json) | 66 / 638 |
|
||||
| 4 | Current checkout | [Current catalog](../../persistence-catalog.md) | [JSON](../../persistence-schema.json) | 67 / 640 |
|
||||
|
||||
<!-- persistence-format-index:end -->
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ description: "查找从 V0 到工作区写入器版本的每个 Session 格式
|
||||
| 1 | PR #3349 | [V1](v1.zh.md) | [JSON](v1.schema.json) | 54 / 415 |
|
||||
| 2 | `dsh-v0.1.3-alpha.2` | [V2](v2.zh.md) | [JSON](v2.schema.json) | 56 / 435 |
|
||||
| 3 | PR #4320 | [V3](v3.zh.md) | [JSON](v3.schema.json) | 60 / 467 |
|
||||
| 4 | 当前工作树 | [当前目录](../../persistence-catalog.zh.md) | [JSON](../../persistence-schema.json) | 66 / 638 |
|
||||
| 4 | 当前工作树 | [当前目录](../../persistence-catalog.zh.md) | [JSON](../../persistence-schema.json) | 67 / 640 |
|
||||
|
||||
<!-- persistence-format-index:end -->
|
||||
|
||||
|
||||
Generated
+37
-32
@@ -66,6 +66,7 @@
|
||||
{"key":"event:user/message","kind":"event","event":"user/message","surface":true,"digest":"fb6a6e338625067ac582f55dde412a583040cd738bb8fc6820cb0b941c59f05a"},
|
||||
{"key":"event:web/deepseek-search-llm-request","kind":"event","event":"web/deepseek-search-llm-request","surface":false,"digest":"0c556c9b9f2a96238a6b9bbb99e748206cbff2ed6203041c9571f04ae5802f52"},
|
||||
{"key":"event:working-directory/change","kind":"event","event":"working-directory/change","surface":false,"digest":"124aa62078ca3311353b39cc3bf6c75da281338be6bbf672f8b361d828cddca3"},
|
||||
{"key":"event:workspace-root/change","kind":"event","event":"workspace-root/change","surface":false,"digest":"025f11632cd02aaecc23a46c3b5bf43b9009d88293ed9b35ccbc1139d73334dc"},
|
||||
{"key":"event:workspace/changes","kind":"event","event":"workspace/changes","surface":false,"digest":"e308ccf867a5398e316e0af8cb6ce238a8d33a63b9b384c8250a686786285f72"}
|
||||
],
|
||||
"types": [
|
||||
@@ -73,7 +74,8 @@
|
||||
{"digest":"0116b1f89c05221d56b0ba35c83d302bf4857bc7277d247e9bbaf74b27d2c66e","names":[],"sources":[]},
|
||||
{"digest":"0203243b72fc867afc81aff5f4cf2167e564ed342534eb612fc92f295cf07789","names":[],"sources":[]},
|
||||
{"digest":"022623b9ef98ec47ec3c3bae0c51027c70d2601141c5e92e26a0d83d1b4cef06","names":[],"sources":[]},
|
||||
{"digest":"023a355b2be0d688fb6e4df8388dadb942761d46cfe96d0f499aae9631a159d4","names":[],"sources":["packages/core/session/src/types.ts:211"]},
|
||||
{"digest":"023a355b2be0d688fb6e4df8388dadb942761d46cfe96d0f499aae9631a159d4","names":[],"sources":["packages/core/session/src/types.ts:215"]},
|
||||
{"digest":"025f11632cd02aaecc23a46c3b5bf43b9009d88293ed9b35ccbc1139d73334dc","names":[],"sources":[]},
|
||||
{"digest":"02b2c23f2d94b028c9588a8faace3fce1217405db346da3389368b495457bf79","names":[],"sources":["packages/extensions/cordis-host-runner/src/index.ts:15"]},
|
||||
{"digest":"0341d4c3dfcd53253cdc1e789d9130d3cd848b6f8b0706bf92f313a68b39ff23","names":[],"sources":[]},
|
||||
{"digest":"05205074b24d8340cfd7995f6cb64779c7f1241490954700115601e264178877","names":[],"sources":[]},
|
||||
@@ -85,7 +87,7 @@
|
||||
{"digest":"07eccc9ea2f9b5439d76cc77d5e062936677d43f07a23da749819b0a22ee36b7","names":[],"sources":[]},
|
||||
{"digest":"09655b34d7f3cf1e9005974de2357de2d4a60deea165d16dac1eadaa6ec539a8","names":[],"sources":[]},
|
||||
{"digest":"09f3f8dc417f278257202714132f98ba7b52957d7b558c4a04456603890eb363","names":["packages/llm/llm/src/message.ts#SystemMessage"],"sources":["packages/llm/llm/src/message.ts:150"]},
|
||||
{"digest":"0a30c3be336cdd4f8f34e66543a3d46d611c43986edd9b3ce6cbb9b721d3b5d3","names":[],"sources":["packages/core/session/src/types.ts:209"]},
|
||||
{"digest":"0a30c3be336cdd4f8f34e66543a3d46d611c43986edd9b3ce6cbb9b721d3b5d3","names":[],"sources":["packages/core/session/src/types.ts:213"]},
|
||||
{"digest":"0a8a062bc9c3c0d97fd97742262f2ea53dd32297f834e81114870d38ac3dc6da","names":[],"sources":[]},
|
||||
{"digest":"0a92c5bdfa06c2e2615b777728f3aa95f408d43b9012e7b754568311251db623","names":[],"sources":["packages/experimental/liveshare/src/host/viewer-principal.ts:29"]},
|
||||
{"digest":"0aa62ab51b36c0e64b134bd03ba8725d758744180a1a447da49beaad194f219f","names":[],"sources":[]},
|
||||
@@ -112,7 +114,7 @@
|
||||
{"digest":"119abe2b9c0b2f46ecb31d82b9acba4d4b30e049f655e2475e8b4ae12d5a9e25","names":[],"sources":["packages/experimental/hook-protocol/src/types.ts:19"]},
|
||||
{"digest":"11f70b595aa76897fc4e25a352bfa718c659f44b799e5aa14e84e5a38fe72912","names":[],"sources":["packages/interaction/user-approval/src/index.ts:41"]},
|
||||
{"digest":"124aa62078ca3311353b39cc3bf6c75da281338be6bbf672f8b361d828cddca3","names":[],"sources":[]},
|
||||
{"digest":"129f610271310df606674a5ce5c28b444bbf42c231b0f48ad26a0104ffeb6fde","names":[],"sources":["packages/core/session/src/types.ts:317"]},
|
||||
{"digest":"129f610271310df606674a5ce5c28b444bbf42c231b0f48ad26a0104ffeb6fde","names":[],"sources":["packages/core/session/src/types.ts:321"]},
|
||||
{"digest":"12a0cfa619ac4a5fc6c3e8e359c8dae15769edc61497a575935c78d5842f8e42","names":[],"sources":[]},
|
||||
{"digest":"12d5808fac1996b9b3c2afa806e03022252ba2d7b88f835862ae1896591f60c7","names":["packages/llm/llm/src/types.ts#ImageBlock"],"sources":["packages/llm/llm/src/types.ts:86"]},
|
||||
{"digest":"1379f0b72275994d20f1ddca2d60a96ab16ec80397ca9f1af21bdc67ba5c269c","names":[],"sources":[]},
|
||||
@@ -127,7 +129,7 @@
|
||||
{"digest":"15d5dfdd822aa35e115afd74a8982825a493880457774e6850bc1520b50875e4","names":[],"sources":[]},
|
||||
{"digest":"16d0507cb94b4cfc84a87446b1ba7652d6ec1d65ee1684789e747e30d542800e","names":[],"sources":[]},
|
||||
{"digest":"17aae616ef020b8b9f011ec398ec935450fb06d3e2a0722c456f63aeaf5ff728","names":[],"sources":[]},
|
||||
{"digest":"17d1afb770d9941936130996da00dc86782cfef731d8d6526162c301256a4ac3","names":[],"sources":["packages/core/session/src/types.ts:435"]},
|
||||
{"digest":"17d1afb770d9941936130996da00dc86782cfef731d8d6526162c301256a4ac3","names":[],"sources":["packages/core/session/src/types.ts:439"]},
|
||||
{"digest":"18dc21f12bbac8ade8377e6fbb54179e20c3d955d73fba3244c57fb6bf001df0","names":["packages/schedule/schedule/src/types.ts#ScheduleDeleteChange"],"sources":["packages/schedule/schedule/src/types.ts:206"]},
|
||||
{"digest":"18ee62b8900a4c3d046700f05d7a4d49d6cab2a660a020c87481d1603dd8bd4f","names":["packages/session/session-persistence-jsonl/src/format.ts#HeaderLine"],"sources":["packages/session/session-persistence-jsonl/src/format.ts:83"]},
|
||||
{"digest":"18fcdd273a2f2f9d813a3be5e71df5903a963a5c88e46b90b14de6e2db890da0","names":[],"sources":[]},
|
||||
@@ -142,7 +144,7 @@
|
||||
{"digest":"1b912703e2d64f91c99c675b8f805b01076c8325b905c1218ad81ef0b24909d5","names":[],"sources":[]},
|
||||
{"digest":"1c2686c0682e7bc51d61117b2652bd4a80707e331aa276d6ef915ae32534a330","names":[],"sources":[]},
|
||||
{"digest":"1c5a58f4599bd4a9711712551ffe2442a5e5fcd0758bafe630cc4ead850bdaa7","names":[],"sources":[]},
|
||||
{"digest":"1ccb56061942f5ccb0d30c9e4f2883b9d115ff906560029de637b61d3cde896d","names":[],"sources":["packages/core/session/src/types.ts:349"]},
|
||||
{"digest":"1ccb56061942f5ccb0d30c9e4f2883b9d115ff906560029de637b61d3cde896d","names":[],"sources":["packages/core/session/src/types.ts:353"]},
|
||||
{"digest":"1cde1bedde79c5e8a56aee9c05c8e0a579cf5bc611deb85b93fa331a16ca978f","names":["packages/compaction/compaction-image-offload/src/projection.ts#ImageOffloadTarget"],"sources":["packages/compaction/compaction-image-offload/src/projection.ts:9"]},
|
||||
{"digest":"1d5f04a03ea75fc8eeece544129eba0f49f0c82046e9c404461920390135c7b2","names":[],"sources":[]},
|
||||
{"digest":"1d76406cbb2ddadb0dbbb51e9d8bc6cf678fed455cf8eb512f36f7c86d37a62f","names":[],"sources":["packages/llm/llm/src/types.ts:164"]},
|
||||
@@ -155,7 +157,7 @@
|
||||
{"digest":"1ebc6f9ff3aa9e3a38f8695f49bacdab1f8b7a3832741853ca46f40af56ccd01","names":[],"sources":[]},
|
||||
{"digest":"1f0133217eeeffd8d387baf1ec8ed9856e719bcd999dc08e48624cba96d75fd7","names":[],"sources":[]},
|
||||
{"digest":"1f1385dbc3e875c021e387c7096d671d606f22daec51b25c80348735b6bbfa10","names":[],"sources":[]},
|
||||
{"digest":"1f8c126cfab3df812cd115cfc23e3256f0fa2383400f4ce91ecad313577e59b0","names":["packages/core/session/src/types.ts#TurnEndCancelCause"],"sources":["packages/core/session/src/types.ts:201"]},
|
||||
{"digest":"1f8c126cfab3df812cd115cfc23e3256f0fa2383400f4ce91ecad313577e59b0","names":["packages/core/session/src/types.ts#TurnEndCancelCause"],"sources":["packages/core/session/src/types.ts:205"]},
|
||||
{"digest":"1fdad624334d354820dfb3a26e28d0bc9fc1b62a33f87bab63f715b3f4391bfd","names":[],"sources":[]},
|
||||
{"digest":"20a57544bbf204dacd1ae6beb2ab29444365c3c869f2afdf489dcdcbc3d9c8c5","names":[],"sources":["packages/plan/plan-mode/src/index.ts:55"]},
|
||||
{"digest":"2142e391b9ccb60d487afcf373ce74db98d952f69e8289eddb352a7e16e996c5","names":[],"sources":[]},
|
||||
@@ -202,7 +204,7 @@
|
||||
{"digest":"326a9bfda27dda5882fb3cbe6e715df41dae2298fdae3d66437457268a665693","names":["packages/llm/llm/src/call-config.ts#LlmCallConfigAdapterDefaults"],"sources":["packages/llm/llm/src/call-config.ts:53"]},
|
||||
{"digest":"3305a4bb6b6c29b482ba91d59c60b47e8f98282d3dacc8c29e4a4c2712209bdd","names":[],"sources":[]},
|
||||
{"digest":"33341aac09312300de5a178e6cc6f6544a4876f7f710cfea55eda473c8d329ef","names":["packages/llm/llm/src/assistant-stream.ts#AssistantStreamRecord"],"sources":["packages/llm/llm/src/assistant-stream.ts:19"]},
|
||||
{"digest":"335e242de1fcc17b6ca920fc420d71bec2d76e53e37955c00948b65ab77f05c5","names":["packages/core/session/src/types.ts#SurfaceOp"],"sources":["packages/core/session/src/types.ts:470"]},
|
||||
{"digest":"335e242de1fcc17b6ca920fc420d71bec2d76e53e37955c00948b65ab77f05c5","names":["packages/core/session/src/types.ts#SurfaceOp"],"sources":["packages/core/session/src/types.ts:474"]},
|
||||
{"digest":"347de3380f2da308d0c74e08821f9e85559f55af4c5010795b110d00f7fc9dbd","names":[],"sources":[]},
|
||||
{"digest":"34d1ab5c5df378186d6054b1a1beea9a41e41965d6f336f0bc0025c441a82e66","names":[],"sources":[]},
|
||||
{"digest":"35203ba7ad5ef6f97d556b85df20ae98f04f09c65748cecdf8eefdb8b6405ffc","names":[],"sources":[]},
|
||||
@@ -262,7 +264,7 @@
|
||||
{"digest":"4b1e632e05776982a2d21c25a50c7c04c199d311c5675218fa73ff9fe30d22cd","names":["packages/schedule/schedule/src/types.ts#LegacyScheduleRecord"],"sources":["packages/schedule/schedule/src/types.ts:185"]},
|
||||
{"digest":"4b259f7f8f0a44ad5e90b70a73553ced1df27012d126921d397ff403b6c86731","names":["packages/llm/llm/src/message.ts#ToolResultMessage"],"sources":["packages/llm/llm/src/message.ts:172"]},
|
||||
{"digest":"4b7ddaf3710b88ff9b8df66304f5f97bf03688fd19730eedc2e9535203c820ea","names":[],"sources":[]},
|
||||
{"digest":"4bb451330ff699f36b45539ceb0eb2606ead72084e2c5bb637c36cc80e2252db","names":[],"sources":["packages/core/session/src/types.ts:198"]},
|
||||
{"digest":"4bb451330ff699f36b45539ceb0eb2606ead72084e2c5bb637c36cc80e2252db","names":[],"sources":["packages/core/session/src/types.ts:202"]},
|
||||
{"digest":"4cd48f3e5108bd6ebedf7301c3638839b8b2b9db8dbd493974177fbdeb91a01b","names":["packages/api/session-controller/src/types.ts#SessionRequestId","packages/attachment/attachment/src/brand.ts#AttachmentId","packages/compaction/compaction/src/brand.ts#CompactionId","packages/core/session/src/types.ts#SessionId","packages/experimental/webhook/src/brand.ts#WebhookDeliveryId","packages/experimental/webhook/src/brand.ts#WebhookRuleId","packages/experimental/webhook/src/brand.ts#WebhookSourceId","packages/feedback/message-feedback/src/types.ts#MessageFeedbackVersion","packages/goal/goal/src/types.ts#GoalId","packages/interaction/commands/src/brand.ts#CommandId","packages/interaction/user-approval/src/types.ts#ApprovalRequestId","packages/jobs/jobs/src/brand.ts#JobId","packages/llm/llm-retry/src/brand.ts#RetryId","packages/llm/llm/src/brand.ts#MessageId","packages/llm/llm/src/brand.ts#ProviderRequestId","packages/llm/llm/src/brand.ts#ReasoningEffortId","packages/llm/llm/src/brand.ts#ToolCallId","packages/schedule/schedule/src/types.ts#ScheduleId","packages/session/session-title/src/types.ts#SessionTitleProviderId","packages/team/agent-team/src/types.ts#TeamId","packages/team/agent-team/src/types.ts#TeamMessageId","packages/team/agent-team/src/types.ts#TeamTaskId","packages/workflow/workflow/src/types.ts#WorkflowRunId"],"sources":["packages/api/session-controller/src/types.ts:383","packages/attachment/attachment/src/brand.ts:6","packages/compaction/compaction/src/brand.ts:4","packages/core/session/src/types.ts:21","packages/experimental/webhook/src/brand.ts:12","packages/experimental/webhook/src/brand.ts:6","packages/experimental/webhook/src/brand.ts:9","packages/feedback/message-feedback/src/types.ts:14","packages/goal/goal/src/types.ts:17","packages/interaction/commands/src/brand.ts:22","packages/interaction/user-approval/src/types.ts:17","packages/jobs/jobs/src/brand.ts:9","packages/llm/llm-retry/src/brand.ts:4","packages/llm/llm/src/brand.ts:16","packages/llm/llm/src/brand.ts:31","packages/llm/llm/src/brand.ts:43","packages/llm/llm/src/brand.ts:67","packages/schedule/schedule/src/types.ts:14","packages/session/session-title/src/types.ts:17","packages/team/agent-team/src/types.ts:20","packages/team/agent-team/src/types.ts:32","packages/team/agent-team/src/types.ts:8","packages/workflow/workflow/src/types.ts:14"]},
|
||||
{"digest":"4d60dddaa65d3da8d4cd014d85ce3d2c2875664dd0433e331d8e9d395289686b","names":["packages/experimental/liveshare/src/host/viewer-principal.ts#ShareViewerPrincipal"],"sources":["packages/experimental/liveshare/src/host/viewer-principal.ts:24"]},
|
||||
{"digest":"4e011753f8263f436efaabfbb3b4db53a98fc55342c5ded2daf7208b217be159","names":[],"sources":[]},
|
||||
@@ -279,13 +281,13 @@
|
||||
{"digest":"525254db03b1d1e6b74cf55aced52817568331ac1f96c0818728910b6692e336","names":[],"sources":[]},
|
||||
{"digest":"529e0ccd0e34079ab4ff21ed87f810cee0388246263bf22e8aba5986b56fae05","names":[],"sources":["packages/util/values/src/index.ts:4"]},
|
||||
{"digest":"52c6113cb0e53f345324bf84f01928bea5d5df57ee80bc0dd65407b8bc5a3734","names":[],"sources":[]},
|
||||
{"digest":"5302e763151277614b97e77f00e3b326694c6c1247b916a20503c344dc970777","names":[],"sources":["packages/core/session/src/types.ts:383"]},
|
||||
{"digest":"530da6c0267813bb4511af72883cc518834e624e3b3220a7062955fd57a788a6","names":["packages/core/session/src/types.ts#RequestHeaderReason"],"sources":["packages/core/session/src/types.ts:279"]},
|
||||
{"digest":"5302e763151277614b97e77f00e3b326694c6c1247b916a20503c344dc970777","names":[],"sources":["packages/core/session/src/types.ts:387"]},
|
||||
{"digest":"530da6c0267813bb4511af72883cc518834e624e3b3220a7062955fd57a788a6","names":["packages/core/session/src/types.ts#RequestHeaderReason"],"sources":["packages/core/session/src/types.ts:283"]},
|
||||
{"digest":"53cf1704ae0709c7678bcf070c83c619fc48ca1b5c173b74cfa8702f22a8e492","names":[],"sources":[]},
|
||||
{"digest":"54f9276a1617d7c12594722c89cfe864bcbe4517e9a6f9c98bab14f199a135e0","names":[],"sources":["packages/core/session/src/types.ts:363"]},
|
||||
{"digest":"54f9276a1617d7c12594722c89cfe864bcbe4517e9a6f9c98bab14f199a135e0","names":[],"sources":["packages/core/session/src/types.ts:367"]},
|
||||
{"digest":"557e148d30b79ee48645850832b30c717d7c3b64641deb5d6133b8b4e91ee0b8","names":[],"sources":[]},
|
||||
{"digest":"5654685d7557ec747e74887237065e626a5bdfa426ca43f7fbb0b6fee9b0916c","names":[],"sources":[]},
|
||||
{"digest":"56b7c047694875a843ba020dfea3c8380d54ae4ff88ab349e72004dc21e07c23","names":[],"sources":["packages/core/session/src/types.ts:227"]},
|
||||
{"digest":"56b7c047694875a843ba020dfea3c8380d54ae4ff88ab349e72004dc21e07c23","names":[],"sources":["packages/core/session/src/types.ts:231"]},
|
||||
{"digest":"570e85022434613394418ad33e77e9f1f7a05699b33d0b62eae0677a638c3833","names":[],"sources":[]},
|
||||
{"digest":"576a2de8355eb09850963ff5953420b172e274d9283666eb7d889097db120796","names":[],"sources":[]},
|
||||
{"digest":"5776e5553ff2dfe3f5bc202dbb1e7c9f93e35a531aebb7764c23b2b6153b2ccc","names":[],"sources":[]},
|
||||
@@ -312,6 +314,7 @@
|
||||
{"digest":"5e6db6e24948d4a853c71cb9fabd252ad051ce93d4672c1266cf837c1c17b84e","names":[],"sources":[]},
|
||||
{"digest":"5ebce1317eacd2c148456627a09668e927ee15c204f0643f5ea76b46b54a2647","names":[],"sources":[]},
|
||||
{"digest":"5f2117d1856a5ab43c28371faa978ebfaa48f8c7d734ea3fc94842210df83dca","names":["packages/llm/llm/src/types.ts#LlmFailure"],"sources":["packages/llm/llm/src/types.ts:48"]},
|
||||
{"digest":"5f22f22ce033e6ce2913445ff1fd80e5dab629a9ac9c19bcffdde8a895b163dd","names":[],"sources":[]},
|
||||
{"digest":"5f26a6c20b37632f8f57729d171c671def4683d994ac6257a8dffcd855101627","names":[],"sources":[]},
|
||||
{"digest":"5f758f3de5f00c18968a7c6d347083aac5c9ae13f6a79c78f6611b23c4973564","names":["packages/subagent/subagent/src/descriptor.ts#OneShotSubagentDescriptorData"],"sources":["packages/subagent/subagent/src/descriptor.ts:61"]},
|
||||
{"digest":"6085488d223aeffdef51d7ae17655fc26ab22ee13cbed82a50e62e2b6fb5b918","names":[],"sources":[]},
|
||||
@@ -339,10 +342,10 @@
|
||||
{"digest":"6b23ed9ce1b397e602788dbe033693bf97642a69e23fcab1cc45bf6f13b6d619","names":[],"sources":[]},
|
||||
{"digest":"6ba7edb6447b6a3e7947dddf5e4116c1526000c4e62882a6d65edc67ba797c2c","names":[],"sources":[]},
|
||||
{"digest":"6bbe793f6a93dc8d50a4d4d3fbb6f8ed15650bcb7e151d28669628f7b7c3fc25","names":["packages/goal/goal/src/types.ts#GoalSnapshot"],"sources":["packages/goal/goal/src/types.ts:60"]},
|
||||
{"digest":"6bc8e51124d0874bc89e1d0ceff381a9c3cd0fc240667d69f841ce4f60f65fe5","names":[],"sources":["packages/core/session/src/types.ts:338"]},
|
||||
{"digest":"6c03546143cdf6ae88f1745ac98c5139efa1588d1415249bbc5f3104d32ab800","names":[],"sources":["packages/core/session/src/types.ts:196"]},
|
||||
{"digest":"6bc8e51124d0874bc89e1d0ceff381a9c3cd0fc240667d69f841ce4f60f65fe5","names":[],"sources":["packages/core/session/src/types.ts:342"]},
|
||||
{"digest":"6c03546143cdf6ae88f1745ac98c5139efa1588d1415249bbc5f3104d32ab800","names":[],"sources":["packages/core/session/src/types.ts:200"]},
|
||||
{"digest":"6c1cccb433ddc153facb380c7dda956237ba5c31f8a532a69142dc277890cc9b","names":[],"sources":[]},
|
||||
{"digest":"6c5a37d42ebdb12db4410699259335f1e149e3a0260425684c00b153afc8990d","names":[],"sources":["packages/core/session/src/types.ts:197"]},
|
||||
{"digest":"6c5a37d42ebdb12db4410699259335f1e149e3a0260425684c00b153afc8990d","names":[],"sources":["packages/core/session/src/types.ts:201"]},
|
||||
{"digest":"6ccb6bc423fb3952458abf9c1b1c3284208b7e660344b612cc55da773d61afe4","names":[],"sources":[]},
|
||||
{"digest":"6cda0d6d3b4336d83998fe580628426df81c2afbab5d768b8813b56d569120e8","names":[],"sources":[]},
|
||||
{"digest":"6cf082d0fb6034dea61636787ff0ddf43b6e59aad71e644435a479bc9b83ad65","names":[],"sources":[]},
|
||||
@@ -368,7 +371,7 @@
|
||||
{"digest":"763c8a20af487263a0080548274f7437ef4a86e0ba8769127d1ced10a72c664d","names":[],"sources":[]},
|
||||
{"digest":"76632533f67879dcb346fcae640540dbc89b2472b0bce88c59f7e48fc5c0e668","names":[],"sources":[]},
|
||||
{"digest":"78a9be340090b735a39980e7222ce730c972fbcf1de7c9e0aef2125884b7caee","names":[],"sources":[]},
|
||||
{"digest":"79650cfa10aa3c52440328d85e8a25f0ffadc8d7efd784e3c0819d8bb74a1985","names":[],"sources":["packages/core/session/src/types.ts:218"]},
|
||||
{"digest":"79650cfa10aa3c52440328d85e8a25f0ffadc8d7efd784e3c0819d8bb74a1985","names":[],"sources":["packages/core/session/src/types.ts:222"]},
|
||||
{"digest":"79ddc907312f97cf9553d4841e8b3fc937097bd8d97900a790efad3c05255e99","names":[],"sources":["packages/todo/tool-todo/src/types.ts:33"]},
|
||||
{"digest":"7a651f3b672c52fb615f22c0ce9cb3cc5b22aad92e6bbeefb0808fd7b9233a50","names":[],"sources":[]},
|
||||
{"digest":"7af85bf70d4eafce63e739adae38ea85501e68df3a0e22f97f3a0be90fd9e4cb","names":[],"sources":[]},
|
||||
@@ -455,7 +458,7 @@
|
||||
{"digest":"99f0e98184709ad10f27bfdeaafb4457d9d2b413f402331764798cdb7d3cbe4d","names":[],"sources":[]},
|
||||
{"digest":"9a2a9029f8d7ede05336980d8342737557f487b913bfd28853d0ab5214600ab5","names":[],"sources":["packages/web/web-search-deepseek/src/provider.ts:65"]},
|
||||
{"digest":"9a410ddf56792b2b7cd4a224a2e54dc4dee30a8e8e6b1c2b9a1d19992b217adc","names":["packages/workflow/tool-workflow/src/types.ts#ToolWorkflowAgentStartData"],"sources":["packages/workflow/tool-workflow/src/types.ts:20"]},
|
||||
{"digest":"9a930283b91d493d6347146f2475bb107294b379415ca02162354f46a64164f7","names":["packages/core/session/src/types.ts#EpochHeader"],"sources":["packages/core/session/src/types.ts:246"]},
|
||||
{"digest":"9a930283b91d493d6347146f2475bb107294b379415ca02162354f46a64164f7","names":["packages/core/session/src/types.ts#EpochHeader"],"sources":["packages/core/session/src/types.ts:250"]},
|
||||
{"digest":"9ac52f0f84fec2eb9f71c2937e497d759db5ca0da4836d93a679d113684141f2","names":[],"sources":[]},
|
||||
{"digest":"9acbe713f3f641921dd3333b240aa72e176d795327c24e8d9db9b68b16771b49","names":[],"sources":[]},
|
||||
{"digest":"9b4fd974c124c83743efe030ba4e1250e087505f3f74588716a521fb8d453267","names":[],"sources":[]},
|
||||
@@ -487,7 +490,7 @@
|
||||
{"digest":"a6da9ad5d42ae83a6833a8288b076688e8e0801633ea36cbdd8a30a6d9f3160c","names":["packages/workflow/tool-workflow/src/types.ts#ToolWorkflowRunStartData"],"sources":["packages/workflow/tool-workflow/src/types.ts:14"]},
|
||||
{"digest":"a720757f704a2512e9d2f20da4a093e582472176236a75ab8b8eb7aaff17d85a","names":[],"sources":[]},
|
||||
{"digest":"a7cf43ce7c2a4c038feed1885cd7a00d5c6ee2d90a7e0d56b46f78a3e1ca327f","names":[],"sources":[]},
|
||||
{"digest":"a81059ca06999da1e712414520c2c65e491d052fcf9640fae20aa38f0a5dc735","names":[],"sources":["packages/core/session/src/types.ts:391","packages/core/tool-executor-ptc/src/types.ts:27"]},
|
||||
{"digest":"a81059ca06999da1e712414520c2c65e491d052fcf9640fae20aa38f0a5dc735","names":[],"sources":["packages/core/session/src/types.ts:395","packages/core/tool-executor-ptc/src/types.ts:27"]},
|
||||
{"digest":"a853902cfab417b8f08aa51ad6855fea46f34ed4588a74e47403035111d0fb86","names":[],"sources":["packages/interaction/commands/src/types.ts:105"]},
|
||||
{"digest":"a8a2b9011fc067862df7ce40748868467e5778283d7ac193c13f77684a914c57","names":[],"sources":[]},
|
||||
{"digest":"a9059a81430b320792bbb7c2ee1f8f6c77ff71e40ee44c18aec72e157c522694","names":[],"sources":[]},
|
||||
@@ -501,14 +504,14 @@
|
||||
{"digest":"aa93010d0e521ad7c42273f58d5c9b8bf1dfc94edf1b805a3971b364a35c1877","names":[],"sources":[]},
|
||||
{"digest":"aacda84a69739238aa782eea902d3073017d9d74b9808de2bf5a83c9738cbdc6","names":[],"sources":[]},
|
||||
{"digest":"aae343bc3d663c83f2e8b5e1c7eea5d509dc7a5361bc8bd8b5ac3bb8d3b1ed56","names":[],"sources":[]},
|
||||
{"digest":"ab7ec5f9eb2c6dfacca5da4c37cf7ba85d04172053ee6b1ebf1709ffcd99c1a7","names":[],"sources":["packages/core/session/src/types.ts:220","packages/llm/llm/src/types.ts:166"]},
|
||||
{"digest":"ab7ec5f9eb2c6dfacca5da4c37cf7ba85d04172053ee6b1ebf1709ffcd99c1a7","names":[],"sources":["packages/core/session/src/types.ts:224","packages/llm/llm/src/types.ts:166"]},
|
||||
{"digest":"aba175fb20ffc71112c55efe70458ff5d7dbfb83501892b4ba8d077f0ea5d7ba","names":[],"sources":[]},
|
||||
{"digest":"abd6ca62a5ab166553848324a23fef90eed7f59c8021bd63e7ea5bc6fd666b0c","names":["packages/web/web-search-deepseek/src/provider.ts#DeepSeekSearchLlmRequest"],"sources":["packages/web/web-search-deepseek/src/provider.ts:56"]},
|
||||
{"digest":"ad0c38a0adb82a94c925456df41586d9b5f9202fca18593eae2213d4445b4585","names":[],"sources":["packages/core/session/src/types.ts:398"]},
|
||||
{"digest":"ad0c38a0adb82a94c925456df41586d9b5f9202fca18593eae2213d4445b4585","names":[],"sources":["packages/core/session/src/types.ts:402"]},
|
||||
{"digest":"ad22a5ca5bbaab2e1440779cd3648e85ddfc6f73b5207394eda699555cf31430","names":[],"sources":[]},
|
||||
{"digest":"ad3b56aa2fc1ad4250e7399295d34a8eae592e1907e85852e2291b2e498a30bc","names":[],"sources":[]},
|
||||
{"digest":"ad92f473a03ae72599ff26c86e897c25e16269519ad2a87340f0bea946517af8","names":[],"sources":[]},
|
||||
{"digest":"ada310bf0bdb8fed51f3b56ea63f6ea6b18bbd587f04fccb63a14ab0b2a24e05","names":["packages/interaction/commands/src/types.ts#CommandSource"],"sources":["packages/core/session/src/types.ts:195","packages/interaction/commands/src/types.ts:75","packages/interaction/commands/src/types.ts:79","packages/llm/llm/src/message.ts:110","packages/session/session-title/src/types.ts:35"]},
|
||||
{"digest":"ada310bf0bdb8fed51f3b56ea63f6ea6b18bbd587f04fccb63a14ab0b2a24e05","names":["packages/interaction/commands/src/types.ts#CommandSource"],"sources":["packages/core/session/src/types.ts:199","packages/interaction/commands/src/types.ts:75","packages/interaction/commands/src/types.ts:79","packages/llm/llm/src/message.ts:110","packages/session/session-title/src/types.ts:35"]},
|
||||
{"digest":"ade057f4fdc387aec6426f48704a1f9359cfc6fee13f27735b07f9b215ec16ca","names":[],"sources":[]},
|
||||
{"digest":"ae63d9d1080ed8945031594d93f8d96651d7101b848719cc3e1475875cd3d649","names":[],"sources":[]},
|
||||
{"digest":"aec150797b655c5f15ebb7a501454b0c208fbaccec9ace49d7de2171fc02f47d","names":[],"sources":[]},
|
||||
@@ -518,7 +521,7 @@
|
||||
{"digest":"b0127044ab31a702bddfd785d345f5abd7a70876746e895ce443afa3e60ddf2d","names":[],"sources":[]},
|
||||
{"digest":"b062078e899958f99ae464514578b8c093924dfe34bd9a835932b420ff2150b1","names":[],"sources":[]},
|
||||
{"digest":"b0b0eb1b16490f6bee135b2377e8f8c39227974c799ad7d49ff418af23ecbc35","names":["packages/attachment/attachment/src/types.ts#ImageAttachmentRef"],"sources":["packages/attachment/attachment/src/types.ts:11"]},
|
||||
{"digest":"b158f3ff6923714807c0d73882f0b05dc87f8fa85c9e90814852d48bbc866081","names":["packages/core/session/src/types.ts#RequestContext"],"sources":["packages/core/session/src/types.ts:260"]},
|
||||
{"digest":"b158f3ff6923714807c0d73882f0b05dc87f8fa85c9e90814852d48bbc866081","names":["packages/core/session/src/types.ts#RequestContext"],"sources":["packages/core/session/src/types.ts:264"]},
|
||||
{"digest":"b1664fa89f8eab49a14e7e3168d8bc4da4aa9fd76332f6c4a053d839e5276ae7","names":[],"sources":[]},
|
||||
{"digest":"b1ebd5cda47d90d980bb05bffc3f970c51537b9aff15b3bc3d639811727741b1","names":[],"sources":["packages/team/agent-team/src/types.ts:179"]},
|
||||
{"digest":"b1f62380f6746fedd629e71065e3583cef83334875b499ac9665c2eb87acfbf5","names":[],"sources":[]},
|
||||
@@ -538,7 +541,7 @@
|
||||
{"digest":"b613f83572fe2fbf7259c72308cafd008f4fceea897749128a48bcd158f290aa","names":[],"sources":[]},
|
||||
{"digest":"b63b089a00b3b9357675b3e0c3d3e9aa4fdbda1fba9c91a6b0c59ffdbb89f505","names":["packages/schedule/schedule/src/types.ts#LegacyAtScheduleRecord"],"sources":["packages/schedule/schedule/src/types.ts:167"]},
|
||||
{"digest":"b6896938660a1dfe4ddd100fb3164d9f8fa57feeabfe37441a80106c9942697a","names":[],"sources":[]},
|
||||
{"digest":"b6ef9c6210be8350cd465f485cf520031fffa6bf3809c61a1e713e834c5982d0","names":[],"sources":["packages/core/session/src/types.ts:207"]},
|
||||
{"digest":"b6ef9c6210be8350cd465f485cf520031fffa6bf3809c61a1e713e834c5982d0","names":[],"sources":["packages/core/session/src/types.ts:211"]},
|
||||
{"digest":"b6f94c17dd9bbd7cd57015198b7c7c88407f0e3b89faab176ca3c11c3d864d3e","names":[],"sources":[]},
|
||||
{"digest":"b70f3e81fe11b7a5f2504fb47a4502fb8d9c8f0731fdfe8ddcaf9b41f5a6e196","names":[],"sources":[]},
|
||||
{"digest":"b765ee31033cea463863faf3fc6a0a1b85c47c6a2f13fe1ce833abe56105114b","names":[],"sources":[]},
|
||||
@@ -561,7 +564,7 @@
|
||||
{"digest":"bb94f3217aa56c8876bbff0b8460d6a73cbead545659abb29e76cd0cf2cb92d6","names":[],"sources":[]},
|
||||
{"digest":"bbc5696e3f13c758237b316e3cf08cda0b9fd51ffe672539883457769faa185d","names":[],"sources":[]},
|
||||
{"digest":"bca0f9cb63d8620b6954bb045b07bb07cb557513a7f0e2e177f5e87f704e7ba7","names":[],"sources":[]},
|
||||
{"digest":"bcf0caf62d964b2fcf5404bd5c909cfa9a21c3f3c96e6b7e36d9e33565223825","names":[],"sources":["packages/core/session/src/types.ts:472"]},
|
||||
{"digest":"bcf0caf62d964b2fcf5404bd5c909cfa9a21c3f3c96e6b7e36d9e33565223825","names":[],"sources":["packages/core/session/src/types.ts:476"]},
|
||||
{"digest":"bd499eac047efe091a4df7382eadd06d25cf0cb31fee3981e8b24d85762841cd","names":[],"sources":[]},
|
||||
{"digest":"bf16d2e98a7f13894ded2cffe5ce857bf473954a0e3c0ed9bc7739e2e1c7b78a","names":[],"sources":[]},
|
||||
{"digest":"c0ea97bc89dfc46fa94eab956f5c3ee6af2f964aa7db6327cb18b451f207bef7","names":["packages/workflow/tool-workflow/src/types.ts#ToolWorkflowAgentEndData"],"sources":["packages/workflow/tool-workflow/src/types.ts:29"]},
|
||||
@@ -608,7 +611,7 @@
|
||||
{"digest":"d9196086e41e4dd5c2ce87f5c25529c8112a1731d258cf0728747d41a9ee3241","names":[],"sources":[]},
|
||||
{"digest":"d9c462b9f62fdd3efc76a44b9524dc8781f6b91cd9c7e584b17d971defafebab","names":["packages/llm/llm/src/message.ts#ToolMessageSource"],"sources":["packages/llm/llm/src/message.ts:28"]},
|
||||
{"digest":"d9edf1862e4471d6ad8a106a3f4160e0643874368707d50ecd8e27e5ee7a2567","names":[],"sources":[]},
|
||||
{"digest":"da60ed58a8fa23d7aa4920ab5c1f4e3d28109cb0797ef9e5c8b125721b847582","names":[],"sources":["packages/session/working-directory/src/index.ts:56"]},
|
||||
{"digest":"da60ed58a8fa23d7aa4920ab5c1f4e3d28109cb0797ef9e5c8b125721b847582","names":[],"sources":["packages/session/working-directory/src/index.ts:62","packages/session/working-directory/src/index.ts:67"]},
|
||||
{"digest":"dacf3d5f3e4ff619c1320e64a48dec5e7ecd7870bece65fbd449a0e63adfa521","names":[],"sources":[]},
|
||||
{"digest":"db06ef35b27a38425046b2228fa6bce9582abe140d781d363137eb2f4d233a1c","names":[],"sources":[]},
|
||||
{"digest":"db6c5246911d47a7969f6b4cb47c7d0dbbde75c402710b22ace3672fa97bebe0","names":[],"sources":[]},
|
||||
@@ -638,8 +641,8 @@
|
||||
{"digest":"e41bdebe246abe17154de7e7a1d81035437eee8d20e7f1edff0d91e2598ad828","names":[],"sources":[]},
|
||||
{"digest":"e42b0f40b5d0b628c6e1c44a8fb9eda0780037a81959e1b93d2dfb47b46b0e87","names":[],"sources":[]},
|
||||
{"digest":"e438a9d4fb883b3e4a8d9fc8913aa1550ed50eb384bfbf943100a5605b537498","names":[],"sources":[]},
|
||||
{"digest":"e481c46af3813e0010558e93f578b2986acd658404cec2d1679e3ac2a6c48654","names":[],"sources":["packages/core/session/src/types.ts:303"]},
|
||||
{"digest":"e4c18e294232c3ba6c9f1999f168263cc55956147cfe4121720899be8e52edd1","names":[],"sources":["packages/core/session/src/types.ts:369"]},
|
||||
{"digest":"e481c46af3813e0010558e93f578b2986acd658404cec2d1679e3ac2a6c48654","names":[],"sources":["packages/core/session/src/types.ts:307"]},
|
||||
{"digest":"e4c18e294232c3ba6c9f1999f168263cc55956147cfe4121720899be8e52edd1","names":[],"sources":["packages/core/session/src/types.ts:373"]},
|
||||
{"digest":"e4cac694f8b6e1d52e48c699464f1c4c26111ef87e558f7931040d00fdc8d486","names":[],"sources":[]},
|
||||
{"digest":"e5d3828df1ec3e2a66879de0659e0f4866d9cfffc00825ee731a66f8a0c03d98","names":[],"sources":[]},
|
||||
{"digest":"e6063d0451dc02026fd9b54ad3f77c7b1b6392ad3e872a7737ac84e13ca72344","names":["packages/schedule/schedule/src/types.ts#EveryScheduleDispatchChange"],"sources":["packages/schedule/schedule/src/types.ts:220"]},
|
||||
@@ -653,22 +656,22 @@
|
||||
{"digest":"e8de0f457fed5b9ff94dc4950b59ef75fd8ba8af665cc7899485924a62653367","names":[],"sources":[]},
|
||||
{"digest":"e95f957154b2b1b58692af53d4131180b6dd19e2264869f876dbaa959991494e","names":[],"sources":[]},
|
||||
{"digest":"ea08ec1df0c33108fd03345b9af199cf04dea450aa045d3c683f216311403403","names":[],"sources":["packages/team/agent-team/src/types.ts:183"]},
|
||||
{"digest":"eaa71be0fbf0f702df8ea6c11d0aa2f9782263d45a10d0fb14eda662f4bfe04c","names":[],"sources":["packages/core/session/src/types.ts:201"]},
|
||||
{"digest":"eaa71be0fbf0f702df8ea6c11d0aa2f9782263d45a10d0fb14eda662f4bfe04c","names":[],"sources":["packages/core/session/src/types.ts:205"]},
|
||||
{"digest":"ebb768d85ec87fb68e42fc14fd7d8535b5ac11791b14d04c6770180f0a719bf8","names":[],"sources":[]},
|
||||
{"digest":"ec38b5949af8eacaf00df002f4acbe344f934f8a061e9cdc65a52a48e5f6dd93","names":[],"sources":[]},
|
||||
{"digest":"ec8b5ff7c77ca6893ac7ba5a0c5b2aefeb52f12c64450b7359660c2a7e8a53d7","names":[],"sources":["packages/core/session/src/types.ts:234"]},
|
||||
{"digest":"ec8b5ff7c77ca6893ac7ba5a0c5b2aefeb52f12c64450b7359660c2a7e8a53d7","names":[],"sources":["packages/core/session/src/types.ts:238"]},
|
||||
{"digest":"edbbfff1128099fda7b792c56330d2cb04debc9790988e66d1c3f4026e813e0e","names":[],"sources":[]},
|
||||
{"digest":"edd37b1e4974af648633014435572089b1e8fb71910468a0767a7e28fdd22abf","names":[],"sources":[]},
|
||||
{"digest":"ee4277d9b4c96ab0a024b3c65d294712b6721808c564162bce7f7feed40c139f","names":["packages/session/session-title-llm/src/index.ts#SessionTitleLlmRequestEventData"],"sources":["packages/session/session-title-llm/src/index.ts:43"]},
|
||||
{"digest":"ee577a0cc18664c9daee50e9455153321155604f8f1817362f8f4a4b6fb9e1ad","names":[],"sources":[]},
|
||||
{"digest":"eea687d437880bd5f55fb447a561112800ca34334c0724d9cecb98493059d9e4","names":["packages/schedule/schedule/src/types.ts#ScheduleCreateChange"],"sources":["packages/schedule/schedule/src/types.ts:199"]},
|
||||
{"digest":"eefbea819caeeea91ccb02dfafc16c68dd7f961cf9c1b2be25a2084509cf5c5a","names":[],"sources":[]},
|
||||
{"digest":"ef11a3b7fa2033ae4279545ff8a8a2ee4e301b9b73e5b91654c48e6d08283545","names":[],"sources":["packages/core/session/src/types.ts:305","packages/core/session/src/types.ts:307"]},
|
||||
{"digest":"ef11a3b7fa2033ae4279545ff8a8a2ee4e301b9b73e5b91654c48e6d08283545","names":[],"sources":["packages/core/session/src/types.ts:309","packages/core/session/src/types.ts:311"]},
|
||||
{"digest":"ef226a90ddac6cd8e631a3a337a3a3e27f9494be92befb7c718b404681d75e21","names":[],"sources":[]},
|
||||
{"digest":"ef4f00923b9edbae15c7ef05320280bf61147ca17146cf59690359bfd5e5da45","names":[],"sources":[]},
|
||||
{"digest":"f05fb85e715af4ab4de0b6ba111166dd0435bd8bb74a0fa0f32b9d174113fc7c","names":[],"sources":[]},
|
||||
{"digest":"f09e5e7acf5ff5ccd193ff2eeec015fa2ff7c29d98bc465f8c3302058d47e29b","names":["packages/core/agent/src/types.ts#ModelSelection"],"sources":["packages/core/agent/src/types.ts:79"]},
|
||||
{"digest":"f1687f982fa3d41ef29e159feed154ecd13af4dd209acaee16038f223f2e9402","names":["packages/core/session/src/types.ts#TurnEndReason"],"sources":["packages/core/session/src/types.ts:238"]},
|
||||
{"digest":"f1687f982fa3d41ef29e159feed154ecd13af4dd209acaee16038f223f2e9402","names":["packages/core/session/src/types.ts#TurnEndReason"],"sources":["packages/core/session/src/types.ts:242"]},
|
||||
{"digest":"f1996af2602e6f62b5ab179ca5c4af00d8753938b74cc6ef102de09e99e74a7e","names":[],"sources":[]},
|
||||
{"digest":"f19bee84bf3d20904553cdcd57465232bc1c2a194f54c4d195292ba0487223a6","names":["packages/attachment/attachment/src/types.ts#FileAttachmentRef"],"sources":["packages/attachment/attachment/src/types.ts:39"]},
|
||||
{"digest":"f1a96afe7503ac1817de769cd0ba13d9b80111c7034c50106b3344ecc14cc515","names":[],"sources":["packages/llm/llm/src/types.ts:502"]},
|
||||
@@ -689,7 +692,7 @@
|
||||
{"digest":"f7283223aacdc39b0adca728c8cbd4c090a20006a6fecec74421c30e943b489c","names":[],"sources":[]},
|
||||
{"digest":"f789af5ab844827eb5a4f357c0afae1eeed108c6c22d8ca1a56e586b349a7c85","names":[],"sources":[]},
|
||||
{"digest":"f88f1b7b6bb733f685f5fb6a8744a5db9199fa53c90463ea1a33bad51153671d","names":[],"sources":[]},
|
||||
{"digest":"f90eb4ab2d3897bc20c521a038e3119d581f791ec974b1a0004f63a8ab9e232d","names":[],"sources":["packages/core/session/src/types.ts:294","packages/deliverables/workspace-changes/src/types.ts:106"]},
|
||||
{"digest":"f90eb4ab2d3897bc20c521a038e3119d581f791ec974b1a0004f63a8ab9e232d","names":[],"sources":["packages/core/session/src/types.ts:298","packages/deliverables/workspace-changes/src/types.ts:106"]},
|
||||
{"digest":"f97f47b0eb87905ed77cc27c5e4ed75ef805cb372c98905253709de1aab9b63c","names":[],"sources":[]},
|
||||
{"digest":"f9cfc89e8fe085b4fcc9cd32b74b6f103608c54d7d8cd97b47c01de34f252ba3","names":[],"sources":[]},
|
||||
{"digest":"fa87537f4a9c1e25602990a8bf686b383e9e00352ec8946e16ae24ba7c1625be","names":["packages/llm/llm/src/message.ts#AssistantMessage"],"sources":["packages/llm/llm/src/message.ts:166"]},
|
||||
@@ -714,6 +717,7 @@
|
||||
"0203243b72fc867a": {"kind":"object","properties":[{"name":"kind","type":"24b10f7cdae64928","optional":false}],"indices":[]},
|
||||
"022623b9ef98ec47": {"kind":"object","properties":[{"name":"form","type":"383cf73ae4748e5b","optional":false},{"name":"kind","type":"f68c335306535a00","optional":false}],"indices":[]},
|
||||
"023a355b2be0d688": {"kind":"object","properties":[{"name":"kind","type":"254dce209e735f9c","optional":false}],"indices":[]},
|
||||
"025f11632cd02aae": {"kind":"object","properties":[{"name":"data","type":"da60ed58a8fa23d7","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"5f22f22ce033e6ce","optional":false}],"indices":[]},
|
||||
"02b2c23f2d94b028": {"kind":"object","properties":[{"name":"kind","type":"c5687b1313206a6f","optional":false}],"indices":[]},
|
||||
"0341d4c3dfcd5325": {"kind":"literal","value":"product-interaction"},
|
||||
"05205074b24d8340": {"kind":"literal","value":"action-cards"},
|
||||
@@ -952,6 +956,7 @@
|
||||
"5e6db6e24948d4a8": {"kind":"object","properties":[{"name":"data","type":"17d1afb770d99419","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"1c2686c0682e7bc5","optional":false}],"indices":[]},
|
||||
"5ebce1317eacd2c1": {"kind":"literal","value":"subagent/descriptor"},
|
||||
"5f2117d1856a5ab4": {"kind":"object","properties":[{"name":"code","type":"4cd48f3e5108bd6e","optional":false},{"name":"message","type":"4cd48f3e5108bd6e","optional":false},{"name":"offloadImages","type":"0657d3ca5ac4e7bf","optional":true},{"name":"providerRetryAfterMs","type":"0657d3ca5ac4e7bf","optional":true},{"name":"requestId","type":"4cd48f3e5108bd6e","optional":true},{"name":"status","type":"0657d3ca5ac4e7bf","optional":true}],"indices":[]},
|
||||
"5f22f22ce033e6ce": {"kind":"literal","value":"workspace-root/change"},
|
||||
"5f26a6c20b37632f": {"kind":"object","properties":[{"name":"data","type":"9a410ddf56792b2b","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"ad92f473a03ae725","optional":false}],"indices":[]},
|
||||
"5f758f3de5f00c18": {"kind":"object","properties":[{"name":"label","type":"4cd48f3e5108bd6e","optional":true},{"name":"mode","type":"d28765f87d6b6ab4","optional":false},{"name":"provider","type":"4cd48f3e5108bd6e","optional":false},{"name":"version","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
|
||||
"6085488d223aeffd": {"kind":"object","properties":[{"name":"form","type":"fee1caf8ab6a65c1","optional":false},{"name":"kind","type":"2f3f201c8846e19c","optional":false}],"indices":[]},
|
||||
|
||||
@@ -154,7 +154,11 @@ interface SessionHeader {
|
||||
readonly id: SessionId
|
||||
/** Non-negative safe-integer Unix epoch milliseconds when the session was created. */
|
||||
readonly createdAt: number
|
||||
/** Absolute working directory the session was created in (if any). */
|
||||
/**
|
||||
* Canonical absolute working directory the session was created in (if any). Producers resolve the
|
||||
* requested directory through the execution-world filesystem before recording it, so the later
|
||||
* canonical directory records of the working-directory service compare with it lexically.
|
||||
*/
|
||||
readonly cwd?: string
|
||||
/**
|
||||
* Direct creator of a subagent Session. Ordinary forks omit this field;
|
||||
|
||||
@@ -154,7 +154,11 @@ interface SessionHeader {
|
||||
readonly id: SessionId
|
||||
/** Non-negative safe-integer Unix epoch milliseconds when the session was created. */
|
||||
readonly createdAt: number
|
||||
/** Absolute working directory the session was created in (if any). */
|
||||
/**
|
||||
* Canonical absolute working directory the session was created in (if any). Producers resolve the
|
||||
* requested directory through the execution-world filesystem before recording it, so the later
|
||||
* canonical directory records of the working-directory service compare with it lexically.
|
||||
*/
|
||||
readonly cwd?: string
|
||||
/**
|
||||
* Direct creator of a subagent Session. Ordinary forks omit this field;
|
||||
|
||||
@@ -327,6 +327,28 @@ async get(name: string, options: SkillViewOptions = {}): Promise<SkillDefinition
|
||||
|
||||
Source: [`packages/skill/skill/src/index.ts`](../../packages/skill/skill/src/index.ts)
|
||||
|
||||
<a id="ctxupstreamskills--upstreamskills"></a>
|
||||
|
||||
### `ctx.upstreamSkills` — `UpstreamSkills`
|
||||
|
||||
Holds what CLI app plugins register: for each plugin, the entry skill and the download of the upstream files it indexes.
|
||||
|
||||
```ts cordis-catalog
|
||||
/**
|
||||
* Register the calling plugin's entry skill and start downloading the upstream files unless they are in place. The
|
||||
* download starts at load so that a session without a client also gets the skill; a failure is logged as a warning
|
||||
* and waits for `retry()`. The registration belongs to the calling plugin: unloading that plugin aborts the download
|
||||
* and removes the entry skill.
|
||||
* @param registration - the plugin's provider name, entry, pinned files, and optional skills directory.
|
||||
* @returns the handle the plugin's view observes and its check retries.
|
||||
* @throws when the entry has no skill name or description in its frontmatter, `skillsDir` is not a directory, or a
|
||||
* skill provider named `name` is already registered.
|
||||
*/
|
||||
register(registration: UpstreamSkillsRegistration): UpstreamSkillsHandle
|
||||
```
|
||||
|
||||
Source: [`packages/connector/upstream-skills/src/index.ts`](../../packages/connector/upstream-skills/src/index.ts)
|
||||
|
||||
<a id="skills-events"></a>
|
||||
|
||||
### `skills/*` events
|
||||
|
||||
@@ -327,6 +327,28 @@ async get(name: string, options: SkillViewOptions = {}): Promise<SkillDefinition
|
||||
|
||||
Source: [`packages/skill/skill/src/index.ts`](../../packages/skill/skill/src/index.ts)
|
||||
|
||||
<a id="ctxupstreamskills--upstreamskills"></a>
|
||||
|
||||
### `ctx.upstreamSkills` — `UpstreamSkills`
|
||||
|
||||
Holds what CLI app plugins register: for each plugin, the entry skill and the download of the upstream files it indexes.
|
||||
|
||||
```ts cordis-catalog
|
||||
/**
|
||||
* Register the calling plugin's entry skill and start downloading the upstream files unless they are in place. The
|
||||
* download starts at load so that a session without a client also gets the skill; a failure is logged as a warning
|
||||
* and waits for `retry()`. The registration belongs to the calling plugin: unloading that plugin aborts the download
|
||||
* and removes the entry skill.
|
||||
* @param registration - the plugin's provider name, entry, pinned files, and optional skills directory.
|
||||
* @returns the handle the plugin's view observes and its check retries.
|
||||
* @throws when the entry has no skill name or description in its frontmatter, `skillsDir` is not a directory, or a
|
||||
* skill provider named `name` is already registered.
|
||||
*/
|
||||
register(registration: UpstreamSkillsRegistration): UpstreamSkillsHandle
|
||||
```
|
||||
|
||||
Source: [`packages/connector/upstream-skills/src/index.ts`](../../packages/connector/upstream-skills/src/index.ts)
|
||||
|
||||
<a id="skills-events"></a>
|
||||
|
||||
### `skills/*` events
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
en: 3d828004dee084c6
|
||||
zh: f71296b677691151
|
||||
/subagents/capabilities-and-activation-requests:
|
||||
en: f09270fcd7bfa26a
|
||||
zh: 082664920b3c65e2
|
||||
en: 92cf787b52f1012a
|
||||
zh: 77bf43237d4834c4
|
||||
/subagents/local-children-and-activations:
|
||||
en: 6f87231d18d82916
|
||||
zh: 9f064b23058f8766
|
||||
|
||||
@@ -8,7 +8,7 @@ The unified activation API manages local conversations and external executions.
|
||||
|
||||
Every backend uses startActivation. Capability flags validate request options; prepareContinuable selects local Agent creation, while start selects one external execution. The model-facing tool uses parent delivery. Workflow and code mode consumers can await caller results without injecting another parent message. Historical children with unavailable descriptors remain discoverable as `mode: 'unknown'` without granting continuation capabilities; the [package README](../../packages/subagent/subagent/README.md) defines catalog persistence.
|
||||
|
||||
Optional `cwd` selects the child's initial directory; relative paths resolve against the parent's current effective directory. Omitting it captures that directory at admission. Local child Sessions retain the parent's original project, and cold resume retains their logged directory state.
|
||||
Optional Host-chosen `cwd` selects the child's initial directory; a relative path resolves against the parent's current directory. Omitting it captures that directory at admission. The model-facing delegation tools pass no directory. Local child Sessions retain the parent's original project, and cold resume retains their logged directory state.
|
||||
|
||||
```ts type-equiv
|
||||
/**
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
所有后端都使用 startActivation。能力标记校验请求选项;prepareContinuable 选择本地 Agent 创建,start 选择一次外部执行。面向模型的工具采用 parent 回传。Workflow 与 code mode 消费者可以等待 caller 结果,不额外向父代理注入消息。历史子会话的 descriptor 不可用时,以 `mode: 'unknown'` 保持可发现性,但不授予继续执行能力;[包 README](../../packages/subagent/subagent/README.zh.md) 定义目录持久化语义。
|
||||
|
||||
可选的 `cwd` 指定子级的初始目录;相对路径以父级当前有效目录为基准解析。省略时,在准入阶段捕获该目录。本地子 Session 保留父级的原始项目,冷恢复保留其日志中的目录状态。
|
||||
由 Host 选定的可选 `cwd` 指定子级的初始目录;相对路径以父级的当前目录为基准解析。省略时,在准入阶段捕获该目录。面向模型的委派工具不传目录。本地子 Session 保留父级的原始项目,冷恢复保留其日志中的目录状态。
|
||||
|
||||
```ts type-equiv
|
||||
/**
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
# After editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write docs/subsystems/working-directory.md
|
||||
/working-directory:
|
||||
en: 0882d8b4c09c2890
|
||||
zh: a75af7ce19f661fa
|
||||
en: 45832e24372ea387
|
||||
zh: 7e0f31726fa1dc4e
|
||||
/working-directory/directory-selection:
|
||||
en: b67e268cc9422d31
|
||||
zh: 4c7243c87aadcd7a
|
||||
en: 10d9f5bed386adfe
|
||||
zh: c112d1b4356166b7
|
||||
/working-directory/model-context:
|
||||
en: 9789081854cbdd35
|
||||
zh: 1f6712c4e5b9c47e
|
||||
en: 872112549d003dca
|
||||
zh: 48bfd30fdf25c234
|
||||
@@ -2,17 +2,19 @@
|
||||
|
||||
English | [中文](working-directory.zh.md)
|
||||
|
||||
A Session's active directory is owned by [`dsh-working-directory`](../../packages/session/working-directory/README.md). The immutable header identifies the original project; `working-directory/change` records the effective directory used by later directory-based operations. The generated [persistence catalog](../persistence-catalog.md) owns the event declaration.
|
||||
A Session's active directory is owned by [`dsh-working-directory`](../../packages/session/working-directory/README.md). The immutable header identifies the original project; `workspace-root/change` records each move of the directory used by later directory-based operations. The generated [persistence catalog](../persistence-catalog.md) owns the event declaration.
|
||||
|
||||
## Directory selection
|
||||
|
||||
`ctx.workingDirectory.get(session)` reads the logged value. `ensure(agent)` validates it and restores the original project when the directory disappeared. `set(agent, path)` validates and records a requested change. Sessions without a header directory use the configured runtime fallback; an unavailable fallback produces an error.
|
||||
`ctx.workingDirectory.get(session)` reads the logged value. `ensure(agent)` validates it and restores the original project when the directory disappeared. `set(agent, path)` validates and records a move that a Host operation chose, such as worktree creation, the forge panel, or an SDK request; the model has no tool that moves the directory. Sessions without a header directory use the configured runtime fallback; an unavailable fallback produces an error.
|
||||
|
||||
`get` is the one read of a Session's directory: relative paths resolve from it, and it is the workspace root for everything that follows the Session's checkout. Every change the service records is a `workspace-root/change`. A log written while the model could move the directory holds `working-directory/change` events, which have no writer now. The service ignores them: such a Session resumes in its original project, or in the directory of its last `workspace-root/change`, and the next request's context reports the directory.
|
||||
|
||||
Changes are local to one Session. Relative filesystem operations, newly started processes, instruction discovery, skills, and file completion use the active directory. Existing terminals and persistent shells retain their own directories. Sandbox writable roots and project membership remain anchored to the original project.
|
||||
|
||||
## Model context
|
||||
|
||||
The initial value and subsequent current values reach the model as required user-context snapshots, even when optional runtime context is disabled. Each committed change attempts to queue a notice through the ordinary Agent inbox; cancellation or disposal can discard notices before request admission. The directory event survives, and the next admitted request receives the current value. Directory context never enters the system prompt. [`working_directory`](../../packages/session/tool-working-directory/README.md) exposes one optional `cd` argument.
|
||||
The initial value and subsequent current values reach the model as required user-context snapshots, even when optional runtime context is disabled. Each committed change attempts to queue a notice through the ordinary Agent inbox; cancellation or disposal can discard notices before request admission. The directory event survives, and the next admitted request receives the current value. Directory context never enters the system prompt.
|
||||
|
||||
<!-- BEGIN GENERATED cordis-surface (gen-cordis-catalog.ts) — do not edit between markers -->
|
||||
|
||||
@@ -26,13 +28,17 @@ Generated from source by `scripts/gen-cordis-catalog.ts` (verified fresh by `pnp
|
||||
|
||||
### `ctx.workingDirectory` — `WorkingDirectoryService`
|
||||
|
||||
One owner for each Session's effective directory and its model-visible changes.
|
||||
One owner for each Session's directory and its model-visible changes.
|
||||
|
||||
A Session works in one directory. Relative paths resolve from it, and it is the workspace root that the write boundary, file views, and discovery follow. Only Host operations move it, through set or the recovery of ensure. The `working-directory/change` events of a log written while the model could move the directory do not move it.
|
||||
|
||||
```ts cordis-catalog
|
||||
/**
|
||||
* Read the committed directory without filesystem I/O.
|
||||
* Read the committed directory without filesystem I/O: where relative paths resolve, and the workspace
|
||||
* root of everything that follows the Session's checkout.
|
||||
* @param session - Session whose directory is requested.
|
||||
* @returns its effective absolute directory.
|
||||
* @returns the directory of the last Host move, the original project before any, or the deployment
|
||||
* default when none is recorded.
|
||||
*/
|
||||
get(session: Session): string
|
||||
|
||||
@@ -40,15 +46,17 @@ get(session: Session): string
|
||||
* Validate the current directory and restore the original project when it disappeared.
|
||||
* @param agent - live or unpublished Agent owning the Session.
|
||||
* @param signal - cancellation for filesystem inspection.
|
||||
* @returns the existing directory; recovery is committed before fulfillment.
|
||||
* A notice failure is warned without reverting the committed state.
|
||||
* @returns the existing directory; recovery is committed before fulfillment. A notice failure is
|
||||
* warned without reverting the committed state.
|
||||
* @throws {@link WorkingDirectoryError} `WORKING_DIRECTORY_UNAVAILABLE` when the original project is also
|
||||
* unavailable or the service is disposed, or the rejection of a `working-directory/access` listener.
|
||||
*/
|
||||
ensure(agent: Agent, signal?: AbortSignal): Promise<string>
|
||||
|
||||
/**
|
||||
* Change one Session's directory without changing existing processes or permissions.
|
||||
* Move one Session's directory to `path`. Existing processes keep their directories. Callers are
|
||||
* Host operations that chose the directory; a model-supplied path would move the workspace-write
|
||||
* boundary with it.
|
||||
* @param agent - live or unpublished Agent owning the Session.
|
||||
* @param path - absolute path or a path relative to its current directory.
|
||||
* @param signal - cancellation before the durable change.
|
||||
|
||||
@@ -2,17 +2,19 @@
|
||||
|
||||
[English](working-directory.md) | 中文
|
||||
|
||||
Session 的当前目录由 [`dsh-working-directory`](../../packages/session/working-directory/README.zh.md) 拥有。不可变 header 标识原始项目;`working-directory/change` 记录后续目录相关操作使用的有效目录。生成的[持久化目录](../persistence-catalog.zh.md) 拥有事件声明。
|
||||
Session 的当前目录由 [`dsh-working-directory`](../../packages/session/working-directory/README.zh.md) 拥有。不可变 header 标识原始项目;`workspace-root/change` 记录后续目录相关操作所用目录的每次移动。生成的[持久化目录](../persistence-catalog.zh.md) 拥有事件声明。
|
||||
|
||||
## 目录选择
|
||||
|
||||
`ctx.workingDirectory.get(session)` 读取日志中的值。`ensure(agent)` 验证它,并在目录消失时恢复原始项目。`set(agent, path)` 验证并记录请求的变更。header 没有目录的 Session 使用配置的运行时回退目录;回退目录不可用时返回错误。
|
||||
`ctx.workingDirectory.get(session)` 读取日志中的值。`ensure(agent)` 验证它,并在目录消失时恢复原始项目。`set(agent, path)` 验证并记录由 Host 操作选定的移动,例如创建工作树、forge 面板或 SDK 请求;模型没有可以移动目录的工具。header 没有目录的 Session 使用配置的运行时回退目录;回退目录不可用时返回错误。
|
||||
|
||||
`get` 是读取 Session 目录的唯一接口:相对路径从它解析,跟随 Session 检出的一切也以它为工作区根。服务记录的每次变更都是 `workspace-root/change`。写于模型还能移动目录时期的日志含有 `working-directory/change` 事件,现在没有写入方。服务忽略它们:这样的 Session 在原始项目中恢复,或在最近一条 `workspace-root/change` 的目录中恢复,下一次请求的上下文会报告该目录。
|
||||
|
||||
变更仅影响一个 Session。相对路径文件系统操作、新启动的进程、指令发现、技能和文件补全使用当前目录。已有终端和持久 shell 保留自己的目录。沙箱可写根目录与项目归属继续绑定原始项目。
|
||||
|
||||
## 模型上下文
|
||||
|
||||
初始值与后续当前值通过必需的用户上下文快照到达模型,即使可选运行时上下文被禁用也不例外。每次已提交变更都会尝试通过普通 Agent 收件箱排入通知;取消或销毁可能丢弃尚未进入请求的通知。目录事件仍然保留,下一次获准进入的请求会收到当前值。目录上下文不进入系统提示词。[`working_directory`](../../packages/session/tool-working-directory/README.zh.md) 提供一个可选的 `cd` 参数。
|
||||
初始值与后续当前值通过必需的用户上下文快照到达模型,即使可选运行时上下文被禁用也不例外。每次已提交变更都会尝试通过普通 Agent 收件箱排入通知;取消或销毁可能丢弃尚未进入请求的通知。目录事件仍然保留,下一次获准进入的请求会收到当前值。目录上下文不进入系统提示词。
|
||||
|
||||
<!-- BEGIN GENERATED cordis-surface (gen-cordis-catalog.ts) — do not edit between markers -->
|
||||
|
||||
@@ -26,13 +28,17 @@ Generated from source by `scripts/gen-cordis-catalog.ts` (verified fresh by `pnp
|
||||
|
||||
### `ctx.workingDirectory` — `WorkingDirectoryService`
|
||||
|
||||
One owner for each Session's effective directory and its model-visible changes.
|
||||
One owner for each Session's directory and its model-visible changes.
|
||||
|
||||
A Session works in one directory. Relative paths resolve from it, and it is the workspace root that the write boundary, file views, and discovery follow. Only Host operations move it, through set or the recovery of ensure. The `working-directory/change` events of a log written while the model could move the directory do not move it.
|
||||
|
||||
```ts cordis-catalog
|
||||
/**
|
||||
* Read the committed directory without filesystem I/O.
|
||||
* Read the committed directory without filesystem I/O: where relative paths resolve, and the workspace
|
||||
* root of everything that follows the Session's checkout.
|
||||
* @param session - Session whose directory is requested.
|
||||
* @returns its effective absolute directory.
|
||||
* @returns the directory of the last Host move, the original project before any, or the deployment
|
||||
* default when none is recorded.
|
||||
*/
|
||||
get(session: Session): string
|
||||
|
||||
@@ -40,15 +46,17 @@ get(session: Session): string
|
||||
* Validate the current directory and restore the original project when it disappeared.
|
||||
* @param agent - live or unpublished Agent owning the Session.
|
||||
* @param signal - cancellation for filesystem inspection.
|
||||
* @returns the existing directory; recovery is committed before fulfillment.
|
||||
* A notice failure is warned without reverting the committed state.
|
||||
* @returns the existing directory; recovery is committed before fulfillment. A notice failure is
|
||||
* warned without reverting the committed state.
|
||||
* @throws {@link WorkingDirectoryError} `WORKING_DIRECTORY_UNAVAILABLE` when the original project is also
|
||||
* unavailable or the service is disposed, or the rejection of a `working-directory/access` listener.
|
||||
*/
|
||||
ensure(agent: Agent, signal?: AbortSignal): Promise<string>
|
||||
|
||||
/**
|
||||
* Change one Session's directory without changing existing processes or permissions.
|
||||
* Move one Session's directory to `path`. Existing processes keep their directories. Callers are
|
||||
* Host operations that chose the directory; a model-supplied path would move the workspace-write
|
||||
* boundary with it.
|
||||
* @param agent - live or unpublished Agent owning the Session.
|
||||
* @param path - absolute path or a path relative to its current directory.
|
||||
* @param signal - cancellation before the durable change.
|
||||
|
||||
Loaded 100 of 1034 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user