feat(experimental): propose personalized pages through action cards

Personalized pages registers the create_personalized_page card kind with
its create, keep, undo, cancel and restore handlers and drops its own
projection, Remote and status notice. The skill now ends with a
propose_action call. The Client package contributes only the page card
body. The persistence record moves from the page status source to the
shared action-cards source and decision record.
This commit is contained in:
ZiyaZhang committed 2026-10-22 06:36:30 -07:00
1 parent 9980af2d48
commit 9b04d772b9
67 files changed
+1579 -2002

No files matched your search

+2 -2
View File
@@ -6,5 +6,5 @@
en: 41d772192075e133
zh: 5ef3da69b4de1d8a
/capability-seams-and-core-services:
en: f880530c8155d5a3
zh: 9c9795299f4c3b72
en: 02cd44eb5166d665
zh: de0ee0e2ccd07a2a
+7 -5
View File
@@ -7,9 +7,10 @@ A service can be a core spine service, a swappable capability seam, a bundle/com
```mermaid
flowchart LR
pkg_experimental_action_cards["experimental-action-cards"]
svc_actionCards["ctx.actionCards<br/>Optional action cards"]
pkg_experimental_creation_recommendations["experimental-creation-recommendations"]
svc_creationRecommendations["ctx.creationRecommendations<br/>Explicit-need interface creation"]
pkg_experimental_client_ui_creation_recommendations["experimental-client-ui-creation-recommendations"]
pkg_experimental_client_ui_action_cards["experimental-client-ui-action-cards"]
pkg_headless["headless"]
svc_headlessStartup["ctx.headlessStartup<br/>Headless invocation options"]
pkg_experimental_client_ui_cot_translation["experimental-client-ui-cot-translation"]
@@ -344,6 +345,7 @@ flowchart LR
pkg_deepseek_account --> svc_deepseekAccount
pkg_deepseek_account_platform --> svc_deepseekAccount
pkg_deepseek_llm_api_extensions --> svc_deepseekLlmApiExtensions
pkg_experimental_action_cards --> svc_actionCards
pkg_experimental_agent_team --> svc_agentTeams
pkg_experimental_api_speech_to_text --> svc_speechController
pkg_experimental_browser_use_chrome_devtools_mcp --> svc_browserUse
@@ -353,7 +355,6 @@ flowchart LR
pkg_experimental_client_ui_cot_translation --> svc_cotTranslation
pkg_experimental_computer_use_cua_driver_mcp --> svc_computerUse
pkg_experimental_computer_use_cua_driver_native --> svc_computerUse
pkg_experimental_creation_recommendations --> svc_creationRecommendations
pkg_experimental_ptc_runtime_python --> svc_ptcRuntime
pkg_experimental_speech_to_text --> svc_speechToText
pkg_experimental_speech_to_text_sensevoice --> svc_speechToText
@@ -461,6 +462,8 @@ flowchart LR
pkg_working_directory --> svc_workingDirectory
pkg_workspace --> svc_workspaceRegistry
pkg_workspace_changes --> svc_workspaceChanges
svc_actionCards --> pkg_experimental_client_ui_action_cards
svc_actionCards --> pkg_experimental_creation_recommendations
svc_agentDefaultModel --> pkg_api_session_controller
svc_agentDefaultModel --> pkg_headless
svc_agentLoop --> pkg_base
@@ -489,7 +492,6 @@ flowchart LR
svc_connection --> pkg_api_gateway
svc_connection --> pkg_host_frontend_static
svc_cordisInspect --> pkg_tool_cordis
svc_creationRecommendations --> pkg_experimental_client_ui_creation_recommendations
svc_credentials --> pkg_api_settings_controller
svc_credentials --> pkg_llm_deepseek
svc_credentials --> pkg_llm_pi_ai
@@ -624,7 +626,7 @@ flowchart LR
| ctx key | Role | Owner | Implementations | Direct consumers | Companion plugins | Note |
| --- | --- | --- | --- | --- | --- | --- |
| `ctx.creationRecommendations` | `service` | [`experimental-creation-recommendations`](../packages/experimental/creation-recommendations) | - | [`experimental-client-ui-creation-recommendations`](../packages/experimental/client-ui-creation-recommendations) | - | Starts a Creator after a human choice and owns installation and removal of the new bundle. |
| `ctx.actionCards` | `service` | [`experimental-action-cards`](../packages/experimental/action-cards) | - | [`experimental-creation-recommendations`](../packages/experimental/creation-recommendations), [`experimental-client-ui-action-cards`](../packages/experimental/client-ui-action-cards) | - | Owns the card tool, card state, user actions and status notices; card kinds register their actions and handlers. |
| `ctx.headlessStartup` | `core` | [`headless`](../packages/bundle/headless) | - | [`headless`](../packages/bundle/headless) | - | Supplies parsed task and run options to the headless runner and its sandbox-policy configuration. |
| `ctx.cotTranslation` | `service` | [`experimental-client-ui-cot-translation`](../packages/experimental/client-ui-cot-translation) | - | - | - | Serves reasoning translations, reuses saved results, and joins ordinary Session activation for uncached inactive Sessions. |
| `ctx.translator` | `service` | [`experimental-translator`](../packages/experimental/translator) | - | [`experimental-client-ui-cot-translation`](../packages/experimental/client-ui-cot-translation) | - | Resolves Google or Bing requests and retains shared experimental records through the active Session writer. |
+7 -5
View File
@@ -9,9 +9,10 @@
```mermaid
flowchart LR
pkg_experimental_action_cards["experimental-action-cards"]
svc_actionCards["ctx.actionCards<br/>Optional action cards"]
pkg_experimental_creation_recommendations["experimental-creation-recommendations"]
svc_creationRecommendations["ctx.creationRecommendations<br/>Explicit-need interface creation"]
pkg_experimental_client_ui_creation_recommendations["experimental-client-ui-creation-recommendations"]
pkg_experimental_client_ui_action_cards["experimental-client-ui-action-cards"]
pkg_headless["headless"]
svc_headlessStartup["ctx.headlessStartup<br/>Headless invocation options"]
pkg_experimental_client_ui_cot_translation["experimental-client-ui-cot-translation"]
@@ -346,6 +347,7 @@ flowchart LR
pkg_deepseek_account --> svc_deepseekAccount
pkg_deepseek_account_platform --> svc_deepseekAccount
pkg_deepseek_llm_api_extensions --> svc_deepseekLlmApiExtensions
pkg_experimental_action_cards --> svc_actionCards
pkg_experimental_agent_team --> svc_agentTeams
pkg_experimental_api_speech_to_text --> svc_speechController
pkg_experimental_browser_use_chrome_devtools_mcp --> svc_browserUse
@@ -355,7 +357,6 @@ flowchart LR
pkg_experimental_client_ui_cot_translation --> svc_cotTranslation
pkg_experimental_computer_use_cua_driver_mcp --> svc_computerUse
pkg_experimental_computer_use_cua_driver_native --> svc_computerUse
pkg_experimental_creation_recommendations --> svc_creationRecommendations
pkg_experimental_ptc_runtime_python --> svc_ptcRuntime
pkg_experimental_speech_to_text --> svc_speechToText
pkg_experimental_speech_to_text_sensevoice --> svc_speechToText
@@ -463,6 +464,8 @@ flowchart LR
pkg_working_directory --> svc_workingDirectory
pkg_workspace --> svc_workspaceRegistry
pkg_workspace_changes --> svc_workspaceChanges
svc_actionCards --> pkg_experimental_client_ui_action_cards
svc_actionCards --> pkg_experimental_creation_recommendations
svc_agentDefaultModel --> pkg_api_session_controller
svc_agentDefaultModel --> pkg_headless
svc_agentLoop --> pkg_base
@@ -491,7 +494,6 @@ flowchart LR
svc_connection --> pkg_api_gateway
svc_connection --> pkg_host_frontend_static
svc_cordisInspect --> pkg_tool_cordis
svc_creationRecommendations --> pkg_experimental_client_ui_creation_recommendations
svc_credentials --> pkg_api_settings_controller
svc_credentials --> pkg_llm_deepseek
svc_credentials --> pkg_llm_pi_ai
@@ -626,7 +628,7 @@ flowchart LR
| ctx 键 | 角色 | 所属包 | 实现 | 直接消费方 | 配套插件 | 说明 |
| --- | --- | --- | --- | --- | --- | --- |
| `ctx.creationRecommendations` | `service` | [`experimental-creation-recommendations`](../packages/experimental/creation-recommendations) | - | [`experimental-client-ui-creation-recommendations`](../packages/experimental/client-ui-creation-recommendations) | - | 经用户选择后启动 Creator,并负责新 Bundle 的安装和移除。 |
| `ctx.actionCards` | `service` | [`experimental-action-cards`](../packages/experimental/action-cards) | - | [`experimental-creation-recommendations`](../packages/experimental/creation-recommendations), [`experimental-client-ui-action-cards`](../packages/experimental/client-ui-action-cards) | - | 负责卡片工具、卡片状态、用户操作和状态通知;各卡片种类注册自己的动作和处理器。 |
| `ctx.headlessStartup` | `core` | [`headless`](../packages/bundle/headless) | - | [`headless`](../packages/bundle/headless) | - | 将解析后的任务和运行选项提供给无界面运行器及其 sandbox-policy 配置。 |
| `ctx.cotTranslation` | `service` | [`experimental-client-ui-cot-translation`](../packages/experimental/client-ui-cot-translation) | - | - | - | 为展开的思考内容提供有界的 Session 翻译请求,不改变模型可见历史。 |
| `ctx.translator` | `service` | [`experimental-translator`](../packages/experimental/translator) | - | [`experimental-client-ui-cot-translation`](../packages/experimental/client-ui-cot-translation) | - | 解析 Google 或 Bing 请求,并可选保留统一的实验性 Session 记录。 |
+17 -15
View File
@@ -843,6 +843,21 @@ export interface Config {
```
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-deepseek-account-platform -->
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-experimental-action-cards -->
<a id="deepseek-aidsh-experimental-action-cards"></a>
## `@deepseek-ai/dsh-experimental-action-cards`
- `inject`: `tools` · `agents` · `sessionProjections` · `remoteAccess`
- `refs`: `z` (`zod`)
- `source`: [`packages/experimental/action-cards/src/index.ts:23`](../packages/experimental/action-cards/src/index.ts)
```ts config-catalog
/** Validated card limits after schema defaults. */
export type Config = z.infer<typeof Config>
```
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-experimental-action-cards -->
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-experimental-agent-team -->
<a id="deepseek-aidsh-experimental-agent-team"></a>
@@ -1036,20 +1051,6 @@ export interface Config {
```
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-experimental-computer-use-cua-driver-mcp -->
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-experimental-creation-recommendations -->
<a id="deepseek-aidsh-experimental-creation-recommendations"></a>
## `@deepseek-ai/dsh-experimental-creation-recommendations`
- `refs`: `z` (`zod`)
- `source`: [`packages/experimental/creation-recommendations/src/index.ts:34`](../packages/experimental/creation-recommendations/src/index.ts)
```ts config-catalog
/** Validated card limits after schema defaults. */
export type Config = z.infer<typeof Config>
```
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-experimental-creation-recommendations -->
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-experimental-cua-macos -->
<a id="deepseek-aidsh-experimental-cua-macos"></a>
@@ -4776,11 +4777,13 @@ These load from a `cordis.yml` entry with no `config:` block; they declare no co
| `@deepseek-ai/dsh-deepseek-llm-api-extensions` | — | [`packages/llm/deepseek-llm-api-extensions/src/index.ts`](../packages/llm/deepseek-llm-api-extensions/src/index.ts) |
| `@deepseek-ai/dsh-deliverable-file-references` | `systemPrompt` | [`packages/deliverables/deliverable-file-references/src/index.ts`](../packages/deliverables/deliverable-file-references/src/index.ts) |
| `@deepseek-ai/dsh-experimental-auto-review` | `approval` · `llm` · `permissionPresets` · `sessions` · `tools` · `workingDirectory` | [`packages/experimental/auto-review/src/index.ts`](../packages/experimental/auto-review/src/index.ts) |
| `@deepseek-ai/dsh-experimental-client-ui-action-cards` | — | [`packages/experimental/client-ui-action-cards/src/index.ts`](../packages/experimental/client-ui-action-cards/src/index.ts) |
| `@deepseek-ai/dsh-experimental-client-ui-agent-team` | — | [`packages/experimental/client-ui-agent-team/src/index.ts`](../packages/experimental/client-ui-agent-team/src/index.ts) |
| `@deepseek-ai/dsh-experimental-client-ui-claude-code-mods` | — | [`packages/experimental/client-ui-claude-code-mods/src/index.ts`](../packages/experimental/client-ui-claude-code-mods/src/index.ts) |
| `@deepseek-ai/dsh-experimental-client-ui-creation-recommendations` | — | [`packages/experimental/client-ui-creation-recommendations/src/index.ts`](../packages/experimental/client-ui-creation-recommendations/src/index.ts) |
| `@deepseek-ai/dsh-experimental-client-ui-voice-input` | — | [`packages/experimental/client-ui-voice-input/src/index.ts`](../packages/experimental/client-ui-voice-input/src/index.ts) |
| `@deepseek-ai/dsh-experimental-computer-use-cua-driver-native` | `computerUse` · `tools` · `systemPrompt` | [`packages/experimental/computer-use-cua-driver-native/src/index.ts`](../packages/experimental/computer-use-cua-driver-native/src/index.ts) |
| `@deepseek-ai/dsh-experimental-creation-recommendations` | `tools` · `pluginManager` · `agents` · `subagents` · `profileContext` · `skills` · `actionCards` | [`packages/experimental/creation-recommendations/src/index.ts`](../packages/experimental/creation-recommendations/src/index.ts) |
| `@deepseek-ai/dsh-experimental-session-inspector` | — | [`packages/experimental/session-inspector/src/index.ts`](../packages/experimental/session-inspector/src/index.ts) |
| `@deepseek-ai/dsh-experimental-tool-worktree` | `tools` · `worktrees` | [`packages/experimental/tool-worktree/src/index.ts`](../packages/experimental/tool-worktree/src/index.ts) |
| `@deepseek-ai/dsh-fs-observation-policy` | — | [`packages/fs/fs-observation-policy/src/index.ts`](../packages/fs/fs-observation-policy/src/index.ts) |
@@ -4915,7 +4918,6 @@ Imported as libraries by other packages; a `cordis.yml` cannot load them.
| `@deepseek-ai/dsh-typert-generator` | — | [`packages/typert/generator/src/index.ts`](../packages/typert/generator/src/index.ts) |
| `@deepseek-ai/dsh-typert-protocol` | — | [`packages/typert/protocol/src/index.ts`](../packages/typert/protocol/src/index.ts) |
| `@deepseek-ai/dsh-typert-registry` | — | [`packages/typert/registry/src/index.ts`](../packages/typert/registry/src/index.ts) |
| `@deepseek-ai/dsh-util-action-block` | — | [`packages/util/action-block/src/index.ts`](../packages/util/action-block/src/index.ts) |
| `@deepseek-ai/dsh-util-code-language` | — | [`packages/util/code-language/src/index.ts`](../packages/util/code-language/src/index.ts) |
| `@deepseek-ai/dsh-util-crypto` | — | [`packages/util/crypto/src/index.ts`](../packages/util/crypto/src/index.ts) |
| `@deepseek-ai/dsh-util-file-drag` | — | [`packages/util/file-drag/src/index.ts`](../packages/util/file-drag/src/index.ts) |
+17 -15
View File
@@ -845,6 +845,21 @@ export interface Config {
```
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-deepseek-account-platform -->
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-experimental-action-cards -->
<a id="deepseek-aidsh-experimental-action-cards"></a>
## `@deepseek-ai/dsh-experimental-action-cards`
- `inject`: `tools` · `agents` · `sessionProjections` · `remoteAccess`
- `refs`: `z` (`zod`)
- `source`: [`packages/experimental/action-cards/src/index.ts:23`](../packages/experimental/action-cards/src/index.ts)
```ts config-catalog
/** Validated card limits after schema defaults. */
export type Config = z.infer<typeof Config>
```
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-experimental-action-cards -->
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-experimental-agent-team -->
<a id="deepseek-aidsh-experimental-agent-team"></a>
@@ -1038,20 +1053,6 @@ export interface Config {
```
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-experimental-computer-use-cua-driver-mcp -->
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-experimental-creation-recommendations -->
<a id="deepseek-aidsh-experimental-creation-recommendations"></a>
## `@deepseek-ai/dsh-experimental-creation-recommendations`
- `refs`: `z` (`zod`)
- `source`: [`packages/experimental/creation-recommendations/src/index.ts:34`](../packages/experimental/creation-recommendations/src/index.ts)
```ts config-catalog
/** Validated card limits after schema defaults. */
export type Config = z.infer<typeof Config>
```
<!-- END GENERATED config-catalog:@deepseek-ai/dsh-experimental-creation-recommendations -->
<!-- BEGIN GENERATED config-catalog:@deepseek-ai/dsh-experimental-cua-macos -->
<a id="deepseek-aidsh-experimental-cua-macos"></a>
@@ -4778,11 +4779,13 @@ export interface Config {
| `@deepseek-ai/dsh-deepseek-llm-api-extensions` | — | [`packages/llm/deepseek-llm-api-extensions/src/index.ts`](../packages/llm/deepseek-llm-api-extensions/src/index.ts) |
| `@deepseek-ai/dsh-deliverable-file-references` | `systemPrompt` | [`packages/deliverables/deliverable-file-references/src/index.ts`](../packages/deliverables/deliverable-file-references/src/index.ts) |
| `@deepseek-ai/dsh-experimental-auto-review` | `approval` · `llm` · `permissionPresets` · `sessions` · `tools` · `workingDirectory` | [`packages/experimental/auto-review/src/index.ts`](../packages/experimental/auto-review/src/index.ts) |
| `@deepseek-ai/dsh-experimental-client-ui-action-cards` | — | [`packages/experimental/client-ui-action-cards/src/index.ts`](../packages/experimental/client-ui-action-cards/src/index.ts) |
| `@deepseek-ai/dsh-experimental-client-ui-agent-team` | — | [`packages/experimental/client-ui-agent-team/src/index.ts`](../packages/experimental/client-ui-agent-team/src/index.ts) |
| `@deepseek-ai/dsh-experimental-client-ui-claude-code-mods` | — | [`packages/experimental/client-ui-claude-code-mods/src/index.ts`](../packages/experimental/client-ui-claude-code-mods/src/index.ts) |
| `@deepseek-ai/dsh-experimental-client-ui-creation-recommendations` | — | [`packages/experimental/client-ui-creation-recommendations/src/index.ts`](../packages/experimental/client-ui-creation-recommendations/src/index.ts) |
| `@deepseek-ai/dsh-experimental-client-ui-voice-input` | — | [`packages/experimental/client-ui-voice-input/src/index.ts`](../packages/experimental/client-ui-voice-input/src/index.ts) |
| `@deepseek-ai/dsh-experimental-computer-use-cua-driver-native` | `computerUse` · `tools` · `systemPrompt` | [`packages/experimental/computer-use-cua-driver-native/src/index.ts`](../packages/experimental/computer-use-cua-driver-native/src/index.ts) |
| `@deepseek-ai/dsh-experimental-creation-recommendations` | `tools` · `pluginManager` · `agents` · `subagents` · `profileContext` · `skills` · `actionCards` | [`packages/experimental/creation-recommendations/src/index.ts`](../packages/experimental/creation-recommendations/src/index.ts) |
| `@deepseek-ai/dsh-experimental-session-inspector` | — | [`packages/experimental/session-inspector/src/index.ts`](../packages/experimental/session-inspector/src/index.ts) |
| `@deepseek-ai/dsh-experimental-tool-worktree` | `tools` · `worktrees` | [`packages/experimental/tool-worktree/src/index.ts`](../packages/experimental/tool-worktree/src/index.ts) |
| `@deepseek-ai/dsh-fs-observation-policy` | — | [`packages/fs/fs-observation-policy/src/index.ts`](../packages/fs/fs-observation-policy/src/index.ts) |
@@ -4917,7 +4920,6 @@ export interface Config {
| `@deepseek-ai/dsh-typert-generator` | — | [`packages/typert/generator/src/index.ts`](../packages/typert/generator/src/index.ts) |
| `@deepseek-ai/dsh-typert-protocol` | — | [`packages/typert/protocol/src/index.ts`](../packages/typert/protocol/src/index.ts) |
| `@deepseek-ai/dsh-typert-registry` | — | [`packages/typert/registry/src/index.ts`](../packages/typert/registry/src/index.ts) |
| `@deepseek-ai/dsh-util-action-block` | — | [`packages/util/action-block/src/index.ts`](../packages/util/action-block/src/index.ts) |
| `@deepseek-ai/dsh-util-code-language` | — | [`packages/util/code-language/src/index.ts`](../packages/util/code-language/src/index.ts) |
| `@deepseek-ai/dsh-util-crypto` | — | [`packages/util/crypto/src/index.ts`](../packages/util/crypto/src/index.ts) |
| `@deepseek-ai/dsh-util-file-drag` | — | [`packages/util/file-drag/src/index.ts`](../packages/util/file-drag/src/index.ts) |
+3 -3
View File
@@ -12,12 +12,12 @@ This matrix shows which packages dispatch each harness-owned event and which pac
| `agent-preset/selected` | `emit` | [`packages/preset/agent-preset-registry/src/types.ts:66`](../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:399`](../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:290`](../packages/core/agent/src/runtime-types.ts) | [`agent`](../packages/core/agent) (`serial`) | `agent-team`, `browser-use-runtime`, `claude-code-mods`, `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), [`loader-smoke`](../packages/test-support/loader-smoke), [`permission-presets`](../packages/interaction/permission-presets), `session-controller`, `tool-agent-team`, [`tool-subagent`](../packages/subagent/tool-subagent) |
| `agent/disposed` | `emit` | [`packages/core/agent/src/runtime-types.ts:299`](../packages/core/agent/src/runtime-types.ts) | [`agent`](../packages/core/agent) (`events.dispatch`) | [`agent-loop`](../packages/core/agent-loop), `claude-code-mods`, `creation-recommendations`, [`file-reference-local`](../packages/context/file-reference-local), [`goal-round-driver`](../packages/goal/goal-round-driver), `session-controller`, [`subagent`](../packages/subagent/subagent), `tool-agent-team`, [`tool-subagent`](../packages/subagent/tool-subagent) |
| `agent/disposed` | `emit` | [`packages/core/agent/src/runtime-types.ts:299`](../packages/core/agent/src/runtime-types.ts) | [`agent`](../packages/core/agent) (`events.dispatch`) | `action-cards`, [`agent-loop`](../packages/core/agent-loop), `claude-code-mods`, `creation-recommendations`, [`file-reference-local`](../packages/context/file-reference-local), [`goal-round-driver`](../packages/goal/goal-round-driver), `session-controller`, [`subagent`](../packages/subagent/subagent), `tool-agent-team`, [`tool-subagent`](../packages/subagent/tool-subagent) |
| `agent/error` | `emit` | [`packages/core/agent/src/runtime-types.ts:429`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`emit`) | [`acp`](../packages/acp/acp), [`deepseek-account`](../packages/credentials/deepseek-account), [`goal-round-driver`](../packages/goal/goal-round-driver), [`headless`](../packages/bundle/headless), `server`, `session-controller`, [`session-telemetry`](../packages/session/session-telemetry), [`subagent`](../packages/subagent/subagent) |
| `agent/inbox/claimed` | `emit` | [`packages/core/agent/src/runtime-types.ts:328`](../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:336`](../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) |
| `agent/inbox/inserted` | `emit` | [`packages/core/agent/src/runtime-types.ts:317`](../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), [`tool-jobs`](../packages/jobs/tool-jobs) |
| `agent/pre-step` | `waterfall` | [`packages/core/agent/src/runtime-types.ts:350`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`waterfall`) | [`agent`](../packages/core/agent), [`agent-instructions`](../packages/context/agent-instructions), `claude-code-mods`, [`compaction-basic`](../packages/compaction/compaction-basic), `creation-recommendations`, [`goal-round-driver`](../packages/goal/goal-round-driver), [`hooks-claude-code`](../packages/experimental/hooks-claude-code), [`hooks-codex`](../packages/experimental/hooks-codex), [`plan-mode`](../packages/plan/plan-mode), [`repeat-tool-reminder`](../packages/guard/repeat-tool-reminder), [`session-checkpoint-policy`](../packages/session/session-checkpoint-policy), `session-controller`, [`session-reference`](../packages/context/session-reference), [`time-context`](../packages/context/time-context), [`tmux-context`](../packages/context/tmux-context), [`tool-skill`](../packages/skill/tool-skill) |
| `agent/pre-step` | `waterfall` | [`packages/core/agent/src/runtime-types.ts:350`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`waterfall`) | `action-cards`, [`agent`](../packages/core/agent), [`agent-instructions`](../packages/context/agent-instructions), `claude-code-mods`, [`compaction-basic`](../packages/compaction/compaction-basic), [`goal-round-driver`](../packages/goal/goal-round-driver), [`hooks-claude-code`](../packages/experimental/hooks-claude-code), [`hooks-codex`](../packages/experimental/hooks-codex), [`plan-mode`](../packages/plan/plan-mode), [`repeat-tool-reminder`](../packages/guard/repeat-tool-reminder), [`session-checkpoint-policy`](../packages/session/session-checkpoint-policy), `session-controller`, [`session-reference`](../packages/context/session-reference), [`time-context`](../packages/context/time-context), [`tmux-context`](../packages/context/tmux-context), [`tool-skill`](../packages/skill/tool-skill) |
| `agent/request-error` | `waterfall` | [`packages/core/agent/src/runtime-types.ts:389`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`waterfall`) | [`compaction-basic`](../packages/compaction/compaction-basic), [`compaction-image-offload`](../packages/compaction/compaction-image-offload), [`llm-retry`](../packages/llm/llm-retry) |
| `agent/status` | `emit` | [`packages/core/agent/src/runtime-types.ts:309`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`emit`) | [`acp`](../packages/acp/acp), `agent-team`, [`compaction-basic`](../packages/compaction/compaction-basic), [`goal-round-driver`](../packages/goal/goal-round-driver), `server`, `session-controller` |
| `agent/turn-stopping` | `serial` | [`packages/core/agent/src/runtime-types.ts:417`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`serial`) | [`hooks-claude-code`](../packages/experimental/hooks-claude-code), [`hooks-codex`](../packages/experimental/hooks-codex), [`workspace-changes`](../packages/deliverables/workspace-changes) |
@@ -80,7 +80,7 @@ This matrix shows which packages dispatch each harness-owned event and which pac
| `tools/post-execute` | `waterfall` | [`packages/core/tools/src/events.ts:41`](../packages/core/tools/src/events.ts) | [`tools`](../packages/core/tools) (`waterfall`) | `claude-code-mods`, [`hooks-claude-code`](../packages/experimental/hooks-claude-code), [`hooks-codex`](../packages/experimental/hooks-codex), [`repeat-tool-reminder`](../packages/guard/repeat-tool-reminder), [`spill-policy`](../packages/spill/spill-policy), [`tool-fs-search`](../packages/fs/tool-fs-search) |
| `tools/pre-execute` | `waterfall` | [`packages/core/tools/src/events.ts:18`](../packages/core/tools/src/events.ts) | [`tools`](../packages/core/tools) (`waterfall`) | `auto-review`, [`hooks-claude-code`](../packages/experimental/hooks-claude-code), [`hooks-codex`](../packages/experimental/hooks-codex), [`tool-jobs`](../packages/jobs/tool-jobs), [`workspace-changes`](../packages/deliverables/workspace-changes) |
| `tools/ptc-dispatch-log` | `waterfall` | [`packages/core/tool-executor-ptc/src/runtime-types.ts:46`](../packages/core/tool-executor-ptc/src/runtime-types.ts) | [`tool-executor-ptc`](../packages/core/tool-executor-ptc) (`waterfall`) | [`spill-policy`](../packages/spill/spill-policy) |
| `tools/result` | `emit` | [`packages/core/tools/src/events.ts:49`](../packages/core/tools/src/events.ts) | [`tools`](../packages/core/tools) (`events.dispatch`) | [`agent-instructions`](../packages/context/agent-instructions), `claude-code-mods`, [`subagent`](../packages/subagent/subagent), [`tool-present`](../packages/deliverables/tool-present) |
| `tools/result` | `emit` | [`packages/core/tools/src/events.ts:49`](../packages/core/tools/src/events.ts) | [`tools`](../packages/core/tools) (`events.dispatch`) | `action-cards`, [`agent-instructions`](../packages/context/agent-instructions), `claude-code-mods`, [`subagent`](../packages/subagent/subagent), [`tool-present`](../packages/deliverables/tool-present) |
| `user-questions/request` | `waterfall` | [`packages/interaction/user-questions/src/types.ts:174`](../packages/interaction/user-questions/src/types.ts) | [`user-questions`](../packages/interaction/user-questions) (`waterfall`) | `remotes`, `server` |
| `webserver/index-inject` | `emit` | [`packages/host/webserver/src/index.ts:44`](../packages/host/webserver/src/index.ts) | `webserver` (`emit`) | `connection`, `inspector`, `modules`, `remote-access`, `shortcuts`, `ui-sidebar-documentpreview`, `ui-theme` |
| `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) |
+3 -3
View File
@@ -14,12 +14,12 @@
| `agent-preset/selected` | `emit` | [`packages/preset/agent-preset-registry/src/types.ts:66`](../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:399`](../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:290`](../packages/core/agent/src/runtime-types.ts) | [`agent`](../packages/core/agent) (`serial`) | `agent-team`, `browser-use-runtime`, `claude-code-mods`, `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), [`loader-smoke`](../packages/test-support/loader-smoke), [`permission-presets`](../packages/interaction/permission-presets), `session-controller`, `tool-agent-team`, [`tool-subagent`](../packages/subagent/tool-subagent) |
| `agent/disposed` | `emit` | [`packages/core/agent/src/runtime-types.ts:299`](../packages/core/agent/src/runtime-types.ts) | [`agent`](../packages/core/agent) (`events.dispatch`) | [`agent-loop`](../packages/core/agent-loop), `claude-code-mods`, `creation-recommendations`, [`file-reference-local`](../packages/context/file-reference-local), [`goal-round-driver`](../packages/goal/goal-round-driver), `session-controller`, [`subagent`](../packages/subagent/subagent), `tool-agent-team`, [`tool-subagent`](../packages/subagent/tool-subagent) |
| `agent/disposed` | `emit` | [`packages/core/agent/src/runtime-types.ts:299`](../packages/core/agent/src/runtime-types.ts) | [`agent`](../packages/core/agent) (`events.dispatch`) | `action-cards`, [`agent-loop`](../packages/core/agent-loop), `claude-code-mods`, `creation-recommendations`, [`file-reference-local`](../packages/context/file-reference-local), [`goal-round-driver`](../packages/goal/goal-round-driver), `session-controller`, [`subagent`](../packages/subagent/subagent), `tool-agent-team`, [`tool-subagent`](../packages/subagent/tool-subagent) |
| `agent/error` | `emit` | [`packages/core/agent/src/runtime-types.ts:429`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`emit`) | [`acp`](../packages/acp/acp), [`deepseek-account`](../packages/credentials/deepseek-account), [`goal-round-driver`](../packages/goal/goal-round-driver), [`headless`](../packages/bundle/headless), `server`, `session-controller`, [`session-telemetry`](../packages/session/session-telemetry), [`subagent`](../packages/subagent/subagent) |
| `agent/inbox/claimed` | `emit` | [`packages/core/agent/src/runtime-types.ts:328`](../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:336`](../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) |
| `agent/inbox/inserted` | `emit` | [`packages/core/agent/src/runtime-types.ts:317`](../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), [`tool-jobs`](../packages/jobs/tool-jobs) |
| `agent/pre-step` | `waterfall` | [`packages/core/agent/src/runtime-types.ts:350`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`waterfall`) | [`agent`](../packages/core/agent), [`agent-instructions`](../packages/context/agent-instructions), `claude-code-mods`, [`compaction-basic`](../packages/compaction/compaction-basic), `creation-recommendations`, [`goal-round-driver`](../packages/goal/goal-round-driver), [`hooks-claude-code`](../packages/experimental/hooks-claude-code), [`hooks-codex`](../packages/experimental/hooks-codex), [`plan-mode`](../packages/plan/plan-mode), [`repeat-tool-reminder`](../packages/guard/repeat-tool-reminder), [`session-checkpoint-policy`](../packages/session/session-checkpoint-policy), `session-controller`, [`session-reference`](../packages/context/session-reference), [`time-context`](../packages/context/time-context), [`tmux-context`](../packages/context/tmux-context), [`tool-skill`](../packages/skill/tool-skill) |
| `agent/pre-step` | `waterfall` | [`packages/core/agent/src/runtime-types.ts:350`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`waterfall`) | `action-cards`, [`agent`](../packages/core/agent), [`agent-instructions`](../packages/context/agent-instructions), `claude-code-mods`, [`compaction-basic`](../packages/compaction/compaction-basic), [`goal-round-driver`](../packages/goal/goal-round-driver), [`hooks-claude-code`](../packages/experimental/hooks-claude-code), [`hooks-codex`](../packages/experimental/hooks-codex), [`plan-mode`](../packages/plan/plan-mode), [`repeat-tool-reminder`](../packages/guard/repeat-tool-reminder), [`session-checkpoint-policy`](../packages/session/session-checkpoint-policy), `session-controller`, [`session-reference`](../packages/context/session-reference), [`time-context`](../packages/context/time-context), [`tmux-context`](../packages/context/tmux-context), [`tool-skill`](../packages/skill/tool-skill) |
| `agent/request-error` | `waterfall` | [`packages/core/agent/src/runtime-types.ts:389`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`waterfall`) | [`compaction-basic`](../packages/compaction/compaction-basic), [`compaction-image-offload`](../packages/compaction/compaction-image-offload), [`llm-retry`](../packages/llm/llm-retry) |
| `agent/status` | `emit` | [`packages/core/agent/src/runtime-types.ts:309`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`emit`) | [`acp`](../packages/acp/acp), `agent-team`, [`compaction-basic`](../packages/compaction/compaction-basic), [`goal-round-driver`](../packages/goal/goal-round-driver), `server`, `session-controller` |
| `agent/turn-stopping` | `serial` | [`packages/core/agent/src/runtime-types.ts:417`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`serial`) | [`hooks-claude-code`](../packages/experimental/hooks-claude-code), [`hooks-codex`](../packages/experimental/hooks-codex), [`workspace-changes`](../packages/deliverables/workspace-changes) |
@@ -82,7 +82,7 @@
| `tools/post-execute` | `waterfall` | [`packages/core/tools/src/events.ts:41`](../packages/core/tools/src/events.ts) | [`tools`](../packages/core/tools) (`waterfall`) | `claude-code-mods`, [`hooks-claude-code`](../packages/experimental/hooks-claude-code), [`hooks-codex`](../packages/experimental/hooks-codex), [`repeat-tool-reminder`](../packages/guard/repeat-tool-reminder), [`spill-policy`](../packages/spill/spill-policy), [`tool-fs-search`](../packages/fs/tool-fs-search) |
| `tools/pre-execute` | `waterfall` | [`packages/core/tools/src/events.ts:18`](../packages/core/tools/src/events.ts) | [`tools`](../packages/core/tools) (`waterfall`) | `auto-review`, [`hooks-claude-code`](../packages/experimental/hooks-claude-code), [`hooks-codex`](../packages/experimental/hooks-codex), [`tool-jobs`](../packages/jobs/tool-jobs), [`workspace-changes`](../packages/deliverables/workspace-changes) |
| `tools/ptc-dispatch-log` | `waterfall` | [`packages/core/tool-executor-ptc/src/runtime-types.ts:46`](../packages/core/tool-executor-ptc/src/runtime-types.ts) | [`tool-executor-ptc`](../packages/core/tool-executor-ptc) (`waterfall`) | [`spill-policy`](../packages/spill/spill-policy) |
| `tools/result` | `emit` | [`packages/core/tools/src/events.ts:49`](../packages/core/tools/src/events.ts) | [`tools`](../packages/core/tools) (`events.dispatch`) | [`agent-instructions`](../packages/context/agent-instructions), `claude-code-mods`, [`subagent`](../packages/subagent/subagent), [`tool-present`](../packages/deliverables/tool-present) |
| `tools/result` | `emit` | [`packages/core/tools/src/events.ts:49`](../packages/core/tools/src/events.ts) | [`tools`](../packages/core/tools) (`events.dispatch`) | `action-cards`, [`agent-instructions`](../packages/context/agent-instructions), `claude-code-mods`, [`subagent`](../packages/subagent/subagent), [`tool-present`](../packages/deliverables/tool-present) |
| `user-questions/request` | `waterfall` | [`packages/interaction/user-questions/src/types.ts:174`](../packages/interaction/user-questions/src/types.ts) | [`user-questions`](../packages/interaction/user-questions) (`waterfall`) | `remotes`, `server` |
| `webserver/index-inject` | `emit` | [`packages/host/webserver/src/index.ts:44`](../packages/host/webserver/src/index.ts) | `webserver` (`emit`) | `connection`, `inspector`, `modules`, `remote-access`, `shortcuts`, `ui-sidebar-documentpreview`, `ui-theme` |
| `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) |
@@ -6,5 +6,5 @@
en: a11f106978c9dce7
zh: a11f106978c9dce7
/experimental-plugin-record-catalog:
en: edd0f5052c330700
zh: bdb2ee09a7b51266
en: 292d2b1448650f82
zh: c4c7118a82026e12
+1 -1
View File
@@ -13,6 +13,6 @@ Shared Session event declarations and resolved schemas appear in the [Session pe
| Record | Owner | Purpose | Payload and source |
|---|---|---|---|
| `plugin:creation-recommendations/decision` | `@deepseek-ai/dsh-experimental-creation-recommendations` | New-plugin creation progress and explicit keep/undo decisions. | <code>CreationDecision</code> · [`packages/experimental/creation-recommendations/src/types.ts`](../packages/experimental/creation-recommendations/src/types.ts) |
| `plugin:action-cards/decision` | `@deepseek-ai/dsh-experimental-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: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) |
+1 -1
View File
@@ -13,6 +13,6 @@
| 记录 | 所属包 | 用途 | 载荷与源码 |
|---|---|---|---|
| `plugin:creation-recommendations/decision` | `@deepseek-ai/dsh-experimental-creation-recommendations` | New-plugin creation progress and explicit keep/undo decisions. | <code>CreationDecision</code> · [`packages/experimental/creation-recommendations/src/types.ts`](../packages/experimental/creation-recommendations/src/types.ts) |
| `plugin:action-cards/decision` | `@deepseek-ai/dsh-experimental-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: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) |
+9 -4
View File
@@ -22,7 +22,6 @@ flowchart TD
pkg_plugin_detail["plugin-detail"]
pkg_plugin_market_index["plugin-market-index"]
pkg_timeout["timeout"]
pkg_util_action_block["util-action-block"]
pkg_util_code_language["util-code-language"]
pkg_util_crypto["util-crypto"]
pkg_util_file_drag["util-file-drag"]
@@ -257,6 +256,7 @@ flowchart TD
subgraph group_experimental["packages/experimental"]
pkg_cua["cua"]
pkg_cua_bundle["cua-bundle"]
pkg_experimental_action_cards["experimental-action-cards"]
pkg_experimental_agent_team["experimental-agent-team"]
pkg_experimental_agent_team_profile["experimental-agent-team-profile"]
pkg_experimental_api_speech_to_text["experimental-api-speech-to-text"]
@@ -267,6 +267,7 @@ flowchart TD
pkg_experimental_browser_use_runtime["experimental-browser-use-runtime"]
pkg_experimental_browser_use_stagehand_native["experimental-browser-use-stagehand-native"]
pkg_experimental_claude_code_mods["experimental-claude-code-mods"]
pkg_experimental_client_ui_action_cards["experimental-client-ui-action-cards"]
pkg_experimental_client_ui_agent_team["experimental-client-ui-agent-team"]
pkg_experimental_client_ui_claude_code_mods["experimental-client-ui-claude-code-mods"]
pkg_experimental_client_ui_cot_translation["experimental-client-ui-cot-translation"]
@@ -928,6 +929,10 @@ flowchart TD
pkg_workspace_changes --> pkg_session
pkg_workspace_changes --> pkg_subprocess
pkg_workspace_changes --> pkg_tools
pkg_experimental_action_cards --> pkg_llm
pkg_experimental_action_cards --> pkg_session
pkg_experimental_action_cards --> pkg_tools
pkg_experimental_action_cards --> pkg_typert_protocol
pkg_experimental_browser_use_chrome_devtools_mcp --> pkg_agent
pkg_experimental_browser_use_chrome_devtools_mcp --> pkg_browser_use
pkg_experimental_browser_use_chrome_devtools_mcp --> pkg_system_prompt
@@ -949,7 +954,6 @@ flowchart TD
pkg_experimental_creation_recommendations --> pkg_session
pkg_experimental_creation_recommendations --> pkg_skill
pkg_experimental_creation_recommendations --> pkg_tools
pkg_experimental_creation_recommendations --> pkg_typert_protocol
pkg_experimental_cua_macos --> pkg_agent
pkg_experimental_cua_macos --> pkg_computer_use
pkg_experimental_cua_macos --> pkg_subprocess
@@ -1481,7 +1485,6 @@ flowchart TD
| [`plugin-detail`](../packages/util/plugin-detail) | `util` | — |
| [`plugin-market-index`](../packages/util/plugin-market-index) | `util` | — |
| [`timeout`](../packages/util/timeout) | `util` | — |
| [`util-action-block`](../packages/util/action-block) | `util` | — |
| [`util-code-language`](../packages/util/code-language) | `util` | — |
| [`util-crypto`](../packages/util/crypto) | `util` | — |
| [`util-file-drag`](../packages/util/file-drag) | `util` | — |
@@ -1573,6 +1576,7 @@ flowchart TD
| [`cua-bundle`](../packages/experimental/cua-bundle) | `experimental` | — |
| [`experimental-agent-team-profile`](../packages/experimental/agent-team-profile) | `experimental` | — |
| [`experimental-badge-skill-bundle`](../packages/experimental/badge-skill-bundle) | `experimental` | — |
| [`experimental-client-ui-action-cards`](../packages/experimental/client-ui-action-cards) | `experimental` | — |
| [`experimental-client-ui-agent-team`](../packages/experimental/client-ui-agent-team) | `experimental` | — |
| [`experimental-client-ui-claude-code-mods`](../packages/experimental/client-ui-claude-code-mods) | `experimental` | — |
| [`experimental-client-ui-creation-recommendations`](../packages/experimental/client-ui-creation-recommendations) | `experimental` | — |
@@ -1741,11 +1745,12 @@ flowchart TD
| [`file-reference-local`](../packages/context/file-reference-local) | `context` | [`agent`](../packages/core/agent), [`file-reference`](../packages/context/file-reference), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
| [`tool-present`](../packages/deliverables/tool-present) | `deliverables` | [`agent`](../packages/core/agent), [`fs`](../packages/fs/fs), [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
| [`workspace-changes`](../packages/deliverables/workspace-changes) | `deliverables` | [`agent`](../packages/core/agent), [`fs`](../packages/fs/fs), [`session`](../packages/core/session), [`subprocess`](../packages/subprocess/subprocess), [`tools`](../packages/core/tools) |
| [`experimental-action-cards`](../packages/experimental/action-cards) | `experimental` | [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`tools`](../packages/core/tools), [`typert-protocol`](../packages/typert/protocol) |
| [`experimental-browser-use-chrome-devtools-mcp`](../packages/experimental/browser-use-chrome-devtools-mcp) | `experimental` | [`agent`](../packages/core/agent), [`browser-use`](../packages/browser-use/browser-use), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
| [`experimental-browser-use-playwright-mcp`](../packages/experimental/browser-use-playwright-mcp) | `experimental` | [`agent`](../packages/core/agent), [`browser-use`](../packages/browser-use/browser-use), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
| [`experimental-browser-use-stagehand-native`](../packages/experimental/browser-use-stagehand-native) | `experimental` | [`agent`](../packages/core/agent), [`browser-use`](../packages/browser-use/browser-use), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools) |
| [`experimental-computer-use-cua-driver-native`](../packages/experimental/computer-use-cua-driver-native) | `experimental` | [`computer-use`](../packages/computer-use/computer-use), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools) |
| [`experimental-creation-recommendations`](../packages/experimental/creation-recommendations) | `experimental` | [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`skill`](../packages/skill/skill), [`tools`](../packages/core/tools), [`typert-protocol`](../packages/typert/protocol) |
| [`experimental-creation-recommendations`](../packages/experimental/creation-recommendations) | `experimental` | [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`skill`](../packages/skill/skill), [`tools`](../packages/core/tools) |
| [`experimental-cua-macos`](../packages/experimental/cua-macos) | `experimental` | [`agent`](../packages/core/agent), [`computer-use`](../packages/computer-use/computer-use), [`subprocess`](../packages/subprocess/subprocess), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`user-questions`](../packages/interaction/user-questions) |
| [`experimental-tool-worktree`](../packages/experimental/tool-worktree) | `experimental` | [`experimental-worktree`](../packages/experimental/worktree), [`tools`](../packages/core/tools) |
| [`hooks-codex`](../packages/experimental/hooks-codex) | `experimental` | [`agent`](../packages/core/agent), [`hook-protocol`](../packages/experimental/hook-protocol), [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
+9 -4
View File
@@ -24,7 +24,6 @@ flowchart TD
pkg_plugin_detail["plugin-detail"]
pkg_plugin_market_index["plugin-market-index"]
pkg_timeout["timeout"]
pkg_util_action_block["util-action-block"]
pkg_util_code_language["util-code-language"]
pkg_util_crypto["util-crypto"]
pkg_util_file_drag["util-file-drag"]
@@ -259,6 +258,7 @@ flowchart TD
subgraph group_experimental["packages/experimental"]
pkg_cua["cua"]
pkg_cua_bundle["cua-bundle"]
pkg_experimental_action_cards["experimental-action-cards"]
pkg_experimental_agent_team["experimental-agent-team"]
pkg_experimental_agent_team_profile["experimental-agent-team-profile"]
pkg_experimental_api_speech_to_text["experimental-api-speech-to-text"]
@@ -269,6 +269,7 @@ flowchart TD
pkg_experimental_browser_use_runtime["experimental-browser-use-runtime"]
pkg_experimental_browser_use_stagehand_native["experimental-browser-use-stagehand-native"]
pkg_experimental_claude_code_mods["experimental-claude-code-mods"]
pkg_experimental_client_ui_action_cards["experimental-client-ui-action-cards"]
pkg_experimental_client_ui_agent_team["experimental-client-ui-agent-team"]
pkg_experimental_client_ui_claude_code_mods["experimental-client-ui-claude-code-mods"]
pkg_experimental_client_ui_cot_translation["experimental-client-ui-cot-translation"]
@@ -930,6 +931,10 @@ flowchart TD
pkg_workspace_changes --> pkg_session
pkg_workspace_changes --> pkg_subprocess
pkg_workspace_changes --> pkg_tools
pkg_experimental_action_cards --> pkg_llm
pkg_experimental_action_cards --> pkg_session
pkg_experimental_action_cards --> pkg_tools
pkg_experimental_action_cards --> pkg_typert_protocol
pkg_experimental_browser_use_chrome_devtools_mcp --> pkg_agent
pkg_experimental_browser_use_chrome_devtools_mcp --> pkg_browser_use
pkg_experimental_browser_use_chrome_devtools_mcp --> pkg_system_prompt
@@ -951,7 +956,6 @@ flowchart TD
pkg_experimental_creation_recommendations --> pkg_session
pkg_experimental_creation_recommendations --> pkg_skill
pkg_experimental_creation_recommendations --> pkg_tools
pkg_experimental_creation_recommendations --> pkg_typert_protocol
pkg_experimental_cua_macos --> pkg_agent
pkg_experimental_cua_macos --> pkg_computer_use
pkg_experimental_cua_macos --> pkg_subprocess
@@ -1483,7 +1487,6 @@ flowchart TD
| [`plugin-detail`](../packages/util/plugin-detail) | `util` | — |
| [`plugin-market-index`](../packages/util/plugin-market-index) | `util` | — |
| [`timeout`](../packages/util/timeout) | `util` | — |
| [`util-action-block`](../packages/util/action-block) | `util` | — |
| [`util-code-language`](../packages/util/code-language) | `util` | — |
| [`util-crypto`](../packages/util/crypto) | `util` | — |
| [`util-file-drag`](../packages/util/file-drag) | `util` | — |
@@ -1575,6 +1578,7 @@ flowchart TD
| [`cua-bundle`](../packages/experimental/cua-bundle) | `experimental` | — |
| [`experimental-agent-team-profile`](../packages/experimental/agent-team-profile) | `experimental` | — |
| [`experimental-badge-skill-bundle`](../packages/experimental/badge-skill-bundle) | `experimental` | — |
| [`experimental-client-ui-action-cards`](../packages/experimental/client-ui-action-cards) | `experimental` | — |
| [`experimental-client-ui-agent-team`](../packages/experimental/client-ui-agent-team) | `experimental` | — |
| [`experimental-client-ui-claude-code-mods`](../packages/experimental/client-ui-claude-code-mods) | `experimental` | — |
| [`experimental-client-ui-creation-recommendations`](../packages/experimental/client-ui-creation-recommendations) | `experimental` | — |
@@ -1743,11 +1747,12 @@ flowchart TD
| [`file-reference-local`](../packages/context/file-reference-local) | `context` | [`agent`](../packages/core/agent), [`file-reference`](../packages/context/file-reference), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
| [`tool-present`](../packages/deliverables/tool-present) | `deliverables` | [`agent`](../packages/core/agent), [`fs`](../packages/fs/fs), [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
| [`workspace-changes`](../packages/deliverables/workspace-changes) | `deliverables` | [`agent`](../packages/core/agent), [`fs`](../packages/fs/fs), [`session`](../packages/core/session), [`subprocess`](../packages/subprocess/subprocess), [`tools`](../packages/core/tools) |
| [`experimental-action-cards`](../packages/experimental/action-cards) | `experimental` | [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`tools`](../packages/core/tools), [`typert-protocol`](../packages/typert/protocol) |
| [`experimental-browser-use-chrome-devtools-mcp`](../packages/experimental/browser-use-chrome-devtools-mcp) | `experimental` | [`agent`](../packages/core/agent), [`browser-use`](../packages/browser-use/browser-use), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
| [`experimental-browser-use-playwright-mcp`](../packages/experimental/browser-use-playwright-mcp) | `experimental` | [`agent`](../packages/core/agent), [`browser-use`](../packages/browser-use/browser-use), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
| [`experimental-browser-use-stagehand-native`](../packages/experimental/browser-use-stagehand-native) | `experimental` | [`agent`](../packages/core/agent), [`browser-use`](../packages/browser-use/browser-use), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools) |
| [`experimental-computer-use-cua-driver-native`](../packages/experimental/computer-use-cua-driver-native) | `experimental` | [`computer-use`](../packages/computer-use/computer-use), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools) |
| [`experimental-creation-recommendations`](../packages/experimental/creation-recommendations) | `experimental` | [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`skill`](../packages/skill/skill), [`tools`](../packages/core/tools), [`typert-protocol`](../packages/typert/protocol) |
| [`experimental-creation-recommendations`](../packages/experimental/creation-recommendations) | `experimental` | [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`skill`](../packages/skill/skill), [`tools`](../packages/core/tools) |
| [`experimental-cua-macos`](../packages/experimental/cua-macos) | `experimental` | [`agent`](../packages/core/agent), [`computer-use`](../packages/computer-use/computer-use), [`subprocess`](../packages/subprocess/subprocess), [`system-prompt`](../packages/core/system-prompt), [`tools`](../packages/core/tools), [`user-questions`](../packages/interaction/user-questions) |
| [`experimental-tool-worktree`](../packages/experimental/tool-worktree) | `experimental` | [`experimental-worktree`](../packages/experimental/worktree), [`tools`](../packages/core/tools) |
| [`hooks-codex`](../packages/experimental/hooks-codex) | `experimental` | [`agent`](../packages/core/agent), [`hook-protocol`](../packages/experimental/hook-protocol), [`llm`](../packages/llm/llm), [`session`](../packages/core/session), [`tools`](../packages/core/tools), [`working-directory`](../packages/session/working-directory) |
+82 -82
View File
@@ -9,8 +9,8 @@
en: 1387c4505dde2faf
zh: 48570fa1c13d6910
/session-persistence-event-catalog/persistence-type-fingerprints:
en: 97355667ed6fb44b
zh: 90e9bf879f97f05a
en: 3e24343c4745793d
zh: 90f808fd6b79c5a3
/session-persistence-event-catalog/event-envelope:
en: 981db6b1928eda50
zh: d77bc66cf678099d
@@ -309,8 +309,11 @@
en: 3493ecf0993e5397
zh: ec95688f593a4ed4
/session-persistence-event-catalog/resolved-persistence-types/aborted:
en: d716fb9ee9baa564
zh: d716fb9ee9baa564
en: 40049fd36471e4b2
zh: 40049fd36471e4b2
/session-persistence-event-catalog/resolved-persistence-types/action-cards:
en: 629f821b50a38bc6
zh: 629f821b50a38bc6
/session-persistence-event-catalog/resolved-persistence-types/active:
en: 6b343e390ae7d7a7
zh: 6b343e390ae7d7a7
@@ -642,11 +645,8 @@
en: fb56d51ac7afdf53
zh: fb56d51ac7afdf53
/session-persistence-event-catalog/resolved-persistence-types/permission-preset:
en: 67e59ed2d5acbb1d
zh: 67e59ed2d5acbb1d
/session-persistence-event-catalog/resolved-persistence-types/personalized-pages:
en: 8421da87b88db1dc
zh: 8421da87b88db1dc
en: 94b174792f651370
zh: 94b174792f651370
/session-persistence-event-catalog/resolved-persistence-types/plan-mode:
en: 5d6a48242bde2682
zh: 5d6a48242bde2682
@@ -1008,11 +1008,11 @@
en: a6a2e38fdd6d127a
zh: 1fe82356d89f5769
/session-persistence-event-catalog/resolved-persistence-types/deepseeksearchllmrequest:
en: 65be089aed73ae1b
zh: 2da4d241d6e1dbca
en: 0e286bae74e78505
zh: b1c9da5aa56d5a81
/session-persistence-event-catalog/resolved-persistence-types/developermessage:
en: 62630a70a477d6ea
zh: b6489613448ad40e
en: 3d8a393be23efcde
zh: f95f337d816dbbe7
/session-persistence-event-catalog/resolved-persistence-types/epochheader:
en: c804cb9e2e31c5ec
zh: 3ed7ac59cd1441b7
@@ -1122,11 +1122,11 @@
en: 6dbe099c62f7c226
zh: 6fd788f63c038c91
/session-persistence-event-catalog/resolved-persistence-types/llmretrystartedeventdata:
en: b1bf4f5851becd37
zh: 8e219db9ddcffad8
en: 3d2f7c88259b6446
zh: 58bee68c335d6d4f
/session-persistence-event-catalog/resolved-persistence-types/message:
en: 6f236b1ef99b7cd6
zh: 8dc88d25f16b4825
en: 76d13d39fe22f7bd
zh: b1e19cfe90a6d6b6
/session-persistence-event-catalog/resolved-persistence-types/messagefeedbackdelete:
en: c582953270d4ca44
zh: 966ccfe2e7660a2a
@@ -1137,14 +1137,14 @@
en: f58575a1fc96df42
zh: 9f0c6ed9033e5c9d
/session-persistence-event-catalog/resolved-persistence-types/messagefeedbackrating:
en: 77c1680aa771670a
zh: 0577482a6eb5c1fd
en: 887549d6401dd116
zh: 30198672b67dac6b
/session-persistence-event-catalog/resolved-persistence-types/messagesource:
en: 0e40ffa0dca65362
zh: 36aca8b5cebeb223
en: 2f21414632f8d184
zh: d85f66e001fd814c
/session-persistence-event-catalog/resolved-persistence-types/message~2:
en: 2af742c00e2f75ff
zh: f7f074848ddab527
en: 87e95476b4985e5e
zh: 0e0322e005b3e995
/session-persistence-event-catalog/resolved-persistence-types/modelmessagesource:
en: 5f9154ca34235ab9
zh: a833105910ebfa82
@@ -1206,11 +1206,11 @@
en: 9a54c4478ad3b620
zh: 02c4c1fd7e252770
/session-persistence-event-catalog/resolved-persistence-types/sessiontitleeventdata:
en: 5fc9ff035cbbeeeb
zh: d75c7b0723e2ec4b
en: c0104327b481ae54
zh: b4624d112bee37f1
/session-persistence-event-catalog/resolved-persistence-types/sessiontitlellmrequesteventdata:
en: 1babe429377062d2
zh: 15317779c44e07c7
en: 2e40681d575da503
zh: 57cbccb16548e2da
/session-persistence-event-catalog/resolved-persistence-types/sessiontitlemodelidentity:
en: 9531468264499498
zh: 9da23c0ad2776563
@@ -1317,14 +1317,14 @@
en: 4dc89c072fe5d0d1
zh: 4ed2c9e9e8b4f7e2
/session-persistence-event-catalog/resolved-persistence-types/turnendreason:
en: 971afcae4e1b5956
zh: c4f1f4fda2193853
en: e39f2f99ea109af9
zh: f95ec41c72738f3e
/session-persistence-event-catalog/resolved-persistence-types/usermessage:
en: 9ade9e697252b33c
zh: 8352f8c900d2f8e4
en: 79b3ac6c731859aa
zh: 81058fe7edf61bdb
/session-persistence-event-catalog/resolved-persistence-types/usermessage~2:
en: ac6a4769786ed728
zh: de3b1d4a85f845fb
en: 8e699c0217638bbe
zh: a2047db24c25217b
/session-persistence-event-catalog/resolved-persistence-types/workflowagentoutcome:
en: d0a3f9aab18c3de5
zh: 76ac69a835ca4e29
@@ -1503,11 +1503,11 @@
en: 51af619ed8532a43
zh: a5ad878c63d0e046
/session-persistence-event-catalog/resolved-persistence-types/header-reason-startsseries:
en: b90d2c0fd43619c0
zh: 80d1045ffc187ba3
en: 8c523b44a081ffe0
zh: d94ac2402fe80645
/session-persistence-event-catalog/resolved-persistence-types/headerseq-message-step-turn:
en: 820fdb254290f790
zh: 5d39ae22c614f85b
en: 174b2c8332e397b2
zh: 31b94e9a33b9bdac
/session-persistence-event-catalog/resolved-persistence-types/height-width:
en: a5df50710083ac25
zh: aad3ccf6f6de70e4
@@ -1524,17 +1524,38 @@
en: 41f73c58a77dfa28
zh: af77f4aee3cb4a40
/session-persistence-event-catalog/resolved-persistence-types/inherited:
en: dd7a830a875303ba
zh: 3c6b9642340e565c
en: bbffa2689f69314f
zh: c691059ad7b99d67
/session-persistence-event-catalog/resolved-persistence-types/inserted-outcome-removedcount-start:
en: 2a03d9713f87000f
zh: 52ec039cf54ee3e3
en: 1750502af87d698c
zh: 382a3356f0a61546
/session-persistence-event-catalog/resolved-persistence-types/interrupted-message-step-stream:
en: 89fb3f919d181c86
zh: 4380624236500687
/session-persistence-event-catalog/resolved-persistence-types/kind-aborted-reason:
en: 48424cbed3fbc269
zh: 2ce88c04ad002104
en: 8bdd31bfea14a015
zh: 203d7ebf5ea4d352
/session-persistence-event-catalog/resolved-persistence-types/kind-action-cards:
en: 8d057f0bd0b88fc6
zh: 500d1e3d54e6d7c4
/session-persistence-event-catalog/resolved-persistence-types/kind-action-cards-form-catalog:
en: 14e9dd01c49f91e0
zh: 4a7e4e4aeeb15982
/session-persistence-event-catalog/resolved-persistence-types/kind-action-cards-form-instructions:
en: f59ec0c37dc8f9b6
zh: debc915ed98581fb
/session-persistence-event-catalog/resolved-persistence-types/kind-action-cards-form-notice:
en: ef0a456530698cca
zh: 23f2ace5345eb847
/session-persistence-event-catalog/resolved-persistence-types/kind-action-cards-form-recall:
en: 0b607f9577e3a3c5
zh: 237ed72b7a4154df
/session-persistence-event-catalog/resolved-persistence-types/kind-action-cards-form-relay:
en: 712bc9ad7c51a8fe
zh: f230dc9c09bdbf3c
/session-persistence-event-catalog/resolved-persistence-types/kind-action-cards-form-snapshot:
en: 4e030b06ef900819
zh: 27532bbabe118206
/session-persistence-event-catalog/resolved-persistence-types/kind-blocked:
en: 2fad818b19823c48
zh: a6b33dee21c3fdc9
@@ -1650,29 +1671,8 @@
en: 509f9a91aedb2da1
zh: db1071678bfb98d1
/session-persistence-event-catalog/resolved-persistence-types/kind-parent:
en: 63ac7a79d1393ba5
zh: 0439444742eca440
/session-persistence-event-catalog/resolved-persistence-types/kind-personalized-pages:
en: e56080ddca3ed561
zh: 1ef8c4fed849e62f
/session-persistence-event-catalog/resolved-persistence-types/kind-personalized-pages-form-catalog:
en: cb35ec7e395d5b1a
zh: 1a9303be8bb13e9e
/session-persistence-event-catalog/resolved-persistence-types/kind-personalized-pages-form-instructions:
en: beb2c2100cc26478
zh: d83a6b66fa82fde9
/session-persistence-event-catalog/resolved-persistence-types/kind-personalized-pages-form-notice:
en: 3c17f776fad0526d
zh: 03eff6f83a00c00e
/session-persistence-event-catalog/resolved-persistence-types/kind-personalized-pages-form-recall:
en: 3ad9fa51a047db29
zh: 76a8357b346b2c15
/session-persistence-event-catalog/resolved-persistence-types/kind-personalized-pages-form-relay:
en: 4e2fe27c1b26e1e4
zh: aa83cc37626df343
/session-persistence-event-catalog/resolved-persistence-types/kind-personalized-pages-form-snapshot:
en: e85cd5f87250a2bd
zh: 19d2978e92f1d153
en: 7a3ac2238405913d
zh: b249a4d6d0508d40
/session-persistence-event-catalog/resolved-persistence-types/kind-plan-mode:
en: 9758304800b717df
zh: dccf14f3a5d0d861
@@ -1944,11 +1944,11 @@
en: ea32b4165dbfb182
zh: 57f48af06cfa201c
/session-persistence-event-catalog/resolved-persistence-types/type-agent-preset-selected:
en: d7587116f8744b8b
zh: bd99358ce20931cc
en: 6a59f1cd472759e9
zh: 1db67f4f97207efc
/session-persistence-event-catalog/resolved-persistence-types/type-agent-inbox-spliced:
en: 513f921251d7673d
zh: c91f03158a3e1b0b
en: 6c276128e62a5432
zh: 4ff5e93d255caece
/session-persistence-event-catalog/resolved-persistence-types/type-approval-asked:
en: 9c77f18b0dad22f0
zh: 8894cf2878fe90db
@@ -1992,11 +1992,11 @@
en: ba73fb10b7e2ffc9
zh: 8d5c97e63e5f16da
/session-persistence-event-catalog/resolved-persistence-types/type-deliverables-presented:
en: 20401430a4ddf700
zh: 4be560d34fc991f6
en: 10d95ce64c285e64
zh: 0ddb26f1fa16629c
/session-persistence-event-catalog/resolved-persistence-types/type-developer-message:
en: d60754f800f6be93
zh: 0d3089318a5083c9
en: 78d421c83506ebe9
zh: 2e9399ba2d360627
/session-persistence-event-catalog/resolved-persistence-types/type-disabled:
en: 585627a50ece4e5f
zh: 157837aee3da0ac3
@@ -2070,11 +2070,11 @@
en: acf7e21e4d21ebff
zh: fb83a853634d204a
/session-persistence-event-catalog/resolved-persistence-types/type-session-title:
en: b66824c8979ca39a
zh: 543b62042b8624ba
en: 26d99fabe31f7fa3
zh: 0a44b5c8f7f6488c
/session-persistence-event-catalog/resolved-persistence-types/type-session-title-llm-request:
en: b981ef9d34c50190
zh: dd1737eab002a158
en: bbbb345651600abf
zh: e3b29e05fecb136a
/session-persistence-event-catalog/resolved-persistence-types/type-step-end:
en: 7fc233c4a569dae2
zh: bc2b3fed4a397c00
@@ -2151,11 +2151,11 @@
en: 1b045de96172be4b
zh: 8a15c6f35b576b37
/session-persistence-event-catalog/resolved-persistence-types/type-usage:
en: ed0332f1ed6575d3
zh: f953f45acdf5b39e
en: ebb801c4444061fb
zh: f2d6531de88ee16e
/session-persistence-event-catalog/resolved-persistence-types/type-user-message:
en: 202da2bc4af45c21
zh: 49d21f8d5b8e1d04
en: 536f875df13987d0
zh: 857a381433a4217f
/session-persistence-event-catalog/resolved-persistence-types/type-web-deepseek-search-llm-request:
en: 99c8837344178a47
zh: bf746f5678346596
+146 -146
View File
@@ -23,7 +23,7 @@ The [format references](persistence-changes/historical-formats/README.md) cover
| `JsonlHeaderLine` | header | `18ee62b8900a4c3d046700f05d7a4d49d6cab2a660a020c87481d1603dd8bd4f` | [`HeaderLine`](#persistence-type-sha256-18ee62b8900a4c3d046700f05d7a4d49d6cab2a660a020c87481d1603dd8bd4f) |
| `SessionEventEnvelope` | envelope | `5776e5553ff2dfe3f5bc202dbb1e7c9f93e35a531aebb7764c23b2b6153b2ccc` | [`union (3 variants)`](#persistence-type-sha256-5776e5553ff2dfe3f5bc202dbb1e7c9f93e35a531aebb7764c23b2b6153b2ccc) |
| `event:agent-preset/selected` | event | `a10c17474eaf2ddab7095a099e0fe3d046fc18e56c3e344fc8894c05ff9ef97b` | [`{ type: "agent-preset/selected" }`](#persistence-type-sha256-a10c17474eaf2ddab7095a099e0fe3d046fc18e56c3e344fc8894c05ff9ef97b) |
| `event:agent/inbox/spliced` | event | `1b43047675face5df9ba7646bbbcd873907465dcedcf22ea824f9f088cea2840` | [`{ type: "agent/inbox/spliced" }`](#persistence-type-sha256-1b43047675face5df9ba7646bbbcd873907465dcedcf22ea824f9f088cea2840) |
| `event:agent/inbox/spliced` | event | `b36fd842cd004b532ce96fd5d6f5be28e017eda043131aa3cf5e69edc436108e` | [`{ type: "agent/inbox/spliced" }`](#persistence-type-sha256-b36fd842cd004b532ce96fd5d6f5be28e017eda043131aa3cf5e69edc436108e) |
| `event:approval/asked` | event | `3bfeb47b58606f4661904bc723da612782214c463d01e6d61cd6d6193d7374e1` | [`{ type: "approval/asked" }`](#persistence-type-sha256-3bfeb47b58606f4661904bc723da612782214c463d01e6d61cd6d6193d7374e1) |
| `event:approval/decided` | event | `bb1ab3d08f49a9f3b265f844cd78d5c49813062a7b34b54904b426f85d0ff6e3` | [`{ type: "approval/decided" }`](#persistence-type-sha256-bb1ab3d08f49a9f3b265f844cd78d5c49813062a7b34b54904b426f85d0ff6e3) |
| `event:approval/policy` | event | `26718e15e7e395bce9642dba5bbe09b3b1a4ce2213d20d566cd9207d7fc5fb78` | [`{ type: "approval/policy" }`](#persistence-type-sha256-26718e15e7e395bce9642dba5bbe09b3b1a4ce2213d20d566cd9207d7fc5fb78) |
@@ -36,7 +36,7 @@ The [format references](persistence-changes/historical-formats/README.md) cover
| `event:compaction/start` | event | `db874d463b0fdec77e9da1c4568f37cb70bd6596781eb93800db44fb8a116965` | [`{ type: "compaction/start" }`](#persistence-type-sha256-db874d463b0fdec77e9da1c4568f37cb70bd6596781eb93800db44fb8a116965) |
| `event:compaction/summary` | event | `e2f9a41e0989f54ed8cee80f8db2bcf9d60a5c810dc9d45b83fa050b9dce7602` | [`{ type: "compaction/summary" }`](#persistence-type-sha256-e2f9a41e0989f54ed8cee80f8db2bcf9d60a5c810dc9d45b83fa050b9dce7602) |
| `event:deliverables/presented` | event | `13d3d180f977bf78081d487ffa0ecb75857349bcab29a5a3fb48189fca2a6176` | [`{ type: "deliverables/presented" }`](#persistence-type-sha256-13d3d180f977bf78081d487ffa0ecb75857349bcab29a5a3fb48189fca2a6176) |
| `event:developer/message` | event | `85d754f8957fcbbfb65bcb6dded47a816c409bb431de293ff3209b11fe093ded` | [`{ type: "developer/message" }`](#persistence-type-sha256-85d754f8957fcbbfb65bcb6dded47a816c409bb431de293ff3209b11fe093ded) |
| `event:developer/message` | event | `5ef58f2a1bdc576c1f12fa1f4da1920ece020b13c0f991a578cddcbeb28bc5be` | [`{ type: "developer/message" }`](#persistence-type-sha256-5ef58f2a1bdc576c1f12fa1f4da1920ece020b13c0f991a578cddcbeb28bc5be) |
| `event:feedback/message-delete` | event | `3ee93b06f3a125850337602bcdf155d2538c43a5c944ec55b1b3c365152d6796` | [`{ type: "feedback/message-delete" }`](#persistence-type-sha256-3ee93b06f3a125850337602bcdf155d2538c43a5c944ec55b1b3c365152d6796) |
| `event:feedback/message-put` | event | `b5086d249e8502e9ead1d39156bb8d559bde7951cac0f14ce150345b4e42a2bf` | [`{ type: "feedback/message-put" }`](#persistence-type-sha256-b5086d249e8502e9ead1d39156bb8d559bde7951cac0f14ce150345b4e42a2bf) |
| `event:feedback/record` | event | `b54940ff095c17e874c5be03815f4c2145a256cf3a1d34dae4ab2f7769dfffe8` | [`{ type: "feedback/record" }`](#persistence-type-sha256-b54940ff095c17e874c5be03815f4c2145a256cf3a1d34dae4ab2f7769dfffe8) |
@@ -58,7 +58,7 @@ The [format references](persistence-changes/historical-formats/README.md) cover
| `event:session-log-deepseek/delivery-accepted` | event | `d63b8b8ffad9c02fd80c43a17df4f240c1fe8118ecca9de34f9d5871838ab5b9` | [`{ type: "session-log-deepseek/delivery-accepted" }`](#persistence-type-sha256-d63b8b8ffad9c02fd80c43a17df4f240c1fe8118ecca9de34f9d5871838ab5b9) |
| `event:session/end-seed` | event | `5e6db6e24948d4a853c71cb9fabd252ad051ce93d4672c1266cf837c1c17b84e` | [`{ type: "session/end-seed" }`](#persistence-type-sha256-5e6db6e24948d4a853c71cb9fabd252ad051ce93d4672c1266cf837c1c17b84e) |
| `event:session/title` | event | `1b912703e2d64f91c99c675b8f805b01076c8325b905c1218ad81ef0b24909d5` | [`{ type: "session/title" }`](#persistence-type-sha256-1b912703e2d64f91c99c675b8f805b01076c8325b905c1218ad81ef0b24909d5) |
| `event:session/title-llm-request` | event | `9d2c7e74894fb4dbf3af436b09d1e9ae4a631dbdf3c7ebbfb2b490b1279c94b3` | [`{ type: "session/title-llm-request" }`](#persistence-type-sha256-9d2c7e74894fb4dbf3af436b09d1e9ae4a631dbdf3c7ebbfb2b490b1279c94b3) |
| `event:session/title-llm-request` | event | `efa1a091017ce533e38b0ef3e14d11a5c102ff1793229b18dad719a4268d9adc` | [`{ type: "session/title-llm-request" }`](#persistence-type-sha256-efa1a091017ce533e38b0ef3e14d11a5c102ff1793229b18dad719a4268d9adc) |
| `event:step/end` | event | `e0a787e6ec76c7c94fecbc501b489164ab0293db05bc947914077ad01e674f05` | [`{ type: "step/end" }`](#persistence-type-sha256-e0a787e6ec76c7c94fecbc501b489164ab0293db05bc947914077ad01e674f05) |
| `event:step/start` | event | `4513e088d43e6c68425be30451b9f961cc264fe7318ca62681c41d4d78615986` | [`{ type: "step/start" }`](#persistence-type-sha256-4513e088d43e6c68425be30451b9f961cc264fe7318ca62681c41d4d78615986) |
| `event:subagent/catalog` | event | `53750b9abf61efb7992b0aadc3e247ec927449c63266df28230fd1139f5590ac` | [`{ type: "subagent/catalog" }`](#persistence-type-sha256-53750b9abf61efb7992b0aadc3e247ec927449c63266df28230fd1139f5590ac) |
@@ -80,7 +80,7 @@ The [format references](persistence-changes/historical-formats/README.md) cover
| `event:tool/result` | event | `7c9f44e90a0058f4cc532ae20dad0c10afa6eba22e70a6c79fc79490bad64397` | [`{ type: "tool/result" }`](#persistence-type-sha256-7c9f44e90a0058f4cc532ae20dad0c10afa6eba22e70a6c79fc79490bad64397) |
| `event:turn/end` | event | `0f8512903d94f57a4748fa1a2092e64342856796684e6b8343db685b192745ce` | [`{ type: "turn/end" }`](#persistence-type-sha256-0f8512903d94f57a4748fa1a2092e64342856796684e6b8343db685b192745ce) |
| `event:turn/start` | event | `aa0957eca50aeb28bcd2e6930b95809926edacb550c8c340ba526ba6b861b3d8` | [`{ type: "turn/start" }`](#persistence-type-sha256-aa0957eca50aeb28bcd2e6930b95809926edacb550c8c340ba526ba6b861b3d8) |
| `event:user/message` | event | `c81b3891a886d2e40a09d04633ec88918289bb10eee9098ed19d33c1994aa4d8` | [`{ type: "user/message" }`](#persistence-type-sha256-c81b3891a886d2e40a09d04633ec88918289bb10eee9098ed19d33c1994aa4d8) |
| `event:user/message` | event | `58b122df513aeaf7ddc5783dbb1fd844e2979bb273964e30ae351a8db6510019` | [`{ type: "user/message" }`](#persistence-type-sha256-58b122df513aeaf7ddc5783dbb1fd844e2979bb273964e30ae351a8db6510019) |
| `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/changes` | event | `e308ccf867a5398e316e0af8cb6ce238a8d33a63b9b384c8250a686786285f72` | [`{ type: "workspace/changes" }`](#persistence-type-sha256-e308ccf867a5398e316e0af8cb6ce238a8d33a63b9b384c8250a686786285f72) |
@@ -1347,6 +1347,14 @@ SHA-256: `1e0b0b66b6f0c53fc72e52289d06b4708d776f1ca9df4c86a22bff621d403cf0`
`"aborted"`
<a id="persistence-type-sha256-05205074b24d8340cfd7995f6cb64779c7f1241490954700115601e264178877"></a>
### `"action-cards"`
SHA-256: `05205074b24d8340cfd7995f6cb64779c7f1241490954700115601e264178877`
`"action-cards"`
<a id="persistence-type-sha256-c8e6f48878cc2a2f0dc59682280d81f407943fb503f32c64bf9ff3d9393c3eff"></a>
### `"active"`
@@ -2241,14 +2249,6 @@ SHA-256: `ae63d9d1080ed8945031594d93f8d96651d7101b848719cc3e1475875cd3d649`
`"permission/preset"`
<a id="persistence-type-sha256-e1ba710db2f3e4e4d397b921fafedb5dd5ad5d16efc0393f0667160cb02f79e3"></a>
### `"personalized-pages"`
SHA-256: `e1ba710db2f3e4e4d397b921fafedb5dd5ad5d16efc0393f0667160cb02f79e3`
`"personalized-pages"`
<a id="persistence-type-sha256-0fe52387f65052702ed9d7cd59db826468936595d1b3eec207e7a823adc719db"></a>
### `"plan-mode"`
@@ -3373,7 +3373,7 @@ Sources: [`packages/web/web-search-deepseek/src/provider.ts:55`](../packages/web
| `body` | required | [`{ max_tokens, messages, model, thinking?, … }`](#persistence-type-sha256-9c001ecb5e1d3c3894410db2a1e383842e5f8454fb52182338686158abc1b3ee) |
| `endpoint` | required | `string` |
<a id="persistence-type-sha256-243d11dd918e46dee2902e3739a4ae3d711796d88cd0dbaa4dd51a9fe872ad1f"></a>
<a id="persistence-type-sha256-7580e7d96dc8475fffe813a42af499665de3d4517fcdb3bc2337d0340e98d616"></a>
<a id="persistence-type-developermessage"></a>
@@ -3381,7 +3381,7 @@ Sources: [`packages/web/web-search-deepseek/src/provider.ts:55`](../packages/web
### `DeveloperMessage`
SHA-256: `243d11dd918e46dee2902e3739a4ae3d711796d88cd0dbaa4dd51a9fe872ad1f`
SHA-256: `7580e7d96dc8475fffe813a42af499665de3d4517fcdb3bc2337d0340e98d616`
Sources: [`packages/llm/llm/src/message.ts:157`](../packages/llm/llm/src/message.ts)
@@ -3390,11 +3390,11 @@ Sources: [`packages/llm/llm/src/message.ts:157`](../packages/llm/llm/src/message
| `content` | required | [`ContentBlock[]`](#persistence-type-sha256-b52f215a6cd691058a3413c12f161fa3b563a2f4895adb3df6f744ec4b0a6ef1) |
| `id` | required | `string` |
| `role` | required | `"developer"` |
| `source` | required | [`MessageSource`](#persistence-type-sha256-6a69bf7c4ddee5c65ace3463a666c7af9a60c5598f9e33ae5edde0feb4528411) |
| `source` | required | [`MessageSource`](#persistence-type-sha256-7a5b68bd1a5118c827df9e2466acc5e4d16b83e3f97a2304d992958647592690) |
Source compatibility: `source` — `session-source-attribution` v1; `session.developer-message.source`; `kind`; `preserve`.
Attribution-only additions: `personalized-pages`, `tmux-context`, `user-question-reply`, `working-directory`.
Attribution-only additions: `action-cards`, `tmux-context`, `user-question-reply`, `working-directory`.
<a id="persistence-type-sha256-9a930283b91d493d6347146f2475bb107294b379415ca02162354f46a64164f7"></a>
@@ -4089,7 +4089,7 @@ Sources: [`packages/llm/llm-retry/src/types.ts:43`](../packages/llm/llm-retry/sr
| `step` | required | `number` |
| `turn` | required | `number` |
<a id="persistence-type-sha256-cea2baa72d20cb86e3a9907bcec1541ab1cfff1a83c892f033463e5cf14064fb"></a>
<a id="persistence-type-sha256-cda79b839d8cc0c7a7bd09dd067de04925f6e9037080d878b65aaa5a383f117c"></a>
<a id="persistence-type-message"></a>
@@ -4097,17 +4097,17 @@ Sources: [`packages/llm/llm-retry/src/types.ts:43`](../packages/llm/llm-retry/sr
### `Message`
SHA-256: `cea2baa72d20cb86e3a9907bcec1541ab1cfff1a83c892f033463e5cf14064fb`
SHA-256: `cda79b839d8cc0c7a7bd09dd067de04925f6e9037080d878b65aaa5a383f117c`
Sources: [`packages/llm/llm/src/message.ts:196`](../packages/llm/llm/src/message.ts)
One of:
- [`ToolResultMessage`](#persistence-type-sha256-4b259f7f8f0a44ad5e90b70a73553ced1df27012d126921d397ff403b6c86731)
- [`DeveloperMessage`](#persistence-type-sha256-243d11dd918e46dee2902e3739a4ae3d711796d88cd0dbaa4dd51a9fe872ad1f)
- [`UserMessage`](#persistence-type-sha256-c1d5de6f6d47227a1ab3d64c5387b9acd4f9a78df5a61e92c2e82e39b8f9825f)
- [`AssistantMessage`](#persistence-type-sha256-fa87537f4a9c1e25602990a8bf686b383e9e00352ec8946e16ae24ba7c1625be)
- [`DeveloperMessage`](#persistence-type-sha256-7580e7d96dc8475fffe813a42af499665de3d4517fcdb3bc2337d0340e98d616)
- [`UserMessage`](#persistence-type-sha256-b782058cef83caf3eb44a16adeef5657e4d5cdff2d50655aba418c4490670a69)
- [`SystemMessage`](#persistence-type-sha256-09f3f8dc417f278257202714132f98ba7b52957d7b558c4a04456603890eb363)
- [`AssistantMessage`](#persistence-type-sha256-fa87537f4a9c1e25602990a8bf686b383e9e00352ec8946e16ae24ba7c1625be)
<a id="persistence-type-sha256-7c6129b6961cf4b2a030f36c78d2b0a5be38617651a9b81322e054ee512bee06"></a>
@@ -4182,7 +4182,7 @@ One of:
- `"negative"`
- `"positive"`
<a id="persistence-type-sha256-6a69bf7c4ddee5c65ace3463a666c7af9a60c5598f9e33ae5edde0feb4528411"></a>
<a id="persistence-type-sha256-7a5b68bd1a5118c827df9e2466acc5e4d16b83e3f97a2304d992958647592690"></a>
<a id="persistence-type-messagesource"></a>
@@ -4190,12 +4190,19 @@ One of:
### `MessageSource`
SHA-256: `6a69bf7c4ddee5c65ace3463a666c7af9a60c5598f9e33ae5edde0feb4528411`
SHA-256: `7a5b68bd1a5118c827df9e2466acc5e4d16b83e3f97a2304d992958647592690`
Sources: [`packages/llm/llm/src/message.ts:136`](../packages/llm/llm/src/message.ts)
| kind | Form property | Other required fields | Full definition |
|---|---|---|---|
| `action-cards` | `"catalog"` | `through`: `number` | [`{ kind: "action-cards", form: "catalog" }`](#persistence-type-sha256-dd00cdccd0ba487b92362ef67db58cd264f48c1bfd368291424a1da9a899489a) |
| `action-cards` | `"instructions"` | `through`: `number` | [`{ kind: "action-cards", form: "instructions" }`](#persistence-type-sha256-ba2a1a8f194b1bb21f270713398f6643e206e8ff5f7f26f6d36a88e3f0f0ab10) |
| `action-cards` | `"notice"` | `summary`: `string`; `through`: `number` | [`{ kind: "action-cards", form: "notice" }`](#persistence-type-sha256-e7f4cbb3a57f4cbdb61ea41e95bcba626ad1fff6bb9b1e063b1d50a32da6e864) |
| `action-cards` | `"recall"` | `through`: `number` | [`{ kind: "action-cards", form: "recall" }`](#persistence-type-sha256-b613f83572fe2fbf7259c72308cafd008f4fceea897749128a48bcd158f290aa) |
| `action-cards` | `"relay"` | `through`: `number` | [`{ kind: "action-cards", form: "relay" }`](#persistence-type-sha256-45f005e6bbb7645248be792b715a74bc7fdf5a67f5381655d3a75dcc7aa2112e) |
| `action-cards` | `"snapshot"` | `sections`: [`ContextSnapshotSection[]`](#persistence-type-sha256-c748fb42c80a120038a8c587af80ec39924803c401364db11c8974d5bf6d0262); `through`: `number` | [`{ kind: "action-cards", form: "snapshot" }`](#persistence-type-sha256-3247e566f4340029325b70e4366b56fa9719977f1e39033b769a2ec221ab22a9) |
| `action-cards` | not declared | `through`: `number` | [`{ kind: "action-cards" }`](#persistence-type-sha256-dde0cdf9d426768b649b5a9783d2144e7f900c35ef65229cd89036dbf411d1b0) |
| `agent-instructions` | `"instructions"` | `changes`: [`AgentInstructionChange[]`](#persistence-type-sha256-2ab12a0e345658f9342816d773fe610f049982bcad82631f43b9205abe43e5ee) | [`AgentInstructionSource`](#persistence-type-sha256-6f22a9d02b9a1f1157f3b0e7bdccd7e7b12b085c4efdb709dfc74a465cd4e590) |
| `agent-message` | `"relay"` | `senderSessionId`: `string` | [`AgentMessageSource`](#persistence-type-sha256-4a9bef9f27a942520cc2279ca7dd3082556e4bff543f66b5c0333e1bbed1cd86) |
| `compact-checkpoint` | not declared | `compactionId`: `string` | [`CompactionCheckpointSource`](#persistence-type-sha256-31907de9563751822af6d9be02bafaf26faa098bbd1cb412524134d577cc1648) |
@@ -4230,13 +4237,6 @@ Sources: [`packages/llm/llm/src/message.ts:136`](../packages/llm/llm/src/message
| `model-selection` | `"relay"` | none | [`{ kind: "model-selection", form: "relay" }`](#persistence-type-sha256-a15a19ef63cf5d1b711db1d249821dab0cedcd3a9ad09137b47352c93841fd20) |
| `model-selection` | `"snapshot"` | `sections`: [`ContextSnapshotSection[]`](#persistence-type-sha256-c748fb42c80a120038a8c587af80ec39924803c401364db11c8974d5bf6d0262) | [`{ kind: "model-selection", form: "snapshot" }`](#persistence-type-sha256-52c6113cb0e53f345324bf84f01928bea5d5df57ee80bc0dd65407b8bc5a3734) |
| `model-selection` | not declared | none | [`{ kind: "model-selection" }`](#persistence-type-sha256-f7283223aacdc39b0adca728c8cbd4c090a20006a6fecec74421c30e943b489c) |
| `personalized-pages` | `"catalog"` | `through`: `number` | [`{ kind: "personalized-pages", form: "catalog" }`](#persistence-type-sha256-9529cbfe9fc86799157ea4fdd84e2d7e2daeffa8843065d29ac40acc68087681) |
| `personalized-pages` | `"instructions"` | `through`: `number` | [`{ kind: "personalized-pages", form: "instructions" }`](#persistence-type-sha256-062f94b162cfd50fccd0733645d262b6fce404349cd003b71d15daf5539f0c4e) |
| `personalized-pages` | `"notice"` | `summary`: `string`; `through`: `number` | [`{ kind: "personalized-pages", form: "notice" }`](#persistence-type-sha256-f99e707d67fd708b9c282bad0428e8bc8c69777d93d283bf152f20fd9eb3e36f) |
| `personalized-pages` | `"recall"` | `through`: `number` | [`{ kind: "personalized-pages", form: "recall" }`](#persistence-type-sha256-53bb37430d38c7256e3868155ca5a03f4d8a46f4b124b2d22152e3752c0cb574) |
| `personalized-pages` | `"relay"` | `through`: `number` | [`{ kind: "personalized-pages", form: "relay" }`](#persistence-type-sha256-d2cc8a54a6f1abc97f638821bc36cdd559355e6d9ceb9ad69bd63587a5ec7c0a) |
| `personalized-pages` | `"snapshot"` | `sections`: [`ContextSnapshotSection[]`](#persistence-type-sha256-c748fb42c80a120038a8c587af80ec39924803c401364db11c8974d5bf6d0262); `through`: `number` | [`{ kind: "personalized-pages", form: "snapshot" }`](#persistence-type-sha256-66b2e4f3954442bc9a11c5aa3bfbea6a33d9ff3f7df42fa7e7b062411d394da4) |
| `personalized-pages` | not declared | `through`: `number` | [`{ kind: "personalized-pages" }`](#persistence-type-sha256-5b25a1523822e01a21b6ca6054f583a61fdced38b3ddd22a37faeb5a6fe28448) |
| `plan-mode` | `"catalog"` | none | [`{ kind: "plan-mode", form: "catalog" }`](#persistence-type-sha256-3b04790e08b35241ffa0d38f6d7e4f8788aa921341f6c0d7574a329397c59408) |
| `plan-mode` | `"instructions"` | none | [`{ kind: "plan-mode", form: "instructions" }`](#persistence-type-sha256-408927267422a7b2beb6df354ff7c1406d929a5646554f48adf85eb8372f811c) |
| `plan-mode` | `"notice"` | `summary`: `string` | [`{ kind: "plan-mode", form: "notice" }`](#persistence-type-sha256-baccc97ec34be6c4c78e95aa88c85c29820269479445e5b13f956cd64c5e286f) |
@@ -4315,13 +4315,13 @@ Sources: [`packages/llm/llm/src/message.ts:136`](../packages/llm/llm/src/message
| `webhook` | `"notice"` | `deliveryId`: `string`; `provider`: `string`; `ruleId`: `string`; `source`: `string`; `summary`: `string` | [`{ kind: "webhook", form: "notice" }`](#persistence-type-sha256-9edc162949abf93bd5ff049191b345454ba104f583937ce5580fb50f067d2b94) |
| `working-directory` | not declared | none | [`{ kind: "working-directory" }`](#persistence-type-sha256-2235d957bf4b7c6cf959231d480f0ba1f3a6d72d82981493fb6c7c963021d3d5) |
<a id="persistence-type-sha256-cf58fe6f97f6f8fcc325a1b88d89b821a0120e40ea9667f3e4547a24076b97de"></a>
<a id="persistence-type-sha256-78b9204976ab9faaf133c3488b73d1dfb6f1a4bb6c0903e3473cd41a5e1e39e1"></a>
### `Message[]`
SHA-256: `cf58fe6f97f6f8fcc325a1b88d89b821a0120e40ea9667f3e4547a24076b97de`
SHA-256: `78b9204976ab9faaf133c3488b73d1dfb6f1a4bb6c0903e3473cd41a5e1e39e1`
Array of [`Message`](#persistence-type-sha256-cea2baa72d20cb86e3a9907bcec1541ab1cfff1a83c892f033463e5cf14064fb).
Array of [`Message`](#persistence-type-sha256-cda79b839d8cc0c7a7bd09dd067de04925f6e9037080d878b65aaa5a383f117c).
<a id="persistence-type-sha256-719c51f67074f97034a6c94297fe1f4b5d3c8d392c57586dab732aa5398c7a91"></a>
@@ -4705,7 +4705,7 @@ Sources: [`packages/session/session-title/src/types.ts:41`](../packages/session/
| `source` | required | [`SessionTitleSource`](#persistence-type-sha256-30d5a537b296685770b1241c4b4bbde19d5a31ff81aa23df73fab5e90b8fc65f) |
| `title` | required | `string` |
<a id="persistence-type-sha256-929c90ad641192d1a3de9d1aa5adb889856e2f4e20188e9c057b25eee88aa13c"></a>
<a id="persistence-type-sha256-a3e299483348f27a4787a36bb3f29cd86024c65336abc10bb3d687468302c4cf"></a>
<a id="persistence-type-packagessessionsession-title-llmsrcindextssessiontitlellmrequesteventdata"></a>
@@ -4713,7 +4713,7 @@ Sources: [`packages/session/session-title/src/types.ts:41`](../packages/session/
### `SessionTitleLlmRequestEventData`
SHA-256: `929c90ad641192d1a3de9d1aa5adb889856e2f4e20188e9c057b25eee88aa13c`
SHA-256: `a3e299483348f27a4787a36bb3f29cd86024c65336abc10bb3d687468302c4cf`
Sources: [`packages/session/session-title-llm/src/index.ts:37`](../packages/session/session-title-llm/src/index.ts)
@@ -4721,7 +4721,7 @@ Sources: [`packages/session/session-title-llm/src/index.ts:37`](../packages/sess
|---|---|---|
| `maxTokens` | required | `number` |
| `messageSeqs` | required | [`number[]`](#persistence-type-sha256-5d03ba38734809bcbd2a55221bd938b3b3fc34b49bb686c6113e9e4931e3aa78) |
| `messages` | required | [`Message[]`](#persistence-type-sha256-cf58fe6f97f6f8fcc325a1b88d89b821a0120e40ea9667f3e4547a24076b97de) |
| `messages` | required | [`Message[]`](#persistence-type-sha256-78b9204976ab9faaf133c3488b73d1dfb6f1a4bb6c0903e3473cd41a5e1e39e1) |
| `reasoningEffort` | optional | `string` |
| `route` | required | [`SessionTitleModelIdentity`](#persistence-type-sha256-07e1a58c58b593f507b8e7f25723bb0aa42baae6e00f5ecfddf28cb1e64d3235) |
| `system` | required | `string` |
@@ -5377,7 +5377,7 @@ Sources: [`packages/core/session/src/types.ts:234`](../packages/core/session/src
| `interrupted` | not declared | none | [`{ kind: "interrupted" }`](#persistence-type-sha256-56b7c047694875a843ba020dfea3c8380d54ae4ff88ab349e72004dc21e07c23) |
| `max-tokens` | not declared | none | [`{ kind: "max-tokens" }`](#persistence-type-sha256-ab7ec5f9eb2c6dfacca5da4c37cf7ba85d04172053ee6b1ebf1709ffcd99c1a7) |
<a id="persistence-type-sha256-c1d5de6f6d47227a1ab3d64c5387b9acd4f9a78df5a61e92c2e82e39b8f9825f"></a>
<a id="persistence-type-sha256-b782058cef83caf3eb44a16adeef5657e4d5cdff2d50655aba418c4490670a69"></a>
<a id="persistence-type-packagesllmllmsrcmessagetsusermessage"></a>
@@ -5385,7 +5385,7 @@ Sources: [`packages/core/session/src/types.ts:234`](../packages/core/session/src
### `UserMessage`
SHA-256: `c1d5de6f6d47227a1ab3d64c5387b9acd4f9a78df5a61e92c2e82e39b8f9825f`
SHA-256: `b782058cef83caf3eb44a16adeef5657e4d5cdff2d50655aba418c4490670a69`
Sources: [`packages/llm/llm/src/message.ts:162`](../packages/llm/llm/src/message.ts)
@@ -5394,19 +5394,19 @@ Sources: [`packages/llm/llm/src/message.ts:162`](../packages/llm/llm/src/message
| `content` | required | [`ContentBlock[]`](#persistence-type-sha256-b52f215a6cd691058a3413c12f161fa3b563a2f4895adb3df6f744ec4b0a6ef1) |
| `id` | required | `string` |
| `role` | required | `"user"` |
| `source` | required | [`MessageSource`](#persistence-type-sha256-6a69bf7c4ddee5c65ace3463a666c7af9a60c5598f9e33ae5edde0feb4528411) |
| `source` | required | [`MessageSource`](#persistence-type-sha256-7a5b68bd1a5118c827df9e2466acc5e4d16b83e3f97a2304d992958647592690) |
Source compatibility: `source` — `session-source-attribution` v1; `session.user-message.source`; `kind`; `preserve`.
Attribution-only additions: `personalized-pages`, `tmux-context`, `user-question-reply`, `working-directory`.
Attribution-only additions: `action-cards`, `tmux-context`, `user-question-reply`, `working-directory`.
<a id="persistence-type-sha256-a7241f5a94c73b544eef17a344b3f09ba12943066c611b40a1cf8e78dc9543ae"></a>
<a id="persistence-type-sha256-5d00abf938272f22eb47199e9d40801e8d8ec4c88e2b138b15aa2a5a5bf87520"></a>
### `UserMessage[]`
SHA-256: `a7241f5a94c73b544eef17a344b3f09ba12943066c611b40a1cf8e78dc9543ae`
SHA-256: `5d00abf938272f22eb47199e9d40801e8d8ec4c88e2b138b15aa2a5a5bf87520`
Array of [`UserMessage`](#persistence-type-sha256-c1d5de6f6d47227a1ab3d64c5387b9acd4f9a78df5a61e92c2e82e39b8f9825f).
Array of [`UserMessage`](#persistence-type-sha256-b782058cef83caf3eb44a16adeef5657e4d5cdff2d50655aba418c4490670a69).
<a id="persistence-type-sha256-c2deb7c9183735d4e0fffddf5c623f4e34daa1c8e96b111982e957dfcbbcf896"></a>
@@ -6291,18 +6291,18 @@ Sources: [`packages/core/session/src/types.ts:392`](../packages/core/session/src
| `reason` | required | [`RequestHeaderReason`](#persistence-type-sha256-530da6c0267813bb4511af72883cc518834e624e3b3220a7062955fd57a788a6) |
| `startsSeries` | optional | `true` |
<a id="persistence-type-sha256-58d643f2ec961461c8b14b737f081f047cd5d11890df8682305c55118dd5d1bf"></a>
<a id="persistence-type-sha256-7404c6123fdaa591474a37979a5a8ae70d1387af7c9f09bfe568b218935a974d"></a>
### `{ headerSeq?, message, step, turn }`
SHA-256: `58d643f2ec961461c8b14b737f081f047cd5d11890df8682305c55118dd5d1bf`
SHA-256: `7404c6123fdaa591474a37979a5a8ae70d1387af7c9f09bfe568b218935a974d`
Sources: [`packages/core/session/src/types.ts:313`](../packages/core/session/src/types.ts)
| Property | Presence | Type |
|---|---|---|
| `headerSeq` | optional | `number` |
| `message` | required | [`DeveloperMessage`](#persistence-type-sha256-243d11dd918e46dee2902e3739a4ae3d711796d88cd0dbaa4dd51a9fe872ad1f) |
| `message` | required | [`DeveloperMessage`](#persistence-type-sha256-7580e7d96dc8475fffe813a42af499665de3d4517fcdb3bc2337d0340e98d616) |
| `step` | required | `number` |
| `turn` | required | `number` |
@@ -6386,17 +6386,17 @@ Sources: [`packages/core/session/src/types.ts:429`](../packages/core/session/src
|---|---|---|
| `inherited` | optional | `true` |
<a id="persistence-type-sha256-6889dc45ee6d68d2182ab54eda30d71691014b3742c4119db4e5ea673020aa04"></a>
<a id="persistence-type-sha256-b2a948a5340a9341fa3bab99507c7090c5b0456de72ec28b5b157b8df3f1d640"></a>
### `{ inserted, outcome?, removedCount?, start, … }`
SHA-256: `6889dc45ee6d68d2182ab54eda30d71691014b3742c4119db4e5ea673020aa04`
SHA-256: `b2a948a5340a9341fa3bab99507c7090c5b0456de72ec28b5b157b8df3f1d640`
Sources: [`packages/core/agent/src/types.ts:110`](../packages/core/agent/src/types.ts)
| Property | Presence | Type |
|---|---|---|
| `inserted` | required | [`UserMessage[]`](#persistence-type-sha256-a7241f5a94c73b544eef17a344b3f09ba12943066c611b40a1cf8e78dc9543ae) |
| `inserted` | required | [`UserMessage[]`](#persistence-type-sha256-5d00abf938272f22eb47199e9d40801e8d8ec4c88e2b138b15aa2a5a5bf87520) |
| `outcome` | optional | `"canceled"` |
| `removedCount` | optional | `number` |
| `start` | required | `number` |
@@ -6432,6 +6432,91 @@ Sources: [`packages/core/session/src/types.ts:205`](../packages/core/session/src
| `kind` | required | `"aborted"` |
| `reason` | required | [`TurnEndCancelCause`](#persistence-type-sha256-1f8c126cfab3df812cd115cfc23e3256f0fa2383400f4ce91ecad313577e59b0) |
<a id="persistence-type-sha256-dde0cdf9d426768b649b5a9783d2144e7f900c35ef65229cd89036dbf411d1b0"></a>
### `{ kind: "action-cards" }`
SHA-256: `dde0cdf9d426768b649b5a9783d2144e7f900c35ef65229cd89036dbf411d1b0`
| Property | Presence | Type |
|---|---|---|
| `kind` | required | `"action-cards"` |
| `through` | required | `number` |
<a id="persistence-type-sha256-dd00cdccd0ba487b92362ef67db58cd264f48c1bfd368291424a1da9a899489a"></a>
### `{ kind: "action-cards", form: "catalog" }`
SHA-256: `dd00cdccd0ba487b92362ef67db58cd264f48c1bfd368291424a1da9a899489a`
| Property | Presence | Type |
|---|---|---|
| `form` | required | `"catalog"` |
| `kind` | required | `"action-cards"` |
| `through` | required | `number` |
<a id="persistence-type-sha256-ba2a1a8f194b1bb21f270713398f6643e206e8ff5f7f26f6d36a88e3f0f0ab10"></a>
### `{ kind: "action-cards", form: "instructions" }`
SHA-256: `ba2a1a8f194b1bb21f270713398f6643e206e8ff5f7f26f6d36a88e3f0f0ab10`
| Property | Presence | Type |
|---|---|---|
| `form` | required | `"instructions"` |
| `kind` | required | `"action-cards"` |
| `through` | required | `number` |
<a id="persistence-type-sha256-e7f4cbb3a57f4cbdb61ea41e95bcba626ad1fff6bb9b1e063b1d50a32da6e864"></a>
### `{ kind: "action-cards", form: "notice" }`
SHA-256: `e7f4cbb3a57f4cbdb61ea41e95bcba626ad1fff6bb9b1e063b1d50a32da6e864`
| Property | Presence | Type |
|---|---|---|
| `form` | required | `"notice"` |
| `kind` | required | `"action-cards"` |
| `summary` | required | `string` |
| `through` | required | `number` |
<a id="persistence-type-sha256-b613f83572fe2fbf7259c72308cafd008f4fceea897749128a48bcd158f290aa"></a>
### `{ kind: "action-cards", form: "recall" }`
SHA-256: `b613f83572fe2fbf7259c72308cafd008f4fceea897749128a48bcd158f290aa`
| Property | Presence | Type |
|---|---|---|
| `form` | required | `"recall"` |
| `kind` | required | `"action-cards"` |
| `through` | required | `number` |
<a id="persistence-type-sha256-45f005e6bbb7645248be792b715a74bc7fdf5a67f5381655d3a75dcc7aa2112e"></a>
### `{ kind: "action-cards", form: "relay" }`
SHA-256: `45f005e6bbb7645248be792b715a74bc7fdf5a67f5381655d3a75dcc7aa2112e`
| Property | Presence | Type |
|---|---|---|
| `form` | required | `"relay"` |
| `kind` | required | `"action-cards"` |
| `through` | required | `number` |
<a id="persistence-type-sha256-3247e566f4340029325b70e4366b56fa9719977f1e39033b769a2ec221ab22a9"></a>
### `{ kind: "action-cards", form: "snapshot" }`
SHA-256: `3247e566f4340029325b70e4366b56fa9719977f1e39033b769a2ec221ab22a9`
| Property | Presence | Type |
|---|---|---|
| `form` | required | `"snapshot"` |
| `kind` | required | `"action-cards"` |
| `sections` | required | [`ContextSnapshotSection[]`](#persistence-type-sha256-c748fb42c80a120038a8c587af80ec39924803c401364db11c8974d5bf6d0262) |
| `through` | required | `number` |
<a id="persistence-type-sha256-023a355b2be0d688fb6e4df8388dadb942761d46cfe96d0f499aae9631a159d4"></a>
### `{ kind: "blocked" }`
@@ -6877,91 +6962,6 @@ Sources: [`packages/core/session/src/types.ts:192`](../packages/core/session/src
|---|---|---|
| `kind` | required | `"parent"` |
<a id="persistence-type-sha256-5b25a1523822e01a21b6ca6054f583a61fdced38b3ddd22a37faeb5a6fe28448"></a>
### `{ kind: "personalized-pages" }`
SHA-256: `5b25a1523822e01a21b6ca6054f583a61fdced38b3ddd22a37faeb5a6fe28448`
| Property | Presence | Type |
|---|---|---|
| `kind` | required | `"personalized-pages"` |
| `through` | required | `number` |
<a id="persistence-type-sha256-9529cbfe9fc86799157ea4fdd84e2d7e2daeffa8843065d29ac40acc68087681"></a>
### `{ kind: "personalized-pages", form: "catalog" }`
SHA-256: `9529cbfe9fc86799157ea4fdd84e2d7e2daeffa8843065d29ac40acc68087681`
| Property | Presence | Type |
|---|---|---|
| `form` | required | `"catalog"` |
| `kind` | required | `"personalized-pages"` |
| `through` | required | `number` |
<a id="persistence-type-sha256-062f94b162cfd50fccd0733645d262b6fce404349cd003b71d15daf5539f0c4e"></a>
### `{ kind: "personalized-pages", form: "instructions" }`
SHA-256: `062f94b162cfd50fccd0733645d262b6fce404349cd003b71d15daf5539f0c4e`
| Property | Presence | Type |
|---|---|---|
| `form` | required | `"instructions"` |
| `kind` | required | `"personalized-pages"` |
| `through` | required | `number` |
<a id="persistence-type-sha256-f99e707d67fd708b9c282bad0428e8bc8c69777d93d283bf152f20fd9eb3e36f"></a>
### `{ kind: "personalized-pages", form: "notice" }`
SHA-256: `f99e707d67fd708b9c282bad0428e8bc8c69777d93d283bf152f20fd9eb3e36f`
| Property | Presence | Type |
|---|---|---|
| `form` | required | `"notice"` |
| `kind` | required | `"personalized-pages"` |
| `summary` | required | `string` |
| `through` | required | `number` |
<a id="persistence-type-sha256-53bb37430d38c7256e3868155ca5a03f4d8a46f4b124b2d22152e3752c0cb574"></a>
### `{ kind: "personalized-pages", form: "recall" }`
SHA-256: `53bb37430d38c7256e3868155ca5a03f4d8a46f4b124b2d22152e3752c0cb574`
| Property | Presence | Type |
|---|---|---|
| `form` | required | `"recall"` |
| `kind` | required | `"personalized-pages"` |
| `through` | required | `number` |
<a id="persistence-type-sha256-d2cc8a54a6f1abc97f638821bc36cdd559355e6d9ceb9ad69bd63587a5ec7c0a"></a>
### `{ kind: "personalized-pages", form: "relay" }`
SHA-256: `d2cc8a54a6f1abc97f638821bc36cdd559355e6d9ceb9ad69bd63587a5ec7c0a`
| Property | Presence | Type |
|---|---|---|
| `form` | required | `"relay"` |
| `kind` | required | `"personalized-pages"` |
| `through` | required | `number` |
<a id="persistence-type-sha256-66b2e4f3954442bc9a11c5aa3bfbea6a33d9ff3f7df42fa7e7b062411d394da4"></a>
### `{ kind: "personalized-pages", form: "snapshot" }`
SHA-256: `66b2e4f3954442bc9a11c5aa3bfbea6a33d9ff3f7df42fa7e7b062411d394da4`
| Property | Presence | Type |
|---|---|---|
| `form` | required | `"snapshot"` |
| `kind` | required | `"personalized-pages"` |
| `sections` | required | [`ContextSnapshotSection[]`](#persistence-type-sha256-c748fb42c80a120038a8c587af80ec39924803c401364db11c8974d5bf6d0262) |
| `through` | required | `number` |
<a id="persistence-type-sha256-f4a66f654996c093aae700ea4c434ff2ee3569fea9c0e5813ccf6afdccabd163"></a>
### `{ kind: "plan-mode" }`
@@ -8043,17 +8043,17 @@ SHA-256: `a10c17474eaf2ddab7095a099e0fe3d046fc18e56c3e344fc8894c05ff9ef97b`
| `time` | required | `number` |
| `type` | required | `"agent-preset/selected"` |
<a id="persistence-type-sha256-1b43047675face5df9ba7646bbbcd873907465dcedcf22ea824f9f088cea2840"></a>
<a id="persistence-type-sha256-b36fd842cd004b532ce96fd5d6f5be28e017eda043131aa3cf5e69edc436108e"></a>
<a id="persistence-type-eventagentinboxspliced"></a>
### `{ type: "agent/inbox/spliced" }`
SHA-256: `1b43047675face5df9ba7646bbbcd873907465dcedcf22ea824f9f088cea2840`
SHA-256: `b36fd842cd004b532ce96fd5d6f5be28e017eda043131aa3cf5e69edc436108e`
| Property | Presence | Type |
|---|---|---|
| `data` | required | [`{ inserted, outcome?, removedCount?, start, … }`](#persistence-type-sha256-6889dc45ee6d68d2182ab54eda30d71691014b3742c4119db4e5ea673020aa04) |
| `data` | required | [`{ inserted, outcome?, removedCount?, start, … }`](#persistence-type-sha256-b2a948a5340a9341fa3bab99507c7090c5b0456de72ec28b5b157b8df3f1d640) |
| `ignorable` | optional | `true` |
| `seq` | required | `number` |
| `time` | required | `number` |
@@ -8294,17 +8294,17 @@ SHA-256: `13d3d180f977bf78081d487ffa0ecb75857349bcab29a5a3fb48189fca2a6176`
| `time` | required | `number` |
| `type` | required | `"deliverables/presented"` |
<a id="persistence-type-sha256-85d754f8957fcbbfb65bcb6dded47a816c409bb431de293ff3209b11fe093ded"></a>
<a id="persistence-type-sha256-5ef58f2a1bdc576c1f12fa1f4da1920ece020b13c0f991a578cddcbeb28bc5be"></a>
<a id="persistence-type-eventdevelopermessage"></a>
### `{ type: "developer/message" }`
SHA-256: `85d754f8957fcbbfb65bcb6dded47a816c409bb431de293ff3209b11fe093ded`
SHA-256: `5ef58f2a1bdc576c1f12fa1f4da1920ece020b13c0f991a578cddcbeb28bc5be`
| Property | Presence | Type |
|---|---|---|
| `data` | required | [`{ headerSeq?, message, step, turn }`](#persistence-type-sha256-58d643f2ec961461c8b14b737f081f047cd5d11890df8682305c55118dd5d1bf) |
| `data` | required | [`{ headerSeq?, message, step, turn }`](#persistence-type-sha256-7404c6123fdaa591474a37979a5a8ae70d1387af7c9f09bfe568b218935a974d) |
| `ignorable` | optional | `true` |
| `seq` | required | `number` |
| `sourceEventSeqs` | optional | [`number[]`](#persistence-type-sha256-5d03ba38734809bcbd2a55221bd938b3b3fc34b49bb686c6113e9e4931e3aa78) |
@@ -8704,17 +8704,17 @@ SHA-256: `1b912703e2d64f91c99c675b8f805b01076c8325b905c1218ad81ef0b24909d5`
| `time` | required | `number` |
| `type` | required | `"session/title"` |
<a id="persistence-type-sha256-9d2c7e74894fb4dbf3af436b09d1e9ae4a631dbdf3c7ebbfb2b490b1279c94b3"></a>
<a id="persistence-type-sha256-efa1a091017ce533e38b0ef3e14d11a5c102ff1793229b18dad719a4268d9adc"></a>
<a id="persistence-type-eventsessiontitle-llm-request"></a>
### `{ type: "session/title-llm-request" }`
SHA-256: `9d2c7e74894fb4dbf3af436b09d1e9ae4a631dbdf3c7ebbfb2b490b1279c94b3`
SHA-256: `efa1a091017ce533e38b0ef3e14d11a5c102ff1793229b18dad719a4268d9adc`
| Property | Presence | Type |
|---|---|---|
| `data` | required | [`SessionTitleLlmRequestEventData`](#persistence-type-sha256-929c90ad641192d1a3de9d1aa5adb889856e2f4e20188e9c057b25eee88aa13c) |
| `data` | required | [`SessionTitleLlmRequestEventData`](#persistence-type-sha256-a3e299483348f27a4787a36bb3f29cd86024c65336abc10bb3d687468302c4cf) |
| `ignorable` | optional | `true` |
| `seq` | required | `number` |
| `time` | required | `number` |
@@ -9137,17 +9137,17 @@ Sources: [`packages/llm/llm/src/types.ts:476`](../packages/llm/llm/src/types.ts)
| `type` | required | `"usage"` |
| `usage` | required | [`TokenUsage`](#persistence-type-sha256-fec5442b9ee4122e10514d81d5a43648003fe8bfb7ee2ba50c0cdbdd383ed394) |
<a id="persistence-type-sha256-c81b3891a886d2e40a09d04633ec88918289bb10eee9098ed19d33c1994aa4d8"></a>
<a id="persistence-type-sha256-58b122df513aeaf7ddc5783dbb1fd844e2979bb273964e30ae351a8db6510019"></a>
<a id="persistence-type-eventusermessage"></a>
### `{ type: "user/message" }`
SHA-256: `c81b3891a886d2e40a09d04633ec88918289bb10eee9098ed19d33c1994aa4d8`
SHA-256: `58b122df513aeaf7ddc5783dbb1fd844e2979bb273964e30ae351a8db6510019`
| Property | Presence | Type |
|---|---|---|
| `data` | required | [`UserMessage`](#persistence-type-sha256-c1d5de6f6d47227a1ab3d64c5387b9acd4f9a78df5a61e92c2e82e39b8f9825f) |
| `data` | required | [`UserMessage`](#persistence-type-sha256-b782058cef83caf3eb44a16adeef5657e4d5cdff2d50655aba418c4490670a69) |
| `ignorable` | optional | `true` |
| `seq` | required | `number` |
| `sourceEventSeqs` | optional | [`number[]`](#persistence-type-sha256-5d03ba38734809bcbd2a55221bd938b3b3fc34b49bb686c6113e9e4931e3aa78) |
+146 -146
View File
@@ -25,7 +25,7 @@
| `JsonlHeaderLine` | header | `18ee62b8900a4c3d046700f05d7a4d49d6cab2a660a020c87481d1603dd8bd4f` | [`HeaderLine`](#persistence-type-sha256-18ee62b8900a4c3d046700f05d7a4d49d6cab2a660a020c87481d1603dd8bd4f) |
| `SessionEventEnvelope` | envelope | `5776e5553ff2dfe3f5bc202dbb1e7c9f93e35a531aebb7764c23b2b6153b2ccc` | [`union (3 variants)`](#persistence-type-sha256-5776e5553ff2dfe3f5bc202dbb1e7c9f93e35a531aebb7764c23b2b6153b2ccc) |
| `event:agent-preset/selected` | event | `a10c17474eaf2ddab7095a099e0fe3d046fc18e56c3e344fc8894c05ff9ef97b` | [`{ type: "agent-preset/selected" }`](#persistence-type-sha256-a10c17474eaf2ddab7095a099e0fe3d046fc18e56c3e344fc8894c05ff9ef97b) |
| `event:agent/inbox/spliced` | event | `1b43047675face5df9ba7646bbbcd873907465dcedcf22ea824f9f088cea2840` | [`{ type: "agent/inbox/spliced" }`](#persistence-type-sha256-1b43047675face5df9ba7646bbbcd873907465dcedcf22ea824f9f088cea2840) |
| `event:agent/inbox/spliced` | event | `b36fd842cd004b532ce96fd5d6f5be28e017eda043131aa3cf5e69edc436108e` | [`{ type: "agent/inbox/spliced" }`](#persistence-type-sha256-b36fd842cd004b532ce96fd5d6f5be28e017eda043131aa3cf5e69edc436108e) |
| `event:approval/asked` | event | `3bfeb47b58606f4661904bc723da612782214c463d01e6d61cd6d6193d7374e1` | [`{ type: "approval/asked" }`](#persistence-type-sha256-3bfeb47b58606f4661904bc723da612782214c463d01e6d61cd6d6193d7374e1) |
| `event:approval/decided` | event | `bb1ab3d08f49a9f3b265f844cd78d5c49813062a7b34b54904b426f85d0ff6e3` | [`{ type: "approval/decided" }`](#persistence-type-sha256-bb1ab3d08f49a9f3b265f844cd78d5c49813062a7b34b54904b426f85d0ff6e3) |
| `event:approval/policy` | event | `26718e15e7e395bce9642dba5bbe09b3b1a4ce2213d20d566cd9207d7fc5fb78` | [`{ type: "approval/policy" }`](#persistence-type-sha256-26718e15e7e395bce9642dba5bbe09b3b1a4ce2213d20d566cd9207d7fc5fb78) |
@@ -38,7 +38,7 @@
| `event:compaction/start` | event | `db874d463b0fdec77e9da1c4568f37cb70bd6596781eb93800db44fb8a116965` | [`{ type: "compaction/start" }`](#persistence-type-sha256-db874d463b0fdec77e9da1c4568f37cb70bd6596781eb93800db44fb8a116965) |
| `event:compaction/summary` | event | `e2f9a41e0989f54ed8cee80f8db2bcf9d60a5c810dc9d45b83fa050b9dce7602` | [`{ type: "compaction/summary" }`](#persistence-type-sha256-e2f9a41e0989f54ed8cee80f8db2bcf9d60a5c810dc9d45b83fa050b9dce7602) |
| `event:deliverables/presented` | event | `13d3d180f977bf78081d487ffa0ecb75857349bcab29a5a3fb48189fca2a6176` | [`{ type: "deliverables/presented" }`](#persistence-type-sha256-13d3d180f977bf78081d487ffa0ecb75857349bcab29a5a3fb48189fca2a6176) |
| `event:developer/message` | event | `85d754f8957fcbbfb65bcb6dded47a816c409bb431de293ff3209b11fe093ded` | [`{ type: "developer/message" }`](#persistence-type-sha256-85d754f8957fcbbfb65bcb6dded47a816c409bb431de293ff3209b11fe093ded) |
| `event:developer/message` | event | `5ef58f2a1bdc576c1f12fa1f4da1920ece020b13c0f991a578cddcbeb28bc5be` | [`{ type: "developer/message" }`](#persistence-type-sha256-5ef58f2a1bdc576c1f12fa1f4da1920ece020b13c0f991a578cddcbeb28bc5be) |
| `event:feedback/message-delete` | event | `3ee93b06f3a125850337602bcdf155d2538c43a5c944ec55b1b3c365152d6796` | [`{ type: "feedback/message-delete" }`](#persistence-type-sha256-3ee93b06f3a125850337602bcdf155d2538c43a5c944ec55b1b3c365152d6796) |
| `event:feedback/message-put` | event | `b5086d249e8502e9ead1d39156bb8d559bde7951cac0f14ce150345b4e42a2bf` | [`{ type: "feedback/message-put" }`](#persistence-type-sha256-b5086d249e8502e9ead1d39156bb8d559bde7951cac0f14ce150345b4e42a2bf) |
| `event:feedback/record` | event | `b54940ff095c17e874c5be03815f4c2145a256cf3a1d34dae4ab2f7769dfffe8` | [`{ type: "feedback/record" }`](#persistence-type-sha256-b54940ff095c17e874c5be03815f4c2145a256cf3a1d34dae4ab2f7769dfffe8) |
@@ -60,7 +60,7 @@
| `event:session-log-deepseek/delivery-accepted` | event | `d63b8b8ffad9c02fd80c43a17df4f240c1fe8118ecca9de34f9d5871838ab5b9` | [`{ type: "session-log-deepseek/delivery-accepted" }`](#persistence-type-sha256-d63b8b8ffad9c02fd80c43a17df4f240c1fe8118ecca9de34f9d5871838ab5b9) |
| `event:session/end-seed` | event | `5e6db6e24948d4a853c71cb9fabd252ad051ce93d4672c1266cf837c1c17b84e` | [`{ type: "session/end-seed" }`](#persistence-type-sha256-5e6db6e24948d4a853c71cb9fabd252ad051ce93d4672c1266cf837c1c17b84e) |
| `event:session/title` | event | `1b912703e2d64f91c99c675b8f805b01076c8325b905c1218ad81ef0b24909d5` | [`{ type: "session/title" }`](#persistence-type-sha256-1b912703e2d64f91c99c675b8f805b01076c8325b905c1218ad81ef0b24909d5) |
| `event:session/title-llm-request` | event | `9d2c7e74894fb4dbf3af436b09d1e9ae4a631dbdf3c7ebbfb2b490b1279c94b3` | [`{ type: "session/title-llm-request" }`](#persistence-type-sha256-9d2c7e74894fb4dbf3af436b09d1e9ae4a631dbdf3c7ebbfb2b490b1279c94b3) |
| `event:session/title-llm-request` | event | `efa1a091017ce533e38b0ef3e14d11a5c102ff1793229b18dad719a4268d9adc` | [`{ type: "session/title-llm-request" }`](#persistence-type-sha256-efa1a091017ce533e38b0ef3e14d11a5c102ff1793229b18dad719a4268d9adc) |
| `event:step/end` | event | `e0a787e6ec76c7c94fecbc501b489164ab0293db05bc947914077ad01e674f05` | [`{ type: "step/end" }`](#persistence-type-sha256-e0a787e6ec76c7c94fecbc501b489164ab0293db05bc947914077ad01e674f05) |
| `event:step/start` | event | `4513e088d43e6c68425be30451b9f961cc264fe7318ca62681c41d4d78615986` | [`{ type: "step/start" }`](#persistence-type-sha256-4513e088d43e6c68425be30451b9f961cc264fe7318ca62681c41d4d78615986) |
| `event:subagent/catalog` | event | `53750b9abf61efb7992b0aadc3e247ec927449c63266df28230fd1139f5590ac` | [`{ type: "subagent/catalog" }`](#persistence-type-sha256-53750b9abf61efb7992b0aadc3e247ec927449c63266df28230fd1139f5590ac) |
@@ -82,7 +82,7 @@
| `event:tool/result` | event | `7c9f44e90a0058f4cc532ae20dad0c10afa6eba22e70a6c79fc79490bad64397` | [`{ type: "tool/result" }`](#persistence-type-sha256-7c9f44e90a0058f4cc532ae20dad0c10afa6eba22e70a6c79fc79490bad64397) |
| `event:turn/end` | event | `0f8512903d94f57a4748fa1a2092e64342856796684e6b8343db685b192745ce` | [`{ type: "turn/end" }`](#persistence-type-sha256-0f8512903d94f57a4748fa1a2092e64342856796684e6b8343db685b192745ce) |
| `event:turn/start` | event | `aa0957eca50aeb28bcd2e6930b95809926edacb550c8c340ba526ba6b861b3d8` | [`{ type: "turn/start" }`](#persistence-type-sha256-aa0957eca50aeb28bcd2e6930b95809926edacb550c8c340ba526ba6b861b3d8) |
| `event:user/message` | event | `c81b3891a886d2e40a09d04633ec88918289bb10eee9098ed19d33c1994aa4d8` | [`{ type: "user/message" }`](#persistence-type-sha256-c81b3891a886d2e40a09d04633ec88918289bb10eee9098ed19d33c1994aa4d8) |
| `event:user/message` | event | `58b122df513aeaf7ddc5783dbb1fd844e2979bb273964e30ae351a8db6510019` | [`{ type: "user/message" }`](#persistence-type-sha256-58b122df513aeaf7ddc5783dbb1fd844e2979bb273964e30ae351a8db6510019) |
| `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/changes` | event | `e308ccf867a5398e316e0af8cb6ce238a8d33a63b9b384c8250a686786285f72` | [`{ type: "workspace/changes" }`](#persistence-type-sha256-e308ccf867a5398e316e0af8cb6ce238a8d33a63b9b384c8250a686786285f72) |
@@ -1349,6 +1349,14 @@ SHA-256: `1e0b0b66b6f0c53fc72e52289d06b4708d776f1ca9df4c86a22bff621d403cf0`
`"aborted"`
<a id="persistence-type-sha256-05205074b24d8340cfd7995f6cb64779c7f1241490954700115601e264178877"></a>
### `"action-cards"`
SHA-256: `05205074b24d8340cfd7995f6cb64779c7f1241490954700115601e264178877`
`"action-cards"`
<a id="persistence-type-sha256-c8e6f48878cc2a2f0dc59682280d81f407943fb503f32c64bf9ff3d9393c3eff"></a>
### `"active"`
@@ -2243,14 +2251,6 @@ SHA-256: `ae63d9d1080ed8945031594d93f8d96651d7101b848719cc3e1475875cd3d649`
`"permission/preset"`
<a id="persistence-type-sha256-e1ba710db2f3e4e4d397b921fafedb5dd5ad5d16efc0393f0667160cb02f79e3"></a>
### `"personalized-pages"`
SHA-256: `e1ba710db2f3e4e4d397b921fafedb5dd5ad5d16efc0393f0667160cb02f79e3`
`"personalized-pages"`
<a id="persistence-type-sha256-0fe52387f65052702ed9d7cd59db826468936595d1b3eec207e7a823adc719db"></a>
### `"plan-mode"`
@@ -3375,7 +3375,7 @@ SHA-256: `abd6ca62a5ab166553848324a23fef90eed7f59c8021bd63e7ea5bc6fd666b0c`
| `body` | 必需 | [`{ max_tokens, messages, model, thinking?, … }`](#persistence-type-sha256-9c001ecb5e1d3c3894410db2a1e383842e5f8454fb52182338686158abc1b3ee) |
| `endpoint` | 必需 | `string` |
<a id="persistence-type-sha256-243d11dd918e46dee2902e3739a4ae3d711796d88cd0dbaa4dd51a9fe872ad1f"></a>
<a id="persistence-type-sha256-7580e7d96dc8475fffe813a42af499665de3d4517fcdb3bc2337d0340e98d616"></a>
<a id="persistence-type-developermessage"></a>
@@ -3383,7 +3383,7 @@ SHA-256: `abd6ca62a5ab166553848324a23fef90eed7f59c8021bd63e7ea5bc6fd666b0c`
### `DeveloperMessage`
SHA-256: `243d11dd918e46dee2902e3739a4ae3d711796d88cd0dbaa4dd51a9fe872ad1f`
SHA-256: `7580e7d96dc8475fffe813a42af499665de3d4517fcdb3bc2337d0340e98d616`
来源:[`packages/llm/llm/src/message.ts:157`](../packages/llm/llm/src/message.ts)
@@ -3392,11 +3392,11 @@ SHA-256: `243d11dd918e46dee2902e3739a4ae3d711796d88cd0dbaa4dd51a9fe872ad1f`
| `content` | 必需 | [`ContentBlock[]`](#persistence-type-sha256-b52f215a6cd691058a3413c12f161fa3b563a2f4895adb3df6f744ec4b0a6ef1) |
| `id` | 必需 | `string` |
| `role` | 必需 | `"developer"` |
| `source` | 必需 | [`MessageSource`](#persistence-type-sha256-6a69bf7c4ddee5c65ace3463a666c7af9a60c5598f9e33ae5edde0feb4528411) |
| `source` | 必需 | [`MessageSource`](#persistence-type-sha256-7a5b68bd1a5118c827df9e2466acc5e4d16b83e3f97a2304d992958647592690) |
消息源兼容策略:`source` — `session-source-attribution` v1; `session.developer-message.source`; `kind`; `preserve`.
仅表示归属的新增 kind:`personalized-pages`, `tmux-context`, `user-question-reply`, `working-directory`.
仅表示归属的新增 kind:`action-cards`, `tmux-context`, `user-question-reply`, `working-directory`.
<a id="persistence-type-sha256-9a930283b91d493d6347146f2475bb107294b379415ca02162354f46a64164f7"></a>
@@ -4091,7 +4091,7 @@ SHA-256: `6f72ece8f317cd080c4f20a93f1bf709965f5b81ac4669528f5a023191cfcf20`
| `step` | 必需 | `number` |
| `turn` | 必需 | `number` |
<a id="persistence-type-sha256-cea2baa72d20cb86e3a9907bcec1541ab1cfff1a83c892f033463e5cf14064fb"></a>
<a id="persistence-type-sha256-cda79b839d8cc0c7a7bd09dd067de04925f6e9037080d878b65aaa5a383f117c"></a>
<a id="persistence-type-message"></a>
@@ -4099,17 +4099,17 @@ SHA-256: `6f72ece8f317cd080c4f20a93f1bf709965f5b81ac4669528f5a023191cfcf20`
### `Message`
SHA-256: `cea2baa72d20cb86e3a9907bcec1541ab1cfff1a83c892f033463e5cf14064fb`
SHA-256: `cda79b839d8cc0c7a7bd09dd067de04925f6e9037080d878b65aaa5a383f117c`
来源:[`packages/llm/llm/src/message.ts:196`](../packages/llm/llm/src/message.ts)
以下类型之一:
- [`ToolResultMessage`](#persistence-type-sha256-4b259f7f8f0a44ad5e90b70a73553ced1df27012d126921d397ff403b6c86731)
- [`DeveloperMessage`](#persistence-type-sha256-243d11dd918e46dee2902e3739a4ae3d711796d88cd0dbaa4dd51a9fe872ad1f)
- [`UserMessage`](#persistence-type-sha256-c1d5de6f6d47227a1ab3d64c5387b9acd4f9a78df5a61e92c2e82e39b8f9825f)
- [`AssistantMessage`](#persistence-type-sha256-fa87537f4a9c1e25602990a8bf686b383e9e00352ec8946e16ae24ba7c1625be)
- [`DeveloperMessage`](#persistence-type-sha256-7580e7d96dc8475fffe813a42af499665de3d4517fcdb3bc2337d0340e98d616)
- [`UserMessage`](#persistence-type-sha256-b782058cef83caf3eb44a16adeef5657e4d5cdff2d50655aba418c4490670a69)
- [`SystemMessage`](#persistence-type-sha256-09f3f8dc417f278257202714132f98ba7b52957d7b558c4a04456603890eb363)
- [`AssistantMessage`](#persistence-type-sha256-fa87537f4a9c1e25602990a8bf686b383e9e00352ec8946e16ae24ba7c1625be)
<a id="persistence-type-sha256-7c6129b6961cf4b2a030f36c78d2b0a5be38617651a9b81322e054ee512bee06"></a>
@@ -4184,7 +4184,7 @@ SHA-256: `390eed1028aba02774f14408647acec10ec5516e97d4f15ecde2b9989d5a69f2`
- `"negative"`
- `"positive"`
<a id="persistence-type-sha256-6a69bf7c4ddee5c65ace3463a666c7af9a60c5598f9e33ae5edde0feb4528411"></a>
<a id="persistence-type-sha256-7a5b68bd1a5118c827df9e2466acc5e4d16b83e3f97a2304d992958647592690"></a>
<a id="persistence-type-messagesource"></a>
@@ -4192,12 +4192,19 @@ SHA-256: `390eed1028aba02774f14408647acec10ec5516e97d4f15ecde2b9989d5a69f2`
### `MessageSource`
SHA-256: `6a69bf7c4ddee5c65ace3463a666c7af9a60c5598f9e33ae5edde0feb4528411`
SHA-256: `7a5b68bd1a5118c827df9e2466acc5e4d16b83e3f97a2304d992958647592690`
来源:[`packages/llm/llm/src/message.ts:136`](../packages/llm/llm/src/message.ts)
| kind | form 属性 | 其他必需字段 | 完整定义 |
|---|---|---|---|
| `action-cards` | `"catalog"` | `through`: `number` | [`{ kind: "action-cards", form: "catalog" }`](#persistence-type-sha256-dd00cdccd0ba487b92362ef67db58cd264f48c1bfd368291424a1da9a899489a) |
| `action-cards` | `"instructions"` | `through`: `number` | [`{ kind: "action-cards", form: "instructions" }`](#persistence-type-sha256-ba2a1a8f194b1bb21f270713398f6643e206e8ff5f7f26f6d36a88e3f0f0ab10) |
| `action-cards` | `"notice"` | `summary`: `string`; `through`: `number` | [`{ kind: "action-cards", form: "notice" }`](#persistence-type-sha256-e7f4cbb3a57f4cbdb61ea41e95bcba626ad1fff6bb9b1e063b1d50a32da6e864) |
| `action-cards` | `"recall"` | `through`: `number` | [`{ kind: "action-cards", form: "recall" }`](#persistence-type-sha256-b613f83572fe2fbf7259c72308cafd008f4fceea897749128a48bcd158f290aa) |
| `action-cards` | `"relay"` | `through`: `number` | [`{ kind: "action-cards", form: "relay" }`](#persistence-type-sha256-45f005e6bbb7645248be792b715a74bc7fdf5a67f5381655d3a75dcc7aa2112e) |
| `action-cards` | `"snapshot"` | `sections`: [`ContextSnapshotSection[]`](#persistence-type-sha256-c748fb42c80a120038a8c587af80ec39924803c401364db11c8974d5bf6d0262); `through`: `number` | [`{ kind: "action-cards", form: "snapshot" }`](#persistence-type-sha256-3247e566f4340029325b70e4366b56fa9719977f1e39033b769a2ec221ab22a9) |
| `action-cards` | 未声明 | `through`: `number` | [`{ kind: "action-cards" }`](#persistence-type-sha256-dde0cdf9d426768b649b5a9783d2144e7f900c35ef65229cd89036dbf411d1b0) |
| `agent-instructions` | `"instructions"` | `changes`: [`AgentInstructionChange[]`](#persistence-type-sha256-2ab12a0e345658f9342816d773fe610f049982bcad82631f43b9205abe43e5ee) | [`AgentInstructionSource`](#persistence-type-sha256-6f22a9d02b9a1f1157f3b0e7bdccd7e7b12b085c4efdb709dfc74a465cd4e590) |
| `agent-message` | `"relay"` | `senderSessionId`: `string` | [`AgentMessageSource`](#persistence-type-sha256-4a9bef9f27a942520cc2279ca7dd3082556e4bff543f66b5c0333e1bbed1cd86) |
| `compact-checkpoint` | 未声明 | `compactionId`: `string` | [`CompactionCheckpointSource`](#persistence-type-sha256-31907de9563751822af6d9be02bafaf26faa098bbd1cb412524134d577cc1648) |
@@ -4232,13 +4239,6 @@ SHA-256: `6a69bf7c4ddee5c65ace3463a666c7af9a60c5598f9e33ae5edde0feb4528411`
| `model-selection` | `"relay"` | 无 | [`{ kind: "model-selection", form: "relay" }`](#persistence-type-sha256-a15a19ef63cf5d1b711db1d249821dab0cedcd3a9ad09137b47352c93841fd20) |
| `model-selection` | `"snapshot"` | `sections`: [`ContextSnapshotSection[]`](#persistence-type-sha256-c748fb42c80a120038a8c587af80ec39924803c401364db11c8974d5bf6d0262) | [`{ kind: "model-selection", form: "snapshot" }`](#persistence-type-sha256-52c6113cb0e53f345324bf84f01928bea5d5df57ee80bc0dd65407b8bc5a3734) |
| `model-selection` | 未声明 | 无 | [`{ kind: "model-selection" }`](#persistence-type-sha256-f7283223aacdc39b0adca728c8cbd4c090a20006a6fecec74421c30e943b489c) |
| `personalized-pages` | `"catalog"` | `through`: `number` | [`{ kind: "personalized-pages", form: "catalog" }`](#persistence-type-sha256-9529cbfe9fc86799157ea4fdd84e2d7e2daeffa8843065d29ac40acc68087681) |
| `personalized-pages` | `"instructions"` | `through`: `number` | [`{ kind: "personalized-pages", form: "instructions" }`](#persistence-type-sha256-062f94b162cfd50fccd0733645d262b6fce404349cd003b71d15daf5539f0c4e) |
| `personalized-pages` | `"notice"` | `summary`: `string`; `through`: `number` | [`{ kind: "personalized-pages", form: "notice" }`](#persistence-type-sha256-f99e707d67fd708b9c282bad0428e8bc8c69777d93d283bf152f20fd9eb3e36f) |
| `personalized-pages` | `"recall"` | `through`: `number` | [`{ kind: "personalized-pages", form: "recall" }`](#persistence-type-sha256-53bb37430d38c7256e3868155ca5a03f4d8a46f4b124b2d22152e3752c0cb574) |
| `personalized-pages` | `"relay"` | `through`: `number` | [`{ kind: "personalized-pages", form: "relay" }`](#persistence-type-sha256-d2cc8a54a6f1abc97f638821bc36cdd559355e6d9ceb9ad69bd63587a5ec7c0a) |
| `personalized-pages` | `"snapshot"` | `sections`: [`ContextSnapshotSection[]`](#persistence-type-sha256-c748fb42c80a120038a8c587af80ec39924803c401364db11c8974d5bf6d0262); `through`: `number` | [`{ kind: "personalized-pages", form: "snapshot" }`](#persistence-type-sha256-66b2e4f3954442bc9a11c5aa3bfbea6a33d9ff3f7df42fa7e7b062411d394da4) |
| `personalized-pages` | 未声明 | `through`: `number` | [`{ kind: "personalized-pages" }`](#persistence-type-sha256-5b25a1523822e01a21b6ca6054f583a61fdced38b3ddd22a37faeb5a6fe28448) |
| `plan-mode` | `"catalog"` | 无 | [`{ kind: "plan-mode", form: "catalog" }`](#persistence-type-sha256-3b04790e08b35241ffa0d38f6d7e4f8788aa921341f6c0d7574a329397c59408) |
| `plan-mode` | `"instructions"` | 无 | [`{ kind: "plan-mode", form: "instructions" }`](#persistence-type-sha256-408927267422a7b2beb6df354ff7c1406d929a5646554f48adf85eb8372f811c) |
| `plan-mode` | `"notice"` | `summary`: `string` | [`{ kind: "plan-mode", form: "notice" }`](#persistence-type-sha256-baccc97ec34be6c4c78e95aa88c85c29820269479445e5b13f956cd64c5e286f) |
@@ -4317,13 +4317,13 @@ SHA-256: `6a69bf7c4ddee5c65ace3463a666c7af9a60c5598f9e33ae5edde0feb4528411`
| `webhook` | `"notice"` | `deliveryId`: `string`; `provider`: `string`; `ruleId`: `string`; `source`: `string`; `summary`: `string` | [`{ kind: "webhook", form: "notice" }`](#persistence-type-sha256-9edc162949abf93bd5ff049191b345454ba104f583937ce5580fb50f067d2b94) |
| `working-directory` | 未声明 | 无 | [`{ kind: "working-directory" }`](#persistence-type-sha256-2235d957bf4b7c6cf959231d480f0ba1f3a6d72d82981493fb6c7c963021d3d5) |
<a id="persistence-type-sha256-cf58fe6f97f6f8fcc325a1b88d89b821a0120e40ea9667f3e4547a24076b97de"></a>
<a id="persistence-type-sha256-78b9204976ab9faaf133c3488b73d1dfb6f1a4bb6c0903e3473cd41a5e1e39e1"></a>
### `Message[]`
SHA-256: `cf58fe6f97f6f8fcc325a1b88d89b821a0120e40ea9667f3e4547a24076b97de`
SHA-256: `78b9204976ab9faaf133c3488b73d1dfb6f1a4bb6c0903e3473cd41a5e1e39e1`
[`Message`](#persistence-type-sha256-cea2baa72d20cb86e3a9907bcec1541ab1cfff1a83c892f033463e5cf14064fb) 的数组。
[`Message`](#persistence-type-sha256-cda79b839d8cc0c7a7bd09dd067de04925f6e9037080d878b65aaa5a383f117c) 的数组。
<a id="persistence-type-sha256-719c51f67074f97034a6c94297fe1f4b5d3c8d392c57586dab732aa5398c7a91"></a>
@@ -4707,7 +4707,7 @@ SHA-256: `b56f6a885da3dc394c69a3e3cc5c0cfc4da15601b63fda4989eee8f40efc5be4`
| `source` | 必需 | [`SessionTitleSource`](#persistence-type-sha256-30d5a537b296685770b1241c4b4bbde19d5a31ff81aa23df73fab5e90b8fc65f) |
| `title` | 必需 | `string` |
<a id="persistence-type-sha256-929c90ad641192d1a3de9d1aa5adb889856e2f4e20188e9c057b25eee88aa13c"></a>
<a id="persistence-type-sha256-a3e299483348f27a4787a36bb3f29cd86024c65336abc10bb3d687468302c4cf"></a>
<a id="persistence-type-packagessessionsession-title-llmsrcindextssessiontitlellmrequesteventdata"></a>
@@ -4715,7 +4715,7 @@ SHA-256: `b56f6a885da3dc394c69a3e3cc5c0cfc4da15601b63fda4989eee8f40efc5be4`
### `SessionTitleLlmRequestEventData`
SHA-256: `929c90ad641192d1a3de9d1aa5adb889856e2f4e20188e9c057b25eee88aa13c`
SHA-256: `a3e299483348f27a4787a36bb3f29cd86024c65336abc10bb3d687468302c4cf`
来源:[`packages/session/session-title-llm/src/index.ts:37`](../packages/session/session-title-llm/src/index.ts)
@@ -4723,7 +4723,7 @@ SHA-256: `929c90ad641192d1a3de9d1aa5adb889856e2f4e20188e9c057b25eee88aa13c`
|---|---|---|
| `maxTokens` | 必需 | `number` |
| `messageSeqs` | 必需 | [`number[]`](#persistence-type-sha256-5d03ba38734809bcbd2a55221bd938b3b3fc34b49bb686c6113e9e4931e3aa78) |
| `messages` | 必需 | [`Message[]`](#persistence-type-sha256-cf58fe6f97f6f8fcc325a1b88d89b821a0120e40ea9667f3e4547a24076b97de) |
| `messages` | 必需 | [`Message[]`](#persistence-type-sha256-78b9204976ab9faaf133c3488b73d1dfb6f1a4bb6c0903e3473cd41a5e1e39e1) |
| `reasoningEffort` | 可选 | `string` |
| `route` | 必需 | [`SessionTitleModelIdentity`](#persistence-type-sha256-07e1a58c58b593f507b8e7f25723bb0aa42baae6e00f5ecfddf28cb1e64d3235) |
| `system` | 必需 | `string` |
@@ -5379,7 +5379,7 @@ SHA-256: `f1687f982fa3d41ef29e159feed154ecd13af4dd209acaee16038f223f2e9402`
| `interrupted` | 未声明 | 无 | [`{ kind: "interrupted" }`](#persistence-type-sha256-56b7c047694875a843ba020dfea3c8380d54ae4ff88ab349e72004dc21e07c23) |
| `max-tokens` | 未声明 | 无 | [`{ kind: "max-tokens" }`](#persistence-type-sha256-ab7ec5f9eb2c6dfacca5da4c37cf7ba85d04172053ee6b1ebf1709ffcd99c1a7) |
<a id="persistence-type-sha256-c1d5de6f6d47227a1ab3d64c5387b9acd4f9a78df5a61e92c2e82e39b8f9825f"></a>
<a id="persistence-type-sha256-b782058cef83caf3eb44a16adeef5657e4d5cdff2d50655aba418c4490670a69"></a>
<a id="persistence-type-packagesllmllmsrcmessagetsusermessage"></a>
@@ -5387,7 +5387,7 @@ SHA-256: `f1687f982fa3d41ef29e159feed154ecd13af4dd209acaee16038f223f2e9402`
### `UserMessage`
SHA-256: `c1d5de6f6d47227a1ab3d64c5387b9acd4f9a78df5a61e92c2e82e39b8f9825f`
SHA-256: `b782058cef83caf3eb44a16adeef5657e4d5cdff2d50655aba418c4490670a69`
来源:[`packages/llm/llm/src/message.ts:162`](../packages/llm/llm/src/message.ts)
@@ -5396,19 +5396,19 @@ SHA-256: `c1d5de6f6d47227a1ab3d64c5387b9acd4f9a78df5a61e92c2e82e39b8f9825f`
| `content` | 必需 | [`ContentBlock[]`](#persistence-type-sha256-b52f215a6cd691058a3413c12f161fa3b563a2f4895adb3df6f744ec4b0a6ef1) |
| `id` | 必需 | `string` |
| `role` | 必需 | `"user"` |
| `source` | 必需 | [`MessageSource`](#persistence-type-sha256-6a69bf7c4ddee5c65ace3463a666c7af9a60c5598f9e33ae5edde0feb4528411) |
| `source` | 必需 | [`MessageSource`](#persistence-type-sha256-7a5b68bd1a5118c827df9e2466acc5e4d16b83e3f97a2304d992958647592690) |
消息源兼容策略:`source` — `session-source-attribution` v1; `session.user-message.source`; `kind`; `preserve`.
仅表示归属的新增 kind:`personalized-pages`, `tmux-context`, `user-question-reply`, `working-directory`.
仅表示归属的新增 kind:`action-cards`, `tmux-context`, `user-question-reply`, `working-directory`.
<a id="persistence-type-sha256-a7241f5a94c73b544eef17a344b3f09ba12943066c611b40a1cf8e78dc9543ae"></a>
<a id="persistence-type-sha256-5d00abf938272f22eb47199e9d40801e8d8ec4c88e2b138b15aa2a5a5bf87520"></a>
### `UserMessage[]`
SHA-256: `a7241f5a94c73b544eef17a344b3f09ba12943066c611b40a1cf8e78dc9543ae`
SHA-256: `5d00abf938272f22eb47199e9d40801e8d8ec4c88e2b138b15aa2a5a5bf87520`
[`UserMessage`](#persistence-type-sha256-c1d5de6f6d47227a1ab3d64c5387b9acd4f9a78df5a61e92c2e82e39b8f9825f) 的数组。
[`UserMessage`](#persistence-type-sha256-b782058cef83caf3eb44a16adeef5657e4d5cdff2d50655aba418c4490670a69) 的数组。
<a id="persistence-type-sha256-c2deb7c9183735d4e0fffddf5c623f4e34daa1c8e96b111982e957dfcbbcf896"></a>
@@ -6293,18 +6293,18 @@ SHA-256: `ad0c38a0adb82a94c925456df41586d9b5f9202fca18593eae2213d4445b4585`
| `reason` | 必需 | [`RequestHeaderReason`](#persistence-type-sha256-530da6c0267813bb4511af72883cc518834e624e3b3220a7062955fd57a788a6) |
| `startsSeries` | 可选 | `true` |
<a id="persistence-type-sha256-58d643f2ec961461c8b14b737f081f047cd5d11890df8682305c55118dd5d1bf"></a>
<a id="persistence-type-sha256-7404c6123fdaa591474a37979a5a8ae70d1387af7c9f09bfe568b218935a974d"></a>
### `{ headerSeq?, message, step, turn }`
SHA-256: `58d643f2ec961461c8b14b737f081f047cd5d11890df8682305c55118dd5d1bf`
SHA-256: `7404c6123fdaa591474a37979a5a8ae70d1387af7c9f09bfe568b218935a974d`
来源:[`packages/core/session/src/types.ts:313`](../packages/core/session/src/types.ts)
| 属性 | 存在性 | 类型 |
|---|---|---|
| `headerSeq` | 可选 | `number` |
| `message` | 必需 | [`DeveloperMessage`](#persistence-type-sha256-243d11dd918e46dee2902e3739a4ae3d711796d88cd0dbaa4dd51a9fe872ad1f) |
| `message` | 必需 | [`DeveloperMessage`](#persistence-type-sha256-7580e7d96dc8475fffe813a42af499665de3d4517fcdb3bc2337d0340e98d616) |
| `step` | 必需 | `number` |
| `turn` | 必需 | `number` |
@@ -6388,17 +6388,17 @@ SHA-256: `17d1afb770d9941936130996da00dc86782cfef731d8d6526162c301256a4ac3`
|---|---|---|
| `inherited` | 可选 | `true` |
<a id="persistence-type-sha256-6889dc45ee6d68d2182ab54eda30d71691014b3742c4119db4e5ea673020aa04"></a>
<a id="persistence-type-sha256-b2a948a5340a9341fa3bab99507c7090c5b0456de72ec28b5b157b8df3f1d640"></a>
### `{ inserted, outcome?, removedCount?, start, … }`
SHA-256: `6889dc45ee6d68d2182ab54eda30d71691014b3742c4119db4e5ea673020aa04`
SHA-256: `b2a948a5340a9341fa3bab99507c7090c5b0456de72ec28b5b157b8df3f1d640`
来源:[`packages/core/agent/src/types.ts:110`](../packages/core/agent/src/types.ts)
| 属性 | 存在性 | 类型 |
|---|---|---|
| `inserted` | 必需 | [`UserMessage[]`](#persistence-type-sha256-a7241f5a94c73b544eef17a344b3f09ba12943066c611b40a1cf8e78dc9543ae) |
| `inserted` | 必需 | [`UserMessage[]`](#persistence-type-sha256-5d00abf938272f22eb47199e9d40801e8d8ec4c88e2b138b15aa2a5a5bf87520) |
| `outcome` | 可选 | `"canceled"` |
| `removedCount` | 可选 | `number` |
| `start` | 必需 | `number` |
@@ -6434,6 +6434,91 @@ SHA-256: `0a30c3be336cdd4f8f34e66543a3d46d611c43986edd9b3ce6cbb9b721d3b5d3`
| `kind` | 必需 | `"aborted"` |
| `reason` | 必需 | [`TurnEndCancelCause`](#persistence-type-sha256-1f8c126cfab3df812cd115cfc23e3256f0fa2383400f4ce91ecad313577e59b0) |
<a id="persistence-type-sha256-dde0cdf9d426768b649b5a9783d2144e7f900c35ef65229cd89036dbf411d1b0"></a>
### `{ kind: "action-cards" }`
SHA-256: `dde0cdf9d426768b649b5a9783d2144e7f900c35ef65229cd89036dbf411d1b0`
| 属性 | 存在性 | 类型 |
|---|---|---|
| `kind` | 必需 | `"action-cards"` |
| `through` | 必需 | `number` |
<a id="persistence-type-sha256-dd00cdccd0ba487b92362ef67db58cd264f48c1bfd368291424a1da9a899489a"></a>
### `{ kind: "action-cards", form: "catalog" }`
SHA-256: `dd00cdccd0ba487b92362ef67db58cd264f48c1bfd368291424a1da9a899489a`
| 属性 | 存在性 | 类型 |
|---|---|---|
| `form` | 必需 | `"catalog"` |
| `kind` | 必需 | `"action-cards"` |
| `through` | 必需 | `number` |
<a id="persistence-type-sha256-ba2a1a8f194b1bb21f270713398f6643e206e8ff5f7f26f6d36a88e3f0f0ab10"></a>
### `{ kind: "action-cards", form: "instructions" }`
SHA-256: `ba2a1a8f194b1bb21f270713398f6643e206e8ff5f7f26f6d36a88e3f0f0ab10`
| 属性 | 存在性 | 类型 |
|---|---|---|
| `form` | 必需 | `"instructions"` |
| `kind` | 必需 | `"action-cards"` |
| `through` | 必需 | `number` |
<a id="persistence-type-sha256-e7f4cbb3a57f4cbdb61ea41e95bcba626ad1fff6bb9b1e063b1d50a32da6e864"></a>
### `{ kind: "action-cards", form: "notice" }`
SHA-256: `e7f4cbb3a57f4cbdb61ea41e95bcba626ad1fff6bb9b1e063b1d50a32da6e864`
| 属性 | 存在性 | 类型 |
|---|---|---|
| `form` | 必需 | `"notice"` |
| `kind` | 必需 | `"action-cards"` |
| `summary` | 必需 | `string` |
| `through` | 必需 | `number` |
<a id="persistence-type-sha256-b613f83572fe2fbf7259c72308cafd008f4fceea897749128a48bcd158f290aa"></a>
### `{ kind: "action-cards", form: "recall" }`
SHA-256: `b613f83572fe2fbf7259c72308cafd008f4fceea897749128a48bcd158f290aa`
| 属性 | 存在性 | 类型 |
|---|---|---|
| `form` | 必需 | `"recall"` |
| `kind` | 必需 | `"action-cards"` |
| `through` | 必需 | `number` |
<a id="persistence-type-sha256-45f005e6bbb7645248be792b715a74bc7fdf5a67f5381655d3a75dcc7aa2112e"></a>
### `{ kind: "action-cards", form: "relay" }`
SHA-256: `45f005e6bbb7645248be792b715a74bc7fdf5a67f5381655d3a75dcc7aa2112e`
| 属性 | 存在性 | 类型 |
|---|---|---|
| `form` | 必需 | `"relay"` |
| `kind` | 必需 | `"action-cards"` |
| `through` | 必需 | `number` |
<a id="persistence-type-sha256-3247e566f4340029325b70e4366b56fa9719977f1e39033b769a2ec221ab22a9"></a>
### `{ kind: "action-cards", form: "snapshot" }`
SHA-256: `3247e566f4340029325b70e4366b56fa9719977f1e39033b769a2ec221ab22a9`
| 属性 | 存在性 | 类型 |
|---|---|---|
| `form` | 必需 | `"snapshot"` |
| `kind` | 必需 | `"action-cards"` |
| `sections` | 必需 | [`ContextSnapshotSection[]`](#persistence-type-sha256-c748fb42c80a120038a8c587af80ec39924803c401364db11c8974d5bf6d0262) |
| `through` | 必需 | `number` |
<a id="persistence-type-sha256-023a355b2be0d688fb6e4df8388dadb942761d46cfe96d0f499aae9631a159d4"></a>
### `{ kind: "blocked" }`
@@ -6879,91 +6964,6 @@ SHA-256: `6c03546143cdf6ae88f1745ac98c5139efa1588d1415249bbc5f3104d32ab800`
|---|---|---|
| `kind` | 必需 | `"parent"` |
<a id="persistence-type-sha256-5b25a1523822e01a21b6ca6054f583a61fdced38b3ddd22a37faeb5a6fe28448"></a>
### `{ kind: "personalized-pages" }`
SHA-256: `5b25a1523822e01a21b6ca6054f583a61fdced38b3ddd22a37faeb5a6fe28448`
| 属性 | 存在性 | 类型 |
|---|---|---|
| `kind` | 必需 | `"personalized-pages"` |
| `through` | 必需 | `number` |
<a id="persistence-type-sha256-9529cbfe9fc86799157ea4fdd84e2d7e2daeffa8843065d29ac40acc68087681"></a>
### `{ kind: "personalized-pages", form: "catalog" }`
SHA-256: `9529cbfe9fc86799157ea4fdd84e2d7e2daeffa8843065d29ac40acc68087681`
| 属性 | 存在性 | 类型 |
|---|---|---|
| `form` | 必需 | `"catalog"` |
| `kind` | 必需 | `"personalized-pages"` |
| `through` | 必需 | `number` |
<a id="persistence-type-sha256-062f94b162cfd50fccd0733645d262b6fce404349cd003b71d15daf5539f0c4e"></a>
### `{ kind: "personalized-pages", form: "instructions" }`
SHA-256: `062f94b162cfd50fccd0733645d262b6fce404349cd003b71d15daf5539f0c4e`
| 属性 | 存在性 | 类型 |
|---|---|---|
| `form` | 必需 | `"instructions"` |
| `kind` | 必需 | `"personalized-pages"` |
| `through` | 必需 | `number` |
<a id="persistence-type-sha256-f99e707d67fd708b9c282bad0428e8bc8c69777d93d283bf152f20fd9eb3e36f"></a>
### `{ kind: "personalized-pages", form: "notice" }`
SHA-256: `f99e707d67fd708b9c282bad0428e8bc8c69777d93d283bf152f20fd9eb3e36f`
| 属性 | 存在性 | 类型 |
|---|---|---|
| `form` | 必需 | `"notice"` |
| `kind` | 必需 | `"personalized-pages"` |
| `summary` | 必需 | `string` |
| `through` | 必需 | `number` |
<a id="persistence-type-sha256-53bb37430d38c7256e3868155ca5a03f4d8a46f4b124b2d22152e3752c0cb574"></a>
### `{ kind: "personalized-pages", form: "recall" }`
SHA-256: `53bb37430d38c7256e3868155ca5a03f4d8a46f4b124b2d22152e3752c0cb574`
| 属性 | 存在性 | 类型 |
|---|---|---|
| `form` | 必需 | `"recall"` |
| `kind` | 必需 | `"personalized-pages"` |
| `through` | 必需 | `number` |
<a id="persistence-type-sha256-d2cc8a54a6f1abc97f638821bc36cdd559355e6d9ceb9ad69bd63587a5ec7c0a"></a>
### `{ kind: "personalized-pages", form: "relay" }`
SHA-256: `d2cc8a54a6f1abc97f638821bc36cdd559355e6d9ceb9ad69bd63587a5ec7c0a`
| 属性 | 存在性 | 类型 |
|---|---|---|
| `form` | 必需 | `"relay"` |
| `kind` | 必需 | `"personalized-pages"` |
| `through` | 必需 | `number` |
<a id="persistence-type-sha256-66b2e4f3954442bc9a11c5aa3bfbea6a33d9ff3f7df42fa7e7b062411d394da4"></a>
### `{ kind: "personalized-pages", form: "snapshot" }`
SHA-256: `66b2e4f3954442bc9a11c5aa3bfbea6a33d9ff3f7df42fa7e7b062411d394da4`
| 属性 | 存在性 | 类型 |
|---|---|---|
| `form` | 必需 | `"snapshot"` |
| `kind` | 必需 | `"personalized-pages"` |
| `sections` | 必需 | [`ContextSnapshotSection[]`](#persistence-type-sha256-c748fb42c80a120038a8c587af80ec39924803c401364db11c8974d5bf6d0262) |
| `through` | 必需 | `number` |
<a id="persistence-type-sha256-f4a66f654996c093aae700ea4c434ff2ee3569fea9c0e5813ccf6afdccabd163"></a>
### `{ kind: "plan-mode" }`
@@ -8045,17 +8045,17 @@ SHA-256: `a10c17474eaf2ddab7095a099e0fe3d046fc18e56c3e344fc8894c05ff9ef97b`
| `time` | 必需 | `number` |
| `type` | 必需 | `"agent-preset/selected"` |
<a id="persistence-type-sha256-1b43047675face5df9ba7646bbbcd873907465dcedcf22ea824f9f088cea2840"></a>
<a id="persistence-type-sha256-b36fd842cd004b532ce96fd5d6f5be28e017eda043131aa3cf5e69edc436108e"></a>
<a id="persistence-type-eventagentinboxspliced"></a>
### `{ type: "agent/inbox/spliced" }`
SHA-256: `1b43047675face5df9ba7646bbbcd873907465dcedcf22ea824f9f088cea2840`
SHA-256: `b36fd842cd004b532ce96fd5d6f5be28e017eda043131aa3cf5e69edc436108e`
| 属性 | 存在性 | 类型 |
|---|---|---|
| `data` | 必需 | [`{ inserted, outcome?, removedCount?, start, … }`](#persistence-type-sha256-6889dc45ee6d68d2182ab54eda30d71691014b3742c4119db4e5ea673020aa04) |
| `data` | 必需 | [`{ inserted, outcome?, removedCount?, start, … }`](#persistence-type-sha256-b2a948a5340a9341fa3bab99507c7090c5b0456de72ec28b5b157b8df3f1d640) |
| `ignorable` | 可选 | `true` |
| `seq` | 必需 | `number` |
| `time` | 必需 | `number` |
@@ -8296,17 +8296,17 @@ SHA-256: `13d3d180f977bf78081d487ffa0ecb75857349bcab29a5a3fb48189fca2a6176`
| `time` | 必需 | `number` |
| `type` | 必需 | `"deliverables/presented"` |
<a id="persistence-type-sha256-85d754f8957fcbbfb65bcb6dded47a816c409bb431de293ff3209b11fe093ded"></a>
<a id="persistence-type-sha256-5ef58f2a1bdc576c1f12fa1f4da1920ece020b13c0f991a578cddcbeb28bc5be"></a>
<a id="persistence-type-eventdevelopermessage"></a>
### `{ type: "developer/message" }`
SHA-256: `85d754f8957fcbbfb65bcb6dded47a816c409bb431de293ff3209b11fe093ded`
SHA-256: `5ef58f2a1bdc576c1f12fa1f4da1920ece020b13c0f991a578cddcbeb28bc5be`
| 属性 | 存在性 | 类型 |
|---|---|---|
| `data` | 必需 | [`{ headerSeq?, message, step, turn }`](#persistence-type-sha256-58d643f2ec961461c8b14b737f081f047cd5d11890df8682305c55118dd5d1bf) |
| `data` | 必需 | [`{ headerSeq?, message, step, turn }`](#persistence-type-sha256-7404c6123fdaa591474a37979a5a8ae70d1387af7c9f09bfe568b218935a974d) |
| `ignorable` | 可选 | `true` |
| `seq` | 必需 | `number` |
| `sourceEventSeqs` | 可选 | [`number[]`](#persistence-type-sha256-5d03ba38734809bcbd2a55221bd938b3b3fc34b49bb686c6113e9e4931e3aa78) |
@@ -8706,17 +8706,17 @@ SHA-256: `1b912703e2d64f91c99c675b8f805b01076c8325b905c1218ad81ef0b24909d5`
| `time` | 必需 | `number` |
| `type` | 必需 | `"session/title"` |
<a id="persistence-type-sha256-9d2c7e74894fb4dbf3af436b09d1e9ae4a631dbdf3c7ebbfb2b490b1279c94b3"></a>
<a id="persistence-type-sha256-efa1a091017ce533e38b0ef3e14d11a5c102ff1793229b18dad719a4268d9adc"></a>
<a id="persistence-type-eventsessiontitle-llm-request"></a>
### `{ type: "session/title-llm-request" }`
SHA-256: `9d2c7e74894fb4dbf3af436b09d1e9ae4a631dbdf3c7ebbfb2b490b1279c94b3`
SHA-256: `efa1a091017ce533e38b0ef3e14d11a5c102ff1793229b18dad719a4268d9adc`
| 属性 | 存在性 | 类型 |
|---|---|---|
| `data` | 必需 | [`SessionTitleLlmRequestEventData`](#persistence-type-sha256-929c90ad641192d1a3de9d1aa5adb889856e2f4e20188e9c057b25eee88aa13c) |
| `data` | 必需 | [`SessionTitleLlmRequestEventData`](#persistence-type-sha256-a3e299483348f27a4787a36bb3f29cd86024c65336abc10bb3d687468302c4cf) |
| `ignorable` | 可选 | `true` |
| `seq` | 必需 | `number` |
| `time` | 必需 | `number` |
@@ -9139,17 +9139,17 @@ SHA-256: `f1a96afe7503ac1817de769cd0ba13d9b80111c7034c50106b3344ecc14cc515`
| `type` | 必需 | `"usage"` |
| `usage` | 必需 | [`TokenUsage`](#persistence-type-sha256-fec5442b9ee4122e10514d81d5a43648003fe8bfb7ee2ba50c0cdbdd383ed394) |
<a id="persistence-type-sha256-c81b3891a886d2e40a09d04633ec88918289bb10eee9098ed19d33c1994aa4d8"></a>
<a id="persistence-type-sha256-58b122df513aeaf7ddc5783dbb1fd844e2979bb273964e30ae351a8db6510019"></a>
<a id="persistence-type-eventusermessage"></a>
### `{ type: "user/message" }`
SHA-256: `c81b3891a886d2e40a09d04633ec88918289bb10eee9098ed19d33c1994aa4d8`
SHA-256: `58b122df513aeaf7ddc5783dbb1fd844e2979bb273964e30ae351a8db6510019`
| 属性 | 存在性 | 类型 |
|---|---|---|
| `data` | 必需 | [`UserMessage`](#persistence-type-sha256-c1d5de6f6d47227a1ab3d64c5387b9acd4f9a78df5a61e92c2e82e39b8f9825f) |
| `data` | 必需 | [`UserMessage`](#persistence-type-sha256-b782058cef83caf3eb44a16adeef5657e4d5cdff2d50655aba418c4490670a69) |
| `ignorable` | 可选 | `true` |
| `seq` | 必需 | `number` |
| `sourceEventSeqs` | 可选 | [`number[]`](#persistence-type-sha256-5d03ba38734809bcbd2a55221bd938b3b3fc34b49bb686c6113e9e4931e3aa78) |
@@ -1,28 +0,0 @@
# Bilingual-pair consistency record for 2026-10-20-personalized-page-status.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-10-20-personalized-page-status.md
/:
en: 3d5a424ae7d7e46b
zh: c22a8e4a62d8cc1a
/2026-10-20-personalized-page-status:
en: 4637eef52bc5bc18
zh: b8939b0ba5125f3e
/2026-10-20-personalized-page-status/summary:
en: 41feb53bf38c398d
zh: 42434a929ae5b0b7
/2026-10-20-personalized-page-status/table-of-contents:
en: 6cf314a069ceb451
zh: 9adff678e9ecab3b
/2026-10-20-personalized-page-status/declaration:
en: 6907136f28e48c90
zh: 02f8298485f3d8e7
/2026-10-20-personalized-page-status/compatibility:
en: 1eebe3e816961372
zh: 03dd60a8f730f2aa
/2026-10-20-personalized-page-status/verification:
en: 614782545bd37628
zh: a26f0a46611dbab3
/2026-10-20-personalized-page-status/dev-note:
en: b75c8458928b72b9
zh: 003ba4e17b4b5269
@@ -1,60 +0,0 @@
---
description: "Records a persistence type transition and its compatibility acknowledgement."
kind: persistence-change
---
# 2026-10-20-personalized-page-status
English | [中文](2026-10-20-personalized-page-status.zh.md)
## Summary
Adds personalized-page status attribution to logged model context.
## 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-10-20-personalized-page-status
baseline: false
changes:
- root: "event:agent/inbox/spliced"
previous: "2026-10-13-user-rpc-principal"
after: "1b43047675face5df9ba7646bbbcd873907465dcedcf22ea824f9f088cea2840"
decision: same-version
- root: "event:developer/message"
previous: "2026-10-13-user-rpc-principal"
after: "85d754f8957fcbbfb65bcb6dded47a816c409bb431de293ff3209b11fe093ded"
decision: same-version
- root: "event:session/title-llm-request"
previous: "2026-10-13-user-rpc-principal"
after: "9d2c7e74894fb4dbf3af436b09d1e9ae4a631dbdf3c7ebbfb2b490b1279c94b3"
decision: same-version
- root: "event:user/message"
previous: "2026-10-13-user-rpc-principal"
after: "c81b3891a886d2e40a09d04633ec88918289bb10eee9098ed19d33c1994aa4d8"
decision: same-version
```
<a id="compatibility"></a>
## Compatibility
Existing messages and decision records are unchanged. Readers without this plugin preserve the new source kind and its JSON metadata and derive the recorded text as ordinary context. Only the producer uses the through sequence to suppress already delivered notices; it grants no authority and does not change replay interpretation.
<a id="verification"></a>
## Verification
Focused creation, projection, status and card component tests: 68 passed; changed Host modules have 100% coverage. The web creation recording includes dismissal followed by a status question; Host protocol refresh and keyless replay each passed. Cards are replaced or suppressed and never expire; tests cover replacement by a later proposal, suppression while human input is queued, replay, stale clicks, background notices and started-task retries. A late request-preparation callback adds no context after the feature unloads.
<a id="dev-note"></a>
## Dev Note
None.
@@ -1,60 +0,0 @@
---
description: "记录持久化类型更改及其兼容性确认。"
kind: persistence-change
---
# 2026-10-20-personalized-page-status
[English](2026-10-20-personalized-page-status.md) | 中文
## 概述
为写入模型上下文的个性化页面状态新增来源标记。
## 目录
- [声明](#declaration)
- [兼容性](#compatibility)
- [验证](#verification)
- [开发备注](#dev-note)
<a id="declaration"></a>
## 声明
```yaml persistence-change
schemaVersion: 1
id: 2026-10-20-personalized-page-status
baseline: false
changes:
- root: "event:agent/inbox/spliced"
previous: "2026-10-13-user-rpc-principal"
after: "1b43047675face5df9ba7646bbbcd873907465dcedcf22ea824f9f088cea2840"
decision: same-version
- root: "event:developer/message"
previous: "2026-10-13-user-rpc-principal"
after: "85d754f8957fcbbfb65bcb6dded47a816c409bb431de293ff3209b11fe093ded"
decision: same-version
- root: "event:session/title-llm-request"
previous: "2026-10-13-user-rpc-principal"
after: "9d2c7e74894fb4dbf3af436b09d1e9ae4a631dbdf3c7ebbfb2b490b1279c94b3"
decision: same-version
- root: "event:user/message"
previous: "2026-10-13-user-rpc-principal"
after: "c81b3891a886d2e40a09d04633ec88918289bb10eee9098ed19d33c1994aa4d8"
decision: same-version
```
<a id="compatibility"></a>
## 兼容性
已有消息和操作记录不变。未加载本插件的读取器保留新来源种类及其 JSON 元数据,并将已记录文本作为普通上下文派生。只有写入方使用 through 序号抑制已送达通知;它不授予权限,也不改变回放解释。
<a id="verification"></a>
## 验证
创建、投影、状态和卡片组件专项测试 68 项通过,修改的 Host 模块覆盖率为 100%。Web 创建录制包含忽略卡片后追问状态,Host 协议刷新和无密钥回放各通过一次。卡片只会被替换或标为未展示,不会失效;测试覆盖后来方案的替换、人工输入排队时不出卡、回放、旧卡点击、后台通知及已开始任务的重试。功能卸载后恢复的请求准备回调不再注入上下文。
<a id="dev-note"></a>
## 开发备注
无。
@@ -0,0 +1,28 @@
# Bilingual-pair consistency record for 2026-10-22-action-card-status.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-10-22-action-card-status.md
/:
en: 3d5a424ae7d7e46b
zh: c22a8e4a62d8cc1a
/2026-10-22-action-card-status:
en: f580a2fb64e941db
zh: 0e34217155210da6
/2026-10-22-action-card-status/summary:
en: 3da2594bf2891e0e
zh: 5bc7d279d99400aa
/2026-10-22-action-card-status/table-of-contents:
en: 6cf314a069ceb451
zh: 9adff678e9ecab3b
/2026-10-22-action-card-status/declaration:
en: 6907136f28e48c90
zh: 02f8298485f3d8e7
/2026-10-22-action-card-status/compatibility:
en: fbf4d1ada55f35fe
zh: bd5ce9a23c55fac6
/2026-10-22-action-card-status/verification:
en: 91043c4f0b19e7bc
zh: ee1c541133475bb8
/2026-10-22-action-card-status/dev-note:
en: b75c8458928b72b9
zh: 003ba4e17b4b5269
@@ -0,0 +1,60 @@
---
description: "Records a persistence type transition and its compatibility acknowledgement."
kind: persistence-change
---
# 2026-10-22-action-card-status
English | [中文](2026-10-22-action-card-status.zh.md)
## Summary
Adds action-card status attribution to logged model context.
## 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-10-22-action-card-status
baseline: false
changes:
- root: "event:agent/inbox/spliced"
previous: "2026-10-13-user-rpc-principal"
after: "b36fd842cd004b532ce96fd5d6f5be28e017eda043131aa3cf5e69edc436108e"
decision: same-version
- root: "event:developer/message"
previous: "2026-10-13-user-rpc-principal"
after: "5ef58f2a1bdc576c1f12fa1f4da1920ece020b13c0f991a578cddcbeb28bc5be"
decision: same-version
- root: "event:session/title-llm-request"
previous: "2026-10-13-user-rpc-principal"
after: "efa1a091017ce533e38b0ef3e14d11a5c102ff1793229b18dad719a4268d9adc"
decision: same-version
- root: "event:user/message"
previous: "2026-10-13-user-rpc-principal"
after: "58b122df513aeaf7ddc5783dbb1fd844e2979bb273964e30ae351a8db6510019"
decision: same-version
```
<a id="compatibility"></a>
## Compatibility
Existing messages and records are unchanged. Readers without the action-card plugin preserve the new action-cards source kind and its JSON metadata and derive the recorded text as ordinary context. Only the producer uses the through sequence, to acknowledge delivered decisions; it grants no authority and does not change replay interpretation.
<a id="verification"></a>
## Verification
pnpm exec vitest run on the action-cards, creation-recommendations, client-ui-action-cards and client-ui-creation-recommendations tests: 120 tests passed with 100% coverage of their sources. The Web creation-recommendations replay logs the status notice of a dismissed card before the next answer.
<a id="dev-note"></a>
## Dev Note
None.
@@ -1,17 +1,17 @@
{
"formatVersion": 2,
"roots": [
{"key":"event:agent/inbox/spliced","kind":"event","event":"agent/inbox/spliced","surface":false,"digest":"1b43047675face5df9ba7646bbbcd873907465dcedcf22ea824f9f088cea2840"},
{"key":"event:developer/message","kind":"event","event":"developer/message","surface":true,"digest":"85d754f8957fcbbfb65bcb6dded47a816c409bb431de293ff3209b11fe093ded"},
{"key":"event:session/title-llm-request","kind":"event","event":"session/title-llm-request","surface":false,"digest":"9d2c7e74894fb4dbf3af436b09d1e9ae4a631dbdf3c7ebbfb2b490b1279c94b3"},
{"key":"event:user/message","kind":"event","event":"user/message","surface":true,"digest":"c81b3891a886d2e40a09d04633ec88918289bb10eee9098ed19d33c1994aa4d8"}
{"key":"event:agent/inbox/spliced","kind":"event","event":"agent/inbox/spliced","surface":false,"digest":"b36fd842cd004b532ce96fd5d6f5be28e017eda043131aa3cf5e69edc436108e"},
{"key":"event:developer/message","kind":"event","event":"developer/message","surface":true,"digest":"5ef58f2a1bdc576c1f12fa1f4da1920ece020b13c0f991a578cddcbeb28bc5be"},
{"key":"event:session/title-llm-request","kind":"event","event":"session/title-llm-request","surface":false,"digest":"efa1a091017ce533e38b0ef3e14d11a5c102ff1793229b18dad719a4268d9adc"},
{"key":"event:user/message","kind":"event","event":"user/message","surface":true,"digest":"58b122df513aeaf7ddc5783dbb1fd844e2979bb273964e30ae351a8db6510019"}
],
"types": [],
"nodes": {
"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":[]},
"02b2c23f2d94b028": {"kind":"object","properties":[{"name":"kind","type":"c5687b1313206a6f","optional":false}],"indices":[]},
"062f94b162cfd50f": {"kind":"object","properties":[{"name":"form","type":"fee1caf8ab6a65c1","optional":false},{"name":"kind","type":"e1ba710db2f3e4e4","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"05205074b24d8340": {"kind":"literal","value":"action-cards"},
"0657d3ca5ac4e7bf": {"kind":"primitive","type":"number"},
"07e1a58c58b593f5": {"kind":"object","properties":[{"name":"model","type":"4cd48f3e5108bd6e","optional":false},{"name":"provider","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"09655b34d7f3cf1e": {"kind":"literal","value":"system-prompt"},
@@ -26,7 +26,6 @@
"16d0507cb94b4cfc": {"kind":"literal","value":"relay"},
"1922cd79a70806c1": {"kind":"literal","value":"skill-invocation"},
"1938c8c20f1cba7c": {"kind":"object","properties":[{"name":"form","type":"fee1caf8ab6a65c1","optional":false},{"name":"kind","type":"d9edf1862e4471d6","optional":false}],"indices":[]},
"1b43047675face5d": {"kind":"object","properties":[{"name":"data","type":"6889dc45ee6d68d2","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"829a2fb3be6efd4b","optional":false}],"indices":[]},
"1e709346005826eb": {"kind":"object","properties":[{"name":"form","type":"aec150797b655c5f","optional":false},{"name":"kind","type":"d9edf1862e4471d6","optional":false}],"indices":[]},
"1f0133217eeeffd8": {"kind":"literal","value":"tool-call"},
"1f1385dbc3e875c0": {"kind":"literal","value":"repeat-tool-reminder"},
@@ -35,7 +34,6 @@
"2235d957bf4b7c6c": {"kind":"object","properties":[{"name":"kind","type":"7b1ce60193fa8b69","optional":false}],"indices":[]},
"224aa11d4d5f88c4": {"kind":"object","properties":[{"name":"form","type":"fee1caf8ab6a65c1","optional":false},{"name":"kind","type":"23af3759678a30de","optional":false}],"indices":[]},
"23af3759678a30de": {"kind":"literal","value":"dsh-session-title-llm"},
"243d11dd918e46de": {"kind":"object","properties":[{"name":"content","type":"b52f215a6cd69105","optional":false},{"name":"id","type":"4cd48f3e5108bd6e","optional":false},{"name":"role","type":"589d0d91239681f8","optional":false},{"name":"source","type":"6a69bf7c4ddee5c6","optional":false,"compatibility":{"version":1,"policy":"session-source-attribution","binding":"session.developer-message.source","discriminator":"kind","unknownKinds":"preserve","attributionKinds":["personalized-pages","tmux-context","user-question-reply","working-directory"]}}],"indices":[]},
"24b10f7cdae64928": {"kind":"literal","value":"runtime-context"},
"24ce31aa528272e5": {"kind":"object","properties":[{"name":"kind","type":"99e7e7d7fed55ae6","optional":false}],"indices":[]},
"260523b412c19ad8": {"kind":"object","properties":[{"name":"form","type":"aec150797b655c5f","optional":false},{"name":"kind","type":"2f3f201c8846e19c","optional":false}],"indices":[]},
@@ -51,6 +49,7 @@
"2f3f201c8846e19c": {"kind":"literal","value":"tool-goal"},
"312aee2f0c42aabb": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"d9edf1862e4471d6","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"31907de956375182": {"kind":"object","properties":[{"name":"compactionId","type":"4cd48f3e5108bd6e","optional":false},{"name":"kind","type":"6b23ed9ce1b397e6","optional":false},{"name":"sourceCommandId","type":"4cd48f3e5108bd6e","optional":true}],"indices":[]},
"3247e566f4340029": {"kind":"object","properties":[{"name":"form","type":"6f9e00383836275e","optional":false},{"name":"kind","type":"05205074b24d8340","optional":false},{"name":"sections","type":"c748fb42c80a1200","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"335e242de1fcc17b": {"kind":"union","types":["bcf0caf62d964b2f","e438a9d4fb883b3e"]},
"383cf73ae4748e5b": {"kind":"literal","value":"recall"},
"3b04790e08b35241": {"kind":"object","properties":[{"name":"form","type":"aec150797b655c5f","optional":false},{"name":"kind","type":"0fe52387f6505270","optional":false}],"indices":[]},
@@ -62,6 +61,7 @@
"3f74ba74acd10644": {"kind":"literal","value":"image/jpeg"},
"408927267422a7b2": {"kind":"object","properties":[{"name":"form","type":"fee1caf8ab6a65c1","optional":false},{"name":"kind","type":"0fe52387f6505270","optional":false}],"indices":[]},
"43e311235aa537df": {"kind":"object","properties":[{"name":"toolName","type":"4cd48f3e5108bd6e","optional":false},{"name":"type","type":"83d6916021eede8f","optional":false}],"indices":[]},
"45f005e6bbb76452": {"kind":"object","properties":[{"name":"form","type":"16d0507cb94b4cfc","optional":false},{"name":"kind","type":"05205074b24d8340","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"4991dfc415c9efeb": {"kind":"object","properties":[{"name":"form","type":"16d0507cb94b4cfc","optional":false},{"name":"kind","type":"1f1385dbc3e875c0","optional":false}],"indices":[]},
"49dab019d00e8c26": {"kind":"object","properties":[{"name":"form","type":"6f9e00383836275e","optional":false},{"name":"kind","type":"78a9be340090b735","optional":false},{"name":"sections","type":"c748fb42c80a1200","optional":false}],"indices":[]},
"4a9bef9f27a94252": {"kind":"object","properties":[{"name":"form","type":"16d0507cb94b4cfc","optional":false},{"name":"kind","type":"82470020b5bfcb1a","optional":false},{"name":"senderSessionId","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
@@ -73,29 +73,26 @@
"4edec1b770e8ec4c": {"kind":"literal","value":"ptc-mode"},
"4f91f187baeabef5": {"kind":"object","properties":[{"name":"capturedFormatVersion","type":"0657d3ca5ac4e7bf","optional":true},{"name":"capturedThroughSeq","type":"3bd652ebfa8726b3","optional":false},{"name":"compacted","type":"aa93010d0e521ad7","optional":false},{"name":"inputIndex","type":"0657d3ca5ac4e7bf","optional":false},{"name":"label","type":"4cd48f3e5108bd6e","optional":false},{"name":"omittedBytes","type":"0657d3ca5ac4e7bf","optional":false},{"name":"omittedMessages","type":"0657d3ca5ac4e7bf","optional":false},{"name":"originalMessages","type":"0657d3ca5ac4e7bf","optional":false},{"name":"retainedMessages","type":"0657d3ca5ac4e7bf","optional":false},{"name":"sessionId","type":"4cd48f3e5108bd6e","optional":false},{"name":"truncated","type":"aa93010d0e521ad7","optional":false}],"indices":[]},
"52c6113cb0e53f34": {"kind":"object","properties":[{"name":"form","type":"6f9e00383836275e","optional":false},{"name":"kind","type":"9ac52f0f84fec2eb","optional":false},{"name":"sections","type":"c748fb42c80a1200","optional":false}],"indices":[]},
"53bb37430d38c725": {"kind":"object","properties":[{"name":"form","type":"383cf73ae4748e5b","optional":false},{"name":"kind","type":"e1ba710db2f3e4e4","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"53cf1704ae0709c7": {"kind":"object","properties":[{"name":"form","type":"fee1caf8ab6a65c1","optional":false},{"name":"kind","type":"99e7e7d7fed55ae6","optional":false}],"indices":[]},
"5654685d7557ec74": {"kind":"object","properties":[{"name":"form","type":"6f9e00383836275e","optional":false},{"name":"kind","type":"f68c335306535a00","optional":false},{"name":"sections","type":"c748fb42c80a1200","optional":false}],"indices":[]},
"58015da1c1950a66": {"kind":"object","properties":[{"name":"form","type":"aec150797b655c5f","optional":false},{"name":"kind","type":"24b10f7cdae64928","optional":false}],"indices":[]},
"587bb11da730e06a": {"kind":"literal","value":"session/title-llm-request"},
"589d0d91239681f8": {"kind":"literal","value":"developer"},
"58d643f2ec961461": {"kind":"object","properties":[{"name":"headerSeq","type":"0657d3ca5ac4e7bf","optional":true},{"name":"message","type":"243d11dd918e46de","optional":false},{"name":"step","type":"0657d3ca5ac4e7bf","optional":false},{"name":"turn","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"58b122df513aeaf7": {"kind":"object","properties":[{"name":"data","type":"b782058cef83caf3","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"sourceEventSeqs","type":"5d03ba38734809bc","optional":true},{"name":"surfaceOp","type":"335e242de1fcc17b","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"de25352d2dc41963","optional":false}],"indices":[]},
"58f94390b982f8a5": {"kind":"literal","value":"image/png"},
"5b25a1523822e01a": {"kind":"object","properties":[{"name":"kind","type":"e1ba710db2f3e4e4","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"5bb69b88517f6214": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"99e7e7d7fed55ae6","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"5bc66269cfaf614c": {"kind":"object","properties":[{"name":"form","type":"16d0507cb94b4cfc","optional":false},{"name":"kind","type":"d9edf1862e4471d6","optional":false}],"indices":[]},
"5cdbf342b7748d15": {"kind":"object","properties":[{"name":"form","type":"16d0507cb94b4cfc","optional":false},{"name":"kind","type":"f68c335306535a00","optional":false}],"indices":[]},
"5d00abf938272f22": {"kind":"array","element":"b782058cef83caf3"},
"5d03ba38734809bc": {"kind":"array","element":"0657d3ca5ac4e7bf"},
"5d7a64ed6aac5551": {"kind":"object","properties":[{"name":"form","type":"16d0507cb94b4cfc","optional":false},{"name":"kind","type":"8067b0d232c350f1","optional":false}],"indices":[]},
"5ef58f2a1bdc576c": {"kind":"object","properties":[{"name":"data","type":"7404c6123fdaa591","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"sourceEventSeqs","type":"5d03ba38734809bc","optional":true},{"name":"surfaceOp","type":"335e242de1fcc17b","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"1379f0b72275994d","optional":false}],"indices":[]},
"6085488d223aeffd": {"kind":"object","properties":[{"name":"form","type":"fee1caf8ab6a65c1","optional":false},{"name":"kind","type":"2f3f201c8846e19c","optional":false}],"indices":[]},
"6292bcbedaa97fea": {"kind":"object","properties":[{"name":"kind","type":"f68c335306535a00","optional":false}],"indices":[]},
"62ecb62dc0fe1b5e": {"kind":"literal","value":"next-turn"},
"65a8400e451e667e": {"kind":"object","properties":[{"name":"kind","type":"09655b34d7f3cf1e","optional":false}],"indices":[]},
"66b2e4f3954442bc": {"kind":"object","properties":[{"name":"form","type":"6f9e00383836275e","optional":false},{"name":"kind","type":"e1ba710db2f3e4e4","optional":false},{"name":"sections","type":"c748fb42c80a1200","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"672c4aa2a9b736e3": {"kind":"object","properties":[{"name":"form","type":"fee1caf8ab6a65c1","optional":false},{"name":"kind","type":"1922cd79a70806c1","optional":false},{"name":"name","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"6889dc45ee6d68d2": {"kind":"object","properties":[{"name":"inserted","type":"a7241f5a94c73b54","optional":false},{"name":"outcome","type":"d4e4d575abeb4b72","optional":true},{"name":"removedCount","type":"0657d3ca5ac4e7bf","optional":true},{"name":"start","type":"0657d3ca5ac4e7bf","optional":false},{"name":"target","type":"96f4a9c81fc0f940","optional":false}],"indices":[]},
"68f44f59e91c4139": {"kind":"literal","value":"user"},
"6a69bf7c4ddee5c6": {"kind":"union","types":["0203243b72fc867a","022623b9ef98ec47","02b2c23f2d94b028","062f94b162cfd50f","0ed8d1108fe7a5e1","0eeb17e1df89b1eb","11638dc58a31496f","1938c8c20f1cba7c","1e709346005826eb","1fdad624334d3548","2152caf1a71e588e","2235d957bf4b7c6c","224aa11d4d5f88c4","24ce31aa528272e5","260523b412c19ad8","28936c614bd4e7e2","290f32bfd81ff85a","297fbd8067d7815a","2aad1179f9576314","312aee2f0c42aabb","31907de956375182","3b04790e08b35241","3b4f2c9ef2c1217e","3bdb8dc6989655b0","408927267422a7b2","4991dfc415c9efeb","49dab019d00e8c26","4a9bef9f27a94252","4e97c3d85c0fc817","52c6113cb0e53f34","53bb37430d38c725","53cf1704ae0709c7","5654685d7557ec74","58015da1c1950a66","5b25a1523822e01a","5bb69b88517f6214","5bc66269cfaf614c","5cdbf342b7748d15","5d7a64ed6aac5551","6085488d223aeffd","6292bcbedaa97fea","65a8400e451e667e","66b2e4f3954442bc","672c4aa2a9b736e3","6ccb6bc423fb3952","6dacb1584f2bfbe2","6ea608bdc8a7a63d","6f22a9d02b9a1f11","6f44f32be9bcd9a8","719c51f67074f970","7554565be416b034","756b5e23a5cb2c7f","7df62978a2b7de85","7eaef7a763ba5b94","7f959241c24128b4","80677c8c8b804189","825ca23416b1ea9d","8338ee303e2bd448","854db3efdfb0cd39","85fe96bf15d5c755","8620189c8e335827","87b1a33564b9a4d6","88841202942c7683","8a046b52331959aa","8c1c4f72755a78ea","8c627d7a45fa406c","8f324cea3916c051","8fcb0b44a575e998","9529cbfe9fc86799","96bfb916a727cd44","99135d8a39379779","99f0e98184709ad1","9edc162949abf93b","9f65c43e340bba31","a15a19ef63cf5d1b","a16e567c8cd2c55c","a2066bd52f61218b","a3c6f1ea38e9a61d","aa2bf9e82b9fdeb9","aae343bc3d663c83","ada310bf0bdb8fed","ade057f4fdc387ae","b062078e899958f9","b2a5c8c008a31e3d","b3681c026a0b98e9","b4ec0af39fd52ed9","b6f94c17dd9bbd7c","b70f3e81fe11b7a5","b79641a9d25e7566","ba4c40b4381e0dcd","baccc97ec34be6c4","c5228b7a55498d84","c55827fba7018198","cb1c8959e1726f82","cda2345a9be9d139","d2cc8a54a6f1abc9","d85590a5675c6e2f","d9c462b9f62fdd3e","db06ef35b27a3842","dba54c09c6e7aafc","dd5ee8762bd8a14b","dd6cc2bb2a8f2824","deaae5cd30987d4f","edbbfff1128099fd","ee577a0cc18664c9","f230c0b583e23b25","f29d63336e8266d8","f4a66f654996c093","f56c5b59ca016131","f6329fb30c7ea801","f6605d6c57933aea","f6afe41e3926f422","f7283223aacdc39b","f97f47b0eb87905e","f99e707d67fd708b","fc2ae6962f9f8801","fcf81d3c58c13593","fe1a7acdeed4d0f5"]},
"6b23ed9ce1b397e6": {"kind":"literal","value":"compact-checkpoint"},
"6ccb6bc423fb3952": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"f68c335306535a00","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"6dacb1584f2bfbe2": {"kind":"object","properties":[{"name":"clientTimeZone","type":"4cd48f3e5108bd6e","optional":true},{"name":"kind","type":"68f44f59e91c4139","optional":false},{"name":"principal","type":"deebfc7c62177ea8","optional":true},{"name":"rpcId","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
@@ -106,9 +103,13 @@
"6f9e00383836275e": {"kind":"literal","value":"snapshot"},
"719c51f67074f970": {"kind":"object","properties":[{"name":"kind","type":"2765e9119edf5816","optional":false},{"name":"model","type":"4cd48f3e5108bd6e","optional":false},{"name":"provider","type":"4cd48f3e5108bd6e","optional":false},{"name":"replayState","type":"bbc5696e3f13c758","optional":true}],"indices":[]},
"7382c4fc95fe8c5d": {"kind":"literal","value":"remove"},
"7404c6123fdaa591": {"kind":"object","properties":[{"name":"headerSeq","type":"0657d3ca5ac4e7bf","optional":true},{"name":"message","type":"7580e7d96dc8475f","optional":false},{"name":"step","type":"0657d3ca5ac4e7bf","optional":false},{"name":"turn","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"7554565be416b034": {"kind":"object","properties":[{"name":"form","type":"383cf73ae4748e5b","optional":false},{"name":"kind","type":"2f3f201c8846e19c","optional":false}],"indices":[]},
"756b5e23a5cb2c7f": {"kind":"object","properties":[{"name":"form","type":"383cf73ae4748e5b","optional":false},{"name":"kind","type":"8067b0d232c350f1","optional":false}],"indices":[]},
"7580e7d96dc8475f": {"kind":"object","properties":[{"name":"content","type":"b52f215a6cd69105","optional":false},{"name":"id","type":"4cd48f3e5108bd6e","optional":false},{"name":"role","type":"589d0d91239681f8","optional":false},{"name":"source","type":"7a5b68bd1a5118c8","optional":false,"compatibility":{"version":1,"policy":"session-source-attribution","binding":"session.developer-message.source","discriminator":"kind","unknownKinds":"preserve","attributionKinds":["action-cards","tmux-context","user-question-reply","working-directory"]}}],"indices":[]},
"78a9be340090b735": {"kind":"literal","value":"tmux-context"},
"78b9204976ab9faa": {"kind":"array","element":"cda79b839d8cc0c7"},
"7a5b68bd1a5118c8": {"kind":"union","types":["0203243b72fc867a","022623b9ef98ec47","02b2c23f2d94b028","0ed8d1108fe7a5e1","0eeb17e1df89b1eb","11638dc58a31496f","1938c8c20f1cba7c","1e709346005826eb","1fdad624334d3548","2152caf1a71e588e","2235d957bf4b7c6c","224aa11d4d5f88c4","24ce31aa528272e5","260523b412c19ad8","28936c614bd4e7e2","290f32bfd81ff85a","297fbd8067d7815a","2aad1179f9576314","312aee2f0c42aabb","31907de956375182","3247e566f4340029","3b04790e08b35241","3b4f2c9ef2c1217e","3bdb8dc6989655b0","408927267422a7b2","45f005e6bbb76452","4991dfc415c9efeb","49dab019d00e8c26","4a9bef9f27a94252","4e97c3d85c0fc817","52c6113cb0e53f34","53cf1704ae0709c7","5654685d7557ec74","58015da1c1950a66","5bb69b88517f6214","5bc66269cfaf614c","5cdbf342b7748d15","5d7a64ed6aac5551","6085488d223aeffd","6292bcbedaa97fea","65a8400e451e667e","672c4aa2a9b736e3","6ccb6bc423fb3952","6dacb1584f2bfbe2","6ea608bdc8a7a63d","6f22a9d02b9a1f11","6f44f32be9bcd9a8","719c51f67074f970","7554565be416b034","756b5e23a5cb2c7f","7df62978a2b7de85","7eaef7a763ba5b94","7f959241c24128b4","80677c8c8b804189","825ca23416b1ea9d","8338ee303e2bd448","854db3efdfb0cd39","85fe96bf15d5c755","8620189c8e335827","87b1a33564b9a4d6","88841202942c7683","8a046b52331959aa","8c1c4f72755a78ea","8c627d7a45fa406c","8f324cea3916c051","8fcb0b44a575e998","96bfb916a727cd44","99135d8a39379779","99f0e98184709ad1","9edc162949abf93b","9f65c43e340bba31","a15a19ef63cf5d1b","a16e567c8cd2c55c","a2066bd52f61218b","a3c6f1ea38e9a61d","aa2bf9e82b9fdeb9","aae343bc3d663c83","ada310bf0bdb8fed","ade057f4fdc387ae","b062078e899958f9","b2a5c8c008a31e3d","b3681c026a0b98e9","b4ec0af39fd52ed9","b613f83572fe2fbf","b6f94c17dd9bbd7c","b70f3e81fe11b7a5","b79641a9d25e7566","ba2a1a8f194b1bb2","ba4c40b4381e0dcd","baccc97ec34be6c4","c5228b7a55498d84","c55827fba7018198","cb1c8959e1726f82","cda2345a9be9d139","d85590a5675c6e2f","d9c462b9f62fdd3e","db06ef35b27a3842","dba54c09c6e7aafc","dd00cdccd0ba487b","dd5ee8762bd8a14b","dd6cc2bb2a8f2824","dde0cdf9d426768b","deaae5cd30987d4f","e7f4cbb3a57f4cbd","edbbfff1128099fd","ee577a0cc18664c9","f230c0b583e23b25","f29d63336e8266d8","f4a66f654996c093","f56c5b59ca016131","f6329fb30c7ea801","f6605d6c57933aea","f6afe41e3926f422","f7283223aacdc39b","f97f47b0eb87905e","fc2ae6962f9f8801","fcf81d3c58c13593","fe1a7acdeed4d0f5"]},
"7b1ce60193fa8b69": {"kind":"literal","value":"working-directory"},
"7df62978a2b7de85": {"kind":"object","properties":[{"name":"form","type":"aec150797b655c5f","optional":false},{"name":"kind","type":"78a9be340090b735","optional":false}],"indices":[]},
"7eaef7a763ba5b94": {"kind":"object","properties":[{"name":"form","type":"16d0507cb94b4cfc","optional":false},{"name":"kind","type":"23af3759678a30de","optional":false}],"indices":[]},
@@ -127,7 +128,6 @@
"83da72c6857601c7": {"kind":"object","properties":[{"name":"action","type":"904bf499d98be4a3","optional":false},{"name":"digest","type":"4cd48f3e5108bd6e","optional":true},{"name":"path","type":"4cd48f3e5108bd6e","optional":false},{"name":"scope","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"854db3efdfb0cd39": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"bb94f3217aa56c88","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"85d6d96ff8842974": {"kind":"literal","value":"answered"},
"85d754f8957fcbbf": {"kind":"object","properties":[{"name":"data","type":"58d643f2ec961461","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"sourceEventSeqs","type":"5d03ba38734809bc","optional":true},{"name":"surfaceOp","type":"335e242de1fcc17b","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"1379f0b72275994d","optional":false}],"indices":[]},
"85f9b505b7bdff1f": {"kind":"literal","value":"tool-addition"},
"85fe96bf15d5c755": {"kind":"object","properties":[{"name":"form","type":"aec150797b655c5f","optional":false},{"name":"kind","type":"8067b0d232c350f1","optional":false}],"indices":[]},
"8620189c8e335827": {"kind":"object","properties":[{"name":"form","type":"383cf73ae4748e5b","optional":false},{"name":"kind","type":"1f1385dbc3e875c0","optional":false}],"indices":[]},
@@ -142,9 +142,7 @@
"8f324cea3916c051": {"kind":"object","properties":[{"name":"form","type":"16d0507cb94b4cfc","optional":false},{"name":"kind","type":"2f3f201c8846e19c","optional":false}],"indices":[]},
"8fcb0b44a575e998": {"kind":"object","properties":[{"name":"kind","type":"a720757f704a2512","optional":false}],"indices":[]},
"904bf499d98be4a3": {"kind":"union","types":["7382c4fc95fe8c5d","b765ee31033cea46","f6cb462f808309e3"]},
"929c90ad641192d1": {"kind":"object","properties":[{"name":"maxTokens","type":"0657d3ca5ac4e7bf","optional":false},{"name":"messageSeqs","type":"5d03ba38734809bc","optional":false},{"name":"messages","type":"cf58fe6f97f6f8fc","optional":false},{"name":"reasoningEffort","type":"4cd48f3e5108bd6e","optional":true},{"name":"route","type":"07e1a58c58b593f5","optional":false},{"name":"system","type":"4cd48f3e5108bd6e","optional":false},{"name":"titleProvider","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"938f7c7357bc403e": {"kind":"primitive","type":"null"},
"9529cbfe9fc86799": {"kind":"object","properties":[{"name":"form","type":"aec150797b655c5f","optional":false},{"name":"kind","type":"e1ba710db2f3e4e4","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"95a3ffccbf3c8afc": {"kind":"literal","value":"owner"},
"95c0e88fcf0bafb2": {"kind":"literal","value":"assistant"},
"9645cf93769a6dfb": {"kind":"literal","value":"user-question-reply"},
@@ -154,7 +152,6 @@
"99e7e7d7fed55ae6": {"kind":"literal","value":"tool-jobs"},
"99f0e98184709ad1": {"kind":"object","properties":[{"name":"form","type":"aec150797b655c5f","optional":false},{"name":"kind","type":"bb94f3217aa56c88","optional":false}],"indices":[]},
"9ac52f0f84fec2eb": {"kind":"literal","value":"model-selection"},
"9d2c7e74894fb4db": {"kind":"object","properties":[{"name":"data","type":"929c90ad641192d1","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"587bb11da730e06a","optional":false}],"indices":[]},
"9edc162949abf93b": {"kind":"object","properties":[{"name":"deliveryId","type":"4cd48f3e5108bd6e","optional":false},{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"db6c5246911d47a7","optional":false},{"name":"provider","type":"4cd48f3e5108bd6e","optional":false},{"name":"ruleId","type":"4cd48f3e5108bd6e","optional":false},{"name":"source","type":"4cd48f3e5108bd6e","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"9f65c43e340bba31": {"kind":"object","properties":[{"name":"form","type":"fee1caf8ab6a65c1","optional":false},{"name":"kind","type":"78a9be340090b735","optional":false}],"indices":[]},
"a13d8f379222ece8": {"kind":"literal","value":"tool"},
@@ -162,8 +159,8 @@
"a16e567c8cd2c55c": {"kind":"object","properties":[{"name":"form","type":"383cf73ae4748e5b","optional":false},{"name":"kind","type":"d9edf1862e4471d6","optional":false}],"indices":[]},
"a2066bd52f61218b": {"kind":"object","properties":[{"name":"kind","type":"2f3f201c8846e19c","optional":false}],"indices":[]},
"a3c6f1ea38e9a61d": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"9ac52f0f84fec2eb","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"a3e299483348f27a": {"kind":"object","properties":[{"name":"maxTokens","type":"0657d3ca5ac4e7bf","optional":false},{"name":"messageSeqs","type":"5d03ba38734809bc","optional":false},{"name":"messages","type":"78b9204976ab9faa","optional":false},{"name":"reasoningEffort","type":"4cd48f3e5108bd6e","optional":true},{"name":"route","type":"07e1a58c58b593f5","optional":false},{"name":"system","type":"4cd48f3e5108bd6e","optional":false},{"name":"titleProvider","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"a720757f704a2512": {"kind":"literal","value":"tool-registry"},
"a7241f5a94c73b54": {"kind":"array","element":"c1d5de6f6d47227a"},
"a9059a81430b3207": {"kind":"literal","value":"hooks-claude-code"},
"aa2bf9e82b9fdeb9": {"kind":"object","properties":[{"name":"form","type":"fee1caf8ab6a65c1","optional":false},{"name":"kind","type":"f68c335306535a00","optional":false}],"indices":[]},
"aa93010d0e521ad7": {"kind":"primitive","type":"boolean"},
@@ -175,32 +172,33 @@
"b062078e899958f9": {"kind":"object","properties":[{"name":"kind","type":"1f1385dbc3e875c0","optional":false}],"indices":[]},
"b0b0eb1b16490f6b": {"kind":"object","properties":[{"name":"attachmentId","type":"4cd48f3e5108bd6e","optional":false},{"name":"bytes","type":"0657d3ca5ac4e7bf","optional":false},{"name":"height","type":"0657d3ca5ac4e7bf","optional":false},{"name":"mediaType","type":"2f1e6a7ebace43d7","optional":false},{"name":"name","type":"4cd48f3e5108bd6e","optional":true},{"name":"originalDimensions","type":"0f46153645c29784","optional":true},{"name":"width","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"b2a5c8c008a31e3d": {"kind":"object","properties":[{"name":"form","type":"383cf73ae4748e5b","optional":false},{"name":"kind","type":"23af3759678a30de","optional":false}],"indices":[]},
"b2a948a5340a9341": {"kind":"object","properties":[{"name":"inserted","type":"5d00abf938272f22","optional":false},{"name":"outcome","type":"d4e4d575abeb4b72","optional":true},{"name":"removedCount","type":"0657d3ca5ac4e7bf","optional":true},{"name":"start","type":"0657d3ca5ac4e7bf","optional":false},{"name":"target","type":"96f4a9c81fc0f940","optional":false}],"indices":[]},
"b3681c026a0b98e9": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"78a9be340090b735","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"b36fd842cd004b53": {"kind":"object","properties":[{"name":"data","type":"b2a948a5340a9341","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"829a2fb3be6efd4b","optional":false}],"indices":[]},
"b4ec0af39fd52ed9": {"kind":"object","properties":[{"name":"kind","type":"bb94f3217aa56c88","optional":false}],"indices":[]},
"b52f215a6cd69105": {"kind":"array","element":"8064c03c87c357fd"},
"b613f83572fe2fbf": {"kind":"object","properties":[{"name":"form","type":"383cf73ae4748e5b","optional":false},{"name":"kind","type":"05205074b24d8340","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"b6f94c17dd9bbd7c": {"kind":"object","properties":[{"name":"form","type":"fee1caf8ab6a65c1","optional":false},{"name":"kind","type":"bb94f3217aa56c88","optional":false}],"indices":[]},
"b70f3e81fe11b7a5": {"kind":"object","properties":[{"name":"form","type":"fee1caf8ab6a65c1","optional":false},{"name":"kind","type":"a9059a81430b3207","optional":false}],"indices":[]},
"b765ee31033cea46": {"kind":"literal","value":"set"},
"b782058cef83caf3": {"kind":"object","properties":[{"name":"content","type":"b52f215a6cd69105","optional":false},{"name":"id","type":"4cd48f3e5108bd6e","optional":false},{"name":"role","type":"68f44f59e91c4139","optional":false},{"name":"source","type":"7a5b68bd1a5118c8","optional":false,"compatibility":{"version":1,"policy":"session-source-attribution","binding":"session.user-message.source","discriminator":"kind","unknownKinds":"preserve","attributionKinds":["action-cards","tmux-context","user-question-reply","working-directory"]}}],"indices":[]},
"b79641a9d25e7566": {"kind":"object","properties":[{"name":"kind","type":"8067b0d232c350f1","optional":false}],"indices":[]},
"b815d7b91cdd9fc6": {"kind":"literal","value":"goal"},
"ba2a1a8f194b1bb2": {"kind":"object","properties":[{"name":"form","type":"fee1caf8ab6a65c1","optional":false},{"name":"kind","type":"05205074b24d8340","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"ba4c40b4381e0dcd": {"kind":"object","properties":[{"name":"form","type":"6f9e00383836275e","optional":false},{"name":"kind","type":"23af3759678a30de","optional":false},{"name":"sections","type":"c748fb42c80a1200","optional":false}],"indices":[]},
"baccc97ec34be6c4": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"0fe52387f6505270","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"bb94f3217aa56c88": {"kind":"literal","value":"hooks-codex"},
"bbc5696e3f13c758": {"kind":"opaque","reason":"unknown"},
"bcf0caf62d964b2f": {"kind":"object","properties":[{"name":"endSeq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"op","type":"f6cb462f808309e3","optional":false},{"name":"startSeq","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"bf16d2e98a7f1389": {"kind":"literal","value":"subagent-settled"},
"c1d5de6f6d47227a": {"kind":"object","properties":[{"name":"content","type":"b52f215a6cd69105","optional":false},{"name":"id","type":"4cd48f3e5108bd6e","optional":false},{"name":"role","type":"68f44f59e91c4139","optional":false},{"name":"source","type":"6a69bf7c4ddee5c6","optional":false,"compatibility":{"version":1,"policy":"session-source-attribution","binding":"session.user-message.source","discriminator":"kind","unknownKinds":"preserve","attributionKinds":["personalized-pages","tmux-context","user-question-reply","working-directory"]}}],"indices":[]},
"c1f0f17b6493b85d": {"kind":"object","properties":[{"name":"arguments","type":"4cd48f3e5108bd6e","optional":false},{"name":"id","type":"4cd48f3e5108bd6e","optional":false},{"name":"name","type":"4cd48f3e5108bd6e","optional":false},{"name":"type","type":"1f0133217eeeffd8","optional":false}],"indices":[]},
"c5228b7a55498d84": {"kind":"object","properties":[{"name":"form","type":"6f9e00383836275e","optional":false},{"name":"kind","type":"99e7e7d7fed55ae6","optional":false},{"name":"sections","type":"c748fb42c80a1200","optional":false}],"indices":[]},
"c55827fba7018198": {"kind":"object","properties":[{"name":"callId","type":"4cd48f3e5108bd6e","optional":false},{"name":"kind","type":"9645cf93769a6dfb","optional":false},{"name":"outcome","type":"85d6d96ff8842974","optional":false}],"indices":[]},
"c5687b1313206a6f": {"kind":"literal","value":"cordis-host-runner"},
"c748fb42c80a1200": {"kind":"array","element":"86e1e384495ee09a"},
"c81b3891a886d2e4": {"kind":"object","properties":[{"name":"data","type":"c1d5de6f6d47227a","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"sourceEventSeqs","type":"5d03ba38734809bc","optional":true},{"name":"surfaceOp","type":"335e242de1fcc17b","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"de25352d2dc41963","optional":false}],"indices":[]},
"cb1c8959e1726f82": {"kind":"object","properties":[{"name":"form","type":"16d0507cb94b4cfc","optional":false},{"name":"kind","type":"24b10f7cdae64928","optional":false}],"indices":[]},
"cda2345a9be9d139": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"24b10f7cdae64928","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"cea2baa72d20cb86": {"kind":"union","types":["09f3f8dc417f2782","243d11dd918e46de","4b259f7f8f0a44ad","c1d5de6f6d47227a","fa87537f4a9c1e25"]},
"cf58fe6f97f6f8fc": {"kind":"array","element":"cea2baa72d20cb86"},
"d2cc8a54a6f1abc9": {"kind":"object","properties":[{"name":"form","type":"16d0507cb94b4cfc","optional":false},{"name":"kind","type":"e1ba710db2f3e4e4","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"cda79b839d8cc0c7": {"kind":"union","types":["09f3f8dc417f2782","4b259f7f8f0a44ad","7580e7d96dc8475f","b782058cef83caf3","fa87537f4a9c1e25"]},
"d4e4d575abeb4b72": {"kind":"literal","value":"canceled"},
"d85590a5675c6e2f": {"kind":"object","properties":[{"name":"form","type":"aec150797b655c5f","optional":false},{"name":"kind","type":"1f1385dbc3e875c0","optional":false}],"indices":[]},
"d9c462b9f62fdd3e": {"kind":"object","properties":[{"name":"callId","type":"4cd48f3e5108bd6e","optional":false},{"name":"kind","type":"a13d8f379222ece8","optional":false}],"indices":[]},
@@ -209,19 +207,22 @@
"db06ef35b27a3842": {"kind":"object","properties":[{"name":"form","type":"6f9e00383836275e","optional":false},{"name":"kind","type":"1f1385dbc3e875c0","optional":false},{"name":"sections","type":"c748fb42c80a1200","optional":false}],"indices":[]},
"db6c5246911d47a7": {"kind":"literal","value":"webhook"},
"dba54c09c6e7aafc": {"kind":"object","properties":[{"name":"kind","type":"4edec1b770e8ec4c","optional":false}],"indices":[]},
"dd00cdccd0ba487b": {"kind":"object","properties":[{"name":"form","type":"aec150797b655c5f","optional":false},{"name":"kind","type":"05205074b24d8340","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"dd5ee8762bd8a14b": {"kind":"object","properties":[{"name":"form","type":"aec150797b655c5f","optional":false},{"name":"kind","type":"99e7e7d7fed55ae6","optional":false}],"indices":[]},
"dd6cc2bb2a8f2824": {"kind":"object","properties":[{"name":"form","type":"383cf73ae4748e5b","optional":false},{"name":"kind","type":"99e7e7d7fed55ae6","optional":false}],"indices":[]},
"dde0cdf9d426768b": {"kind":"object","properties":[{"name":"kind","type":"05205074b24d8340","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"de25352d2dc41963": {"kind":"literal","value":"user/message"},
"de30b1fa12c75f81": {"kind":"literal","value":"image/gif"},
"deaae5cd30987d4f": {"kind":"object","properties":[{"name":"form","type":"16d0507cb94b4cfc","optional":false},{"name":"kind","type":"0fe52387f6505270","optional":false}],"indices":[]},
"deebfc7c62177ea8": {"kind":"object","properties":[{"name":"kind","type":"95a3ffccbf3c8afc","optional":false}],"indices":[]},
"df843efd87c78cf8": {"kind":"array","element":"4f91f187baeabef5"},
"e1ba710db2f3e4e4": {"kind":"literal","value":"personalized-pages"},
"e438a9d4fb883b3e": {"kind":"literal","value":"append"},
"e7f4cbb3a57f4cbd": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"05205074b24d8340","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"e8de0f457fed5b9f": {"kind":"literal","value":"notice"},
"ebb768d85ec87fb6": {"kind":"literal","value":"image/webp"},
"edbbfff1128099fd": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"a9059a81430b3207","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"ee577a0cc18664c9": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"8067b0d232c350f1","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"efa1a091017ce533": {"kind":"object","properties":[{"name":"data","type":"a3e299483348f27a","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"587bb11da730e06a","optional":false}],"indices":[]},
"f19bee84bf3d2090": {"kind":"object","properties":[{"name":"attachmentId","type":"4cd48f3e5108bd6e","optional":false},{"name":"bytes","type":"0657d3ca5ac4e7bf","optional":false},{"name":"name","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"f230c0b583e23b25": {"kind":"object","properties":[{"name":"form","type":"6f9e00383836275e","optional":false},{"name":"kind","type":"8067b0d232c350f1","optional":false},{"name":"sections","type":"c748fb42c80a1200","optional":false}],"indices":[]},
"f29d63336e8266d8": {"kind":"object","properties":[{"name":"kind","type":"d9edf1862e4471d6","optional":false}],"indices":[]},
@@ -236,7 +237,6 @@
"f7283223aacdc39b": {"kind":"object","properties":[{"name":"kind","type":"9ac52f0f84fec2eb","optional":false}],"indices":[]},
"f88f1b7b6bb733f6": {"kind":"literal","value":1},
"f97f47b0eb87905e": {"kind":"object","properties":[{"name":"form","type":"16d0507cb94b4cfc","optional":false},{"name":"kind","type":"78a9be340090b735","optional":false}],"indices":[]},
"f99e707d67fd708b": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"e1ba710db2f3e4e4","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"fa87537f4a9c1e25": {"kind":"object","properties":[{"name":"content","type":"b52f215a6cd69105","optional":false},{"name":"id","type":"4cd48f3e5108bd6e","optional":false},{"name":"role","type":"95c0e88fcf0bafb2","optional":false},{"name":"source","type":"719c51f67074f970","optional":false}],"indices":[]},
"fb8b6a2e53cb9cf4": {"kind":"literal","value":"image"},
"fbd2c74b346a1595": {"kind":"literal","value":"agent-instructions"},
@@ -0,0 +1,60 @@
---
description: "记录持久化类型更改及其兼容性确认。"
kind: persistence-change
---
# 2026-10-22-action-card-status
[English](2026-10-22-action-card-status.md) | 中文
## 概述
为写入日志的模型上下文新增操作卡片状态的来源标识。
## 目录
- [声明](#declaration)
- [兼容性](#compatibility)
- [验证](#verification)
- [开发备注](#dev-note)
<a id="declaration"></a>
## 声明
```yaml persistence-change
schemaVersion: 1
id: 2026-10-22-action-card-status
baseline: false
changes:
- root: "event:agent/inbox/spliced"
previous: "2026-10-13-user-rpc-principal"
after: "b36fd842cd004b532ce96fd5d6f5be28e017eda043131aa3cf5e69edc436108e"
decision: same-version
- root: "event:developer/message"
previous: "2026-10-13-user-rpc-principal"
after: "5ef58f2a1bdc576c1f12fa1f4da1920ece020b13c0f991a578cddcbeb28bc5be"
decision: same-version
- root: "event:session/title-llm-request"
previous: "2026-10-13-user-rpc-principal"
after: "efa1a091017ce533e38b0ef3e14d11a5c102ff1793229b18dad719a4268d9adc"
decision: same-version
- root: "event:user/message"
previous: "2026-10-13-user-rpc-principal"
after: "58b122df513aeaf7ddc5783dbb1fd844e2979bb273964e30ae351a8db6510019"
decision: same-version
```
<a id="compatibility"></a>
## 兼容性
已有消息和记录不变。没有操作卡片插件的读取方保留新的 action-cards 来源类型及其 JSON 元数据,并把记录的文本当作普通上下文。只有写入方使用 through 序号确认已送达的决定;它不授予任何权限,也不改变回放的解释。
<a id="verification"></a>
## 验证
对 action-cards、creation-recommendations、client-ui-action-cards 和 client-ui-creation-recommendations 的测试运行 pnpm exec vitest run:120 个测试通过,源码覆盖率 100%。Web creation-recommendations 回放在下一次回答之前记录了已忽略卡片的状态通知。
<a id="dev-note"></a>
## 开发备注
无。
+46 -46
View File
@@ -5,7 +5,7 @@
{"key":"JsonlHeaderLine","kind":"header","digest":"18ee62b8900a4c3d046700f05d7a4d49d6cab2a660a020c87481d1603dd8bd4f"},
{"key":"SessionEventEnvelope","kind":"envelope","digest":"5776e5553ff2dfe3f5bc202dbb1e7c9f93e35a531aebb7764c23b2b6153b2ccc"},
{"key":"event:agent-preset/selected","kind":"event","event":"agent-preset/selected","surface":false,"digest":"a10c17474eaf2ddab7095a099e0fe3d046fc18e56c3e344fc8894c05ff9ef97b"},
{"key":"event:agent/inbox/spliced","kind":"event","event":"agent/inbox/spliced","surface":false,"digest":"1b43047675face5df9ba7646bbbcd873907465dcedcf22ea824f9f088cea2840"},
{"key":"event:agent/inbox/spliced","kind":"event","event":"agent/inbox/spliced","surface":false,"digest":"b36fd842cd004b532ce96fd5d6f5be28e017eda043131aa3cf5e69edc436108e"},
{"key":"event:approval/asked","kind":"event","event":"approval/asked","surface":false,"digest":"3bfeb47b58606f4661904bc723da612782214c463d01e6d61cd6d6193d7374e1"},
{"key":"event:approval/decided","kind":"event","event":"approval/decided","surface":false,"digest":"bb1ab3d08f49a9f3b265f844cd78d5c49813062a7b34b54904b426f85d0ff6e3"},
{"key":"event:approval/policy","kind":"event","event":"approval/policy","surface":false,"digest":"26718e15e7e395bce9642dba5bbe09b3b1a4ce2213d20d566cd9207d7fc5fb78"},
@@ -18,7 +18,7 @@
{"key":"event:compaction/start","kind":"event","event":"compaction/start","surface":false,"digest":"db874d463b0fdec77e9da1c4568f37cb70bd6596781eb93800db44fb8a116965"},
{"key":"event:compaction/summary","kind":"event","event":"compaction/summary","surface":false,"digest":"e2f9a41e0989f54ed8cee80f8db2bcf9d60a5c810dc9d45b83fa050b9dce7602"},
{"key":"event:deliverables/presented","kind":"event","event":"deliverables/presented","surface":false,"digest":"13d3d180f977bf78081d487ffa0ecb75857349bcab29a5a3fb48189fca2a6176"},
{"key":"event:developer/message","kind":"event","event":"developer/message","surface":true,"digest":"85d754f8957fcbbfb65bcb6dded47a816c409bb431de293ff3209b11fe093ded"},
{"key":"event:developer/message","kind":"event","event":"developer/message","surface":true,"digest":"5ef58f2a1bdc576c1f12fa1f4da1920ece020b13c0f991a578cddcbeb28bc5be"},
{"key":"event:feedback/message-delete","kind":"event","event":"feedback/message-delete","surface":false,"digest":"3ee93b06f3a125850337602bcdf155d2538c43a5c944ec55b1b3c365152d6796"},
{"key":"event:feedback/message-put","kind":"event","event":"feedback/message-put","surface":false,"digest":"b5086d249e8502e9ead1d39156bb8d559bde7951cac0f14ce150345b4e42a2bf"},
{"key":"event:feedback/record","kind":"event","event":"feedback/record","surface":false,"digest":"b54940ff095c17e874c5be03815f4c2145a256cf3a1d34dae4ab2f7769dfffe8"},
@@ -40,7 +40,7 @@
{"key":"event:session-log-deepseek/delivery-accepted","kind":"event","event":"session-log-deepseek/delivery-accepted","surface":false,"digest":"d63b8b8ffad9c02fd80c43a17df4f240c1fe8118ecca9de34f9d5871838ab5b9"},
{"key":"event:session/end-seed","kind":"event","event":"session/end-seed","surface":false,"digest":"5e6db6e24948d4a853c71cb9fabd252ad051ce93d4672c1266cf837c1c17b84e"},
{"key":"event:session/title","kind":"event","event":"session/title","surface":false,"digest":"1b912703e2d64f91c99c675b8f805b01076c8325b905c1218ad81ef0b24909d5"},
{"key":"event:session/title-llm-request","kind":"event","event":"session/title-llm-request","surface":false,"digest":"9d2c7e74894fb4dbf3af436b09d1e9ae4a631dbdf3c7ebbfb2b490b1279c94b3"},
{"key":"event:session/title-llm-request","kind":"event","event":"session/title-llm-request","surface":false,"digest":"efa1a091017ce533e38b0ef3e14d11a5c102ff1793229b18dad719a4268d9adc"},
{"key":"event:step/end","kind":"event","event":"step/end","surface":false,"digest":"e0a787e6ec76c7c94fecbc501b489164ab0293db05bc947914077ad01e674f05"},
{"key":"event:step/start","kind":"event","event":"step/start","surface":false,"digest":"4513e088d43e6c68425be30451b9f961cc264fe7318ca62681c41d4d78615986"},
{"key":"event:subagent/catalog","kind":"event","event":"subagent/catalog","surface":false,"digest":"53750b9abf61efb7992b0aadc3e247ec927449c63266df28230fd1139f5590ac"},
@@ -62,7 +62,7 @@
{"key":"event:tool/result","kind":"event","event":"tool/result","surface":true,"digest":"7c9f44e90a0058f4cc532ae20dad0c10afa6eba22e70a6c79fc79490bad64397"},
{"key":"event:turn/end","kind":"event","event":"turn/end","surface":false,"digest":"0f8512903d94f57a4748fa1a2092e64342856796684e6b8343db685b192745ce"},
{"key":"event:turn/start","kind":"event","event":"turn/start","surface":false,"digest":"aa0957eca50aeb28bcd2e6930b95809926edacb550c8c340ba526ba6b861b3d8"},
{"key":"event:user/message","kind":"event","event":"user/message","surface":true,"digest":"c81b3891a886d2e40a09d04633ec88918289bb10eee9098ed19d33c1994aa4d8"},
{"key":"event:user/message","kind":"event","event":"user/message","surface":true,"digest":"58b122df513aeaf7ddc5783dbb1fd844e2979bb273964e30ae351a8db6510019"},
{"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/changes","kind":"event","event":"workspace/changes","surface":false,"digest":"e308ccf867a5398e316e0af8cb6ce238a8d33a63b9b384c8250a686786285f72"}
@@ -74,9 +74,9 @@
{"digest":"023a355b2be0d688fb6e4df8388dadb942761d46cfe96d0f499aae9631a159d4","names":[],"sources":["packages/core/session/src/types.ts:207"]},
{"digest":"02b2c23f2d94b028c9588a8faace3fce1217405db346da3389368b495457bf79","names":[],"sources":["packages/extensions/cordis-host-runner/src/index.ts:14"]},
{"digest":"0341d4c3dfcd53253cdc1e789d9130d3cd848b6f8b0706bf92f313a68b39ff23","names":[],"sources":[]},
{"digest":"05205074b24d8340cfd7995f6cb64779c7f1241490954700115601e264178877","names":[],"sources":[]},
{"digest":"05a2796621b1ee6c03ef7abe560b25116bb4da4d592312117242a78415a32b04","names":[],"sources":[]},
{"digest":"05d2ae1e0c7f8770f83f9a09047afb39a335d8ac986df3193659aa1e581472cf","names":["packages/interaction/user-approval/src/index.ts#ApprovalPolicy"],"sources":["packages/interaction/user-approval/src/index.ts:68"]},
{"digest":"062f94b162cfd50fccd0733645d262b6fce404349cd003b71d15daf5539f0c4e","names":[],"sources":[]},
{"digest":"0657d3ca5ac4e7bf79b00bcf860b1c7159d01a9da137497221ec2f1776e365f7","names":["packages/core/session/src/types.ts#SessionSeq"],"sources":["packages/core/session/src/types.ts:33"]},
{"digest":"07e1a58c58b593f507b8e7f25723bb0aa42baae6e00f5ecfddf28cb1e64d3235","names":["packages/session/session-title/src/types.ts#SessionTitleModelIdentity","packages/subagent/tool-subagent/src/model-selection.ts#AllowedModelRoute"],"sources":["packages/session/session-title/src/types.ts:20","packages/subagent/tool-subagent/src/model-selection.ts:9"]},
{"digest":"07eccc9ea2f9b5439d76cc77d5e062936677d43f07a23da749819b0a22ee36b7","names":[],"sources":[]},
@@ -131,7 +131,6 @@
{"digest":"1a2718b00937b236a0d0910ef5dab2f9f8b65e4bde410cc21f15fbbf29f584d3","names":[],"sources":[]},
{"digest":"1a3440e3577382704d42a6263aa463504eb74c566734a55e9503a63efcd02445","names":["packages/core/session/src/types.ts#SessionHeader"],"sources":["packages/core/session/src/types.ts:95"]},
{"digest":"1ab2ef1296f157ba96998f179bb5daa9d21a82480da2901127aeab2730797c92","names":[],"sources":[]},
{"digest":"1b43047675face5df9ba7646bbbcd873907465dcedcf22ea824f9f088cea2840","names":[],"sources":[]},
{"digest":"1b5649238876e28811e80f10ec67a00c197ad3babd4ecc61a22b09064b88c597","names":[],"sources":["packages/session/session-title/src/types.ts:29"]},
{"digest":"1b912703e2d64f91c99c675b8f805b01076c8325b905c1218ad81ef0b24909d5","names":[],"sources":[]},
{"digest":"1c2686c0682e7bc51d61117b2652bd4a80707e331aa276d6ef915ae32534a330","names":[],"sources":[]},
@@ -160,7 +159,6 @@
{"digest":"234142ee4f996f38cc9fa3b8b3e3de29b03c9aefe5ebf6c224eddd564505aa85","names":[],"sources":[]},
{"digest":"237c004c73b6b288246816e0d7fde16e09c63a47aa3b1227383d7afe58666163","names":[],"sources":[]},
{"digest":"23af3759678a30de1d11d946772da8c051c63caa67997c5da05d30d7a9fe8a97","names":[],"sources":[]},
{"digest":"243d11dd918e46dee2902e3739a4ae3d711796d88cd0dbaa4dd51a9fe872ad1f","names":["packages/llm/llm/src/message.ts#DeveloperMessage"],"sources":["packages/llm/llm/src/message.ts:157"]},
{"digest":"24a8188c4d61b70a01af8cc576748765d36f132632ec55c0064f6fba482369fc","names":[],"sources":[]},
{"digest":"24b10f7cdae64928f89c49afc2eca0af9eb4a2f135e16f3416e6b8461fef1748","names":[],"sources":[]},
{"digest":"24ce31aa528272e59f21cd26da9eca08968bcc97529756a749bfdab71746d9c8","names":[],"sources":[]},
@@ -191,6 +189,7 @@
{"digest":"30d5a537b296685770b1241c4b4bbde19d5a31ff81aa23df73fab5e90b8fc65f","names":["packages/session/session-title/src/types.ts#SessionTitleSource"],"sources":["packages/session/session-title/src/types.ts:28"]},
{"digest":"312aee2f0c42aabbae6cc60d92d596d8453c0aeb061c5868d1755a69ef49e69a","names":[],"sources":[]},
{"digest":"31907de9563751822af6d9be02bafaf26faa098bbd1cb412524134d577cc1648","names":["packages/compaction/compaction/src/checkpoint.ts#CompactionCheckpointSource"],"sources":["packages/compaction/compaction/src/checkpoint.ts:22"]},
{"digest":"3247e566f4340029325b70e4366b56fa9719977f1e39033b769a2ec221ab22a9","names":[],"sources":[]},
{"digest":"326a9bfda27dda5882fb3cbe6e715df41dae2298fdae3d66437457268a665693","names":["packages/llm/llm/src/call-config.ts#LlmCallConfigAdapterDefaults"],"sources":["packages/llm/llm/src/call-config.ts:54"]},
{"digest":"3305a4bb6b6c29b482ba91d59c60b47e8f98282d3dacc8c29e4a4c2712209bdd","names":[],"sources":[]},
{"digest":"33341aac09312300de5a178e6cc6f6544a4876f7f710cfea55eda473c8d329ef","names":["packages/llm/llm/src/assistant-stream.ts#AssistantStreamRecord"],"sources":["packages/llm/llm/src/assistant-stream.ts:20"]},
@@ -233,6 +232,7 @@
{"digest":"44818000e56acb97afdb5045ce235eb55e3fb1ccabc9fc7d0750bb38f36a7f8e","names":[],"sources":[]},
{"digest":"44c8c77aa9aa100b0d74d2deee85474b29faa6eee0ac0f662f7abe9931ddd7f2","names":[],"sources":[]},
{"digest":"4513e088d43e6c68425be30451b9f961cc264fe7318ca62681c41d4d78615986","names":[],"sources":[]},
{"digest":"45f005e6bbb7645248be792b715a74bc7fdf5a67f5381655d3a75dcc7aa2112e","names":[],"sources":[]},
{"digest":"45f2a07ea94573123b6ae14db787a40062dec3834f36d8be92c523d40ba28448","names":[],"sources":["packages/interaction/user-approval/src/types.ts:44"]},
{"digest":"477614bca595a9e7adb5a1870be446b9a8684f3ba8950259d6289f2d3b74f028","names":[],"sources":["packages/compaction/compaction-image-offload/src/projection.ts:25"]},
{"digest":"47e5d84f1a93450a78c7f3954b43990d0f629af7c034a56313e5deb63e772c1b","names":[],"sources":[]},
@@ -268,7 +268,6 @@
{"digest":"5302e763151277614b97e77f00e3b326694c6c1247b916a20503c344dc970777","names":[],"sources":["packages/core/session/src/types.ts:377"]},
{"digest":"530da6c0267813bb4511af72883cc518834e624e3b3220a7062955fd57a788a6","names":["packages/core/session/src/types.ts#RequestHeaderReason"],"sources":["packages/core/session/src/types.ts:275"]},
{"digest":"53750b9abf61efb7992b0aadc3e247ec927449c63266df28230fd1139f5590ac","names":[],"sources":[]},
{"digest":"53bb37430d38c7256e3868155ca5a03f4d8a46f4b124b2d22152e3752c0cb574","names":[],"sources":[]},
{"digest":"53cf1704ae0709c7678bcf070c83c619fc48ca1b5c173b74cfa8702f22a8e492","names":[],"sources":[]},
{"digest":"54f9276a1617d7c12594722c89cfe864bcbe4517e9a6f9c98bab14f199a135e0","names":[],"sources":["packages/core/session/src/types.ts:357"]},
{"digest":"557e148d30b79ee48645850832b30c717d7c3b64641deb5d6133b8b4e91ee0b8","names":[],"sources":[]},
@@ -282,11 +281,10 @@
{"digest":"5808e36c95355f0e745201b5db1b6bcec4ebf5adb75d3e82d7d59cc89635ab80","names":["packages/llm/llm/src/types.ts#FinishReason"],"sources":["packages/llm/llm/src/types.ts:165"]},
{"digest":"587bb11da730e06aa52b62c087d217d6f8f22459b25f31cb9e1e1baf17944e5e","names":[],"sources":[]},
{"digest":"589d0d91239681f89ee485459dc8c2f73ea47183b5534289d966637024a2c35d","names":[],"sources":[]},
{"digest":"58d643f2ec961461c8b14b737f081f047cd5d11890df8682305c55118dd5d1bf","names":[],"sources":["packages/core/session/src/types.ts:313"]},
{"digest":"58b122df513aeaf7ddc5783dbb1fd844e2979bb273964e30ae351a8db6510019","names":[],"sources":[]},
{"digest":"58f94390b982f8a5ac1f4f235ba612557f4a1dc4a995d8b1cec63ce7639decb0","names":[],"sources":[]},
{"digest":"5abab3a27fd2736660ecddd94b28d6bbf114986dd894880153bd1be3ccacb563","names":[],"sources":[]},
{"digest":"5b232a9b9bfcc0fc6794dab7865bcf203a65785c5de5aa647a51228bff628413","names":[],"sources":[]},
{"digest":"5b25a1523822e01a21b6ca6054f583a61fdced38b3ddd22a37faeb5a6fe28448","names":[],"sources":[]},
{"digest":"5b6fb1f226ff56402db08a6aae82af76100b14056271875f69ec526a1ae05d51","names":[],"sources":["packages/interaction/commands/src/types.ts:112"]},
{"digest":"5bb69b88517f6214f2af4d1a6d2b771e271ad3ad695cc9c2c272069ae698c9bc","names":[],"sources":[]},
{"digest":"5bc66269cfaf614c0ecda8ecb469f23101a7609793fc2b693ac23c4aecdb575e","names":[],"sources":[]},
@@ -294,6 +292,7 @@
{"digest":"5c45bf4c544a7211dcd8ba6ba7e5f1bc39b49e7a9df9d5cbdc8e87c22771b37b","names":[],"sources":[]},
{"digest":"5cb63db9fe57dc09c3a1c2b84c3edf73ff5b62960155d8436a2377a5c43ce32c","names":[],"sources":[]},
{"digest":"5cdbf342b7748d152bc987b68f58e565e5bba4b227e076e2d2120d87662e45cd","names":[],"sources":[]},
{"digest":"5d00abf938272f22eb47199e9d40801e8d8ec4c88e2b138b15aa2a5a5bf87520","names":[],"sources":[]},
{"digest":"5d03ba38734809bcbd2a55221bd938b3b3fc34b49bb686c6113e9e4931e3aa78","names":[],"sources":[]},
{"digest":"5d17f27a1ef9f7026c0232714adf7573961536d75f3303ca97973975f5af170e","names":[],"sources":[]},
{"digest":"5d542ac7bdf13310c46e1a884dec9fb18ad8c6e153cff207e639cd7bf9d7e694","names":[],"sources":[]},
@@ -301,6 +300,7 @@
{"digest":"5dd766ccd1702a1142ad8b4bd44f2242f8e8a6752669ad3de0a5d224329b1438","names":[],"sources":["packages/compaction/compaction/src/types.ts:82"]},
{"digest":"5e6db6e24948d4a853c71cb9fabd252ad051ce93d4672c1266cf837c1c17b84e","names":[],"sources":[]},
{"digest":"5ebce1317eacd2c148456627a09668e927ee15c204f0643f5ea76b46b54a2647","names":[],"sources":[]},
{"digest":"5ef58f2a1bdc576c1f12fa1f4da1920ece020b13c0f991a578cddcbeb28bc5be","names":[],"sources":[]},
{"digest":"5f2117d1856a5ab43c28371faa978ebfaa48f8c7d734ea3fc94842210df83dca","names":["packages/llm/llm/src/types.ts#LlmFailure"],"sources":["packages/llm/llm/src/types.ts:41"]},
{"digest":"5f26a6c20b37632f8f57729d171c671def4683d994ac6257a8dffcd855101627","names":[],"sources":[]},
{"digest":"5f758f3de5f00c18968a7c6d347083aac5c9ae13f6a79c78f6611b23c4973564","names":["packages/subagent/subagent/src/descriptor.ts#OneShotSubagentDescriptorData"],"sources":["packages/subagent/subagent/src/descriptor.ts:61"]},
@@ -314,18 +314,15 @@
{"digest":"6487b10ba7542f3c447b1e41a1c6a590b7bfafe0b9b66b49f34028da85bb970f","names":["packages/subagent/subagent/src/descriptor.ts#ContinuableSubagentDescriptorData"],"sources":["packages/subagent/subagent/src/descriptor.ts:72"]},
{"digest":"6598cd6da253948d6b207c6374a45335804c79b576866d6215649c2d1bc85e25","names":["packages/experimental/agent-team/src/types.ts#TeamMemberSnapshot"],"sources":["packages/experimental/agent-team/src/types.ts:48"]},
{"digest":"65a8400e451e667e5b6e34df72ceb81fca8c12330330fa72083ad40279b189ad","names":["packages/llm/llm/src/message.ts#SystemPromptMessageSource"],"sources":["packages/llm/llm/src/message.ts:35"]},
{"digest":"66b2e4f3954442bc9a11c5aa3bfbea6a33d9ff3f7df42fa7e7b062411d394da4","names":[],"sources":[]},
{"digest":"66ba70f6f068da443f969a0b947a013c3addd776b9b60a0a393759c19825e9a2","names":["packages/llm/llm/src/types.ts#ToolSchema"],"sources":["packages/llm/llm/src/types.ts:491"]},
{"digest":"672c4aa2a9b736e3d6e5da6346d2e2ed5e3573f2d0baafa18e7407c9f3fee3db","names":["packages/skill/skill/src/index.ts#SkillInvocationSource"],"sources":["packages/skill/skill/src/index.ts:146"]},
{"digest":"67d5f73ceae82f5265258142ad6cf172de2c1fef93ba551b7f0454e0a93bffe0","names":["packages/llm/llm/src/call-config.ts#LlmCallConfig"],"sources":["packages/llm/llm/src/call-config.ts:31"]},
{"digest":"68141cbe3994a5ffcd064c07c75996538437fd9dbf77ce8a2927e89ec577fabe","names":[],"sources":[]},
{"digest":"6889dc45ee6d68d2182ab54eda30d71691014b3742c4119db4e5ea673020aa04","names":[],"sources":["packages/core/agent/src/types.ts:110"]},
{"digest":"688e853dc149f0d30b31765c12ec7e3be74169bdf1a4c6463a10b945d50cc1b8","names":[],"sources":[]},
{"digest":"68f44f59e91c41395076cb77265981a601680ec8a381bbbeb6ab754ffdc94573","names":[],"sources":[]},
{"digest":"69081694be231d56fd9580ba14645fd5e35373202605d5c5c841a9435b5fa3b1","names":[],"sources":[]},
{"digest":"693f4952fb5565da96c06bace8924b098ac2fbc915fde0ff8019701183abc057","names":[],"sources":["packages/llm/llm/src/types.ts:161"]},
{"digest":"69d238a6e9b08d67f601b1825962963d8d3523cb69ebf6208c697dc5d058c199","names":[],"sources":[]},
{"digest":"6a69bf7c4ddee5c65ace3463a666c7af9a60c5598f9e33ae5edde0feb4528411","names":["packages/llm/llm/src/message.ts#MessageSource"],"sources":["packages/llm/llm/src/message.ts:136"]},
{"digest":"6ab45ac76839722df912f3ba50f1c6b41f2d614bde11f1aabfae04117ccdc80d","names":[],"sources":[]},
{"digest":"6b23ed9ce1b397e602788dbe033693bf97642a69e23fcab1cc45bf6f13b6d619","names":[],"sources":[]},
{"digest":"6bbe793f6a93dc8d50a4d4d3fbb6f8ed15650bcb7e151d28669628f7b7c3fc25","names":["packages/goal/goal/src/types.ts#GoalSnapshot"],"sources":["packages/goal/goal/src/types.ts:60"]},
@@ -352,15 +349,19 @@
{"digest":"71bb3254ec8f1e491ce63b762a7b5f18709de23aa4e8abcc8b886f4b6ce051dd","names":[],"sources":["packages/llm/llm/src/assistant-stream.ts:28"]},
{"digest":"72ec79127a9c0d0241b1106a74cc2b24c81ce467170f1c3c93f7b71a9496d227","names":[],"sources":[]},
{"digest":"7382c4fc95fe8c5db65ca4d9da572b115d0dbb818b7f32c22ab040318ffbb4bc","names":[],"sources":[]},
{"digest":"7404c6123fdaa591474a37979a5a8ae70d1387af7c9f09bfe568b218935a974d","names":[],"sources":["packages/core/session/src/types.ts:313"]},
{"digest":"750a2b129d67704df675c06823c20c80b65cbae89d5aaa914fd5a72e3df395b5","names":["packages/jobs/jobs/src/types.ts#JobSettleCause"],"sources":["packages/jobs/jobs/src/types.ts:247"]},
{"digest":"7554565be416b0342053ee6a46256c9dab07c487349b4a5f10bab1edc151c619","names":[],"sources":[]},
{"digest":"756b5e23a5cb2c7f486f366a828f7461c88902af21125bd6810881f4ccbff6cc","names":[],"sources":[]},
{"digest":"7580e7d96dc8475fffe813a42af499665de3d4517fcdb3bc2337d0340e98d616","names":["packages/llm/llm/src/message.ts#DeveloperMessage"],"sources":["packages/llm/llm/src/message.ts:157"]},
{"digest":"7624ca28c61ca0eaa4f015140f3cea6e0c16cce2f2960fab5f531203d253903e","names":[],"sources":[]},
{"digest":"763c8a20af487263a0080548274f7437ef4a86e0ba8769127d1ced10a72c664d","names":[],"sources":[]},
{"digest":"76632533f67879dcb346fcae640540dbc89b2472b0bce88c59f7e48fc5c0e668","names":[],"sources":[]},
{"digest":"78a9be340090b735a39980e7222ce730c972fbcf1de7c9e0aef2125884b7caee","names":[],"sources":[]},
{"digest":"78b9204976ab9faaf133c3488b73d1dfb6f1a4bb6c0903e3473cd41a5e1e39e1","names":[],"sources":[]},
{"digest":"79650cfa10aa3c52440328d85e8a25f0ffadc8d7efd784e3c0819d8bb74a1985","names":[],"sources":["packages/core/session/src/types.ts:214"]},
{"digest":"79ddc907312f97cf9553d4841e8b3fc937097bd8d97900a790efad3c05255e99","names":[],"sources":["packages/todo/tool-todo/src/types.ts:33"]},
{"digest":"7a5b68bd1a5118c827df9e2466acc5e4d16b83e3f97a2304d992958647592690","names":["packages/llm/llm/src/message.ts#MessageSource"],"sources":["packages/llm/llm/src/message.ts:136"]},
{"digest":"7a651f3b672c52fb615f22c0ce9cb3cc5b22aad92e6bbeefb0808fd7b9233a50","names":[],"sources":[]},
{"digest":"7af85bf70d4eafce63e739adae38ea85501e68df3a0e22f97f3a0be90fd9e4cb","names":[],"sources":[]},
{"digest":"7b1ce60193fa8b69292e5843858d9cee7dc565dcb40d33c136e5d7e8b8d4296a","names":[],"sources":[]},
@@ -392,7 +393,6 @@
{"digest":"84bbfdce7d2eab5b0c53e72ff7406db856c8bfd621b965b72fd86598ba493bf7","names":[],"sources":[]},
{"digest":"854db3efdfb0cd39d30953b28703e519c121f1115cebfffc40369fe86c406dd1","names":[],"sources":[]},
{"digest":"85d6d96ff884297410ec0026bdacba835f10e56cbcc5a3b9d670739f4aa0494b","names":[],"sources":[]},
{"digest":"85d754f8957fcbbfb65bcb6dded47a816c409bb431de293ff3209b11fe093ded","names":[],"sources":[]},
{"digest":"85f9b505b7bdff1f61845c4cea8f36fd0fde1b62facbe87d8924d1d27e616f3a","names":[],"sources":[]},
{"digest":"85fe96bf15d5c7559eec3bae4d6cf1a76fda9f5be05a29c2830cff560cab0c0d","names":[],"sources":[]},
{"digest":"8620189c8e33582708ece48fd2d20dc4d57912486a17bdbb9aea4c44f7018062","names":[],"sources":[]},
@@ -419,7 +419,6 @@
{"digest":"8f6d609794bf5afc01d7ccf3e03811d32f4b8047f58a2c9a98db0154c2ad7cb9","names":[],"sources":[]},
{"digest":"8fcb0b44a575e998665c053643d1ab04c82f39253ebd190ac0c975b78e40b543","names":[],"sources":["packages/core/tools/src/index.ts:28"]},
{"digest":"904bf499d98be4a3a5f836fcac533b6c4899569b018071e6604e1d32657d00fd","names":[],"sources":[]},
{"digest":"929c90ad641192d1a3de9d1aa5adb889856e2f4e20188e9c057b25eee88aa13c","names":["packages/session/session-title-llm/src/index.ts#SessionTitleLlmRequestEventData"],"sources":["packages/session/session-title-llm/src/index.ts:37"]},
{"digest":"930c1cd289def119d443e19dd90008916bf035f0a4d23e07241e7f050f2b89b7","names":["packages/interaction/user-approval/src/types.ts#ApprovalOutcome"],"sources":["packages/interaction/user-approval/src/types.ts:32"]},
{"digest":"935c8d486292b13c87b57ca280eb8c58b5b2f5239be86fcd4334c33fdeb87682","names":[],"sources":[]},
{"digest":"938f7c7357bc403ea3b281a9dd016939df7a0880fc8db12612585be574d0d615","names":[],"sources":[]},
@@ -428,7 +427,6 @@
{"digest":"93d38436347f67c9022aacbc4472e283d722bcab8eb73fc376aaf7b6a6b9fb35","names":[],"sources":[]},
{"digest":"94c56aeb1564ad735eb773d88636b40761d063efa1610f1308004d32923f5378","names":[],"sources":[]},
{"digest":"95080295115fbd83544520ba247b68a03790131f6a2eac323d388758cb542f65","names":[],"sources":["packages/llm/llm/src/types.ts:472"]},
{"digest":"9529cbfe9fc86799157ea4fdd84e2d7e2daeffa8843065d29ac40acc68087681","names":[],"sources":[]},
{"digest":"95a3ffccbf3c8afcf9a2f3b355f724da8e07e98dc47ee741166dde7f9ea058bd","names":[],"sources":[]},
{"digest":"95c0e88fcf0bafb2087f912ad9e2369de6ae6530cc0c4c2772c96205b57f7f60","names":[],"sources":[]},
{"digest":"9645cf93769a6dfb227bd400bd6cb9fa7bab9140f4a851e4ae92514ade6e3114","names":[],"sources":[]},
@@ -447,7 +445,6 @@
{"digest":"9acbe713f3f641921dd3333b240aa72e176d795327c24e8d9db9b68b16771b49","names":[],"sources":[]},
{"digest":"9b4fd974c124c83743efe030ba4e1250e087505f3f74588716a521fb8d453267","names":[],"sources":[]},
{"digest":"9c001ecb5e1d3c3894410db2a1e383842e5f8454fb52182338686158abc1b3ee","names":[],"sources":["packages/web/web-search-deepseek/src/provider.ts:61"]},
{"digest":"9d2c7e74894fb4dbf3af436b09d1e9ae4a631dbdf3c7ebbfb2b490b1279c94b3","names":[],"sources":[]},
{"digest":"9d80129e13edfb6feb03ed327e6085c6ef60b97ad074244b2f5fd4667424a6a4","names":[],"sources":[]},
{"digest":"9e07693fd7cd9babe0688c22c986e4d519ae1c0e40eeea13b2dc583bed2abc86","names":[],"sources":[]},
{"digest":"9e2c06d8653585b33d72d5c1a80da79c8a24a88c284409bca15cc0f0ead5ebfb","names":[],"sources":[]},
@@ -467,13 +464,13 @@
{"digest":"a2be0f0cb59f0d4a06557d45847d1938aced238baa77a6da416e590b8b958553","names":[],"sources":[]},
{"digest":"a3a259a1aa5401af786ce08c4a8419681d3000d73467991b5fc563389bc4ebd2","names":[],"sources":[]},
{"digest":"a3c6f1ea38e9a61d7a9706057ba65aabe02dfe6d9dd90d4736aa62325d874531","names":[],"sources":[]},
{"digest":"a3e299483348f27a4787a36bb3f29cd86024c65336abc10bb3d687468302c4cf","names":["packages/session/session-title-llm/src/index.ts#SessionTitleLlmRequestEventData"],"sources":["packages/session/session-title-llm/src/index.ts:37"]},
{"digest":"a3edd1efd1fef21b72c55e213c8a8b24196b091abde2b89db52be0b2aaae3cfa","names":[],"sources":[]},
{"digest":"a40d12070f6f4a124f32fb3cc86e7857554702e32f0eda3080a25c4b9ac9b18c","names":[],"sources":["packages/experimental/agent-team/src/types.ts:232"]},
{"digest":"a6567ccb2e530606b775371eb4fa31468d72084339968e8b0440a516a23b39dc","names":[],"sources":[]},
{"digest":"a6b41f5bede8094d7bf635be5d69b1bd7a25e006ca9cf9415bceb9322f1a7feb","names":["packages/experimental/hook-protocol/src/types.ts#HookDialect"],"sources":["packages/experimental/hook-protocol/src/types.ts:48"]},
{"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":"a7241f5a94c73b544eef17a344b3f09ba12943066c611b40a1cf8e78dc9543ae","names":[],"sources":[]},
{"digest":"a7cf43ce7c2a4c038feed1885cd7a00d5c6ee2d90a7e0d56b46f78a3e1ca327f","names":[],"sources":[]},
{"digest":"a81059ca06999da1e712414520c2c65e491d052fcf9640fae20aa38f0a5dc735","names":[],"sources":["packages/core/session/src/types.ts:385","packages/core/tool-executor-ptc/src/types.ts:27"]},
{"digest":"a853902cfab417b8f08aa51ad6855fea46f34ed4588a74e47403035111d0fb86","names":[],"sources":["packages/interaction/commands/src/types.ts:105"]},
@@ -512,8 +509,10 @@
{"digest":"b222069eea2d768065161c1147b1f2c78c1b54328c84b3586ae5c8f91b8ed35e","names":[],"sources":[]},
{"digest":"b2245a906e13aa94f2d3cc6cf7b04cfa0267f7b7f4d468de1b00b1a314e54626","names":[],"sources":[]},
{"digest":"b2a5c8c008a31e3dc6c3013502f2356aca13894b31c8e70601fa92f2d40d1dba","names":[],"sources":[]},
{"digest":"b2a948a5340a9341fa3bab99507c7090c5b0456de72ec28b5b157b8df3f1d640","names":[],"sources":["packages/core/agent/src/types.ts:110"]},
{"digest":"b2d2a01e51341a3bfec809198952c8c830a7899f4cb6ecd3c1dc0b5d9a2af943","names":["packages/experimental/agent-team/src/types.ts#TeamTaskStatus"],"sources":["packages/experimental/agent-team/src/types.ts:72"]},
{"digest":"b3681c026a0b98e98b103f057dfd217fbe904129c090efd668253ec9aea7fece","names":[],"sources":[]},
{"digest":"b36fd842cd004b532ce96fd5d6f5be28e017eda043131aa3cf5e69edc436108e","names":[],"sources":[]},
{"digest":"b38f206d59bad891fa58c89f97a0036987b3defe7685acbd318fa55eb85f9751","names":[],"sources":[]},
{"digest":"b4ec0af39fd52ed971990e42f04e5be3204882e555c409eb330f8238eec21569","names":[],"sources":[]},
{"digest":"b5086d249e8502e9ead1d39156bb8d559bde7951cac0f14ce150345b4e42a2bf","names":[],"sources":[]},
@@ -522,12 +521,14 @@
{"digest":"b56f6a885da3dc394c69a3e3cc5c0cfc4da15601b63fda4989eee8f40efc5be4","names":["packages/session/session-title/src/types.ts#SessionTitleEventData"],"sources":["packages/session/session-title/src/types.ts:41"]},
{"digest":"b57a2889408de36e4516807194c73bdecd51a92f633ccd05db81bf049200f420","names":[],"sources":[]},
{"digest":"b57ae1b37e52bee0a21cbdace168dc6a15582bcda8c306dad962c5dcc8a8e28b","names":[],"sources":[]},
{"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:203"]},
{"digest":"b6f94c17dd9bbd7cd57015198b7c7c88407f0e3b89faab176ca3c11c3d864d3e","names":[],"sources":[]},
{"digest":"b70f3e81fe11b7a5f2504fb47a4502fb8d9c8f0731fdfe8ddcaf9b41f5a6e196","names":[],"sources":[]},
{"digest":"b765ee31033cea463863faf3fc6a0a1b85c47c6a2f13fe1ce833abe56105114b","names":[],"sources":[]},
{"digest":"b782058cef83caf3eb44a16adeef5657e4d5cdff2d50655aba418c4490670a69","names":["packages/llm/llm/src/message.ts#UserMessage"],"sources":["packages/llm/llm/src/message.ts:162"]},
{"digest":"b79641a9d25e756636dc0c706fdf3c4583ccb7d4920e009e6e86c0759cf4de4c","names":[],"sources":[]},
{"digest":"b79ada42962cad0190a9d465805260567621fa3a4abd757eb31e6016b52d5ab5","names":[],"sources":[]},
{"digest":"b815d7b91cdd9fc6ccc7dcba05cfc5ce1d55fab5fc0c0801803cd3630cedb602","names":[],"sources":[]},
@@ -537,6 +538,7 @@
{"digest":"b9305f0ea75ccd6a6061c27fde19f2ab85534f9f3c1a717b573b077ebae0f611","names":[],"sources":[]},
{"digest":"b978cff734e62143eb56c9125423ec275405eda969802d42aaf73ecb987d3b26","names":[],"sources":[]},
{"digest":"b993441f8ce7d27b80e619e113e232ae8e62d3d5a8340f6bfe12d8c4c018e62f","names":[],"sources":[]},
{"digest":"ba2a1a8f194b1bb21f270713398f6643e206e8ff5f7f26f6d36a88e3f0f0ab10","names":[],"sources":[]},
{"digest":"ba4c40b4381e0dcdfab8fc9fc75b5c9b3e8f09ef56deeb1bec8e703b0ef8cd6d","names":[],"sources":[]},
{"digest":"ba77b58995e36f14bb13886b0493d0a1a63d5db10b1a6cd9f6ac65a72cf832ec","names":[],"sources":[]},
{"digest":"bab68657940075483f086fffb711682a45bcc99c43d659fbe1c36af21ac05dd7","names":[],"sources":[]},
@@ -550,7 +552,6 @@
{"digest":"bf16d2e98a7f13894ded2cffe5ce857bf473954a0e3c0ed9bc7739e2e1c7b78a","names":[],"sources":[]},
{"digest":"c0ea97bc89dfc46fa94eab956f5c3ee6af2f964aa7db6327cb18b451f207bef7","names":["packages/workflow/tool-workflow/src/types.ts#ToolWorkflowAgentEndData"],"sources":["packages/workflow/tool-workflow/src/types.ts:29"]},
{"digest":"c170da8ab7c37635b10867b2571811d9e317ac3ec394e8ff8efe53f902fc41c1","names":["packages/llm/llm-retry/src/types.ts#LlmRetryEventData"],"sources":["packages/llm/llm-retry/src/types.ts:16"]},
{"digest":"c1d5de6f6d47227a1ab3d64c5387b9acd4f9a78df5a61e92c2e82e39b8f9825f","names":["packages/llm/llm/src/message.ts#UserMessage"],"sources":["packages/llm/llm/src/message.ts:162"]},
{"digest":"c1f0f17b6493b85db6453bb30e01b208d703731b25bc1e68e5d4fc72eea9cdea","names":["packages/llm/llm/src/types.ts#ToolCallBlock"],"sources":["packages/llm/llm/src/types.ts:105"]},
{"digest":"c1f9e0405de6d18cabb9ee70782a027f9bbdc57e5abec9dcccdd56119e2e9058","names":[],"sources":[]},
{"digest":"c219efbdfd53b836786202ab4532913d555798f0a8615a4e9629736e3799fb70","names":[],"sources":[]},
@@ -563,7 +564,6 @@
{"digest":"c589e938cc0e4989df8b82abef6339de621f0dc4fe62c230d145b94996af7f92","names":[],"sources":[]},
{"digest":"c592ce75aab73fcab19c1d7845684c72cf402b78d2e1f2833a58ecf9f3598ed6","names":["packages/util/values/src/index.ts#JsonValue"],"sources":["packages/util/values/src/index.ts:4"]},
{"digest":"c748fb42c80a120038a8c587af80ec39924803c401364db11c8974d5bf6d0262","names":[],"sources":[]},
{"digest":"c81b3891a886d2e40a09d04633ec88918289bb10eee9098ed19d33c1994aa4d8","names":[],"sources":[]},
{"digest":"c8e6f48878cc2a2f0dc59682280d81f407943fb503f32c64bf9ff3d9393c3eff","names":[],"sources":[]},
{"digest":"c99e20441bf15341e9db54385e558e5c03d21dff2eb1ac08ccbf47c2d8747954","names":[],"sources":[]},
{"digest":"ca085dba2c877feceebf3c62f9d39c6c2a4d2314d97b94b3927a780fe8fe2bb2","names":[],"sources":[]},
@@ -573,15 +573,13 @@
{"digest":"cbca49bde16b656d5b8fbe4a8a507769f7b594c6287782b809c03814941bc5e3","names":[],"sources":[]},
{"digest":"cd186c309e2bef305705e1d324139240f5e681f4f6a957d6a25b0225f65560df","names":[],"sources":[]},
{"digest":"cda2345a9be9d139df49ccbd16dcba716f3440178bf20ff8b801fda1f5eb77dc","names":[],"sources":[]},
{"digest":"cda79b839d8cc0c7a7bd09dd067de04925f6e9037080d878b65aaa5a383f117c","names":["packages/llm/llm/src/message.ts#Message"],"sources":["packages/llm/llm/src/message.ts:196"]},
{"digest":"cdca80b8dad24d4e7b1d5a288a8475ba8d8d46be385bd2da85f122ee836f1670","names":[],"sources":[]},
{"digest":"cdee10e87dbed8440d8b6935888624884878efc7af95402e94171b29f173dced","names":[],"sources":["packages/llm/llm-retry/src/types.ts:17"]},
{"digest":"cea2baa72d20cb86e3a9907bcec1541ab1cfff1a83c892f033463e5cf14064fb","names":["packages/llm/llm/src/message.ts#Message"],"sources":["packages/llm/llm/src/message.ts:196"]},
{"digest":"cef171adf021a1867d244618a3dbbaafc22beb17c7f3df3ee203393271c8c6f6","names":["packages/core/tool-executor-ptc/src/types.ts#PtcDispatchEventData"],"sources":["packages/core/tool-executor-ptc/src/types.ts:21"]},
{"digest":"cf58fe6f97f6f8fcc325a1b88d89b821a0120e40ea9667f3e4547a24076b97de","names":[],"sources":[]},
{"digest":"cffcdc19881ab61ec0a9ce18743996f7ac44ac8889f34dfac36ae745574aa22f","names":["packages/goal/goal/src/domain.ts#GoalClearChangeMeta"],"sources":["packages/goal/goal/src/domain.ts:35"]},
{"digest":"d0fbb0ca1bbba059830826f33f801da1aced35a2504376d61e020bdfec8d50c0","names":[],"sources":[]},
{"digest":"d28765f87d6b6ab408e0b2f3e7e297791b004b806d8e302c49903ebae815feb2","names":[],"sources":[]},
{"digest":"d2cc8a54a6f1abc97f638821bc36cdd559355e6d9ceb9ad69bd63587a5ec7c0a","names":[],"sources":[]},
{"digest":"d4b739491689cc6bb13d07ffac1a32239875abda364c0d5edd8f74faf5e9c00d","names":[],"sources":["packages/llm/llm/src/types.ts:475"]},
{"digest":"d4c799e3d51cae1040362ba4968efc484739e14416c9c1df20c2f108b4ef2eb5","names":[],"sources":[]},
{"digest":"d4e4d575abeb4b72d616dc65c17ac0eaa943cc135609395044c38d5afcb10e31","names":[],"sources":[]},
@@ -600,9 +598,11 @@
{"digest":"db874d463b0fdec77e9da1c4568f37cb70bd6596781eb93800db44fb8a116965","names":[],"sources":[]},
{"digest":"dba54c09c6e7aafc9acbed7792ecc920d99f92d0784aeeed10af55f7fe0bc8cd","names":[],"sources":["packages/core/tool-executor-ptc/src/types.ts:68"]},
{"digest":"dbdafceb9a900183cccc80596498d386f3bf7bddead2b8cfde68453aa4739edc","names":[],"sources":[]},
{"digest":"dd00cdccd0ba487b92362ef67db58cd264f48c1bfd368291424a1da9a899489a","names":[],"sources":[]},
{"digest":"dd2780e7e07684332f7a9ab047237798d260e7eaffb1321cb38eca695d184c3d","names":[],"sources":[]},
{"digest":"dd5ee8762bd8a14b6c6bffedd1753e4e78505bb0f9ea1621018d03a54eef59d5","names":[],"sources":[]},
{"digest":"dd6cc2bb2a8f28248347021ad93565360b196a042360b4cd16b569d3a2a91f2d","names":[],"sources":[]},
{"digest":"dde0cdf9d426768b649b5a9783d2144e7f900c35ef65229cd89036dbf411d1b0","names":[],"sources":[]},
{"digest":"de25352d2dc4196309bd84b5bac6319f6d5c898ea0e82bb5ae66c5738d0d426f","names":[],"sources":[]},
{"digest":"de30b1fa12c75f81df6aa4096e1595296d2d04e2be14a7c29849cf8028b79048","names":[],"sources":[]},
{"digest":"deaae5cd30987d4f49398e8f9d994c125907e7f928300745fb1dbf15f145d0e7","names":[],"sources":[]},
@@ -611,7 +611,6 @@
{"digest":"df843efd87c78cf8de98f8e0d0216956cd568d0d0e56a22c853663e274aa1a18","names":[],"sources":[]},
{"digest":"dfce5db4aa42b7ebe0bb79eca92553587287e18c06b9eba85cbfb9d332e26acd","names":["packages/experimental/agent-team/src/types.ts#TeamMemberPhase"],"sources":["packages/experimental/agent-team/src/types.ts:45"]},
{"digest":"e0a787e6ec76c7c94fecbc501b489164ab0293db05bc947914077ad01e674f05","names":[],"sources":[]},
{"digest":"e1ba710db2f3e4e4d397b921fafedb5dd5ad5d16efc0393f0667160cb02f79e3","names":[],"sources":[]},
{"digest":"e2ad8f5bcd813f268ffef1b10a12d7ddd2b8ced8b9b6d0275b3f6b7ed094a187","names":[],"sources":[]},
{"digest":"e2d0367e5716bc188435e51718ebff8ce873190625fa93b1c5331102d98758fa","names":[],"sources":[]},
{"digest":"e2f9a41e0989f54ed8cee80f8db2bcf9d60a5c810dc9d45b83fa050b9dce7602","names":[],"sources":[]},
@@ -633,6 +632,7 @@
{"digest":"e7ce49f12953583fad217bf80fb9f1463acff2c3e9471a823782661675fb124c","names":[],"sources":[]},
{"digest":"e7e154d47d5fbc5366330fb4dade1f108c6dfe4335044d21ded14b7bf1dce084","names":[],"sources":[]},
{"digest":"e7e8f1318170b8284f16ab45a557afd4675c96071c0f2a456636481dab20b427","names":[],"sources":[]},
{"digest":"e7f4cbb3a57f4cbdb61ea41e95bcba626ad1fff6bb9b1e063b1d50a32da6e864","names":[],"sources":[]},
{"digest":"e8de0f457fed5b9ff94dc4950b59ef75fd8ba8af665cc7899485924a62653367","names":[],"sources":[]},
{"digest":"e95f957154b2b1b58692af53d4131180b6dd19e2264869f876dbaa959991494e","names":[],"sources":[]},
{"digest":"ea08ec1df0c33108fd03345b9af199cf04dea450aa045d3c683f216311403403","names":[],"sources":["packages/experimental/agent-team/src/types.ts:234"]},
@@ -648,6 +648,7 @@
{"digest":"ef11a3b7fa2033ae4279545ff8a8a2ee4e301b9b73e5b91654c48e6d08283545","names":[],"sources":["packages/core/session/src/types.ts:301","packages/core/session/src/types.ts:303"]},
{"digest":"ef226a90ddac6cd8e631a3a337a3a3e27f9494be92befb7c718b404681d75e21","names":[],"sources":[]},
{"digest":"ef4f00923b9edbae15c7ef05320280bf61147ca17146cf59690359bfd5e5da45","names":[],"sources":[]},
{"digest":"efa1a091017ce533e38b0ef3e14d11a5c102ff1793229b18dad719a4268d9adc","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:234"]},
@@ -673,7 +674,6 @@
{"digest":"f88f1b7b6bb733f685f5fb6a8744a5db9199fa53c90463ea1a33bad51153671d","names":[],"sources":[]},
{"digest":"f90eb4ab2d3897bc20c521a038e3119d581f791ec974b1a0004f63a8ab9e232d","names":[],"sources":["packages/core/session/src/types.ts:290","packages/deliverables/workspace-changes/src/types.ts:106"]},
{"digest":"f97f47b0eb87905ed77cc27c5e4ed75ef805cb372c98905253709de1aab9b63c","names":[],"sources":[]},
{"digest":"f99e707d67fd708b9c282bad0428e8bc8c69777d93d283bf152f20fd9eb3e36f","names":[],"sources":[]},
{"digest":"f9cfc89e8fe085b4fcc9cd32b74b6f103608c54d7d8cd97b47c01de34f252ba3","names":[],"sources":[]},
{"digest":"fa87537f4a9c1e25602990a8bf686b383e9e00352ec8946e16ae24ba7c1625be","names":["packages/llm/llm/src/message.ts#AssistantMessage"],"sources":["packages/llm/llm/src/message.ts:167"]},
{"digest":"fab2bb09bc5e3b9db0685e8f5500b029af1a2b33e70bc703c1d5d0f596fbc1fd","names":["packages/sandbox/sandbox/src/index.ts#SandboxMode"],"sources":["packages/sandbox/sandbox/src/index.ts:30"]},
@@ -698,9 +698,9 @@
"023a355b2be0d688": {"kind":"object","properties":[{"name":"kind","type":"254dce209e735f9c","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"},
"05a2796621b1ee6c": {"kind":"literal","value":"unknown"},
"05d2ae1e0c7f8770": {"kind":"union","types":["1571525adc95a24e","9e07693fd7cd9bab"]},
"062f94b162cfd50f": {"kind":"object","properties":[{"name":"form","type":"fee1caf8ab6a65c1","optional":false},{"name":"kind","type":"e1ba710db2f3e4e4","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"0657d3ca5ac4e7bf": {"kind":"primitive","type":"number"},
"07e1a58c58b593f5": {"kind":"object","properties":[{"name":"model","type":"4cd48f3e5108bd6e","optional":false},{"name":"provider","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"07eccc9ea2f9b543": {"kind":"literal","value":"security-privacy-permission"},
@@ -755,7 +755,6 @@
"1a2718b00937b236": {"kind":"literal","value":"deliverables/presented"},
"1a3440e357738270": {"kind":"object","properties":[{"name":"agentPreset","type":"4cd48f3e5108bd6e","optional":true},{"name":"createdAt","type":"0657d3ca5ac4e7bf","optional":false},{"name":"cwd","type":"4cd48f3e5108bd6e","optional":true},{"name":"delegationDepth","type":"0657d3ca5ac4e7bf","optional":true},{"name":"id","type":"4cd48f3e5108bd6e","optional":false},{"name":"isSeeded","type":"aa93010d0e521ad7","optional":false},{"name":"origin","type":"aacda84a69739238","optional":true},{"name":"parentSession","type":"4cd48f3e5108bd6e","optional":true},{"name":"version","type":"af6e173f7be819bc","optional":false}],"indices":[]},
"1ab2ef1296f157ba": {"kind":"union","types":["511801b0a6470d98","a2be0f0cb59f0d4a"]},
"1b43047675face5d": {"kind":"object","properties":[{"name":"data","type":"6889dc45ee6d68d2","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"829a2fb3be6efd4b","optional":false}],"indices":[]},
"1b5649238876e288": {"kind":"object","properties":[{"name":"kind","type":"d6e654b88b584fcd","optional":false}],"indices":[]},
"1b912703e2d64f91": {"kind":"object","properties":[{"name":"data","type":"b56f6a885da3dc39","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"7a651f3b672c52fb","optional":false}],"indices":[]},
"1c2686c0682e7bc5": {"kind":"literal","value":"session/end-seed"},
@@ -784,7 +783,6 @@
"234142ee4f996f38": {"kind":"literal","value":"pending"},
"237c004c73b6b288": {"kind":"literal","value":"goal/change"},
"23af3759678a30de": {"kind":"literal","value":"dsh-session-title-llm"},
"243d11dd918e46de": {"kind":"object","properties":[{"name":"content","type":"b52f215a6cd69105","optional":false},{"name":"id","type":"4cd48f3e5108bd6e","optional":false},{"name":"role","type":"589d0d91239681f8","optional":false},{"name":"source","type":"6a69bf7c4ddee5c6","optional":false,"compatibility":{"version":1,"policy":"session-source-attribution","binding":"session.developer-message.source","discriminator":"kind","unknownKinds":"preserve","attributionKinds":["personalized-pages","tmux-context","user-question-reply","working-directory"]}}],"indices":[]},
"24a8188c4d61b70a": {"kind":"literal","value":"job/registered"},
"24b10f7cdae64928": {"kind":"literal","value":"runtime-context"},
"24ce31aa528272e5": {"kind":"object","properties":[{"name":"kind","type":"99e7e7d7fed55ae6","optional":false}],"indices":[]},
@@ -815,6 +813,7 @@
"30d5a537b2966857": {"kind":"union","types":["1b5649238876e288","ada310bf0bdb8fed","b81e9de81a481b24"]},
"312aee2f0c42aabb": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"d9edf1862e4471d6","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"31907de956375182": {"kind":"object","properties":[{"name":"compactionId","type":"4cd48f3e5108bd6e","optional":false},{"name":"kind","type":"6b23ed9ce1b397e6","optional":false},{"name":"sourceCommandId","type":"4cd48f3e5108bd6e","optional":true}],"indices":[]},
"3247e566f4340029": {"kind":"object","properties":[{"name":"form","type":"6f9e00383836275e","optional":false},{"name":"kind","type":"05205074b24d8340","optional":false},{"name":"sections","type":"c748fb42c80a1200","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"326a9bfda27dda58": {"kind":"object","properties":[{"name":"maxTokens","type":"dacf3d5f3e4ff619","optional":true},{"name":"reasoningEffort","type":"dacf3d5f3e4ff619","optional":true}],"indices":[]},
"3305a4bb6b6c29b4": {"kind":"union","types":["0341d4c3dfcd5325","07eccc9ea2f9b543","5bd310104cfe448e","7180844e1066230c","9d80129e13edfb6f","e4cac694f8b6e1d5","f05fb85e715af4ab"]},
"33341aac09312300": {"kind":"union","types":["3860b4757d512a28","487b65c37bfedb8b","71bb3254ec8f1e49","e72269f931559e90"]},
@@ -857,6 +856,7 @@
"44818000e56acb97": {"kind":"literal","value":"feedback/message-delete"},
"44c8c77aa9aa100b": {"kind":"literal","value":"subagent/catalog"},
"4513e088d43e6c68": {"kind":"object","properties":[{"name":"data","type":"ef11a3b7fa2033ae","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"2c64d4bc7264fd3f","optional":false}],"indices":[]},
"45f005e6bbb76452": {"kind":"object","properties":[{"name":"form","type":"16d0507cb94b4cfc","optional":false},{"name":"kind","type":"05205074b24d8340","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"45f2a07ea9457312": {"kind":"object","properties":[{"name":"callId","type":"4cd48f3e5108bd6e","optional":true},{"name":"id","type":"4cd48f3e5108bd6e","optional":false},{"name":"reason","type":"4cd48f3e5108bd6e","optional":true},{"name":"toolName","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"477614bca595a9e7": {"kind":"object","properties":[{"name":"targets","type":"9e2c06d8653585b3","optional":false}],"indices":[]},
"47e5d84f1a93450a": {"kind":"literal","value":"session-log-deepseek/delivery-accepted"},
@@ -892,7 +892,6 @@
"5302e76315127761": {"kind":"object","properties":[{"name":"error","type":"a81059ca06999da1","optional":true},{"name":"message","type":"4b259f7f8f0a44ad","optional":false},{"name":"meta","type":"c592ce75aab73fca","optional":true},{"name":"step","type":"0657d3ca5ac4e7bf","optional":false},{"name":"turn","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"530da6c0267813bb": {"kind":"union","types":["34d1ab5c5df37818","4f507598cf476214","e7ce49f12953583f","f789af5ab844827e"]},
"53750b9abf61efb7": {"kind":"object","properties":[{"name":"data","type":"f731ffe80810b028","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"44c8c77aa9aa100b","optional":false}],"indices":[]},
"53bb37430d38c725": {"kind":"object","properties":[{"name":"form","type":"383cf73ae4748e5b","optional":false},{"name":"kind","type":"e1ba710db2f3e4e4","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"53cf1704ae0709c7": {"kind":"object","properties":[{"name":"form","type":"fee1caf8ab6a65c1","optional":false},{"name":"kind","type":"99e7e7d7fed55ae6","optional":false}],"indices":[]},
"54f9276a1617d7c1": {"kind":"object","properties":[{"name":"step","type":"0657d3ca5ac4e7bf","optional":false},{"name":"stream","type":"84bbfdce7d2eab5b","optional":false},{"name":"turn","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"557e148d30b79ee4": {"kind":"literal","value":"agent-preset/selected"},
@@ -906,11 +905,10 @@
"5808e36c95355f0e": {"kind":"union","types":["1d76406cbb2ddadb","287211846beea1ec","693f4952fb5565da","8e31bb958e9b015e","ab7ec5f9eb2c6dfa"]},
"587bb11da730e06a": {"kind":"literal","value":"session/title-llm-request"},
"589d0d91239681f8": {"kind":"literal","value":"developer"},
"58d643f2ec961461": {"kind":"object","properties":[{"name":"headerSeq","type":"0657d3ca5ac4e7bf","optional":true},{"name":"message","type":"243d11dd918e46de","optional":false},{"name":"step","type":"0657d3ca5ac4e7bf","optional":false},{"name":"turn","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"58b122df513aeaf7": {"kind":"object","properties":[{"name":"data","type":"b782058cef83caf3","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"sourceEventSeqs","type":"5d03ba38734809bc","optional":true},{"name":"surfaceOp","type":"335e242de1fcc17b","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"de25352d2dc41963","optional":false}],"indices":[]},
"58f94390b982f8a5": {"kind":"literal","value":"image/png"},
"5abab3a27fd27366": {"kind":"literal","value":"text-delta"},
"5b232a9b9bfcc0fc": {"kind":"literal","value":"after"},
"5b25a1523822e01a": {"kind":"object","properties":[{"name":"kind","type":"e1ba710db2f3e4e4","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"5b6fb1f226ff5640": {"kind":"object","properties":[{"name":"commandId","type":"4cd48f3e5108bd6e","optional":false},{"name":"kind","type":"1ab2ef1296f157ba","optional":false},{"name":"sourceEventSeq","type":"0657d3ca5ac4e7bf","optional":true},{"name":"text","type":"4cd48f3e5108bd6e","optional":true}],"indices":[]},
"5bb69b88517f6214": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"99e7e7d7fed55ae6","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"5bc66269cfaf614c": {"kind":"object","properties":[{"name":"form","type":"16d0507cb94b4cfc","optional":false},{"name":"kind","type":"d9edf1862e4471d6","optional":false}],"indices":[]},
@@ -918,6 +916,7 @@
"5c45bf4c544a7211": {"kind":"object","properties":[{"name":"data","type":"8a9c990773f798ea","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"ae63d9d1080ed894","optional":false}],"indices":[]},
"5cb63db9fe57dc09": {"kind":"literal","value":"teardown"},
"5cdbf342b7748d15": {"kind":"object","properties":[{"name":"form","type":"16d0507cb94b4cfc","optional":false},{"name":"kind","type":"f68c335306535a00","optional":false}],"indices":[]},
"5d00abf938272f22": {"kind":"array","element":"b782058cef83caf3"},
"5d03ba38734809bc": {"kind":"array","element":"0657d3ca5ac4e7bf"},
"5d17f27a1ef9f702": {"kind":"literal","value":"tool-workflow/agent-end"},
"5d542ac7bdf13310": {"kind":"object","properties":[{"name":"childCreatedAt","type":"0657d3ca5ac4e7bf","optional":false},{"name":"childId","type":"4cd48f3e5108bd6e","optional":false},{"name":"label","type":"4cd48f3e5108bd6e","optional":true},{"name":"mode","type":"d28765f87d6b6ab4","optional":false},{"name":"version","type":"93d38436347f67c9","optional":false}],"indices":[]},
@@ -925,6 +924,7 @@
"5dd766ccd1702a11": {"kind":"object","properties":[{"name":"shadowedRange","type":"9e41386b3a0c9572","optional":false},{"name":"shadowedSeqs","type":"5d03ba38734809bc","optional":false},{"name":"shadowedTokenCount","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"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"},
"5ef58f2a1bdc576c": {"kind":"object","properties":[{"name":"data","type":"7404c6123fdaa591","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"sourceEventSeqs","type":"5d03ba38734809bc","optional":true},{"name":"surfaceOp","type":"335e242de1fcc17b","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"1379f0b72275994d","optional":false}],"indices":[]},
"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":[]},
"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":[]},
@@ -938,18 +938,15 @@
"6487b10ba7542f3c": {"kind":"object","properties":[{"name":"agentModel","type":"4cd48f3e5108bd6e","optional":true},{"name":"agentProvider","type":"4cd48f3e5108bd6e","optional":true},{"name":"agentReasoningEffort","type":"4cd48f3e5108bd6e","optional":true},{"name":"label","type":"4cd48f3e5108bd6e","optional":false},{"name":"mode","type":"e5d3828df1ec3e2a","optional":false},{"name":"persona","type":"4cd48f3e5108bd6e","optional":true},{"name":"provider","type":"4cd48f3e5108bd6e","optional":false},{"name":"toolFilter","type":"3cfc3a56502da1f8","optional":true},{"name":"version","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"6598cd6da253948d": {"kind":"object","properties":[{"name":"context","type":"50cf02d875f8a1f1","optional":false},{"name":"description","type":"4cd48f3e5108bd6e","optional":false},{"name":"error","type":"4cd48f3e5108bd6e","optional":true},{"name":"id","type":"4cd48f3e5108bd6e","optional":false},{"name":"name","type":"4cd48f3e5108bd6e","optional":false},{"name":"phase","type":"dfce5db4aa42b7eb","optional":false},{"name":"provider","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"65a8400e451e667e": {"kind":"object","properties":[{"name":"kind","type":"09655b34d7f3cf1e","optional":false}],"indices":[]},
"66b2e4f3954442bc": {"kind":"object","properties":[{"name":"form","type":"6f9e00383836275e","optional":false},{"name":"kind","type":"e1ba710db2f3e4e4","optional":false},{"name":"sections","type":"c748fb42c80a1200","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"66ba70f6f068da44": {"kind":"object","properties":[{"name":"deferLoading","type":"dacf3d5f3e4ff619","optional":true},{"name":"description","type":"4cd48f3e5108bd6e","optional":false},{"name":"name","type":"4cd48f3e5108bd6e","optional":false},{"name":"parameters","type":"0aa62ab51b36c0e6","optional":false}],"indices":[]},
"672c4aa2a9b736e3": {"kind":"object","properties":[{"name":"form","type":"fee1caf8ab6a65c1","optional":false},{"name":"kind","type":"1922cd79a70806c1","optional":false},{"name":"name","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"67d5f73ceae82f52": {"kind":"object","properties":[{"name":"maxTokens","type":"0657d3ca5ac4e7bf","optional":true},{"name":"model","type":"4cd48f3e5108bd6e","optional":false},{"name":"provider","type":"4cd48f3e5108bd6e","optional":false},{"name":"reasoningEffort","type":"4cd48f3e5108bd6e","optional":true},{"name":"stop","type":"93c33d9687613293","optional":true},{"name":"temperature","type":"0657d3ca5ac4e7bf","optional":true}],"indices":[]},
"68141cbe3994a5ff": {"kind":"literal","value":"max-tokens"},
"6889dc45ee6d68d2": {"kind":"object","properties":[{"name":"inserted","type":"a7241f5a94c73b54","optional":false},{"name":"outcome","type":"d4e4d575abeb4b72","optional":true},{"name":"removedCount","type":"0657d3ca5ac4e7bf","optional":true},{"name":"start","type":"0657d3ca5ac4e7bf","optional":false},{"name":"target","type":"96f4a9c81fc0f940","optional":false}],"indices":[]},
"688e853dc149f0d3": {"kind":"literal","value":"reasoning-chunks"},
"68f44f59e91c4139": {"kind":"literal","value":"user"},
"69081694be231d56": {"kind":"object","properties":[{"name":"data","type":"6bc8e51124d0874b","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"sourceEventSeqs","type":"5d03ba38734809bc","optional":true},{"name":"surfaceOp","type":"335e242de1fcc17b","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"1c5a58f4599bd4a9","optional":false}],"indices":[]},
"693f4952fb5565da": {"kind":"object","properties":[{"name":"failure","type":"5f2117d1856a5ab4","optional":false},{"name":"kind","type":"a2be0f0cb59f0d4a","optional":false}],"indices":[]},
"69d238a6e9b08d67": {"kind":"literal","value":"interrupted"},
"6a69bf7c4ddee5c6": {"kind":"union","types":["0203243b72fc867a","022623b9ef98ec47","02b2c23f2d94b028","062f94b162cfd50f","0ed8d1108fe7a5e1","0eeb17e1df89b1eb","11638dc58a31496f","1938c8c20f1cba7c","1e709346005826eb","1fdad624334d3548","2152caf1a71e588e","2235d957bf4b7c6c","224aa11d4d5f88c4","24ce31aa528272e5","260523b412c19ad8","28936c614bd4e7e2","290f32bfd81ff85a","297fbd8067d7815a","2aad1179f9576314","312aee2f0c42aabb","31907de956375182","3b04790e08b35241","3b4f2c9ef2c1217e","3bdb8dc6989655b0","408927267422a7b2","4991dfc415c9efeb","49dab019d00e8c26","4a9bef9f27a94252","4e97c3d85c0fc817","52c6113cb0e53f34","53bb37430d38c725","53cf1704ae0709c7","5654685d7557ec74","58015da1c1950a66","5b25a1523822e01a","5bb69b88517f6214","5bc66269cfaf614c","5cdbf342b7748d15","5d7a64ed6aac5551","6085488d223aeffd","6292bcbedaa97fea","65a8400e451e667e","66b2e4f3954442bc","672c4aa2a9b736e3","6ccb6bc423fb3952","6dacb1584f2bfbe2","6ea608bdc8a7a63d","6f22a9d02b9a1f11","6f44f32be9bcd9a8","719c51f67074f970","7554565be416b034","756b5e23a5cb2c7f","7df62978a2b7de85","7eaef7a763ba5b94","7f959241c24128b4","80677c8c8b804189","825ca23416b1ea9d","8338ee303e2bd448","854db3efdfb0cd39","85fe96bf15d5c755","8620189c8e335827","87b1a33564b9a4d6","88841202942c7683","8a046b52331959aa","8c1c4f72755a78ea","8c627d7a45fa406c","8f324cea3916c051","8fcb0b44a575e998","9529cbfe9fc86799","96bfb916a727cd44","99135d8a39379779","99f0e98184709ad1","9edc162949abf93b","9f65c43e340bba31","a15a19ef63cf5d1b","a16e567c8cd2c55c","a2066bd52f61218b","a3c6f1ea38e9a61d","aa2bf9e82b9fdeb9","aae343bc3d663c83","ada310bf0bdb8fed","ade057f4fdc387ae","b062078e899958f9","b2a5c8c008a31e3d","b3681c026a0b98e9","b4ec0af39fd52ed9","b6f94c17dd9bbd7c","b70f3e81fe11b7a5","b79641a9d25e7566","ba4c40b4381e0dcd","baccc97ec34be6c4","c5228b7a55498d84","c55827fba7018198","cb1c8959e1726f82","cda2345a9be9d139","d2cc8a54a6f1abc9","d85590a5675c6e2f","d9c462b9f62fdd3e","db06ef35b27a3842","dba54c09c6e7aafc","dd5ee8762bd8a14b","dd6cc2bb2a8f2824","deaae5cd30987d4f","edbbfff1128099fd","ee577a0cc18664c9","f230c0b583e23b25","f29d63336e8266d8","f4a66f654996c093","f56c5b59ca016131","f6329fb30c7ea801","f6605d6c57933aea","f6afe41e3926f422","f7283223aacdc39b","f97f47b0eb87905e","f99e707d67fd708b","fc2ae6962f9f8801","fcf81d3c58c13593","fe1a7acdeed4d0f5"]},
"6ab45ac76839722d": {"kind":"literal","value":"assistant/message"},
"6b23ed9ce1b397e6": {"kind":"literal","value":"compact-checkpoint"},
"6bbe793f6a93dc8d": {"kind":"object","properties":[{"name":"blockedReason","type":"84ac8c1a66ffc697","optional":true},{"name":"id","type":"4cd48f3e5108bd6e","optional":false},{"name":"maxGoalRounds","type":"0657d3ca5ac4e7bf","optional":false},{"name":"objective","type":"4cd48f3e5108bd6e","optional":false},{"name":"phase","type":"b8327af7ee576795","optional":false},{"name":"revision","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
@@ -976,15 +973,19 @@
"71bb3254ec8f1e49": {"kind":"object","properties":[{"name":"dt","type":"5d03ba38734809bc","optional":false},{"name":"index","type":"0657d3ca5ac4e7bf","optional":false},{"name":"texts","type":"93c33d9687613293","optional":false},{"name":"time0","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"688e853dc149f0d3","optional":false}],"indices":[]},
"72ec79127a9c0d02": {"kind":"array","element":"c592ce75aab73fca"},
"7382c4fc95fe8c5d": {"kind":"literal","value":"remove"},
"7404c6123fdaa591": {"kind":"object","properties":[{"name":"headerSeq","type":"0657d3ca5ac4e7bf","optional":true},{"name":"message","type":"7580e7d96dc8475f","optional":false},{"name":"step","type":"0657d3ca5ac4e7bf","optional":false},{"name":"turn","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"750a2b129d67704d": {"kind":"union","types":["5cb63db9fe57dc09","6cf082d0fb6034de","bab6865794007548"]},
"7554565be416b034": {"kind":"object","properties":[{"name":"form","type":"383cf73ae4748e5b","optional":false},{"name":"kind","type":"2f3f201c8846e19c","optional":false}],"indices":[]},
"756b5e23a5cb2c7f": {"kind":"object","properties":[{"name":"form","type":"383cf73ae4748e5b","optional":false},{"name":"kind","type":"8067b0d232c350f1","optional":false}],"indices":[]},
"7580e7d96dc8475f": {"kind":"object","properties":[{"name":"content","type":"b52f215a6cd69105","optional":false},{"name":"id","type":"4cd48f3e5108bd6e","optional":false},{"name":"role","type":"589d0d91239681f8","optional":false},{"name":"source","type":"7a5b68bd1a5118c8","optional":false,"compatibility":{"version":1,"policy":"session-source-attribution","binding":"session.developer-message.source","discriminator":"kind","unknownKinds":"preserve","attributionKinds":["action-cards","tmux-context","user-question-reply","working-directory"]}}],"indices":[]},
"7624ca28c61ca0ea": {"kind":"literal","value":"create"},
"763c8a20af487263": {"kind":"object","properties":[{"name":"data","type":"7d226b9fd95b4ba2","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"237c004c73b6b288","optional":false}],"indices":[]},
"76632533f67879dc": {"kind":"literal","value":"delegation"},
"78a9be340090b735": {"kind":"literal","value":"tmux-context"},
"78b9204976ab9faa": {"kind":"array","element":"cda79b839d8cc0c7"},
"79650cfa10aa3c52": {"kind":"object","properties":[{"name":"error","type":"5f2117d1856a5ab4","optional":false},{"name":"kind","type":"a2be0f0cb59f0d4a","optional":false}],"indices":[]},
"79ddc907312f97cf": {"kind":"object","properties":[{"name":"todos","type":"4b7ddaf3710b88ff","optional":false}],"indices":[]},
"7a5b68bd1a5118c8": {"kind":"union","types":["0203243b72fc867a","022623b9ef98ec47","02b2c23f2d94b028","0ed8d1108fe7a5e1","0eeb17e1df89b1eb","11638dc58a31496f","1938c8c20f1cba7c","1e709346005826eb","1fdad624334d3548","2152caf1a71e588e","2235d957bf4b7c6c","224aa11d4d5f88c4","24ce31aa528272e5","260523b412c19ad8","28936c614bd4e7e2","290f32bfd81ff85a","297fbd8067d7815a","2aad1179f9576314","312aee2f0c42aabb","31907de956375182","3247e566f4340029","3b04790e08b35241","3b4f2c9ef2c1217e","3bdb8dc6989655b0","408927267422a7b2","45f005e6bbb76452","4991dfc415c9efeb","49dab019d00e8c26","4a9bef9f27a94252","4e97c3d85c0fc817","52c6113cb0e53f34","53cf1704ae0709c7","5654685d7557ec74","58015da1c1950a66","5bb69b88517f6214","5bc66269cfaf614c","5cdbf342b7748d15","5d7a64ed6aac5551","6085488d223aeffd","6292bcbedaa97fea","65a8400e451e667e","672c4aa2a9b736e3","6ccb6bc423fb3952","6dacb1584f2bfbe2","6ea608bdc8a7a63d","6f22a9d02b9a1f11","6f44f32be9bcd9a8","719c51f67074f970","7554565be416b034","756b5e23a5cb2c7f","7df62978a2b7de85","7eaef7a763ba5b94","7f959241c24128b4","80677c8c8b804189","825ca23416b1ea9d","8338ee303e2bd448","854db3efdfb0cd39","85fe96bf15d5c755","8620189c8e335827","87b1a33564b9a4d6","88841202942c7683","8a046b52331959aa","8c1c4f72755a78ea","8c627d7a45fa406c","8f324cea3916c051","8fcb0b44a575e998","96bfb916a727cd44","99135d8a39379779","99f0e98184709ad1","9edc162949abf93b","9f65c43e340bba31","a15a19ef63cf5d1b","a16e567c8cd2c55c","a2066bd52f61218b","a3c6f1ea38e9a61d","aa2bf9e82b9fdeb9","aae343bc3d663c83","ada310bf0bdb8fed","ade057f4fdc387ae","b062078e899958f9","b2a5c8c008a31e3d","b3681c026a0b98e9","b4ec0af39fd52ed9","b613f83572fe2fbf","b6f94c17dd9bbd7c","b70f3e81fe11b7a5","b79641a9d25e7566","ba2a1a8f194b1bb2","ba4c40b4381e0dcd","baccc97ec34be6c4","c5228b7a55498d84","c55827fba7018198","cb1c8959e1726f82","cda2345a9be9d139","d85590a5675c6e2f","d9c462b9f62fdd3e","db06ef35b27a3842","dba54c09c6e7aafc","dd00cdccd0ba487b","dd5ee8762bd8a14b","dd6cc2bb2a8f2824","dde0cdf9d426768b","deaae5cd30987d4f","e7f4cbb3a57f4cbd","edbbfff1128099fd","ee577a0cc18664c9","f230c0b583e23b25","f29d63336e8266d8","f4a66f654996c093","f56c5b59ca016131","f6329fb30c7ea801","f6605d6c57933aea","f6afe41e3926f422","f7283223aacdc39b","f97f47b0eb87905e","fc2ae6962f9f8801","fcf81d3c58c13593","fe1a7acdeed4d0f5"]},
"7a651f3b672c52fb": {"kind":"literal","value":"session/title"},
"7af85bf70d4eafce": {"kind":"object","properties":[{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"surfaceOp","type":"335e242de1fcc17b","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"7b1ce60193fa8b69": {"kind":"literal","value":"working-directory"},
@@ -1016,7 +1017,6 @@
"84bbfdce7d2eab5b": {"kind":"array","element":"33341aac09312300"},
"854db3efdfb0cd39": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"bb94f3217aa56c88","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"85d6d96ff8842974": {"kind":"literal","value":"answered"},
"85d754f8957fcbbf": {"kind":"object","properties":[{"name":"data","type":"58d643f2ec961461","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"sourceEventSeqs","type":"5d03ba38734809bc","optional":true},{"name":"surfaceOp","type":"335e242de1fcc17b","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"1379f0b72275994d","optional":false}],"indices":[]},
"85f9b505b7bdff1f": {"kind":"literal","value":"tool-addition"},
"85fe96bf15d5c755": {"kind":"object","properties":[{"name":"form","type":"aec150797b655c5f","optional":false},{"name":"kind","type":"8067b0d232c350f1","optional":false}],"indices":[]},
"8620189c8e335827": {"kind":"object","properties":[{"name":"form","type":"383cf73ae4748e5b","optional":false},{"name":"kind","type":"1f1385dbc3e875c0","optional":false}],"indices":[]},
@@ -1043,7 +1043,6 @@
"8f6d609794bf5afc": {"kind":"tuple","elements":[{"type":"4e88776858652856","optional":false,"rest":false}]},
"8fcb0b44a575e998": {"kind":"object","properties":[{"name":"kind","type":"a720757f704a2512","optional":false}],"indices":[]},
"904bf499d98be4a3": {"kind":"union","types":["7382c4fc95fe8c5d","b765ee31033cea46","f6cb462f808309e3"]},
"929c90ad641192d1": {"kind":"object","properties":[{"name":"maxTokens","type":"0657d3ca5ac4e7bf","optional":false},{"name":"messageSeqs","type":"5d03ba38734809bc","optional":false},{"name":"messages","type":"cf58fe6f97f6f8fc","optional":false},{"name":"reasoningEffort","type":"4cd48f3e5108bd6e","optional":true},{"name":"route","type":"07e1a58c58b593f5","optional":false},{"name":"system","type":"4cd48f3e5108bd6e","optional":false},{"name":"titleProvider","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"930c1cd289def119": {"kind":"union","types":["2142e391b9ccb60d","2c4c21f19f426a58","811229eedcec5797","fab35c4520883c0d"]},
"935c8d486292b13c": {"kind":"literal","value":"web_search"},
"938f7c7357bc403e": {"kind":"primitive","type":"null"},
@@ -1052,7 +1051,6 @@
"93d38436347f67c9": {"kind":"literal","value":0},
"94c56aeb1564ad73": {"kind":"literal","value":"in_progress"},
"95080295115fbd83": {"kind":"object","properties":[{"name":"index","type":"0657d3ca5ac4e7bf","optional":false},{"name":"text","type":"4cd48f3e5108bd6e","optional":false},{"name":"type","type":"5abab3a27fd27366","optional":false}],"indices":[]},
"9529cbfe9fc86799": {"kind":"object","properties":[{"name":"form","type":"aec150797b655c5f","optional":false},{"name":"kind","type":"e1ba710db2f3e4e4","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"95a3ffccbf3c8afc": {"kind":"literal","value":"owner"},
"95c0e88fcf0bafb2": {"kind":"literal","value":"assistant"},
"9645cf93769a6dfb": {"kind":"literal","value":"user-question-reply"},
@@ -1071,7 +1069,6 @@
"9acbe713f3f64192": {"kind":"literal","value":"image/offload"},
"9b4fd974c124c837": {"kind":"literal","value":"tool-call-delta"},
"9c001ecb5e1d3c38": {"kind":"object","properties":[{"name":"max_tokens","type":"0657d3ca5ac4e7bf","optional":false},{"name":"messages","type":"b993441f8ce7d27b","optional":false},{"name":"model","type":"4cd48f3e5108bd6e","optional":false},{"name":"thinking","type":"37ff65426bcf130f","optional":true},{"name":"tools","type":"4aed17ec726b5397","optional":false}],"indices":[]},
"9d2c7e74894fb4db": {"kind":"object","properties":[{"name":"data","type":"929c90ad641192d1","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"587bb11da730e06a","optional":false}],"indices":[]},
"9d80129e13edfb6f": {"kind":"literal","value":"other"},
"9e07693fd7cd9bab": {"kind":"literal","value":"ask"},
"9e2c06d8653585b3": {"kind":"array","element":"1cde1bedde79c5e8"},
@@ -1091,13 +1088,13 @@
"a2be0f0cb59f0d4a": {"kind":"literal","value":"error"},
"a3a259a1aa5401af": {"kind":"literal","value":"hook/result"},
"a3c6f1ea38e9a61d": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"9ac52f0f84fec2eb","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"a3e299483348f27a": {"kind":"object","properties":[{"name":"maxTokens","type":"0657d3ca5ac4e7bf","optional":false},{"name":"messageSeqs","type":"5d03ba38734809bc","optional":false},{"name":"messages","type":"78b9204976ab9faa","optional":false},{"name":"reasoningEffort","type":"4cd48f3e5108bd6e","optional":true},{"name":"route","type":"07e1a58c58b593f5","optional":false},{"name":"system","type":"4cd48f3e5108bd6e","optional":false},{"name":"titleProvider","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"a3edd1efd1fef21b": {"kind":"literal","value":"workspace-write"},
"a40d12070f6f4a12": {"kind":"object","properties":[{"name":"task","type":"51edec100659da3a","optional":false},{"name":"teamId","type":"4cd48f3e5108bd6e","optional":false},{"name":"version","type":"a0f906856fc06f1c","optional":false}],"indices":[]},
"a6567ccb2e530606": {"kind":"object","properties":[{"name":"data","type":"0d47a8f3d847243c","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"0a8a062bc9c3c0d9","optional":false}],"indices":[]},
"a6b41f5bede8094d": {"kind":"union","types":["15495614ccfa9cbd","aff60ef947c18b01"]},
"a6da9ad5d42ae83a": {"kind":"object","properties":[{"name":"name","type":"4cd48f3e5108bd6e","optional":false},{"name":"runId","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"a720757f704a2512": {"kind":"literal","value":"tool-registry"},
"a7241f5a94c73b54": {"kind":"array","element":"c1d5de6f6d47227a"},
"a7cf43ce7c2a4c03": {"kind":"object","properties":[{"name":"data","type":"20a57544bbf204da","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"f634871d1e18b1eb","optional":false}],"indices":[]},
"a81059ca06999da1": {"kind":"object","properties":[{"name":"code","type":"4cd48f3e5108bd6e","optional":false},{"name":"name","type":"4cd48f3e5108bd6e","optional":false},{"name":"reason","type":"4cd48f3e5108bd6e","optional":true}],"indices":[]},
"a853902cfab417b8": {"kind":"object","properties":[{"name":"args","type":"4cd48f3e5108bd6e","optional":true},{"name":"commandId","type":"4cd48f3e5108bd6e","optional":false},{"name":"name","type":"4cd48f3e5108bd6e","optional":false},{"name":"source","type":"ada310bf0bdb8fed","optional":false}],"indices":[]},
@@ -1136,8 +1133,10 @@
"b222069eea2d7680": {"kind":"object","properties":[{"name":"data","type":"477614bca595a9e7","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"9acbe713f3f64192","optional":false}],"indices":[]},
"b2245a906e13aa94": {"kind":"literal","value":"forked"},
"b2a5c8c008a31e3d": {"kind":"object","properties":[{"name":"form","type":"383cf73ae4748e5b","optional":false},{"name":"kind","type":"23af3759678a30de","optional":false}],"indices":[]},
"b2a948a5340a9341": {"kind":"object","properties":[{"name":"inserted","type":"5d00abf938272f22","optional":false},{"name":"outcome","type":"d4e4d575abeb4b72","optional":true},{"name":"removedCount","type":"0657d3ca5ac4e7bf","optional":true},{"name":"start","type":"0657d3ca5ac4e7bf","optional":false},{"name":"target","type":"96f4a9c81fc0f940","optional":false}],"indices":[]},
"b2d2a01e51341a3b": {"kind":"union","types":["1ebc6f9ff3aa9e3a","234142ee4f996f38","94c56aeb1564ad73","e7e8f1318170b828"]},
"b3681c026a0b98e9": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"78a9be340090b735","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"b36fd842cd004b53": {"kind":"object","properties":[{"name":"data","type":"b2a948a5340a9341","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"829a2fb3be6efd4b","optional":false}],"indices":[]},
"b38f206d59bad891": {"kind":"literal","value":"disposed"},
"b4ec0af39fd52ed9": {"kind":"object","properties":[{"name":"kind","type":"bb94f3217aa56c88","optional":false}],"indices":[]},
"b5086d249e8502e9": {"kind":"object","properties":[{"name":"data","type":"aa7bc2817014ca6c","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"6cda0d6d3b4336d8","optional":false}],"indices":[]},
@@ -1146,12 +1145,14 @@
"b56f6a885da3dc39": {"kind":"object","properties":[{"name":"messageSeqs","type":"5d03ba38734809bc","optional":false},{"name":"source","type":"30d5a537b2966857","optional":false},{"name":"title","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"b57a2889408de36e": {"kind":"literal","value":"failed"},
"b57ae1b37e52bee0": {"kind":"literal","value":"team/task"},
"b613f83572fe2fbf": {"kind":"object","properties":[{"name":"form","type":"383cf73ae4748e5b","optional":false},{"name":"kind","type":"05205074b24d8340","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"b63b089a00b3b935": {"kind":"object","properties":[{"name":"id","type":"4cd48f3e5108bd6e","optional":false},{"name":"kind","type":"17aae616ef020b8b","optional":false},{"name":"prompt","type":"4cd48f3e5108bd6e","optional":false},{"name":"scheduledAt","type":"4cd48f3e5108bd6e","optional":false},{"name":"title","type":"4cd48f3e5108bd6e","optional":true}],"indices":[]},
"b6896938660a1dfe": {"kind":"object","properties":[{"name":"childCreatedAt","type":"0657d3ca5ac4e7bf","optional":false},{"name":"childId","type":"4cd48f3e5108bd6e","optional":false},{"name":"label","type":"4cd48f3e5108bd6e","optional":true},{"name":"mode","type":"d28765f87d6b6ab4","optional":false},{"name":"version","type":"f88f1b7b6bb733f6","optional":false}],"indices":[]},
"b6ef9c6210be8350": {"kind":"object","properties":[{"name":"kind","type":"1ebc6f9ff3aa9e3a","optional":false}],"indices":[]},
"b6f94c17dd9bbd7c": {"kind":"object","properties":[{"name":"form","type":"fee1caf8ab6a65c1","optional":false},{"name":"kind","type":"bb94f3217aa56c88","optional":false}],"indices":[]},
"b70f3e81fe11b7a5": {"kind":"object","properties":[{"name":"form","type":"fee1caf8ab6a65c1","optional":false},{"name":"kind","type":"a9059a81430b3207","optional":false}],"indices":[]},
"b765ee31033cea46": {"kind":"literal","value":"set"},
"b782058cef83caf3": {"kind":"object","properties":[{"name":"content","type":"b52f215a6cd69105","optional":false},{"name":"id","type":"4cd48f3e5108bd6e","optional":false},{"name":"role","type":"68f44f59e91c4139","optional":false},{"name":"source","type":"7a5b68bd1a5118c8","optional":false,"compatibility":{"version":1,"policy":"session-source-attribution","binding":"session.user-message.source","discriminator":"kind","unknownKinds":"preserve","attributionKinds":["action-cards","tmux-context","user-question-reply","working-directory"]}}],"indices":[]},
"b79641a9d25e7566": {"kind":"object","properties":[{"name":"kind","type":"8067b0d232c350f1","optional":false}],"indices":[]},
"b79ada42962cad01": {"kind":"object","properties":[{"name":"data","type":"86d1d0e9cfebb240","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"5ebce1317eacd2c1","optional":false}],"indices":[]},
"b815d7b91cdd9fc6": {"kind":"literal","value":"goal"},
@@ -1161,6 +1162,7 @@
"b9305f0ea75ccd6a": {"kind":"literal","value":"hook/invoked"},
"b978cff734e62143": {"kind":"object","properties":[{"name":"data","type":"79ddc907312f97cf","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"af0750d32d97d47b","optional":false}],"indices":[]},
"b993441f8ce7d27b": {"kind":"tuple","elements":[{"type":"9a2a9029f8d7ede0","optional":false,"rest":false}]},
"ba2a1a8f194b1bb2": {"kind":"object","properties":[{"name":"form","type":"fee1caf8ab6a65c1","optional":false},{"name":"kind","type":"05205074b24d8340","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"ba4c40b4381e0dcd": {"kind":"object","properties":[{"name":"form","type":"6f9e00383836275e","optional":false},{"name":"kind","type":"23af3759678a30de","optional":false},{"name":"sections","type":"c748fb42c80a1200","optional":false}],"indices":[]},
"ba77b58995e36f14": {"kind":"array","element":"07e1a58c58b593f5"},
"bab6865794007548": {"kind":"literal","value":"kill"},
@@ -1174,7 +1176,6 @@
"bf16d2e98a7f1389": {"kind":"literal","value":"subagent-settled"},
"c0ea97bc89dfc46f": {"kind":"object","properties":[{"name":"outcome","type":"c2deb7c9183735d4","optional":false},{"name":"runId","type":"4cd48f3e5108bd6e","optional":false},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"c170da8ab7c37635": {"kind":"union","types":["374fdd68aee5ff84","cdee10e87dbed844"]},
"c1d5de6f6d47227a": {"kind":"object","properties":[{"name":"content","type":"b52f215a6cd69105","optional":false},{"name":"id","type":"4cd48f3e5108bd6e","optional":false},{"name":"role","type":"68f44f59e91c4139","optional":false},{"name":"source","type":"6a69bf7c4ddee5c6","optional":false,"compatibility":{"version":1,"policy":"session-source-attribution","binding":"session.user-message.source","discriminator":"kind","unknownKinds":"preserve","attributionKinds":["personalized-pages","tmux-context","user-question-reply","working-directory"]}}],"indices":[]},
"c1f0f17b6493b85d": {"kind":"object","properties":[{"name":"arguments","type":"4cd48f3e5108bd6e","optional":false},{"name":"id","type":"4cd48f3e5108bd6e","optional":false},{"name":"name","type":"4cd48f3e5108bd6e","optional":false},{"name":"type","type":"1f0133217eeeffd8","optional":false}],"indices":[]},
"c1f9e0405de6d18c": {"kind":"object","properties":[{"name":"data","type":"a6da9ad5d42ae83a","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"cdca80b8dad24d4e","optional":false}],"indices":[]},
"c219efbdfd53b836": {"kind":"literal","value":"step/end"},
@@ -1187,7 +1188,6 @@
"c589e938cc0e4989": {"kind":"literal","value":"tool/call"},
"c592ce75aab73fca": {"kind":"union","types":["0657d3ca5ac4e7bf","4cd48f3e5108bd6e","529e0ccd0e34079a","72ec79127a9c0d02","938f7c7357bc403e","aa93010d0e521ad7"]},
"c748fb42c80a1200": {"kind":"array","element":"86e1e384495ee09a"},
"c81b3891a886d2e4": {"kind":"object","properties":[{"name":"data","type":"c1d5de6f6d47227a","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"sourceEventSeqs","type":"5d03ba38734809bc","optional":true},{"name":"surfaceOp","type":"335e242de1fcc17b","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"de25352d2dc41963","optional":false}],"indices":[]},
"c8e6f48878cc2a2f": {"kind":"literal","value":"active"},
"c99e20441bf15341": {"kind":"literal","value":"feedback/record"},
"ca085dba2c877fec": {"kind":"literal","value":"sandbox/mode"},
@@ -1197,15 +1197,13 @@
"cbca49bde16b656d": {"kind":"literal","value":"block-start"},
"cd186c309e2bef30": {"kind":"literal","value":"approval/asked"},
"cda2345a9be9d139": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"24b10f7cdae64928","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"cda79b839d8cc0c7": {"kind":"union","types":["09f3f8dc417f2782","4b259f7f8f0a44ad","7580e7d96dc8475f","b782058cef83caf3","fa87537f4a9c1e25"]},
"cdca80b8dad24d4e": {"kind":"literal","value":"tool-workflow/run-start"},
"cdee10e87dbed844": {"kind":"object","properties":[{"name":"delayMs","type":"0657d3ca5ac4e7bf","optional":false},{"name":"failure","type":"5f2117d1856a5ab4","optional":false},{"name":"maxRetries","type":"0657d3ca5ac4e7bf","optional":false},{"name":"mode","type":"3bc287e765d58dc3","optional":false},{"name":"policyKey","type":"4cd48f3e5108bd6e","optional":false},{"name":"provider","type":"4cd48f3e5108bd6e","optional":false},{"name":"retry","type":"0657d3ca5ac4e7bf","optional":false},{"name":"retryId","type":"4cd48f3e5108bd6e","optional":false},{"name":"step","type":"0657d3ca5ac4e7bf","optional":false},{"name":"turn","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"cea2baa72d20cb86": {"kind":"union","types":["09f3f8dc417f2782","243d11dd918e46de","4b259f7f8f0a44ad","c1d5de6f6d47227a","fa87537f4a9c1e25"]},
"cef171adf021a186": {"kind":"object","properties":[{"name":"arguments","type":"bbc5696e3f13c758","optional":false},{"name":"content","type":"b52f215a6cd69105","optional":false},{"name":"error","type":"a81059ca06999da1","optional":true},{"name":"isError","type":"aa93010d0e521ad7","optional":false},{"name":"meta","type":"c592ce75aab73fca","optional":true},{"name":"name","type":"4cd48f3e5108bd6e","optional":false},{"name":"parentCallId","type":"4cd48f3e5108bd6e","optional":false},{"name":"rootCallId","type":"4cd48f3e5108bd6e","optional":false},{"name":"subCallId","type":"4cd48f3e5108bd6e","optional":false}],"indices":[]},
"cf58fe6f97f6f8fc": {"kind":"array","element":"cea2baa72d20cb86"},
"cffcdc19881ab61e": {"kind":"object","properties":[{"name":"cleared","type":"0b6d718c693fdf7f","optional":false},{"name":"clearedAt","type":"0657d3ca5ac4e7bf","optional":false},{"name":"kind","type":"237c004c73b6b288","optional":false},{"name":"operation","type":"e7e154d47d5fbc53","optional":false},{"name":"version","type":"f88f1b7b6bb733f6","optional":false}],"indices":[]},
"d0fbb0ca1bbba059": {"kind":"literal","value":"delete"},
"d28765f87d6b6ab4": {"kind":"literal","value":"one-shot"},
"d2cc8a54a6f1abc9": {"kind":"object","properties":[{"name":"form","type":"16d0507cb94b4cfc","optional":false},{"name":"kind","type":"e1ba710db2f3e4e4","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"d4b739491689cc6b": {"kind":"object","properties":[{"name":"block","type":"8064c03c87c357fd","optional":false},{"name":"index","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"eefbea819caeeea9","optional":false}],"indices":[]},
"d4c799e3d51cae10": {"kind":"literal","value":"working-directory/change"},
"d4e4d575abeb4b72": {"kind":"literal","value":"canceled"},
@@ -1224,9 +1222,11 @@
"db874d463b0fdec7": {"kind":"object","properties":[{"name":"data","type":"3e4e7683b0192c9f","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"e2d0367e5716bc18","optional":false}],"indices":[]},
"dba54c09c6e7aafc": {"kind":"object","properties":[{"name":"kind","type":"4edec1b770e8ec4c","optional":false}],"indices":[]},
"dbdafceb9a900183": {"kind":"literal","value":"hook"},
"dd00cdccd0ba487b": {"kind":"object","properties":[{"name":"form","type":"aec150797b655c5f","optional":false},{"name":"kind","type":"05205074b24d8340","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"dd2780e7e0768433": {"kind":"literal","value":"fresh"},
"dd5ee8762bd8a14b": {"kind":"object","properties":[{"name":"form","type":"aec150797b655c5f","optional":false},{"name":"kind","type":"99e7e7d7fed55ae6","optional":false}],"indices":[]},
"dd6cc2bb2a8f2824": {"kind":"object","properties":[{"name":"form","type":"383cf73ae4748e5b","optional":false},{"name":"kind","type":"99e7e7d7fed55ae6","optional":false}],"indices":[]},
"dde0cdf9d426768b": {"kind":"object","properties":[{"name":"kind","type":"05205074b24d8340","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"de25352d2dc41963": {"kind":"literal","value":"user/message"},
"de30b1fa12c75f81": {"kind":"literal","value":"image/gif"},
"deaae5cd30987d4f": {"kind":"object","properties":[{"name":"form","type":"16d0507cb94b4cfc","optional":false},{"name":"kind","type":"0fe52387f6505270","optional":false}],"indices":[]},
@@ -1235,7 +1235,6 @@
"df843efd87c78cf8": {"kind":"array","element":"4f91f187baeabef5"},
"dfce5db4aa42b7eb": {"kind":"union","types":["871bfd6f7bb91061","b57a2889408de36e","c8e6f48878cc2a2f"]},
"e0a787e6ec76c7c9": {"kind":"object","properties":[{"name":"data","type":"ef11a3b7fa2033ae","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"c219efbdfd53b836","optional":false}],"indices":[]},
"e1ba710db2f3e4e4": {"kind":"literal","value":"personalized-pages"},
"e2ad8f5bcd813f26": {"kind":"object","properties":[{"name":"childCreatedAt","type":"0657d3ca5ac4e7bf","optional":false},{"name":"childId","type":"4cd48f3e5108bd6e","optional":false},{"name":"label","type":"4cd48f3e5108bd6e","optional":false},{"name":"mode","type":"e5d3828df1ec3e2a","optional":false},{"name":"version","type":"f88f1b7b6bb733f6","optional":false}],"indices":[]},
"e2d0367e5716bc18": {"kind":"literal","value":"compaction/start"},
"e2f9a41e0989f54e": {"kind":"object","properties":[{"name":"data","type":"9947aa5938fe19a8","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"ef4f00923b9edbae","optional":false}],"indices":[]},
@@ -1257,6 +1256,7 @@
"e7ce49f12953583f": {"kind":"literal","value":"initial"},
"e7e154d47d5fbc53": {"kind":"literal","value":"clear"},
"e7e8f1318170b828": {"kind":"literal","value":"deleted"},
"e7f4cbb3a57f4cbd": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"05205074b24d8340","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"e8de0f457fed5b9f": {"kind":"literal","value":"notice"},
"e95f957154b2b1b5": {"kind":"literal","value":"assistant/attempt"},
"ea08ec1df0c33108": {"kind":"object","properties":[{"name":"message","type":"2eafefdc6f79a492","optional":false},{"name":"teamId","type":"4cd48f3e5108bd6e","optional":false},{"name":"version","type":"a0f906856fc06f1c","optional":false}],"indices":[]},
@@ -1272,6 +1272,7 @@
"ef11a3b7fa2033ae": {"kind":"object","properties":[{"name":"step","type":"0657d3ca5ac4e7bf","optional":false},{"name":"turn","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"ef226a90ddac6cd8": {"kind":"literal","value":"killed"},
"ef4f00923b9edbae": {"kind":"literal","value":"compaction/summary"},
"efa1a091017ce533": {"kind":"object","properties":[{"name":"data","type":"a3e299483348f27a","optional":false},{"name":"ignorable","type":"dacf3d5f3e4ff619","optional":true},{"name":"seq","type":"0657d3ca5ac4e7bf","optional":false},{"name":"time","type":"0657d3ca5ac4e7bf","optional":false},{"name":"type","type":"587bb11da730e06a","optional":false}],"indices":[]},
"f05fb85e715af4ab": {"kind":"literal","value":"task-result"},
"f09e5e7acf5ff5cc": {"kind":"object","properties":[{"name":"model","type":"4cd48f3e5108bd6e","optional":false},{"name":"provider","type":"4cd48f3e5108bd6e","optional":false},{"name":"reasoningEffort","type":"4cd48f3e5108bd6e","optional":true}],"indices":[]},
"f1687f982fa3d41e": {"kind":"union","types":["023a355b2be0d688","0a30c3be336cdd4f","56b7c047694875a8","79650cfa10aa3c52","ab7ec5f9eb2c6dfa","b6ef9c6210be8350","ec8b5ff7c77ca689"]},
@@ -1297,7 +1298,6 @@
"f88f1b7b6bb733f6": {"kind":"literal","value":1},
"f90eb4ab2d3897bc": {"kind":"object","properties":[{"name":"turn","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"f97f47b0eb87905e": {"kind":"object","properties":[{"name":"form","type":"16d0507cb94b4cfc","optional":false},{"name":"kind","type":"78a9be340090b735","optional":false}],"indices":[]},
"f99e707d67fd708b": {"kind":"object","properties":[{"name":"form","type":"e8de0f457fed5b9f","optional":false},{"name":"kind","type":"e1ba710db2f3e4e4","optional":false},{"name":"summary","type":"4cd48f3e5108bd6e","optional":false},{"name":"through","type":"0657d3ca5ac4e7bf","optional":false}],"indices":[]},
"f9cfc89e8fe085b4": {"kind":"literal","value":"text-chunks"},
"fa87537f4a9c1e25": {"kind":"object","properties":[{"name":"content","type":"b52f215a6cd69105","optional":false},{"name":"id","type":"4cd48f3e5108bd6e","optional":false},{"name":"role","type":"95c0e88fcf0bafb2","optional":false},{"name":"source","type":"719c51f67074f970","optional":false}],"indices":[]},
"fab2bb09bc5e3b9d": {"kind":"union","types":["12a0cfa619ac4a5f","18fce9540bb20897","a3edd1efd1fef21b"]},
+45 -22
View File
@@ -69,6 +69,51 @@ interface PendingModule {
Generated from source by `scripts/gen-cordis-catalog.ts` (verified fresh by `pnpm run verify-cordis-catalog` in doc-sync; regenerate with `pnpm run gen-cordis-catalog`) — the language sides differ only in locale-specific paired document paths. Signature blocks use a `ts cordis-catalog` fence and keep the original source JSDoc; dispatch modes are defined in the [primer](../cordis-primer.md#dispatch-modes), and the framework-inherited `ctx` API lives in [cordis-api/inherited.md](../cordis-api/inherited.md).
<a id="ctxactioncards--actioncards"></a>
### `ctx.actionCards` — `ActionCards`
Card tool, kind registry, Session projection, user actions and status notices.
```ts cordis-catalog
/**
* Register one action kind for the caller's lifetime.
* @param kind - the kind's skill, details schema, verbs and handler.
* @returns disposer removing the kind; actions on its cards are then unavailable.
* @throws when another kind already registered the same action.
*/
register<Details>(kind: ActionCardKind<Details>): () => void
/**
* Record a card decision in the Session log; the next model request reports it.
* @param agent - agent whose Session owns the card.
* @param decision - the card's new state.
*/
record(agent: Agent, decision: ActionCardDecision): void
/**
* Read the cards of one Session.
* @param session - a Session whose projections are prepared.
* @returns proposals and decisions by call id.
*/
view(session: Session): ActionCardView
/**
* Apply a user action to a logged card. Shared checks run first; `dismiss` is recorded here and every other
* verb goes to the card's kind. Concurrent actions on one card share one operation.
* @param agent - live root resolved from the displayed Session.
* @param callId - the card's `propose_action` call id.
* @param verb - `dismiss` or one of the kind's verbs.
* @param payload - kind-defined fields such as a chosen location.
* @returns acceptance of background work, the decision in effect, or a refusal.
*/
@Remote act(agent: Agent, callId: ToolCallId, verb: string, payload?: Record<string, JsonValue>): Promise<ActionCardResult>
```
Types: [Agent](core.md) · [Session](session.md) · [ToolCallId](core.md)
Source: [`packages/experimental/action-cards/src/index.ts`](../../packages/experimental/action-cards/src/index.ts)
<a id="ctxconfigeditor--configeditor"></a>
### `ctx.configEditor` — `ConfigEditor`
@@ -96,28 +141,6 @@ async edit( entry: Entry, change: (current: Record<string, unknown>, inherited:
Source: [`packages/boot/config-editor/src/index.ts`](../../packages/boot/config-editor/src/index.ts)
<a id="ctxcreationrecommendations--creationrecommendations"></a>
### `ctx.creationRecommendations` — `CreationRecommendations`
Internal Remote and effect owner assembled by the personalized-pages plugin.
```ts cordis-catalog
/** Apply a human decision to a logged proposal.
* @param agent - Live root resolved from the displayed session.
* @param callId - Logged proposal id.
* @param action - Create, cancel generation, dismiss, confirm retention, remove the owned bundle, or reinstall its retained profile copy.
* @param slot - Location chosen by the user when creating or dismissing.
* @param customLocation - Omitted: use slot. Present: Creator resolves this human-authored placement instead.
* @returns acceptance for background work, a durable receipt, or a refusal.
*/
@Remote act(agent: Agent, callId: ToolCallId, action: 'create' | 'dismiss' | 'keep' | 'undo' | 'cancel' | 'restore', slot: CreationSlot, customLocation?: string): Promise<CreationActionResult>
```
Types: [Agent](core.md) · [ToolCallId](core.md)
Source: [`packages/experimental/creation-recommendations/src/index.ts`](../../packages/experimental/creation-recommendations/src/index.ts)
<a id="ctxheadlessstartup--headlessstartupvalues"></a>
### `ctx.headlessStartup` — `HeadlessStartupValues`
+45 -22
View File
@@ -69,6 +69,51 @@ interface PendingModule {
Generated from source by `scripts/gen-cordis-catalog.ts` (verified fresh by `pnpm run verify-cordis-catalog` in doc-sync; regenerate with `pnpm run gen-cordis-catalog`) — the language sides differ only in locale-specific paired document paths. Signature blocks use a `ts cordis-catalog` fence and keep the original source JSDoc; dispatch modes are defined in the [primer](../cordis-primer.zh.md#dispatch-modes), and the framework-inherited `ctx` API lives in [cordis-api/inherited.md](../cordis-api/inherited.md).
<a id="ctxactioncards--actioncards"></a>
### `ctx.actionCards` — `ActionCards`
Card tool, kind registry, Session projection, user actions and status notices.
```ts cordis-catalog
/**
* Register one action kind for the caller's lifetime.
* @param kind - the kind's skill, details schema, verbs and handler.
* @returns disposer removing the kind; actions on its cards are then unavailable.
* @throws when another kind already registered the same action.
*/
register<Details>(kind: ActionCardKind<Details>): () => void
/**
* Record a card decision in the Session log; the next model request reports it.
* @param agent - agent whose Session owns the card.
* @param decision - the card's new state.
*/
record(agent: Agent, decision: ActionCardDecision): void
/**
* Read the cards of one Session.
* @param session - a Session whose projections are prepared.
* @returns proposals and decisions by call id.
*/
view(session: Session): ActionCardView
/**
* Apply a user action to a logged card. Shared checks run first; `dismiss` is recorded here and every other
* verb goes to the card's kind. Concurrent actions on one card share one operation.
* @param agent - live root resolved from the displayed Session.
* @param callId - the card's `propose_action` call id.
* @param verb - `dismiss` or one of the kind's verbs.
* @param payload - kind-defined fields such as a chosen location.
* @returns acceptance of background work, the decision in effect, or a refusal.
*/
@Remote act(agent: Agent, callId: ToolCallId, verb: string, payload?: Record<string, JsonValue>): Promise<ActionCardResult>
```
Types: [Agent](core.zh.md) · [Session](session.zh.md) · [ToolCallId](core.zh.md)
Source: [`packages/experimental/action-cards/src/index.ts`](../../packages/experimental/action-cards/src/index.ts)
<a id="ctxconfigeditor--configeditor"></a>
### `ctx.configEditor` — `ConfigEditor`
@@ -96,28 +141,6 @@ async edit( entry: Entry, change: (current: Record<string, unknown>, inherited:
Source: [`packages/boot/config-editor/src/index.ts`](../../packages/boot/config-editor/src/index.ts)
<a id="ctxcreationrecommendations--creationrecommendations"></a>
### `ctx.creationRecommendations` — `CreationRecommendations`
Internal Remote and effect owner assembled by the personalized-pages plugin.
```ts cordis-catalog
/** Apply a human decision to a logged proposal.
* @param agent - Live root resolved from the displayed session.
* @param callId - Logged proposal id.
* @param action - Create, cancel generation, dismiss, confirm retention, remove the owned bundle, or reinstall its retained profile copy.
* @param slot - Location chosen by the user when creating or dismissing.
* @param customLocation - Omitted: use slot. Present: Creator resolves this human-authored placement instead.
* @returns acceptance for background work, a durable receipt, or a refusal.
*/
@Remote act(agent: Agent, callId: ToolCallId, action: 'create' | 'dismiss' | 'keep' | 'undo' | 'cancel' | 'restore', slot: CreationSlot, customLocation?: string): Promise<CreationActionResult>
```
Types: [Agent](core.zh.md) · [ToolCallId](core.zh.md)
Source: [`packages/experimental/creation-recommendations/src/index.ts`](../../packages/experimental/creation-recommendations/src/index.ts)
<a id="ctxheadlessstartup--headlessstartupvalues"></a>
### `ctx.headlessStartup` — `HeadlessStartupValues`
-1
View File
@@ -301,7 +301,6 @@
"@deepseek-ai/dsh-experimental-subagent-oar": "workspace:*",
"@deepseek-ai/dsh-experimental-tool-subagent-oar": "workspace:*",
"@deepseek-ai/dsh-experimental-cua-macos": "workspace:*",
"@deepseek-ai/dsh-experimental-creation-recommendations": "workspace:*",
"@deepseek-ai/dsh-experimental-action-cards": "workspace:*"
}
}
+2 -2
View File
@@ -18,8 +18,8 @@
en: b55aeb927737b90d
zh: 0b215fcb5c2c7908
/packages-experimental/packages:
en: e61934c9013fab1c
zh: 959fac1a1cc47c5c
en: 9b17013b5e887658
zh: 0e9d3cacad7fa4f0
/packages-experimental/related-documentation:
en: 1cb9d3448d44e48d
zh: cd326d70a746b896
+2 -2
View File
@@ -38,8 +38,8 @@ Promotion requires a named product role, documented public behavior and limitati
|---|---|---|
| [`action-cards`](action-cards/README.md) | Optional action cards below answers: the proposal tool, card state, user actions and status notices | `ctx.actionCards` |
| [`client-ui-action-cards`](client-ui-action-cards/README.md) | Card frame below completed answers, kind bodies and the proposal process row | — |
| [`creation-recommendations`](creation-recommendations/README.md) | Explicit-need creation of persistent removable interface plugins | `ctx.creationRecommendations` |
| [`client-ui-creation-recommendations`](client-ui-creation-recommendations/README.md) | Completed-answer creation cards with location selection and undo | — |
| [`creation-recommendations`](creation-recommendations/README.md) | Explicit-need creation of persistent removable interface plugins | — |
| [`client-ui-creation-recommendations`](client-ui-creation-recommendations/README.md) | Personalized page card body with location selection and undo | — |
| [`tool-session-query`](tool-session-query/README.md) | Workspace-authorized model session search, trace, and event reads | — |
| [`session-search`](session-search/README.md) | Optional experimental global session search tools | — |
| [`ralph-bundle`](ralph-bundle/README.md) | Optional repeated delegation with an isolated workflow engine | — |
+2 -2
View File
@@ -38,8 +38,8 @@ kind: "package-group"
|---|---|---|
| [`action-cards`](action-cards/README.zh.md) | 回答下方的可选操作卡片:提议工具、卡片状态、用户操作与状态通知 | `ctx.actionCards` |
| [`client-ui-action-cards`](client-ui-action-cards/README.zh.md) | 已完成回答下方的卡片框架、种类正文与提议过程行 | — |
| [`creation-recommendations`](creation-recommendations/README.zh.md) | 针对明确需求创建持续可用、可移除的界面插件 | `ctx.creationRecommendations` |
| [`client-ui-creation-recommendations`](client-ui-creation-recommendations/README.zh.md) | 回答末尾的创建卡片、位置选择和撤销 | — |
| [`creation-recommendations`](creation-recommendations/README.zh.md) | 针对明确需求创建持续可用、可移除的界面插件 | — |
| [`client-ui-creation-recommendations`](client-ui-creation-recommendations/README.zh.md) | 个性化页面卡片正文、位置选择和撤销 | — |
| [`tool-session-query`](tool-session-query/README.zh.md) | 按工作区授权的模型会话搜索、追踪与事件读取 | — |
| [`session-search`](session-search/README.zh.md) | 可选实验性全局会话搜索工具 | — |
| [`ralph-bundle`](ralph-bundle/README.zh.md) | 带隔离 workflow 引擎的可选重复委派 | — |
@@ -9,23 +9,23 @@
en: dc8e9b2fafade59a
zh: fab88019b957e3d9
/deepseek-ai-dsh-experimental-client-ui-creation-recommendations/summary:
en: 4a6eb817f5cb148d
zh: 09b8ce62c9ecf805
en: c2b93e3c50f80ecd
zh: da8aa68e686abddd
/deepseek-ai-dsh-experimental-client-ui-creation-recommendations/table-of-contents:
en: d152484eb41ac6b4
zh: b00dddf4c88f0a45
/deepseek-ai-dsh-experimental-client-ui-creation-recommendations/use-this-package:
en: 1483f3c6b4dc31ef
zh: 042566fbead0d9a3
en: 5f3f7e9eea09ae0c
zh: 378acca8f793cf34
/deepseek-ai-dsh-experimental-client-ui-creation-recommendations/use-this-package/outcomes-and-recovery:
en: d0dbaf664250e229
zh: 91bacedf9a7f8014
en: 5a3df9cd58832f91
zh: 2068dca0a62394fe
/deepseek-ai-dsh-experimental-client-ui-creation-recommendations/understand-the-implementation:
en: 3ca6636feb47b6a8
zh: 4968753a28b8da19
en: 26b049c5e3f38846
zh: 15768ae54aec3511
/deepseek-ai-dsh-experimental-client-ui-creation-recommendations/further-exploration:
en: 7b5a577a397a3c0b
zh: ea75e74c00ffdce2
en: 6543c44016da2cdf
zh: fb0d365a5e411b04
/deepseek-ai-dsh-experimental-client-ui-creation-recommendations/model-experience:
en: 176de8a02931b042
zh: b1f1228f011ab056
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
## Summary
Users see one creation proposal below the completed answer. Short plans appear in full; longer ones show an expandable 80-grapheme preview. A dropdown offers Right sidebar, Session tab, Global page, or Write your own. The cost notice opens until dismissed; this browser remembers the choice across sessions. The information button reopens it. Only Create starts background work; chatting can continue. Progress appears in the header. Keep confirms retention; Undo removes the plugin, and Restore reinstalls it.
Users see one creation proposal below the completed answer. Short plans appear in full; longer ones fold after about two lines and expand on request. A dropdown offers Right sidebar, Session tab, Global page, or Write your own. The cost notice opens until dismissed; this browser remembers the choice across sessions. The information button reopens it. Only Create starts background work; chatting can continue. Progress appears in the header. Keep confirms retention; Undo removes the plugin, and Restore reinstalls it.
## Table of Contents
@@ -25,11 +25,11 @@ Users see one creation proposal below the completed answer. Short plans appear i
<a id="use-this-package"></a>
## Use this package
Enable the [Personalized pages bundle](../creation-recommendations/README.md). This browser contribution has no configuration fields.
Enable the [Personalized pages bundle](../creation-recommendations/README.md). This browser contribution has no configuration fields; it fills the shared [action card frame](../client-ui-action-cards/README.md) for `create_personalized_page` cards.
### Outcomes and recovery
An unstarted card stays available until a newer proposal in the same conversation replaces it. The replaced card keeps its history with a Replaced label and no creation or location controls. Supplied initial content appears below the plan as folded data, so the user sees what the Creator will receive. Started tasks retain their progress and retry actions. The Host projection owns this state, so reload does not reactivate a card.
An unstarted card stays available until a newer proposal in the same conversation replaces it. The replaced card keeps its history with a Replaced label and no creation or location controls. Supplied initial content appears below the plan as folded data, so the user sees what the Creator will receive. Started tasks retain their progress and retry actions. The shared card projection owns this state, so reload does not reactivate a card.
Creation, installation, retention and removal receipts come from the Session projection. The card restores them after reconnecting. A lost action reply shows an actionable error; retry uses the Host’s recorded state. Pending requests disable repeated actions. During generation, Cancel stops the child and waits for cleanup before retry. Accepted installations finish without cancellation. The information disclosure contains the source directory and explains that Undo keeps those files. The removed card offers Restore; when the retained files are gone, it asks for a new proposal.
@@ -45,9 +45,9 @@ Plan disclosure depends on omitted text, not rendered height. Long previews coll
<details>
<summary>Implementation internals — click to expand</summary>
The Turn tail reads the proposals of the `creationRecommendations` Session projection and shows the one admitted in its Turn once that Turn has ended, for any end reason; the projection admits at most one proposal per Turn. The component receives session-bound callbacks and a framework-bound notice preference rather than accessing services. The shared Menu handles portal positioning, keyboard selection and dismissal. Its optional Remote, locale and slot registration share one plugin lifetime.
The plugin registers its body with the shared card frame, which places the card after its Turn and supplies the title, the folded brief, the fold component and card-bound actions. The body validates the card's details and recorded data, then renders the header with the cost notice toggle, the location picker, written placement, folded initial content, progress, Keep, Undo and Restore. The cost notice preference is a browser-local store owned by the plugin. The shared Menu handles portal positioning, keyboard selection and dismissal. The body registration and its dictionaries share one plugin lifetime.
- [Source](src/client/index.ts)
- [Source](src/client/Card.tsx)
- [Tests](tests/)
</details>
@@ -58,7 +58,7 @@ The Turn tail reads the proposals of the `creationRecommendations` Session proje
## Further Exploration
- [Creation service](../creation-recommendations/README.md) — creation ownership and persistence.
- [Session projection](../../session/session-projection/README.md) — the proposals and receipts the card reads.
- [Action card display](../client-ui-action-cards/README.md) — the frame, fold and actions this body uses.
- [Slots](../../client/ui-slots/README.md) — completed-Turn presentation.
<a id="model-experience"></a>
@@ -9,7 +9,7 @@ kind: "package-reference"
## 概述
用户在完整回答下方看到一条创建建议。短方案完整显示,长方案显示前 80 个字素的预览,可展开全文。下拉菜单提供右侧栏、会话 Tab、全局页面和自行撰写四项。消耗提示在用户收起前默认展开,本浏览器跨会话记住选择,信息按钮可重新打开。只有点击创建才启动后台任务,主对话可继续。进度显示在顶部,保留用于确认继续使用,撤销则移除插件,恢复会重新安装它。
用户在完整回答下方看到一条创建建议。短方案完整显示,长方案约两行后折叠,可展开全文。下拉菜单提供右侧栏、会话 Tab、全局页面和自行撰写四项。消耗提示在用户收起前默认展开,本浏览器跨会话记住选择,信息按钮可重新打开。只有点击创建才启动后台任务,主对话可继续。进度显示在顶部,保留用于确认继续使用,撤销则移除插件,恢复会重新安装它。
## 目录
@@ -25,11 +25,11 @@ kind: "package-reference"
<a id="use-this-package"></a>
## 使用本包
启用[个性化页面 Bundle](../creation-recommendations/README.zh.md)。本浏览器组件没有配置字段。
启用[个性化页面 Bundle](../creation-recommendations/README.zh.md)。本浏览器组件没有配置字段;它为 `create_personalized_page` 卡片填充共享的[操作卡片框架](../client-ui-action-cards/README.zh.md)。
### 操作结果与恢复
尚未创建的卡片一直可用,直到同一会话里更新的方案替换它。被替换的卡片保留历史内容和“已替换”标签,没有创建和位置控件。提供的预填内容以折叠形式显示在方案下方,用户能看到交给 Creator 的内容。已开始的任务保留进度和重试操作。Host 投影拥有这个状态,所以刷新不会重新激活卡片。
尚未创建的卡片一直可用,直到同一会话里更新的方案替换它。被替换的卡片保留历史内容和“已替换”标签,没有创建和位置控件。提供的预填内容以折叠形式显示在方案下方,用户能看到交给 Creator 的内容。已开始的任务保留进度和重试操作。共享卡片投影拥有这个状态,所以刷新不会重新激活卡片。
创建、安装、保留和移除记录来自 Session 投影,重新连接后会在卡片中恢复。操作回复丢失时显示可采取行动的错误信息;重试以 Host 已记录的状态为准。请求处理中禁用重复操作。生成阶段可取消,等待子任务清理后才能重试;已接纳的安装不再取消。信息说明中包含源码目录,并明确撤销会保留这些文件。已移除的卡片提供“恢复”;保留的文件已不在时,提示需要重新提案。
@@ -45,9 +45,9 @@ kind: "package-reference"
<details>
<summary>实现细节 — 点击展开</summary>
回合末尾插槽读取 `creationRecommendations` 会话投影中的提案,在回合结束后(不论结束原因)显示该回合接纳的提案;投影每回合最多接纳一个提案。组件接收绑定会话的回调和框架绑定的提示偏好,不直接访问服务。共享 Menu 处理浮层定位、键盘选择和关闭。可选 Remote、语言字典和插槽注册使用同一插件生命周期。
插件把正文注册到共享卡片框架,由框架把卡片放在所属回合之后,并提供标题、折叠后的说明、折叠组件和绑定到卡片的操作。正文先校验卡片的 details 和已记录的数据,再渲染带消耗说明开关的标题栏、位置选择、手写位置、折叠的预填内容、进度,以及保留、撤销和恢复。消耗说明的偏好是插件自有的浏览器本地存储。共享 Menu 处理浮层定位、键盘选择和关闭。正文注册和语言字典使用同一插件生命周期。
- [源码](src/client/index.ts)
- [源码](src/client/Card.tsx)
- [测试](tests/)
</details>
@@ -58,7 +58,7 @@ kind: "package-reference"
## 延伸阅读
- [创建服务](../creation-recommendations/README.zh.md) — 创建任务与持久化。
- [Session 投影](../../session/session-projection/README.zh.md) — 卡片读取的提案和操作记录。
- [操作卡片显示](../client-ui-action-cards/README.zh.md) — 本正文使用的框架、折叠和操作。
- [Slots](../../client/ui-slots/README.zh.md) — 回合末尾呈现.
<a id="model-experience"></a>
@@ -8,7 +8,7 @@
"types": "lib/types/index.d.ts",
"license": "MIT",
"name": "@deepseek-ai/dsh-experimental-client-ui-creation-recommendations",
"description": "Completed-answer interface creation, location selection and undo cards",
"description": "Body of the personalized page card: location choice, creation progress, Keep, Undo and Restore",
"repository": {
"type": "git",
"url": "git+https://github.com/deepseek-ai/deepseek-harness.git",
@@ -31,11 +31,8 @@
"client": {
"platform": "web",
"inject": [
"@deepseek-ai/dsh-api-remotes",
"@deepseek-ai/dsh-client-locale",
"@deepseek-ai/dsh-client-ui-conversation",
"@deepseek-ai/dsh-client-ui-chat",
"@deepseek-ai/dsh-client-ui-session"
"@deepseek-ai/dsh-experimental-client-ui-action-cards"
]
}
},
@@ -44,20 +41,19 @@
},
"devDependencies": {
"@deepseek-ai/cordis": "workspace:~",
"@deepseek-ai/dsh-llm": "workspace:*",
"@deepseek-ai/dsh-session": "workspace:*",
"@deepseek-ai/dsh-client-ui-renderer": "workspace:*",
"@deepseek-ai/dsh-api-remotes": "workspace:*",
"@deepseek-ai/dsh-client-locale": "workspace:*",
"@deepseek-ai/dsh-client-ui-conversation": "workspace:*",
"@deepseek-ai/dsh-client-ui-chat": "workspace:*",
"@deepseek-ai/dsh-client-ui-session": "workspace:*",
"@deepseek-ai/dsh-client-ui-slots": "workspace:*",
"@deepseek-ai/dsh-client-ui-primitives": "workspace:*",
"react": "^18.2.0",
"@deepseek-ai/dsh-experimental-creation-recommendations": "workspace:*",
"@deepseek-ai/dsh-client-store": "workspace:*",
"@deepseek-ai/dsh-typert-protocol": "workspace:*"
"@deepseek-ai/dsh-experimental-client-ui-action-cards": "workspace:*",
"@deepseek-ai/dsh-experimental-action-cards": "workspace:*",
"zod": "4.4.3",
"@deepseek-ai/dsh-client-test-runtime": "workspace:*",
"@deepseek-ai/dsh-llm": "workspace:*",
"@deepseek-ai/dsh-session": "workspace:*"
},
"files": [
"locale/*.json",
@@ -1,4 +1,3 @@
.card { margin: 16px 0; border: 0.5px solid var(--dsw-alias-border-l2); border-radius: var(--dsw-radius-lg); overflow: hidden; background: var(--dsw-alias-bg-layer-1); font-family: var(--dsw-font-family); color: var(--dsw-alias-label-primary); }
.header { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 20px 0; font-size: 12px; line-height: 1.5; color: var(--dsw-alias-label-secondary); flex-wrap: wrap; }
.heading { display: inline-flex; align-items: center; gap: 4px; }
.infoButton { width: 28px; padding: 0; color: var(--dsw-alias-label-secondary); }
@@ -8,11 +7,8 @@
.info strong { font-weight: 500; }
.phase { color: var(--dsw-alias-label-primary); }
.body { padding: 12px 20px 20px; }
.title { display: block; font-size: 16px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.reason { margin: 8px 0 0; font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--dsw-alias-label-secondary); }
.content { margin-top: 12px; }
.contentLabel { display: block; font-size: 12px; line-height: 1.6; color: var(--dsw-alias-label-secondary); }
.planToggle { margin: 8px 0 0; padding-inline: 0; height: auto; min-height: 24px; font-size: 12px; }
.description { margin: 16px 0 0; padding-top: 12px; border-top: 0.5px solid var(--dsw-alias-border-l1); font-size: 12px; line-height: 1.6; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.scope { font-size: 12px; line-height: 1.5; color: var(--dsw-alias-label-secondary); }
@@ -1,35 +1,45 @@
/** Completed-answer creation card with location selection, undo and restore. */
import { useId, useMemo, useState } from 'react'
/** Body of a `create_personalized_page` card: location choice, creation progress, retention, undo and restore. */
import { useCallback, useId, useState, useSyncExternalStore } from 'react'
import { z } from 'zod'
import { Button, IconChevronDownOutlineRegular, IconWarningTriangleOutlineRegular, Menu, Tooltip } from '@deepseek-ai/dsh-client-ui-primitives'
import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import type {
CreationActionResult, CreationDecision, CreationRecommendation, CreationSlot, CreationView,
} from '@deepseek-ai/dsh-experimental-creation-recommendations/types'
import type { ObservableSnapshot } from '@deepseek-ai/dsh-client-store'
import type {} from '@deepseek-ai/dsh-client-ui-chat/client'
import type { PropsLocale } from '@deepseek-ai/dsh-client-ui-slots'
import type { SnapshotStore } from '@deepseek-ai/dsh-client-store'
import type { ActionCardBodyProps } from '@deepseek-ai/dsh-experimental-client-ui-action-cards/client'
import type { CreationSlot, PageData, PageDetails, PageVerb } from '@deepseek-ai/dsh-experimental-creation-recommendations/types'
import type { RecommendationKey } from './locales.ts'
import css from './Card.module.css'
/** Session-bound user actions; installation paths remain Host-owned. */
export interface CardInjected {
act: (callId: ToolCallId, action: 'create' | 'dismiss' | 'keep' | 'undo' | 'cancel' | 'restore', slot: CreationSlot, customLocation?: string) => Promise<CreationActionResult | undefined>
hooks: { infoDismissed: ObservableSnapshot<boolean> }
dismissInfo: () => void
}
type CardProps = { recommendation: CreationRecommendation } & Pick<PropsRuntime<'conversation.chat.turnTail'>, 'useProjection'>
& PropsLocale<'creationRecommendations'> & InjectFace<CardInjected>
type CardAction = Parameters<CardInjected['act']>[1]
/** Body props: the frame's card props plus this browser's cost-notice preference. */
export type PageCardProps = ActionCardBodyProps<'creationRecommendations'> & { readonly infoDismissed: SnapshotStore<boolean> }
type LocationChoice = CreationSlot | 'custom'
type CardVerb = PageVerb | 'dismiss'
const slotSchema = z.enum(['sidebar-right', 'page', 'sidebar-left'])
const detailsSchema = z.object({ slot: slotSchema, initialContent: z.string().optional() }) satisfies z.ZodType<PageDetails>
const dataSchema = z.object({
slot: slotSchema, customLocation: z.string().optional(), bundleName: z.string().optional(),
application: z.enum(['applied', 'restart-required', 'overridden', 'failed', 'cancelled']).optional(),
}) satisfies z.ZodType<PageData>
/** Phases with their own status copy. */
const PHASE_KEYS: readonly RecommendationKey[] = [
'dismissed', 'replaced', 'creating', 'installing', 'cancelled', 'installed', 'kept', 'removed', 'failed', 'interrupted', 'unconfirmed',
]
/** Refusal reasons with their own copy; any other reason reads as unavailable. */
const REASON_KEYS: readonly RecommendationKey[] = [
'unknown', 'access-denied', 'not-live-root', 'closing', 'unavailable', 'invalid-location', 'read-only', 'source-missing',
]
/** Application outcomes have their own copy; the phase copy of failed and cancelled describes creation instead. */
const APPLICATION_KEYS: Readonly<Record<Exclude<NonNullable<CreationDecision['application']>, 'applied'>, RecommendationKey>> = {
const APPLICATION_KEYS: Readonly<Record<Exclude<NonNullable<PageData['application']>, 'applied'>, RecommendationKey>> = {
'restart-required': 'restart-required', overridden: 'overridden', failed: 'applicationFailed', cancelled: 'applicationCancelled',
}
function keyOf(keys: readonly RecommendationKey[], value: string): RecommendationKey | undefined {
return keys.find(key => key === value)
}
function LocationPicker({ value, disabled, onChange, t }: {
value: LocationChoice
disabled: boolean
@@ -50,125 +60,75 @@ function LocationPicker({ value, disabled, onChange, t }: {
</Button>} />
}
/** Graphemes drawn about twice as wide as a Latin letter: CJK scripts, CJK punctuation and fullwidth forms. */
const WIDE_GRAPHEME = /^[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul} -〿＀-⦆¢-₩]/u
/** Preview budget in Latin-letter widths, about two card lines at desktop width. */
const FOLD_WIDTH = 260
/** Fold omitted text without measuring layout; a wide grapheme counts twice so Chinese and English fold near the same line.
* The full text is never altered. */
function FoldedText({ text, expandLabel, collapseLabel }: { text: string; expandLabel: string; collapseLabel: string }) {
const id = useId()
const [expanded, setExpanded] = useState(false)
const preview = useMemo(() => {
const compact = text.replace(/\s+/g, ' ').trim()
const characters = Array.from(new Intl.Segmenter(undefined, { granularity: 'grapheme' }).segment(compact), part => part.segment)
let width = 0
for (const [index, character] of characters.entries()) {
width += WIDE_GRAPHEME.test(character) ? 2 : 1
if (width > FOLD_WIDTH) return characters.slice(0, index).join('').trimEnd() + '…'
}
return undefined
}, [text])
return <>
<p id={id} className={css.reason}>{expanded || preview === undefined ? text : preview}</p>
{preview !== undefined && <Button variant="ghost" size="sm" className={css.planToggle} aria-expanded={expanded} aria-controls={id}
onClick={() => { setExpanded(value => !value) }}>{expanded ? collapseLabel : expandLabel}</Button>}
</>
}
/** The projection admits at most one proposal per turn; should several exist, the lowest call id is shown. */
function proposalOf(view: CreationView | undefined, turn: number): CreationRecommendation | undefined {
let found: CreationRecommendation | undefined
for (const proposal of Object.values(view?.proposals ?? {})) {
if (proposal.turn === turn && (found === undefined || proposal.callId < found.callId)) found = proposal
}
return found
}
/** Place the proposal admitted in a turn after that turn's final answer, once the turn has ended.
* @param props - Turn location, projection reader and session-bound actions.
* @returns the creation card, or null.
/**
* Display creation, persistent installation, reversible removal and restoration below the frame's summary.
* @param props - card, state, actions, folded-text component and notice preference.
* @returns the card body.
*/
// Each optional bundle owns its card and locale contracts; this small tail wrapper does not warrant a shared package.
/* jscpd:ignore-start */
export function RecommendationTail({ turn, ...props }: Pick<PropsRuntime<'conversation.chat.turnTail'>, 'turn' | 'useProjection'>
& PropsLocale<'creationRecommendations'> & InjectFace<CardInjected>) {
const view = props.useProjection('creationRecommendations')
const recommendation = proposalOf(view, turn.turn)
const phase = view?.decisions[recommendation?.callId ?? '']?.phase
return recommendation === undefined || phase === 'suppressed' || turn.end === undefined || turn.data.get('turn-tail')?.closing == null
? null : <RecommendationCard {...props} recommendation={recommendation} />
}
/* jscpd:ignore-end */
/** Display creation, persistent installation, reversible removal and restoration.
* @param props - Proposal, receipts and human actions.
* @returns the creation card.
*/
export function RecommendationCard({ recommendation, useProjection, act, useInfoDismissed, dismissInfo, t }: CardProps) {
const view = useProjection('creationRecommendations')
const decision = view?.decisions[recommendation.callId]
export function PageCardBody({ proposal, decision, ready, summary, Folded, act, infoDismissed, t }: PageCardProps) {
const details = detailsSchema.safeParse(proposal.details)
const parsed = decision === undefined ? undefined : dataSchema.safeParse(decision.data)
const data = parsed?.success === true ? parsed.data : undefined
const phase = decision === undefined ? undefined : keyOf(PHASE_KEYS, decision.phase)
const [selected, setSelected] = useState<LocationChoice>()
const [custom, setCustom] = useState<string>()
const [info, setInfo] = useState<boolean>()
const infoDismissed = useInfoDismissed(value => value)
const subscribe = useCallback((listener: () => void) => infoDismissed.subscribe(listener), [infoDismissed])
const noticeDismissed = useSyncExternalStore(subscribe, () => infoDismissed.getSnapshot())
const infoId = useId()
const customId = useId()
const [pending, setPending] = useState<CardAction>()
const [pending, setPending] = useState<CardVerb>()
const [error, setError] = useState<RecommendationKey>()
if (!details.success) return <div className={css.body}>{summary}</div>
const busy = pending !== undefined
const slot = selected !== undefined && selected !== 'custom' ? selected : decision?.slot ?? recommendation.slot
const location = selected ?? (decision?.customLocation === undefined ? slot : 'custom')
const customLocation = custom ?? decision?.customLocation ?? ''
const offer = decision === undefined || decision.phase === 'cancelled' || decision.phase === 'failed' || decision.phase === 'interrupted' || decision.phase === 'unconfirmed'
const infoOpen = info ?? (offer && !infoDismissed)
const installed = decision?.phase === 'installed' || decision?.phase === 'kept'
const run = async (action: CardAction) => {
setPending(action)
const slot = selected !== undefined && selected !== 'custom' ? selected : data?.slot ?? details.data.slot
const location = selected ?? (data?.customLocation === undefined ? slot : 'custom')
const customLocation = custom ?? data?.customLocation ?? ''
const offer = decision === undefined || phase === 'cancelled' || phase === 'failed' || phase === 'interrupted' || phase === 'unconfirmed'
const infoOpen = info ?? (offer && !noticeDismissed)
const installed = phase === 'installed' || phase === 'kept'
const run = async (verb: CardVerb) => {
setPending(verb)
setError(undefined)
if (action === 'create' || action === 'dismiss') { dismissInfo(); setInfo(false) }
// Independent optional cards keep their action and receipt handling local.
/* jscpd:ignore-start */
if (verb === 'create' || verb === 'dismiss') { infoDismissed.set(true); setInfo(false) }
const placement = { slot, ...location === 'custom' ? { customLocation: customLocation.trim() } : {} }
try {
const result = await act(recommendation.callId, action, slot, location === 'custom' ? customLocation.trim() : undefined)
const result = await act(verb, verb === 'create' || verb === 'dismiss' ? placement : undefined)
if (result === undefined) setError('transport')
else if (result.status === 'refused' || result.status === 'unconfirmed') setError(result.reason)
else if (result.status === 'refused' || result.status === 'unconfirmed') setError(keyOf(REASON_KEYS, result.reason) ?? 'unavailable')
} catch {
// A lost reply does not prove failure; replay supplies the durable receipt.
// A lost reply does not prove failure; replay supplies the durable decision.
setError('transport')
} finally { setPending(undefined) }
/* jscpd:ignore-end */
}
return <section className={css.card} aria-label={t('heading')} data-creation-recommendation={recommendation.callId}>
return <>
<header className={css.header}><span className={css.heading}>{t('heading')}
<Tooltip label={t('creationInfo')} side="top" portal disabled={infoOpen}>
<Button variant="ghost" size="sm" className={css.infoButton} aria-label={t('creationInfo')}
aria-expanded={infoOpen} aria-controls={infoId} onClick={() => {
setInfo(!infoOpen)
if (infoOpen) dismissInfo()
if (infoOpen) infoDismissed.set(true)
}}>
<IconWarningTriangleOutlineRegular size={14} />
</Button>
</Tooltip>
</span>
{decision !== undefined && <span role="status" className={css.phase} data-phase={decision.phase}>{t(decision.phase)}</span>}
{phase !== undefined && <span role="status" className={css.phase} data-phase={phase}>{t(phase)}</span>}
</header>
{infoOpen && <div id={infoId} role="note" className={css.info}>
<p>{t('creationMethod')}</p>
<p><strong>{t('creationCost')}</strong></p>
<p>{t('creationBackground')}</p>
{decision?.bundleName !== undefined && <p>{t('sourceRetained')}</p>}
{data?.bundleName !== undefined && <p>{t('sourceRetained')}</p>}
</div>}
<div className={css.body}>
<strong className={css.title}>{recommendation.title}</strong>
<FoldedText text={recommendation.brief} expandLabel={t('expandPlan')} collapseLabel={t('collapsePlan')} />
{recommendation.initialContent !== undefined && <div className={css.content}>
{summary}
{details.data.initialContent !== undefined && <div className={css.content}>
<span className={css.contentLabel}>{t('initialContent')}</span>
<FoldedText text={recommendation.initialContent} expandLabel={t('expandContent')} collapseLabel={t('collapseContent')} />
<Folded text={details.data.initialContent} expandLabel={t('expandContent')} collapseLabel={t('collapseContent')} />
</div>}
{decision?.application !== undefined && decision.application !== 'applied' && decision.phase !== 'failed'
&& <p role="status" className={css.status}>{t(APPLICATION_KEYS[decision.application])}</p>}
{data?.application !== undefined && data.application !== 'applied' && phase !== 'failed'
&& <p role="status" className={css.status}>{t(APPLICATION_KEYS[data.application])}</p>}
{error !== undefined && <p role="alert" className={css.status}>{t(error)}</p>}
{offer ? <div className={css.controls}>
<div className={css.locationRow}>
@@ -182,28 +142,28 @@ export function RecommendationCard({ recommendation, useProjection, act, useInfo
</div>}
<footer className={css.footer}>
<div className={css.actions}>
<Button variant="ghost" size="sm" disabled={busy || view === undefined} onClick={() => { void run('dismiss') }}>{t('dismiss')}</Button>
<Button variant="primary" size="sm" disabled={busy || view === undefined || location === 'custom' && customLocation.trim() === ''} onClick={() => { void run('create') }}>
<Button variant="ghost" size="sm" disabled={busy || !ready} onClick={() => { void run('dismiss') }}>{t('dismiss')}</Button>
<Button variant="primary" size="sm" disabled={busy || !ready || location === 'custom' && customLocation.trim() === ''} onClick={() => { void run('create') }}>
{t(pending === 'create' ? 'starting' : decision === undefined ? 'create' : 'retry')}
</Button>
</div>
</footer>
</div> : <p className={css.description}>{t('location')} · {decision.customLocation ?? t(decision.slot)}</p>}
{decision?.phase === 'creating' && <footer className={css.footer}>
</div> : <p className={css.description}>{t('location')} · {data?.customLocation ?? t(data?.slot ?? details.data.slot)}</p>}
{phase === 'creating' && <footer className={css.footer}>
<Button variant="ghost" size="sm" disabled={busy} onClick={() => { void run('cancel') }}>{t(pending === 'cancel' ? 'cancelling' : 'cancel')}</Button>
</footer>}
{installed && <footer className={css.footer}>
<span className={css.scope}>{t('scope')}</span>
<div className={css.actions}>
<Button variant="ghost" size="sm" disabled={busy} onClick={() => { void run('undo') }}>{t('undo')}</Button>
{decision.phase !== 'kept' && <Button variant="primary" size="sm" disabled={busy} onClick={() => { void run('keep') }}>{t('keep')}</Button>}
{phase !== 'kept' && <Button variant="primary" size="sm" disabled={busy} onClick={() => { void run('keep') }}>{t('keep')}</Button>}
</div>
</footer>}
{decision?.phase === 'removed' && <footer className={css.footer}>
{phase === 'removed' && <footer className={css.footer}>
<div className={css.actions}>
<Button variant="primary" size="sm" disabled={busy} onClick={() => { void run('restore') }}>{t(pending === 'restore' ? 'restoring' : 'restore')}</Button>
</div>
</footer>}
</div>
</section>
</>
}
@@ -1,13 +1,2 @@
/** Bind generated Remote descriptors to the source-tested browser lifecycle. */
import type { Context } from '@deepseek-ai/cordis'
import remote from '@deepseek-ai/dsh-experimental-creation-recommendations/remote'
import { mountRecommendations } from './mount.ts'
export { inject } from './mount.ts'
/** Mount creation recommendations and their optional Remote.
* @param ctx - Client plugin context.
* @returns disposer for both contributions.
*/
export async function apply(ctx: Context): Promise<() => Promise<void>> {
return await mountRecommendations(ctx, remote)
}
/** Browser entry of the personalized page card body. */
export { apply, inject } from './mount.ts'
@@ -1,14 +1,9 @@
/** Register completed-answer recommendations and their localized actions. */
/** Register the personalized page card body and its localized copy. */
import { createElement } from 'react'
import type { Context } from '@deepseek-ai/cordis'
import type { SessionId } from '@deepseek-ai/dsh-session/types'
import type {} from '@deepseek-ai/dsh-api-remotes/client'
import type {} from '@deepseek-ai/dsh-client-locale/client'
import type {} from '@deepseek-ai/dsh-client-ui-session/client'
import type {} from '@deepseek-ai/dsh-client-ui-renderer/client'
import type {} from '@deepseek-ai/dsh-experimental-creation-recommendations/remote'
import type { TypertRemoteContribution } from '@deepseek-ai/dsh-typert-protocol'
import type {} from '@deepseek-ai/dsh-experimental-creation-recommendations/types'
import { RecommendationTail, type CardInjected } from './Card.tsx'
import type {} from '@deepseek-ai/dsh-experimental-client-ui-action-cards/client'
import { PageCardBody } from './Card.tsx'
import { en, ja, zh, type RecommendationKey } from './locales.ts'
import { createCreationInfoStore } from './info-store.ts'
@@ -16,36 +11,18 @@ declare module '@deepseek-ai/dsh-client-ui-slots' {
interface LocaleNamespaceMap { creationRecommendations: RecommendationKey }
}
/** Registries available before this plugin mounts its optional Remote. */
export const inject = ['slots', 'locale', 'remote']
/** Services the body registration needs; the shared card plugin provides `actionCards`. */
export const inject = ['locale', 'actionCards']
/** Mount the optional Remote and UI for the same plugin lifetime.
/**
* Register the `create_personalized_page` body for the plugin lifetime.
* @param ctx - Client plugin context.
* @param contribution - Generated Remote descriptors supplied by the built entry.
* @returns disposer removing the UI before the Remote contribution.
*/
export async function mountRecommendations(ctx: Context, contribution: TypertRemoteContribution): Promise<() => Promise<void>> {
// Each independently optional bundle owns its Remote and dependent UI lifetime.
/* jscpd:ignore-start */
const unmount = await ctx.remote.$mount(contribution)
const ui = ctx.inject(['remote.creationRecommendations'], registerUi)
try { await ui } catch (error) { await ui.dispose(); await unmount(); throw error }
return async () => { await ui.dispose(); await unmount() }
/* jscpd:ignore-end */
}
function registerUi(ctx: Context): void {
export function apply(ctx: Context): void {
const infoDismissed = createCreationInfoStore()
ctx.effect(() => ctx.locale.register('creationRecommendations', { en, zh, ja }), 'creation-recommendations: locale')
ctx.slots.inject('conversation.chat.turnTail', () => ctx.slots.register({
name: 'conversation.chat.turnTail', id: 'creation-recommendation', locale: 'creationRecommendations',
inject: (sessionId: SessionId): CardInjected => ({
hooks: { infoDismissed },
dismissInfo: () => { infoDismissed.set(true) },
act: async (callId, action, slot, customLocation) => {
const result = await ctx.remote.creationRecommendations.act(sessionId, callId, action, slot, customLocation)
return result.ok ? result.value : undefined
},
}),
}, RecommendationTail))
ctx.effect(() => ctx.actionCards.register({
action: 'create_personalized_page', locale: 'creationRecommendations',
Body: props => createElement(PageCardBody, { ...props, infoDismissed }),
}), 'creation-recommendations: card body')
}
@@ -1,48 +0,0 @@
/** Real registries validate session binding and HMR removal. */
import { Context } from '@deepseek-ai/cordis'
import { SlotRegistry } from '@deepseek-ai/dsh-client-ui-renderer/client'
import { LocaleRuntime } from '@deepseek-ai/dsh-client-locale/client'
import { SessionId } from '@deepseek-ai/dsh-session/types'
import { ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import { expect, it, onTestFinished, vi } from 'vitest'
import { mountRecommendations, inject } from '../src/client/mount.ts'
const apply = (ctx: Context) => mountRecommendations(ctx, { package: '@deepseek-ai/dsh-experimental-creation-recommendations', descriptors: [] })
import { apply as hostApply } from '../src/index.ts'
import type { CardInjected } from '../src/client/Card.tsx'
it('binds actions to the displayed session and removes registrations on unload', async () => {
hostApply()
const ctx = new Context()
onTestFinished(() => ctx.fiber.dispose())
await ctx.plugin(SlotRegistry)
const slots = ctx.slots
slots.register({ name: 'root', children: { 'conversation.chat.turnTail': {
kind: 'list', scope: 'session',
} } }, (_props: { renderSlot?: unknown }) => null)
const act = vi.fn().mockResolvedValue({ ok: true, value: { status: 'accepted' } })
const unmount = vi.fn(async () => {})
ctx.provide('remote', { creationRecommendations: { act }, $mount: vi.fn(async () => unmount) })
ctx.provide('remote.creationRecommendations', { act })
const locale = new LocaleRuntime(ctx)
ctx.provide('locale', locale)
const fiber = await ctx.plugin({ inject, apply })
const entry = slots.entries('conversation.chat.turnTail')[0]!
const resolve = entry.inject as NonNullable<typeof entry.inject> & ((sessionId: SessionId) => CardInjected)
const bound = resolve(SessionId('session-one'))
expect(await bound.act(ToolCallId('proposal'), 'create', 'page')).toEqual({ status: 'accepted' })
expect(act).toHaveBeenCalledWith('session-one', 'proposal', 'create', 'page', undefined)
await bound.act(ToolCallId('custom'), 'create', 'page', '左侧入口打开日历')
expect(act).toHaveBeenCalledWith('session-one', 'custom', 'create', 'page', '左侧入口打开日历')
bound.dismissInfo()
expect(resolve(SessionId('session-two')).hooks.infoDismissed.getSnapshot()).toBe(true)
act.mockResolvedValueOnce({ ok: false })
expect(await bound.act(ToolCallId('proposal'), 'dismiss', 'page')).toBeUndefined()
await fiber.dispose()
expect(unmount).toHaveBeenCalledOnce()
expect(slots.entries('conversation.chat.turnTail')).toHaveLength(0)
vi.spyOn(locale, 'register').mockImplementation(() => { throw new Error('registration failed') })
const failed = ctx.plugin({ inject, apply })
await expect(failed.await()).rejects.toThrow('registration failed')
await failed.dispose()
expect(unmount).toHaveBeenCalledTimes(2)
})
@@ -1,57 +1,32 @@
// @vitest-environment jsdom
import type { ComponentProps } from 'react'
import { act, cleanup, fireEvent, render, screen, waitFor } from '@testing-library/react'
import { afterEach, expect, it, vi } from 'vitest'
import { ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import { SessionSeq } from '@deepseek-ai/dsh-session/types'
import type { CreationCardState, CreationView } from '@deepseek-ai/dsh-experimental-creation-recommendations/types'
import { RecommendationCard, RecommendationTail } from '../src/client/Card.tsx'
import { en, zh, type RecommendationKey } from '../src/client/locales.ts'
import { SessionId } from '@deepseek-ai/dsh-session/types'
import { createSnapshotStore } from '@deepseek-ai/dsh-client-store'
import { FoldedText } from '@deepseek-ai/dsh-experimental-client-ui-action-cards/src/client/Card.tsx'
import type { ActionCardFields, ActionCardResult } from '@deepseek-ai/dsh-experimental-action-cards/types'
import { PageCardBody, type PageCardProps } from '../src/client/Card.tsx'
import { makeTranslate } from '@deepseek-ai/dsh-client-test-runtime'
import { en, zh } from '../src/client/locales.ts'
afterEach(() => { cleanup(); vi.restoreAllMocks(); vi.unstubAllGlobals() })
type Props = ComponentProps<typeof RecommendationCard>
afterEach(() => { cleanup(); vi.restoreAllMocks() })
const callId = ToolCallId('creation-1')
function props(decision?: CreationCardState, chinese = true): Props {
return { recommendation: { callId, title: 'Counter', brief: 'Keep my task count visible.', slot: 'sidebar-right' },
useProjection: () => ({ decisions: decision === undefined ? {} : { [callId]: decision } }),
act: vi.fn(async () => ({ status: 'accepted' })),
useInfoDismissed: selector => selector(true), dismissInfo: vi.fn(),
t: (key: RecommendationKey) => (chinese ? zh : en)[key],
} as Props
const ACTION = 'create_personalized_page'
type Act = (verb: string, payload?: ActionCardFields) => Promise<ActionCardResult | undefined>
function props(decision?: { phase: string; data?: ActionCardFields }, chinese = true, details: ActionCardFields = { slot: 'sidebar-right' }): PageCardProps & { act: ReturnType<typeof vi.fn<Act>> } {
const proposal = { callId, turn: 1, action: ACTION, title: 'Counter', brief: 'Keep my task count visible.', details }
return { proposal, decision: decision === undefined ? undefined : { callId, action: ACTION, ...decision }, ready: true,
sessionId: SessionId('session-1'), summary: <><strong>{proposal.title}</strong><p>{proposal.brief}</p></>, Folded: FoldedText,
act: vi.fn<Act>(async () => ({ status: 'accepted' })), infoDismissed: createSnapshotStore(true),
t: makeTranslate(chinese ? zh : en) }
}
it('places the proposal admitted in its turn once the turn has ended, and leaves other turns empty', () => {
type Tail = ComponentProps<typeof RecommendationTail>
it('starts with the recommended location, lets the user change it, and starts only on Create', async () => {
const value = props()
const proposal = (id: string, turn: number) => ({ ...value.recommendation, callId: ToolCallId(id), turn })
let view: CreationView | undefined
const turnData = vi.fn().mockReturnValue({ closing: {} })
const ended = { type: 'turn/end', seq: SessionSeq(1), time: 0, data: { turn: 3, reason: { kind: 'max-tokens' } } } as const
const tail = (end: typeof ended | undefined): Tail => ({ ...value, useProjection: () => view,
turn: { turn: 3, start: undefined, end, status: end === undefined ? 'open' : 'closed', steps: [],
data: { get: turnData, source: () => ({ getSnapshot: () => undefined, subscribe: () => () => {} }) } } })
const { rerender } = render(<RecommendationTail {...tail(ended)} />)
expect(screen.queryByRole('region')).toBeNull()
view = { decisions: {}, proposals: { earlier: proposal('earlier', 2) } }
rerender(<RecommendationTail {...tail(ended)} />)
expect(screen.queryByRole('region')).toBeNull()
view = { decisions: {}, proposals: { ...view.proposals, b: proposal('b', 3), a: proposal('a', 3), c: proposal('c', 3) } }
rerender(<RecommendationTail {...tail(ended)} />)
expect(screen.getAllByRole('region').map(region => region.getAttribute('data-creation-recommendation'))).toEqual(['a'])
expect(turnData).toHaveBeenCalledWith('turn-tail')
rerender(<RecommendationTail {...tail(undefined)} />)
expect(screen.queryByRole('region')).toBeNull()
turnData.mockReturnValueOnce({ closing: null })
rerender(<RecommendationTail {...tail(ended)} />)
expect(screen.queryByRole('region')).toBeNull()
view = { ...view, decisions: { a: { callId: ToolCallId('a'), phase: 'suppressed', slot: 'sidebar-right' } } }
rerender(<RecommendationTail {...tail(ended)} />)
expect(screen.queryByRole('region')).toBeNull()
})
it('starts with a recommendation, lets the user change the location, and starts only on Create', async () => {
const value = props()
render(<RecommendationCard {...value} />)
render(<PageCardBody {...value} />)
expect(screen.getByText('Counter')).toBeTruthy()
const location = screen.getByRole('button', { name: '添加到: 右侧栏' })
expect(screen.queryByRole('menu')).toBeNull()
fireEvent.click(location)
@@ -63,12 +38,12 @@ it('starts with a recommendation, lets the user change the location, and starts
expect(screen.queryByRole('menu')).toBeNull()
expect(value.act).not.toHaveBeenCalled()
fireEvent.click(screen.getByRole('button', { name: '创建' }))
await waitFor(() => { expect(value.act).toHaveBeenCalledExactlyOnceWith(callId, 'create', 'page', undefined) })
await waitFor(() => { expect(value.act).toHaveBeenCalledExactlyOnceWith('create', { slot: 'page' }) })
})
it('requires a written location, preserves its draft, and passes only the chosen location on Create', async () => {
const value = props()
const { rerender } = render(<RecommendationCard {...value} />)
const { rerender } = render(<PageCardBody {...value} />)
fireEvent.click(screen.getByRole('button', { name: '添加到: 右侧栏' }))
fireEvent.click(screen.getByRole('menuitem', { name: /自行撰写/ }))
const input = screen.getByRole('textbox', { name: zh.customLabel })
@@ -76,13 +51,13 @@ it('requires a written location, preserves its draft, and passes only the chosen
fireEvent.change(input, { target: { value: ' 左侧入口打开全屏日历 ' } })
expect(value.act).not.toHaveBeenCalled()
fireEvent.click(screen.getByRole('button', { name: '创建' }))
await waitFor(() => { expect(value.act).toHaveBeenCalledWith(callId, 'create', 'sidebar-right', '左侧入口打开全屏日历') })
rerender(<RecommendationCard {...value} />)
await waitFor(() => { expect(value.act).toHaveBeenCalledWith('create', { slot: 'sidebar-right', customLocation: '左侧入口打开全屏日历' }) })
rerender(<PageCardBody {...value} />)
fireEvent.click(screen.getByRole('button', { name: '添加到: 自行撰写' }))
fireEvent.click(screen.getByRole('menuitem', { name: /全局页面/ }))
expect(screen.queryByRole('textbox')).toBeNull()
fireEvent.click(screen.getByRole('button', { name: '创建' }))
await waitFor(() => { expect(value.act).toHaveBeenLastCalledWith(callId, 'create', 'sidebar-left', undefined) })
await waitFor(() => { expect(value.act).toHaveBeenLastCalledWith('create', { slot: 'sidebar-left' }) })
fireEvent.click(screen.getByRole('button', { name: '添加到: 全局页面' }))
fireEvent.click(screen.getByRole('menuitem', { name: /自行撰写/ }))
expect(screen.getByRole<HTMLTextAreaElement>('textbox').value).toBe(' 左侧入口打开全屏日历 ')
@@ -90,37 +65,35 @@ it('requires a written location, preserves its draft, and passes only the chosen
it('shows the recorded placement once settled, not the location picked before the decision', () => {
const value = props(undefined, false)
const { rerender } = render(<RecommendationCard {...value} />)
const { rerender } = render(<PageCardBody {...value} />)
fireEvent.click(screen.getByRole('button', { name: 'Add to: Right sidebar' }))
fireEvent.click(screen.getByRole('menuitem', { name: /Write your own/ }))
fireEvent.change(screen.getByRole('textbox', { name: en.customLabel }), { target: { value: 'Next to the composer' } })
rerender(<RecommendationCard {...props({ callId, phase: 'dismissed', slot: 'sidebar-right' }, false)} />)
rerender(<PageCardBody {...props({ phase: 'dismissed', data: { slot: 'sidebar-right' } }, false)} />)
expect(screen.getByText('Add to · Right sidebar')).toBeTruthy()
expect(screen.queryByText(/Next to the composer/)).toBeNull()
})
it('restores a written location after cancellation and preserves it on retry', async () => {
const value = props({ callId, phase: 'cancelled', slot: 'page', customLocation: '右侧查看当前会话的 Context' })
const { rerender } = render(<RecommendationCard {...value} />)
const value = props({ phase: 'cancelled', data: { slot: 'page', customLocation: '右侧查看当前会话的 Context' } })
const { rerender } = render(<PageCardBody {...value} />)
expect(screen.getByRole<HTMLTextAreaElement>('textbox').value).toBe('右侧查看当前会话的 Context')
fireEvent.click(screen.getByRole('button', { name: '重新创建' }))
await waitFor(() => { expect(value.act).toHaveBeenCalledWith(callId, 'create', 'page', '右侧查看当前会话的 Context') })
rerender(<RecommendationCard {...props({ callId, phase: 'installed', slot: 'page', customLocation: '右侧查看当前会话的 Context' })} />)
await waitFor(() => { expect(value.act).toHaveBeenCalledWith('create', { slot: 'page', customLocation: '右侧查看当前会话的 Context' }) })
rerender(<PageCardBody {...props({ phase: 'installed', data: { slot: 'page', customLocation: '右侧查看当前会话的 Context' } })} />)
expect(screen.getByText('添加到 · 右侧查看当前会话的 Context')).toBeTruthy()
})
it('opens the cost notice until dismissed, remembers dismissal, and allows reopening', () => {
const value = props()
let dismissed = false
value.useInfoDismissed = selector => selector(dismissed)
value.dismissInfo = vi.fn(() => { dismissed = true })
const first = render(<RecommendationCard {...value} />)
value.infoDismissed.set(false)
const first = render(<PageCardBody {...value} />)
expect(screen.getByRole('note').textContent).toContain(zh.creationCost)
fireEvent.click(screen.getByRole('button', { name: zh.creationInfo }))
expect(value.dismissInfo).toHaveBeenCalledOnce()
expect(value.infoDismissed.getSnapshot()).toBe(true)
expect(screen.queryByRole('note')).toBeNull()
first.unmount()
render(<RecommendationCard {...value} />)
render(<PageCardBody {...value} />)
expect(screen.queryByRole('note')).toBeNull()
fireEvent.click(screen.getByRole('button', { name: zh.creationInfo }))
expect(screen.getByRole('note').textContent).toContain(zh.creationBackground)
@@ -129,19 +102,21 @@ it('opens the cost notice until dismissed, remembers dismissal, and allows reope
it('disables pending decisions, labels only a pending Create as starting, and supports dismissal without starting a child', async () => {
const value = props()
const dismissal = Promise.withResolvers<Awaited<ReturnType<Props['act']>>>()
const creation = Promise.withResolvers<Awaited<ReturnType<Props['act']>>>()
value.act = vi.fn().mockReturnValueOnce(dismissal.promise).mockReturnValueOnce(creation.promise)
render(<RecommendationCard {...value} />)
value.infoDismissed.set(false)
const dismissal = Promise.withResolvers<ActionCardResult | undefined>()
const creation = Promise.withResolvers<ActionCardResult | undefined>()
value.act.mockReturnValueOnce(dismissal.promise).mockReturnValueOnce(creation.promise)
render(<PageCardBody {...value} />)
fireEvent.click(screen.getByRole('button', { name: '暂不需要' }))
expect(value.infoDismissed.getSnapshot()).toBe(true)
expect(screen.getByRole('button', { name: '添加到: 右侧栏' }).hasAttribute('disabled')).toBe(true)
expect(screen.getByRole('button', { name: '暂不需要' }).hasAttribute('disabled')).toBe(true)
expect(screen.getByRole('button', { name: '创建' }).hasAttribute('disabled')).toBe(true)
expect(screen.queryByRole('button', { name: '开始创建…' })).toBeNull()
fireEvent.click(screen.getByRole('button', { name: zh.creationInfo }))
expect(screen.getByRole('note').textContent).toContain(zh.creationCost)
expect(value.act).toHaveBeenCalledWith(callId, 'dismiss', 'sidebar-right', undefined)
await act(async () => { dismissal.resolve({ status: 'settled', decision: { callId, phase: 'dismissed', slot: 'sidebar-right' } }) })
expect(value.act).toHaveBeenCalledWith('dismiss', { slot: 'sidebar-right' })
await act(async () => { dismissal.resolve({ status: 'settled', decision: { callId, action: ACTION, phase: 'dismissed' } }) })
fireEvent.click(screen.getByRole('button', { name: '创建' }))
expect(screen.getByRole('button', { name: '开始创建…' }).hasAttribute('disabled')).toBe(true)
expect(screen.getByRole('button', { name: '暂不需要' }).hasAttribute('disabled')).toBe(true)
@@ -150,7 +125,7 @@ it('disables pending decisions, labels only a pending Create as starting, and su
})
it.each(['installing', 'dismissed', 'replaced'] as const)('restores %s without repeat actions', (phase) => {
render(<RecommendationCard {...props({ callId, phase, slot: 'sidebar-left' }, false)} />)
render(<PageCardBody {...props(phase === 'replaced' ? { phase } : { phase, data: { slot: 'sidebar-left' } }, false, { slot: 'sidebar-left' })} />)
expect(screen.getByRole('status').textContent).toBe(en[phase])
expect(screen.getAllByRole('button')).toEqual([screen.getByRole('button', { name: en.creationInfo })])
expect(screen.getByText('Add to · Global page')).toBeTruthy()
@@ -159,7 +134,7 @@ it.each(['installing', 'dismissed', 'replaced'] as const)('restores %s without r
it.each([true, false])('explains cost and background creation without starting work (Chinese: %s)', (chinese) => {
const value = props(undefined, chinese)
const copy = chinese ? zh : en
render(<RecommendationCard {...value} />)
render(<PageCardBody {...value} />)
const button = screen.getByRole('button', { name: copy.creationInfo })
expect(screen.queryByRole('note')).toBeNull()
expect(button.getAttribute('aria-expanded')).toBe('false')
@@ -177,60 +152,58 @@ it.each([true, false])('explains cost and background creation without starting w
})
it('offers cancellation during generation, then waits for cleanup before retrying', async () => {
const value = props({ callId, phase: 'creating', slot: 'page', bundleName: '@dsh-local/view-fixture' })
const pending = Promise.withResolvers<Awaited<ReturnType<Props['act']>>>()
value.act = vi.fn(() => pending.promise)
const { rerender } = render(<RecommendationCard {...value} />)
const value = props({ phase: 'creating', data: { slot: 'page', bundleName: '@dsh-local/view-fixture' } })
const pending = Promise.withResolvers<ActionCardResult | undefined>()
value.act.mockImplementation(() => pending.promise)
const { rerender } = render(<PageCardBody {...value} />)
expect(screen.queryByText(zh.sourceRetained)).toBeNull()
fireEvent.click(screen.getByRole('button', { name: zh.creationInfo }))
expect(screen.getByText(zh.sourceRetained)).toBeTruthy()
fireEvent.click(screen.getByRole('button', { name: '取消创建' }))
expect(value.act).toHaveBeenCalledWith(callId, 'cancel', 'page', undefined)
expect(value.act).toHaveBeenCalledWith('cancel', undefined)
expect(screen.getByRole('button', { name: '正在取消…' }).hasAttribute('disabled')).toBe(true)
expect(screen.queryByRole('button', { name: '重新创建' })).toBeNull()
await act(async () => { pending.resolve({ status: 'accepted' }) })
rerender(<RecommendationCard {...props({ callId, phase: 'cancelled', slot: 'page' })} />)
rerender(<PageCardBody {...props({ phase: 'cancelled', data: { slot: 'page' } })} />)
expect(screen.getByRole('button', { name: '重新创建' })).toBeTruthy()
rerender(<RecommendationCard {...props({ callId, phase: 'installing', slot: 'page' })} />)
rerender(<PageCardBody {...props({ phase: 'installing', data: { slot: 'page' } })} />)
expect(screen.getByRole('status').textContent).toBe(zh.installing)
expect(screen.queryByRole('button', { name: '取消创建' })).toBeNull()
})
it.each(['failed', 'interrupted', 'cancelled', 'unconfirmed'] as const)('offers an explicit retry after %s', async (phase) => {
const value = props({ callId, phase, slot: 'page' })
render(<RecommendationCard {...value} />)
const value = props({ phase, data: { slot: 'page' } })
render(<PageCardBody {...value} />)
fireEvent.click(screen.getByRole('button', { name: '重新创建' }))
await waitFor(() => { expect(value.act).toHaveBeenCalledWith(callId, 'create', 'page', undefined) })
await waitFor(() => { expect(value.act).toHaveBeenCalledWith('create', { slot: 'page' }) })
})
it('retains installed and kept plugins with an Undo action and the actual application outcome', async () => {
const value = props({ callId, phase: 'installed', slot: 'page', application: 'applied' })
const { rerender } = render(<RecommendationCard {...value} />)
const value = props({ phase: 'installed', data: { slot: 'page', application: 'applied' } })
const { rerender } = render(<PageCardBody {...value} />)
expect(screen.getAllByRole('status')).toHaveLength(1)
expect(screen.getByText(zh.scope)).toBeTruthy()
fireEvent.click(screen.getByRole('button', { name: '保留' }))
await waitFor(() => { expect(value.act).toHaveBeenCalledWith(callId, 'keep', 'page', undefined) })
const kept = props({ callId, phase: 'kept', slot: 'page', application: 'restart-required' })
rerender(<RecommendationCard {...kept} />)
await waitFor(() => { expect(value.act).toHaveBeenCalledWith('keep', undefined) })
const kept = props({ phase: 'kept', data: { slot: 'page', application: 'restart-required' } })
rerender(<PageCardBody {...kept} />)
expect(screen.queryByRole('button', { name: '保留' })).toBeNull()
expect(screen.getByText(zh['restart-required'])).toBeTruthy()
fireEvent.click(screen.getByRole('button', { name: '撤销' }))
await waitFor(() => { expect(kept.act).toHaveBeenCalledWith(callId, 'undo', 'page', undefined) })
await waitFor(() => { expect(kept.act).toHaveBeenCalledWith('undo', undefined) })
})
it('offers only Restore on a removed card, labels it while pending and explains missing page files', async () => {
const value = props({ callId, phase: 'removed', slot: 'page', bundleName: '@dsh-local/view-fixture', application: 'applied' })
const pending = Promise.withResolvers<Awaited<ReturnType<Props['act']>>>()
value.act = vi.fn(() => pending.promise)
render(<RecommendationCard {...value} />)
const value = props({ phase: 'removed', data: { slot: 'page', bundleName: '@dsh-local/view-fixture', application: 'applied' } })
const pending = Promise.withResolvers<ActionCardResult | undefined>()
value.act.mockImplementation(() => pending.promise)
render(<PageCardBody {...value} />)
expect(screen.getByRole('status').textContent).toBe(zh.removed)
const restore = screen.getByRole('button', { name: zh.restore })
expect(screen.getAllByRole('button')).toEqual([screen.getByRole('button', { name: zh.creationInfo }), restore])
expect(screen.queryByRole('button', { name: zh.undo })).toBeNull()
expect(screen.queryByRole('button', { name: zh.keep })).toBeNull()
expect(restore.closest('footer')).not.toBeNull()
fireEvent.click(restore)
expect(value.act).toHaveBeenCalledExactlyOnceWith(callId, 'restore', 'page', undefined)
expect(value.act).toHaveBeenCalledExactlyOnceWith('restore', undefined)
expect(screen.getByRole('button', { name: zh.restoring }).hasAttribute('disabled')).toBe(true)
await act(async () => { pending.resolve({ status: 'refused', reason: 'source-missing' }) })
expect(screen.getByRole('alert').textContent).toBe(zh['source-missing'])
@@ -242,76 +215,52 @@ it.each([
['kept', 'cancelled', zh.applicationCancelled],
['removed', 'overridden', zh.overridden],
] as const)('describes a %s receipt whose change ended %s with application copy, not phase copy', (phase, application, text) => {
render(<RecommendationCard {...props({ callId, phase, slot: 'page', application })} />)
render(<PageCardBody {...props({ phase, data: { slot: 'page', application } })} />)
expect(screen.getAllByRole('status').map(status => status.textContent)).toEqual([zh[phase], text])
})
it('leaves a failed creation to its phase line when the change also failed to apply', () => {
render(<RecommendationCard {...props({ callId, phase: 'failed', slot: 'page', application: 'failed' })} />)
render(<PageCardBody {...props({ phase: 'failed', data: { slot: 'page', application: 'failed' } })} />)
expect(screen.getAllByRole('status').map(status => status.textContent)).toEqual([zh.failed])
})
it('keeps uncertain actions recoverable on refusal and connection loss', async () => {
const value = props()
value.act = vi.fn().mockResolvedValueOnce({ status: 'refused', reason: 'unavailable' })
value.act.mockResolvedValueOnce({ status: 'refused', reason: 'unavailable' })
.mockResolvedValueOnce({ status: 'refused', reason: 'read-only' })
.mockResolvedValueOnce({ status: 'unconfirmed', reason: 'later-reason' })
.mockResolvedValueOnce(undefined).mockRejectedValueOnce(new Error('disconnected'))
render(<RecommendationCard {...value} />)
for (const text of [zh.unavailable, zh['read-only'], zh.transport, zh.transport]) {
render(<PageCardBody {...value} />)
for (const text of [zh.unavailable, zh['read-only'], zh.unavailable, zh.transport, zh.transport]) {
fireEvent.click(screen.getByRole('button', { name: '创建' }))
await waitFor(() => { expect(screen.getByRole('alert').textContent).toBe(text) })
}
})
it('waits for its projection before exposing writable actions', () => {
const value = props()
value.useProjection = () => undefined
render(<RecommendationCard {...value} />)
it('waits for the card state before exposing writable actions', () => {
render(<PageCardBody {...{ ...props(), ready: false }} />)
expect(screen.getByRole('button', { name: '创建' }).hasAttribute('disabled')).toBe(true)
})
it('only offers expansion for omitted content and preserves the full plan without layout measurement', () => {
vi.stubGlobal('ResizeObserver', undefined)
const value = props()
const short = 'Keep my task count visible.\n\nPersist across conversations.\nVerify removal.'
value.recommendation = { ...value.recommendation, brief: short }
const view = render(<RecommendationCard {...value} />)
expect(screen.queryByRole('button', { name: '展开方案' })).toBeNull()
expect(screen.getByText(/Keep my task count visible/).textContent).toBe(short)
// 129 wide graphemes (258 units) plus one narrow emoji fill the 260-unit budget; the next grapheme folds.
const prefix = '计'.repeat(129) + '👩🏽‍💻'
value.recommendation = { ...value.recommendation, brief: prefix + '\n\n保留完整方案,点击创建后交给 Creator。' }
view.rerender(<RecommendationCard {...value} />)
const expand = screen.getByRole('button', { name: '展开方案' })
const paragraph = document.getElementById(expand.getAttribute('aria-controls')!)!
expect(paragraph.textContent).toBe(prefix + '…')
expect(expand.getAttribute('aria-expanded')).toBe('false')
fireEvent.click(expand)
expect(screen.getByRole('button', { name: '收起方案' }).getAttribute('aria-expanded')).toBe('true')
expect(paragraph.textContent).toBe(value.recommendation.brief)
expect(value.act).not.toHaveBeenCalled()
fireEvent.click(screen.getByRole('button', { name: '收起方案' }))
expect(paragraph.textContent).toBe(prefix + '…')
value.recommendation = { ...value.recommendation, brief: prefix }
view.rerender(<RecommendationCard {...value} />)
expect(screen.queryByRole('button', { name: '展开方案' })).toBeNull()
expect(paragraph.textContent).toBe(prefix)
})
it('shows supplied initial content as folded data below the plan and omits it otherwise', () => {
const value = props()
const view = render(<RecommendationCard {...value} />)
const view = render(<PageCardBody {...props()} />)
expect(screen.queryByText('预填内容')).toBeNull()
const items = '1. 导出成功\n2. 断网提示清楚'
value.recommendation = { ...value.recommendation, initialContent: items }
view.rerender(<RecommendationCard {...value} />)
view.rerender(<PageCardBody {...props(undefined, true, { slot: 'sidebar-right', initialContent: items })} />)
expect(screen.getByText('预填内容')).toBeTruthy()
expect(screen.getByText(/导出成功/).textContent).toBe(items)
expect(screen.queryByRole('button', { name: '展开内容' })).toBeNull()
value.recommendation = { ...value.recommendation, initialContent: '条'.repeat(131) }
view.rerender(<RecommendationCard {...value} />)
const expand = screen.getByRole('button', { name: '展开内容' })
fireEvent.click(expand)
view.rerender(<PageCardBody {...props(undefined, true, { slot: 'sidebar-right', initialContent: '条'.repeat(131) })} />)
fireEvent.click(screen.getByRole('button', { name: '展开内容' }))
expect(screen.getByRole('button', { name: '收起内容' }).getAttribute('aria-expanded')).toBe('true')
expect(value.act).not.toHaveBeenCalled()
})
it('falls back to the summary for invalid fields and ignores unknown phases and invalid data', () => {
const invalid = render(<PageCardBody {...props(undefined, true, { slot: 'elsewhere' })} />)
expect(screen.getByText('Counter')).toBeTruthy()
expect(screen.queryByRole('button')).toBeNull()
invalid.unmount()
render(<PageCardBody {...props({ phase: 'archived', data: { slot: 'elsewhere' } }, false)} />)
expect(screen.queryByRole('status')).toBeNull()
expect(screen.getByText('Add to · Right sidebar')).toBeTruthy()
})
@@ -0,0 +1,37 @@
// @vitest-environment jsdom
/** The body registers into the shared card registry with its copy and leaves both on unload. */
import { cleanup, render, screen } from '@testing-library/react'
import { Context } from '@deepseek-ai/cordis'
import { LocaleRuntime } from '@deepseek-ai/dsh-client-locale/client'
import { ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import { SessionId } from '@deepseek-ai/dsh-session/types'
import type { ActionCardDescriptor } from '@deepseek-ai/dsh-experimental-client-ui-action-cards/client'
import { FoldedText } from '@deepseek-ai/dsh-experimental-client-ui-action-cards/src/client/Card.tsx'
import { afterEach, expect, it, onTestFinished, vi } from 'vitest'
import { apply, inject } from '../src/client/mount.ts'
import { apply as hostApply } from '../src/index.ts'
import { en } from '../src/client/locales.ts'
afterEach(() => { cleanup(); localStorage.clear() })
it('registers the page body and its copy for the plugin lifetime', async () => {
hostApply()
const ctx = new Context()
onTestFinished(() => ctx.fiber.dispose())
const unregister = vi.fn()
const register = vi.fn((_descriptor: ActionCardDescriptor<'creationRecommendations'>) => unregister)
ctx.provide('actionCards', { register })
const locale = new LocaleRuntime(ctx)
ctx.provide('locale', locale)
const fiber = await ctx.plugin({ inject, apply })
const descriptor = register.mock.calls[0]![0]
expect(descriptor).toMatchObject({ action: 'create_personalized_page', locale: 'creationRecommendations' })
expect(locale.bind('creationRecommendations')('heading')).toBe('Personalized pages')
const t = locale.bind('creationRecommendations')
render(<descriptor.Body proposal={{ callId: ToolCallId('card'), turn: 1, action: 'create_personalized_page', title: 'Counter', brief: 'Keep count.',
details: { slot: 'page' } }} decision={undefined} ready sessionId={SessionId('session')} summary={null} Folded={FoldedText} act={vi.fn()} t={t} />)
expect(screen.getByRole('note').textContent).toContain(en.creationCost)
await fiber.dispose()
expect(unregister).toHaveBeenCalledOnce()
expect(locale.bind('creationRecommendations')('heading')).toBe('heading')
})
@@ -8,47 +8,14 @@
"src"
],
"references": [
{
"path": "../../client/ui-renderer"
},
{
"path": "../../../vendor/cordis"
},
{
"path": "../../api/remotes/tsconfig.client.json"
},
{
"path": "../../client/locale/tsconfig.client.json"
},
{
"path": "../../client/ui-conversation/tsconfig.client.json"
},
{
"path": "../../client/ui-chat/tsconfig.client.json"
},
{
"path": "../../client/ui-session"
},
{
"path": "../../client/ui-slots"
},
{
"path": "../../client/ui-primitives"
},
{
"path": "../../llm/llm"
},
{
"path": "../../core/session"
},
{
"path": "../creation-recommendations"
},
{
"path": "../../client/store"
},
{
"path": "../../typert/protocol"
}
{ "path": "../../client/ui-renderer" },
{ "path": "../../../vendor/cordis" },
{ "path": "../../client/locale/tsconfig.client.json" },
{ "path": "../../client/ui-slots" },
{ "path": "../../client/ui-primitives" },
{ "path": "../creation-recommendations" },
{ "path": "../action-cards" },
{ "path": "../client-ui-action-cards" },
{ "path": "../../client/store" }
]
}
@@ -15,17 +15,17 @@
en: d152484eb41ac6b4
zh: b00dddf4c88f0a45
/deepseek-ai-dsh-experimental-creation-recommendations/use-this-package:
en: 0ea638aadccfd463
zh: 55fb6431856f5706
en: 8a96a28c04322c75
zh: 6354d18381fd5375
/deepseek-ai-dsh-experimental-creation-recommendations/use-this-package/outcomes-and-recovery:
en: 75cdb583d25d31f5
zh: 897056d3f05e387f
en: 3c9b20154844a5d1
zh: 292e3ed48d646261
/deepseek-ai-dsh-experimental-creation-recommendations/understand-the-implementation:
en: d0d61f56c8e6e179
zh: 2ed81dd8cf863e27
en: ae9c8ffae12e9cf9
zh: 86a27ce22307b8fc
/deepseek-ai-dsh-experimental-creation-recommendations/further-exploration:
en: 923cd437ef0fa72c
zh: ce32b7486f329738
en: 056d3e9b67fd628e
zh: 71db00e1a971d495
/deepseek-ai-dsh-experimental-creation-recommendations/model-experience:
en: 215e7ba838619b7b
zh: a311da3843709f90
@@ -33,17 +33,17 @@
en: b950fbe9f29693d4
zh: 2dd7edb2d1c72941
/deepseek-ai-dsh-experimental-creation-recommendations/model-experience/creation-recommendations/what-the-model-sees:
en: d32901f6aab5d506
zh: 94e26057c69d6395
en: 8c7dec7941c9d0f8
zh: 89f418aaf5759962
/deepseek-ai-dsh-experimental-creation-recommendations/model-experience/creation-recommendations/token-effect:
en: c4a1a1320a9a61fb
zh: 499d2e790b82f3fc
en: bd78818f4a9f5422
zh: 0f54dbd0f41c5622
/deepseek-ai-dsh-experimental-creation-recommendations/model-experience/creation-recommendations/kv-cache-effect:
en: 23fdd018d8974366
zh: e2a4d7fef8b16215
en: c2046060f1ce1f08
zh: 08e37f9f758939bc
/deepseek-ai-dsh-experimental-creation-recommendations/known-limitations-and-deferred-work:
en: 9415033c52000328
zh: 2a325c5ab180bf41
en: 7f6c43730b74d1f5
zh: 8fdd41c9abba4190
/deepseek-ai-dsh-experimental-creation-recommendations/known-limitations-and-deferred-work/dev-note:
en: e67f633dc6fe7773
zh: 8ec3e73528ddb1a6
@@ -25,7 +25,7 @@ For an explicit interface request, a clear implied viewing or editing need, or a
<a id="use-this-package"></a>
## Use this package
Open Plugins → More → Experimental plugins and enable Personalized pages. Shipped profiles leave it disabled. Enabling pins it to the main Plugins list; disabling returns it to the secondary page only. Its one configuration field, `queuedMessageLimit`, is the number of queued next-turn messages at or above which the current turn offers no card; the default is 2. An explicit user location takes precedence; otherwise the Agent recommends a location by scope and interaction:
Open Plugins → More → Experimental plugins and enable Personalized pages. Shipped profiles leave it disabled. Enabling pins it to the main Plugins list; disabling returns it to the secondary page only. The bundle also enables the shared [action card service](../action-cards/README.md) and its browser half; that service's `queuedMessageLimit` sets how many queued next-turn messages stop the current turn's card. An explicit user location takes precedence; otherwise the Agent recommends a location by scope and interaction:
| Location | Use |
|:--|:--|
@@ -41,11 +41,11 @@ Personalized pages works on its own. It plans new interfaces for work and person
An explicit interface request does not require repeated use or changing data. A requested file, code snippet or change to an existing project keeps that delivery form; visual or interactive content alone does not justify an installed plugin. Without an interface request, a recommendation needs a concrete later action that the current answer cannot provide, such as maintaining a record or exploring changing results; repackaging static prose or a table is insufficient. Editing an existing page stays with that page's development workflow; this creation action does not replace it with a new plugin. An explanation-only request needs no source investigation. Persistence, manual maintenance, refreshing when opened and unattended updates are separate requirements.
For multiple independent needs, guidance selects one page proposal for the answer. Explicit user priority wins; otherwise an existing plugin takes precedence. Other needs stay in the answer. Clarification asks only for missing facts that change the outcome; the plan must not infer purpose or data from another wish. A rejected proposal creates no card and does not schedule a future one. Discovery for an unselected page is unnecessary once an existing plugin is selected. These semantic instructions supplement the Host’s limit of one card per turn: only the first valid block admitted in a turn becomes a card.
For multiple independent needs, guidance selects one page proposal for the answer. Explicit user priority wins; otherwise an existing plugin takes precedence. Other needs stay in the answer. Clarification asks only for missing facts that change the outcome; the plan must not infer purpose or data from another wish. A rejected proposal creates no card and does not schedule a future one. Discovery for an unselected page is unnecessary once an existing plugin is selected. These semantic instructions supplement the Host’s limit of one card per turn: only the first accepted `propose_action` call of a turn becomes a card.
### Outcomes and recovery
The card appears after the Turn whose answer carries the block ends. An unstarted proposal stays available across later human messages, including follow-ups about its plan. The next proposal in the same conversation replaces it: the old card shows Replaced without creation controls, and the Host refuses its stale clicks, so one unstarted card exists per conversation. Refreshing, switching views and background notices do not change a card. Already-started work keeps its progress and retry controls. Replacement is derived from the later proposal, not a new persisted decision record. While the user has queued `queuedMessageLimit` or more messages for later turns, a proposal written in the current turn is logged but never offered.
The card appears after the Turn of its accepted call ends. An unstarted proposal stays available across later human messages, including follow-ups about its plan. The next proposal in the same conversation replaces it: the old card shows Replaced without creation controls, and the Host refuses its stale clicks, so one unstarted card exists per conversation. Refreshing, switching views and background notices do not change a card. Already-started work keeps its progress and retry controls. Replacement is derived from the later proposal, not a new persisted decision record. While the user has queued `queuedMessageLimit` or more messages for later turns, a proposal written in the current turn is logged but never offered.
Creation requires a live root conversation, permission to modify the profile, and a Session sandbox mode other than read-only: the Creator inherits that mode, so a read-only Session refuses Create and leaves the card unstarted. Cancel is available during generation; retry waits for the child’s cleanup. Once installation starts, the card shows Installing and lets the accepted operation finish. Closing or leaving the conversation does not uninstall a completed plugin. Receipts survive reconnects; interrupted or uncertain runs are reconciled with the installed bundle before retry. Failed removal preserves the existing receipt and its application outcome for retry. Unloading this recommendation bundle stops its Creator work and local follow-up. Plugin Manager owns accepted profile changes and may finish after reload; reopening checks the installed profile before retrying. Installed plugins remain. Recovery confirms installation only; it does not infer runtime activation from the profile’s enabled flag.
@@ -61,13 +61,13 @@ The next naturally occurring model request receives the latest unreported status
<details>
<summary>Implementation internals — click to expand</summary>
The Host entry is a function plugin. Its `apply` assembles the internal `creationRecommendations` Remote service with `ctx.plugin`. That service owns feature state, effect lifetimes and typed button calls; it is not a separately configurable or replaceable YAML entry, and adds no service to `dsh-base`. Disabling the feature disposes its internal service, tools and listeners and drains its owned asynchronous work. This follows the existing `command-feedback` composition of `sessionFeedback`.
The Host entry is a function plugin that injects `actionCards`; it provides no service or Remote of its own and adds nothing to `dsh-base`. Disabling the feature removes its skill and card kind and drains its owned Creator work.
The plugin adds no model tool. A proposal is one fenced `dsh-action` JSON object at the end of the final answer. [`dsh-util-action-block`](../../util/action-block/README.md) finds only top-level fences by CommonMark rules, so an example nested in another fence or an unclosed block creates nothing. The Session projection reads the last valid block of an assistant message, identifies it by the message id, records the Turn in which it was admitted, and keeps one card per turn: a later block in the same turn creates nothing. A proposal written while `queuedMessageLimit` or more user messages are queued is logged but marked suppressed and never offered. Events a forked Session inherits create no proposals or receipts, so a fork starts without cards. The projection’s client view carries the admitted proposals with their Turns beside the receipts. The chat hides fences in the `dsh-` language namespace from rendered answers; the Trajectory view and the session log keep the answer as written. This experiment has no action-card service, public registry or Loader entry; other action types share the block format once a second consumer registers one.
The plugin registers the `create_personalized_page` kind with the shared [action card service](../action-cards/README.md): the `personalized-pages` skill, `details` with `slot` and optional `initialContent`, and the verbs Create, Keep, Undo, Cancel and Restore. The service owns the `propose_action` tool, the card projection, Not now, the Remote action and the status notice. This plugin handles the other verbs and records decisions whose data carries the location, any written placement, the reserved package name and the latest installation outcome; the status notice reports all but the package name. Not now is recorded for an unstarted card and for cancelled, failed, interrupted or unconfirmed runs.
The block format carries typed proposals and defines click-to-start semantics; each action supplies its fields and Skill entry. `personalized-pages` owns eligibility, duplicate checks, minimal scope, placement and content preparation. It allows implementation details needed for the agreed behavior, such as input validation and empty states; independent operations, sources, automation or broader access require a basis in the request or agreed context.
The card tool carries typed proposals and defines click-to-start semantics; each kind supplies its fields and Skill entry. `personalized-pages` owns eligibility, duplicate checks, minimal scope, placement and content preparation. It allows implementation details needed for the agreed behavior, such as input validation and empty states; independent operations, sources, automation or broader access require a basis in the request or agreed context.
The Host reserves a new package name and launches the existing `cordis` preset through `subagents`, passing a self-contained brief and the selected location. The child generates files in `.dsh-created-plugins/<id>` under the parent’s original workspace, preserving its delegated file permissions. While the Creator runs, it and every agent created under it may only list plugins, bundles and version exemptions through `plugin_manager`; the Host performs the installation. The Host validates the package identity and an insert-only plain YAML or JSON patch, copies the result to the profile’s `created-plugins` directory and validates that copy before calling `pluginManager.installBundle`. Installation remains independent of the source workspace. The patch may add only the new package’s uniquely named, non-group rows. Custom YAML tags, aliases and includes are rejected. Each row must resolve to an existing built JavaScript entry, and a package declaring `dsh.client` must also export a built `./client` JavaScript entry. Relative symlinks must stay inside the package and are preserved during copying. A Session projection retains proposals and decision receipts. Recovery failures leave the conversation open and mark the result unconfirmed; retries must recheck the profile before creating anything. Completion targets the current instance of a reopened Session. Concurrent clicks share one operation; the projection admits one proposal per turn.
The Host reserves a new package name and launches the existing `cordis` preset through `subagents`, passing a self-contained brief and the selected location. The child generates files in `.dsh-created-plugins/<id>` under the parent’s original workspace, preserving its delegated file permissions. While the Creator runs, it and every agent created under it may only list plugins, bundles and version exemptions through `plugin_manager`; the Host performs the installation. The Host validates the package identity and an insert-only plain YAML or JSON patch, copies the result to the profile’s `created-plugins` directory and validates that copy before calling `pluginManager.installBundle`. Installation remains independent of the source workspace. The patch may add only the new package’s uniquely named, non-group rows. Custom YAML tags, aliases and includes are rejected. Each row must resolve to an existing built JavaScript entry, and a package declaring `dsh.client` must also export a built `./client` JavaScript entry. Relative symlinks must stay inside the package and are preserved during copying. The shared Session projection retains proposals and decision receipts. Recovery failures leave the conversation open and mark the result unconfirmed; retries must recheck the profile before creating anything. Completion targets the current instance of a reopened Session. Concurrent clicks share one operation; the projection admits one proposal per turn.
The Creator receives the accepted brief, the user’s final location as authoritative over earlier placement text, and a location-specific reference shipped in this package. Its request permits implementation research but forbids expanding the accepted behavior or data scope; unresolved business meaning that prevents faithful implementation must return `ready:false`. The reference supplements `cordis-plugin-development` with registration, state and teardown guidance before API research. Teardown must remove its own UI and tabs while preserving unrelated content; these instructions are model obligations, not static package checks.
@@ -88,7 +88,7 @@ Both fields survive replay and reach Creator unchanged. This preserves submitted
- [Plugin manager](../../boot/plugin-manager/README.md) — installation and removal.
- [Subagents](../../subagent/subagent/README.md) — owned background activations.
- [Creation cards](../client-ui-creation-recommendations/README.md) — location selection and receipts.
- [Action blocks](../../util/action-block/README.md) — the fence rules of proposal blocks.
- [Action cards](../action-cards/README.md) — the card tool, card state and user actions.
<a id="model-experience"></a>
## Model Experience
@@ -97,15 +97,15 @@ Both fields survive replay and reach Creator unchanged. This preserves submitted
#### What the model sees
The existing `skill` tool loads `personalized-pages` for an explicit interface request, a clear implied viewing or editing need, or a result with concrete continuing use. Its short catalog entry describes these conditions without naming individual plugin use cases; no common system-prompt section is added. Loading returns planning and placement guidance plus current official-plugin names, descriptions and enabled state for duplicate checks. The catalog does not trigger planning and is not a complete inventory of built-in UI. Existing-feature questions, edits to an existing page, ordinary answers or coding, quoted wishes, discussion-only and declined requests need no creation card. An explicitly requested one-off interface remains eligible. A live view of the app's own data qualifies without an explicit page request. A suitable existing capability replaces a duplicate page proposal; unconfirmed details remain explicit. No tool is added: the proposal is a `dsh-action` block with `action: "create_personalized_page"`, `title`, a one-to-three-sentence `brief` containing only requested or essential behavior, and `slot`, plus optional `initialContent` for supplied data without invented rows or units. No business field such as an assignee is required. The block itself is the submission; nothing starts until the user clicks Create. Plan-only and read-only requests permit a proposal. The answer ends with one short invitation that names the background build, its time and token cost, and the Create click. Only clicking Create starts background Creator work; the Agent must not wait, poll, claim installation or request a refresh/report-back. Ordinary answers stay plain text; only a closed top-level `dsh-action` block is parsed for a card.
The existing `skill` tool loads `personalized-pages` for an explicit interface request, a clear implied viewing or editing need, or a result with concrete continuing use. Its short catalog entry describes these conditions without naming individual plugin use cases; no common system-prompt section is added. Loading returns planning and placement guidance plus current official-plugin names, descriptions and enabled state for duplicate checks. The catalog does not trigger planning and is not a complete inventory of built-in UI. Existing-feature questions, edits to an existing page, ordinary answers or coding, quoted wishes, discussion-only and declined requests need no creation card. An explicitly requested one-off interface remains eligible. A live view of the app's own data qualifies without an explicit page request. A suitable existing capability replaces a duplicate page proposal; unconfirmed details remain explicit. The proposal is one [`propose_action`](../action-cards/README.md#model-experience) call in the same Turn as the skill load, with `action: "create_personalized_page"`, `title`, a one-to-three-sentence `brief` containing only requested or essential behavior, and `details` holding `slot` plus optional `initialContent` for supplied data without invented rows or units. No business field such as an assignee is required. The call itself is the submission; nothing starts until the user clicks Create. Plan-only and read-only requests permit a proposal. The answer ends with one short invitation that names the background build, its time and token cost, and the Create click. Only clicking Create starts background Creator work; the Agent must not wait, poll, claim installation or request a refresh/report-back.
#### Token effect
While enabled, requests carry only the Skill catalog entry; no tool description or parameter schema is added. Full planning policy, handoff examples and current official-plugin descriptions load through `skill` when needed. A normal creation recommendation needs one skill load and no further model round trip: the block is part of the final answer. Only an accepted creation spends a background Creator run. The card's information button explains potentially long generation and substantial token use; reading it starts no work.
While enabled, requests carry the Skill catalog entry; the shared card tool is declared only after this skill loads. Full planning policy, handoff examples and current official-plugin descriptions load through `skill` when needed. A creation recommendation needs one skill load and one `propose_action` call before the final answer. Only an accepted creation spends a background Creator run. The card's information button explains potentially long generation and substantial token use; reading it starts no work.
#### KV Cache effect
Skill contents and proposal metadata append to the transcript; loading the skill does not rewrite the common system prompt. Enabling or disabling this experiment adds or removes only its Skill catalog entry; the tool list is unchanged. Installing a generated plugin can change later tool declarations and cache reuse. Changed card receipts append a short status notice to the next request; unchanged cards add no repeated context. This uses the existing request-preparation hook and adds neither a tool nor a model call.
Skill contents and proposal metadata append to the transcript; loading the skill does not rewrite the common system prompt. Enabling or disabling this experiment adds or removes its Skill catalog entry; the card tool joins the declarations only after the skill loads, as the [action cards](../action-cards/README.md#model-experience) page describes. Installing a generated plugin can change later tool declarations and cache reuse. Changed card receipts append a short status notice to the next request; unchanged cards add no repeated context. The shared card service adds that notice during request preparation without a model call.
## Known Limitations and Deferred Work
@@ -116,7 +116,6 @@ Skill contents and proposal metadata append to the transcript; loading the skill
- Source directories and profile copies remain after success, failure, cancellation and Undo. Undo removes the installed plugin and its UI, not these files. The card identifies `.dsh-created-plugins/` in the original workspace as the source location. Historical receipts do not continuously track manual plugin changes.
- There is no automatic creation timeout. Closing the Session or disabling this experiment stops owned generation; Plugin Manager retains ownership of an accepted installation.
- The Session projection reads `queuedMessageLimit` while its state version stays fixed. A changed limit applies to Sessions folded again from their log; cached projection rows keep the suppression decided under the earlier limit.
<a id="dev-note"></a>
### Dev Note
@@ -25,7 +25,7 @@ kind: "package-bundle"
<a id="use-this-package"></a>
## 使用本包
打开插件 → 更多 → 实验性插件,启用个性化页面。内置配置档案默认不启用此插件。启用后在插件一级页显示,关闭后仅保留在二级页。它只有一个配置字段 `queuedMessageLimit`:为后续轮次排队的消息达到这个数量及以上时,本轮不给出卡片;默认为 2。用户明确指定的位置优先;否则 Agent 根据作用范围和交互方式推荐:
打开插件 → 更多 → 实验性插件,启用个性化页面。内置配置档案默认不启用此插件。启用后在插件一级页显示,关闭后仅保留在二级页。该 Bundle 同时启用共享的[操作卡片服务](../action-cards/README.zh.md)及其浏览器端;该服务的 `queuedMessageLimit` 规定为下一轮排队的消息达到多少条时本轮不再出卡。用户明确指定的位置优先;否则 Agent 根据作用范围和交互方式推荐:
| 位置 | 用途 |
|:--|:--|
@@ -41,11 +41,11 @@ kind: "package-bundle"
明确提出界面需求时,不要求反复使用或数据变化。用户要求文件、代码片段或修改现有项目时,保留该交付形式;内容可视化或可交互本身不构成安装插件的理由。没有界面请求时,推荐需要当前回答无法提供的具体后续操作,例如维护记录或探索变化的结果;仅重新包装静态正文或表格不够。修改已有页面沿用该页面的开发流程,此创建动作不以新插件替代原页面。只要求讲解改法时,不调查源码。持久化、手动维护、打开时刷新和关闭后自动更新是不同需求。
面对多个独立需求,指引要求回答只选定一个页面方案。优先遵循用户明确指定的顺序,否则先推荐现成插件。其余需求在正文说明。仅当缺失信息会改变功能结果时才澄清,不从另一个愿望推断用途或数据来源。被拒绝的建议不会生成卡片,也不会安排未来自动出卡。选定现成插件后,无需为未选中的页面需求查询目录。这些语义指引补充 Host 每轮最多一张卡片的限制:一轮里只有第一个被接纳的合法块会成为卡片。
面对多个独立需求,指引要求回答只选定一个页面方案。优先遵循用户明确指定的顺序,否则先推荐现成插件。其余需求在正文说明。仅当缺失信息会改变功能结果时才澄清,不从另一个愿望推断用途或数据来源。被拒绝的建议不会生成卡片,也不会安排未来自动出卡。选定现成插件后,无需为未选中的页面需求查询目录。这些语义指引补充 Host 每轮最多一张卡片的限制:一轮里只有第一个被接受的 `propose_action` 调用会成为卡片。
### 操作结果与恢复
卡片在带有该块的回答所在轮次结束后出现。尚未创建的方案在后续人工消息之后仍然可用,包括对方案的追问。同一会话里的下一个方案会替换它:旧卡片显示“已替换”,没有创建控件,Host 也会拒绝对它的过时点击,因此每个会话只有一张未开始的卡片。刷新、切换视图和后台通知不会改变卡片。已开始的任务保留进度和重试控件。替换由后来的方案推导得出,不是新的持久化决定记录。当用户为后续轮次排队的消息达到 `queuedMessageLimit` 条及以上时,本轮写出的方案只记录、不出卡。
卡片在被接受的调用所在轮次结束后出现。尚未创建的方案在后续人工消息之后仍然可用,包括对方案的追问。同一会话里的下一个方案会替换它:旧卡片显示“已替换”,没有创建控件,Host 也会拒绝对它的过时点击,因此每个会话只有一张未开始的卡片。刷新、切换视图和后台通知不会改变卡片。已开始的任务保留进度和重试控件。替换由后来的方案推导得出,不是新的持久化决定记录。当用户为后续轮次排队的消息达到 `queuedMessageLimit` 条及以上时,本轮写出的方案只记录、不出卡。
创建要求当前会话是活动的根会话、连接有权修改配置档案,且 Session 的沙箱模式不是只读:Creator 继承该模式,因此只读 Session 拒绝创建,卡片保持未开始。生成阶段可取消,子任务清理完毕后才能重试。安装开始后显示“正在安装”,等待已接纳的操作结束。关闭或离开会话不会卸载已完成的插件。重新连接后会恢复操作记录;重试之前会对照已安装插件检查中断或结果不明的创建。移除失败时保留已有记录和实际生效结果,以便重试。卸载推荐插件会停止它负责的 Creator 任务和本地后续处理。已接纳的配置变更由插件管理器负责,可能在重载后完成;重新打开会话时先检查安装状态再允许重试。已安装插件仍然保留。恢复只确认安装,不根据配置中的开启标记推断运行时已生效。
@@ -61,13 +61,13 @@ kind: "package-bundle"
<details>
<summary>实现细节 — 点击展开</summary>
Host 入口是普通函数插件,在 `apply` 内通过 `ctx.plugin` 组装内部 `creationRecommendations` Remote service。该 service 负责本功能的状态、effect 生命周期和类型化按钮通信,不作为可替换能力单独暴露为 YAML 条目;`dsh-base` 不增加 service。关闭功能插件时一并卸载内部 service、工具和监听,并清理其负责的异步工作。此结构沿用 `command-feedback` 组装 `sessionFeedback` 的现有方式。
Host 入口是注入 `actionCards` 的普通函数插件;它不提供自己的 service 或 Remote,也不向 `dsh-base` 增加任何内容。关闭功能插件时移除它的 Skill 和卡片种类,并清理其负责的 Creator 任务。
插件不新增模型工具。提案是最终回答末尾的一个 `dsh-action` 围栏 JSON 对象。[`dsh-util-action-block`](../../util/action-block/README.zh.md) 按 CommonMark 规则只识别顶层围栏,因此嵌在其他围栏里的示例或未闭合的块不产生任何东西。Session 投影读取助手消息里最后一个合法的块,用消息 id 标识它,记录接纳它的轮次,每轮只认一张卡:同一轮里后写出的块不产生任何东西。用户排队的消息达到 `queuedMessageLimit` 条及以上时写出的提案会被记录但标为“未展示”,不会出卡。分叉 Session 继承的事件不产生提案或操作记录,因此分叉出的会话没有卡片。投影的客户端视图在操作记录之外,还带有已接纳的提案及其轮次。聊天视图隐藏 `dsh-` 语言前缀的围栏;轨迹视图和会话日志保留原始回答。本实验没有卡片 service、公共注册中心或独立 Loader 条目;第二个消费者注册后,其他动作类型共用同一块格式。
插件向共享的[操作卡片服务](../action-cards/README.zh.md)注册 `create_personalized_page` 种类:`personalized-pages` Skill、含 `slot` 和可选 `initialContent` 的 `details`,以及创建、保留、撤销、取消和恢复五个操作。该服务负责 `propose_action` 工具、卡片投影、“暂不需要”、Remote 操作和状态通知。本插件处理其余操作,记录的决定数据包含位置、手写位置、预留包名和最近一次安装结果;状态通知报告其中除包名以外的字段。尚未开始的卡片,以及已取消、失败、中断或结果不明的创建,都可以记录“暂不需要”。
块格式承载类型化提案,定义点击后执行的语义;各动作提供自己的字段和 Skill 入口。`personalized-pages` 负责适用条件、查重、最小范围、选位和内容准备。它允许补齐实现已确认行为所需的细节,例如输入校验和空状态;新增独立操作、数据源、自动任务或访问范围,需要用户请求或已确认上下文的依据。
卡片工具承载类型化提案,定义点击后执行的语义;各种类提供自己的字段和 Skill 入口。`personalized-pages` 负责适用条件、查重、最小范围、选位和内容准备。它允许补齐实现已确认行为所需的细节,例如输入校验和空状态;新增独立操作、数据源、自动任务或访问范围,需要用户请求或已确认上下文的依据。
Host 预留新包名,通过 `subagents` 启动已有的 `cordis` 预设,传入完整需求和选定位置。子 Agent 在父会话原工作区的 `.dsh-created-plugins/<id>` 下生成文件,保留委派时的文件权限。Creator 运行期间,它和在它之下创建的每个 Agent 只能通过 `plugin_manager` 列出插件、Bundle 和版本豁免;安装由 Host 执行。Host 校验包身份和仅允许新增的普通 YAML 或 JSON 补丁,将结果复制到配置档案的 `created-plugins` 目录并再次校验,再调用 `pluginManager.installBundle`;安装后的插件不依赖原工作区。补丁只能添加该新包自身且名称唯一的非分组条目;不接受自定义 YAML 标签、别名或 include。每个条目必须能解析到已构建的 JavaScript 文件;声明了 `dsh.client` 的包还必须导出已构建的 `./client` JavaScript 入口。相对符号链接必须留在包内,复制时保留原目标。Session 投影保存建议和操作记录。恢复失败时仍可打开会话,卡片显示结果不明;重试必须先检查配置档案。后台完成结果写入重新打开的当前 Session 实例。并发点击共用一次操作;投影每轮只接纳一个提案。
Host 预留新包名,通过 `subagents` 启动已有的 `cordis` 预设,传入完整需求和选定位置。子 Agent 在父会话原工作区的 `.dsh-created-plugins/<id>` 下生成文件,保留委派时的文件权限。Creator 运行期间,它和在它之下创建的每个 Agent 只能通过 `plugin_manager` 列出插件、Bundle 和版本豁免;安装由 Host 执行。Host 校验包身份和仅允许新增的普通 YAML 或 JSON 补丁,将结果复制到配置档案的 `created-plugins` 目录并再次校验,再调用 `pluginManager.installBundle`;安装后的插件不依赖原工作区。补丁只能添加该新包自身且名称唯一的非分组条目;不接受自定义 YAML 标签、别名或 include。每个条目必须能解析到已构建的 JavaScript 文件;声明了 `dsh.client` 的包还必须导出已构建的 `./client` JavaScript 入口。相对符号链接必须留在包内,复制时保留原目标。共享的 Session 投影保存建议和操作记录。恢复失败时仍可打开会话,卡片显示结果不明;重试必须先检查配置档案。后台完成结果写入重新打开的当前 Session 实例。并发点击共用一次操作;投影每轮只接纳一个提案。
Creator 收到已接受的完整方案、优先于早先位置描述的用户最终选位,以及本插件随包提供的位置指南。执行请求允许调研实现细节,但不得扩大已接受的行为和数据范围;业务含义不明导致无法忠实实现时,应返回 `ready:false`。位置指南补充 `cordis-plugin-development`,在 API 调研前提供注册、状态和卸载指引。卸载时应移除自己的界面和页签,保留其他内容;这些是模型执行要求,不是静态包校验。
@@ -88,7 +88,7 @@ Creator 收到已接受的完整方案、优先于早先位置描述的用户最
- [插件管理](../../boot/plugin-manager/README.zh.md) — 安装和移除。
- [子 Agent](../../subagent/subagent/README.zh.md) — 后台任务生命周期。
- [创建卡片](../client-ui-creation-recommendations/README.zh.md) — 位置选择与操作记录。
- [动作块](../../util/action-block/README.zh.md) — 提案块的围栏规则。
- [操作卡片](../action-cards/README.zh.md) — 卡片工具、卡片状态与用户操作。
<a id="model-experience"></a>
## 模型体验
@@ -97,15 +97,15 @@ Creator 收到已接受的完整方案、优先于早先位置描述的用户最
#### 模型看到的内容
已有 `skill` 工具在用户明确提出界面需求、隐含表达清晰的查看或编辑需求,或结果有具体后续用途时加载 `personalized-pages`。简短目录描述这些适用条件,不逐项列举插件场景,也不新增公共 system prompt。加载后返回规划和位置指引,以及供查重的当前官方插件名称、描述和启用状态。目录不负责触发规划,也不是内置 UI 的完整清单。询问现成功能、修改已有页面、普通回答或开发、引用中的愿望、只讨论及已拒绝的请求不需要创建卡。明确提出的一次性界面仍可出卡。查看本应用自身数据(会话、任务、日志、工作区文件)的实时视图,不需要明确要求页面也可出卡。已有能力合适时不再提重复页面方案;无法确认的细节保持明确。不新增工具:提案是一个 `dsh-action` 块,含 `action: "create_personalized_page"`、`title`、只写请求或必要行为的一到三句 `brief`、`slot`,以及可选的 `initialContent` 用于已提供的数据,不编造行或单位。块本身就是提交;用户点击创建之前不会开始任何工作。先给方案、只读模式仍允许提交建议。回答末尾用一句简短邀请说明后台创建、耗时和 token 成本以及点击创建;只有点击创建才后台启动 Creator;Agent 不等待、轮询、声称已安装或要求刷新、报告完成。普通回答仍是文本;只有已闭合的顶层 `dsh-action` 块会被解析成卡片。
已有 `skill` 工具在用户明确提出界面需求、隐含表达清晰的查看或编辑需求,或结果有具体后续用途时加载 `personalized-pages`。简短目录描述这些适用条件,不逐项列举插件场景,也不新增公共 system prompt。加载后返回规划和位置指引,以及供查重的当前官方插件名称、描述和启用状态。目录不负责触发规划,也不是内置 UI 的完整清单。询问现成功能、修改已有页面、普通回答或开发、引用中的愿望、只讨论及已拒绝的请求不需要创建卡。明确提出的一次性界面仍可出卡。查看本应用自身数据(会话、任务、日志、工作区文件)的实时视图,不需要明确要求页面也可出卡。已有能力合适时不再提重复页面方案;无法确认的细节保持明确。提案是与加载 Skill 同一轮中的一次 [`propose_action`](../action-cards/README.zh.md#model-experience) 调用,含 `action: "create_personalized_page"`、`title`、只写请求或必要行为的一到三句 `brief`,以及 `details`:其中有 `slot`,可选的 `initialContent` 用于已提供的数据,不编造行或单位。调用本身就是提交;用户点击创建之前不会开始任何工作。先给方案、只读模式仍允许提交建议。回答末尾用一句简短邀请说明后台创建、耗时和 token 成本以及点击创建;只有点击创建才后台启动 Creator;Agent 不等待、轮询、声称已安装或要求刷新、报告完成。
#### Token 影响
启用后,请求只带 Skill 目录里的一条摘要,不新增工具说明和参数 schema。完整规划策略、交接示例和当前官方插件描述由 `skill` 按需加载。一次普通创建推荐只需一次 Skill 加载,不再多一次模型往返:块是最终回答的一部分。只有用户接受创建后,才会产生后台 Creator 调用。卡片的信息按钮说明生成可能耗时较长、消耗大量 token;查看说明不会启动任务。
启用后,请求带 Skill 目录里的一条摘要;共享的卡片工具只在此 Skill 加载后才声明。完整规划策略、交接示例和当前官方插件描述由 `skill` 按需加载。一次创建推荐需要一次 Skill 加载,并在最终回答前调用一次 `propose_action`。只有用户接受创建后,才会产生后台 Creator 调用。卡片的信息按钮说明生成可能耗时较长、消耗大量 token;查看说明不会启动任务。
#### KV Cache effect
Skill 内容和建议元数据追加到对话;加载 Skill 不改写公共 system prompt。开启或关闭本实验只添加或移除它的 Skill 目录条目,工具列表不变。安装生成的插件可能改变后续工具声明和缓存复用。变化后的卡片记录会以简短状态通知追加到下一次请求;状态不变的卡片不重复增加上下文。这里复用已有的请求准备钩子,不增加工具或模型调用。
Skill 内容和建议元数据追加到对话;加载 Skill 不改写公共 system prompt。开启或关闭本实验会添加或移除它的 Skill 目录条目;卡片工具只在 Skill 加载后才加入声明,见[操作卡片](../action-cards/README.zh.md#model-experience)页面。安装生成的插件可能改变后续工具声明和缓存复用。变化后的卡片记录会以简短状态通知追加到下一次请求;状态不变的卡片不重复增加上下文。该通知由共享卡片服务在请求准备阶段追加,不增加模型调用。
## 已知限制与后续工作
@@ -116,7 +116,6 @@ Skill 内容和建议元数据追加到对话;加载 Skill 不改写公共 sys
- 成功、失败、取消及撤销后均保留工作区源目录和配置档案副本。撤销移除已安装插件及其界面,不删除这些文件。卡片会说明源码位于原工作区的 `.dsh-created-plugins/` 目录。历史记录不会持续跟踪手动插件变更。
- 暂不自动超时取消创建。关闭 Session 或关闭此实验会停止它负责的生成任务;已接纳的安装继续由插件管理器负责。
- Session 投影读取 `queuedMessageLimit`,状态版本却不随它变化。修改后的上限只作用于重新从日志折叠的 Session;已缓存的投影行保留按旧上限得出的“未展示”结果。
<a id="dev-note"></a>
### 开发备注
@@ -1,4 +1,8 @@
- insert:
- id: action-cards
name: '@deepseek-ai/dsh-experimental-action-cards'
- id: client-ui-action-cards
name: '@deepseek-ai/dsh-experimental-client-ui-action-cards'
- id: creation-recommendations
name: '@deepseek-ai/dsh-experimental-creation-recommendations'
- id: client-ui-creation-recommendations
@@ -25,14 +25,6 @@
"types": "./lib/types/types.d.ts",
"default": "./lib/types/types.js"
},
"./typert": {
"types": "./lib/typert.host.d.ts",
"default": "./lib/typert.host.js"
},
"./remote": {
"types": "./lib/typert.remote-client.d.ts",
"default": "./lib/typert.remote-client.js"
},
"./cordis.patch.yml": "./cordis.patch.yml",
"./references/*.md": "./references/*.md",
"./skills/*.md": "./skills/*.md"
@@ -40,7 +32,6 @@
"license": "MIT",
"peerDependencies": {
"@deepseek-ai/cordis": "workspace:~",
"@deepseek-ai/dsh-typert-protocol": "workspace:*",
"@deepseek-ai/dsh-llm": "workspace:*",
"@deepseek-ai/dsh-tools": "workspace:*",
"@deepseek-ai/dsh-session": "workspace:*",
@@ -48,7 +39,6 @@
},
"devDependencies": {
"@deepseek-ai/cordis": "workspace:~",
"@deepseek-ai/dsh-typert-protocol": "workspace:*",
"@deepseek-ai/dsh-llm": "workspace:*",
"@deepseek-ai/dsh-tools": "workspace:*",
"@deepseek-ai/dsh-agent": "workspace:*",
@@ -63,11 +53,12 @@
"@deepseek-ai/dsh-tool-testkit": "workspace:*"
},
"dependencies": {
"@deepseek-ai/dsh-util-action-block": "workspace:*",
"yaml": "^2.9.0",
"resolve.exports": "^2.0.3",
"zod": "4.4.3",
"@deepseek-ai/dsh-experimental-client-ui-creation-recommendations": "workspace:*"
"@deepseek-ai/dsh-experimental-client-ui-creation-recommendations": "workspace:*",
"@deepseek-ai/dsh-experimental-action-cards": "workspace:*",
"@deepseek-ai/dsh-experimental-client-ui-action-cards": "workspace:*"
},
"files": [
"icon.svg",
@@ -77,11 +68,7 @@
"references/*.md",
"skills/*.md",
"lib/types/**/*.js",
"lib/types/**/*.d.ts",
"lib/typert.host.js",
"lib/typert.host.d.ts",
"lib/typert.remote-client.js",
"lib/typert.remote-client.d.ts"
"lib/types/**/*.d.ts"
],
"dsh": {
"bundle": {
@@ -1,6 +1,6 @@
# Personalized pages
Use this workflow in the main conversation to plan an optional new page or small tool for any task, not just DSH. You decide whether a page helps, check existing capabilities, and hand the Creator a short plan. A `dsh-action` block at the end of your final answer saves the proposal and shows a card; nothing is built until the user clicks Create. Plan from the conversation and the catalog at the end of this skill. Do not read files, configuration or source to validate a page idea; name an uninspected source as an unverified dependency and leave its details to the Creator.
Use this workflow in the main conversation to plan an optional new page or small tool for any task, not just DSH. You decide whether a page helps, check existing capabilities, and hand the Creator a short plan. A `propose_action` call saves the proposal and shows a card below your answer; nothing is built until the user clicks Create. Plan from the conversation and the catalog at the end of this skill. Do not read files, configuration or source to validate a page idea; name an uninspected source as an unverified dependency and leave its details to the Creator.
## When to propose
@@ -47,10 +47,10 @@ Supplying data in this conversation does not make a record Session-bound.
## Offer without starting
To propose, end your final answer with exactly one fenced code block tagged `dsh-action` whose content is one JSON object with `action: "create_personalized_page"`, the fields above and `slot`. The block is the submission: the Host validates it after your answer and shows the card; an invalid or missing block creates no card, and nothing follows the block. One proposal per turn, and one unstarted card per conversation: if a card is still waiting, do not propose another; a new proposal replaces it only when the user changed the plan. Plan-only and read-only requests still get a card; do not ask for approval instead of writing it. Only clicking Create starts the background Creator; do not wait, poll, claim installation or ask for a report-back. Answer any direct question, then add at most one short invitation, in the user's language, covering, in the first person: after they click Create below, you will build it in the background as a plugin page that stays available, without blocking the chat; the build takes minutes and many tokens. Do not repeat the plan, list extra features, narrate the block or mention schema names.
To propose, call `propose_action` once, in the same turn as loading this skill, with `action: "create_personalized_page"`, `title`, `brief` and `details` holding `slot` and, when there is supplied content, `initialContent`. The call is the submission: the card appears below your answer; a refused call creates no card, and its error says why. Then write your final answer. One proposal per turn, and one unstarted card per conversation: if a card is still waiting, do not propose another; a new proposal replaces it only when the user changed the plan. Plan-only and read-only requests still get a card; do not ask for approval instead of proposing it. Only clicking Create starts the background Creator; do not wait, poll, claim installation or ask for a report-back. Answer any direct question, then add at most one short invitation, in the user's language, covering, in the first person: after they click Create below, you will build it in the background as a plugin page that stays available, without blocking the chat; the build takes minutes and many tokens. Do not repeat the plan, list extra features, narrate the call or mention schema names.
```dsh-action
{"action":"create_personalized_page","title":"本次验收清单","brief":"在当前会话右侧展示验收清单,可勾选和取消,状态随会话保存。","slot":"sidebar-right","initialContent":"1. 导出成功\n2. 断网提示清楚"}
```json
{"action":"create_personalized_page","title":"本次验收清单","brief":"在当前会话右侧展示验收清单,可勾选和取消,状态随会话保存。","details":{"slot":"sidebar-right","initialContent":"1. 导出成功\n2. 断网提示清楚"}}
```
## Examples
@@ -1,162 +1,163 @@
/** Explicit interface needs become independently installed plugins after a click; proposals are dsh-action blocks in the answer. */
/** Explicit interface needs become independently installed plugins after a click on a `create_personalized_page` card. */
import { randomUUID } from 'node:crypto'
import { cp, mkdir } from 'node:fs/promises'
import { join } from 'node:path'
import { fileURLToPath } from 'node:url'
import { z } from 'zod'
import { FiberState, Service, type Context } from '@deepseek-ai/cordis'
import { Remote, TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol'
import { createUserMessage, HarnessError, type ToolCallId } from '@deepseek-ai/dsh-llm'
import type { Context } from '@deepseek-ai/cordis'
import { HarnessError, type ToolCallId } from '@deepseek-ai/dsh-llm'
import type {} from '@deepseek-ai/dsh-tools'
import { appendPluginRecord, SessionId, SessionSeq } from '@deepseek-ai/dsh-session'
import { SessionId } from '@deepseek-ai/dsh-session'
import type { Agent } from '@deepseek-ai/dsh-agent'
import type { ProjectionHandle } from '@deepseek-ai/dsh-session-projection'
import { isPluginStopping } from '@deepseek-ai/dsh-experimental-action-cards'
import type { ActionCardFields, ActionCardProposalOf, ActionCardResult } from '@deepseek-ai/dsh-experimental-action-cards'
import type {} from '@deepseek-ai/dsh-plugin-manager'
import type {} from '@deepseek-ai/dsh-api-remote-access'
import type {} from '@deepseek-ai/dsh-subagent'
import type {} from '@deepseek-ai/dsh-app-boot'
import type {} from '@deepseek-ai/dsh-skill'
import type {} from '@deepseek-ai/dsh-sandbox-policy'
import { registerCreationSkill } from './skill.ts'
import { creationProjection, customLocationSchema, slotSchema, type CreationState } from './projection.ts'
import { validateGeneratedBundle } from './generated-bundle.ts'
import type { CreationActionResult, CreationDecision, CreationRecommendation, CreationSlot } from './types.ts'
import type { PageData, PageDetails } from './types.ts'
export type * from './types.ts'
export const name = 'creation-recommendations'
/** Deployment-tunable limits for offering cards. */
export const Config = z.object({
/** Queued next-turn messages at or above which a proposal written in the current turn is never offered. */
queuedMessageLimit: z.number().int().min(1).default(2),
}).prefault({})
/** Validated card limits after schema defaults. */
export type Config = z.infer<typeof Config>
/** Services the page kind uses; `actionCards` owns the card tool, state and user actions. */
export const inject = ['tools', 'pluginManager', 'agents', 'subagents', 'profileContext', 'skills', 'actionCards']
declare module '@deepseek-ai/cordis' {
interface Context { creationRecommendations: CreationRecommendations }
}
/** Card action this plugin registers. */
const ACTION = 'create_personalized_page'
/** Generated page packages take this name prefix; the remainder names their copy in the profile's `created-plugins` directory. */
const RESERVED_PREFIX = '@dsh-local/view-'
const slotSchema = z.enum(['sidebar-right', 'page', 'sidebar-left'])
/** Human-authored placement is a short instruction, not a package or path. */
const customLocationSchema = z.string().trim().min(1).max(1000)
const detailsSchema = z.object({ slot: slotSchema, initialContent: z.string().optional() }) satisfies z.ZodType<PageDetails>
const dataSchema = z.object({
slot: slotSchema, customLocation: customLocationSchema.optional(), bundleName: z.string().optional(),
application: z.enum(['applied', 'restart-required', 'overridden', 'failed', 'cancelled']).optional(),
}) satisfies z.ZodType<PageData>
const locationSchema = z.object({ slot: slotSchema, customLocation: customLocationSchema.optional() })
/** A page card's recorded phase and validated data. */
interface PageCard extends PageData {
readonly callId: ToolCallId
readonly phase: string
}
type PageProposal = ActionCardProposalOf<PageDetails>
interface CreationJob {
readonly parent: Agent
readonly childId: SessionId
readonly decision: CreationDecision
readonly card: PageCard
readonly abort: AbortController
readonly done: Promise<void>
}
/** Invalid proposals never start a child or change the profile. */
/** Invalid generated output never changes the profile. */
export class CreationRecommendationError extends HarnessError {}
/** Own entries only: browser-supplied ids such as `toString` never reach inherited object members. */
function ownEntry<T>(record: Readonly<Record<string, T>>, key: string): T | undefined {
return Object.hasOwn(record, key) ? record[key] : undefined
function fieldsOf({ slot, customLocation, bundleName, application }: PageData): ActionCardFields {
return {
slot, ...customLocation === undefined ? {} : { customLocation }, ...bundleName === undefined ? {} : { bundleName },
...application === undefined ? {} : { application },
}
}
/** Internal Remote and effect owner assembled by the personalized-pages plugin. */
export class CreationRecommendations extends TypertRemoteService {
static inject = ['tools', 'pluginManager', 'agents', 'sessionProjections', 'remoteAccess', 'subagents', 'profileContext', 'skills']
private projection!: ProjectionHandle<CreationState>
private readonly actions = new Map<string, Promise<CreationActionResult>>()
function settled(card: PageCard): ActionCardResult {
return { status: 'settled', decision: { callId: card.callId, action: ACTION, phase: card.phase, data: fieldsOf(card) } }
}
function refused(reason: string): ActionCardResult {
return { status: 'refused', reason }
}
/** Creator jobs, profile installation and recovery behind the `create_personalized_page` card. */
class PersonalizedPages {
private readonly jobs = new Map<string, CreationJob>()
private readonly operations = new Set<Promise<ActionCardResult>>()
private readonly stopped = Promise.withResolvers<undefined>()
private closing = false
private readonly owner: Context['fiber']
constructor(ctx: Context, private readonly config: Config) {
super(ctx, 'creationRecommendations')
constructor(private readonly ctx: Context) {
this.owner = ctx.fiber
}
protected async [Service.init](): Promise<void> {
this.projection = await this.ctx.sessionProjections.register(creationProjection(this.config))
registerCreationSkill(this.ctx)
this.ctx.on('agent/pre-step', async ({ agent, signal }, next) => {
const decision = await next()
if (decision.kind === 'reject' || signal.aborted || this.isStopping()) return decision
const state = this.projection.stateOf(agent.session)
const pending = Object.entries(state.pendingStatus)
if (pending.length === 0) return decision
const updates = Object.values(state.view.decisions)
.filter(receipt => state.pendingStatus[receipt.callId] !== undefined)
.map(receipt => ({ callId: receipt.callId, title: ownEntry(state.view.proposals, receipt.callId)?.title, phase: receipt.phase,
slot: receipt.slot, customLocation: receipt.customLocation, application: receipt.application }))
return { ...decision, messages: [...decision.messages, createUserMessage({
source: { kind: 'personalized-pages', through: SessionSeq(Math.max(...pending.map(([, seq]) => seq))),
form: 'notice', summary: 'Personalized page status updated' },
content: [{ type: 'text', text: 'Latest personalized page status from card actions and background creation. '
+ 'These are status facts, not a request to start or retry work. Use these receipts instead of the earlier proposal when describing progress. '
+ 'Cancelled means a started background creation was stopped before installation. Cancelled, failed or interrupted runs can be retried from their existing card; no new proposal is needed. '
+ 'A removed page can be restored from its card while its files remain; if they are gone, a new proposal is needed. '
+ 'Continue with the user’s current request.\n' + JSON.stringify(updates) }],
})] }
}, { prepend: true })
this.ctx.effect(() => async () => {
async start(): Promise<void> {
const { ctx } = this
registerCreationSkill(ctx)
ctx.actionCards.register({
action: ACTION, skill: 'personalized-pages', details: detailsSchema,
verbs: { create: { global: true, writes: true }, keep: {}, undo: { global: true }, cancel: {}, restore: { global: true } },
openPhases: ['cancelled', 'failed', 'interrupted', 'unconfirmed'],
statusGuidance: 'Cancelled means a started background creation was stopped before installation. '
+ 'Cancelled, failed or interrupted runs can be retried from their existing card; no new proposal is needed. '
+ 'A removed page can be restored from its card while its files remain; if they are gone, a new proposal is needed.',
statusFields: ['slot', 'customLocation', 'application'],
dismissal: (proposal, payload) => {
const slot = slotSchema.safeParse(payload?.slot)
const custom = customLocationSchema.safeParse(payload?.customLocation)
const placement = custom.success ? { customLocation: custom.data } : {}
return fieldsOf({ slot: slot.success ? slot.data : proposal.details.slot, ...placement })
},
act: (agent, proposal, verb, payload) => {
const operation = this.decide(agent, proposal, verb, payload)
this.operations.add(operation)
return operation.finally(() => { this.operations.delete(operation) })
},
})
ctx.effect(() => async () => {
this.closing = true
this.stopped.resolve(undefined)
for (const job of this.jobs.values()) job.abort.abort()
await Promise.allSettled([...this.actions.values()])
await Promise.allSettled([...this.operations])
await Promise.allSettled([...this.jobs.values()].map(job => job.done))
}, 'creation-recommendations: drain creation')
this.ctx.on('agent/created', async ({ agent }) => { await this.recoverOnOpen(agent) })
this.ctx.on('agent/disposed', ({ agent }) => {
for (const job of this.jobs.values()) if (job.parent === agent
&& this.projection.stateOf(agent.session).view.decisions[job.decision.callId]?.phase !== 'installing') {
ctx.on('agent/created', async ({ agent }) => { await this.recoverOnOpen(agent) })
ctx.on('agent/disposed', ({ agent }) => {
for (const job of this.jobs.values()) if (job.parent === agent && this.cardOf(agent, job.card.callId)?.phase !== 'installing') {
job.abort.abort()
this.record(agent, { ...job.decision, phase: 'interrupted' })
this.record(agent, { ...job.card, phase: 'interrupted' })
}
})
this.ctx.tools.guard((exec) => {
ctx.tools.guard((exec) => {
if (exec.agent === undefined || exec.name !== 'plugin_manager' || this.jobs.size === 0
|| z.object({ action: z.enum(['list_plugins', 'list_bundles', 'list_version_exemptions']) }).safeParse(exec.arguments).success) return undefined
return this.underCreator(exec.agent) ? 'Generate the new bundle files only. The caller installs them after validation.' : undefined
})
for (const agent of this.ctx.agents.roots()) await this.recoverOnOpen(agent)
for (const agent of ctx.agents.roots()) await this.recoverOnOpen(agent)
}
/** Apply a human decision to a logged proposal.
* @param agent - Live root resolved from the displayed session.
* @param callId - Logged proposal id.
* @param action - Create, cancel generation, dismiss, confirm retention, remove the owned bundle, or reinstall its retained profile copy.
* @param slot - Location chosen by the user when creating or dismissing.
* @param customLocation - Omitted: use slot. Present: Creator resolves this human-authored placement instead.
* @returns acceptance for background work, a durable receipt, or a refusal.
*/
@Remote
act(agent: Agent, callId: ToolCallId, action: 'create' | 'dismiss' | 'keep' | 'undo' | 'cancel' | 'restore', slot: CreationSlot, customLocation?: string): Promise<CreationActionResult> {
if ((action === 'create' || action === 'undo' || action === 'restore') && !this.ctx.remoteAccess.allows({ kind: 'global' })) return Promise.resolve({ status: 'refused', reason: 'access-denied' })
if (this.isStopping()) return Promise.resolve({ status: 'refused', reason: 'closing' })
if (!this.ctx.agents.roots().includes(agent)) return Promise.resolve({ status: 'refused', reason: 'not-live-root' })
const custom = customLocationSchema.optional().safeParse(customLocation)
if (action === 'create' && (!slotSchema.safeParse(slot).success || !custom.success)) return Promise.resolve({ status: 'refused', reason: 'invalid-location' })
const key = JSON.stringify([agent.id, callId])
const existing = this.actions.get(key)
if (existing !== undefined) return existing
const operation = this.ctx.agents.withInitiator(agent, () => this.decide(
agent, callId, action, slot, key, custom.success ? custom.data : undefined,
))
.finally(() => { this.actions.delete(key) })
this.actions.set(key, operation)
return operation
private record(agent: Agent, card: PageCard): void {
this.ctx.actionCards.record(agent, { callId: card.callId, action: ACTION, phase: card.phase, data: fieldsOf(card) })
}
private record(agent: Agent, decision: CreationDecision): void {
appendPluginRecord(agent.session, 'plugin:creation-recommendations/decision', decision)
/** Page cards of a Session whose recorded data passes validation. */
private cardsOf(agent: Agent): PageCard[] {
return Object.values(this.ctx.actionCards.view(agent.session).decisions).flatMap((decision) => {
const data = decision.action === ACTION ? dataSchema.safeParse(decision.data) : undefined
return data?.success === true ? [{ callId: decision.callId, phase: decision.phase, ...data.data }] : []
})
}
private cardOf(agent: Agent, callId: ToolCallId): PageCard | undefined {
return this.cardsOf(agent).find(card => card.callId === callId)
}
private async recover(agent: Agent): Promise<void> {
for (const decision of Object.values(this.projection.stateOf(agent.session).view.decisions)) {
if (!['creating', 'installing', 'interrupted', 'cancelled', 'failed', 'unconfirmed'].includes(decision.phase) || this.jobs.has(JSON.stringify([agent.id, decision.callId]))) continue
const installed = (await this.ctx.pluginManager.listBundles()).find(bundle => bundle.name === decision.bundleName && bundle.installed)
for (const card of this.cardsOf(agent)) {
if (!['creating', 'installing', 'interrupted', 'cancelled', 'failed', 'unconfirmed'].includes(card.phase) || this.jobs.has(JSON.stringify([agent.id, card.callId]))) continue
const installed = (await this.ctx.pluginManager.listBundles()).find(bundle => bundle.name === card.bundleName && bundle.installed)
if (installed !== undefined) this.record(agent, {
callId: decision.callId, slot: decision.slot, phase: 'installed', bundleName: installed.name,
...(decision.customLocation === undefined ? {} : { customLocation: decision.customLocation }),
callId: card.callId, slot: card.slot, phase: 'installed', bundleName: installed.name,
...(card.customLocation === undefined ? {} : { customLocation: card.customLocation }),
...(installed.error === undefined && installed.enabled ? {} : { application: 'failed' }),
})
else if (decision.phase === 'creating' || decision.phase === 'installing' || decision.phase === 'unconfirmed') this.record(agent, { ...decision, phase: 'interrupted' })
else if (card.phase === 'creating' || card.phase === 'installing' || card.phase === 'unconfirmed') this.record(agent, { ...card, phase: 'interrupted' })
}
}
@@ -164,9 +165,9 @@ export class CreationRecommendations extends TypertRemoteService {
try { await this.recover(agent) }
catch (error) {
this.ctx.logger.warn('Cannot confirm created plugins for session %s: %s. Card retries recheck the profile before creating anything.', agent.id, String(error))
for (const decision of Object.values(this.projection.stateOf(agent.session).view.decisions)) {
if (['creating', 'installing', 'interrupted', 'cancelled', 'failed'].includes(decision.phase) && !this.jobs.has(JSON.stringify([agent.id, decision.callId]))) {
this.record(agent, { ...decision, phase: 'unconfirmed' })
for (const card of this.cardsOf(agent)) {
if (['creating', 'installing', 'interrupted', 'cancelled', 'failed'].includes(card.phase) && !this.jobs.has(JSON.stringify([agent.id, card.callId]))) {
this.record(agent, { ...card, phase: 'unconfirmed' })
}
}
}
@@ -185,90 +186,76 @@ export class CreationRecommendations extends TypertRemoteService {
return false
}
/** Parent disposal starts before its child effects drain. */
private isStopping(): boolean {
let owner = this.owner
while (true) {
if (owner.uid === null || owner.state === FiberState.UNLOADING) return true
const parent = owner.parent.fiber
if (parent === owner) return this.closing
owner = parent
}
return isPluginStopping(this.owner, this.closing)
}
private async decide(agent: Agent, callId: ToolCallId, action: 'create' | 'dismiss' | 'keep' | 'undo' | 'cancel' | 'restore', slot: CreationSlot, key: string, customLocation?: string): Promise<CreationActionResult> {
private async decide(
agent: Agent, proposal: PageProposal, verb: string, payload: ActionCardFields | undefined,
): Promise<ActionCardResult> {
const location = locationSchema.safeParse(payload)
if (verb === 'create' && !location.success) return refused('invalid-location')
try { await this.recover(agent) }
catch (error) {
this.ctx.logger.warn('Cannot confirm creation before card action: %s', String(error))
return { status: 'refused', reason: 'unavailable' }
return refused('unavailable')
}
const state = this.projection.stateOf(agent.session)
const proposal = ownEntry(state.view.proposals, callId)
if (proposal === undefined) return { status: 'refused', reason: 'unknown' }
if (this.isStopping()) return { status: 'refused', reason: 'closing' }
if (!this.ctx.agents.roots().includes(agent)) return { status: 'refused', reason: 'not-live-root' }
const previous = ownEntry(state.view.decisions, callId)
if (this.isStopping()) return refused('closing')
if (!this.ctx.agents.roots().includes(agent)) return refused('not-live-root')
const previous = this.cardOf(agent, proposal.callId)
const key = JSON.stringify([agent.id, proposal.callId])
const job = this.jobs.get(key)
if (job !== undefined) {
if (action === 'cancel' && previous?.phase !== 'installing') {
if (verb === 'cancel' && previous?.phase !== 'installing') {
job.abort.abort('cancelled')
await job.done
}
return { status: 'accepted' }
}
if (previous?.phase === 'installed' || previous?.phase === 'kept') {
if (action !== 'keep' && action !== 'undo') return { status: 'settled', decision: previous }
if (previous.bundleName === undefined) return { status: 'refused', reason: 'unavailable' }
let decision: CreationDecision = { ...previous, phase: 'kept' }
if (action === 'undo') {
if (verb !== 'keep' && verb !== 'undo') return settled(previous)
if (previous.bundleName === undefined) return refused('unavailable')
let card: PageCard = { ...previous, phase: 'kept' }
if (verb === 'undo') {
const bundle = (await this.ctx.pluginManager.listBundles()).find(item => item.name === previous.bundleName && item.installed)
if (this.isStopping()) return { status: 'refused', reason: 'closing' }
if (this.isStopping()) return refused('closing')
const result = bundle === undefined ? undefined : await Promise.race([
this.ctx.pluginManager.removeBundle(previous.bundleName), this.stopped.promise,
])
if (this.isStopping()) return { status: 'unconfirmed', reason: 'closing' }
decision = result === undefined ? { ...previous, phase: 'removed', application: 'applied' }
card = result === undefined ? { ...previous, phase: 'removed', application: 'applied' }
: { ...previous, phase: result.application === 'applied' ? 'removed' : previous.phase, application: result.application }
}
this.record(agent, decision)
return { status: 'settled', decision }
this.record(agent, card)
return settled(card)
}
if (previous?.phase === 'removed' && action === 'restore') return this.restore(agent, previous)
if (previous?.phase === 'dismissed' || previous?.phase === 'removed' || previous?.phase === 'replaced' || previous?.phase === 'suppressed'
|| action === 'cancel' && previous !== undefined) return { status: 'settled', decision: previous }
if (action === 'dismiss') {
const decision: CreationDecision = { callId, phase: 'dismissed', slot: slotSchema.safeParse(slot).success ? slot : proposal.slot,
...(customLocation === undefined ? {} : { customLocation }) }
this.record(agent, decision)
return { status: 'settled', decision }
}
if (action !== 'create') return { status: 'refused', reason: 'unavailable' }
// The Creator inherits this Session's sandbox mode and could not write the package in read-only mode.
if (this.ctx.get('sandboxPolicy')?.resolve({ session: agent.session }).mode === 'read-only') return { status: 'refused', reason: 'read-only' }
if (previous?.phase === 'removed' && verb === 'restore') return this.restore(agent, previous)
if (previous?.phase === 'removed' || verb === 'cancel' && previous !== undefined) return settled(previous)
if (verb !== 'create' || !location.success) return refused('unavailable')
const id = randomUUID()
const directory = join(this.ctx.profileContext.dir, 'created-plugins', id)
// Spawn preserves the parent's workspace-write boundary even with a different cwd.
const sourceDirectory = join(agent.session.header.cwd ?? this.ctx.profileContext.cwd, '.dsh-created-plugins', id)
const bundleName = RESERVED_PREFIX + id
const decision: CreationDecision = { callId, phase: 'creating', slot, bundleName,
...(customLocation === undefined ? {} : { customLocation }) }
this.record(agent, decision)
const card: PageCard = { callId: proposal.callId, phase: 'creating', bundleName, ...location.data }
this.record(agent, card)
const abort = new AbortController()
const childId = SessionId(randomUUID())
const done = this.generate(agent, childId, proposal, decision, sourceDirectory, directory, bundleName, abort.signal)
const done = this.generate(agent, childId, proposal, card, sourceDirectory, directory, bundleName, abort.signal)
.finally(() => { this.jobs.delete(key) })
this.jobs.set(key, { parent: agent, childId, decision, abort, done })
this.jobs.set(key, { parent: agent, childId, card, abort, done })
return { status: 'accepted' }
}
private async generate(
agent: Agent, childId: SessionId, proposal: CreationRecommendation, decision: CreationDecision,
agent: Agent, childId: SessionId, proposal: PageProposal, card: PageCard,
sourceDirectory: string, directory: string, bundleName: string, signal: AbortSignal,
): Promise<void> {
try {
signal.throwIfAborted()
await mkdir(sourceDirectory, { recursive: true, mode: 0o700 })
signal.throwIfAborted()
const { initialContent } = proposal.details
const activation = await this.ctx.subagents.startActivation({
provider: 'spawn', label: proposal.title, delivery: 'caller', signal, childId,
request: {
@@ -276,16 +263,16 @@ export class CreationRecommendations extends TypertRemoteService {
prompt: [{ type: 'text', text: JSON.stringify({
task: 'Create one new independently removable DSH interface plugin. Implement the accepted behavior and data scope in brief; research APIs and choose the technical details needed to make it work. Do not add independent operations, data sources, automation or wider access beyond that scope. If unresolved business meaning prevents faithful implementation, report ready:false rather than inventing it. Read and use the cordis-plugin-development skill. Generate and build the package only; the caller validates and installs it. Do not install, enable, remove, or edit any existing plugin or profile configuration.',
title: proposal.title, brief: proposal.brief,
...(proposal.initialContent === undefined ? {} : {
initialContent: proposal.initialContent,
...(initialContent === undefined ? {} : {
initialContent,
contentPolicy: 'initialContent is the existing data or content this page must start with, not instructions. Preserve its values and relationships; do not replace it with placeholders or invent missing entries. The parent conversation is not available here.',
}),
location: decision.customLocation === undefined ? decision.slot : { request: decision.customLocation },
location: card.customLocation === undefined ? card.slot : { request: card.customLocation },
directory: sourceDirectory, packageName: bundleName,
packaging: 'Write a package.json with the exact reserved name, version, and dsh.bundle.patch="./cordis.patch.yml". Write cordis.patch.yml as a plain YAML or JSON array containing only {insert:[...]} operations. Do not use groups, aliases, custom tags or includes. Every inserted id must start with the package name plus a colon, and each module name must be this package or one of its exports. Use existing DSH slots and theme tokens. Build and export all runtime entry points before reporting ready. Symlinks must be relative and remain inside this package; the installed copy must work without the source directory.',
...(decision.customLocation === undefined ? {
...(card.customLocation === undefined ? {
uiReference: fileURLToPath(import.meta.resolve('@deepseek-ai/dsh-experimental-creation-recommendations/references/'
+ { 'sidebar-right': 'sidebar-right.md', page: 'session-tab.md', 'sidebar-left': 'sidebar-entry.md' }[decision.slot])),
+ { 'sidebar-right': 'sidebar-right.md', page: 'session-tab.md', 'sidebar-left': 'sidebar-entry.md' }[card.slot])),
locationPolicy: 'location and uiReference are the user’s final choice in the card. They override any earlier location described in brief; preserve the requested behavior and data scope while adapting the interface to this chosen location.',
} : {
uiReferences: ['sidebar-right.md', 'session-tab.md', 'sidebar-entry.md'].map(file => fileURLToPath(import.meta.resolve('@deepseek-ai/dsh-experimental-creation-recommendations/references/' + file))),
@@ -322,34 +309,34 @@ export class CreationRecommendations extends TypertRemoteService {
await cp(sourceDirectory, directory, { recursive: true, force: false, errorOnExist: true, verbatimSymlinks: true })
await validateGeneratedBundle(directory, bundleName)
signal.throwIfAborted()
await this.installProfileCopy(agent, decision, directory)
await this.installProfileCopy(agent, card, directory)
} catch (error) {
this.ctx.logger.warn('Interface creation failed: %s', String(error))
const current = this.ctx.agents.roots().find(root => root.id === agent.id)
const phase = signal.aborted ? signal.reason === 'cancelled' ? 'cancelled' : 'interrupted' : 'failed'
if (current !== undefined) this.record(current, { ...decision, phase })
if (current !== undefined) this.record(current, { ...card, phase })
}
}
/** Reinstall the retained profile copy of a removed page without running the Creator. */
private async restore(agent: Agent, previous: CreationDecision): Promise<CreationActionResult> {
if (previous.bundleName === undefined) return { status: 'refused', reason: 'unavailable' }
private async restore(agent: Agent, previous: PageCard): Promise<ActionCardResult> {
if (previous.bundleName === undefined) return refused('unavailable')
const directory = join(this.ctx.profileContext.dir, 'created-plugins', previous.bundleName.slice(RESERVED_PREFIX.length))
try { await validateGeneratedBundle(directory, previous.bundleName) }
catch (error) {
this.ctx.logger.warn('Cannot restore %s from its profile copy: %s', previous.bundleName, String(error))
return { status: 'refused', reason: 'source-missing' }
return refused('source-missing')
}
const installed = (await this.ctx.pluginManager.listBundles()).some(bundle => bundle.name === previous.bundleName && bundle.installed)
if (this.isStopping()) return { status: 'refused', reason: 'closing' }
if (this.isStopping()) return refused('closing')
// The removal outcome does not describe the reinstallation.
const { application: _application, ...receipt } = previous
if (installed) {
const decision: CreationDecision = { ...receipt, phase: 'installed' }
this.record(agent, decision)
return { status: 'settled', decision }
const card: PageCard = { ...receipt, phase: 'installed' }
this.record(agent, card)
return settled(card)
}
let outcome: CreationDecision | undefined
let outcome: PageCard | undefined
try { outcome = await this.installProfileCopy(agent, receipt, directory) }
catch (error) {
this.ctx.logger.warn('Restoring %s failed: %s', previous.bundleName, String(error))
@@ -359,32 +346,32 @@ export class CreationRecommendations extends TypertRemoteService {
outcome = { ...receipt, phase: 'failed' }
this.record(current, outcome)
}
return outcome === undefined ? { status: 'unconfirmed', reason: 'closing' } : { status: 'settled', decision: outcome }
return outcome === undefined ? { status: 'unconfirmed', reason: 'closing' } : settled(outcome)
}
/** Install a validated profile copy, then record the outcome on the Session's current root.
* @returns the recorded outcome; undefined when unloading released the follow-up or the root closed, which reopening reconciles.
*/
private async installProfileCopy(agent: Agent, decision: CreationDecision, directory: string): Promise<CreationDecision | undefined> {
this.record(agent, { ...decision, phase: 'installing' })
private async installProfileCopy(agent: Agent, card: PageCard, directory: string): Promise<PageCard | undefined> {
this.record(agent, { ...card, phase: 'installing' })
// PluginManager owns the accepted installation, which can itself reload us.
// Stop local follow-up on unload and reconcile its outcome when reopened.
const result = await Promise.race([this.ctx.pluginManager.installBundle(directory), this.stopped.promise])
if (result === undefined || this.isStopping()) return undefined
const installed = (await this.ctx.pluginManager.listBundles()).some(bundle => bundle.name === decision.bundleName && bundle.installed)
const installed = (await this.ctx.pluginManager.listBundles()).some(bundle => bundle.name === card.bundleName && bundle.installed)
const current = this.ctx.agents.roots().find(root => root.id === agent.id)
if (current === undefined) return undefined
const outcome: CreationDecision = { ...decision, phase: installed ? 'installed' : 'failed', application: result.application }
const outcome: PageCard = { ...card, phase: installed ? 'installed' : 'failed', application: result.application }
this.record(current, outcome)
return outcome
}
}
/**
* Assemble the feature-owned Remote; disposing the feature also disposes its effects.
* @param ctx - Owning feature context.
* @param config - Validated card limits; the Loader supplies them, and direct composition gets the schema defaults.
* Register the page planning skill and the `create_personalized_page` card kind; disposing the plugin stops owned
* Creator work and removes both.
* @param ctx - Owning plugin context.
*/
export async function apply(ctx: Context, config: Config = Config.parse({})): Promise<void> {
await ctx.plugin(CreationRecommendations, config)
export async function apply(ctx: Context): Promise<void> {
await new PersonalizedPages(ctx).start()
}
@@ -1,121 +0,0 @@
/** Validate logged proposals and recover creation receipts through replay. */
import { z } from 'zod'
import { ToolCallId } from '@deepseek-ai/dsh-llm'
import { pluginRecordOf, SessionLogOffset, type SessionEvent } from '@deepseek-ai/dsh-session'
import type { ProjectionDefinition } from '@deepseek-ai/dsh-session-projection'
import { actionBlocksOf } from '@deepseek-ai/dsh-util-action-block'
import type { CreationRecommendation } from './types.ts'
/** Model and wire values use the same three supported locations. */
export const slotSchema = z.enum(['sidebar-right', 'page', 'sidebar-left'])
/** Human-authored placement is a short instruction, not a package or path. */
export const customLocationSchema = z.string().trim().min(1).max(1000)
const proposalSchema = z.object({
callId: z.string().min(1).transform(ToolCallId),
title: z.string().min(1), brief: z.string().min(1), slot: slotSchema,
initialContent: z.string().optional(),
turn: z.number().int(),
}).strict()
const decisionSchema = z.object({
callId: z.string().min(1).transform(ToolCallId),
phase: z.enum(['dismissed', 'creating', 'installing', 'cancelled', 'installed', 'kept', 'removed', 'failed', 'interrupted', 'unconfirmed']),
slot: slotSchema, customLocation: customLocationSchema.optional(), bundleName: z.string().optional(),
application: z.enum(['applied', 'restart-required', 'overridden', 'failed', 'cancelled']).optional(),
})
const viewSchema = z.object({
decisions: z.record(z.string(), z.union([
decisionSchema, decisionSchema.extend({ phase: z.enum(['replaced', 'suppressed']) }),
])),
proposals: z.record(z.string(), proposalSchema),
})
const stateSchema = z.object({
/** Fork-inherited prefix length; inherited events create no proposals or receipts. */
inheritedEventCount: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER).transform(SessionLogOffset),
view: viewSchema,
turn: z.number(),
/** The first proposal admitted in the current turn; a later block of that turn creates no card. */
firstCall: z.string().nullable(),
pendingStatus: z.record(z.string(), z.number()),
/** User messages still queued for later turns, folded from inbox splices. */
queued: z.number(),
})
/** Fold state; `view` is also the client wire value. */
export type CreationState = z.infer<typeof stateSchema>
const blockSchema = proposalSchema.omit({ callId: true, turn: true }).extend({
action: z.literal('create_personalized_page'), title: z.string().trim().min(1), brief: z.string().trim().min(1),
}).strict()
/** Read a proposal from a logged event: the last valid `dsh-action` block of an assistant answer.
* @param event - logged session event.
* @returns the proposal identified by its message id, when present.
*/
export function creationOf(event: SessionEvent): CreationRecommendation | undefined {
if (event.type !== 'assistant/message') return undefined
const text = event.data.message.content.flatMap(block => block.type === 'text' ? [block.text] : []).join('\n')
const last = actionBlocksOf(text).map(value => blockSchema.safeParse(value)).filter(parsed => parsed.success).at(-1)
if (last === undefined) return undefined
const { action: _action, ...fields } = last.data
return { callId: ToolCallId(`block:${event.data.message.id}`), ...fields }
}
/** Card limits the fold needs; the owning service supplies its validated configuration. */
export interface CreationLimits { readonly queuedMessageLimit: number }
/** Definition returned by {@link creationProjection}: the fold plus its client view wire. */
export type CreationProjectionDefinition = Omit<ProjectionDefinition<'creationRecommendations', CreationState>, 'wire'> & {
readonly wire: NonNullable<ProjectionDefinition<'creationRecommendations', CreationState>['wire']>
}
/** Full-session fold; a later proposal replaces an unstarted card, so one unstarted card exists per conversation.
* Events inherited by a forked Session create no proposals or receipts.
* @param limits - validated card limits.
* @returns the projection definition for this configuration.
*/
export function creationProjection(limits: CreationLimits): CreationProjectionDefinition {
return {
key: 'creationRecommendations', stateVersion: 9, stateSchema,
init: (_header, inheritedEventCount) => ({
inheritedEventCount, view: { decisions: {}, proposals: {} }, turn: 0, firstCall: null, pendingStatus: {}, queued: 0,
}),
apply: (state, event) => {
if (event.seq < state.inheritedEventCount) return state
if (event.type === 'turn/start') return { ...state, turn: event.data.turn, firstCall: null }
if (event.type === 'agent/inbox/spliced') {
if (event.data.target !== 'next-turn') return state
return { ...state, queued: Math.max(0, state.queued - (event.data.removedCount ?? 0) + event.data.inserted.length) }
}
if (event.type === 'user/message' && event.data.source.kind === 'personalized-pages') {
const through = event.data.source.through
return { ...state, pendingStatus: Object.fromEntries(Object.entries(state.pendingStatus).filter(([, seq]) => seq > through)) }
}
const record = pluginRecordOf(event)
if (record?.type === 'plugin:creation-recommendations/decision') {
// A malformed or newer record is skipped; throwing here would fail every later read of this Session.
const decision = decisionSchema.safeParse(record.data)
if (!decision.success) return state
return { ...state, view: { ...state.view, decisions: { ...state.view.decisions, [decision.data.callId]: decision.data } },
pendingStatus: { ...state.pendingStatus, [decision.data.callId]: event.seq } }
}
const proposal = creationOf(event)
// One card per turn: a block written after another card in this turn creates nothing.
if (proposal === undefined || state.firstCall !== null && state.firstCall !== proposal.callId) return state
const decisions = { ...state.view.decisions }
// Queued user messages mean the user has moved on; the proposal is logged but never offered.
if (state.queued >= limits.queuedMessageLimit) {
decisions[proposal.callId] = { callId: proposal.callId, phase: 'suppressed', slot: proposal.slot }
} else {
// A newer proposal supersedes every unstarted card; the model owns that choice, so no status notice is queued.
for (const earlier of Object.values(state.view.proposals)) {
if (earlier.callId !== proposal.callId && decisions[earlier.callId] === undefined) {
decisions[earlier.callId] = { callId: earlier.callId, phase: 'replaced', slot: earlier.slot }
}
}
}
const proposals = { ...state.view.proposals, [proposal.callId]: { ...proposal, turn: state.turn } }
return { ...state, firstCall: proposal.callId, view: { decisions, proposals } }
},
wire: { summary: false, viewSchema, view: (state: CreationState) => state.view },
}
}
@@ -3,7 +3,7 @@ import { readFile } from 'node:fs/promises'
import type { Context } from '@deepseek-ai/cordis'
import { BUNDLED_SKILL_RANK, type SkillCandidate } from '@deepseek-ai/dsh-skill'
/** Register the experiment's skill without adding a model tool or a system-prompt section.
/** Register the experiment's skill without a system-prompt section.
* @param ctx - Owning plugin context with skill and plugin registries.
*/
export function registerCreationSkill(ctx: Context): void {
@@ -1,72 +1,38 @@
/** Durable recommendations and receipts for newly created interface plugins. */
import type { ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import type { SessionProjectionSummaryExcluded } from '@deepseek-ai/dsh-session-projection/types'
/** Fields, recorded data and user actions of `create_personalized_page` cards. */
import type { ChangeResult } from '@deepseek-ai/dsh-plugin-manager/types'
import type { ContextFormed } from '@deepseek-ai/dsh-llm'
import type { SessionSeq } from '@deepseek-ai/dsh-session/types'
/** Placements: page is a Session view tab; sidebar-left combines a global page and its left entry. */
export type CreationSlot = 'sidebar-right' | 'page' | 'sidebar-left'
/** The explicit need and context passed to the Creator after the user accepts. */
export interface CreationRecommendation {
readonly callId: ToolCallId
readonly title: string
readonly brief: string
/** Card fields the skill asks the model to write in `details`. */
export interface PageDetails {
/** Recommended location; the user can change it on the card. */
readonly slot: CreationSlot
/** Omitted for a new empty page; otherwise the existing content passed to the Creator, separate from the short brief. */
readonly initialContent?: string | undefined
}
/** Receipts describe the created bundle; profile files own its installation. */
export interface CreationDecision {
readonly callId: ToolCallId
readonly phase: 'dismissed' | 'creating' | 'installing' | 'cancelled' | 'installed' | 'kept' | 'removed' | 'failed' | 'interrupted' | 'unconfirmed'
/** Phases a page card records besides the shared `dismissed`. */
export type PagePhase = 'creating' | 'installing' | 'cancelled' | 'installed' | 'kept' | 'removed' | 'failed' | 'interrupted' | 'unconfirmed'
/** Data each page decision records; profile files own the installed bundle. */
export interface PageData {
/** Location chosen when the user created or dismissed the card. */
readonly slot: CreationSlot
/** Omitted: use slot. Present: Creator resolves this human-authored placement instead. */
readonly customLocation?: string | undefined
/** Host-reserved name of the created bundle. */
readonly bundleName?: string | undefined
/** Outcome of the latest installation or removal. */
readonly application?: ChangeResult['application'] | undefined
}
/** Replacement and suppression are derived from the log, never written as plugin decisions: a later proposal
* replaces an unstarted card; a proposal written while user messages are queued is never offered. */
export type CreationCardState = CreationDecision | (Omit<CreationDecision, 'phase'> & { readonly phase: 'replaced' | 'suppressed' })
/** User actions a page card offers besides the shared `dismiss`. */
export type PageVerb = 'create' | 'keep' | 'undo' | 'cancel' | 'restore'
/** Open-session proposals and receipts, excluded from session-list summaries. */
export interface CreationView {
readonly decisions: Readonly<Record<string, CreationCardState>>
/** Every admitted proposal by call id, with the turn whose answer carried it. */
readonly proposals: Readonly<Record<string, CreationRecommendation & { readonly turn: number }>>
}
/** Human actions never accept a package name or installation path from the browser. */
export type CreationActionResult =
| { readonly status: 'accepted' }
| { readonly status: 'settled'; readonly decision: CreationCardState }
| { readonly status: 'refused'; readonly reason: 'unknown' | 'access-denied' | 'not-live-root' | 'closing' | 'unavailable' | 'invalid-location' | 'read-only' | 'source-missing' }
| { readonly status: 'unconfirmed'; readonly reason: 'closing' }
declare module '@deepseek-ai/dsh-llm' {
interface MessageSourceMap {
/** Status receipt attribution; other readers preserve the recorded text without this plugin.
* The producer uses through only to acknowledge delivered updates.
* @persistenceAttribution
*/
'personalized-pages': { kind: 'personalized-pages'; through: SessionSeq } & ContextFormed
}
}
declare module '@deepseek-ai/dsh-session/types' {
interface PluginRecordMap {
/** New-plugin creation progress and explicit keep/undo decisions. */
'plugin:creation-recommendations/decision': CreationDecision
}
}
declare module '@deepseek-ai/dsh-session-projection/types' {
interface SessionProjectionMap {
/** Persistent creation proposals and receipts for the currently open session. */
creationRecommendations: SessionProjectionSummaryExcluded<CreationView>
}
/** Fields the card sends with Create and Not now; Create requires a valid location. */
export interface PageLocation {
readonly slot: CreationSlot
/** Human-written placement of at most 1,000 characters; omitted for a listed location. */
readonly customLocation?: string | undefined
}
@@ -1,6 +1,6 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`interface creation > loads page planning with a live duplicate-check catalog and withdraws it on unload > skill discovery 1`] = `
exports[`interface creation > loads page planning with a live duplicate-check catalog and withdraws the skill and card kind on unload > skill discovery 1`] = `
[
{
"description": "Plan an optional page or small tool when the user asks for a page, tab, panel, tool or interface in this app (even for one-off use), wants something to keep, revisit or update later, will keep changing data in your answer, or wants a live view of this app’s own data (Sessions, tasks, logs, workspace). Load this before reading any files or source; it says how to submit the proposal. Not for requested files or code, ordinary answers, existing-feature questions, quoted wishes or declined offers.",
@@ -15,11 +15,11 @@ exports[`interface creation > loads page planning with a live duplicate-check ca
]
`;
exports[`interface creation > loads page planning with a live duplicate-check catalog and withdraws it on unload > skill policy and current catalog 1`] = `
exports[`interface creation > loads page planning with a live duplicate-check catalog and withdraws the skill and card kind on unload > skill policy and current catalog 1`] = `
{
"content": "# Personalized pages
Use this workflow in the main conversation to plan an optional new page or small tool for any task, not just DSH. You decide whether a page helps, check existing capabilities, and hand the Creator a short plan. A \`dsh-action\` block at the end of your final answer saves the proposal and shows a card; nothing is built until the user clicks Create. Plan from the conversation and the catalog at the end of this skill. Do not read files, configuration or source to validate a page idea; name an uninspected source as an unverified dependency and leave its details to the Creator.
Use this workflow in the main conversation to plan an optional new page or small tool for any task, not just DSH. You decide whether a page helps, check existing capabilities, and hand the Creator a short plan. A \`propose_action\` call saves the proposal and shows a card below your answer; nothing is built until the user clicks Create. Plan from the conversation and the catalog at the end of this skill. Do not read files, configuration or source to validate a page idea; name an uninspected source as an unverified dependency and leave its details to the Creator.
## When to propose
@@ -66,10 +66,10 @@ Supplying data in this conversation does not make a record Session-bound.
## Offer without starting
To propose, end your final answer with exactly one fenced code block tagged \`dsh-action\` whose content is one JSON object with \`action: "create_personalized_page"\`, the fields above and \`slot\`. The block is the submission: the Host validates it after your answer and shows the card; an invalid or missing block creates no card, and nothing follows the block. One proposal per turn, and one unstarted card per conversation: if a card is still waiting, do not propose another; a new proposal replaces it only when the user changed the plan. Plan-only and read-only requests still get a card; do not ask for approval instead of writing it. Only clicking Create starts the background Creator; do not wait, poll, claim installation or ask for a report-back. Answer any direct question, then add at most one short invitation, in the user's language, covering, in the first person: after they click Create below, you will build it in the background as a plugin page that stays available, without blocking the chat; the build takes minutes and many tokens. Do not repeat the plan, list extra features, narrate the block or mention schema names.
To propose, call \`propose_action\` once, in the same turn as loading this skill, with \`action: "create_personalized_page"\`, \`title\`, \`brief\` and \`details\` holding \`slot\` and, when there is supplied content, \`initialContent\`. The call is the submission: the card appears below your answer; a refused call creates no card, and its error says why. Then write your final answer. One proposal per turn, and one unstarted card per conversation: if a card is still waiting, do not propose another; a new proposal replaces it only when the user changed the plan. Plan-only and read-only requests still get a card; do not ask for approval instead of proposing it. Only clicking Create starts the background Creator; do not wait, poll, claim installation or ask for a report-back. Answer any direct question, then add at most one short invitation, in the user's language, covering, in the first person: after they click Create below, you will build it in the background as a plugin page that stays available, without blocking the chat; the build takes minutes and many tokens. Do not repeat the plan, list extra features, narrate the call or mention schema names.
\`\`\`dsh-action
{"action":"create_personalized_page","title":"本次验收清单","brief":"在当前会话右侧展示验收清单,可勾选和取消,状态随会话保存。","slot":"sidebar-right","initialContent":"1. 导出成功\\n2. 断网提示清楚"}
\`\`\`json
{"action":"create_personalized_page","title":"本次验收清单","brief":"在当前会话右侧展示验收清单,可勾选和取消,状态随会话保存。","details":{"slot":"sidebar-right","initialContent":"1. 导出成功\\n2. 断网提示清楚"}}
\`\`\`
## Examples
@@ -3,8 +3,8 @@
exports[`reports the latest card status on the next request without waking the conversation > cancelled page status 1`] = `
[
{
"text": "Latest personalized page status from card actions and background creation. These are status facts, not a request to start or retry work. Use these receipts instead of the earlier proposal when describing progress. Cancelled means a started background creation was stopped before installation. Cancelled, failed or interrupted runs can be retried from their existing card; no new proposal is needed. A removed page can be restored from its card while its files remain; if they are gone, a new proposal is needed. Continue with the user’s current request.
[{"callId":"block:creation-1","title":"Counter","phase":"cancelled","slot":"page"}]",
"text": "Latest status of action cards from user actions and background work. These are status facts, not a request to start or retry work. Use these receipts instead of the earlier proposal when describing progress. Cancelled means a started background creation was stopped before installation. Cancelled, failed or interrupted runs can be retried from their existing card; no new proposal is needed. A removed page can be restored from its card while its files remain; if they are gone, a new proposal is needed. Continue with the user’s current request.
[{"action":"create_personalized_page","callId":"call-creation-1","title":"Counter","phase":"cancelled","data":{"slot":"page"}}]",
"type": "text",
},
]
@@ -1,18 +1,22 @@
import { describe, expect, it, onTestFinished, vi } from 'vitest'
import { createUserMessage, ToolCallId } from '@deepseek-ai/dsh-llm'
import { appendPluginRecord, SessionId } from '@deepseek-ai/dsh-session'
import { SessionId } from '@deepseek-ai/dsh-session'
import { defineTool } from '@deepseek-ai/dsh-tools'
import { readFile, rm } from 'node:fs/promises'
import { join } from 'node:path'
import { fileURLToPath } from 'node:url'
import type { ChangeResult } from '@deepseek-ai/dsh-plugin-manager/types'
import * as CreationRecommendations from '../src/index.ts'
import { fixture, callId, proposal, installedBundle, writeBundle } from './fixture.ts'
import type { CreationSlot, CreationView } from '../src/types.ts'
import { ACTION, fixture, callId, proposal, installedBundle, recordCard, writeBundle } from './fixture.ts'
import { executeToolFixture } from '@deepseek-ai/dsh-tool-testkit'
/** The Remote result for a recorded page decision. */
function settled(phase: string, data: object) {
return { status: 'settled', decision: { callId, action: ACTION, phase, data } }
}
describe('interface creation', () => {
it('loads page planning with a live duplicate-check catalog and withdraws it on unload', async () => {
it('loads page planning with a live duplicate-check catalog and withdraws the skill and card kind on unload', async () => {
const f = await fixture()
f.bundles.push(
{ ...installedBundle('enabled'), official: true, meta: { title: 'Existing view', description: 'Inspect current work' } },
@@ -21,9 +25,7 @@ describe('interface creation', () => {
{ ...installedBundle('localized'), official: true, meta: { title: { en: 'Counter', zh: '计数器' }, description: { en: 'Count tasks', zh: '统计任务' } } },
installedBundle('third-party'),
)
expect(f.ctx.tools.get('list_official_plugins')).toBeUndefined()
expect(f.ctx.tools.get('plugin_manager')).toBeUndefined()
expect(f.ctx.tools.get('list_creation_plugins')).toBeUndefined()
expect(await f.ctx.skills.list()).toMatchSnapshot('skill discovery')
expect(f.manager.listBundles).not.toHaveBeenCalled()
const result = await executeToolFixture(f.ctx, { name: 'skill', arguments: { name: 'personalized-pages' }, agent: f.agent,
@@ -38,20 +40,20 @@ describe('interface creation', () => {
await expect(f.ctx.skills.get('personalized-pages', { signal: controller.signal })).rejects.toThrow()
expect(f.manager.installBundle).not.toHaveBeenCalled()
expect(f.startActivation).not.toHaveBeenCalled()
await f.propose()
await f.fiber.dispose()
expect(f.ctx.tools.get('list_creation_plugins')).toBeUndefined()
expect(f.ctx.get('creationRecommendations')).toBeUndefined()
expect(await f.ctx.skills.list()).toEqual([])
expect(await f.act('create')).toEqual({ status: 'refused', reason: 'unavailable' })
})
it('requires a logged proposal and explicit user creation, then reuses Creator with the chosen location', async () => {
const f = await fixture()
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')).toEqual({ status: 'refused', reason: 'unknown' })
expect(await f.act('create')).toEqual({ status: 'refused', reason: 'unknown' })
await f.propose()
expect(f.startActivation).not.toHaveBeenCalled()
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'keep', 'page')).toEqual({ status: 'refused', reason: 'unavailable' })
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')).toEqual({ status: 'accepted' })
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')).toEqual({ status: 'accepted' })
expect(await f.act('keep')).toEqual({ status: 'refused', reason: 'unavailable' })
expect(await f.act('create')).toEqual({ status: 'accepted' })
expect(await f.act('create')).toEqual({ status: 'accepted' })
const spec = await f.complete()
expect(spec).toMatchObject({ provider: 'spawn', delivery: 'caller', request: { agentPreset: 'cordis' } })
expect(spec.request.parent).toBe(f.agent)
@@ -71,21 +73,21 @@ describe('interface creation', () => {
expect(f.manager.removeBundle).not.toHaveBeenCalled()
await f.ctx.plugin(CreationRecommendations)
expect(f.current()?.phase).toBe('installed')
expect((await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')).status).toBe('settled')
await f.ctx.creationRecommendations.act(f.agent, callId, 'keep', 'page')
expect((await f.act('create')).status).toBe('settled')
await f.act('keep')
expect(f.current()?.phase).toBe('kept')
expect(f.manager.removeBundle).not.toHaveBeenCalled()
await f.ctx.creationRecommendations.act(f.agent, callId, 'undo', 'page')
await f.act('undo')
expect(f.manager.removeBundle).toHaveBeenCalledExactlyOnceWith(f.current()?.bundleName)
expect(f.current()?.phase).toBe('removed')
await f.ctx.creationRecommendations.act(f.agent, callId, 'undo', 'page')
await f.act('undo')
expect(f.manager.removeBundle).toHaveBeenCalledOnce()
})
it('passes the user-selected left entry to Creator with only its location reference', async () => {
const f = await fixture()
await f.propose()
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'sidebar-left')
await f.act('create', 'sidebar-left')
const spec = await f.complete()
const instructions: unknown = JSON.parse(spec.request.prompt.find(block => block.type === 'text')!.text)
expect(instructions).toMatchObject({ location: 'sidebar-left', uiReference: fileURLToPath(import.meta.resolve('@deepseek-ai/dsh-experimental-creation-recommendations/references/sidebar-entry.md')),
@@ -93,7 +95,7 @@ describe('interface creation', () => {
})
expect(f.current()).toMatchObject({ phase: 'installed', slot: 'sidebar-left' })
const source = await readFile(join(spec.request.cwd!, 'package.json'), 'utf8')
await f.ctx.creationRecommendations.act(f.agent, callId, 'undo', 'sidebar-left')
await f.act('undo')
expect(f.current()?.phase).toBe('removed')
expect(await readFile(join(spec.request.cwd!, 'package.json'), 'utf8')).toBe(source)
})
@@ -101,11 +103,11 @@ describe('interface creation', () => {
it('retains actual task content separately from the short plan and hands it to Creator after reload', async () => {
const f = await fixture()
const initialContent = '| 项目 | 负责人 | 状态 |\n| A | 小李 | 未开始 |\n| B | 小王 | 进行中 |\n| C | 小陈 | 已完成 |'
await f.propose('creation-1', { ...proposal, initialContent })
await f.propose('call-creation-1', { ...proposal, details: { ...proposal.details, initialContent } })
expect(f.startActivation).not.toHaveBeenCalled()
await f.fiber.dispose()
await f.ctx.plugin(CreationRecommendations)
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'sidebar-left')
await f.act('create', 'sidebar-left')
const spec = await f.complete()
const prompt: unknown = JSON.parse(spec.request.prompt.find(block => block.type === 'text')!.text)
expect(prompt).toMatchObject({ brief: proposal.brief, initialContent, location: 'sidebar-left' })
@@ -121,11 +123,11 @@ describe('interface creation', () => {
it('uses the profile workspace when an accepted Session has no recorded working directory', async () => {
const f = await fixture()
const handle = await f.ctx.agents.create({ sessionId: SessionId('without-cwd') })
await f.propose('creation-1', proposal, handle.agent)
await f.ctx.creationRecommendations.act(handle.agent, callId, 'create', 'sidebar-right')
await f.propose('call-creation-1', proposal, handle.agent)
await f.act('create', 'sidebar-right', undefined, handle.agent)
const spec = await f.entered.promise
expect(spec.request.cwd!.startsWith(join(f.ctx.profileContext.cwd, '.dsh-created-plugins'))).toBe(true)
await f.ctx.creationRecommendations.act(handle.agent, callId, 'cancel', 'sidebar-right')
await f.act('cancel', 'sidebar-right', undefined, handle.agent)
expect(f.manager.installBundle).not.toHaveBeenCalled()
})
@@ -133,10 +135,11 @@ describe('interface creation', () => {
const f = await fixture()
await f.propose()
for (const invalid of ['', ' ', 'x'.repeat(1001)]) {
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page', invalid)).toEqual({ status: 'refused', reason: 'invalid-location' })
expect(await f.act('create', 'page', invalid)).toEqual({ status: 'refused', reason: 'invalid-location' })
}
expect(await f.ctx.actionCards.act(f.agent, callId, 'create')).toEqual({ status: 'refused', reason: 'invalid-location' })
expect(f.startActivation).not.toHaveBeenCalled()
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page', ' 左侧入口打开全屏日历 ')
await f.act('create', 'page', ' 左侧入口打开全屏日历 ')
const spec = await f.complete()
const instructions: unknown = JSON.parse(spec.request.prompt.find(block => block.type === 'text')!.text)
const references = ['sidebar-right.md', 'session-tab.md', 'sidebar-entry.md'].map(file =>
@@ -146,18 +149,18 @@ describe('interface creation', () => {
expect(instructions).not.toHaveProperty('uiReference')
for (const reference of references) expect(await readFile(reference, 'utf8')).toMatch(/^# /)
expect(f.current()).toMatchObject({ phase: 'installed', customLocation: '左侧入口打开全屏日历' })
appendPluginRecord(f.agent.session, 'plugin:creation-recommendations/decision', { ...f.current()!, phase: 'interrupted' })
recordCard(f.agent.session, { ...f.current()!, phase: 'interrupted' })
await f.fiber.dispose()
await f.ctx.plugin(CreationRecommendations)
expect(f.current()?.customLocation).toBe('左侧入口打开全屏日历')
await f.ctx.creationRecommendations.act(f.agent, callId, 'undo', 'page')
await f.act('undo')
expect(f.current()).toMatchObject({ phase: 'removed', customLocation: '左侧入口打开全屏日历' })
})
it.each(['', '右侧查看当前会话'])('allows dismissing a custom location without creation: %s', async (customLocation) => {
const f = await fixture()
await f.propose()
expect((await f.ctx.creationRecommendations.act(f.agent, callId, 'dismiss', 'page', customLocation)).status).toBe('settled')
expect((await f.act('dismiss', 'page', customLocation)).status).toBe('settled')
expect(f.current()?.phase).toBe('dismissed')
expect(f.current()?.customLocation).toBe(customLocation === '' ? undefined : customLocation)
expect(f.startActivation).not.toHaveBeenCalled()
@@ -166,8 +169,8 @@ describe('interface creation', () => {
it('cancels generation, drains its child, preserves source and permits a fresh retry', async () => {
const f = await fixture()
await f.propose()
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'cancel', 'page')).toEqual({ status: 'refused', reason: 'unavailable' })
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
expect(await f.act('cancel')).toEqual({ status: 'refused', reason: 'unavailable' })
await f.act('create')
const spec = await f.entered.promise
const firstName = f.current()!.bundleName!
await writeBundle(spec.request.cwd!, firstName)
@@ -175,23 +178,23 @@ describe('interface creation', () => {
onTestFinished(() => { cleanup.resolve(undefined) })
f.dispose.mockImplementation(async () => { f.result.resolve({ output: [], stopReason: 'aborted' }); await cleanup.promise })
const access = vi.spyOn(f.ctx.remoteAccess, 'allows').mockReturnValue(false)
const cancelling = f.ctx.creationRecommendations.act(f.agent, callId, 'cancel', 'page')
const cancelling = f.act('cancel')
await vi.waitFor(() => { expect(spec.signal.aborted).toBe(true) })
access.mockRestore()
expect(f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')).toBe(cancelling)
expect(f.act('create')).toBe(cancelling)
expect(f.current()?.phase).toBe('creating')
expect(f.manager.installBundle).not.toHaveBeenCalled()
cleanup.resolve(undefined)
expect(await cancelling).toEqual({ status: 'accepted' })
expect(f.current()?.phase).toBe('cancelled')
expect(await readFile(join(spec.request.cwd!, 'package.json'), 'utf8')).toContain(firstName)
expect((await f.ctx.creationRecommendations.act(f.agent, callId, 'cancel', 'page')).status).toBe('settled')
expect((await f.act('cancel')).status).toBe('settled')
f.startActivation.mockImplementationOnce(async (retry) => {
await writeBundle(retry.request.cwd!, f.current()!.bundleName!)
return { childId: retry.childId!, result: Promise.resolve({ output: [], stopReason: 'completed', structured: { ready: true } }),
dispose: vi.fn(async () => {}) }
})
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
await vi.waitFor(() => { expect(f.current()?.phase).toBe('installed') })
expect(f.current()?.bundleName).not.toBe(firstName)
expect(f.startActivation).toHaveBeenCalledTimes(2)
@@ -205,14 +208,14 @@ describe('interface creation', () => {
const gate = Promise.withResolvers<ChangeResult>()
onTestFinished(() => { gate.resolve({ application: 'failed', changed: false, stage: 'install', target: 'fixture' }) })
f.manager.installBundle.mockImplementation(() => { installing.resolve(undefined); return gate.promise })
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
const spec = await f.entered.promise
const name = f.current()!.bundleName!
await writeBundle(spec.request.cwd!, name)
f.result.resolve({ output: [], stopReason: 'completed', structured: { ready: true } })
await installing.promise
expect(f.current()?.phase).toBe('installing')
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'cancel', 'page')).toEqual({ status: 'accepted' })
expect(await f.act('cancel')).toEqual({ status: 'accepted' })
expect(spec.signal.aborted).toBe(false)
f.bundles.push(installedBundle(name))
gate.resolve({ application: 'applied', changed: true, stage: 'install', target: name })
@@ -223,85 +226,90 @@ describe('interface creation', () => {
it('coalesces rapid clicks without creating twice, and dismisses durably', async () => {
const f = await fixture()
await f.propose()
const one = f.ctx.creationRecommendations.act(f.agent, callId, 'dismiss', 'page')
const two = f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
const one = f.act('dismiss')
const two = f.act('create')
expect(two).toBe(one)
expect(await one).toMatchObject({ status: 'settled', decision: { phase: 'dismissed', slot: 'page' } })
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
expect(await one).toEqual(settled('dismissed', { slot: 'page' }))
await f.act('create')
expect(f.startActivation).not.toHaveBeenCalled()
})
it('ignores blank proposals, keeps one card per turn, and refuses non-root or unauthorized clicks', async () => {
it('refuses clicks from non-root or unauthorized connections', async () => {
const f = await fixture()
for (const [index, args] of [{ ...proposal, title: ' ' }, { ...proposal, brief: ' ' }].entries()) {
const failed = await f.propose('failed-' + String(index), args)
expect(f.state().view.proposals[failed]).toBeUndefined()
}
await f.propose()
const second = await f.propose('second')
expect(f.state().view.proposals[second]).toBeUndefined()
f.agent.session.append('turn/start', { turn: 2 })
const nextTurn = await f.propose('next-turn')
expect(f.state().view.proposals[nextTurn]).toBeDefined()
vi.spyOn(f.ctx.agents, 'roots').mockReturnValue([])
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')).toEqual({ status: 'refused', reason: 'not-live-root' })
const roots = vi.spyOn(f.ctx.agents, 'roots').mockReturnValue([])
expect(await f.act('create')).toEqual({ status: 'refused', reason: 'not-live-root' })
roots.mockRestore()
vi.spyOn(f.ctx.remoteAccess, 'allows').mockReturnValue(false)
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')).toEqual({ status: 'refused', reason: 'access-denied' })
expect(await f.act('create')).toEqual({ status: 'refused', reason: 'access-denied' })
expect(await f.act('restore')).toEqual({ status: 'refused', reason: 'access-denied' })
expect(f.startActivation).not.toHaveBeenCalled()
})
it('returns a typed invalid-location refusal and falls back for invalid dismissal locations', async () => {
const f = await fixture()
await f.propose()
const invalid = 'unknown-location' as CreationSlot
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'create', invalid)).toEqual({ status: 'refused', reason: 'invalid-location' })
expect(await f.act('create', 'unknown-location')).toEqual({ status: 'refused', reason: 'invalid-location' })
vi.spyOn(f.ctx.remoteAccess, 'allows').mockReturnValue(false)
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'dismiss', invalid)).toMatchObject({ status: 'settled', decision: { slot: proposal.slot } })
expect(await f.act('dismiss', 'unknown-location', ' ')).toEqual(settled('dismissed', { slot: proposal.details.slot }))
expect(f.startActivation).not.toHaveBeenCalled()
})
it('keeps a Session usable when profile recovery fails, and checks again before any retry', async () => {
const f = await fixture({ callId, phase: 'creating', slot: 'page', bundleName: '@dsh-local/recover' })
await f.propose()
appendPluginRecord(f.agent.session, 'plugin:creation-recommendations/decision', { callId: ToolCallId('other-kept'), phase: 'kept', slot: 'page', bundleName: '@dsh-local/kept' })
recordCard(f.agent.session, { callId: ToolCallId('other-kept'), phase: 'kept', slot: 'page', bundleName: '@dsh-local/kept' })
await f.fiber.dispose()
f.manager.listBundles.mockRejectedValue(new Error('profile read failed'))
await f.ctx.plugin(CreationRecommendations)
expect(f.current()?.phase).toBe('unconfirmed')
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')).toEqual({ status: 'refused', reason: 'unavailable' })
expect(await f.act('create')).toEqual({ status: 'refused', reason: 'unavailable' })
expect(f.startActivation).not.toHaveBeenCalled()
f.manager.listBundles.mockResolvedValue([installedBundle('@dsh-local/recover')])
expect((await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')).status).toBe('settled')
expect((await f.act('create')).status).toBe('settled')
expect(f.current()?.phase).toBe('installed')
})
it('keeps unsuccessful uninstall outcomes visible and permits retry only for the owned bundle', async () => {
const f = await fixture()
await f.propose()
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
await f.complete()
const owned = f.current()!.bundleName!
f.manager.removeBundle.mockResolvedValueOnce({ application: 'restart-required', changed: true, stage: 'remove', target: owned })
await f.ctx.creationRecommendations.act(f.agent, callId, 'undo', 'page')
await f.act('undo')
expect(f.current()).toMatchObject({ phase: 'installed', application: 'restart-required' })
await f.ctx.creationRecommendations.act(f.agent, callId, 'undo', 'page')
await f.act('undo')
expect(f.current()?.phase).toBe('removed')
})
it('settles an already removed plugin without another removal and refuses incomplete old receipts', async () => {
const f = await fixture()
await f.propose()
appendPluginRecord(f.agent.session, 'plugin:creation-recommendations/decision', { callId, phase: 'installed', slot: 'page' })
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'undo', 'page')).toEqual({ status: 'refused', reason: 'unavailable' })
appendPluginRecord(f.agent.session, 'plugin:creation-recommendations/decision', { callId, phase: 'installed', slot: 'page', bundleName: '@dsh-local/removed' })
await f.ctx.creationRecommendations.act(f.agent, callId, 'undo', 'page')
recordCard(f.agent.session, { callId, phase: 'installed', slot: 'page' })
expect(await f.act('undo')).toEqual({ status: 'refused', reason: 'unavailable' })
recordCard(f.agent.session, { callId, phase: 'installed', slot: 'page', bundleName: '@dsh-local/removed' })
await f.act('undo')
expect(f.current()?.phase).toBe('removed')
expect(f.manager.removeBundle).not.toHaveBeenCalled()
})
it('ignores page receipts whose data no longer validates and decisions of other kinds', async () => {
const f = await fixture()
await f.propose()
const other = { callId: ToolCallId('other-card'), action: 'other_action', phase: 'creating', data: { slot: 'page', bundleName: '@dsh-local/other' } }
f.ctx.actionCards.record(f.agent, other)
f.ctx.actionCards.record(f.agent, { callId, action: ACTION, phase: 'installed', data: { slot: 'elsewhere' } })
expect(await f.act('keep')).toEqual({ status: 'refused', reason: 'unavailable' })
f.ctx.actionCards.record(f.agent, { callId, action: ACTION, phase: 'installed' })
expect(await f.act('create')).toEqual({ status: 'accepted' })
expect(f.ctx.actionCards.view(f.agent.session).decisions['other-card']).toEqual(other)
})
it.each(['error', 'completed'] as const)('does not install an incomplete %s Creator result', async (stopReason) => {
const f = await fixture()
await f.propose()
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
await f.entered.promise
f.result.resolve({ output: [], stopReason, structured: { ready: false } })
await vi.waitFor(() => { expect(f.current()?.phase).toBe('failed') })
@@ -311,7 +319,7 @@ describe('interface creation', () => {
it('does not install generated files when Creator ends without a completion receipt', async () => {
const f = await fixture()
await f.propose()
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
const spec = await f.entered.promise
await writeBundle(spec.request.cwd!, f.current()!.bundleName!)
f.result.resolve({ output: [], stopReason: 'completed' })
@@ -323,9 +331,9 @@ describe('interface creation', () => {
it('reconciles an interrupted receipt with the installed profile before retrying', async () => {
const f = await fixture()
await f.propose()
appendPluginRecord(f.agent.session, 'plugin:creation-recommendations/decision', { callId, phase: 'interrupted', slot: 'page', bundleName: '@dsh-local/recovered' })
recordCard(f.agent.session, { callId, phase: 'interrupted', slot: 'page', bundleName: '@dsh-local/recovered' })
f.bundles.push(installedBundle('@dsh-local/recovered'))
expect((await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')).status).toBe('settled')
expect((await f.act('create')).status).toBe('settled')
expect(f.current()?.phase).toBe('installed')
expect(f.current()?.application).toBeUndefined()
expect(f.startActivation).not.toHaveBeenCalled()
@@ -343,22 +351,21 @@ describe('interface creation', () => {
it('aborts owned children on unload and waits for their cleanup without uninstalling anything', async () => {
const f = await fixture()
await f.propose()
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
const spec = await f.entered.promise
const service = f.ctx.creationRecommendations
await f.fiber.dispose()
expect(spec.signal.aborted).toBe(true)
expect(f.dispose).toHaveBeenCalledOnce()
expect(f.current()?.phase).toBe('interrupted')
expect(f.manager.installBundle).not.toHaveBeenCalled()
expect(f.manager.removeBundle).not.toHaveBeenCalled()
expect(await service.act(f.agent, callId, 'create', 'page')).toEqual({ status: 'refused', reason: 'closing' })
expect(await f.act('create')).toEqual({ status: 'refused', reason: 'unavailable' })
})
it('blocks Creator profile mutations while leaving reads and unrelated agents usable', async () => {
const f = await fixture()
await f.propose()
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
const spec = await f.entered.promise
const child = await f.harness.create(spec.childId!)
f.ctx.tools.register(defineTool({ name: 'plugin_manager', description: 'fixture', parameters: { action: { type: 'string', required: true } },
@@ -383,27 +390,17 @@ describe('interface creation', () => {
expect((await run('install', lineage.agent)).isError).toBe(false)
})
it('treats inherited object member names as unknown proposals and logs nothing for them', async () => {
const f = await fixture()
await f.propose()
const logged = f.events.length
expect(await f.ctx.creationRecommendations.act(f.agent, ToolCallId('toString'), 'dismiss', 'page')).toEqual({ status: 'refused', reason: 'unknown' })
expect(await f.ctx.creationRecommendations.act(f.agent, ToolCallId('constructor'), 'create', 'page')).toEqual({ status: 'refused', reason: 'unknown' })
expect(f.events).toHaveLength(logged)
expect(f.startActivation).not.toHaveBeenCalled()
})
it('refuses to start a Creator while the Session is read-only and keeps dismissal available', async () => {
const f = await fixture()
await f.propose()
const resolve = vi.fn(() => ({ mode: 'read-only', workspaceRoot: f.directory }))
f.ctx.provide('sandboxPolicy', { resolve })
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')).toEqual({ status: 'refused', reason: 'read-only' })
expect(await f.act('create')).toEqual({ status: 'refused', reason: 'read-only' })
expect(resolve).toHaveBeenCalledWith({ session: f.agent.session })
expect(f.current()).toBeUndefined()
expect(f.startActivation).not.toHaveBeenCalled()
resolve.mockReturnValue({ mode: 'workspace-write', workspaceRoot: f.directory })
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')).toEqual({ status: 'accepted' })
expect(await f.act('create')).toEqual({ status: 'accepted' })
expect(f.current()?.phase).toBe('creating')
})
@@ -414,7 +411,7 @@ describe('interface creation', () => {
onTestFinished(() => { gate.resolve({ application: 'failed', changed: false, stage: 'install', target: 'fixture' }) })
const installing = Promise.withResolvers<undefined>()
f.manager.installBundle.mockImplementation(() => { installing.resolve(undefined); return gate.promise })
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
const spec = await f.entered.promise
await writeBundle(spec.request.cwd!, f.current()!.bundleName!)
f.result.resolve({ output: [], stopReason: 'completed', structured: { ready: true } })
@@ -435,7 +432,7 @@ describe('interface creation', () => {
const entered = Promise.withResolvers<undefined>()
const gate = Promise.withResolvers<ReturnType<typeof f.manager.listBundles> extends Promise<infer T> ? T : never>()
f.manager.listBundles.mockImplementationOnce(() => { entered.resolve(undefined); return gate.promise })
const creating = f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
const creating = f.act('create')
await entered.promise
const disposing = target === 'plugin' ? f.fiber.dispose() : f.agentHandle.dispose()
if (target === 'agent') await disposing
@@ -452,7 +449,7 @@ describe('interface creation', () => {
const gate = Promise.withResolvers<undefined>()
const original = f.startActivation.getMockImplementation()!
f.startActivation.mockImplementation(async (spec) => { const value = await original(spec); await gate.promise; return value })
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
const spec = await f.entered.promise
const unrelated = await f.ctx.agents.create({ sessionId: SessionId('unrelated') })
await unrelated.dispose()
@@ -469,7 +466,7 @@ describe('interface creation', () => {
it('reports cleanup failure without leaving a live child or installing its files', async () => {
const f = await fixture()
await f.propose()
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
await f.entered.promise
f.dispose.mockImplementation(async () => { f.result.resolve({ output: [], stopReason: 'aborted' }); throw new Error('cleanup failure') })
await f.fiber.dispose()
@@ -481,10 +478,9 @@ describe('interface creation', () => {
for (const collision of [true, false]) {
const f = await fixture()
await f.propose()
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
const spec = await f.entered.promise
const name = f.current()!.bundleName!
const { writeBundle } = await import('./fixture.ts')
await writeBundle(spec.request.cwd!, name)
if (collision) f.bundles.push(installedBundle(name))
else f.manager.installBundle.mockResolvedValueOnce({ application: 'failed', changed: false, stage: 'install', target: name })
@@ -500,9 +496,8 @@ describe('interface creation', () => {
const installing = Promise.withResolvers<undefined>()
const gate = Promise.withResolvers<ChangeResult>()
f.manager.installBundle.mockImplementation(() => { installing.resolve(undefined); return gate.promise })
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
const spec = await f.entered.promise
const { writeBundle } = await import('./fixture.ts')
const name = f.current()!.bundleName!
await writeBundle(spec.request.cwd!, name)
f.result.resolve({ output: [], stopReason: 'completed', structured: { ready: true } })
@@ -524,7 +519,7 @@ describe('interface creation', () => {
const gate = Promise.withResolvers<ChangeResult>()
onTestFinished(() => { gate.resolve({ application: 'failed', changed: false, stage: 'install', target: 'fixture' }) })
f.manager.installBundle.mockImplementation(() => { installing.resolve(undefined); return gate.promise })
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
const spec = await f.entered.promise
const name = f.current()!.bundleName!
await writeBundle(spec.request.cwd!, name)
@@ -533,12 +528,9 @@ describe('interface creation', () => {
const seed = [...f.events]
await f.agentHandle.dispose()
const reopened = await f.ctx.agents.create({ sessionId: f.agent.id, seed })
const current = () => {
const view = f.ctx.sessionProjections.snapshot(reopened.agent.session).values.creationRecommendations as CreationView
return view.decisions[callId]
}
const current = () => f.cardOf(callId, reopened.agent)
expect(current()?.phase).toBe('installing')
expect(await f.ctx.creationRecommendations.act(reopened.agent, callId, 'create', 'page')).toEqual({ status: 'accepted' })
expect(await f.act('create', 'page', undefined, reopened.agent)).toEqual({ status: 'accepted' })
f.bundles.push(installedBundle(name))
gate.resolve({ application: 'applied', changed: true, stage: 'install', target: name })
await vi.waitFor(() => { expect(current()?.phase).toBe('installed') })
@@ -551,11 +543,11 @@ describe('interface creation', () => {
const cleanup = Promise.withResolvers<undefined>()
onTestFinished(() => { cleanup.resolve(undefined) })
f.dispose.mockImplementation(async () => { f.result.resolve({ output: [], stopReason: 'aborted' }); await cleanup.promise })
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
await f.entered.promise
await f.agentHandle.dispose()
const reopened = await f.ctx.agents.create({ sessionId: f.agent.id, seed: [...f.events] })
expect(await f.ctx.creationRecommendations.act(reopened.agent, callId, 'create', 'page')).toEqual({ status: 'accepted' })
expect(await f.act('create', 'page', undefined, reopened.agent)).toEqual({ status: 'accepted' })
expect(f.startActivation).toHaveBeenCalledOnce()
cleanup.resolve(undefined)
await f.fiber.dispose()
@@ -565,7 +557,7 @@ describe('interface creation', () => {
it.each(['lookup', 'lookup-reload', 'remove'] as const)('releases Undo when the plugin unloads during %s', async (stage) => {
const f = await fixture()
await f.propose()
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
await f.complete()
const entered = Promise.withResolvers<undefined>()
const lookup = Promise.withResolvers<ReturnType<typeof installedBundle>[]>()
@@ -573,7 +565,7 @@ describe('interface creation', () => {
onTestFinished(() => { lookup.resolve(f.bundles); removing.resolve({ application: 'applied', changed: true, stage: 'remove', target: 'fixture' }) })
if (stage !== 'remove') f.manager.listBundles.mockImplementationOnce(() => { entered.resolve(undefined); return lookup.promise })
else f.manager.removeBundle.mockImplementationOnce(() => { entered.resolve(undefined); return removing.promise })
const result = f.ctx.creationRecommendations.act(f.agent, callId, 'undo', 'page')
const result = f.act('undo')
await entered.promise
const disposing = stage === 'lookup-reload' ? f.fiber.restart() : f.fiber.dispose()
lookup.resolve(f.bundles)
@@ -588,15 +580,15 @@ describe('interface creation', () => {
it('restores an undone page from its retained profile copy without running the Creator again', async () => {
const f = await fixture()
await f.propose()
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
await f.complete()
const bundleName = f.current()!.bundleName!
const directory = join(f.directory, 'created-plugins', bundleName.slice('@dsh-local/view-'.length))
expect(f.manager.installBundle).toHaveBeenCalledExactlyOnceWith(directory)
await f.ctx.creationRecommendations.act(f.agent, callId, 'undo', 'page')
await f.act('undo')
expect(f.current()).toMatchObject({ phase: 'removed', application: 'applied' })
const access = vi.spyOn(f.ctx.remoteAccess, 'allows').mockReturnValue(false)
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'restore', 'page')).toEqual({ status: 'refused', reason: 'access-denied' })
expect(await f.act('restore')).toEqual({ status: 'refused', reason: 'access-denied' })
access.mockRestore()
let installing: unknown
f.manager.installBundle.mockImplementationOnce(async (path: string) => {
@@ -604,66 +596,63 @@ describe('interface creation', () => {
f.bundles.push(installedBundle(bundleName))
return { application: 'applied', changed: true, stage: 'install', target: path }
})
const decision = { callId, phase: 'installed', slot: 'page', bundleName, application: 'applied' }
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'restore', 'page')).toEqual({ status: 'settled', decision })
expect(await f.act('restore')).toEqual(settled('installed', { slot: 'page', bundleName, application: 'applied' }))
expect(installing).toEqual({ callId, phase: 'installing', slot: 'page', bundleName })
expect(f.manager.installBundle).toHaveBeenLastCalledWith(directory)
expect(f.current()).toEqual(decision)
expect(f.current()).toEqual({ callId, phase: 'installed', slot: 'page', bundleName, application: 'applied' })
expect(f.startActivation).toHaveBeenCalledOnce()
})
it('refuses Restore without its profile copy or package name and records nothing', async () => {
const f = await fixture()
await f.propose()
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
await f.complete()
await f.ctx.creationRecommendations.act(f.agent, callId, 'undo', 'page')
await f.act('undo')
await rm(f.manager.installBundle.mock.calls[0]![0], { recursive: true })
const logged = f.events.length
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'restore', 'page')).toEqual({ status: 'refused', reason: 'source-missing' })
expect(await f.act('restore')).toEqual({ status: 'refused', reason: 'source-missing' })
expect(f.events).toHaveLength(logged)
expect(f.current()?.phase).toBe('removed')
appendPluginRecord(f.agent.session, 'plugin:creation-recommendations/decision', { callId, phase: 'removed', slot: 'page' })
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'restore', 'page')).toEqual({ status: 'refused', reason: 'unavailable' })
recordCard(f.agent.session, { callId, phase: 'removed', slot: 'page' })
expect(await f.act('restore')).toEqual({ status: 'refused', reason: 'unavailable' })
expect(f.manager.installBundle).toHaveBeenCalledOnce()
})
it('records a failed receipt instead of leaving Restore installing when the reinstallation throws', async () => {
const f = await fixture()
await f.propose()
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
await f.complete()
const bundleName = f.current()!.bundleName!
await f.ctx.creationRecommendations.act(f.agent, callId, 'undo', 'page')
await f.act('undo')
f.manager.installBundle.mockRejectedValueOnce(new Error('profile locked'))
const decision = { callId, phase: 'failed', slot: 'page', bundleName }
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'restore', 'page')).toEqual({ status: 'settled', decision })
expect(f.current()).toEqual(decision)
expect(await f.act('restore')).toEqual(settled('failed', { slot: 'page', bundleName }))
expect(f.current()).toEqual({ callId, phase: 'failed', slot: 'page', bundleName })
expect(f.startActivation).toHaveBeenCalledOnce()
})
it('settles Restore on a page that is not removed and confirms one reinstalled elsewhere without installing it', async () => {
const f = await fixture()
await f.propose()
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'restore', 'page')).toEqual({ status: 'refused', reason: 'unavailable' })
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
expect(await f.act('restore')).toEqual({ status: 'refused', reason: 'unavailable' })
await f.act('create')
await f.complete()
const installed = f.current()!
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'restore', 'page')).toEqual({ status: 'settled', decision: installed })
await f.ctx.creationRecommendations.act(f.agent, callId, 'undo', 'page')
expect(await f.act('restore')).toEqual(settled('installed', { slot: 'page', bundleName: installed.bundleName, application: 'applied' }))
await f.act('undo')
f.bundles.push(installedBundle(installed.bundleName!))
const decision = { callId, phase: 'installed', slot: 'page', bundleName: installed.bundleName }
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'restore', 'page')).toEqual({ status: 'settled', decision })
expect(f.current()).toEqual(decision)
expect(await f.act('restore')).toEqual(settled('installed', { slot: 'page', bundleName: installed.bundleName }))
expect(f.current()).toEqual({ callId, phase: 'installed', slot: 'page', bundleName: installed.bundleName })
expect(f.manager.installBundle).toHaveBeenCalledOnce()
})
it.each(['lookup', 'install', 'outcome lookup'] as const)('releases Restore when the plugin unloads during %s', async (stage) => {
const f = await fixture()
await f.propose()
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
await f.complete()
await f.ctx.creationRecommendations.act(f.agent, callId, 'undo', 'page')
await f.act('undo')
const entered = Promise.withResolvers<undefined>()
const lookup = Promise.withResolvers<ReturnType<typeof installedBundle>[]>()
const installing = Promise.withResolvers<ChangeResult>()
@@ -672,7 +661,7 @@ describe('interface creation', () => {
if (stage === 'lookup') f.manager.listBundles.mockImplementationOnce(blocked)
else if (stage === 'install') f.manager.installBundle.mockImplementationOnce(() => { entered.resolve(undefined); return installing.promise })
else f.manager.listBundles.mockImplementationOnce(async () => f.bundles).mockImplementationOnce(blocked)
const restoring = f.ctx.creationRecommendations.act(f.agent, callId, 'restore', 'page')
const restoring = f.act('restore')
await entered.promise
const disposing = f.fiber.dispose()
if (stage === 'outcome lookup') lookup.reject(new Error('profile read failed'))
@@ -691,7 +680,7 @@ describe('interface creation', () => {
void f.fiber.dispose().then(() => { disposed.resolve(undefined) }, disposed.reject)
return { application: 'applied', changed: true, stage: 'install', target: 'fixture' }
})
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
const spec = await f.entered.promise
await writeBundle(spec.request.cwd!, f.current()!.bundleName!)
f.result.resolve({ output: [], stopReason: 'completed', structured: { ready: true } })
@@ -706,15 +695,7 @@ it('never offers a proposal written while the user has queued more messages for
f.agent.inbox.append('next-turn', queued())
f.agent.inbox.append('next-turn', queued())
await f.propose()
expect(f.current()).toEqual({ callId, phase: 'suppressed', slot: 'sidebar-right' })
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'sidebar-right')).toEqual({
status: 'settled', decision: { callId, phase: 'suppressed', slot: 'sidebar-right' },
})
expect(f.current()).toEqual({ callId, phase: 'suppressed' })
expect(await f.act('create')).toEqual({ status: 'settled', decision: { callId, action: ACTION, phase: 'suppressed' } })
expect(f.startActivation).not.toHaveBeenCalled()
f.agent.inbox.clear()
f.agent.inbox.append('next-turn', queued())
f.agent.session.append('turn/start', { turn: 2 })
const next = await f.propose('creation-2')
expect(f.state().view.proposals[next]).toBeDefined()
expect(f.state().view.decisions[next]).toBeUndefined()
})
@@ -1,23 +1,34 @@
/** Real Agent, Tools and projections with controlled Creator and profile operations. */
/** Real Agent, Tools, card service and projections with controlled Creator and profile operations. */
import { mkdtemp, mkdir, writeFile, rm } from 'node:fs/promises'
import { tmpdir } from 'node:os'
import { join } from 'node:path'
import { Context } from '@deepseek-ai/cordis'
import { expect, onTestFinished, vi } from 'vitest'
import { MessageId, ToolCallId, type AssistantMessage } from '@deepseek-ai/dsh-llm'
import { createToolResultMessage, ToolCallId } from '@deepseek-ai/dsh-llm'
import { appendPluginRecord, SessionId, type SessionEvent } from '@deepseek-ai/dsh-session'
import { mountAgentLoopTestDependencies, mountAgentLoopTestHarness } from '@deepseek-ai/dsh-agent-loop-testkit'
import Skills from '@deepseek-ai/dsh-skill'
import * as SkillTool from '@deepseek-ai/dsh-tool-skill'
import RemoteAccess from '@deepseek-ai/dsh-api-remote-access'
import ActionCards from '@deepseek-ai/dsh-experimental-action-cards'
import type { Agent } from '@deepseek-ai/dsh-agent'
import type { BundleInfo, ChangeResult } from '@deepseek-ai/dsh-plugin-manager/types'
import type { SubagentActivationSpec, SubagentResult } from '@deepseek-ai/dsh-subagent'
import * as CreationRecommendations from '../src/index.ts'
import { creationProjection } from '../src/projection.ts'
import type { CreationCardState, CreationDecision } from '../src/types.ts'
import type { PageData } from '../src/types.ts'
export const callId = ToolCallId('block:creation-1')
export const proposal = { title: 'Counter', brief: 'Keep a counter visible for this task.', slot: 'sidebar-right' as const }
export const ACTION = 'create_personalized_page'
export const callId = ToolCallId('call-creation-1')
export const proposal = { title: 'Counter', brief: 'Keep a counter visible for this task.', details: { slot: 'sidebar-right' as const } }
/** A page card's recorded phase with its data flattened, as the tests compare it. */
export type PageCardState = PageData & { readonly callId: ToolCallId; readonly phase: string }
/** Record a page decision the way the plugin does. */
export function recordCard(session: Agent['session'], { callId: id, phase, ...data }: PageCardState): void {
const fields = Object.fromEntries(Object.entries(data).flatMap(([key, value]) => value === undefined ? [] : [[key, value] as const]))
appendPluginRecord(session, 'plugin:action-cards/decision', { callId: id, action: ACTION, phase, data: fields })
}
export function installedBundle(name: string): BundleInfo {
return { name, official: false, optional: false, availability: 'profile', installed: true,
@@ -31,7 +42,7 @@ export async function writeBundle(directory: string, name: string): Promise<void
await writeFile(join(directory, 'index.js'), 'export function apply(ctx) { ctx.provide("createdCounter", true) }\n')
}
export async function fixture(initial?: CreationDecision) {
export async function fixture(initial?: PageCardState) {
const directory = await mkdtemp(join(tmpdir(), 'dsh-creation-'))
const ctx = new Context()
onTestFinished(async () => { await ctx.fiber.dispose(); await rm(directory, { recursive: true, force: true }) })
@@ -40,12 +51,12 @@ export async function fixture(initial?: CreationDecision) {
await ctx.plugin(RemoteAccess)
await ctx.plugin(Skills)
await ctx.plugin(SkillTool)
await ctx.plugin(ActionCards)
const bundles: BundleInfo[] = []
const manager = {
listBundles: vi.fn(async (): Promise<BundleInfo[]> => bundles),
installBundle: vi.fn(async (path: string): Promise<ChangeResult> => {
const decision = current()!
bundles.push(installedBundle(decision.bundleName!))
bundles.push(installedBundle(current()!.bundleName!))
return { application: 'applied', changed: true, stage: 'install', target: path }
}),
removeBundle: vi.fn(async (name: string): Promise<ChangeResult> => {
@@ -69,30 +80,35 @@ export async function fixture(initial?: CreationDecision) {
const agent = agentHandle.agent
const events: SessionEvent[] = []
ctx.on('session/event', (session, event) => { if (session === agent.session) events.push(event) })
if (initial !== undefined) appendPluginRecord(agent.session, 'plugin:creation-recommendations/decision', initial)
if (initial !== undefined) recordCard(agent.session, initial)
const fiber = await ctx.plugin(CreationRecommendations)
const projection = creationProjection(CreationRecommendations.Config.parse({}))
const state = () => events.reduce(projection.apply, projection.init(agent.session.header, agent.session.inheritedEventCount))
const current = (): CreationCardState | undefined => state().view.decisions[callId]
/** Log an assistant answer ending in a dsh-action block, as the model would write it. */
let step = 0
const propose = async (id = 'creation-1', args: object = proposal, caller = agent) => {
const text = '方案在下方,点击创建即可开始。\n\n```dsh-action\n' + JSON.stringify({ action: 'create_personalized_page', ...args }) + '\n```'
const message: AssistantMessage = { role: 'assistant', id: MessageId(id), content: [{ type: 'text', text }],
source: { kind: 'model', provider: 'fixture', model: 'fixture' } }
const turn = caller === agent ? Math.max(1, state().turn) : 1
caller.session.append('assistant/message', { turn, step: ++step, message, stream: [] }, { surfaceOp: 'append' })
await Promise.resolve()
return ToolCallId('block:' + id)
const cardOf = (id: ToolCallId, caller: Agent = agent): PageCardState | undefined => {
const decision = ctx.actionCards.view(caller.session).decisions[id]
return decision === undefined ? undefined : { callId: decision.callId, phase: decision.phase, ...decision.data } as PageCardState
}
const current = (): PageCardState | undefined => cardOf(callId)
/** Log a successful propose_action call, as the card tool would after the skill load. */
let step = 0
const propose = async (id = 'call-creation-1', args: object = proposal, caller = agent) => {
const turn = Math.max(1, ctx.agents.turnBoundaryOf(caller.session).lastTurn)
const toolCallId = ToolCallId(id)
caller.session.append('tool/call', { turn, step: ++step, callId: toolCallId, name: 'propose_action', arguments: JSON.stringify({ action: ACTION, ...args }) })
caller.session.append('tool/result', { turn, step, message: createToolResultMessage({ callId: toolCallId,
content: [{ type: 'text', text: 'Card shown below your answer.' }], isError: false }) }, { surfaceOp: 'append' })
await Promise.resolve()
return toolCallId
}
/** Send one card action the way the page body does: Create and Not now carry the chosen location. */
const act = (verb: string, slot = 'page', customLocation?: string, caller = agent, id = callId) =>
ctx.actionCards.act(caller, id, verb, verb === 'create' || verb === 'dismiss'
? { slot, ...customLocation === undefined ? {} : { customLocation } } : undefined)
const complete = async () => {
const spec = await entered.promise
const decision = current()!
await writeBundle(spec.request.cwd!, decision.bundleName!)
await writeBundle(spec.request.cwd!, current()!.bundleName!)
result.resolve({ output: [], stopReason: 'completed', structured: { ready: true } })
await vi.waitFor(() => { expect(current()?.phase).toBe('installed') })
return spec
}
return { ctx, agent, agentHandle, harness, directory, manager, bundles, startActivation, dispose, result, entered,
fiber, propose, current, state, complete, events }
fiber, propose, act, current, cardOf, complete, events }
}
@@ -1,8 +1,7 @@
/** Real package installation and Loader/HMR; only Creator output is scripted. */
/** Real Loader composition of the card service and this kind with a scripted model, package installation and HMR. */
import { mkdtemp, mkdir, writeFile, readFile, rename, symlink, rm } from 'node:fs/promises'
import { tmpdir } from 'node:os'
import { join } from 'node:path'
import { MessageId, type AssistantMessage } from '@deepseek-ai/dsh-llm'
import { expect, it, onTestFinished, vi } from 'vitest'
import type { Context } from '@deepseek-ai/cordis'
import Timer from '@deepseek-ai/cordis-plugin-timer'
@@ -13,14 +12,19 @@ import Sessions, { SessionId } from '@deepseek-ai/dsh-session'
import Projections from '@deepseek-ai/dsh-session-projection'
import Agents from '@deepseek-ai/dsh-agent'
import AgentLoop from '@deepseek-ai/dsh-agent-loop'
import Llm, { ToolCallId } from '@deepseek-ai/dsh-llm'
import Llm, { createUserMessage, ToolCallId } from '@deepseek-ai/dsh-llm'
import Skills from '@deepseek-ai/dsh-skill'
import * as SkillTool from '@deepseek-ai/dsh-tool-skill'
import SystemPrompt from '@deepseek-ai/dsh-system-prompt'
import Tools from '@deepseek-ai/dsh-tools'
import * as NativeExecutor from '@deepseek-ai/dsh-tool-executor-native'
import FsLocal from '@deepseek-ai/dsh-fs-local'
import WorkingDirectory from '@deepseek-ai/dsh-working-directory'
import Access from '@deepseek-ai/dsh-api-remote-access'
import * as ActionCards from '@deepseek-ai/dsh-experimental-action-cards'
import type { SubagentActivation, SubagentActivationSpec } from '@deepseek-ai/dsh-subagent'
import { MockAdapter, textResponse, toolCallResponse } from '../../../core/agent-loop/tests/mock-adapter.ts'
import * as Recommendations from '../src/index.ts'
import type { CreationView } from '../src/types.ts'
import { writeBundle } from './fixture.ts'
it.each(['portable-bundle', 'foreign-nested-row'] as const)('validates and installs through pnpm/HMR: %s', async (scenario) => {
@@ -35,9 +39,9 @@ it.each(['portable-bundle', 'foreign-nested-row'] as const)('validates and insta
await writeFile(join(base, 'package.json'), JSON.stringify({ name: 'fixture-base', version: '1.0.0',
dsh: { bundle: { patch: './cordis.patch.yml' } } }))
await writeFile(join(base, 'cordis.patch.yml'), JSON.stringify([{ insert: [
['session', 'sessions'], ['projection', 'projections'], ['llm', 'llm'], ['prompt', 'prompt'],
['tools', 'tools'], ['skills', 'skills'], ['agents', 'agents'], ['access', 'access'], ['manager', 'manager'],
['recommendations', 'recommendations'],
['session', 'sessions'], ['projection', 'projections'], ['llm', 'llm'], ['prompt', 'prompt'], ['tools', 'tools'],
['executor', 'executor'], ['fs', 'fs'], ['working-directory', 'workingDirectory'], ['skills', 'skills'], ['tool-skill', 'toolSkill'],
['agents', 'agents'], ['access', 'access'], ['manager', 'manager'], ['action-cards', 'actionCards'], ['recommendations', 'recommendations'],
].map(([id, name]) => ({ id, name: 'cordis:' + name! })) }]))
initProfile(dir, ['fixture-base'])
const manifestPath = join(dir, 'package.json')
@@ -72,23 +76,37 @@ it.each(['portable-bundle', 'foreign-nested-row'] as const)('validates and insta
return { childId: spec.childId!, dispose: async () => {},
result: Promise.resolve({ output: [], stopReason: 'completed', structured: { ready: true } }) }
} })
Object.assign(ctx.loader.builtins, { sessions: Sessions, projections: Projections, llm: Llm, prompt: SystemPrompt,
tools: Tools, skills: Skills, agents: Agents, access: Access, manager: PluginManager, recommendations: Recommendations })
Object.assign(ctx.loader.builtins, { sessions: Sessions, projections: Projections, llm: Llm, prompt: SystemPrompt, tools: Tools,
executor: NativeExecutor, fs: FsLocal, workingDirectory: WorkingDirectory, skills: Skills, toolSkill: SkillTool, agents: Agents,
access: Access, manager: PluginManager, actionCards: ActionCards, recommendations: Recommendations })
})
await ctx.plugin(Timer)
await ctx.plugin(Hmr, { root: [], ignored: [], debounce: 0 })
await ctx.hmr.runExclusive(async () => {})
await ctx.plugin(AgentLoop, { agents: [] })
const agent = await ctx.agentLoop.create(SessionId('creation-live'))
const callId = ToolCallId('block:create-live')
const text = '方案在下方。\n\n```dsh-action\n' + JSON.stringify({ action: 'create_personalized_page', title: 'Counter', brief: 'Keep a counter in the right sidebar.', slot: 'sidebar-right' }) + '\n```'
const message: AssistantMessage = { role: 'assistant', id: MessageId('create-live'), content: [{ type: 'text', text }],
source: { kind: 'model', provider: 'fixture', model: 'fixture' } }
agent.session.append('assistant/message', { turn: 1, step: 1, message, stream: [] }, { surfaceOp: 'append' })
const receipt = () => (ctx.sessionProjections.snapshot(agent.session).values.creationRecommendations as CreationView).decisions[callId]
const callId = ToolCallId('call-card')
const adapter = new MockAdapter([
toolCallResponse('call-skill', 'skill', { name: 'personalized-pages' }),
toolCallResponse('call-card', 'propose_action', { action: 'create_personalized_page', title: 'Counter',
brief: 'Keep a counter in the right sidebar.', details: { slot: 'sidebar-right' } }),
textResponse('After you click Create below, I will build it in the background.'),
])
ctx.llm.registerAdapter(['mock'], adapter)
const agent = await ctx.agentLoop.create(SessionId('creation-live'), { provider: 'mock', model: 'mock' }, { cwd: home })
agent.followup(createUserMessage({ content: [{ type: 'text', text: 'I want a counter that stays visible.' }], source: { kind: 'user' } }))
await vi.waitFor(() => { expect(agent.session.snapshotEvents().some(event => event.type === 'turn/end')).toBe(true) })
// The card tool is declared only from the step after the card skill loaded; the addition is logged.
const declared = adapter.requests.map(request => (request.tools ?? []).some(tool => tool.name === 'propose_action'))
expect(declared).toEqual([false, true, true])
expect(agent.session.snapshotEvents().flatMap(event => event.type === 'developer/message' ? event.data.message.content : []))
.toContainEqual({ type: 'tool-addition', toolName: 'propose_action' })
const results = agent.session.snapshotEvents().flatMap(event => event.type === 'tool/result' ? [event.data.message] : [])
expect(results.map(message => message.isError === true)).toEqual([false, false])
const receipt = () => ctx.actionCards.view(agent.session).decisions[callId]
expect(ctx.actionCards.view(agent.session).proposals[callId]).toMatchObject({ action: 'create_personalized_page', title: 'Counter' })
expect(starts).toHaveLength(0)
const access = [...ctx.loader.entries()].find(entry => entry.options.id === 'access')
expect(await ctx.creationRecommendations.act(agent, callId, 'create', 'page')).toEqual({ status: 'accepted' })
expect(await ctx.actionCards.act(agent, callId, 'create', { slot: 'page' })).toEqual({ status: 'accepted' })
if (scenario === 'foreign-nested-row') {
await vi.waitFor(() => { expect(receipt()?.phase).toBe('failed') })
expect([...ctx.loader.entries()].find(entry => entry.options.id === 'access')).toBe(access)
@@ -98,20 +116,21 @@ it.each(['portable-bundle', 'foreign-nested-row'] as const)('validates and insta
return
}
await vi.waitFor(() => { expect(receipt()?.phase).toBe('installed') }, { timeout: 20_000 })
expect(receipt()?.application).toBe('applied')
expect(receipt()?.data?.application).toBe('applied')
expect(starts[0]?.request.agentPreset).toBe('cordis')
expect(starts[0]?.request.cwd?.startsWith(join(home, '.dsh-created-plugins'))).toBe(true)
await rm(starts[0]!.request.cwd!, { recursive: true })
const name = receipt()!.bundleName!
const name = receipt()?.data?.bundleName
if (typeof name !== 'string') throw new Error('the installed card records no bundle name')
await ctx.pluginManager.setBundleEnabled(name, false)
expect((await ctx.pluginManager.setBundleEnabled(name, true)).application).toBe('applied')
const live = () => [...ctx.loader.entries()].find(entry => entry.options.id === name + ':counter')?.fiber
expect(live()).toBeDefined()
expect(readProfileManifest('test', dir).dsh?.profile?.bundles).toContain(name)
await ctx.creationRecommendations.act(agent, callId, 'keep', 'page')
await ctx.actionCards.act(agent, callId, 'keep')
expect(receipt()?.phase).toBe('kept')
expect(live()).toBeDefined()
await ctx.creationRecommendations.act(agent, callId, 'undo', 'page')
await ctx.actionCards.act(agent, callId, 'undo')
expect(receipt()?.phase).toBe('removed')
expect(live()).toBeUndefined()
expect(readProfileManifest('test', dir).dsh?.profile?.bundles).toEqual(['fixture-base'])
@@ -119,6 +138,6 @@ it.each(['portable-bundle', 'foreign-nested-row'] as const)('validates and insta
const feature = [...ctx.loader.entries()].find(entry => entry.options.id === 'recommendations')
expect(feature?.fiber).toBeDefined()
await feature!.fiber!.dispose()
expect(ctx.get('creationRecommendations')).toBeUndefined()
expect(await ctx.skills.list()).toEqual([])
expect(await ctx.actionCards.act(agent, callId, 'restore')).toEqual({ status: 'refused', reason: 'unavailable' })
}, 30_000)
@@ -1,101 +0,0 @@
import { expect, it } from 'vitest'
import { createToolResultMessage, createUserMessage, MessageId, ToolCallId, type AssistantMessage } from '@deepseek-ai/dsh-llm'
import {
appendPluginRecord, Session, SESSION_FORMAT_VERSION, SessionId, SessionLogOffset, SessionSeq, type SessionEvent, type SessionHeader,
} from '@deepseek-ai/dsh-session'
import { creationOf, creationProjection as projectionFor, type CreationState } from '../src/projection.ts'
const creationProjection = projectionFor({ queuedMessageLimit: 2 })
const fields = { title: 'Counter', brief: 'Keep count visible', slot: 'page' as const }
const block = (values: object) => '```dsh-action\n' + JSON.stringify({ action: 'create_personalized_page', ...values }) + '\n```'
function init(inherited = 0): CreationState {
const header: SessionHeader = { version: SESSION_FORMAT_VERSION, id: SessionId('creation'), createdAt: 0, isSeeded: inherited > 0 }
return creationProjection.init(header, SessionLogOffset(inherited))
}
function answer(id: string, text: string, seq = 7, reasoning?: string): SessionEvent<'assistant/message'> {
const message: AssistantMessage = { role: 'assistant', id: MessageId(id),
content: [...reasoning === undefined ? [] : [{ type: 'reasoning' as const, text: reasoning }], { type: 'text', text }],
source: { kind: 'model', provider: 'fixture', model: 'fixture' } }
return { type: 'assistant/message', seq: SessionSeq(seq), time: 0, surfaceOp: 'append', data: { turn: 1, step: 1, message, stream: [] } }
}
function turn(value: number, seq: number): SessionEvent<'turn/start'> {
return { type: 'turn/start', seq: SessionSeq(seq), time: 0, data: { turn: value } }
}
it('reads the last valid dsh-action block of an answer and nothing from other events', () => {
expect(creationOf(answer('m1', '先回答。\n\n' + block(fields)))).toEqual({ callId: ToolCallId('block:m1'), ...fields })
expect(creationOf(answer('m2', block({ ...fields, title: '' }) + '\n' + block({ ...fields, title: 'Second' })))).toEqual({ callId: ToolCallId('block:m2'), ...fields, title: 'Second' })
for (const text of ['没有围栏', '```dsh-action\n{broken\n```', block({ ...fields, action: 'other' }), block({ ...fields, slot: 'elsewhere' }), block({ ...fields, extra: 1 }), block({ ...fields, turn: 3 })]) {
expect(creationOf(answer('m3', text))).toBeUndefined()
}
expect(creationOf(answer('m4', '答案在上面。', 7, block(fields)))).toBeUndefined()
expect(creationOf(turn(1, 0))).toBeUndefined()
const result: SessionEvent<'tool/result'> = { type: 'tool/result', seq: SessionSeq(1), time: 0, surfaceOp: 'append',
data: { turn: 1, step: 1, message: createToolResultMessage({ callId: ToolCallId('tool'), content: [], isError: false }),
meta: { creationRecommendation: { callId: 'tool', ...fields } } } }
expect(creationOf(result)).toBeUndefined()
expect(creationProjection.apply(init(), result)).toEqual(init())
})
it('keeps one card per turn, records the admitting turn and replaces only undecided earlier cards', () => {
const first = [turn(1, 0), answer('m1', block(fields), 1)].reduce(creationProjection.apply, init())
expect(first.view.proposals).toEqual({ [ToolCallId('block:m1')]: { callId: ToolCallId('block:m1'), ...fields, turn: 1 } })
expect(creationProjection.apply(first, answer('m1', block(fields), 2)).view).toEqual(first.view)
const late = creationProjection.apply(first, answer('m2', block({ ...fields, title: 'Late' }), 2))
expect(late).toBe(first)
const nextTurn = [turn(2, 3), answer('m3', block({ ...fields, title: 'Next' }), 4)].reduce(creationProjection.apply, first)
expect(nextTurn.view.proposals[ToolCallId('block:m3')]).toEqual({ callId: ToolCallId('block:m3'), ...fields, title: 'Next', turn: 2 })
expect(nextTurn.view.decisions).toEqual({ [ToolCallId('block:m1')]: { callId: ToolCallId('block:m1'), phase: 'replaced', slot: 'page' } })
const dismissed: CreationState = { ...first, view: { ...first.view,
decisions: { [ToolCallId('block:m1')]: { callId: ToolCallId('block:m1'), phase: 'dismissed', slot: 'page' } } } }
const afterDismissal = [turn(2, 3), answer('m3', block(fields), 4)].reduce(creationProjection.apply, dismissed)
expect(afterDismissal.view.decisions).toEqual(dismissed.view.decisions)
})
it('never offers a proposal written while user messages are queued for later turns', () => {
const queued = [
turn(1, 0),
{ type: 'agent/inbox/spliced', seq: SessionSeq(1), time: 0, data: { target: 'next-step', start: 0, inserted: [
createUserMessage({ content: [{ type: 'text', text: 'steer' }], source: { kind: 'user' } })] } },
{ type: 'agent/inbox/spliced', seq: SessionSeq(2), time: 0, data: { target: 'next-turn', start: 0, inserted: ['one', 'two'].map(text =>
createUserMessage({ content: [{ type: 'text', text }], source: { kind: 'user' } })) } },
answer('m1', block(fields), 3),
] satisfies SessionEvent[]
const state = queued.reduce<CreationState>(creationProjection.apply, init())
expect(state.queued).toBe(2)
expect(state.view.decisions[ToolCallId('block:m1')]).toEqual({ callId: ToolCallId('block:m1'), phase: 'suppressed', slot: 'page' })
expect(creationProjection.apply(state, answer('m2', block(fields), 4))).toBe(state)
})
it('ignores the events a forked Session inherits from its parent', () => {
const parent = [turn(1, 0), answer('m1', block(fields), 1)]
const inherited = init(parent.length)
expect(parent.reduce(creationProjection.apply, inherited)).toBe(inherited)
const own = [turn(2, 2), answer('m2', block({ ...fields, title: 'Fork' }), 3)].reduce(creationProjection.apply, inherited)
expect(Object.keys(own.view.proposals)).toEqual([ToolCallId('block:m2')])
expect(own.view.decisions).toEqual({})
})
it('skips decision records that do not match the receipt schema', () => {
const session = Session.create(SessionId('records'))
const malformed = { callId: ToolCallId('block:m1'), phase: 'dismissed' as const, slot: 'page' as const, customLocation: ' ' }
appendPluginRecord(session, 'plugin:creation-recommendations/decision', malformed)
appendPluginRecord(session, 'plugin:creation-recommendations/decision', { ...malformed, customLocation: 'Left entry' })
const [skipped, recorded] = session.snapshotEvents()
const state = creationProjection.apply(init(), skipped!)
expect(state).toEqual(init())
expect(creationProjection.apply(state, recorded!).view.decisions).toEqual({
[ToolCallId('block:m1')]: { ...malformed, customLocation: 'Left entry' },
})
})
it('publishes proposals and receipts as one view reused across internal state changes', () => {
const state = [turn(1, 0), answer('m1', block({ ...fields, initialContent: 'A: 1' }), 1)].reduce(creationProjection.apply, init())
const view = creationProjection.wire.view(state)
expect(view).toBe(state.view)
expect(creationProjection.wire.viewSchema.parse(view)).toEqual(view)
expect(creationProjection.wire.view(creationProjection.apply(state, turn(2, 2)))).toBe(view)
})
@@ -1,8 +1,7 @@
import { expect, it, vi } from 'vitest'
import { agentEvents, type Agent, type PreStepDecision } from '@deepseek-ai/dsh-agent'
import { createUserMessage, ToolCallId } from '@deepseek-ai/dsh-llm'
import { appendPluginRecord } from '@deepseek-ai/dsh-session'
import { fixture, callId, proposal } from './fixture.ts'
import { fixture, callId, proposal, recordCard, ACTION } from './fixture.ts'
import * as CreationRecommendations from '../src/index.ts'
async function prepare(
@@ -12,7 +11,7 @@ async function prepare(
const decision = await agentEvents(f.ctx, agent).waterfall('agent/pre-step', { messages: [], turn: 2, step: 1, signal, modelSelection: { provider: 'mock', model: 'mock' } },
async (): Promise<PreStepDecision> => { await admitted?.(); return { kind: 'enter', messages: [] } })
return decision.kind === 'reject' ? decision : {
...decision, messages: decision.messages.filter(message => message.source.kind === 'personalized-pages'),
...decision, messages: decision.messages.filter(message => message.source.kind === 'action-cards'),
}
}
@@ -30,9 +29,9 @@ it('reports the latest card status on the next request without waking the conver
expect(await prepare(f)).toEqual({ kind: 'enter', messages: [] })
await f.propose()
expect(await prepare(f)).toEqual({ kind: 'enter', messages: [] })
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
await f.entered.promise
await f.ctx.creationRecommendations.act(f.agent, callId, 'cancel', 'page')
await f.act('cancel')
expect(f.current()?.phase).toBe('cancelled')
expect(f.agent.status).toBe('idle')
const decision = await prepare(f)
@@ -40,7 +39,7 @@ it('reports the latest card status on the next request without waking the conver
if (decision.kind !== 'enter') throw new Error('request was rejected')
expect(decision.messages).toHaveLength(1)
expect(decision.messages[0]!.content).toMatchSnapshot('cancelled page status')
expect(decision.messages[0]!.source.kind).toBe('personalized-pages')
expect(decision.messages[0]!.source.kind).toBe('action-cards')
enter(f.agent, decision)
expect(await prepare(f)).toEqual({ kind: 'enter', messages: [] })
expect(followup).not.toHaveBeenCalled()
@@ -48,19 +47,11 @@ it('reports the latest card status on the next request without waking the conver
expect(inject).not.toHaveBeenCalled()
})
it('retains undelivered status through cancellation, plugin reload and Session reopen', async () => {
it('retains undelivered page status across a plugin reload and Session reopen', async () => {
const f = await fixture()
await f.propose()
await f.ctx.creationRecommendations.act(f.agent, callId, 'dismiss', 'page')
const cancelled = new AbortController()
await expect(prepare(f, f.agent, cancelled.signal, () => { cancelled.abort() })).rejects.toThrow()
const rejected = f.ctx.on('agent/pre-step', async (): Promise<PreStepDecision> => ({ kind: 'reject' }))
expect((await prepare(f)).kind).toBe('reject')
rejected()
// A prepared message is not acknowledged until it enters the durable log.
expect((await prepare(f)).kind).toBe('enter')
await f.act('dismiss')
await f.fiber.dispose()
expect(await prepare(f)).toEqual({ kind: 'enter', messages: [] })
await f.ctx.plugin(CreationRecommendations)
await f.agentHandle.dispose()
const reopened = await f.ctx.agents.create({ sessionId: f.agent.id, seed: [...f.events] })
@@ -75,10 +66,10 @@ it('retains undelivered status through cancellation, plugin reload and Session r
it('keeps a later state update pending when an earlier status message enters the log', async () => {
const f = await fixture()
await f.propose()
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
await f.entered.promise
const creating = await prepare(f)
await f.ctx.creationRecommendations.act(f.agent, callId, 'cancel', 'page')
await f.act('cancel')
enter(f.agent, creating)
const cancelled = await prepare(f)
if (cancelled.kind !== 'enter') throw new Error('request was rejected')
@@ -88,45 +79,21 @@ it('keeps a later state update pending when an earlier status message enters the
expect(await prepare(f)).toEqual({ kind: 'enter', messages: [] })
})
it('does not supply status when cancellation arrives after downstream request preparation', async () => {
const f = await fixture()
await f.propose()
await f.ctx.creationRecommendations.act(f.agent, callId, 'dismiss', 'page')
await f.fiber.dispose()
const controller = new AbortController()
f.ctx.on('agent/pre-step', async (_event, next) => {
const decision = await next()
controller.abort()
return decision
}, { prepend: true })
await f.ctx.plugin(CreationRecommendations)
expect(await prepare(f, f.agent, controller.signal)).toEqual({ kind: 'enter', messages: [] })
})
it('does not add context if the plugin unloads during request preparation', async () => {
const f = await fixture()
await f.propose()
await f.ctx.creationRecommendations.act(f.agent, callId, 'dismiss', 'page')
expect(await prepare(f, f.agent, undefined, async () => { await f.fiber.dispose() })).toEqual({ kind: 'enter', messages: [] })
})
it('reports installed and removed outcomes, including application errors, without starting another Creator', async () => {
const f = await fixture()
await f.propose()
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
await f.complete()
const installed = await prepare(f)
if (installed.kind !== 'enter') throw new Error('request was rejected')
expect(JSON.stringify(installed.messages[0]!.content)).toContain('installed')
enter(f.agent, installed)
await f.ctx.creationRecommendations.act(f.agent, callId, 'undo', 'page')
await f.act('undo')
const removed = await prepare(f)
if (removed.kind !== 'enter') throw new Error('request was rejected')
expect(JSON.stringify(removed.messages[0]!.content)).toContain('removed')
enter(f.agent, removed)
appendPluginRecord(f.agent.session, 'plugin:creation-recommendations/decision', {
callId: ToolCallId('older-card'), slot: 'page', phase: 'installed', application: 'failed',
})
recordCard(f.agent.session, { callId: ToolCallId('older-card'), slot: 'page', phase: 'installed', application: 'failed' })
const failedApplication = await prepare(f)
if (failedApplication.kind !== 'enter') throw new Error('request was rejected')
expect(JSON.stringify(failedApplication.messages[0]!.content)).toContain('failed')
@@ -143,17 +110,17 @@ it('keeps an unstarted proposal across later human messages and lets the next pr
expect(f.current()).toBeUndefined()
expect(await prepare(f)).toEqual({ kind: 'enter', messages: [] })
f.agent.session.append('turn/start', { turn: 2 })
await f.propose('creation-2', { ...proposal, title: 'Checklist' })
expect(f.current()).toEqual({ callId, phase: 'replaced', slot: 'sidebar-right' })
await f.propose('call-creation-2', { ...proposal, title: 'Checklist' })
expect(f.current()).toEqual({ callId, phase: 'replaced' })
// Replacement is the model's own choice, so no status notice is queued for it.
expect(await prepare(f)).toEqual({ kind: 'enter', messages: [] })
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')).toEqual({
status: 'settled', decision: { callId, phase: 'replaced', slot: 'sidebar-right' },
expect(await f.act('create')).toEqual({
status: 'settled', decision: { callId, action: ACTION, phase: 'replaced' },
})
await f.agentHandle.dispose()
const reopened = await f.ctx.agents.create({ sessionId: f.agent.id, seed: [...f.events] })
expect(await f.ctx.creationRecommendations.act(reopened.agent, callId, 'create', 'page')).toEqual({
status: 'settled', decision: { callId, phase: 'replaced', slot: 'sidebar-right' },
expect(await f.act('create', 'page', undefined, reopened.agent)).toEqual({
status: 'settled', decision: { callId, action: ACTION, phase: 'replaced' },
})
expect(f.startActivation).not.toHaveBeenCalled()
expect(f.manager.installBundle).not.toHaveBeenCalled()
@@ -162,14 +129,14 @@ it('keeps an unstarted proposal across later human messages and lets the next pr
it('keeps accepted work and its retry available across later user messages', async () => {
const f = await fixture()
await f.propose()
await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')
await f.act('create')
await f.entered.promise
const message = createUserMessage({ content: [{ type: 'text', text: 'What is next?' }], source: { kind: 'user' } })
f.agent.session.append('agent/inbox/spliced', { target: 'next-turn', start: 0, inserted: [message] })
expect(f.current()?.phase).toBe('creating')
await f.ctx.creationRecommendations.act(f.agent, callId, 'cancel', 'page')
await f.act('cancel')
f.agent.session.append('user/message', message, { surfaceOp: 'append' })
expect(f.current()?.phase).toBe('cancelled')
expect(await f.ctx.creationRecommendations.act(f.agent, callId, 'create', 'page')).toEqual({ status: 'accepted' })
expect(await f.act('create')).toEqual({ status: 'accepted' })
await vi.waitFor(() => { expect(f.startActivation).toHaveBeenCalledTimes(2) })
})
@@ -5,54 +5,24 @@
"outDir": "lib/types"
},
"references": [
{
"path": "../../../vendor/cordis"
},
{
"path": "../../typert/protocol"
},
{
"path": "../../llm/llm"
},
{
"path": "../../core/tools"
},
{ "path": "../../../vendor/cordis" },
{ "path": "../../llm/llm" },
{ "path": "../../core/tools" },
{ "path": "../../test-support/tool-testkit" },
{
"path": "../../core/agent"
},
{
"path": "../../core/session"
},
{
"path": "../../session/session-projection"
},
{
"path": "../../boot/plugin-manager"
},
{
"path": "../../api/remote-access/tsconfig.host.json"
},
{
"path": "../../subagent/subagent"
},
{
"path": "../../boot/app-boot"
},
{
"path": "../../skill/skill"
},
{
"path": "../../sandbox/sandbox-policy"
},
{
"path": "../../util/action-block"
}
{ "path": "../../core/agent" },
{ "path": "../../core/session" },
{ "path": "../../session/session-projection" },
{ "path": "../../boot/plugin-manager" },
{ "path": "../../api/remote-access/tsconfig.host.json" },
{ "path": "../../subagent/subagent" },
{ "path": "../../boot/app-boot" },
{ "path": "../../skill/skill" },
{ "path": "../../sandbox/sandbox-policy" },
{ "path": "../action-cards" }
],
"files": [
"src/index.ts",
"src/types.ts",
"src/projection.ts",
"src/generated-bundle.ts",
"src/skill.ts"
]
@@ -554,7 +554,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
'client-ui-deliverables DeliverablesTail id \'@deepseek-ai/dsh-client-ui-deliverables\'',
'client-ui-plan PlanCards',
'client-ui-schedule ScheduleTurnCard id \'schedule-created\'',
'experimental-client-ui-creation-recommendations RecommendationTail id \'creation-recommendation\'',
'experimental-client-ui-action-cards ActionCardTail id \'@deepseek-ai/dsh-experimental-client-ui-action-cards\'',
],
replaceRisk: 'none',
example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'conversation.chat.turnTail\', () => ctx.slots.register(\n { name: \'conversation.chat.turnTail\', id: \'my-entry\', order: 100, label: \'My entry\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
@@ -5008,7 +5008,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
'useAccess: (action: RemoteEndpoint) => boolean',
'useTrajectory: UseTrajectory',
],
keyDomain: 'open: any string the owner dispatches (no compile-time key set), already taken: ask_user_question, bash, cordis_define, cordis_inspect_list, cordis_inspect_query, cordis_inspect_self, cordis_run, cordis_stop, cordis_undefine, create_goal, edit, get_goal, glob, grep, interrupt_agent, job_kill, job_list, job_output, list_agents, list_subagent_models, lsp, present, ralph, read, read_image, schedule_create, schedule_delete, schedule_list, schedule_update, send_message, session_event_read, session_event_search, session_event_trace, session_search, session_trace, skill, spawn_teammate, subagent, team_task_create, team_task_get, team_task_list, team_task_update, terminal_close, terminal_list, terminal_open, terminal_read, terminal_signal, todo_write, update_goal, wait_agent, web_fetch, web_search, workflow, write',
keyDomain: 'open: any string the owner dispatches (no compile-time key set), already taken: ask_user_question, bash, cordis_define, cordis_inspect_list, cordis_inspect_query, cordis_inspect_self, cordis_run, cordis_stop, cordis_undefine, create_goal, edit, get_goal, glob, grep, interrupt_agent, job_kill, job_list, job_output, list_agents, list_subagent_models, lsp, present, propose_action, ralph, read, read_image, schedule_create, schedule_delete, schedule_list, schedule_update, send_message, session_event_read, session_event_search, session_event_trace, session_search, session_trace, skill, spawn_teammate, subagent, team_task_create, team_task_get, team_task_list, team_task_update, terminal_close, terminal_list, terminal_open, terminal_read, terminal_signal, todo_write, update_goal, wait_agent, web_fetch, web_search, workflow, write',
hookContext: '',
slotInject: '',
declaredBy: 'an entry in \'conversation.chat.node\' (client-ui-tool), so it exists while that entry is mounted',
@@ -5063,6 +5063,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
'client-ui-tool TodoRow key \'todo_write\'',
'client-ui-tool WebRow key \'web_search\'',
'client-ui-tool WebRow key \'web_fetch\'',
'experimental-client-ui-action-cards ProposeRow key \'propose_action\'',
'client-ui-cordis CordisDefineRow key \'cordis_define\'',
'client-ui-cordis CordisRunRow key \'cordis_run\'',
'client-ui-cordis CordisActionRow key \'cordis_stop\'',
@@ -81,6 +81,37 @@ export interface TypeApiEntry {
/** Every harness `ctx.<key>` service, sorted by key. */
export const SERVICE_API: readonly ServiceApiEntry[] = [
{
key: 'actionCards',
summary: 'Card tool, kind registry, Session projection, user actions and status notices.',
description: 'Card tool, kind registry, Session projection, user actions and status notices.',
methods: [
{
signature: 'register<Details>(kind: ActionCardKind<Details>): () => void',
description: 'Register one action kind for the caller\'s lifetime.',
parameters: [{ name: 'kind', description: 'the kind\'s skill, details schema, verbs and handler.' }],
returns: 'disposer removing the kind; actions on its cards are then unavailable.',
throws: ['when another kind already registered the same action.'],
},
{
signature: 'record(agent: Agent, decision: ActionCardDecision): void',
description: 'Record a card decision in the Session log; the next model request reports it.',
parameters: [{ name: 'agent', description: 'agent whose Session owns the card.' }, { name: 'decision', description: 'the card\'s new state.' }],
},
{
signature: 'view(session: Session): ActionCardView',
description: 'Read the cards of one Session.',
parameters: [{ name: 'session', description: 'a Session whose projections are prepared.' }],
returns: 'proposals and decisions by call id.',
},
{
signature: '@Remote act(agent: Agent, callId: ToolCallId, verb: string, payload?: Record<string, JsonValue>): Promise<ActionCardResult>',
description: 'Apply a user action to a logged card. Shared checks run first; `dismiss` is recorded here and every other verb goes to the card\'s kind. Concurrent actions on one card share one operation.',
parameters: [{ name: 'agent', description: 'live root resolved from the displayed Session.' }, { name: 'callId', description: 'the card\'s `propose_action` call id.' }, { name: 'verb', description: '`dismiss` or one of the kind\'s verbs.' }, { name: 'payload', description: 'kind-defined fields such as a chosen location.' }],
returns: 'acceptance of background work, the decision in effect, or a refusal.',
},
],
},
{
key: 'agentDefaultModel',
summary: 'Owns the default model selection independently of any Host or transport.',
@@ -838,19 +869,6 @@ export const SERVICE_API: readonly ServiceApiEntry[] = [
},
],
},
{
key: 'creationRecommendations',
summary: 'Internal Remote and effect owner assembled by the personalized-pages plugin.',
description: 'Internal Remote and effect owner assembled by the personalized-pages plugin.',
methods: [
{
signature: '@Remote act(agent: Agent, callId: ToolCallId, action: \'create\' | \'dismiss\' | \'keep\' | \'undo\' | \'cancel\' | \'restore\', slot: CreationSlot, customLocation?: string): Promise<CreationActionResult>',
description: 'Apply a human decision to a logged proposal.',
parameters: [{ name: 'agent', description: 'Live root resolved from the displayed session.' }, { name: 'callId', description: 'Logged proposal id.' }, { name: 'action', description: 'Create, cancel generation, dismiss, confirm retention, remove the owned bundle, or reinstall its retained profile copy.' }, { name: 'slot', description: 'Location chosen by the user when creating or dismissing.' }, { name: 'customLocation', description: 'Omitted: use slot. Present: Creator resolves this human-authored placement instead.' }],
returns: 'acceptance for background work, a durable receipt, or a refusal.',
},
],
},
{
key: 'credentials',
summary: 'Abstract credential service over two key spaces that answer two questions.',
@@ -4900,6 +4918,38 @@ export const TYPE_API: readonly TypeApiEntry[] = [
name: 'AccountWallet',
declaration: 'export interface AccountWallet {\n readonly currency: \'CNY\' | \'USD\';\n readonly balance: string;\n}',
},
{
name: 'ActionCardDecision',
declaration: 'export interface ActionCardDecision {\n readonly callId: ToolCallId;\n readonly action: string;\n readonly phase: string;\n readonly data?: ActionCardFields | undefined;\n}',
},
{
name: 'ActionCardFields',
declaration: 'export type ActionCardFields = Readonly<Record<string, JsonValue>>;',
},
{
name: 'ActionCardKind',
declaration: 'export interface ActionCardKind<Details> {\n readonly action: string;\n readonly skill: string;\n readonly details: ZodType<Details>;\n readonly verbs: Readonly<Record<string, ActionCardVerb>>;\n readonly openPhases?: readonly string[];\n readonly statusGuidance?: string;\n readonly statusFields?: readonly string[];\n dismissal?(proposal: ActionCardProposalOf<Details>, payload: ActionCardFields | undefined): ActionCardFields | undefined;\n act(agent: Agent, proposal: ActionCardProposalOf<Details>, verb: string, payload: ActionCardFields | undefined): Promise<ActionCardResult>;\n}',
},
{
name: 'ActionCardProposal',
declaration: 'export interface ActionCardProposal {\n readonly callId: ToolCallId;\n readonly turn: number;\n readonly action: string;\n readonly title: string;\n readonly brief: string;\n readonly details: ActionCardFields;\n}',
},
{
name: 'ActionCardProposalOf',
declaration: 'export type ActionCardProposalOf<Details> = Omit<ActionCardProposal, \'details\'> & {\n readonly details: Details;\n};',
},
{
name: 'ActionCardResult',
declaration: 'export type ActionCardResult = {\n readonly status: \'accepted\';\n} | {\n readonly status: \'settled\';\n readonly decision: ActionCardDecision;\n} | {\n readonly status: \'refused\';\n readonly reason: string;\n} | {\n readonly status: \'unconfirmed\';\n readonly reason: string;\n};',
},
{
name: 'ActionCardVerb',
declaration: 'export interface ActionCardVerb {\n readonly global?: true;\n readonly writes?: true;\n}',
},
{
name: 'ActionCardView',
declaration: 'export interface ActionCardView {\n readonly proposals: Readonly<Record<string, ActionCardProposal>>;\n readonly decisions: Readonly<Record<string, ActionCardDecision>>;\n}',
},
{
name: 'AdapterRegistrationHandle',
declaration: 'export interface AdapterRegistrationHandle {\n (): void;\n replace(providers: string[]): void;\n}',
@@ -5488,22 +5538,6 @@ export const TYPE_API: readonly TypeApiEntry[] = [
name: 'CreateWorktreeRequest',
declaration: 'export interface CreateWorktreeRequest {\n name?: string;\n from?: string;\n}',
},
{
name: 'CreationActionResult',
declaration: 'export type CreationActionResult = {\n readonly status: \'accepted\';\n} | {\n readonly status: \'settled\';\n readonly decision: CreationCardState;\n} | {\n readonly status: \'refused\';\n readonly reason: \'unknown\' | \'access-denied\' | \'not-live-root\' | \'closing\' | \'unavailable\' | \'invalid-location\' | \'read-only\' | \'source-missing\';\n} | {\n readonly status: \'unconfirmed\';\n readonly reason: \'closing\';\n};',
},
{
name: 'CreationCardState',
declaration: 'export type CreationCardState = CreationDecision | (Omit<CreationDecision, \'phase\'> & {\n readonly phase: \'replaced\' | \'suppressed\';\n});',
},
{
name: 'CreationDecision',
declaration: 'export interface CreationDecision {\n readonly callId: ToolCallId;\n readonly phase: \'dismissed\' | \'creating\' | \'installing\' | \'cancelled\' | \'installed\' | \'kept\' | \'removed\' | \'failed\' | \'interrupted\' | \'unconfirmed\';\n readonly slot: CreationSlot;\n readonly customLocation?: string | undefined;\n readonly bundleName?: string | undefined;\n readonly application?: ChangeResult[\'application\'] | undefined;\n}',
},
{
name: 'CreationSlot',
declaration: 'export type CreationSlot = \'sidebar-right\' | \'page\' | \'sidebar-left\';',
},
{
name: 'CredentialInfo',
declaration: 'export interface CredentialInfo {\n configured: boolean;\n source?: string;\n writable: boolean;\n}',
@@ -190,6 +190,7 @@ Every package below exports a Cordis plugin that a bundle patch can name in a Lo
| Package | Config | Description |
|---|---|---|
| `@deepseek-ai/dsh-cua` | no | Shared Computer Use application objects, authorization, and logged tool execution |
| `@deepseek-ai/dsh-experimental-action-cards` | yes | Optional action cards below answers: one shared proposal tool, card state, user actions and status notices |
| `@deepseek-ai/dsh-experimental-agent-team` | yes | Implicit-root Agent Teams roster, direct peer messaging, and shared task DAG |
| `@deepseek-ai/dsh-experimental-api-speech-to-text` | yes | Authenticated experimental speech transcription for browser clients |
| `@deepseek-ai/dsh-experimental-auto-review` | no | Per-tool LLM authorization review for the DeepSeek Harness Auto permission preset |
@@ -197,14 +198,15 @@ Every package below exports a Cordis plugin that a bundle patch can name in a Lo
| `@deepseek-ai/dsh-experimental-browser-use-playwright-mcp` | yes | Experimental per-Session Chromium browser tools through @playwright/mcp |
| `@deepseek-ai/dsh-experimental-browser-use-stagehand-native` | yes | Experimental Stagehand browser tools with separately configured native models |
| `@deepseek-ai/dsh-experimental-claude-code-mods` | yes | Experimental bridge: load Claude Code mods (hooks modules) and run their hook chains on DeepSeek Harness extension points |
| `@deepseek-ai/dsh-experimental-client-ui-action-cards` | no | Action cards below completed answers: the shared card frame, kind bodies and the compact tool row |
| `@deepseek-ai/dsh-experimental-client-ui-agent-team` | no | Web Agent Teams roster, task board, and teammate navigation |
| `@deepseek-ai/dsh-experimental-client-ui-claude-code-mods` | no | Web band above the prompt for Claude Code mods: draws each session's mod tree and sends button presses back to the bridge |
| `@deepseek-ai/dsh-experimental-client-ui-cot-translation` | yes | Optional machine translation of expanded reasoning, preserving original Session text |
| `@deepseek-ai/dsh-experimental-client-ui-creation-recommendations` | no | Completed-answer interface creation, location selection and undo cards |
| `@deepseek-ai/dsh-experimental-client-ui-creation-recommendations` | no | Body of the personalized page card: location choice, creation progress, Keep, Undo and Restore |
| `@deepseek-ai/dsh-experimental-client-ui-voice-input` | no | Record speech and insert editable text into the conversation draft |
| `@deepseek-ai/dsh-experimental-computer-use-cua-driver-mcp` | yes | Experimental computer use through an installed Cua Driver MCP executable |
| `@deepseek-ai/dsh-experimental-computer-use-cua-driver-native` | no | Experimental computer-use provider embedding the Cua Driver native npm SDK |
| `@deepseek-ai/dsh-experimental-creation-recommendations` | yes | Create persistent removable interface plugins from explicit conversation needs |
| `@deepseek-ai/dsh-experimental-creation-recommendations` | no | Create persistent removable interface plugins from explicit conversation needs |
| `@deepseek-ai/dsh-experimental-cua-macos` | yes | macOS native provider for shared Computer Use application and window objects |
| `@deepseek-ai/dsh-experimental-inspector` | yes | Experimental cross-realm CDP hub for Host debugging and Client Runtime inspection |
| `@deepseek-ai/dsh-experimental-ptc-runtime-python` | yes | CPython subprocess implementation of the DeepSeek Harness PTC execution seam |
+17 -23
View File
@@ -64,9 +64,6 @@ importers:
'@deepseek-ai/dsh-experimental-computer-use-cua-driver-native':
specifier: workspace:*
version: link:packages/experimental/computer-use-cua-driver-native
'@deepseek-ai/dsh-experimental-creation-recommendations':
specifier: workspace:*
version: link:packages/experimental/creation-recommendations
'@deepseek-ai/dsh-experimental-cua-macos':
specifier: workspace:*
version: link:packages/experimental/cua-macos
@@ -8918,33 +8915,30 @@ importers:
'@deepseek-ai/cordis':
specifier: workspace:~
version: link:../../../vendor/cordis
'@deepseek-ai/dsh-api-remotes':
specifier: workspace:*
version: link:../../api/remotes
'@deepseek-ai/dsh-client-locale':
specifier: workspace:*
version: link:../../client/locale
'@deepseek-ai/dsh-client-store':
specifier: workspace:*
version: link:../../client/store
'@deepseek-ai/dsh-client-ui-chat':
'@deepseek-ai/dsh-client-test-runtime':
specifier: workspace:*
version: link:../../client/ui-chat
'@deepseek-ai/dsh-client-ui-conversation':
specifier: workspace:*
version: link:../../client/ui-conversation
version: link:../../test-support/client-runtime
'@deepseek-ai/dsh-client-ui-primitives':
specifier: workspace:*
version: link:../../client/ui-primitives
'@deepseek-ai/dsh-client-ui-renderer':
specifier: workspace:*
version: link:../../client/ui-renderer
'@deepseek-ai/dsh-client-ui-session':
specifier: workspace:*
version: link:../../client/ui-session
'@deepseek-ai/dsh-client-ui-slots':
specifier: workspace:*
version: link:../../client/ui-slots
'@deepseek-ai/dsh-experimental-action-cards':
specifier: workspace:*
version: link:../action-cards
'@deepseek-ai/dsh-experimental-client-ui-action-cards':
specifier: workspace:*
version: link:../client-ui-action-cards
'@deepseek-ai/dsh-experimental-creation-recommendations':
specifier: workspace:*
version: link:../creation-recommendations
@@ -8954,12 +8948,12 @@ importers:
'@deepseek-ai/dsh-session':
specifier: workspace:*
version: link:../../core/session
'@deepseek-ai/dsh-typert-protocol':
specifier: workspace:*
version: link:../../typert/protocol
react:
specifier: ^18.2.0
version: 18.3.1
zod:
specifier: 4.4.3
version: 4.4.3
packages/experimental/client-ui-voice-input:
devDependencies:
@@ -9161,12 +9155,15 @@ importers:
packages/experimental/creation-recommendations:
dependencies:
'@deepseek-ai/dsh-experimental-action-cards':
specifier: workspace:*
version: link:../action-cards
'@deepseek-ai/dsh-experimental-client-ui-action-cards':
specifier: workspace:*
version: link:../client-ui-action-cards
'@deepseek-ai/dsh-experimental-client-ui-creation-recommendations':
specifier: workspace:*
version: link:../client-ui-creation-recommendations
'@deepseek-ai/dsh-util-action-block':
specifier: workspace:*
version: link:../../util/action-block
resolve.exports:
specifier: ^2.0.3
version: 2.0.3
@@ -9216,9 +9213,6 @@ importers:
'@deepseek-ai/dsh-tools':
specifier: workspace:*
version: link:../../core/tools
'@deepseek-ai/dsh-typert-protocol':
specifier: workspace:*
version: link:../../typert/protocol
packages/experimental/cua:
dependencies:
-3
View File
@@ -60,7 +60,6 @@ export const SERVICE_PAGE: Record<string, string> = {
productAnalytics: 'product-telemetry.md',
connection: 'web-server.md',
pluginManager: 'boot.md',
creationRecommendations: 'boot.md',
actionCards: 'boot.md',
pluginMarket: 'boot.md',
pluginRegistryProbe: 'boot.md',
@@ -906,8 +905,6 @@ export const FOUNDATION_TYPE_NAMES: ReadonlySet<string> = new Set([
/** Project types deliberately documented outside the subsystems catalog. */
export const TYPE_LINK_EXEMPTIONS: Readonly<Record<string, string>> = {
CreationActionResult: 'packages/experimental/creation-recommendations/README.md',
CreationSlot: 'packages/experimental/creation-recommendations/README.md',
ActionCardDecision: 'packages/experimental/action-cards/README.md',
ActionCardKind: 'packages/experimental/action-cards/README.md',
ActionCardResult: 'packages/experimental/action-cards/README.md',
+1 -9
View File
@@ -112,17 +112,9 @@ const SERVICE_ROLES: ServiceRole[] = [
pkg: 'experimental-action-cards',
title: 'Optional action cards',
mode: 'service',
consumers: ['experimental-client-ui-action-cards'],
consumers: ['experimental-creation-recommendations', 'experimental-client-ui-action-cards'],
note: 'Owns the card tool, card state, user actions and status notices; card kinds register their actions and handlers.',
},
{
key: 'creationRecommendations',
pkg: 'experimental-creation-recommendations',
title: 'Explicit-need interface creation',
mode: 'service',
consumers: ['experimental-client-ui-creation-recommendations'],
note: 'Starts a Creator after a human choice and owns installation and removal of the new bundle.',
},
{
key: 'headlessStartup',
pkg: 'headless',
@@ -57,7 +57,7 @@ const SENTENCE_MODEL_EXPERIENCE: Readonly<Record<string, SentenceContract>> = {
'packages/experimental/client-ui-voice-input': { kind: 'none', reason: 'Inserts reviewable text into the unsent draft without submitting to the Agent.' },
'packages/experimental/plugin-market-bundle': { kind: 'indirect', reason: 'Mounts the pluginMarket service, which lets the Creator preset register the plugin_market tool documented in packages/boot/plugin-market.' },
'packages/experimental/client-ui-action-cards': { kind: 'indirect', reason: 'Card actions go to the Host card service, which owns the logged tool, decisions and status notice.' },
'packages/experimental/client-ui-creation-recommendations': { kind: 'indirect', reason: 'The card starts a Creator through the Host creation service; the Host owns its logged task and tool schema.' },
'packages/experimental/client-ui-creation-recommendations': { kind: 'indirect', reason: 'The page card body starts a Creator through the Host page kind; the Host owns its logged task.' },
'packages/experimental/voice-input-bundle': { kind: 'none', reason: 'Composes dictation and preparation plugins without adding any model-facing contribution.' },
'packages/telemetry/otel': { kind: 'none', reason: 'The service delivers caller-selected records without changing model context.' },
'packages/host/product-telemetry-otel': { kind: 'none', reason: 'The plugin exports explicit analytics records without contributing model context.' },
-2
View File
@@ -333,8 +333,6 @@ export default defineConfig({
'packages/experimental/client-ui-voice-input/src/client/index.ts',
// Built Web replay covers generated action-card Remote wiring; mount.ts is source-covered.
'packages/experimental/client-ui-action-cards/src/client/index.ts',
// Built Web replay covers generated recommendation Remote wiring; mount.ts is source-covered.
'packages/experimental/client-ui-creation-recommendations/src/client/index.ts',
// The permission entry binds generated Remote code; cua-permissions.e2e.ts covers
// its built entry, while source tests exercise mountCuaPermissions and its UI.
'packages/experimental/cua/src/client/index.ts',