@lance808/dsh-image-tool avatar

@lance808/dsh-image-tool

给 DeepSeek Harness 补上生图能力:把任意 OpenAI 兼容的生图服务接成平台工具,模型在对话里直接出图。

PluginMediaVisionAI ModelsCreator & socialFileVision / OCR
Verification
L5 · Run tested
Verified
Risk
LowRisk
Health
Active
Trust
Gold

Install verification: runtime verified (L5) · tested on dsh 0.2.1-rc.2 · last checked Install verification details →

Install verification badge dsh 0.2.1-rc.2

What it doesAI

Connects any OpenAI-compatible image API to DSH so chat models can generate and edit images as native image cards.

  • Adds generate image and image edit tools via any OpenAI-compatible API
  • Image edit can reuse the session's latest image and outputs native image cards
  • Per-tool confirmation popups, full settings page, upstream model discovery, /api/image/tool endpoint
mediaAIcreatorAIfileAI

Capability tags are AI-inferred or rule-extracted from the README (see badge) — vocabulary-limited, not install-verified. AI = inferred; README = literal keyword from the readme.

Installation

dsh plugin --profile web add github:lance808/dsh-image-tool
verified

Install method: GitHub · runtime verified (L5)

Verification & Compatibility

Grouped by plugin version: each card lists the dsh versions actually tested against that artifact version and their install verdicts (L5 wins). Untested combinations are omitted — absence means untested, never assumed compatible. L1–L3 are a plugin-level static archive (independent of the dsh version — the same verdict on every dsh row): they sit in each row's level grid next to L4/L5, marked "static", while their evidence is stored once per plugin inside that row's "checks & evidence" instead of being duplicated per version.

External credentials (plugin-level): none detected

Declared DSH compatibilityfrom package.json · peerDependencies
author declared no dsh version requirement

○ The author declares no dsh version requirement — install is not blocked by version.

Install compatibility matrix (rows = plugin versions〔latest 5〕, columns = dsh versions〔latest 5〕)
At-a-glance → evidence in the cards below
plugin \ dshdsh 0.2.1-rc.2
current
dsh 0.2.1-alpha.4dsh 0.2.1-alpha.2
9e73d3✓✓✓
Install compatibility (by plugin version, dsh versions within)
Legend:✓ L5 runtime verified○ ecosystem plugin◼ ecosystem app✗ failed
9e73d3github✓ 3 runtime-verified2026-10-18

https://github.com/lance808/dsh-image-tool

✓dsh 0.2.1-rc.2current2026-10-18L5 · runtime verified
Environment & artifact
  • • Node.js: v24.14.0
  • • DSH: 0.2.1-rc.2
  • • Plugin artifact: github · https://github.com/lance808/dsh-image-tool (version unstated)
Levels (L1–L3 plugin-level static archive · L4/L5 newest real verdicts for this combination)
L1 static
Passed
L2 static
Passed
L3 static
Passed
L4 sandbox
Passed
L5 runtime
Passed
Install + runtime smoke verified in the dsh sandbox — installs and runs
L5 · runtime verified · valid for dsh 0.2.1-rc.2

ID: dsh-image-tool@9e73d3@dsh0.2.1-rc.2 · profile: l4-sandbox

Issued: 2026-10-18 · expires: 2026-10-25

View checks & evidence
L1 · Found✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L2 · Structured✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L3 · Install spec✓ Passed
Install command parsed✓ Passed
Source: registry verification · Method: install spec parse · Captured 2026-10-18
DSH version declared✓ Passed
Source: registry verification · Method: DSH version declaration · Captured 2026-10-18
L4 · Install tested✓ Passed
Install executed in confined sandbox✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-18
spec github:lance808/dsh-image-tool · channel GitHub source · outcome ran · exit 0
check took: 4.0s
Install succeeded✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-18
spec github:lance808/dsh-image-tool · channel GitHub source · outcome ran · exit 0
check took: 4.0s
Installed artifact confirmed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-18
spec github:lance808/dsh-image-tool · channel GitHub source · outcome ran · exit 0
check took: 4.0s
L5 · Run tested✓ Passed

active in loader tree (150 entries)

Sandbox install passed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-18
spec github:lance808/dsh-image-tool · install mode reused L4 scratch
check took: 20ms
Web boot ready✓ Passed
Source: DSH runtime · Method: web boot · Captured 2026-10-18
ready line dsh web: http://127.0.0.1:56101/?token=…
HTTP endpoint served✓ Passed
Source: DSH runtime · Method: HTTP request · Captured 2026-10-18
path / · HTTP 200 · took 20ms
Plugin active in inventory✓ Passed
Source: DSH runtime · Method: plugin inventory query · Captured 2026-10-18
verdict active · entries 150
match: include:image-tool · dsh-image-tool · phase active
phases: active 122 · null 28

