Files
deepseek-harness/packages/context/README.zh.md
T
creatixchu 6bb79911ba refactor(reference): serve discovery through typert Remote faces
Replace the legacy reference.* API Proxy domain with @Remote methods on the
owning services, following the typert gateway design master adopted on
2026-08-02 (message-feedback and plugin-inventory precedents):

- FileReferenceService and SessionReferenceResolver extend TypertRemoteService;
  fileReferences/list and sessionReferenceResolver/candidates are unary Remote
  methods cancelled through the reserved trailing signal, and the candidates
  face attaches each candidate's canonical mention under the configured limit
- move the wire types to type-only ./types subpaths (FileReferenceCandidate,
  SessionReferenceMentionCandidate) and export ./typert plus ./remote artifacts
- mount both contributions in the api-remotes client assembly; ui-reference
  consumes ctx.remote instead of connection.api.references and registers zh/en
  locale dictionaries for its sections and labels
- delete the reference.* routes, schemas, map rows, client stubs, and fixtures;
  the connection fixture serves the Remote endpoints instead
- release deliverPrompt admission listeners when the agent is disposed with the
  prepared prompt still pending, and cover the reference-* RpcError codes in
  the schema spec
- add the missing tsconfig paths for the /grammar and /types subpaths (clean-
  tree vitest could not resolve @deepseek-ai/dsh-file-reference/grammar)
- regenerate the cordis catalog, capability seams, and event matrix; update the
  owning bilingual READMEs, Agent Notes, and the reference-composer golden
2026-08-17 18:35:30 +08:00

1.3 KiB
Raw Blame History

context/ — 请求上下文扩展

English | 中文

在不定义工具的情况下添加模型可见的请求上下文的产品插件。agent-instructions 包含在默认 dsh-agent-spine-demo 组合包中,可通过组合包配置禁用;time-contexttmux-contextsession-referencefile-referencefile-reference-local 需主动启用。

职责 ctx key
session-reference/ 其他会话的有界快照 ctx.sessionReferenceResolver
file-reference/ 文件引用发现 seam 与 @file 语法 ctx.fileReferences
file-reference-local/ 本地文件系统文件引用提供方
time-context/ 当前时间与耗时上下文
tmux-context/ tmux 位置上下文
agent-instructions/ 工作区指令上下文

会话引用见 docs/subsystems/session-reference.mdagent-instructions 决策记录规定了其按 agent(智能体)/会话隔离与生命周期拆分。