Files
deepseek-harness/packages/client/ui-goal/README.zh.md
imccyu da4e54b515 docs: regenerate catalogs and settle the static gates for the goal surface
- Regenerate the cordis/config catalogs, doc graphs, and module graph for
  the four newly mounted plugins and the goal projection key.
- ui-goal README pair (Model Experience indirect + Known Limitations) with
  its i18n record; sentence-allowlist entry for the indirect form.
- knip workspace entry for ui-goal (tsx test pattern).
- type-equiv manifest follows the seven host-coupled goal symbols to
  domain.ts.
- The web-slash-command-dispatch note documents the dropped prompt
  interception and leaves with it; the goal-bar note's code paths follow the
  component into ui-goal (pairing re-recorded).
2026-07-28 23:34:19 +08:00

1.8 KiB
Raw Blame History

@deepseek-ai/dsh-client-ui-goal

English | 中文

Goal 表面插件(浏览器半件):conversation.input.dock 列表中的 GoalBar 条带order 1紧贴 composer。活值经 useProjection('goal') 到达——host 计算的全量值由历史尾页播种、由 session/projection 帧更新——因此本插件不持有 store、不设刷新链、不挂事件监听。slot 注入面只携带三个变更动词edit / resume / cleargoal.* 协议域);每个动词在调用时从会话当前投影值读取 CAS ref并把结算后的 RPC 错误内联呈现RPC 的 compare-and-set 即陈旧性防护——客户端没有任何栅栏。goal 的创建仍归 /goal host 命令;加载中、无 goal、已完成三种状态一律不渲染。

/client 出口面为插件本体(apply/inject)、GoalBar/GoalDock 组件与注入动词面类型。

Model Experience

间接影响:条带动词提交的 goal.edit/goal.resume/goal.clear RPC 每次被接受后,会向会话追加一条模型可见的 goal/change 上下文消息(与投影折叠的正是同一条持久事件),模型在下一轮即可看到更新后的 goal 状态。条带自身不添加任何提示词内容。

KV Cache effect

除 goal 变更自身的上下文事件(如同任何消息一样追加在日志尾部)外无额外影响。

Known Limitations and Deferred Work

  • 只反映持久 phase —— 投影值有意省略进程本地的 activationarmed/disarmed条带无法区分 active-but-disarmed 与 armed 状态resume 经 RPC 侧重新武装。host 活值通道待出现真实消费方后再议。
  • 暂缺 keyless 快照 —— 组装应用级 transcriptboot → 投影 → GoalBar推迟到落地 PR 记录的评审后收口批次。