`ctx.worktrees.enter(agent, { name })` and the model tool `enter_worktree`
move a Session into an existing worktree in the pool of the checkout it works
in. The directory must resolve inside that pool and be a registered worktree
of the repository; otherwise the call fails with the new code
`WORKTREE_NOT_FOUND` and the Session stays where it is. Entry changes neither
Git state nor files.
Each entry appends a `plugin:worktree/entered` record. `exit` reads it to
return the Session to the checkout it entered from, so `exit_worktree` now
also leaves entered worktrees. Archive reclamation still removes only
checkouts a Session created. The `worktree` projection keeps one entry per
entered directory; its state version is 2.
The recorded worktree scenario enters the first worktree again, reads the
file it wrote there, and leaves.
6.5 KiB
6.5 KiB
实验性插件记录目录
English | 中文
这些当前源码中的 PluginRecordMap 声明描述实验性包拥有的 ignorable、仅日志记录。载荷类型注解链接到所属源码,不展开引用类型。记录不进入已知事件集合、持久化 schema 指纹或兼容性历史;格式迁移以尽力而为的方式保留它们。
运行 pnpm run gen-persistence-catalog 可重新生成两份持久化目录及其中英配对和关联制品。pnpm run verify-persistence-catalog 检查所有生成文件。
共享 Session 事件声明与解析后的 schema 见会话持久化事件目录。
| 记录 | 所属包 | 用途 | 载荷与源码 |
|---|---|---|---|
plugin:action-cards/decision |
@deepseek-ai/dsh-action-cards |
Dismissals and kind-defined progress of action cards. | ActionCardDecision · packages/experimental/action-cards/src/types.ts |
plugin:client-ui-forge/worktree |
@deepseek-ai/dsh-experimental-client-ui-forge |
A request, withdrawal, or creation of the worktree a Session starts in. | WorktreeRecord · packages/experimental/client-ui-forge/src/types.ts |
plugin:forge-session/binding |
@deepseek-ai/dsh-experimental-forge-session |
A caller or discovery action that binds, restores, or hides one change request. | BindingRecord · packages/experimental/forge-session/src/types.ts |
plugin:translator/request |
@deepseek-ai/dsh-experimental-translator |
Provider-independent translation input, retained before dispatch. | TranslationRequestRecord · packages/experimental/translator/src/types.ts |
plugin:translator/result |
@deepseek-ai/dsh-experimental-translator |
Successful translation, retained before it is returned to the consumer. | TranslationResultRecord · 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. | CreatedWorktree · 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. | EnteredWorktree · packages/experimental/worktree/src/projection.ts |
plugin:timeline/annotation |
@deepseek-ai/dsh-timeline |
Record a discussion or control request from the user. | { version: 1; sessionId: SessionId; annotation: Annotation; } · packages/experimental/timeline/src/records.ts |
plugin:timeline/delivery |
@deepseek-ai/dsh-timeline |
Record whether the agent accepted a control request. | { version: 1; sessionId: SessionId; id: Annotation['id']; delivery: 'accepted' | 'unknown'; } · packages/experimental/timeline/src/records.ts |
plugin:timeline/failure |
@deepseek-ai/dsh-timeline |
Record a failed interval report attempt. | { version: 1; sessionId: SessionId; id: IntervalReport['id']; message: string; } · packages/experimental/timeline/src/records.ts |
plugin:timeline/import |
@deepseek-ai/dsh-timeline |
Restore a user-selected task tree and its discussions. | TreeRecord & { annotations: Annotation[]; prepared?: true; continuation?: z.infer<typeof importContinuationSchema>; } · packages/experimental/timeline/src/records.ts |
plugin:timeline/import-ready |
@deepseek-ai/dsh-timeline |
Publish an import after its full payload has reached durable storage. | { version: 1; sessionId: SessionId; callId: string; } · packages/experimental/timeline/src/records.ts |
plugin:timeline/priority |
@deepseek-ai/dsh-timeline |
Save a priority change made by the user. | { version: 1; sessionId: SessionId; treeId: Tree['id']; taskId: Task['id']; priority: Priority; createdAt: number; } · packages/experimental/timeline/src/records.ts |
plugin:timeline/remove |
@deepseek-ai/dsh-timeline |
Remove a tree and its discussions from the current plan. | { version: 1; sessionId: SessionId; treeId: Tree['id']; } · packages/experimental/timeline/src/records.ts |
plugin:timeline/reply |
@deepseek-ai/dsh-timeline |
Save the agent’s reply to one discussion. | { version: 1; sessionId: SessionId; id: Annotation['id']; text: string; createdAt: number; } · packages/experimental/timeline/src/records.ts |
plugin:timeline/report |
@deepseek-ai/dsh-timeline |
Save a validated interval report and its coverage. | ReportRecord · packages/experimental/timeline/src/records.ts |
plugin:timeline/request |
@deepseek-ai/dsh-timeline |
Record the report request with its reference to a reused Session prefix. | { version: 1; sessionId: SessionId; id: IntervalReport['id']; contextSeq: number; prefixLength: number; request: StoredRequest; } · packages/experimental/timeline/src/records.ts |
plugin:timeline/select |
@deepseek-ai/dsh-timeline |
Select a saved task tree for subsequent work. | SelectionRecord · packages/experimental/timeline/src/records.ts |
plugin:timeline/tree |
@deepseek-ai/dsh-timeline |
Save a task tree and the tool call that changed it. | TreeRecord · packages/experimental/timeline/src/records.ts |