@lmzhen/dsh-evolution-skill-discovery 0.32.5 → 0.33.0

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.
Files changed (2) hide show
  1. package/README.md +19 -9
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -1,19 +1,29 @@
1
1
  # @lmzhen/dsh-evolution-skill-discovery
2
2
 
3
- > 技能检索增强(默认关闭)。
3
+ Optional skill search, domain projection, and catalog-trimming package. The main entry is `main-entry.ts`, not the package root helper modules.
4
4
 
5
- ## 你会看到
5
+ ## Default and independent search
6
6
 
7
- 开启后 Agent 更容易在大量技能中找到相关的;默认只保留基础检索。
7
+ `mode` defaults to `off`. Domain cards, domain-map projection, and catalog trimming do not run in this mode.
8
8
 
9
- ## 什么时候会用到
9
+ `skill_search` is independently registered unless `searchEnabled:false`. It searches name, description, and `whenToUse` summaries, not skill bodies. Results default to 3 and are capped at 20. Empty or degraded results include a hint to use the full catalog or load an exact skill by name.
10
10
 
11
- 技能很多、需要域卡/自动域图时。
11
+ `featureEpoch` is required even when discovery is off. The composition also requires the declared platform services, including `skills`, `workingDirectory`, `tools`, `evolutionIo`, and `systemPrompt`.
12
12
 
13
- ## 默认 / 前提
13
+ ## Enabling domain mode
14
14
 
15
- 默认 `mode: off`。
15
+ `mode:on` requires an LLM service. Generation defaults to provider `deepseek-official` and model `deepseek-flash`; `generationTimeoutMs`, `generationMaxTokens`, and `generationAttempts` tune that port.
16
16
 
17
- ## 边界
17
+ Domain state defaults to these files below the evolution home:
18
18
 
19
- 开启需要模型/投影条件;缺条件会启动失败。
19
+ - `evolution/domain-map.json` (`domainMapPath`)
20
+ - `evolution/projection-journal.json` (`projectionJournalPath`)
21
+ - `evolution/view-snapshots.json` (`viewSnapshotPath`)
22
+
23
+ `maxCards`, `tokenBudget`, `staleAfterHours`, and `descriptionStaleAfterHours` control projection and refresh budgets. Description refresh defaults to 168 hours. `pinDomains`, `disableDomains`, `workspacePolicy`, `scopePolicy`, and their path-based layers control the effective domain policy.
24
+
25
+ ## Commands and failure boundaries
26
+
27
+ With domain mode on, `/skill-domain status` inspects the current view and `/skill-domain generate` builds a domain map. Generation also requires `mapReferenceCwd`; the command refuses to infer a global map from the caller view. `mapReferenceScope` optionally overrides the reference scope.
28
+
29
+ Projection failures fail open to the original decision so discovery does not hide the ordinary catalog. Search/index degradation is reported explicitly rather than returned as a silent empty result.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-skill-discovery",
3
3
  "description": "Read model and view identity for evolution skill discovery (community build)",
4
- "version": "0.32.5",
4
+ "version": "0.33.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -32,8 +32,8 @@
32
32
  "@deepseek-ai/dsh-llm": "^0.2.1-rc.2",
33
33
  "@deepseek-ai/dsh-tools": "^0.2.1-rc.2",
34
34
  "@deepseek-ai/dsh-system-prompt": "^0.2.1-rc.2",
35
- "@lmzhen/dsh-evolution-core": "^0.32.5",
36
- "@lmzhen/dsh-evolution-io": "^0.32.5"
35
+ "@lmzhen/dsh-evolution-core": "^0.33.0",
36
+ "@lmzhen/dsh-evolution-io": "^0.33.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@deepseek-ai/dsh-skill": "^0.2.1-rc.2",
@@ -43,8 +43,8 @@
43
43
  "@deepseek-ai/dsh-agent-loop-testkit": "^0.2.1-rc.2",
44
44
  "@deepseek-ai/dsh-system-prompt": "^0.2.1-rc.2",
45
45
  "@deepseek-ai/dsh-tools": "^0.2.1-rc.2",
46
- "@lmzhen/dsh-evolution-core": "^0.32.5",
47
- "@lmzhen/dsh-evolution-io": "^0.32.5"
46
+ "@lmzhen/dsh-evolution-core": "^0.33.0",
47
+ "@lmzhen/dsh-evolution-io": "^0.33.0"
48
48
  },
49
49
  "dependencies": {
50
50
  "@deepseek-ai/dsh-llm": "^0.2.1-rc.2",