L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.

✓dsh 0.2.1-alpha.42026-10-16L5 · runtime verified
Environment & artifact
  • • Node.js: v24.14.0
  • • DSH: 0.2.1-alpha.4
  • • Plugin artifact: github · https://github.com/lance808/dsh-image-tool (version unstated)
Levels (L1–L3 plugin-level static archive · L4/L5 newest real verdicts for this combination)
L1 static
Passed
L2 static
Passed
L3 static
Passed
L4 sandbox
Passed
L5 runtime
Passed
Install + runtime smoke verified in the dsh sandbox — installs and runs
L5 · runtime verified · valid for dsh 0.2.1-alpha.4

ID: dsh-image-tool@9e73d3@dsh0.2.1-alpha.4 · profile: l4-sandbox

Issued: 2026-10-16 · expires: 2026-10-23

View checks & evidence
L1 · Found✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L2 · Structured✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L3 · Install spec✓ Passed
Install command parsed✓ Passed
Source: registry verification · Method: install spec parse · Captured 2026-10-18
DSH version declared✓ Passed
Source: registry verification · Method: DSH version declaration · Captured 2026-10-18
L4 · Install tested✓ Passed
Install executed in confined sandbox✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-16
spec github:lance808/dsh-image-tool · channel GitHub source · outcome ran · exit 0
check took: 2.6s
Install succeeded✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-16
spec github:lance808/dsh-image-tool · channel GitHub source · outcome ran · exit 0
check took: 2.6s
Installed artifact confirmed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-16
spec github:lance808/dsh-image-tool · channel GitHub source · outcome ran · exit 0
check took: 2.6s
L5 · Run tested✓ Passed

active in loader tree (150 entries)

Sandbox install passed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-16
spec github:lance808/dsh-image-tool · install mode reused L4 scratch
check took: 1.1s
Web boot ready✓ Passed
Source: DSH runtime · Method: web boot · Captured 2026-10-16
ready line dsh web: http://127.0.0.1:49813/?token=…
HTTP endpoint served✓ Passed
Source: DSH runtime · Method: HTTP request · Captured 2026-10-16
path / · HTTP 200 · took 1.1s
Plugin active in inventory✓ Passed
Source: DSH runtime · Method: plugin inventory query · Captured 2026-10-16
verdict active · entries 150
match: include:image-tool · dsh-image-tool · phase active
phases: active 122 · null 28

L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.

✓dsh 0.2.1-alpha.22026-10-14L5 · runtime verified
Environment & artifact
  • • Node.js: v24.14.0
  • • DSH: 0.2.1-alpha.2
  • • Plugin artifact: github · https://github.com/lance808/dsh-image-tool (version unstated)
Levels (L1–L3 plugin-level static archive · L4/L5 newest real verdicts for this combination)
L1 static
Passed
L2 static
Passed
L3 static
Passed
L4 sandbox
Passed
L5 runtime
Passed
Install + runtime smoke verified in the dsh sandbox — installs and runs
L5 · runtime verified · valid for dsh 0.2.1-alpha.2

ID: dsh-image-tool@9e73d3@dsh0.2.1-alpha.2 · profile: l4-sandbox

Issued: 2026-10-14 · expires: 2026-10-21

View checks & evidence
L1 · Found✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L2 · Structured✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L3 · Install spec✓ Passed
Install command parsed✓ Passed
Source: registry verification · Method: install spec parse · Captured 2026-10-18
DSH version declared✓ Passed
Source: registry verification · Method: DSH version declaration · Captured 2026-10-18
L4 · Install tested✓ Passed
Install executed in confined sandbox✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec github:lance808/dsh-image-tool · channel GitHub source · outcome ran · exit 0
check took: 3.9s
Install succeeded✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec github:lance808/dsh-image-tool · channel GitHub source · outcome ran · exit 0
check took: 3.9s
Installed artifact confirmed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec github:lance808/dsh-image-tool · channel GitHub source · outcome ran · exit 0
check took: 3.9s
L5 · Run tested✓ Passed

active in loader tree (150 entries)

Sandbox install passed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec github:lance808/dsh-image-tool · install mode reused L4 scratch
check took: 3.5s
Web boot ready✓ Passed
Source: DSH runtime · Method: web boot · Captured 2026-10-14
ready line dsh web: http://127.0.0.1:60315/?token=…
HTTP endpoint served✓ Passed
Source: DSH runtime · Method: HTTP request · Captured 2026-10-14
path / · HTTP 200 · took 3.5s
Plugin active in inventory✓ Passed
Source: DSH runtime · Method: plugin inventory query · Captured 2026-10-14
verdict active · entries 150
match: include:image-tool · dsh-image-tool · phase active
phases: active 122 · null 28

L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.

Author badges

