dsh-cc-skills 0.1.2 → 0.2.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.md +7 -0
- package/package.json +58 -56
- package/src/index.js +4 -2
package/README.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# dsh-cc-skills
|
|
2
2
|
|
|
3
|
+
> [!IMPORTANT]
|
|
4
|
+
> **Only upgrade to this version when upgrading DSH to `0.1.5-rc.2` or later.**
|
|
5
|
+
> It binds to the 0.1.5 host contracts (`snapshotEvents()` / `eventAt()`,
|
|
6
|
+
> `ToolCallId`, `^0.1.5-rc.2` peer ranges) and **does not work on older DSH**.
|
|
7
|
+
> If your DSH is still `0.1.0-rc.7`–`0.1.1-rc.2`, **do not upgrade** — stay on
|
|
8
|
+
> `v0.1.x` (cc-permissions `v0.2.x`). The two lines are mutually exclusive.
|
|
9
|
+
|
|
3
10
|
Load Claude Code's `.claude/` skills, commands and rules into DSH.
|
|
4
11
|
|
|
5
12
|
Fork of [dsh-claude-compat](https://github.com/biedongbin/dsh-claude-compat) (MIT, © biedongbin),
|
package/package.json
CHANGED
|
@@ -1,56 +1,58 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-cc-skills",
|
|
3
|
-
"version": "0.1
|
|
4
|
-
"description": "Load Claude Code .claude/ skills, commands and rules (project + global ~/.claude) into DSH. Fork of dsh-claude-compat (MIT) by biedongbin.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "src/index.js",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": "./src/index.js"
|
|
9
|
-
},
|
|
10
|
-
"dsh": {
|
|
11
|
-
"bundle": {
|
|
12
|
-
"patch": "./cordis.patch.yml"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"files": [
|
|
16
|
-
"src",
|
|
17
|
-
"README.md",
|
|
18
|
-
"cordis.patch.yml"
|
|
19
|
-
],
|
|
20
|
-
"keywords": [
|
|
21
|
-
"dsh",
|
|
22
|
-
"deepseek-harness",
|
|
23
|
-
"claude-code",
|
|
24
|
-
"claude",
|
|
25
|
-
"skills",
|
|
26
|
-
"slash-commands",
|
|
27
|
-
"rules"
|
|
28
|
-
],
|
|
29
|
-
"license": "MIT",
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"yaml": "^2.0.0",
|
|
32
|
-
"dsh-cc-loader": "^0.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"@deepseek-ai/
|
|
38
|
-
},
|
|
39
|
-
"peerDependencies": {
|
|
40
|
-
"@deepseek-ai/cordis": "*",
|
|
41
|
-
"@deepseek-ai/dsh-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-cc-skills",
|
|
3
|
+
"version": "0.2.1",
|
|
4
|
+
"description": "Load Claude Code .claude/ skills, commands and rules (project + global ~/.claude) into DSH. Fork of dsh-claude-compat (MIT) by biedongbin.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "src/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./src/index.js"
|
|
9
|
+
},
|
|
10
|
+
"dsh": {
|
|
11
|
+
"bundle": {
|
|
12
|
+
"patch": "./cordis.patch.yml"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"src",
|
|
17
|
+
"README.md",
|
|
18
|
+
"cordis.patch.yml"
|
|
19
|
+
],
|
|
20
|
+
"keywords": [
|
|
21
|
+
"dsh",
|
|
22
|
+
"deepseek-harness",
|
|
23
|
+
"claude-code",
|
|
24
|
+
"claude",
|
|
25
|
+
"skills",
|
|
26
|
+
"slash-commands",
|
|
27
|
+
"rules"
|
|
28
|
+
],
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"yaml": "^2.0.0",
|
|
32
|
+
"dsh-cc-loader": "^0.2.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@deepseek-ai/cordis": "4.0.2",
|
|
36
|
+
"@deepseek-ai/dsh-llm": "0.1.5-rc.2",
|
|
37
|
+
"@deepseek-ai/schemastery": "3.18.2"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"@deepseek-ai/cordis": "*",
|
|
41
|
+
"@deepseek-ai/dsh-llm": "^0.1.5-rc.2",
|
|
42
|
+
"@deepseek-ai/dsh-skill": "*",
|
|
43
|
+
"@deepseek-ai/schemastery": "^3.18.1"
|
|
44
|
+
},
|
|
45
|
+
"peerDependenciesMeta": {
|
|
46
|
+
"@deepseek-ai/cordis": {
|
|
47
|
+
"optional": true
|
|
48
|
+
},
|
|
49
|
+
"@deepseek-ai/dsh-skill": {
|
|
50
|
+
"optional": true
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": ">=20"
|
|
55
|
+
},
|
|
56
|
+
"repository": "git+https://github.com/Bcy2020/dsh-cc-ecosystem.git",
|
|
57
|
+
"homepage": "https://github.com/Bcy2020/dsh-cc-ecosystem"
|
|
58
|
+
}
|
package/src/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { readFile } from 'node:fs/promises'
|
|
|
14
14
|
import { homedir } from 'node:os'
|
|
15
15
|
import z from '@deepseek-ai/schemastery'
|
|
16
16
|
import { createUserMessage } from '@deepseek-ai/dsh-llm'
|
|
17
|
-
import { loadClaude, parseFrontmatter, expandCcToolToDsh, pluginComponentName } from 'dsh-cc-loader'
|
|
17
|
+
import { loadClaude, parseFrontmatter, expandCcToolToDsh, pluginComponentName, sessionEventAt } from 'dsh-cc-loader'
|
|
18
18
|
|
|
19
19
|
export const name = 'cc-skills'
|
|
20
20
|
export const inject = ['skills']
|
|
@@ -179,7 +179,9 @@ function registerRulesSection(ctx, config, loaderOpts) {
|
|
|
179
179
|
const alreadyInjected = present(messages)
|
|
180
180
|
|| present(decision.messages)
|
|
181
181
|
|| agent.session.surface.nodes.some((seq) => {
|
|
182
|
-
|
|
182
|
+
// `Session.events` was removed in DSH 0.1.2-alpha.4; sessionEventAt
|
|
183
|
+
// prefers eventAt(seq) and only falls back to the legacy array.
|
|
184
|
+
const event = sessionEventAt(agent.session, seq)
|
|
183
185
|
return event?.type === 'user/message'
|
|
184
186
|
&& event.data?.source?.kind === 'cc-skills'
|
|
185
187
|
})
|