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
21 changes: 4 additions & 17 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,29 +46,21 @@ reviews:
`gvFreeLayout`/`agclose`, reading layout data when `gvLayout` failed, and C
strings that die before Graphviz copies them. Graphviz uses 72 points per inch
and returns node sizes in inches; flag mixed-up units.
- path: "{Sources/VGraphMCP,Sources/VGraphMCPHTTP,Sources/VGraphMCPHTTPKit,Sources/VGraphMCPTools}/**/*.swift"
instructions: |
The hosted MCP endpoint is open to anyone (SECURITY.md, docs/mcp-hardening.md).
Layout cannot be cancelled, so every input must be bounded before layout through
`MCPLimits`. Flag a new tool or parameter that reaches layout or PNG conversion
without a limit, unbounded subprocess output or runtime, and error messages that
leak paths or internals. Foundation and key paths are fine here.
- path: "VGraphWasm/**/*.swift"
instructions: |
Embedded Swift rules apply. `@JS public func` in VGraphWasm/Sources/Main.swift is
the API the Obsidian and VS Code plugins and vgraph-mcp-node call; a removed or
the API the Obsidian and VS Code plugins and the vgraph-mcp npm host call; a removed or
renamed export breaks them silently (scripts/check-plugin-api.sh). DOM code stays
in VGraphEditor; decisions belong in EditorCore so they can be tested natively.
- path: "Tests/**/*.swift"
instructions: |
Tests come before the fix or feature, so a bug-fix PR should add a test that
fails without it. Prefer asserting on real output (SVG, layout values) over
"does not crash". A changed snapshot under __Snapshots__ needs a reason in the PR.
- path: "{VGraphWasm/Tests-JS,VGraphWasm/Tests-Browser,vgraph-mcp-node}/**/*.{js,mjs}"
- path: "{VGraphWasm/Tests-JS,VGraphWasm/Tests-Browser}/**/*.{js,mjs}"
instructions: |
Browser tests run in Chromium and WebKit (the iPad project); flag waits on fixed
timeouts instead of conditions. vgraph-mcp-node hosts the wasm engine and must
call only exports that Main.swift still declares.
timeouts instead of conditions.
- path: "{**/*.sh,justfile}"
instructions: |
Shell is written for the maintainer's macOS (bash 3.2, BSD tools) and must also
Expand All @@ -83,11 +75,6 @@ reviews:
minimal, every download is verified by checksum, and `pull_request_target` is
never used. Nothing is published from CI; releases stay on the maintainer's
machine, so no publish secret may appear here.
- path: "{Dockerfile,deploy.sh,.dockerignore,.gcloudignore}"
instructions: |
The image serves the public MCP endpoint on Cloud Run. It runs as a non-root
user; flag anything that adds secrets to the image, widens what gets copied in,
or unpins a base image or download.
- path: "{GLOSSARY.md,docs/adr/**}"
instructions: |
GLOSSARY.md is the glossary; a new term should not duplicate one listed under
Expand Down Expand Up @@ -118,7 +105,7 @@ reviews:
Fail if a `@JS public func` in VGraphWasm/Sources/Main.swift is removed or
renamed, or its parameters or return type change, and the PR description does
not name the affected consumers (obsidian-vithanco, vscode-vithanco,
vgraph-mcp-node) and say how they are updated. Additions do not count.
vgraph-mcp) and say how they are updated. Additions do not count.
- name: "ADR conflicts are explicit"
mode: warning
instructions: |
Expand Down
57 changes: 0 additions & 57 deletions .dockerignore

This file was deleted.

16 changes: 0 additions & 16 deletions .gcloudignore

This file was deleted.

5 changes: 1 addition & 4 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@
/.github/ @Vithanco
/.githooks/ @Vithanco

# The task runner, scripts and the build context of the images.
# The task runner and scripts.
/justfile @Vithanco
/scripts/ @Vithanco
*.sh @Vithanco
/Dockerfile @Vithanco
/.dockerignore @Vithanco
/.gcloudignore @Vithanco

