dsh-cwtools 0.1.0 → 0.3.0

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 CHANGED
@@ -9,22 +9,24 @@
9
9
 
10
10
  ### Features
11
11
 
12
- - Up to 37 read-only tools for project knowledge, rules and scopes, navigation, diagnostics, localisation, semantic analysis, and Shader queries.
12
+ - Every read-only tool the installed `cwtools-shared` publishes, grouped for project knowledge, rules and scopes, navigation, diagnostics, localisation, semantic analysis, Shader queries, and IDE bridge calls.
13
13
  - `query_targeting_weight` for Stellaris combat targeting calculations.
14
- - Optional `write_localisation`, disabled by default, with workspace path checks and UTF-8 BOM handling.
14
+ - Diagnostics honour the filter list configured for the workspace (`.vscode/settings.json`), and suppressed items stay counted.
15
+ - Vanilla-game errors are off by default; the settings page also forwards ignored error codes, ignored file names, and the localisation diagnostic filter to the backend.
16
+ - Every write stays disabled until its own name is stored in the write allowlist; `write_localisation` keeps workspace path checks and UTF-8 BOM handling.
15
17
  - Active-first backend reuse over a dedicated `/cwtools/*` HTTP API, with no second process when a healthy matching host exists.
16
18
  - A bounded runtime per mod workspace with single-flight startup, LRU/idle disposal, cooperative cancellation, and backend protocol/capability checks.
17
- - A bilingual CWTools settings section for backend paths, read groups, individual read tools, the write allowlist, and output limits.
19
+ - A bilingual CWTools settings section split into Project, Backend, Read tools, and Write and output tabs, covering backend paths, runtime bounds, read groups, individual read tools, the write allowlist, and output limits.
18
20
 
19
- CWT-only workspaces expose only their supported document/navigation/diagnostic subset. Targeting weights require a Stellaris full-mod workspace. The five VS Code-dependent domain writes, IDE tools, and visual editors are outside this release.
21
+ Nothing is filtered by a compiled tool list: a tool is hidden only when the shared catalog does not publish it, the configuration withdraws its group or grant, the workspace is CWT-only, or the backend cannot answer it. CWT-only workspaces expose only their supported document/navigation/diagnostic subset, and targeting weights require a Stellaris full-mod workspace.
20
22
 
21
23
  ### Requirements
22
24
 
23
25
  - DSH `>=0.2.2-rc.1 <0.3.0`.
24
26
  - A matching external CWTools server built with capability protocol 1. Older servers are rejected with `backend_incompatible` instead of silently producing partial results.
25
- - `cwtools-shared` 0.3.0 and `cwtools-node` 0.1.0. Development installations can link those checkouts; published installations should install them before this bundle.
27
+ - `cwtools-shared` 0.3.0 and `cwtools-node` 0.2.0. Development installations can link those checkouts; published installations should install them before this bundle.
26
28
 
27
- The bundle does not ship a backend. Empty `backend.serverPath` auto-discovers a standalone CWTools installation or development build. Empty `backend.activeManifestPath` auto-discovers the active-host manifest. Game, rules, and cache paths remain configurable.
29
+ The bundle does not ship a backend. Empty `backend.serverPath` auto-discovers a standalone CWTools installation or development build. Empty `backend.activeManifestPath` auto-discovers the active-host manifest. An empty `backend.gamePath` is discovered from the local Steam libraries; empty rules and cache paths try the installed extension first, then the workspace's rule checkout, then the server default.
28
30
 
29
31
  ### Install
30
32
 
@@ -58,22 +60,24 @@ See `ARCHITECTURE.md` for data flow and `CONTRIBUTING.md` for verification.
58
60
 
59
61
  ### 功能
60
62
 
61
- - 最多 37 个只读工具,覆盖项目知识、规则与作用域、导航、诊断、本地化、语义分析和 Shader 查询。
63
+ - 覆盖已安装 `cwtools-shared` 发布的全部只读工具,按项目知识、规则与作用域、导航、诊断、本地化、语义分析、Shader 查询和 IDE 桥接分组。
62
64
  - 使用 `query_targeting_weight` 计算 Stellaris 战斗索敌权重。
