@dsh-gis/dsh-opengis-skill 0.1.0 → 0.1.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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 tj
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 tj
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -6,7 +6,7 @@ DeepSeek Harness 的 **OpenGIS 技能包插件**:把 [opengis-skills](https://
6
6
 
7
7
  - **32 个 GIS 技能**:GDAL、GDAL API、QGIS(qgis_process / PyQGIS / QGIS Server)、GeoServer(含 REST API 与 Cloud)、MapServer、PostGIS、PROJ、PDAL、GRASS GIS、JTS、NetTopologySuite、Esri Geometry API(Java/.NET)、Shapely、GeoPandas、GeoPipeAgent、OpenGisDAF、CesiumJS、OpenLayers、Leaflet、Mapbox GL JS、deck.gl、SharpMap、Mapsui、GeoTools、OpenGIS Utils(Java/.NET)、opengis-all 全流程索引。
8
8
  - **按需加载**:注册的是 skill provider(`ctx.skills.registerProvider`),发现阶段只读 frontmatter;正文每次加载时读取,参考资料(`reference/*.md`)通过技能目录(resource base)相对解析。
9
- - **零运行时依赖**:只用 Node 内置模块,npm 包内自带全部资产(约 640 KB),不 import DSH 内部包。
9
+ - **零运行时依赖**:只用 Node 内置模块,npm 包内自带全部资产(约 660 KB),不 import DSH 内部包。
10
10
  - **可同步上游**:`npm run sync` 从 opengis-skills 检出复制资产,记录上游 commit 到 `upstream.json`,并重新生成本文下方技能表。
11
11
  - **可启停**:单包同时是 bundle 与插件(`dsh.bundle.patch` 插入自身行),在 Plugins 里启用/停用即可。
12
12
 
@@ -87,7 +87,7 @@ npm run sync -- --from ../opengis-skills
87
87
  npm run sync:check -- --from ../opengis-skills
88
88
  ```
89
89
 
90
- 同步脚本会:逐文件复制 `gis/<skill>/`(不含任何改写)、校验 frontmatter(name 必须为 kebab-case 且与目录同名)、清理上游已删除的技能目录、更新 `upstream.json`(仓库地址、commit、同步时间、技能清单)以及本文的技能表。
90
+ 同步脚本会:逐文件复制 `gis/<skill>/`(文本统一为 LF,保证与上游 git blob 跨平台字节一致)、校验 frontmatter(name 必须为 kebab-case 且与目录同名)、清理上游已删除的技能目录、更新 `upstream.json`(仓库地址、commit、同步时间、技能清单)以及本文的技能表。
91
91
 
92
92
  ## 开发
93
93
 
@@ -123,8 +123,8 @@ dsh-opengis-skill/
123
123
 
124
124
  ## 与 @dsh-gis 其他插件的关系
125
125
 
126
- - ```dsh-gis/dsh-gis`:GIS 工具与地图界面(inspect/query/CRS/OGC/UI)。
127
- - ```dsh-gis/dsh-prompt-gis`:一段 GIS system-prompt 与两个内联技能(`gis-inspect-first`、`gis-query-patterns`)。
126
+ - `@dsh-gis/dsh-gis`:GIS 工具与地图界面(inspect/query/CRS/OGC/UI)。
127
+ - `@dsh-gis/dsh-prompt-gis`:一段 GIS system-prompt 与两个内联技能(`gis-inspect-first`、`gis-query-patterns`)。
128
128
  - 本包:纯知识型技能包(32 个 GIS 技能),不提供工具,可与上述插件同时安装。
129
129
 
130
130
  ## 许可
@@ -2,21 +2,44 @@
2
2
 
3
3
  ## opengis-skills
4
4
 
5
- The skill instructions under `assets/` are copied verbatim from the
5
+ The skill instructions under `assets/` are copied from the
6
6
  [opengis-skills](https://github.com/znlgis/opengis-skills) repository
7
7
  (`gis/` category), which is licensed under the MIT License:
8
8
 
9
- > MIT License
10
- >
11
- > Copyright (c) 2024-2026 znlgis
9
+ ```text
10
+ MIT License
11
+
12
+ Copyright (c) 2024-2026 znlgis
13
+
14
+ Permission is hereby granted, free of charge, to any person obtaining a copy
15
+ of this software and associated documentation files (the "Software"), to deal
16
+ in the Software without restriction, including without limitation the rights
17
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
+ copies of the Software, and to permit persons to whom the Software is
19
+ furnished to do so, subject to the following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be included in all
22
+ copies or substantial portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
+ SOFTWARE.
31
+ ```
12
32
 
13
33
  The exact upstream commit, sync time, and the list of vendored skills are
14
34
  recorded in [`upstream.json`](./upstream.json); the copy is performed by
15
- [`scripts/sync-opengis-skills.mjs`](./scripts/sync-opengis-skills.mjs). The
16
- skills are documentation: each one describes an independent open-source project
17
- (GDAL, QGIS, GeoServer, PostGIS, JTS, CesiumJS, OpenLayers, and others) and
18
- links to that project's own repository, documentation, and license. Those
19
- projects keep their own licenses; nothing in this package re-licenses them.
35
+ `scripts/sync-opengis-skills.mjs`, which lives in the source repository
36
+ (<https://github.com/znlgis/dsh-opengis-skill>) and is not part of the
37
+ published package. Text files are vendored with LF line endings so the
38
+ snapshot matches the upstream git blob on every platform. The skills are
39
+ documentation: each one describes an independent open-source project (GDAL,
40
+ QGIS, GeoServer, PostGIS, JTS, CesiumJS, OpenLayers, and others) and links to
41
+ that project's own repository, documentation, and license. Those projects
42
+ keep their own licenses; nothing in this package re-licenses them.
20
43
 
21
44
  ## DeepSeek Harness
22
45