Embed the official badges in your README to showcase security & install-test status:

dsh.so risk
`[![dsh.so risk](https://www.dsh.so/badge/dsh-image-tool.svg)](https://www.dsh.so/artifact/dsh-image-tool/)`
dsh 0.2.1-rc.2 install verified
`[![dsh.so install · dsh 0.2.1-rc.2](https://www.dsh.so/badge/install/dsh-image-tool@0.2.1-rc.2.svg)](https://www.dsh.so/artifact/dsh-image-tool/)`

Security Report

Two automated layers, neither a manual review: a static scan (per-plugin rule checks) and a model-driven dynamic security audit that covers only the subset static-flagged at warn or above and never executes plugin code.

dsh-image-toolAutomated review · daily

Static low, dynamic medium — stricter wins → overall medium.

static low→dynamic medium→overall medium
0 critical·0 high
mediumoverall · medium
1static scan · vet primaryvet AST static analysis (npm artifact or git source)
plugin versionv0.2.0dsh manifest
scanned version0.2.0git2026-10-21
current version0.2.0same version
vet verdictclean · git

Vet is an AST static scan (npm artifact or git source).

show static findings (9)
  • warningnetIp · networkclient.js:698

    + '本机生图服务(如 http://127.0.0.1:7860)同样支持。',

  • warningfsWrite · fileslib/diag.js:24

    fs.appendFileSync(file, `[${new Date().toISOString()}] ${message}\n`);

  • warningnetIp · networklib/index.js:65

    apiUrl: z.string().default('').description('生图接口基址,例如 https://api.openai.com/v1(允许 http://127.0.0.1:xxxx 这类本地服务)').extra('volatile', true),

  • warningnetIp · networklib/routes.js:90

    const url = new URL(req.url ?? '/', 'http://127.0.0.1');

  • warningnetIp · networklib/routes.js:318

    const url = new URL(req.url ?? '/', 'http://127.0.0.1');

  • warningfsWrite · fileslib/save.js:54

    await fs.writeFile(path.join(dir, parts.at(-1)), stored.data, { flag: 'wx', signal });

  • warningnetIp · networkscripts/mock-image-api.mjs:72

    const url = new URL(req.url ?? '/', 'http://127.0.0.1');

  • warningnetIp · networkscripts/mock-image-api.mjs:128

    console.log(`[mock] 假生图服务已启动:http://127.0.0.1:${PORT}/v1`);

  • warningnetIp · networkscripts/mock-image-api.mjs:129

    console.log(`[mock] 把插件 apiUrl 设为 http://127.0.0.1:${PORT}/v1 即可(apiKey 随便填非空值)`);

2model reads redacted source context · never executes plugin code
highest grademedium
merged intooverall medium
audited at2026-10-17
findings0 critical·0 high1 medium / 1 low hidden
show 2 audit findings
  • mediumUpstream-image SSRF guard only matches hostname strings, leaving DNS and non-dotted IPv6 forms unfilteredlib/generate.js:206

    assertFetchableImageUrl is the only gate before fetchImage(url) downloads an upstream-supplied URL. It inspects the literal hostname only: names that resolve to 127.0.0.1/169.254.169.254 (e.g. a relay-controlled A record, or 'localhost.' with a trailing dot, which fails the host === 'localhost' test) pass the check, and IPv4-mapped IPv6 written in hex form (e.g. [::ffff:7f00:1], bracketed and de-bracketed to '::ffff:7f00:1') does not match the dotted-quad regex and falls through to 'return false'. A malicious or compromised OpenAI-compatible relay (an explicitly supported deployment) can there

  • lowDiagnostic log writes prompts and paths to a predictable world-readable temp filelib/diag.js:15

    By default every run appends to <tmpdir>/dsh-image-tool.log with default permissions (typically 0644). Callers log user content into it: routes.js logs 'prompt=...' (truncated to 80 chars), the image reference and cwd, and index.js logs disk paths and upstream error text. On a shared/multi-user host any local user can read the user's image prompts, workspace paths and upstream error bodies. Only prompts/paths/metadata are exposed - the API key itself is never logged.

SSRF guard on upstream image URLs only string-matches hostnames (DNS/alternate-literal bypasses remain), and diag logs write prompts to a shared tmp file.

Rule: the dynamic audit can only raise risk, never lower it (raise-only, never an exemption); a wrong raise is withdrawn by human review and the tier falls back to the static verdict. Overall verdict = the stricter of the two layers.

Disclaimer: the static scan and the dynamic security audit are both automated analysis, not a security guarantee. Always review what you install.

Activity

Last commit 2026-10-14 · activity: Active

• Repo created: 2026-10-14

• Stars: ★ 1 · Forks: 0

• Health: Active — committed within last 30 days

Source

GitHub: github.com/lance808/dsh-image-tool

Was this page helpful?