dsh-claude-design 2.9.2 → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-claude-design",
3
- "version": "2.9.2",
3
+ "version": "2.10.0",
4
4
  "description": "DeepSeek Harness plugin: the claude-design skill from baoyu-design. The agent writes canvases of artboards as files and opens them in a local canvas editor.",
5
5
  "keywords": [
6
6
  "dsh",
@@ -24,7 +24,6 @@
24
24
  "icon": "./icon.svg",
25
25
  "exports": {
26
26
  ".": "./lib/index.js",
27
- "./client": "./lib/client.js",
28
27
  "./cordis.patch.yml": "./cordis.patch.yml",
29
28
  "./locale/*.json": "./locale/*.json",
30
29
  "./package.json": "./package.json"
@@ -44,25 +43,12 @@
44
43
  "node": ">=20",
45
44
  "dsh": ">=0.2.0-0"
46
45
  },
46
+ "dependencies": {
47
+ "dsh-claude-artifacts": "^2.10.0"
48
+ },
47
49
  "dsh": {
48
50
  "bundle": {
49
51
  "patch": "./cordis.patch.yml"
50
- },
51
- "client": {
52
- "platform": "web",
53
- "inject": [
54
- "@deepseek-ai/dsh-api-session-controller",
55
- "@deepseek-ai/dsh-api-workspace-controller",
56
- "@deepseek-ai/dsh-client-connection",
57
- "@deepseek-ai/dsh-client-locale",
58
- "@deepseek-ai/dsh-client-ui-chat",
59
- "@deepseek-ai/dsh-client-ui-conversation",
60
- "@deepseek-ai/dsh-client-ui-layout",
61
- "@deepseek-ai/dsh-client-ui-renderer",
62
- "@deepseek-ai/dsh-client-ui-sidebar",
63
- "@deepseek-ai/dsh-client-ui-sidebar-right",
64
- "@deepseek-ai/dsh-client-ui-workspace"
65
- ]
66
52
  }
67
53
  }
68
54
  }
@@ -65,7 +65,7 @@ leave alone stays as it is, and removing an artboard's file is deleting it. The
65
65
  - `open <root>` → `{url, pid, stop, …}`: starts the editor page on this machine in the background (once; later calls reuse it, `reused: true`) and prints its address, `http://127.0.0.1:4720/design/<id>/`. All the canvases open on this computer share one server and port (4720, the next free port up when that is taken; `--port n` looks for it at n and starts from n, `--port 0` runs a server of its own on any port), each at its own path, which stays the same from one start to the next. `stop <root>` takes this one off, and the server ends with the last (`serve <root>` runs it in the foreground instead). The page saves the user's edits into the same files, and shows yours as soon as you write them. `.artifact-server.json` and `.artifact-server.log` beside `project/` are its own: leave them; so is `comments.json` (the comments, see Comments), which only the comment commands below change.
66
66
  `NETWORK_BLOCKED` from `open` means your commands run in a sandbox without local network. Run `open`, `share` and `comments <root> --wait` with local network allowed, outside the sandbox, asking for that permission if your commands need approval; in the sandbox `comments --wait` says `NO_SERVER` even while the page is open. Commands that only read and write files work in the sandbox.
67
67
  - `share <root>` (or `open <root> --lan`): opens the page to the local network and prints a link per role (Sharing, below).
68
- - `archive <root> [--out file.zip|dir]` → `{file, files, bytes, open}`: the whole folder, history and comments too, as one zip beside it (`--out`: another file or folder), to back it up, move it to another computer or send it to someone; unzipped anywhere, `open` carries on. The owner's Download folder button in the page (between History and Share) does the same. The server's own files and the share links stay out.
68
+ - `archive <root> [--out file.zip|dir]` → `{file, files, bytes, open}`: the whole folder, history and comments too, as one zip beside it (`--out`: another file or folder), to back it up, move it to another computer or send it to someone; unzipped anywhere, `open` carries on. The owner's Download folder button in the page (between History and Share) does the same. The server's own files, the share links, `exports/` and `.git` stay out.
69
69
  - The Theme tab links to a read-only page of the system in use, `<editor>/__ds/<folder>/`: the copy under `project/ds/<folder>/` as this canvas carries it (its tokens, its components with their `README.md` and types, its `README.md`). Anyone who can open the canvas can open it, and it changes only when the copy does.
70
70
 
71
71
  ## One artboard: the skeleton
@@ -193,10 +193,10 @@ The server keeps the canvas's versions in `<root>/history/` (leave it): who chan
193
193
 
194
194
  `open` writes `<root>/.gitignore` when the folder has none. It leaves out what only this computer's server needs:
195
195
  `.artifact-server.json`, `.artifact-server.log`, `.sharing.json` (the share links), `history/` (the versions; git
196
- keeps its own), save temp files and `.DS_Store`. Everything else, `project/` and `comments.json` included, is the
196
+ keeps its own), `exports/` (saved downloads and renders), save temp files and `.DS_Store`. Everything else, `project/` and `comments.json` included, is the
197
197
  canvas and goes in git. A `.gitignore` already there is the person's: leave it. Moving or backing up the canvas is
198
198
  copying or cloning the folder (`archive` puts it,
199
- history included, in one zip); `open` there starts it again.
199
+ history included and `.git` not, in one zip); `open` there starts it again.
200
200
 
201
201
  Commit, push or set up git only when asked. Asked to check the canvas before each commit: write
202
202
  `.git/hooks/pre-commit` (and `chmod +x` it) in the repository that holds `<root>`, with this skill's folder as an
@@ -2748,7 +2748,7 @@ import { promisify } from "node:util";
2748
2748
  import zlib from "node:zlib";
2749
2749
  var LOCAL_FILES = /* @__PURE__ */ new Set([STATE_FILE, LOG_FILE, SHARING_FILE]);
2750
2750
  var LOCAL_DIRS = /* @__PURE__ */ new Set([EXPORTS_DIR]);
2751
- var JUNK_FILES = /* @__PURE__ */ new Set([".DS_Store", "Thumbs.db", "desktop.ini"]);
2751
+ var JUNK_FILES = /* @__PURE__ */ new Set([".DS_Store", "Thumbs.db", "desktop.ini", ".git"]);
2752
2752
  var isTemp = (name) => name.endsWith(".tmp") || name.startsWith(".tmp-");
2753
2753
  var STORED = /* @__PURE__ */ new Set([".png", ".jpg", ".jpeg", ".gif", ".webp", ".avif", ".heic", ".mp4", ".m4v", ".mov", ".webm", ".mp3", ".m4a", ".aac", ".ogg", ".opus", ".flac", ".woff", ".woff2", ".zip", ".gz", ".br", ".zst", ".7z"]);
2754
2754
  var MAX_ENTRIES = 65535;