dsh-geolibre
DeepSeek Harness plugin: render GeoJSON/vector data into an interactive GeoLibre map and let agents operate the live map (layers, styles, view, GeoLibre algorithms and Whitebox WASM tools) through agent tools.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:baddying/dsh-geolibre说明文档
阅读完整 README ↗使用示例 / Usage examples
Agent(模型)在工作区直接调用工具即可:
用户:把北京、上海、广州、成都四个点画到地图上。
→ geolibre_render_map(data=, name="cities", center="112,32", zoom=4)
用户:对 sample-points 做 100km 缓冲。
→ geolibre_map_run(method="listAlgorithms") # 发现 buffer 算法
→ geolibre_map_run(method="runAlgorithm", params={"id":"buffer","params":{"layer":"","distance":100,"units":"kilometers"}})
用户:把所有省会城市显示出来。
→ geolibre_map_update(data=, name="cities", style={...})
用户:把地图移到上海。
→ geolibre_map_update(view={center:"121.5,31.2", zoom:8})
「地图」tab 顶部的 刷新 按钮会重新挂载 iframe 并载入 host 当前工程;工程/图层状态以 host 进程内的会话工程为单一事实来源,应用侧改动(用户交互、算法结果图层)会通过 geolibre:state 回写。