refactor(agent-instructions): remove unused source type re-export

This commit is contained in:
_Kerman committed 2026-10-12 15:41:37 +08:00
1 parent 409ed33183
commit 5705bf12f0
4 files changed
+4 -5

No files matched your search

@@ -30,8 +30,8 @@
en: 724df7ff6d1d9fea
zh: 91fb1013eb9178ec
/deepseek-ai-dsh-agent-instructions/understand-the-implementation/design-concept:
en: 566f3518b2d1d100
zh: c7d0a22b19e7697a
en: 4708b51bf8fe86f7
zh: 869fc4b1f78383ee
/deepseek-ai-dsh-agent-instructions/understand-the-implementation/source-map:
en: cb4c1f929ef5a835
zh: 3f0fcb7f568a0a5c
@@ -85,7 +85,7 @@ This section explains the design decisions behind the plugin; the observable beh
### Design concept
The plugin is built on one principle: workspace instructions are durable conversation content, owned per agent and per session. Baseline and refresh messages are ordinary sourced `user/message` events, so they replay, compact, and resume exactly like other history, and model-visible state is always reconstructable from the session log. The plugin owns the complete `<system-reminder>` framing and every injected message reaches the model verbatim. The package exports `AgentInstructionSource` for typed consumers of these message sources.
The plugin is built on one principle: workspace instructions are durable conversation content, owned per agent and per session. Baseline and refresh messages are ordinary sourced `user/message` events, so they replay, compact, and resume exactly like other history, and model-visible state is always reconstructable from the session log. The plugin owns the complete `<system-reminder>` framing and every injected message reaches the model verbatim.
### Source map
@@ -85,7 +85,7 @@ export interface Config {
### 设计理念
该插件建立在一个原则上:工作区指令是持久的对话内容,按 agent 与会话分别归属。基线消息与刷新消息都是普通的带来源 `user/message` 事件,因此与其他历史一样可回放、可压缩(compaction)、可恢复,模型可见状态总能从会话日志重建。插件拥有完整的 `<system-reminder>` 框架,每条注入消息都原样到达模型。 本包导出 `AgentInstructionSource`,供这些消息来源的消费者进行类型检查。
该插件建立在一个原则上:工作区指令是持久的对话内容,按 agent 与会话分别归属。基线消息与刷新消息都是普通的带来源 `user/message` 事件,因此与其他历史一样可回放、可压缩(compaction)、可恢复,模型可见状态总能从会话日志重建。插件拥有完整的 `<system-reminder>` 框架,每条注入消息都原样到达模型。
### 源码地图
@@ -33,7 +33,6 @@ import { instructionCandidateGroup, instructionScopeKey, scopeForDisplayPath, ty
export { Config }
export { name } from './state.ts'
export type { AgentInstructionSource } from './state.ts'
export {
discoverBaselineInstructionFiles,
loadBaselineInstructions,