63
- - 可选 `write_localisation`,默认关闭,带工作区路径约束和 UTF-8 BOM 处理。
65
+ - 诊断会按工作区配置的过滤列表(`.vscode/settings.json`)过滤,被过滤掉的条目仍计入统计。
66
+ - 原版游戏错误默认关闭;设置页还会把忽略的错误码、忽略的文件名和本地化诊断过滤模式透传给后端。
67
+ - 所有写工具默认关闭,只有在写入白名单中显式保存其名称后才生效;`write_localisation` 保留工作区路径约束和 UTF-8 BOM 处理。
64
68
  - 通过独立 `/cwtools/*` HTTP API 优先复用活跃后端,工作区匹配且健康时不创建第二个进程。
65
69
  - 每个 Mod 工作区使用有界运行时,支持 single-flight 启动、LRU/idle 释放、协作取消和后端协议/能力握手。
66
- - 中英双语 CWTools 设置分区,配置后端路径、只读组、单个只读工具、写入白名单和结果上限。
70
+ - 中英双语 CWTools 设置分区,分为项目 / 后端 / 只读工具 / 写入与输出四个页签,覆盖后端路径、运行时上限、只读组、单个只读工具、写入白名单和结果上限。
67
71
 
68
- CWT-only 工作区只提供支持的文档、导航和诊断子集。索敌权重只用于 Stellaris full-mod 工作区。另外五个依赖 VS Code 的领域写入、IDE 工具和可视化编辑器不在首版范围内。
72
+ 不再有任何编译期工具清单:只有共享目录未发布、配置关闭了能力组或单工具、工作区是 CWT-only,或后端无法应答时,工具才会被隐藏。CWT-only 工作区只提供支持的文档、导航和诊断子集,索敌权重只用于 Stellaris full-mod 工作区。
69
73
 
70
74
  ### 环境要求
71
75
 
72
76
  - DSH `>=0.2.2-rc.1 <0.3.0`。
73
77
  - 带能力协议 1 的匹配外置 CWTools 服务端。旧服务端会返回 `backend_incompatible`,不会静默产生不完整的语义结果。
74
- - `cwtools-shared` 0.3.0 与 `cwtools-node` 0.1.0。开发安装可链接这些 checkout;发布安装应先安装这两个包。
78
+ - `cwtools-shared` 0.3.0 与 `cwtools-node` 0.2.0。开发安装可链接这些 checkout;发布安装应先安装这两个包。
75
79
 
76
- 组合包不自带后端。`backend.serverPath` 留空时自动发现独立 CWTools 安装或开发构建;`backend.activeManifestPath` 留空时自动发现活跃宿主清单。游戏、规则和缓存路径均可配置。
80
+ 组合包不自带后端。`backend.serverPath` 留空时自动发现独立 CWTools 安装或开发构建;`backend.activeManifestPath` 留空时自动发现活跃宿主清单。`backend.gamePath` 留空时从本机 Steam 库自动发现安装目录;规则与缓存路径留空时先尝试已安装扩展,再尝试工作区的规则检出,最后用服务器默认值。
77
81
 
78
82
  ### 安装
79
83
 
@@ -98,4 +102,4 @@ dsh --profile <profile> --dump-config
98
102
 
99
103
  工具使用调用 Agent Session 的当前工作目录。清单缺失或畸形、进程失效、工作区不匹配、宿主尚未活跃、连接失败或超时才回退到独立后端。活跃宿主协议或能力握手不兼容时返回 `backend_incompatible`,绝不启动竞争实例。已创建的运行时不会在两种后端间热迁移。不支持或歧义项目不会启动语言服务。加载中和仅有 mod 数据的结果带 readiness/cache provenance,不能当作完整 vanilla 结论。
100
104
 
101
- 数据流见 `ARCHITECTURE.md`,验证方式见 `CONTRIBUTING.md`。
105
+ 数据流见 `ARCHITECTURE.md`,验证方式见 `CONTRIBUTING.md`。