dsh-irmia-devkit
文件与数据 活跃维护

dsh-irmia-devkit

irmia2026/dsh-irmia-devkit

npm发布的AGPL协议开源工具包,为IRMIA场景开发提供预置通用组件、工具函数与工程化配置,开箱即用免去重复搭建基础架构的繁琐,助力快速落地业务逻辑。

2
Stars 标星
0
Forks 分支
2
Watchers 关注
0
Open Issues
Python
主要语言
AGPL-3.0
开源协议
133 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:irmia2026/dsh-irmia-devkit
git clone https://github.com/irmia2026/dsh-irmia-devkit.git
git clone git@github.com:irmia2026/dsh-irmia-devkit.git
README.md main

dsh-irmia-devkit

npm version
License: AGPL-3.0
dsh-plugin

Curated Irmia DevKit tools for DeepSeek Harness (DSH). Nine battle-tested tools ported as-is from Irmia DevKit v2.6.4, covering the gaps the Harness runtime does not ship natively.

Features

Group Tools What they do
Safe editing safe_edit · safe_rollback · multi_edit Backup → edit → syntax gate → auto-rollback on failure. safe_rollback(list=true) lists backups; multi_edit does atomic cross-file batch edits
Networking http_get · http_post SSRF-guarded HTTP (private-network blocking + per-hop redirect re-check)
Code understanding code_index · code_explore · code_diff_impact Symbol indexing (AST + SQLite + FTS5) with BFS call-graph queries; code_index(status=true) checks index health
Read-only DB db_query SELECT/PRAGMA whitelist + engine-level mode=ro read-only

Zero third-party Python dependencies — pure standard library (chardet / tree-sitter are optional enhancements with graceful fallback).

Install

Requires Node.js ≥ 18 and python3 (≥ 3.9) on PATH. This package ships as a DSH bundle (dsh.bundle), installed into a profile via dsh plugin:

# From npm (recommended)
npx @deepseek-ai/dsh plugin --profile web add dsh-irmia-devkit

# From GitHub (pin a version)
npx @deepseek-ai/dsh plugin --profile web add github:irmia2026/dsh-irmia-devkit#v0.1.0

Verify the layer landed before launching:

npx @deepseek-ai/dsh --profile web --dump-config   # look for a "# == dsh-irmia-devkit" layer
npx @deepseek-ai/dsh web

Configuration

Field Default Description
pythonPath python3 Executable used to run the bundled Python tools

How it works

Model → Cordis tool (index.js / src/tools.js)
        │  execFile("python3", python/runner.py <tool> '<json-args>')
        ▼
python/runner.py → python/tools/*.py (DevKit modules, unchanged)
        ▼
JSON result back to the model
  • The JS layer only defines tool schemas and bridges to subprocesses.
  • The Python core comes from irmia_devkit_open v2.6.4, unmodified.
  • Per-tool behavior (arguments, guards, return protocol) is preserved exactly.

Development

node test/smoke.mjs   # requires node_modules with @deepseek-ai/dsh-tools

Repo-internal design docs: docs/COMPARISON.md (DevKit ↔ Harness tool comparison) and docs/PORTING.md (port blueprint).

License

AGPL-3.0. Python tool core © 2026 伊尔弥亚 / irmia2026, from Irmia DevKit, AGPL-3.0. This repository is a derivative work distributed under AGPL-3.0.