rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:reknottycat/dsh-cad-translation
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Translate the text inside DXF/DWG drawings from a DeepSeek Harness session, then download the translated drawing or the extracted text workbook.
The plugin is a thin consumer of the separately installed CAD Translation System backend. Conversion, text extraction, LLM translation and back-fill all stay in the backend's own async task pipeline; the plugin only uploads a drawing, follows the task, and fetches the finished artifacts.
| Tool | Purpose |
|---|---|
cad_translate |
Upload a local .dxf/.dwg, choose the target language, get a task id. |
cad_translation_status |
Read one task's status/stage/progress, optionally its log tail; list recent tasks when no id is given. |
cad_download_drawing |
Save the back-filled drawing (translated_cad) or the text workbook (excel) locally. |
| Item | Version / note |
|---|---|
DeepSeek Harness (dsh) |
0.2.1-rc.5 (the supported and tested version). |
| Node.js | Node 24 verified for Harness 0.2.1-rc.5. The standalone plugin tests also run on Node 22; Node 22.14 did not start the Harness CLI. |
| CAD translation backend | The separately installed CAD Translation System FastAPI backend. |
Harness is in developer preview and can break compatibility between releases.
The package is restricted to the verified version. The --network test uses
the pinned rc.5 tools and does not verify a newer Harness; upgrading requires
testing installation and a real session against the target version.
Install and start the CAD Translation System backend. Configure a model provider for full translation; the backend runs separately.
The plugin reads them from the environment, so a profile patch never carries a
secret. Set them before starting dsh:
export CAD_TRANSLATION_BASE_URL=http://127.0.0.1:8000 # default
export CAD_TRANSLATION_ADMIN_TOKEN="your-backend-admin-token" # replace with your configured token
export CAD_TRANSLATION_TIMEOUT_MS=120000 # optional, per HTTP request
export CAD_TRANSLATION_OUTPUT_DIR=.cad-translation # optional, default download dir
The following commands are for macOS/Linux. Use Node 24, Harness 0.2.1-rc.5, and pnpm on PATH. Run from the repository root:
git clone https://github.com/reknottycat/dsh-cad-translation.git
cd dsh-cad-translation
npm install --omit=dev --ignore-scripts --no-package-lock
dsh plugin --profile web add ./
dsh --profile web --no-open
Open the address printed by Harness and start a session. The bundle registers its tools once in the Host registry: agent presets inherit them unless they restrict or shadow those tools. Restart Harness after installing or removing the bundle. Users of the previous generated profile patch should stop passing that patch when upgrading to this version to avoid duplicate registration. Windows installation and DWG conversion have not yet been verified.
Start a session and ask in natural language:
Translate
~/projects/plan.dxfto Japanese, then save the result next to the original.
The model calls cad_translate, then polls cad_translation_status, then calls
cad_download_drawing. You can also ask directly:
List my recent CAD translation tasks.
Show the log of task 0badf00d.
Download the extracted text workbook of task 0badf00d into ./out.
Statuses reported: queued, processing, done, partial, error,
cancelled. A task is settled once it reaches done, partial, error or
cancelled; anything else is still running. partial means some text failed to
translate, and failed_count says how many.
file_path is used as given.file_path resolves against the Session working directory.output_dir, or to CAD_TRANSLATION_OUTPUT_DIR /
backend.outputDir (default .cad-translation) under the Session working
directory..dxf/.dwg), size
(MAX_FILE_SIZE, 100 MB by default) and task ids (8 hex characters) itself;
the plugin repeats the task-id check so a mistyped value never becomes part of
a download path.CAD_TRANSLATION_ADMIN_TOKEN is the backend's ADMIN_API_TOKEN, not an LLM
key. LLM credentials stay in backend/.env or the backend's runtime config
and never reach the plugin.X-Admin-Token header. Exact token values in returned strings and error messages are
redacted; schema field names are unchanged, and transformed or partial values
echoed by a server cannot be reliably recognized.ENABLE_ADMIN_GUARD=true and no ADMIN_API_TOKEN, the backend rejects
every protected route with 503; the plugin reports that as an actionable
error instead of retrying.output_dir points; keep private drawings out of committed directories.converter_backend: "dxf_only" skips conversion entirely and is what the
tests use.error; extract_only: true still produces the workbook.cad_translate queues and returns
immediately (background=true); there is no client-side waiting or progress
streaming, so the model polls.presentCall/presentResult
projections, so the Web client renders the default card with the model-facing
text.npm install --ignore-scripts --no-package-lock
npm test
node scripts/dsh_harness_smoke.mjs
The smoke installs fixed Node, pnpm and Harness versions in a temporary directory, then installs the packed plugin and checks a real session with a local fake model and backend. It requires network access, but no model API key.
The source integration is maintained in CNB PR #40, currently unmerged. Real translation was verified on macOS with Node 24 and Harness 0.2.1-rc.5; see the verification record.
dsh-cad-translation/
├── package.json # dsh.bundle manifest + engines.dsh range
├── patches/presets.patch.yml # registers the Host tool plugin once
├── scripts/dsh_harness_smoke.mjs # real Harness smoke test
├── src/
│ ├── cad-translator.mjs # the three tools (defineTool registrations)
│ ├── adapter.mjs # Cordis plugin that names each mounted row
│ └── dsh-tools.mjs # resolves @deepseek-ai/dsh-tools from the running Host
├── client.mjs # backend HTTP client (upload / task / download)
├── locale/{en,zh}.json # plugin display metadata
├── docs/dsh-plugin.md # integration design + verification record
└── tests/ # node:test suites + mock backend CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。