A drawing app built for agent/human collaboration
Rust
Plain just builds without counting the version up
Indicode BVa42fd648c219
diff --git a/CLAUDE.md b/CLAUDE.mdindex 1ecdace..ee39f1b 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -36,4 +36,4 @@ Agent-first 2D art application in Rust: a `klad` CLI for agents and a native edi- Permissive dependencies only: MIT, Apache-2.0, BSD-2/3, ISC, Zlib, BSL-1.0, Unicode-3.0, CC0-1.0; fonts bundled in the editor may be OFL-1.1 or the Ubuntu Font Licence (egui's), and the fonts in `fonts/` OFL-1.1 or Apache-2.0 (`fonts/update.py` fetches them unchanged; the notices list them). No GPL, LGPL or MPL unless dual licensed with one of these. `deny.toml` holds the list and `just audit` checks it; every shipped licence text is in `THIRD-PARTY-NOTICES.md` (`just notices`).- klad is source-available, not open source, copyright Indicode BV: the app is under the PolyForm Internal Use License 1.0.0 with permissions for personal use (free to build from source), proposing contributions and sharing drawings, and a limit: a company with 500,000 euros or more in revenue in its last tax year needs a bought licence per person; it also covers the builds it sells, and a bought build is such a licence (`LICENSE`; `license-file` in Cargo, since it has no SPDX identifier). `docs/format.md`, `docs/cli.md`, `docs/skill/` and `crates/client` are MIT (`LICENSE-MIT`): `klad-client` depends on none of the other crates, a format change updates `docs/format.md` in the same change, and a command change runs `just reference` (a test checks `docs/cli.md`). Outside contributions come in under the CLA (`CLA.md`).- No em-dashes in docs, messages or UI text.-- `just build` counts the version up (patch; `minor` and `major` on request) for every release build made on the maintainer's machine; agents build with `just compile`, which does not, and commit a counted-up `Cargo.toml` and `Cargo.lock` with the next change.+- `just build` counts the version up (patch; `minor` and `major` on request) for every release build made on the maintainer's machine; agents build with `just compile`, which does not (plain `just` is `just compile`), and commit a counted-up `Cargo.toml` and `Cargo.lock` with the next change.diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 2c7500f..725375a 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -13,7 +13,7 @@ Thank you for looking. klad is young and changes fast; issues with a drawing tha- Rust through [rustup](https://rustup.rs); `rust-toolchain.toml` picks the version. [`just`](https://github.com/casey/just) runs the recipes.- macOS: the Xcode command line tools. Linux: `pkg-config`, `libfreetype-dev`, `libfontconfig1-dev`, `libxkbcommon-dev` and `libwayland-dev`. Windows: Visual Studio's C++ build tools; the check on every pull request builds it there.- The first build downloads a prebuilt Skia for your platform (`skia-bindings` does this), so it needs network once.-- `just build` counts the patch version up and builds `klad` and `klad-editor` for this machine (`just build minor`, `just build major`; `just compile` builds without counting up), `just test`, `just lint`. They build into `target/` on macOS and `target/linux` on Linux, so one checkout can be built from both. `just audit` needs [`cargo-deny`](https://github.com/EmbarkStudios/cargo-deny) and [`cargo-about`](https://github.com/EmbarkStudios/cargo-about) (`cargo install cargo-deny --locked` and `cargo install cargo-about --locked --features cli`).+- `just build` counts the patch version up and builds `klad` and `klad-editor` for this machine (`just build minor`, `just build major`; `just compile`, or `just` on its own, builds without counting up), `just test`, `just lint`. They build into `target/` on macOS and `target/linux` on Linux, so one checkout can be built from both. `just audit` needs [`cargo-deny`](https://github.com/EmbarkStudios/cargo-deny) and [`cargo-about`](https://github.com/EmbarkStudios/cargo-about) (`cargo install cargo-deny --locked` and `cargo install cargo-about --locked --features cli`).- The editor is `klad open`, or `klad-editor` on its own (the app on a Mac, the program to start on Windows). `cargo build --no-default-features -p klad-cli` builds `klad` without the editor, for servers. Its panels are tested headless with `egui_kittest`; `cargo test -p klad-app -- --ignored editor_picture` (the editor with a sample drawing on its canvas), `start_pictures` and `just ui-pictures` write pictures of the UI to `scratch/ui/`.## The rules the code followsdiff --git a/README.md b/README.mdindex 9d87f4f..5b9a8e1 100644--- a/README.md+++ b/README.md@@ -119,7 +119,7 @@ Building takes about ten minutes the first time.- `samples/`: generators that make drawings from scratch, the best place to see the ops in use.```sh-just build # release build of the klad CLI and the editor+just compile # release build of the klad CLI and the editor (plain `just` does the same)just test # every test, and the drawkit checkjust lint # rustfmt and clippy, warnings as errorsjust audit # licences, RustSec advisories, sources, and the notices are currentdiff --git a/justfile b/justfileindex 6e1899c..c4cf945 100644--- a/justfile+++ b/justfile@@ -4,7 +4,7 @@ klad := target_dir / "release" / "klad" + if os() == "windows" { ".exe" } else {export CARGO_TARGET_DIR := target_direxport KLAD_TARGET_DIR := target_dir-default: build+default: compilebuild part="patch":bash packaging/bump.sh {{part}}diff --git a/samples/README.md b/samples/README.mdindex 02f2327..8bdbf44 100644--- a/samples/README.md+++ b/samples/README.md@@ -1,6 +1,6 @@# Samples-Drawings made from scratch with the `klad` CLI, each from a generator that prints ops as JSON lines into `klad apply`. They show how the pieces fit and give the tests and the parity checks something real to draw. `just samples` builds all of them (after `just build`); each `build.sh` also takes an output path, and refuses to overwrite a drawing that may hold edits unless `FORCE=1`.+Drawings made from scratch with the `klad` CLI, each from a generator that prints ops as JSON lines into `klad apply`. They show how the pieces fit and give the tests and the parity checks something real to draw. `just samples` builds all of them (after `just compile`); each `build.sh` also takes an output path, and refuses to overwrite a drawing that may hold edits unless `FORCE=1`.| Sample | Shows ||---|---|diff --git a/samples/creature/build.sh b/samples/creature/build.shindex 401af6d..5881fa9 100755--- a/samples/creature/build.sh+++ b/samples/creature/build.sh@@ -10,7 +10,7 @@ esacklad="${KLAD:-$root/${KLAD_TARGET_DIR:-$built}/release/klad}"out="${1:-$here/creature.klad}"if ! "$klad" arcs --help >/dev/null 2>&1; then- echo "$klad is older than this example (it has no klad arcs): run just build first" >&2+ echo "$klad is older than this example (it has no klad arcs): run just compile first" >&2exit 1fiif [ -e "$out" ] && [ "${FORCE:-0}" != 1 ]; then