@deepseek-ai/dsh-skill-filesystem 0.2.1-rc.5 → 0.2.2-alpha.3
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.i18n.yaml +4 -4
- package/README.md +3 -2
- package/README.zh.md +3 -2
- package/lib/index.js +14 -3
- package/lib/types/index.d.ts +2 -2
- package/locale/de.json +6 -0
- package/locale/es.json +6 -0
- package/locale/fr.json +6 -0
- package/locale/ja.json +6 -0
- package/locale/pt.json +6 -0
- package/locale/ru.json +6 -0
- package/package.json +10 -10
package/README.i18n.yaml
CHANGED
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
en: 77acbd43e89b6043
|
|
34
34
|
zh: 8169bbbc55f3f114
|
|
35
35
|
/deepseek-ai-dsh-skill-filesystem/use-this-package/observable-success-and-failures:
|
|
36
|
-
en:
|
|
37
|
-
zh:
|
|
36
|
+
en: 5e7ef5a233c9d8a1
|
|
37
|
+
zh: af39bc94f6bbf9bb
|
|
38
38
|
/deepseek-ai-dsh-skill-filesystem/understand-the-implementation:
|
|
39
39
|
en: a95eb63f5a570c79
|
|
40
40
|
zh: cd964a36cf8a3715
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
en: 14ddbda337682082
|
|
61
61
|
zh: 2e4dc3c26b45f62c
|
|
62
62
|
/deepseek-ai-dsh-skill-filesystem/known-limitations-and-deferred-work:
|
|
63
|
-
en:
|
|
64
|
-
zh:
|
|
63
|
+
en: 0d5a15f8442b1342
|
|
64
|
+
zh: b07748ab499971f8
|
|
65
65
|
/deepseek-ai-dsh-skill-filesystem/known-limitations-and-deferred-work/dev-note:
|
|
66
66
|
en: 53584bc8292df1f9
|
|
67
67
|
zh: 921253cd64aa7511
|
package/README.md
CHANGED
|
@@ -82,7 +82,7 @@ Existing roots are watched, so adding, renaming, or deleting a skill (or editing
|
|
|
82
82
|
|
|
83
83
|
### Observable success and failures
|
|
84
84
|
|
|
85
|
-
A valid skill under any scanned root appears in the session catalog sorted by name, and loading it returns the current file body. A file without valid frontmatter, an invalid name, or an invalid invocation value is skipped with a warning, so the model catalog receives no per-skill diagnostic and cannot distinguish an absent skill from an invalid one.
|
|
85
|
+
A valid skill under any scanned root appears in the session catalog sorted by name, and loading it returns the current file body. A file without valid frontmatter, an invalid name, or an invalid invocation value is skipped with a warning, so the model catalog receives no per-skill diagnostic and cannot distinguish an absent skill from an invalid one. A root whose discovery or file read fails is logged with its path and omitted; other roots remain available. The observation is incomplete and is retried on the next lookup rather than cached. The model catalog identifies incomplete discovery separately from confirmed absence.
|
|
86
86
|
|
|
87
87
|
-----
|
|
88
88
|
|
|
@@ -146,7 +146,8 @@ These limits define when the provider is a poor fit or needs special operational
|
|
|
146
146
|
|
|
147
147
|
- **Discovery is one level deep** — only `<root>/<name>/SKILL.md` and `<root>/<name>.md` are recognized; nested skill trees and package manifests are ignored.
|
|
148
148
|
- **Project scope is the nearest `.git` ancestor** — workspaces without that marker fall back to the supplied cwd, with no alternate project-root marker or monorepo subproject selection.
|
|
149
|
-
- **Malformed entries disappear with a warning** — the model catalog receives no per-skill diagnostic and cannot distinguish an absent skill from an invalid one
|
|
149
|
+
- **Malformed entries disappear with a warning** — the model catalog receives no per-skill diagnostic and cannot distinguish an absent skill from an invalid one.
|
|
150
|
+
- **I/O failures omit the whole root** — one unreadable skill also hides its readable siblings for that observation. Other roots remain available, so a lower-priority same-name skill can supply the description and loaded body. Discovery retries on each lookup and restores normal priority when the root recovers.
|
|
150
151
|
- **Missing-root observation polls one path segment** — roots absent at startup use `fs.watchFile` at `watchPollIntervalMs` until Chokidar can attach, trading bounded detection latency for reliable creation detection across IDE, Git, and shell workflows.
|
|
151
152
|
- **No body revision protocol** — a loaded body is ordinary retained tool history; later file edits affect later calls but neither rewrite old results nor announce that the body changed.
|
|
152
153
|
|
package/README.zh.md
CHANGED
|
@@ -82,7 +82,7 @@ skill 可以是被扫描根目录顶层的目录 bundle `<name>/SKILL.md`,也
|
|
|
82
82
|
|
|
83
83
|
### 可观察的成功与失败
|
|
84
84
|
|
|
85
|
-
任一被扫描根目录下的有效 skill 都会按名称排序出现在会话目录中,加载它即可返回当前文件正文。缺少有效 frontmatter、名称无效或调用值无效的文件会随警告被跳过,因此模型目录不会收到逐 skill 诊断,也无法区分缺失的 skill 与无效的 skill
|
|
85
|
+
任一被扫描根目录下的有效 skill 都会按名称排序出现在会话目录中,加载它即可返回当前文件正文。缺少有效 frontmatter、名称无效或调用值无效的文件会随警告被跳过,因此模型目录不会收到逐 skill 诊断,也无法区分缺失的 skill 与无效的 skill。某个根目录的发现或文件读取失败时,会记录其路径并跳过该根,其他根目录仍然可用。此观测标记为不完整,不被缓存,并在下次查询时重试。模型目录会区分发现不完整与已确认的缺失。
|
|
86
86
|
|
|
87
87
|
-----
|
|
88
88
|
|
|
@@ -146,7 +146,8 @@ watcher 触发的失效可促使上述消费方在现有请求历史中追加替
|
|
|
146
146
|
|
|
147
147
|
- **发现深度为一层**——只识别 `<root>/<name>/SKILL.md` 与 `<root>/<name>.md`;忽略嵌套 skill 树与包 manifest(元数据清单)。
|
|
148
148
|
- **项目范围为最近 `.git` 祖先**——没有该标记的工作区回退到提供的 cwd,不支持其他项目根标记或 monorepo 子项目选择。
|
|
149
|
-
- **格式错误的条目随警告消失**——模型目录不会收到逐 skill 诊断,无法区分缺失的 skill 与无效的 skill
|
|
149
|
+
- **格式错误的条目随警告消失**——模型目录不会收到逐 skill 诊断,无法区分缺失的 skill 与无效的 skill。
|
|
150
|
+
- **I/O 失败会省略整个根目录**——一个不可读 skill 会使该次观测同时隐藏同根下的可读 skill。其他根仍可用,因此较低优先级的同名 skill 可能提供描述与加载的正文。每次查询都会重试发现,根目录恢复后重新按正常优先级选择。
|
|
150
151
|
- **缺失根观察每次轮询一个路径段**——启动时不存在的根会使用 `fs.watchFile` 按 `watchPollIntervalMs` 轮询,直至 Chokidar 可以附加;这以有界检测延迟换取跨 IDE、Git 与 shell 工作流的可靠创建检测。
|
|
151
152
|
- **无正文修订协议**——已加载正文是普通的已保留工具历史;后续文件编辑会影响后续调用,但既不会改写旧结果,也不会通知正文已变化。
|
|
152
153
|
|
package/lib/index.js
CHANGED
|
@@ -86,8 +86,8 @@ var FileSystemSkillProvider = class {
|
|
|
86
86
|
/**
|
|
87
87
|
* Discover local skill summaries for a cwd-sensitive workspace.
|
|
88
88
|
* @param options - lookup options; `cwd` selects the project roots to scan.
|
|
89
|
-
* @returns
|
|
90
|
-
*
|
|
89
|
+
* @returns candidates from readable roots with stable ranks. Failed roots are
|
|
90
|
+
* logged and omitted; root or watcher failures make the observation incomplete.
|
|
91
91
|
*/
|
|
92
92
|
async list(options) {
|
|
93
93
|
const roots = await this.roots(options.cwd);
|
|
@@ -99,7 +99,18 @@ var FileSystemSkillProvider = class {
|
|
|
99
99
|
complete = false;
|
|
100
100
|
}
|
|
101
101
|
const candidates = [];
|
|
102
|
-
for (const root of roots)
|
|
102
|
+
for (const root of roots) {
|
|
103
|
+
options.signal?.throwIfAborted();
|
|
104
|
+
try {
|
|
105
|
+
const discovered = await discoverRoot(root, this.ctx, this.name);
|
|
106
|
+
options.signal?.throwIfAborted();
|
|
107
|
+
candidates.push(...discovered);
|
|
108
|
+
} catch (error) {
|
|
109
|
+
options.signal?.throwIfAborted();
|
|
110
|
+
complete = false;
|
|
111
|
+
this.ctx.logger.warn(`skill root "${root.path}" skipped: ${errorMessage(error)}. Other roots remain available; check this directory's permissions and symlinks. Discovery retries on the next lookup.`);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
103
114
|
return complete ? candidates : {
|
|
104
115
|
candidates,
|
|
105
116
|
complete
|
package/lib/types/index.d.ts
CHANGED
|
@@ -58,8 +58,8 @@ export declare class FileSystemSkillProvider implements SkillProvider {
|
|
|
58
58
|
/**
|
|
59
59
|
* Discover local skill summaries for a cwd-sensitive workspace.
|
|
60
60
|
* @param options - lookup options; `cwd` selects the project roots to scan.
|
|
61
|
-
* @returns
|
|
62
|
-
*
|
|
61
|
+
* @returns candidates from readable roots with stable ranks. Failed roots are
|
|
62
|
+
* logged and omitted; root or watcher failures make the observation incomplete.
|
|
63
63
|
*/
|
|
64
64
|
list(options: SkillLookupOptions): Promise<SkillCandidate[] | SkillProviderObservation>;
|
|
65
65
|
/**
|
package/locale/de.json
ADDED
package/locale/es.json
ADDED
package/locale/fr.json
ADDED
package/locale/ja.json
ADDED
package/locale/pt.json
ADDED
package/locale/ru.json
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-skill-filesystem",
|
|
3
3
|
"description": "Local filesystem skill provider for the DeepSeek Harness",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2-alpha.3",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -29,20 +29,20 @@
|
|
|
29
29
|
],
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@deepseek-ai/dsh-fs": "0.2.
|
|
33
|
-
"@deepseek-ai/dsh-home-paths": "0.2.
|
|
34
|
-
"@deepseek-ai/dsh-skill": "0.2.
|
|
35
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
32
|
+
"@deepseek-ai/dsh-fs": "0.2.2-alpha.3",
|
|
33
|
+
"@deepseek-ai/dsh-home-paths": "0.2.2-alpha.3",
|
|
34
|
+
"@deepseek-ai/dsh-skill": "0.2.2-alpha.3",
|
|
35
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.2"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"chokidar": "5.0.0",
|
|
39
|
-
"@deepseek-ai/schemastery": "~3.18.
|
|
39
|
+
"@deepseek-ai/schemastery": "~3.18.6-alpha.2",
|
|
40
40
|
"yaml": "^2.4.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@deepseek-ai/dsh-fs": "0.2.
|
|
44
|
-
"@deepseek-ai/dsh-home-paths": "0.2.
|
|
45
|
-
"@deepseek-ai/dsh-skill": "0.2.
|
|
46
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
43
|
+
"@deepseek-ai/dsh-fs": "0.2.2-alpha.3",
|
|
44
|
+
"@deepseek-ai/dsh-home-paths": "0.2.2-alpha.3",
|
|
45
|
+
"@deepseek-ai/dsh-skill": "0.2.2-alpha.3",
|
|
46
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.2"
|
|
47
47
|
}
|
|
48
48
|
}
|