@lmzhen/dsh-evolution-skill-discovery 0.32.4 → 0.32.6

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 +21 -9
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -1,17 +1,29 @@
1
1
  # @lmzhen/dsh-evolution-skill-discovery
2
2
 
3
- Read model and view identity for evolution skill discovery (Program B, PLAN-DISC-001).
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
- ## Status
5
+ ## Default and independent search
6
6
 
7
- The package has a real `apply`, is referenced by the `evolution-all` bundle row, and is booted from a test `cordis.yml` through the Loader. The model-facing surface is `skill_search` plus injected, read-only domain cards. DomainMap bootstrap, explicit generation, and projection are implemented. Create-time assignment/classification and shadow mode are not shipped; provisional domains are not auto-promoted. The command surface is `/skill-domain status | generate`. The map plane is explicit experimental: default `mode:off`, no catalog rewrite or hidden skills.
7
+ `mode` defaults to `off`. Domain cards, domain-map projection, and catalog trimming do not run in this mode.
8
8
 
9
- ## Contract
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
- - `SkillIndex` reads a source's `ctx.skills`-shaped snapshot and a managed-skill key set; it does not register a provider or cache a second catalog.
12
- - `viewKey/viewCatalogDigest/catalogRevision/policyDigest/projectionDigest/searchIndexKey` are deterministic SHA-256 identities.
13
- - Incomplete snapshots keep `complete:false`; callers must fail open, not hide skills.
11
+ `featureEpoch` is required even when discovery is off. The composition also requires the declared platform services, including `skills`, `workingDirectory`, `tools`, `evolutionIo`, and `systemPrompt`.
14
12
 
15
- ## Verification
13
+ ## Enabling domain mode
16
14
 
17
- `pnpm exec vitest run packages/evolution/evolution-skill-discovery/tests/discovery.spec.ts --maxWorkers=1`
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
+
17
+ Domain state defaults to these files below the evolution home:
18
+
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.4",
4
+ "version": "0.32.6",
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.4",
36
- "@lmzhen/dsh-evolution-io": "^0.32.4"
35
+ "@lmzhen/dsh-evolution-core": "^0.32.6",
36
+ "@lmzhen/dsh-evolution-io": "^0.32.6"
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.4",
47
- "@lmzhen/dsh-evolution-io": "^0.32.4"
46
+ "@lmzhen/dsh-evolution-core": "^0.32.6",
47
+ "@lmzhen/dsh-evolution-io": "^0.32.6"
48
48
  },
49
49
  "dependencies": {
50
50
  "@deepseek-ai/dsh-llm": "^0.2.1-rc.2",