{"_id":"@next-ai-drawio/dsh","_rev":"2-acfc76aba469e3f095fc944a37441d16","name":"@next-ai-drawio/dsh","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.0-stage":{"name":"@next-ai-drawio/dsh","version":"0.0.0-stage","_id":"@next-ai-drawio/dsh@0.0.0-stage","stub":true,"maintainers":[{"name":"dayuanjiang","email":"jdy.toh@gmail.com"}],"dist":{"shasum":"cdae4366bbfe6a0a59af397c46f7bf3bac6e805e","tarball":"https://registry.npmjs.org/@next-ai-drawio/dsh/-/dsh-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-22Rz44uemqRpCdJMrYdVuVHyIjcH6XYXE9sdg/WLsfn9/woV2xSlpKtVU4v9xrilHaNL4KDtJ85EwEMsKtyY6w==","signatures":[{"sig":"MEYCIQCFXyqjuRS4wF9gL9Pl+NjLIIuczZGnowBufXrSFDTZ+AIhAOwzdVX6iauOEWgOX484zEQs/uJ4Ehaj/WfnYHy2q/7n","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":341},"_npmUser":{"name":"dayuanjiang","email":"jdy.toh@gmail.com"},"description":"Temporary package placeholder for staged publishing","directories":{}},"0.1.0":{"_id":"@next-ai-drawio/dsh@0.1.0","dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"bugs":{"url":"https://github.com/DayuanJiang/next-ai-draw-io/issues"},"dist":{"shasum":"54441642dc24e57613961725d13ed9527285c7a9","tarball":"https://registry.npmjs.org/@next-ai-drawio/dsh/-/dsh-0.1.0.tgz","fileCount":6,"integrity":"sha512-OOmlRz1uKSUwHT9kvlZS6AgDYii6uKbeD0t5ZeqXCpZvkfDSoaIbzCpHQIMcsOOAVn9BQ94/DRDz6Cg4eV9BNw==","signatures":[{"sig":"MEUCIQC1B554O/+ZLtmovIu1djcgVqyQjYg244s7PwJ1KrMRoAIgejDk1OozeDfF79S53xZDCwEcmb1iYC974uLEtdiv6+Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEF7uVjzijAMrEiUPnHSKcKbFUaFYcCeEMyNRpmMda5BAiACxUvW0Tq3gsIk0BGBz+ksellNWe9GMDncXv521xoeBw=="}],"unpackedSize":9505},"icon":"./icon.png","name":"@next-ai-drawio/dsh","author":{"name":"DayuanJiang"},"license":"Apache-2.0","version":"0.1.0","_npmUser":{"name":"dayuanjiang","email":"jdy.toh@gmail.com"},"homepage":"https://next-ai-drawio.jiang.jp/en/mcp","keywords":["dsh","dsh-plugin","deepseek-harness","mcp","drawio","draw.io","diagram","architecture-diagram","flowchart"],"repository":{"url":"git+https://github.com/DayuanJiang/next-ai-draw-io.git","type":"git","directory":"packages/dsh-plugin"},"_npmVersion":"11.19.1","description":"draw.io diagrams in DeepSeek Harness: the AI draws on a live canvas in the sidebar that you can also edit by hand, with versions and undo","directories":{},"maintainers":[{"name":"dayuanjiang","email":"jdy.toh@gmail.com"}],"_nodeVersion":"24.22.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dsh_0.1.0_1793491861813_0.03175524968675758"}}},"time":{"created":"2026-11-01T00:10:06.211Z","modified":"2026-11-01T00:11:02.063Z","0.0.0-stage":"2026-11-01T00:10:06.211Z","0.1.0":"2026-11-01T00:11:01.922Z"},"description":"draw.io diagrams in DeepSeek Harness: the AI draws on a live canvas in the sidebar that you can also edit by hand, with versions and undo","maintainers":[{"name":"dayuanjiang","email":"jdy.toh@gmail.com"}],"readme":"# @next-ai-drawio/dsh\n\n[DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) plugin for [Next AI Draw.io](https://github.com/DayuanJiang/next-ai-draw-io). It adds the [`@next-ai-drawio/mcp-server`](https://www.npmjs.com/package/@next-ai-drawio/mcp-server) MCP server, so the agent can draw draw.io diagrams on a live canvas in DSH's right sidebar. You can edit the diagram by hand at the same time, and every change the AI makes is saved as a version you can go back to.\n\n## Install\n\n```bash\ndsh plugin --profile web add @next-ai-drawio/dsh\n```\n\nUse the profile you start DSH with (`web` for `dsh web`). You need Node.js 18 or later; `npx` downloads the MCP server on first use. After installing, the plugin shows up under **Plugins** in the DSH web UI, where you can turn it off.\n\n## Use\n\nAsk, for example, \"Read this repo and draw its architecture\". The agent calls `start_session` and replies with the preview link. Click it: the preview opens in DSH's right sidebar, and the diagram appears as it is drawn. The plugin turns on DSH's sidebar browser, which the web profile leaves off by default.\n\nThe agent checks its drawing with `screenshot_diagram`. That works once the preview is open, and only with a model that accepts images; with a text-only model, DSH passes a short note instead of the picture.\n\nThe tools are named `mcp__drawio__<tool>`: `start_session`, `create_new_diagram`, `edit_diagram`, `get_diagram`, `screenshot_diagram`, `export_diagram`, `restore_version` and more. See the [MCP server README](https://github.com/DayuanJiang/next-ai-draw-io/tree/main/packages/mcp-server#readme) for the full list and its settings.\n\nProfiles without the sidebar, such as `tui` and `headless`, print `patch: entry \"ui-sidebar-browser\" not found` at start; it does no harm. There, open the preview link in your browser.\n\n## Settings\n\nThe plugin runs `npx -y @next-ai-drawio/mcp-server@latest`. To pass more settings such as `DRAWIO_LANG`, override the `mcp-drawio` row in your profile's `cordis.patch.yml`:\n\n```yaml\n- id: mcp-drawio\n  config:\n    serverName: drawio\n    transport: stdio\n    command: npx\n    args: ['-y', '@next-ai-drawio/mcp-server@latest']\n    toolCallTimeoutMs: 120000\n    env:\n      DRAWIO_ALLOW_EMBED: 'true'\n      BROWSER: none\n      DRAWIO_LANG: zh\n```\n\nA row override replaces the whole `config`, so keep the other fields. `DRAWIO_ALLOW_EMBED` lets the sidebar show the preview, and `BROWSER: none` stops the server from opening a separate browser tab.\n\n## Remove\n\n```bash\ndsh plugin --profile web remove @next-ai-drawio/dsh\n```\n","readmeFilename":"README.md","homepage":"https://next-ai-drawio.jiang.jp/en/mcp","keywords":["dsh","dsh-plugin","deepseek-harness","mcp","drawio","draw.io","diagram","architecture-diagram","flowchart"],"repository":{"url":"git+https://github.com/DayuanJiang/next-ai-draw-io.git","type":"git","directory":"packages/dsh-plugin"},"author":{"name":"DayuanJiang"},"bugs":{"url":"https://github.com/DayuanJiang/next-ai-draw-io/issues"},"license":"Apache-2.0"}