@deepseek-ai/dsh-lsp 0.1.5-rc.2 → 0.1.6-alpha.2
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 +1 -1
- package/README.zh.md +3 -3
- package/package.json +5 -5
package/README.i18n.yaml
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
# after editing either side, bring the other along and re-record with:
|
|
4
4
|
# pnpm run verify-translation-pairing --write packages/lsp/lsp/README.md
|
|
5
5
|
README.md: 2dcd3c39ab4b82403794aaaf4b4ed6a79e7658f0
|
|
6
|
-
README.zh.md:
|
|
6
|
+
README.zh.md: 57d4660f1461cb7b2da0cd130fc335f02c685060
|
package/README.zh.md
CHANGED
|
@@ -9,7 +9,7 @@ kind: "package-reference"
|
|
|
9
9
|
|
|
10
10
|
## 概述
|
|
11
11
|
|
|
12
|
-
使用 `dsh-lsp` 为 agent
|
|
12
|
+
使用 `dsh-lsp` 为 agent(智能体)提供语言服务器导航,包括定义、引用、实现与悬停文档。查询按文件扩展名选择已配置的提供方,并返回规范化结果与结构化错误,因此更换后端不会改变导航请求或模型可见的响应。导航只读,并刻意排除通用 JSON-RPC 访问、重命名、格式化、诊断与符号列表。本包必须与 `dsh-lsp-stdio` 等提供方及面向模型的 `dsh-tool-lsp` 组合;单独使用时不提供导航。
|
|
13
13
|
|
|
14
14
|
## 目录
|
|
15
15
|
|
|
@@ -76,7 +76,7 @@ seam 需要提供方与消费方才能发挥作用。最小组合挂载服务、
|
|
|
76
76
|
|
|
77
77
|
- **能力 seam,Service Definition 角色。** 本包拥有 `ctx.lsp` 与提供方注册表;提供方注册的是能力而非工具,`dsh-tool-lsp` 是面向模型表层的唯一 owner。
|
|
78
78
|
- **原子注册。** `registerProvider()` 在变更前验证并检查全部冲突:无效或冲突的注册不会发布任何内容,其 disposer 会一并释放 id 与全部扩展名保留。
|
|
79
|
-
- **与顺序无关的选择。** `query()` 按文件的最终扩展名(规范化为小写、以点开头的形式)路由;注册与 HMR
|
|
79
|
+
- **与顺序无关的选择。** `query()` 按文件的最终扩展名(规范化为小写、以点开头的形式)路由;注册与 HMR(热模块替换)顺序绝不会改变路由。language id 只用于同步临时文档,绝不参与选择。
|
|
80
80
|
- **封闭的词汇。** 四种操作的联合是封闭的——新增操作是跨 seam、提供方与工具的编译期强制变更。没有 JSON-RPC 逃生口,且每个请求字段都必填,因此不存在 `resolve()` 步骤。
|
|
81
81
|
- **提供方拥有的工作区坐标。** 位置结果携带提供方的规范工作区 URI,消费方据此在执行世界的命名空间内相对化文件 URI,而不是应用宿主平台路径规则。
|
|
82
82
|
|
|
@@ -87,7 +87,7 @@ seam 需要提供方与消费方才能发挥作用。最小组合挂载服务、
|
|
|
87
87
|
| [`src/index.ts`](src/index.ts) | 插件入口:`Lsp` 服务、`registerProvider`/`query`、`finalExtension`、`LspError` code |
|
|
88
88
|
| [`src/types.ts`](src/types.ts) | seam 词汇:请求、结果、提供方与服务约定 |
|
|
89
89
|
| [`src/brand.ts`](src/brand.ts) | `LspProviderId` 品牌化 id 类型与工厂 |
|
|
90
|
-
| — |
|
|
90
|
+
| — | 不发布运行时不变式伴生入口;提供方 id 与扩展名路由属于以原子方式更新的私有状态;该 seam 既不公开可枚举快照,也不公开可供独立比较的生命周期事件。 |
|
|
91
91
|
|
|
92
92
|
### 注册与选择生命周期
|
|
93
93
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-lsp",
|
|
3
3
|
"description": "Abstract LSP capability seam (ctx.lsp) for the DeepSeek Harness — language-server provider registry keyed by branded id and extension mapping, order-independent per-query selection, normalized definition/references/implementation/hover requests and results, and the LspError taxonomy",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.6-alpha.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
],
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@deepseek-ai/dsh-brand": "^0.1.
|
|
31
|
-
"@deepseek-ai/dsh-llm": "^0.1.
|
|
30
|
+
"@deepseek-ai/dsh-brand": "^0.1.6-alpha.2",
|
|
31
|
+
"@deepseek-ai/dsh-llm": "^0.1.6-alpha.2",
|
|
32
32
|
"@deepseek-ai/cordis": "^4.0.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@deepseek-ai/dsh-brand": "^0.1.
|
|
36
|
-
"@deepseek-ai/dsh-llm": "^0.1.
|
|
35
|
+
"@deepseek-ai/dsh-brand": "^0.1.6-alpha.2",
|
|
36
|
+
"@deepseek-ai/dsh-llm": "^0.1.6-alpha.2",
|
|
37
37
|
"@deepseek-ai/cordis": "^4.0.2"
|
|
38
38
|
}
|
|
39
39
|
}
|