Files
deepseek-harness/docs/experimental-persistence-catalog.md
T
LegGasai a850cda7fd feat(worktree): add enter_worktree for existing worktrees of the pool
`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.
2026-11-13 20:18:56 +08:00

35 lines
6.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!-- Generated by scripts/gen-persistence-catalog.ts — do not edit by hand.
Run `pnpm run gen-persistence-catalog` to regenerate. -->
# Experimental Plugin Record Catalog
English | [中文](experimental-persistence-catalog.zh.md)
These current-source PluginRecordMap declarations describe ignorable, log-only records owned by experimental packages. Payload annotations link to their owning source without expanding referenced types. Records stay outside the known-event set, persistence schema fingerprints, and compatibility history; format migrations retain them on a best-effort basis.
Run `pnpm run gen-persistence-catalog` to regenerate both persistence catalogs, their language pairs, and associated artifacts. `pnpm run verify-persistence-catalog` checks all generated files.
Shared Session event declarations and resolved schemas appear in the [Session persistence event catalog](persistence-catalog.md).
| Record | Owner | Purpose | Payload and source |
|---|---|---|---|
| `plugin:action-cards/decision` | `@deepseek-ai/dsh-action-cards` | Dismissals and kind-defined progress of action cards. | <code>ActionCardDecision</code> · [`packages/experimental/action-cards/src/types.ts`](../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. | <code>WorktreeRecord</code> · [`packages/experimental/client-ui-forge/src/types.ts`](../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. | <code>BindingRecord</code> · [`packages/experimental/forge-session/src/types.ts`](../packages/experimental/forge-session/src/types.ts) |
| `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' &#124; '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) |
| `plugin:timeline/import` | `@deepseek-ai/dsh-timeline` | Restore a user-selected task tree and its discussions. | <code>TreeRecord &amp; { annotations: Annotation[]; prepared?: true; continuation?: z.infer&lt;typeof importContinuationSchema&gt;; }</code> · [`packages/experimental/timeline/src/records.ts`](../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. | <code>{ version: 1; sessionId: SessionId; callId: string; }</code> · [`packages/experimental/timeline/src/records.ts`](../packages/experimental/timeline/src/records.ts) |
| `plugin:timeline/priority` | `@deepseek-ai/dsh-timeline` | Save a priority change made by the user. | <code>{ version: 1; sessionId: SessionId; treeId: Tree['id']; taskId: Task['id']; priority: Priority; createdAt: number; }</code> · [`packages/experimental/timeline/src/records.ts`](../packages/experimental/timeline/src/records.ts) |
| `plugin:timeline/remove` | `@deepseek-ai/dsh-timeline` | Remove a tree and its discussions from the current plan. | <code>{ version: 1; sessionId: SessionId; treeId: Tree['id']; }</code> · [`packages/experimental/timeline/src/records.ts`](../packages/experimental/timeline/src/records.ts) |
| `plugin:timeline/reply` | `@deepseek-ai/dsh-timeline` | Save the agent’s reply to one discussion. | <code>{ version: 1; sessionId: SessionId; id: Annotation['id']; text: string; createdAt: number; }</code> · [`packages/experimental/timeline/src/records.ts`](../packages/experimental/timeline/src/records.ts) |
| `plugin:timeline/report` | `@deepseek-ai/dsh-timeline` | Save a validated interval report and its coverage. | <code>ReportRecord</code> · [`packages/experimental/timeline/src/records.ts`](../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. | <code>{ version: 1; sessionId: SessionId; id: IntervalReport['id']; contextSeq: number; prefixLength: number; request: StoredRequest; }</code> · [`packages/experimental/timeline/src/records.ts`](../packages/experimental/timeline/src/records.ts) |
| `plugin:timeline/select` | `@deepseek-ai/dsh-timeline` | Select a saved task tree for subsequent work. | <code>SelectionRecord</code> · [`packages/experimental/timeline/src/records.ts`](../packages/experimental/timeline/src/records.ts) |
| `plugin:timeline/tree` | `@deepseek-ai/dsh-timeline` | Save a task tree and the tool call that changed it. | <code>TreeRecord</code> · [`packages/experimental/timeline/src/records.ts`](../packages/experimental/timeline/src/records.ts) |