@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 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: 272693c35012ffb5
37
- zh: bbbe788b11ef567f
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: a7f37a7b9e54945d
64
- zh: b9d3b15027757301
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. Unexpected discovery or read failures leave the catalog observation incomplete rather than replacing the last-good view with a misleading deletion.
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; unexpected I/O failures preserve the last-good catalog instead.
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;意外的 I/O 失败则会保留最后一份可用目录。
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 local provider candidates with stable root ranks; watcher startup
90
- * failure returns readable candidates as an incomplete observation.
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) for (const skill of await discoverRoot(root, this.ctx, this.name)) candidates.push(skill);
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
@@ -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 local provider candidates with stable root ranks; watcher startup
62
- * failure returns readable candidates as an incomplete observation.
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
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Laden lokaler Fertigkeiten",
4
+ "description": "Entdecken und lesen Sie Fähigkeiten aus lokalen Verzeichnissen."
5
+ }
6
+ }
package/locale/es.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Carga de habilidades locales",
4
+ "description": "Descubra y lea habilidades de directorios locales."
5
+ }
6
+ }
package/locale/fr.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Chargement de compétences locales",
4
+ "description": "Découvrez et lisez les compétences des annuaires locaux."
5
+ }
6
+ }
package/locale/ja.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "ローカルスキル読み込み",
4
+ "description": "ローカルディレクトリからスキルを発見して読み取ります。"
5
+ }
6
+ }
package/locale/pt.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Carregamento de habilidade local",
4
+ "description": "Descubra e leia habilidades em diretórios locais."
5
+ }
6
+ }
package/locale/ru.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Загрузка местных навыков",
4
+ "description": "Находите и читайте навыки в местных каталогах."
5
+ }
6
+ }
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.1-rc.5",
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.1-rc.5",
33
- "@deepseek-ai/dsh-home-paths": "0.2.1-rc.5",
34
- "@deepseek-ai/dsh-skill": "0.2.1-rc.5",
35
- "@deepseek-ai/cordis": "~4.0.5"
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.5",
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.1-rc.5",
44
- "@deepseek-ai/dsh-home-paths": "0.2.1-rc.5",
45
- "@deepseek-ai/dsh-skill": "0.2.1-rc.5",
46
- "@deepseek-ai/cordis": "~4.0.5"
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
  }