dsh-artifact-studio 0.0.0-stage → 0.2.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Parth Patel
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,42 @@
1
- # Temporary Holding Version
1
+ # Artifacts for DeepSeek Harness
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The agent creates pages and documents as versioned files, and you open them beside the chat. It works offline with no account and no hosted service.
4
+
5
+ ## What it does
6
+
7
+ - Eight agent tools and one bundled skill: `artifact_create`, `artifact_read`, `artifact_update`, `artifact_list`, `artifact_delete`, `artifact_export`, `design_system_read`, and `design_system_update`.
8
+ - Two artifact types. A page is a self-contained HTML document rendered in a sandboxed frame with no network. A doc is Markdown edited in a Tiptap rich-text editor.
9
+ - Two storage scopes. Workspace artifacts live in `$DSH_HOME/artifacts/workspaces/<workspaceId>/`, keyed by the registered workspace, so the project folder stays clean. Library artifacts live in `$DSH_HOME/artifacts/v1/`, and every project can see them.
10
+ - Every save creates a version. You can preview an older version and restore it, which adds a new version.
11
+ - A save is refused when someone else saved first, so neither the agent nor you can silently overwrite the other.
12
+ - Pages export as HTML. Docs export as Markdown, Word, or HTML. You can print either type or save it as a PDF from the print dialog.
13
+ - A design system reaches pages as `--artifact-*` CSS variables. It has a library default and an optional project override.
14
+ - The left sidebar opens the Artifacts page with a project selector. Artifacts open as tabs beside the chat. Back preserves gallery search, filters, paging, and scroll.
15
+ - A bundled `artifact-design` skill gives the agent design rules, and page writes return warnings for network URLs, browser storage, fixed widths over 960 pixels, and pages that ignore the design tokens.
16
+ - The interface uses the Harness's own components and follows its light and dark theme. A page follows dark mode when it declares `<meta name="color-scheme" content="light dark">`.
17
+ - Reload and Back ask whether to save, discard, or cancel when edits are pending. Multiple views share a draft and serialize saves. Draft recovery stays in window memory until saved or discarded. It does not survive a browser restart.
18
+ - Export saves current edits first and uses that exact version. History exports and prints the selected saved version. A failed save stops output.
19
+ - Edit with agent saves pending edits, then puts your selection and a reference to the artifact and its saved version into this conversation's message box. You finish the sentence and send it. Selections work in documents, in the page preview, and in page code. The full Artifacts page has no conversation, so it copies the same text.
20
+ - The gallery shows page covers and document excerpts, a pinned group, and one recently updated grid. An empty project offers starter prompts. The header version picker lists versions and opens History.
21
+ - When the agent publishes a newer version, an open clean tab reloads and names the new version. A dirty tab keeps its conflict bar instead.
22
+ - Documents render on a page styled by the design tokens, so the editor matches the export. Formatting controls appear over a selection. Page code opens read-only with highlighting; Edit code switches to the editor, which saves with Save or Ctrl/Cmd+S. Documents autosave after typing.
23
+ - The chat shows a card for each create and update, and opens the artifact when the agent writes it in a live turn. The composer button lists this project's recent artifacts, starter prompts, and All artifacts.
24
+
25
+ ## Install
26
+
27
+ The npm package name is `dsh-artifact-studio`. Add it to the current DSH profile with the plugin manager, then reload the window.
28
+
29
+ ```bash
30
+ dsh plugin --profile web add dsh-artifact-studio
31
+ ```
32
+
33
+ For a local checkout, install the bundle at `/home/parth/Production/dsh-artifacts` instead.
34
+
35
+ ## Develop
36
+
37
+ ```bash
38
+ npm run typecheck # host and client
39
+ npm test # build, then host, client, and package tests
40
+ ```
41
+
42
+ Sources are TypeScript in `src/`. `npm run build` compiles the host into `dist/` and bundles `client.js` plus the lazy `client.doc.js`. Do not edit the built files.