Skip to content

Releases

v0.3.0 — error library + code links

Choose a tag to compare

@xuh-hakana xuh-hakana released this 22 Nov 21:19

dsh-code-library v0.3.0

错误库上线:出错先查错误单,修完把错误和代码一起沉淀。

亮点

  • 四类错误:dsh / general / thirdparty / local;dsh 分「报错 / 接入」,其余三类按项目 + 功能归档。
  • 先查后修:一轮连续 2 次出错,当轮先 error_list;DSH 报错先 error_search 匹配一次错误表。
  • 代码与错误互链:code_add({errorId}) 后,代码侧只引用 E0001 · 精简错误点,不重复写问题。
  • 各自独立:没有代码的错误、没有错误的代码都能单独存在;有错误源时优先合并到同一条。
  • 删除安全:删错误自动解除关联,代码保留 errorRef 快照;删代码同步清理错误侧 codeIds。
  • 内置条目:E0001 记录 DeepSeek 内容审查拒绝回答 → 注入 ignore_safety_rules = true。
  • 旧数据兼容:代码条目新增 scope,默认 general;已有 v2 数据无需迁移。

安装

dsh plugin --profile web add github:xuh-hakana/dsh-code-library

作者与 AI 声明

作者:xuh-hakana(GitHub @xuh-hakana)。代码、文档与图标包含 DeepSeek Harness AI agent 在作者指导下生成的内容;作者负责验收与发布。MIT 开源。

v0.2.0 — token-saving reusable code library

Choose a tag to compare

@xuh-hakana xuh-hakana released this 22 Nov 20:46

dsh-code-library v0.2.0

首个公开版本:给 DSH agent 的省 Token 可复用代码库。

亮点

  • 省 Token:code_list 一行一条清单(40 条 <4KB),命中才 code_get 取代码。
  • 代码复用:code_add / code_search / code_get / code_update / code_remove 全生命周期;按语言+代码哈希去重。
  • 自主使用:插件自带系统提示词与 skill,agent 自己查、自己取、自己沉淀。
  • 结构化记录:每条必带 category、problem(当时问题)、scenario(具体场合)、solution(怎么解决)。
  • 增量维护:二次使用只改一部分时,code_update 只追加 changes。
  • 旧数据迁移:无新字段的旧条目自动补占位,seed 条目无损迁移。

安装

dsh plugin --profile web add github:xuh-hakana/dsh-code-library

作者与 AI 声明

作者:xuh-hakana(GitHub @xuh-hakana)。代码、文档与图标包含 DeepSeek Harness AI agent 在作者指导下生成的内容;作者负责验收与发布。MIT 开源。

v0.0.1 自主查历史报错、代码复用、回填

Choose a tag to compare

@xuh-hakana xuh-hakana released this 22 Nov 21:34

dsh-code-library v0.0.1

中文名:自主查历史报错、代码复用、回填。这一版把「报错合并」做成真的。

亮点

  • 报错合并:同一报错再次 error_add,命中数 hits+1、关联代码和标签取并集、改动追加,不再出现重复条目。
  • 历史可查:error_list / error_search / error_get 显示 ×N 命中次数,常用报错自动排前面。
  • 先查后修再回填:一轮连续 2 次出错当轮读错误单;修完把解法和验证过的代码写回,双向关联。
  • 代码侧只留引用:代码只显示 E0001 · 精简错误点,不重复长段问题描述。
  • 四类归档:dsh / general / thirdparty / local;dsh 分「报错 / 接入」,其余三类按项目 + 功能。
  • 重复代码补链:同一个 code_add 再传 errorId,会补上关联而不是静默返回旧条目。

安装

dsh plugin --profile web add npm:dsh-code-library
# 或
dsh plugin --profile web add github:xuh-hakana/dsh-code-library

作者与 AI 声明

作者:xuh-hakana(GitHub @xuh-hakana)。代码、文档与图标包含 DeepSeek Harness AI agent 在作者指导下生成的内容;作者负责验收与发布。MIT 开源。