Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .dsh-version.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
],
"comment_platforms": "The plugins are plain JavaScript and platform-neutral; the only OS-specific code is a launcher choosing the right command for the host: dsh-open-in-app's file-browser launcher (explorer.exe / open / xdg-open, WSL-aware), the run launcher's browser hand-off (Chrome on PATH / the standard install folders / the App Paths registry entry, 'open -a Google Chrome', google-chrome or chromium, else the platform default). The launchers run on Windows (install.bat / uninstall.bat, PowerShell 5.1 or 7, and the run launcher: the double-clickable batch run-web.bat at the root plus its worker scripts/run-web.ps1, because cmd's for /f reads a child's output only up to EOF and cannot watch a running harness) and on macOS/Linux (install.sh / uninstall.sh / run-web.sh, POSIX sh - never PowerShell). The run launcher is run-web.bat + run-web.sh at the repo root, and run-web.sh does the whole job itself. The ready URL reaches the browser as ONE ARGV ELEMENT - Start-Process -ArgumentList on Windows, an argument of open/xdg-open on macOS/Linux - never through a command string.",
"packages": {
"dsh-tables": {
"version": "0.1.0-alpha.1",
"rows": [
"tables"
],
"role": "Tables a paper can print: one JSON spec (grouped headers, row spans, column spans, tinted bands, best-value emphasis, maths) compiled to LaTeX booktabs, Markdown, DOCX and CSV, plus a PNG of the LaTeX actually setting. Two tools (table_write / table_read), one skill, a three-table reference corpus. Host-only, zero dependencies, no TeX package installed on demand. See packages/dsh-tables/README.md."
},
"dsh-vn-master": {
"version": "0.1.0-alpha.3",
"rows": [
Expand Down
1 change: 1 addition & 0 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ disable/replace a core row **in its own layer** — a later layer wins per row.
| `dsh-video` | `video` | video player tab; the bytes stay on the host and stream through a Range route |
| `dsh-media` | `media` | the pack's ffmpeg owner: `media_probe` / `media_run` / `media_frames`, the Range file route, remux jobs |
| `dsh-supercollider` | `supercollider` | SuperCollider the agent can play: ten `sc_*` tools over one warm `sclang` session (~31 ms a call, state kept) and a hand-written OSC client to `scsynth`, the installed `.schelp` reference indexed for `sc_help`, the `.scd` file workflow, five skills whose every example is compiled by a check, and one small console tab |
| `dsh-tables` | `tables` | a table COMPILER: one JSON spec (grouped headers with DERIVED spans, row and column spans, tinted bands, best-value emphasis per column per family, maths) → LaTeX booktabs, Markdown, DOCX and CSV from one resolved grid, plus a PNG of the LaTeX actually setting. Two tools, one skill, a three-table reference corpus, a rung ladder `t0-spec` → `t4-drawn`. Host-only: no route, no browser half |
| `dsh-diagrams` | `diagrams` | Mermaid + TikZ + the vendored **Diagram Design** kit (204 examples, 44 documented types) + a **figure compiler** (`kind:"figure"`: a JSON spec measured, laid out, routed and emitted as one vector figure at a paper's column width), the seven `diagram_*` tools, validated on the host, and a reference corpus of two published paper figures rebuilt in that grammar |
| `dsh-shaders` | `shaders` | GLSL that **compiles for real**: seven `shader_*` tools over a disposable headless browser (ANGLE/SwiftShader, argv-only, `MAP * ~NOTFOUND`), a rung ladder that is always stated (`v1-static` → `v2-compiled` → `v3-drawn` → `v4-measured`), diagnostics mapped onto the author's own line numbers, five dialects kept apart (es100, es300, shadertoy, shader-skills, and desktop GLSL, which is **refused** rather than faked), emit for web / `.frag` / ISF / FFGL-scaffold / Shadertoy, a Shaders tab with a live WebGL preview and `@param` sliders, five skills whose every example a check compiles, and three vendored corpora (106 Radiant pages with 79 extracted fragments, shader-skills' 20 modules + 11 templates + 11 pieces, and a 48-link curated index) that each re-derive offline |
| `dsh-frontend-craft` | `frontend-craft` | front-end design craft: Impeccable's Apache-2.0 corpus (24 commands, 41 references) vendored at a pinned commit, its 61-rule detector built to a 4.5 MB WebAssembly module shipped in the package, `fe_context` / `fe_detect` / `fe_direction` / `fe_render` / `fe_artifact`, and a **Frontend** tab of findings, artifacts, directions and rendered previews. No network, no install, no engine download |
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

</div>

![vncode: the plugin pack, a Node application - the vncode README header](./assets/vncode-banner6.png)
![vncode: the plugin pack, a Node application - the vncode README header](./assets/vncode-banner7.png)

Cross-platform Node ADE with core [DSH](https://www.deepseek.com/harness/en/) for professional Engineering and Design: every plugin is **Node.js** (plain JavaScript bundles, zero npm dependencies), and so is every launcher - there is no native code in this repository and nothing to compile. The launchers run on **Windows, macOS and Linux**.

Expand Down Expand Up @@ -61,7 +61,7 @@ way and what it touches. The exact versions are in
| [`dsh-cmdbar`](packages/dsh-cmdbar/README.md) | The command bar: the agent's own commands in a bottom dock, as a read-only transcript of the conversation log. It follows whichever conversation is on screen. |
| [`dsh-comfyui`](packages/dsh-comfyui/README.md) | ComfyUI as a surface the agent can build against: seven `comfy_*` tools turn a small readable project spec into the canvas the app opens and the prompt `/prompt` accepts, validate it against the server's own `/object_info` with ComfyUI's own error types, and report what a run produced. Every answer names the rung it reached (`v1-structural` to `v4-executed`), so a graph that compiles is never called one that runs, and with no server it still checks the files on disk and names a missing checkpoint beside the nearest one. `comfy_cli` drives comfy-cli as a second, independent path, and six skills teach the fundamentals, the two workflow formats and how to write a node class. |
| [`dsh-deckcraft`](packages/dsh-deckcraft/README.md) | Slides from the chat: four `deck_*` tools over the DeckCraft CLI (MIT OR Apache-2.0). `deck_commands` lists the command ids the build offers, `deck_run` saves a `.deckcraft` in the workspace, `deck_export` renders the slides to PNG so you can look at them. Nothing is hardcoded: DeckCraft's "every button is a command" contract is the API. |
| [`dsh-diagrams`](packages/dsh-diagrams/README.md) | Mermaid, TikZ and the Diagram Design kit as tabs and as seven `diagram_*` tools. The kit 204 examples and 44 documented types are vendored at a pinned commit and browsable on the index page. Every write, including a self-contained HTML document, is validated before it is stored. |
| [`dsh-diagrams`](packages/dsh-diagrams/README.md) | Mermaid, TikZ and the Diagram Design kit as tabs and as seven `diagram_*` tools. The kit 204 examples and 44 documented types are vendored at a pinned commit and browsable on the index page. Every write, including a self-contained HTML document, is validated before it is stored. A fourth kind, `figure`, goes further: a JSON spec is measured, laid out and routed on the host into one vector figure at a paper's column width, and `reference/figures/` rebuilds two published figures as its benchmark. |
| [`dsh-docker`](packages/dsh-docker/README.md) | Docker or Podman as a surface: nine `docker_*` tools over the machine's own CLI, argv-only, with every removal confirmed by repeating the target. `docker_start` launches Docker Desktop or a podman machine and waits for the **daemon**. A Docker tab lists containers and images with their logs, and there is no `exec`, no `system prune` and no free-form `run`. |
| [`dsh-editor`](packages/dsh-editor/README.md) | Text and code tabs over a vendored CodeMirror 6, with save/create and a Markdown preview. The preview exports the file as a PDF on the Desktop (the browser on the machine does the printing). Every extension is mapped through a guard, so an older engine opens the document unhighlighted instead of killing the tab. It also backs the `.scd`, diagram-source and research-document editors. |
| [`dsh-frontend-craft`](packages/dsh-frontend-craft/README.md) | Front-end design craft: Impeccable's Apache-2.0 corpus vendored at a pinned commit, plus its 61-rule detector built to WebAssembly inside the package. Five `fe_*` tools include `fe_render`, which renders a page in headless Chrome or Edge and measures contrast, tap targets and overflow. There is no `npx impeccable`, no engine download and no network. A Frontend tab shows findings, artifacts and the direction round. |
Expand All @@ -86,6 +86,7 @@ way and what it touches. The exact versions are in
| [`dsh-skills`](packages/dsh-skills/README.md) | The Skills browser: a header button opens every skill this conversation loads, with its markdown and inline editing. It reads the same registry the agent does, so what you see is what is in effect. |
| [`dsh-sql-server`](packages/dsh-sql-server/README.md) | Seven `sql_*` tools over a container this row owns or the `sqlcmd` already on PATH. It keeps apart the four facts that fail independently: a server, a client, a listening port and the machine-wide ODBC driver. `sql_server start` waits until the server answers a statement, and `sql_script` loads a dump with BOM-aware code pages. |
| [`dsh-supercollider`](packages/dsh-supercollider/README.md) | SuperCollider the agent can play: eleven `sc_*` tools over one warm `sclang` session (about 31 ms a call, with state kept) and a hand-written OSC client to `scsynth`. The installed `.schelp` reference is indexed for `sc_help`, and the `.scd` workflow opens in the editor. Five skills teach the language, SynthDefs and live coding, and every example in them is compiled by a check. |
| [`dsh-tables`](packages/dsh-tables/README.md) | Tables a paper can print: one JSON spec (grouped headers with derived spans, row and column spans, tinted bands, best-value emphasis per column per family, maths) compiles to LaTeX booktabs, Markdown, DOCX and CSV from one resolved grid, plus a PNG of the LaTeX actually setting. `table_write` states the rung it reached (`t0-spec` to `t4-drawn`), and `reference/tables/` rebuilds three published tables as its benchmark. |
| [`dsh-themes`](packages/dsh-themes/README.md) | Header controls for themes (Nord, Monokai, Hacker, Cyber), screenshot and page zoom, the Markdown paper and the pack branding, the app-wide scrollbars (16px on both axes), and the left band's row of Settings, Plugins, Media, Skills, Feedback and Sign in. It also hides the shipped account-menu Feedback row, whose door the band now carries. |
| [`dsh-ui-state`](packages/dsh-ui-state/README.md) | The pack's own UI state, remembered host-side: zoom, theme, dock and column widths. It outlives the process, so a restart keeps the layout you left. |
| [`dsh-video`](packages/dsh-video/README.md) | A player tab that streams and seeks any container the browser can decode. An ffprobe facts panel names codec, size and frame rate, and one click remuxes when the browser cannot decode it. |
Expand Down
Binary file added assets/vncode-banner7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 80 additions & 0 deletions packages/dsh-tables/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# dsh-tables (alpha.1)

**A table compiler: one JSON spec, four artifacts, and a PNG of the LaTeX actually
setting.** Grouped headers, row and column spans, tinted bands, best-value emphasis
and maths are described once; LaTeX, Markdown, DOCX and CSV are all derived from the
same resolved grid, so they cannot disagree about a number or about a winner.

Host-only, zero dependencies, no TeX package installed on demand: the one child
process is the `pdflatex` (and `pdftoppm`) the machine already has.

## What it adds

- **Two tools.** `table_write` takes a spec, resolves the grid, typesets every
format and writes them beside the spec in `tables/<id>/`, stating the rung it
reached. `table_read` lists the tables in the workspace or returns one's spec and
build receipt.
- **One skill**, `paper-tables`: the spec, the four facts that make a table, the
rung ladder, and what each output format cannot do.
- **Five artifacts per table**: `spec.json`, `table.tex` (booktabs),
`table.md` (GFM), `table.csv` (data, merged values repeated), `table.docx` (a real
OOXML table with `gridSpan`, `vMerge`, shading and horizontal rules), and
`table.png` — page 1 of the compiled PDF at 200 dpi, which is what the model
looks at.

## The spec, in one line each

| part | it says |
|---|---|
| `table` | id, caption, label, style, body size, notes |
| `columns` | key, title, `group` (the header span), alignment, `best: max\|min`, `digits` |
| `groups` | the row bands: a `title` (section row) and/or `band: true` (tinted rows) |
| `rows` | `cells` by column key, `group`, `emphasis: "total"`, `span`, `rowSpan` |

**Header spans are derived** from `column.group`, never written by hand — a
hand-written `\multicolumn{6}` is the way a table silently loses a column when
someone adds one. **Best marks are computed per column per row group**, because a
2B family and an 8B family are separate races.

## The rungs

`t0-spec` (JSON resolved) → `t1-grid` (every row covers the header) → `t2-data`
(numbers formatted, winners resolved) → `t3-typeset` (`pdflatex` compiled it) →
`t4-drawn` (a PNG exists). A table at `t2-data` has never been SET, and the answer
says so rather than implying it is verified.

## The reference corpus

Three published tables, rebuilt from their structure, in `reference/tables/`:
`vqa-results` (two header levels, four family bands, best-per-family bolding),
`dataset-summary` (row spans over prose blocks, alternating bands) and
`implementation-details` (column spans in the body, maths in cells). Each carries a
target, `SOURCE.md`, `anatomy.md`, `spec.json`, `rubric.json` and its built
artifacts. `reference/THIRD-PARTY.md` records each target's licence and sha256, and
deleting a target degrades the check to its structural tier instead of breaking it.

## Limits

- **One line per cell in LaTeX.** This host's `colortbl` refuses paragraph columns
(`p{}`), and a band matters more than a wrap, so a cell that must wrap gets its
own row. Word wraps on its own.
- **DOCX has no maths.** A `$…$` cell is written as plain text and the result says
the DOCX degraded; a silently wrong formula would be worse.
- **No table editor, no spreadsheet import**, and nothing reads the network.
- **The preview is the tabular**, not the float: no caption, no notes in the PNG —
a standalone page sizes to its widest line, and one caption would frame a 12 cm
table in a 40 cm page.
- **One table per file.** Assembling several into a document is `dsh-research`'s
job, not this row's.

## Verify

```sh
node packages/dsh-tables/checks/check-tables-node.mjs
```

91 checks: every corpus table builds, is byte-identical twice, its committed
artifacts do not drift, every rubric row is traced to a count or a string in the
real output, the DOCX is re-read from its ZIP, both tools run through a temp
workspace, and — where `pdflatex` is installed — the table compiles to one page and
is rasterised.
Loading