# Manifests run code when a package is resolved or built, and pin what it fetches.
Package.swift @Vithanco
Expand Down
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ updates:
- package-ecosystem: "npm"
directories:
- "/"
- "/vgraph-mcp-node"
- "/VGraphWasm/Tests-JS"
- "/VGraphWasm/Tests-Browser"
schedule:
Expand Down
15 changes: 2 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,7 @@ jobs:
tar -xzf "$JUST" -C /usr/local/bin just
- run: just lint
- run: swift build --build-tests
# A stale generated file fails the pull request that made it stale, not
# the next release. Root in the container does not own the checkout.
- name: Generated files are up to date
run: |
apt-get install -y --no-install-recommends python3
git config --global --add safe.directory "$GITHUB_WORKSPACE"
./scripts/check-generated.sh
# The PNG tests convert with rsvg-convert, as the server image does.
- run: apt-get install -y --no-install-recommends librsvg2-bin fontconfig fonts-liberation
# These two assume Linux means "inside the server image", and describe an
# image that does not exist: it has no dot and runs as root.
- run: swift test --skip-build --skip 'DockerIntegrationTests/test(DockerBuildSucceeds|NonRootUserExecution)'
- run: swift test --skip-build

wasm:
# Builds and tests the wasm; it publishes nothing. Releases stay on the
Expand Down Expand Up @@ -136,7 +125,7 @@ jobs:
- name: Shell tests
run: |
failed=0
for t in check-wasm-optimized justfile-hygiene doctor-kegs doctor-sdk codeowners licence audit-public record-engine-build publish-plugins mcp-registry release-stamp ci-status check-generated; do
for t in check-wasm-optimized justfile-hygiene doctor-kegs doctor-sdk codeowners licence audit-public record-engine-build check-engine-build publish-plugins release-stamp ci-status; do
echo "::group::$t"
./scripts/$t.test.sh || failed=1
echo "::endgroup::"
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ SmokeWasm/
obsidian-vithanco/
vscode-vithanco/

# The MCP servers (Swift stdio + HTTP, and the npm host) — an engine consumer
# like the plugins, built against this checkout as `..`. See ADR 0040.
vgraph-mcp/

# Mapping skills — like the editor plugins above, its own git repo with its
# own release cycle, just checked out here for convenience.
mapping-skills/
Expand Down
9 changes: 5 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ already says. Anything worth keeping goes in `/docs` and stays updated.
- `docs/adr/` — why things are the way they are. Read the ADR before reversing
a design.
- `docs/where-things-live.md` — the layer chain a feature crosses (domain, port,
app, editor, MCP, wasm, node), and which test target, entry point and owning
test a test belongs to. Read it before tracing by hand or adding a test.
app, editor, wasm, then the MCP servers in `vgraph-mcp/`), and which test
target, entry point and owning test a test belongs to. Read it before tracing by hand or adding a test.
- `docs/design/` — the normative visual reference for the default theme (light
and dark). Read its `README.md` before adding or changing a notation, colour,
token or dark-mode behaviour; renderer output that disagrees with the guide
Expand Down Expand Up @@ -97,8 +97,9 @@ Without it, every `String == String`, `hasPrefix` and `contains` leaves an
undefined symbol. When the build can't find the archive, read
`docs/wasm-unicode-tables.md` before searching the disk.

`vgraph-cli`, `vgraph-mcp`, `vgraph-mcp-http` and `VGraphMCPTools` sit outside
that graph and may use Foundation and key paths freely.
`vgraph-cli` sits outside that graph and may use Foundation and key paths
freely, as do the MCP servers, which live in their own repository
(`vgraph-mcp/`, cloned by `just plugins-setup`; ADR 0040).
`VGraphvizLib` is *not* one of them — Graphviz compiles into the wasm module.

Graphviz layout runs in-process on every platform, so `#if WASM` appears only in
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ everything compiled into the wasm module (no key paths, no reflection, no generi
calls on `any` values). `ArchitectureTest` fails on the ones it can check.

**Some files get a closer look.** Anything that runs commands or steers a coding
agent (`AGENTS.md`, `.claude/`, `.agents/`, `.github/`, `justfile`, `scripts/`,
`Dockerfile` and the release scripts) needs the maintainer's approval, listed in
agent (`AGENTS.md`, `.claude/`, `.agents/`, `.github/`, `justfile`, `scripts/`
and the release scripts) needs the maintainer's approval, listed in
`.github/CODEOWNERS`. A pull request should not be able to plant instructions for
someone else's tools, so changes there are read line by line.

Expand Down
76 changes: 0 additions & 76 deletions Dockerfile

This file was deleted.

65 changes: 1 addition & 64 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading