@aiwayds/dsh-dcp 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.en.md CHANGED
@@ -178,7 +178,7 @@ All optional, defaults work out of the box:
178
178
 
179
179
  ## Bundled skill
180
180
 
181
- The package registers a `dsh-dcp` skill (`skills/dsh-dcp/SKILL.md`, served via
181
+ The package registers a `dsh-dcp-config` skill (`skills/dsh-dcp-config/SKILL.md`, served via
182
182
  `ctx.skills.registerProvider`): ask the agent to tune compaction, configure dcp,
183
183
  or debug compaction behavior and the guide loads automatically — it carries an
184
184
  interactive `ask_user_question` tuning wizard (collect the expectation first,
package/README.md CHANGED
@@ -150,7 +150,7 @@ npx dsh-dcp-setup --remove /path/to/cordis.patch.yml
150
150
 
151
151
  ## 内置技能 / Bundled skill
152
152
 
153
- 插件随包注册了 `dsh-dcp` skill(`skills/dsh-dcp/SKILL.md`,经 `ctx.skills.registerProvider`):在会话里让 agent 调压缩、配置 dcp 或排查压缩行为时,指南自动加载——内含 ask_user_question 交互式调参向导(先问期望再映射到具体键)与 cordis.patch.yml 挂载块 `config:` 段的持久化写法,无需翻文档。
153
+ 插件随包注册了 `dsh-dcp-config` skill(`skills/dsh-dcp-config/SKILL.md`,经 `ctx.skills.registerProvider`):在会话里让 agent 调压缩、配置 dcp 或排查压缩行为时,指南自动加载——内含 ask_user_question 交互式调参向导(先问期望再映射到具体键)与 cordis.patch.yml 挂载块 `config:` 段的持久化写法,无需翻文档。
154
154
 
155
155
  ## 设计参考
156
156
 
package/lib/skill.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Bundled usage/configuration skill for dsh-dcp.
3
3
  *
4
- * Ships `skills/dsh-dcp/SKILL.md` through `ctx.skills.registerProvider`
4
+ * Ships `skills/dsh-dcp-config/SKILL.md` through `ctx.skills.registerProvider`
5
5
  * (same mechanism as dsh-llm-proxy and dsh-vault): an agent asked to tune
6
6
  * compaction, run `/dcp`, or persist a config change loads the guide
7
7
  * automatically instead of guessing at key names and mount shapes.
@@ -25,15 +25,15 @@ import { fileURLToPath } from 'node:url'
25
25
  const BUNDLED_SKILL_RANK = 600
26
26
 
27
27
  /** Provider name under `ctx.skills`; doubles as the skill name. */
28
- export const SKILL_PROVIDER_NAME = 'dsh-dcp'
28
+ export const SKILL_PROVIDER_NAME = 'dsh-dcp-config'
29
29
 
30
30
  /** Packaged skill body; `../skills/` resolves to the package root from lib/. */
31
- const SKILL_BODY_URL = new URL('../skills/dsh-dcp/SKILL.md', import.meta.url)
31
+ const SKILL_BODY_URL = new URL('../skills/dsh-dcp-config/SKILL.md', import.meta.url)
32
32
 
33
33
  /** Resource base served with the skill so its relative links resolve. */
34
34
  const SKILL_RESOURCE_BASE = {
35
35
  kind: 'directory',
36
- path: fileURLToPath(new URL('../skills/dsh-dcp/', import.meta.url)),
36
+ path: fileURLToPath(new URL('../skills/dsh-dcp-config/', import.meta.url)),
37
37
  }
38
38
 
39
39
  const SKILL_INVOCATION = { modelInvocable: true, userInvocable: true }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiwayds/dsh-dcp",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Deterministic context-pruning compaction backend for dsh (DeepSeek Harness) — zero-LLM summaries, /dcp command, works out of the box. Design references Opencode-DCP/opencode-dynamic-context-pruning.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: dsh-dcp
2
+ name: dsh-dcp-config
3
3
  description: "dsh 压缩引擎插件(@aiwayds/dsh-dcp)使用与配置指南。凡涉及上下文压缩、/dcp 命令、压缩调参(阈值/密度/语言/轮数触发),或要配置 dcp 时先读本指南:/dcp 状态与 /dcp set 十个可调键、持久化到 cordis.patch.yml 挂载块 config: 段(dsh-dcp-setup 管理)、ask_user_question 调参向导、四类触发(压力/溢出/轮数/手动)、subagent 会话独立计数生效。触发词:dcp、压缩、compaction、上下文超限、摘要、thresholdRatio、roundInterval。"
4
4
  ---
5
5