Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
44425f3
Bump the npm group across 1 directory with 24 updates
dependabot[bot] Jul 9, 2026
391bc5b
Bump postcss from 8.5.16 to 8.5.26
dependabot[bot] Aug 12, 2026
d5d56b1
Bump @humanfs/node from 0.16.7 to 0.16.8
dependabot[bot] Sep 3, 2026
c740430
Bump nanoid from 3.3.15 to 3.3.18
dependabot[bot] Sep 6, 2026
2d22624
Bump vitest from 4.1.10 to 4.1.11
dependabot[bot] Sep 9, 2026
6c4ba53
Bump js-yaml
dependabot[bot] Sep 13, 2026
dba0d3c
Bump brace-expansion from 1.1.14 to 1.1.21
dependabot[bot] Oct 4, 2026
824a976
Bump shell-quote and concurrently
dependabot[bot] Oct 14, 2026
10f5fcb
Bump liquidjs from 10.27.0 to 10.30.0
dependabot[bot] Oct 15, 2026
87b23e3
Bump source-map-js from 1.2.1 to 1.2.2
dependabot[bot] Oct 18, 2026
63369e9
Bump markdown-it from 14.3.0 to 14.3.3
dependabot[bot] Oct 22, 2026
866b3bd
Bump vite from 8.1.4 to 8.3.5
dependabot[bot] Oct 23, 2026
725906d
chore: remove trailing newline from .mcp.json
MelbourneDeveloper Nov 3, 2026
847f6a2
docs(spec): prove typeDiagram expresses every ADT and check it with t…
MelbourneDeveloper Nov 15, 2026
4f2bb38
docs(proofs): explain why the ADT completeness proof matters
MelbourneDeveloper Nov 15, 2026
f5e92f4
feat(converters): add Swift and Osprey converters, shared layout help…
MelbourneDeveloper Nov 16, 2026
51c5d3a
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/brace-ex…
MelbourneDeveloper Nov 16, 2026
80f5520
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/humanfs/…
MelbourneDeveloper Nov 16, 2026
795d097
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/liquidjs…
MelbourneDeveloper Nov 16, 2026
36443e8
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/markdown…
MelbourneDeveloper Nov 16, 2026
87eb4ea
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/multi-c5…
MelbourneDeveloper Nov 16, 2026
381230c
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/multi-cc…
MelbourneDeveloper Nov 16, 2026
a013947
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/nanoid-3…
MelbourneDeveloper Nov 16, 2026
f5042e3
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/npm-366d…
MelbourneDeveloper Nov 16, 2026
8c32092
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/postcss-…
MelbourneDeveloper Nov 16, 2026
52ce842
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/source-m…
MelbourneDeveloper Nov 16, 2026
75a419e
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/vite-8.3…
MelbourneDeveloper Nov 16, 2026
e45140a
Merge remote-tracking branch 'origin/dependabot/npm_and_yarn/vitest-4…
MelbourneDeveloper Nov 16, 2026
e5d641f
chore(deps): merge dependabot upgrades, align vitest 4.1.12, regenera…
MelbourneDeveloper Nov 16, 2026
ddd8cfc
feat(tdbin): generated TS codecs pin Rust-identical layoutHash; decod…
MelbourneDeveloper Nov 16, 2026
ea2c2f2
feat(tdbin): generated TS modules import only typediagram-core/tdbin;…
MelbourneDeveloper Nov 16, 2026
c4cb83d
fix(tdbin): encode struct-form and multi-field tuple union variants (…
MelbourneDeveloper Nov 16, 2026
5c3d494
chore: tidy repo root β€” schemas under docs/schemas, design svg under …
MelbourneDeveloper Nov 16, 2026
3c3bcf5
fix(rust): lint-clean --to rust β€” derives, snake_case fields with ser…
MelbourneDeveloper Nov 16, 2026
26e1715
feat(cli): typediagram encode|verify --to typescript for TDBIN codecs…
MelbourneDeveloper Nov 16, 2026
4b2f7af
feat(tdbin): TS codec supports every layout-1 List<T>; Rust↔TS golden…
MelbourneDeveloper Nov 16, 2026
1b5e57b
feat(cli): tdbin codecs as --config outputs, regenerated with types u…
MelbourneDeveloper Nov 16, 2026
d9b82d2
fix(dart): import named record typedefs as records; fail loudly on fu…
MelbourneDeveloper Nov 16, 2026
9fd403e
feat(tdbin): publish the tdbin crate to crates.io on release (#60)
MelbourneDeveloper Nov 16, 2026
8206d60
style: prettier docs/specs/adt-completeness.md
MelbourneDeveloper Nov 16, 2026
de9ccec
feat(model): width-refined integers I32/U8/U16/U32/U64/Size and Path …
MelbourneDeveloper Nov 16, 2026
5f5ae4d
feat(tdbin): Rust width-refined integers and Path β€” range-checked sca…
MelbourneDeveloper Nov 16, 2026
1067ca4
feat(tdbin): TS width-refined integers + Path with Rust golden byte i…
MelbourneDeveloper Nov 16, 2026
d7b7638
chore: move all code under src/ (typediagram, cli, web, vscode, tdbin…
MelbourneDeveloper Nov 16, 2026
7068620
fix: repair paths broken by the src/ move
MelbourneDeveloper Nov 16, 2026
30c657c
chore(ci): bundle budget 96 KB for width-refined integers + Path (#85)
MelbourneDeveloper Nov 16, 2026
b476a83
fix(editor): keep uncommitted inspector text across async re-renders
MelbourneDeveloper Nov 16, 2026
534b4f8
fix(tdbin): positional codec locals so field names never shadow codec…
MelbourneDeveloper Nov 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 6 additions & 6 deletions .claude/skills/upgrade-packages/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ argument-hint: "[--check-only] [--major] [package-name]"

Upgrade all project dependencies to their latest compatible (or latest major, if `--major`) versions.

This repo is a TypeScript/Node monorepo with `package.json` + `package-lock.json` at the root managing the `packages/typediagram`, `packages/cli`, `packages/vscode`, and `packages/web` workspaces. The package manager is **npm**.
This repo is a TypeScript/Node monorepo with `package.json` + `package-lock.json` at the root managing the `src/typediagram`, `src/cli`, `src/vscode`, and `src/web` workspaces. The package manager is **npm**.

## Arguments

Expand All @@ -23,7 +23,7 @@ This repo is a TypeScript/Node monorepo with `package.json` + `package-lock.json
Confirm the expected manifests exist. For this repo:

- Root: `package.json`, `package-lock.json`
- Workspaces: `packages/*/package.json`
- Workspaces: `src/*/package.json`

If any of these are missing or the lockfile type has changed (e.g. a `yarn.lock` or `pnpm-lock.yaml` has appeared), STOP and tell the user before proceeding β€” the commands below assume npm.

Expand All @@ -38,10 +38,10 @@ npm outdated
Also check each workspace individually if the root output groups them together confusingly:

```bash
npm outdated --workspace=packages/typediagram
npm outdated --workspace=packages/cli
npm outdated --workspace=packages/vscode
npm outdated --workspace=packages/web
npm outdated --workspace=src/typediagram
npm outdated --workspace=src/cli
npm outdated --workspace=src/vscode
npm outdated --workspace=src/web
```

**Read the docs:** https://docs.npmjs.com/cli/v10/commands/npm-update
Expand Down
4 changes: 2 additions & 2 deletions .claude/skills/website-audit/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ If the repo has a business plan doc, take it into account

Identify the website source files in the repo. Determine the framework (static site generator, Next.js, Hugo, etc.) so you know where to find templates, metadata, and content.

For typeDiagram: the website lives in `packages/web/` and is built with Eleventy (11ty). Edit templates/content in that package β€” never the generated output under `packages/web/.eleventy-out/`.
For typeDiagram: the website lives in `src/web/` and is built with Eleventy (11ty). Edit templates/content in that package β€” never the generated output under `src/web/.eleventy-out/`.

## Step 2 β€” Audit AI search readiness

Expand Down Expand Up @@ -146,7 +146,7 @@ Read the design system docs and view the design screens in the designsystem fold

## Step 11 β€” Test with Playwright

Build and run the website locally using the project's dev server command (e.g. `npm run -w packages/web dev`).
Build and run the website locally using the project's dev server command (e.g. `npm run -w src/web dev`).

**Desktop tests (1280x720):**

Expand Down
4 changes: 2 additions & 2 deletions .deslop.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
# source, and never authored tests. node_modules/target/build are already
# default-excluded; dist + coverage are this repo's generated-output dirs.
# The `generated_*/mod.rs` fixtures are codegen output of
# `packages/typediagram/src/converters/rust-tdbin.ts` (regenerated via
# `scripts/tdbin-regen-fixtures.mjs`, pinned by rust-tdbin-corpus.test.ts). Their
# `src/typediagram/src/converters/rust-tdbin.ts` (regenerated via
# `src/scripts/tdbin/tdbin-regen-fixtures.mjs`, pinned by rust-tdbin-corpus.test.ts). Their
# structural repetition is emitted by the generator, not hand-written, so it is not
# authored duplication and does not belong in the budget β€” the fix for any real
# repetition there is in the generator, gated by the codegen pin test.
Expand Down
File renamed without changes.
File renamed without changes.
7 changes: 3 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ updates:
github-actions:
patterns: ["*"]

# npm / Node β€” package.json (root workspaces + packages/*)
# npm / Node β€” package.json (root workspaces + src/*)
- package-ecosystem: npm
directory: /
target-branch: "dependabot-upgrades"
Expand All @@ -49,10 +49,9 @@ updates:
applies-to: security-updates
patterns: ["*"]

# Cargo / Rust β€” the incoming Rust workspace (crates/*). Active once a crate with
# dependencies lands; harmless before then.
# Cargo / Rust β€” the Rust workspace rooted at src/Cargo.toml.
- package-ecosystem: cargo
directory: /
directory: /src
target-branch: "dependabot-upgrades"
schedule:
interval: weekly
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
# lightweight build + lint + web-unit check instead. The single `CI` job
# always runs and reports, so it stays valid as a required status check
# (path filters that skip the job would leave it pending forever).
# "Web scope" = every changed path is under packages/web/, docs/, or is a
# "Web scope" = every changed path is under src/web/, docs/, or is a
# *.md file; anything else (framework/cli/vscode src, Makefile, configs,
# workflows) forces the full pipeline.
- name: Detect change scope
Expand All @@ -50,7 +50,7 @@ jobs:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: |
ALLOW='(^packages/web/)|(^docs/)|(\.md$)'
ALLOW='(^src/web/)|(^docs/)|(\.md$)'
CHANGED="$(git diff --name-only "$BASE_SHA...$HEAD_SHA")"
echo "Changed files:"
echo "$CHANGED"
Expand All @@ -75,7 +75,7 @@ jobs:
- name: Install dependencies
run: npm ci

# [CI-RUST-TOOLCHAIN] The Makefile wires the Rust `crates/` workspace into
# [CI-RUST-TOOLCHAIN] The Makefile wires the Rust `src/` workspace into
# make test/lint/fmt (cargo test --workspace, cargo clippy -D warnings,
# cargo fmt --check). Both CI scopes reach cargo: full scope via `make ci`,
# web scope via `make lint` + `make _fmt_check`. Install/pin stable with the
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
npm run -w @typediagram/web build

# ───────────────────────── Full scope ───────────────────────────
# Playwright needs chromium for the packages/web E2E tests. --with-deps
# Playwright needs chromium for the src/web E2E tests. --with-deps
# ensures required OS libraries are present on ubuntu-latest.
- name: Install Playwright browsers
if: steps.scope.outputs.scope == 'full'
Expand All @@ -137,10 +137,10 @@ jobs:
- name: Shipwright acceptance gates
if: steps.scope.outputs.scope == 'full'
run: |
npx --yes @nimblesite/shipwright-validate-manifest@0.9.0 --schema schemas/shipwright.schema.json shipwright.json
npx --yes @nimblesite/shipwright-validate-manifest@0.9.0 --schema .github/schemas/shipwright.schema.json shipwright.json
npm run -w typediagram build
node packages/cli/dist/bin.js --version
node packages/cli/dist/bin.js --version --json
node src/cli/dist/bin.js --version
node src/cli/dist/bin.js --version --json

- name: Upload coverage
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
Expand All @@ -149,5 +149,5 @@ jobs:
name: coverage-report
path: |
coverage/
packages/*/coverage/
src/*/coverage/
retention-days: 7
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ name: CodeQL
# Never add security-rule linter plugins that re-cover CodeQL: no doubling up.
#
# Matrix = (languages in this repo) ∩ (CodeQL-supported at skill-run time):
# javascript-typescript β€” the packages/* monorepo (core, cli, web, vscode)
# rust β€” the incoming crates/* workspace (build-mode: none)
# javascript-typescript β€” the src/* monorepo (core, cli, web, vscode)
# rust β€” the src/Cargo.toml workspace (build-mode: none)
# actions β€” always, scans the workflow files themselves
# Action SHAs are kept current by the github-actions Dependabot group.
on:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:

- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: packages/web/dist
path: src/web/dist

deploy:
needs: build
Expand Down
34 changes: 24 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Release

# [SWR-REL-WORKFLOW] Tag-triggered only. Builds the EXACT tagged SHA; the version is
# stamped in the runner working tree by scripts/stamp-version.mjs and never committed
# stamped in the runner working tree by src/scripts/stamp-version.mjs and never committed
# or pushed back ([SWR-VERSION-BUILD-STAMPING]). Deploy the website manually via
# deploy-pages.yml after a green Release.
on:
Expand Down Expand Up @@ -68,9 +68,9 @@ jobs:
echo "npm_tag=$NPM_TAG" >> "$GITHUB_OUTPUT"

# [SWR-VERSION-BUILD-STAMPING] First-class stamper β€” covered by
# packages/cli/test/stamp-version.e2e.test.ts. Runner working tree only.
# src/cli/test/stamp-version.e2e.test.ts. Runner working tree only.
- name: Stamp version in all carriers
run: node scripts/stamp-version.mjs --version "${{ steps.derive.outputs.version }}"
run: node src/scripts/stamp-version.mjs --version "${{ steps.derive.outputs.version }}"

- run: npm install --package-lock-only

Expand All @@ -91,11 +91,11 @@ jobs:
# [SWR-GATE-CI] [SWR-GATE-VERIFY-BINARIES] manifest + version contract gates.
- name: Shipwright acceptance gates
run: |
npx --yes @nimblesite/shipwright-validate-manifest@0.9.0 --schema schemas/shipwright.schema.json shipwright.json
npx --yes @nimblesite/shipwright-validate-manifest@0.9.0 --schema .github/schemas/shipwright.schema.json shipwright.json
V="${{ steps.derive.outputs.version }}"
OUT="$(node packages/cli/dist/bin.js --version)"
OUT="$(node src/cli/dist/bin.js --version)"
test "$OUT" = "typediagram $V"
node packages/cli/dist/bin.js --version --json
node src/cli/dist/bin.js --version --json

# Idempotent publishes: a re-run of a partially-failed release is safe ([SWR-REL-WORKFLOW]).
- name: Publish typediagram-core
Expand All @@ -104,7 +104,7 @@ jobs:
if [ -n "$(npm view "typediagram-core@$V" version 2>/dev/null || true)" ]; then
echo "typediagram-core@$V already published β€” skipping"
else
npm publish --workspace=packages/typediagram --tag ${{ steps.derive.outputs.npm_tag }} --provenance --access public
npm publish --workspace=src/typediagram --tag ${{ steps.derive.outputs.npm_tag }} --provenance --access public
fi

- name: Publish typediagram CLI
Expand All @@ -113,7 +113,21 @@ jobs:
if [ -n "$(npm view "typediagram@$V" version 2>/dev/null || true)" ]; then
echo "typediagram@$V already published β€” skipping"
else
npm publish --workspace=packages/cli --tag ${{ steps.derive.outputs.npm_tag }} --provenance --access public
npm publish --workspace=src/cli --tag ${{ steps.derive.outputs.npm_tag }} --provenance --access public
fi

# [TDBIN-RS-PUBLISH] the Rust runtime that `typediagram encode` output
# depends on. Version comes from the stamped [workspace.package]; idempotent
# like the npm steps. Requires the CARGO_REGISTRY_TOKEN repo secret.
- name: Publish tdbin crate
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
V="${{ steps.derive.outputs.version }}"
if curl -fsS -A "typediagram-release" "https://crates.io/api/v1/src/tdbin/$V" >/dev/null 2>&1; then
echo "tdbin@$V already published β€” skipping"
else
cargo publish --manifest-path src/Cargo.toml -p tdbin --allow-dirty
fi

- name: Package VSIX
Expand All @@ -133,8 +147,8 @@ jobs:

- name: Pack npm tarballs for release assets
run: |
npm pack --workspace=packages/typediagram --pack-destination=.
npm pack --workspace=packages/cli --pack-destination=.
npm pack --workspace=src/typediagram --pack-destination=.
npm pack --workspace=src/cli --pack-destination=.

# [SWR-SEC-CHECKSUM] One SHA256SUMS over all release assets.
- name: Generate SHA256SUMS
Expand Down
18 changes: 11 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ build/
# =============================================================================
# REPO-SPECIFIC
# =============================================================================
packages/typediagram/logs/
src/typediagram/logs/
.ruff_cache/
packages/web/.eleventy-out/
packages/web/.typedoc-out/
src/web/.eleventy-out/
src/web/.typedoc-out/

# Repo-root screenshot PNGs (kept for README but not accidentally re-added elsewhere)
/*.png
dist-test-pdfs/

packages/web/test-results/
src/web/test-results/

.deslop-cache/
# Deslop report artifacts (generated by `deslop .` in the CI gate, post-`make ci`)
Expand All @@ -95,12 +95,16 @@ deslop-*.log
.vscode/code-navigator/

# =============================================================================
# RUST (workspace under crates/ β€” REPO-STANDARDS-SPEC [GITIGNORE-LANG])
# RUST (workspace under src/ β€” REPO-STANDARDS-SPEC [GITIGNORE-LANG])
# =============================================================================
/target/
/src/target/
**/*.rs.bk
# Cargo.lock IS committed on purpose β€” this workspace produces a binary (CLI).
# Do NOT add Cargo.lock here.


*.log
*.log

.deslop/
.vscode/code-navigator/
.deslop/cache/
27 changes: 17 additions & 10 deletions Claude.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Call out irrelevant context before proceeding. Bloat degrades reasoning. ⚠️

typeDiagram is a small DSL for diagramming algebraic data types (records + tagged unions). Language-neutral, no methods. Includes a parser, model, layout engine, SVG renderer, and markdown support. Ships as an npm library, CLI tool, VS Code extension, and web playground.

A **Rust workspace** under `crates/` (root `Cargo.toml`) is being introduced alongside the TypeScript monorepo. It is a multi-language repo: TypeScript config and Rust config are chained orthogonally, never merged.
A **Rust workspace** under `src/` (`src/Cargo.toml`) is being introduced alongside the TypeScript monorepo. It is a multi-language repo: TypeScript config and Rust config are chained orthogonally, never merged.

## Testing Rules

Expand Down Expand Up @@ -68,7 +68,7 @@ A **Rust workspace** under `crates/` (root `Cargo.toml`) is being introduced alo

## Hard Rules β€” Rust

Rust lives in the `crates/` workspace. Lints: `[workspace.lints]` in the root `Cargo.toml` (REPO-STANDARDS-SPEC [LINT-RUST]); formatting: `rustfmt.toml` ([LINT-RUST-FMT]).
Rust lives in the `src/` workspace. Lints: `[workspace.lints]` in `src/Cargo.toml` (REPO-STANDARDS-SPEC [LINT-RUST]); formatting: `src/rustfmt.toml` ([LINT-RUST-FMT]).

- **Every crate inherits the workspace lints** β€” add `[lints]` / `workspace = true` to its `Cargo.toml`.
- **All lints ON and at `deny`.** `unsafe_code = "deny"`; clippy `all` + `pedantic` denied.
Expand All @@ -79,7 +79,7 @@ Rust lives in the `crates/` workspace. Lints: `[workspace.lints]` in the root `C

## Duplication β€” Deslop (MANDATORY MCP loop)

Duplication is debt with a ratcheted budget in `.deslop.toml` (REPO-STANDARDS-SPEC [CI-DESLOP]); CI runs `deslop .` and fails when the repo exceeds it. Deslop scans this repo's TypeScript today and the Rust under `crates/`. Use its MCP tools:
Duplication is debt with a ratcheted budget in `.deslop.toml` (REPO-STANDARDS-SPEC [CI-DESLOP]); CI runs `deslop .` and fails when the repo exceeds it. Deslop scans this repo's TypeScript today and the Rust under `src/tdbin/`. Use its MCP tools:

- **BEFORE** authoring any function, helper, fixture, or test setup β†’ call `find-similar`. `signals.fused β‰₯ 0.85` or an `identical`/`nearly_identical` bucket β†’ REUSE the existing code, do not duplicate; `0.6 ≀ fused < 0.85` β†’ review the canonical occurrence and bias toward reuse.
- **AFTER** changing code β†’ `rescan`, then `top-offenders` / `cluster-by-id`; `report-for-file` / `report-for-range` for a file or selection; `schema-doc` once per session.
Expand All @@ -104,14 +104,16 @@ If the TMC server is available: register on start (name, intent, files), lock fi

## Packages Layout

Monorepo under `packages/`:
Monorepo under `src/`:

- `packages/typediagram/` β€” core framework (parser, model, layout, render-svg, markdown). Owned by `typediagram-builder` agent.
- `packages/cli/` β€” CLI app (`typediagram` bin). Pure consumer of the framework public API. Owned by `type-model-claude`.
- `packages/web/` β€” web playground (Vite). Pure consumer of the framework public API. Owned by `type-model-claude`.
- `packages/vscode/` β€” VS Code extension.
- `src/typediagram/` β€” core framework (parser, model, layout, render-svg, markdown). Owned by `typediagram-builder` agent.
- `src/cli/` β€” CLI app (`typediagram` bin). Pure consumer of the framework public API. Owned by `type-model-claude`.
- `src/web/` β€” web playground (Vite). Pure consumer of the framework public API. Owned by `type-model-claude`.
- `src/vscode/` β€” VS Code extension.
- `src/tdbin/` β€” Rust TDBIN runtime crate (workspace: `src/Cargo.toml`).
- `src/scripts/` β€” repo tooling (codegen fixtures, version stamping, coverage ratchet).

Framework logic lives only in `packages/typediagram/`. `cli`, `web`, and `vscode` are glue β€” no parsing, layout, or rendering logic duplicated.
Framework logic lives only in `src/typediagram/`. `cli`, `web`, and `vscode` are glue β€” no parsing, layout, or rendering logic duplicated.

## Website

Expand Down Expand Up @@ -143,12 +145,17 @@ Only those 7 public targets are standard (see REPO-STANDARDS-SPEC [MAKE-TARGETS]
## Repo Structure

```
packages/
src/
typediagram/ β€” core framework (parser, model, layout, render-svg, markdown)
cli/ β€” CLI app (typediagram bin)
web/ β€” web playground (Vite)
vscode/ β€” VS Code extension
tdbin/ β€” Rust TDBIN runtime crate
scripts/ β€” repo tooling
Cargo.toml β€” Rust workspace (+ Cargo.lock, rustfmt.toml)
eslint.config.mjs
docs/
research/ β€” benchmarks, reports, proofs
specs/ β€” specification documents
plans/ β€” plan documents with TODO checklists
design/ β€” design system docs and assets
Expand Down
Loading
Loading