@lmzhen/dsh-evolution-skill-catalog 0.3.51 → 0.3.52
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/lib/index.js +18 -1
- package/package.json +6 -6
package/lib/index.js
CHANGED
|
@@ -20,7 +20,24 @@ const Config = z.object({
|
|
|
20
20
|
includeSkillNames: z.array(z.string()).default([]),
|
|
21
21
|
excludeSkillNames: z.array(z.string()).default([])
|
|
22
22
|
});
|
|
23
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* Below filesystem's user rank so the evolution-owned tree wins duplicates.
|
|
25
|
+
*
|
|
26
|
+
* P2-10 rank contract — this is a deliberate SHADOW of the upstream
|
|
27
|
+
* `skill-filesystem` provider, not an arbitrary number:
|
|
28
|
+
* - upstream `USER_DSH_RANK = 400` (skill-filesystem/src/index.ts) registers
|
|
29
|
+
* the SAME `user-dsh` source over the same `$DSH_HOME/skills` tree; the
|
|
30
|
+
* registry resolves duplicate names by "lower rank wins within a layer", so
|
|
31
|
+
* this provider must stay BELOW 400 to win.
|
|
32
|
+
* - The shadow exists to remove the filesystem-watcher latency/window from the
|
|
33
|
+
* write → visible loop (this provider invalidates synchronously on
|
|
34
|
+
* `evolution/skill-mutated`).
|
|
35
|
+
* - UPSTREAM UPGRADE CHECK: re-verify `USER_DSH_RANK` (and the duplicate-name
|
|
36
|
+
* comparison semantics) on every upstream bump — both constants are private
|
|
37
|
+
* to their packages, so a silent upstream change would flip the shadow
|
|
38
|
+
* without an error. The rank-contract test in tests/rank-contract.spec.ts
|
|
39
|
+
* pins the "lower rank wins" resolution on the registry side.
|
|
40
|
+
*/
|
|
24
41
|
const EVOLUTION_SKILL_RANK = 390;
|
|
25
42
|
function apply(ctx, rawConfig = {}) {
|
|
26
43
|
const invocation = {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lmzhen/dsh-evolution-skill-catalog",
|
|
3
3
|
"description": "Native ctx.skills provider for the evolution-managed skill tree (community build)",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.52",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/lmzhen/dsh-evolution.git",
|
|
11
|
-
"directory": "packages/
|
|
11
|
+
"directory": "packages/evolution-skill-catalog"
|
|
12
12
|
},
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "lib/index.js",
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@deepseek-ai/schemastery": "^3.18.1",
|
|
34
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
34
|
+
"@lmzhen/dsh-evolution-core": "^0.3.52"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
38
38
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
39
39
|
"@deepseek-ai/dsh-skill": "^0.1.1-rc.2",
|
|
40
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
40
|
+
"@lmzhen/dsh-evolution-io": "^0.3.52"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
|
|
44
44
|
"@deepseek-ai/dsh-skill": "^0.1.1-rc.2",
|
|
45
|
-
"@lmzhen/dsh-evolution-core": "^0.3.
|
|
46
|
-
"@lmzhen/dsh-evolution-io": "^0.3.
|
|
45
|
+
"@lmzhen/dsh-evolution-core": "^0.3.52",
|
|
46
|
+
"@lmzhen/dsh-evolution-io": "^0.3.52"
|
|
47
47
|
}
|
|
48
48
|
}
|