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
30 changes: 28 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,27 @@ Two targets: `DHModels` (Linux-safe value types) and `DHKit`
```
DHModels/
├── Sources/
│ ├── DHModels/ # Foundation-only; no Apple-only frameworks
│ ├── DHModels/
│ │ └── DaggerheartModels.docc/
│ │ └── Resources/ # SVG diagrams (generated by Scripts/render-diagrams.sh)
│ ├── DHKit/
│ │ ├── DHKit.docc/
│ │ │ └── Resources/ # SVG diagrams (generated by Scripts/render-diagrams.sh)
│ │ └── Resources/ # adversaries.json, environments.json (SRD data)
│ └── validate-dhpack/
├── Tests/
│ ├── DHModelsTests/ # Linux-compatible; runs in Linux CI
│ │ └── Fixtures/ # adversaries.json, environments.json, sample-homebrew.dhpack
│ └── DHKitTests/ # Apple-platform only
├── diagrams/
│ ├── DHModels/ # catalog.mmd, encounter.mmd, content.mmd
│ └── DHKit/ # participants.mmd, stores.mmd, usage.mmd
├── schemas/ # dhpack.schema.json (JSON Schema for .dhpack files)
├── Package.swift
├── .swift-format # Formatting rules (matches gwillish/encounter)
└── Scripts/format.sh # Format all tracked Swift files
└── Scripts/
├── format.sh # Format all tracked Swift files
└── render-diagrams.sh # Render .mmd sources to SVG
```

---
Expand Down Expand Up @@ -159,6 +168,23 @@ declaration to opt out of the default `@MainActor` isolation.

---

## Diagrams

Source files live in `diagrams/DHModels/*.mmd` and `diagrams/DHKit/*.mmd`.

**Whenever a diagram source is added or modified, re-run the render script** to
keep the DocC Resources in sync:

```bash
./Scripts/render-diagrams.sh
```

Output goes to `Sources/DHModels/DaggerheartModels.docc/Resources/` and
`Sources/DHKit/DHKit.docc/Resources/`.
Commit the generated SVGs alongside the source `.mmd` files.

---

## Git

- **Never commit on behalf of the user.** Wait for an explicit request.
Expand Down
228 changes: 0 additions & 228 deletions DHKit-diagram.md

This file was deleted.

Loading
Loading