diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fdcc82ce..f2efc83c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,7 +14,7 @@ By contributing, you agree that your contributions are licensed under the [Apach You need: -- **Rust 1.89+** (edition 2024). SQLite is bundled. +- **Rust 1.90+** (edition 2024; CI uses 1.99.1). SQLite is bundled. - **Linux:** `bubblewrap` for the sandbox (`sudo apt install bubblewrap`). - **Node.js 22** for the web dashboard (`web/`), the TypeScript SDK (`sdk/typescript/`) and the OpenSpec CLI. - **[just](https://github.com/casey/just)** (optional) for the task shortcuts below. @@ -31,15 +31,21 @@ Run `just` to list the tasks. The common ones: | Task | Command | |---|---| +| Check the tools (installs cargo-nextest if missing) | `just setup` | +| Fast type check | `just check` | | Format | `just fmt` | | Lint (fmt check + clippy, warnings are errors) | `just lint` | -| Rust tests | `just test`, or `just test -p cyber-server` | -| Specs (OpenSpec validation, spec lint, roadmap inventory) | `just specs` | -| TypeScript SDK | `just sdk-test` | -| Everything CI checks | `just ci` | +| Rust tests | `just test`, `just test -p cyber-server`, or `just test-quick` for unit tests only | +| Specs (OpenSpec validation pinned to CI's version, spec lint, roadmap inventory) | `just specs` | +| `docs/cli.md` is current | `just docs-cli-check` | +| TypeScript SDK and plugin kit | `just sdk-test` | +| Web dashboard, VS Code extension | `just web-test`, `just vscode-test` | +| Everything CI checks (except platform builds and browser/Electron runs) | `just ci` | | Linux tests in Docker | `just test-linux` | +| Low-disk build env for any task | `just lean test` | +| Target dir size, prune old artifacts | `just disk`, `just disk-prune 14` | -Some tests start the sandbox helper. Build it once with `cargo build -p cyber-sandbox --bins` before running the whole suite. CI uses [nextest](https://nexte.st/): `cargo nextest run --workspace --profile ci`. +Some tests start the sandbox helper; `just test` builds it first (`just sandbox-helpers`, or `cargo build -p cyber-sandbox --bins` by hand). `just test` uses [nextest](https://nexte.st/) when installed, like CI: `cargo nextest run --workspace --profile ci`. ## What CI checks diff --git a/Cargo.toml b/Cargo.toml index c21afaca..282260f2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ version = "0.1.0" edition = "2024" license = "Apache-2.0" repository = "https://github.com/CyberdyneCorp/cybercode-cli" -rust-version = "1.89" +rust-version = "1.90" publish = false [workspace.dependencies] diff --git a/README.md b/README.md index 11170f3d..f3f8d38b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A model-independent coding agent with a terminal UI, local web dashboard and durable background server. Run one task, coordinate agents, or compare patches with a verified workflow—all against the same local Sessions. -**Development status:** the local core and first web dashboard are implemented. Broader platform, integration and release acceptance is still in progress; see [Known gaps](#known-gaps). +**Development status:** stable [`v0.1.0`](https://github.com/CyberdyneCorp/cybercode-cli/releases/tag/v0.1.0) was released on 2026-11-22 for macOS and Linux. The P0 local core is complete. P1 is nearly complete; the Windows sandbox and the remaining extensibility and import items are open. P2 autonomy is built: workflows and the verified library, goals, loops with cron and persistent `cyber loops` schedules, and the planner/executor model split; agent teams are experimental. P3 connectivity is starting with account login, relay and runners; the project hub is experimental. See the [roadmap](ROADMAP.md) and [Known gaps](#known-gaps). Coding-quality evidence: [GPT-6.1 Sol / ChatGPT pilot](docs/measurements/gpt61-sol-chatgpt-pilot.md), with measured outcomes and comparison limits; [stream reliability fixes and follow-up](docs/measurements/provider-stream-reliability-follow-up.md). @@ -10,7 +10,7 @@ Coding-quality evidence: [GPT-6.1 Sol / ChatGPT pilot](docs/measurements/gpt61-s ## Quickstart -Requires **Rust 1.89+**; SQLite is bundled. On Linux, install **bubblewrap** for sandboxed commands (`sudo apt install bubblewrap`). +Requires **Rust 1.90+** (CI uses 1.99.1); SQLite is bundled. On Linux, install **bubblewrap** for sandboxed commands (`sudo apt install bubblewrap`). ```bash cargo build --locked -p cyber-cli @@ -18,7 +18,9 @@ export OPENAI_API_KEY="your-key" ./target/debug/cyber ``` -OpenAI, Anthropic, GitHub Copilot and OpenAI-compatible endpoints are supported, including local model servers. The native Gemini API is experimental (`cyber features enable gemini`, then `GEMINI_API_KEY`; [guide](docs/local-core-guide.md#gemini-api)). Instead of an API key, you can sign in with a subscription: +With [`just`](https://github.com/casey/just) installed, `just build`, `just install` (release binaries into `~/.local/bin`) and `just test` cover the usual loop; see [developer tasks](#guides-and-development). + +OpenAI, Anthropic, GitHub Copilot and OpenAI-compatible endpoints are supported, including local model servers. The native Gemini API is experimental (`cyber features enable gemini`, then `GEMINI_API_KEY`; [guide](docs/local-core-guide.md#gemini-api)). Instead of an API key, you can sign in with a ChatGPT or GitHub Copilot subscription; Claude subscriptions are not supported, so Anthropic models need an API key: | Subscription | Sign in | Guide | |---|---|---| @@ -138,20 +140,25 @@ mindmap TypeScript SDK Signed releases and cyber upgrade Agents and automation - Subagents and worktrees partial + Subagents and worktrees + Planner and executor models workflows["Workflows"] solve["Verified solve"] integrations["Integration queue"] Goals and loops + Cron and persistent schedules Agent teams experimental Safety and recovery Permission modes + Auto reviewer with read-only context macOS and Linux sandbox Git snapshots Durable Sessions and replay OpenTelemetry export Tools and integrations Providers and local endpoints + Gemini adapter experimental + Repository map MCP client and server Hooks and skills Image and PDF input @@ -168,18 +175,19 @@ mindmap ## Known gaps -Cyber Code has working features in each area below, but it is not at full feature parity with every alternative. Checked **2026-10-24** against official documentation; this compares capabilities, not coding quality or benchmark performance. Related desktop, IDE and hosted products are distinguished from each terminal CLI. +Cyber Code has working features in each area below, but it is not at full feature parity with every alternative. The competitor column was checked **2026-10-24** against official documentation; the Cyber Code column reflects v0.1.0. This compares capabilities, not coding quality or benchmark performance. Related desktop, IDE and hosted products are distinguished from each terminal CLI. | Compared with | What their documentation provides | What remains in Cyber Code | |---|---|---| | **OpenCode** | A broad [provider catalog](https://opencode.ai/docs/providers/), [IDE integration](https://opencode.ai/docs/ide/) and [web UI](https://opencode.ai/docs/web/). | Native provider coverage is narrower. A [VS Code extension](docs/vscode-extension.md) ships as a `.vsix` on each release; Marketplace publication, ACP for other editors and desktop clients are planned. The web dashboard is implemented, but full TUI-equivalent browser controls remain unfinished. | | **Claude Code CLI** | The CLI is part of a [terminal/IDE/desktop/web offering](https://code.claude.com/docs/en/overview), with [plugin marketplaces](https://code.claude.com/docs/en/discover-plugins). | A [VS Code extension](docs/vscode-extension.md) ships as an unsigned `.vsix`, without Marketplace publication, per-hunk review or other IDEs; desktop clients, plugin marketplaces and complete cross-tool configuration/plugin compatibility remain unfinished. A plugin host, SDK, skills and hooks already exist. | -| **Codex CLI** | A [terminal coding agent](https://learn.chatgpt.com/docs/codex/cli), related IDE/cloud surfaces, and a [native Windows sandbox](https://learn.chatgpt.com/docs/windows/windows-sandbox). | Windows confinement remains partial. The VS Code extension is a first slice (no Marketplace, no ACP); desktop clients, hosted runners and paired-device Relay access are planned. Private HTTPS/SSH dashboard access already works. | +| **Codex CLI** | A [terminal coding agent](https://learn.chatgpt.com/docs/codex/cli), related IDE/cloud surfaces, and a [native Windows sandbox](https://learn.chatgpt.com/docs/windows/windows-sandbox). | Windows confinement remains partial, so Windows builds are not released. The VS Code extension is a first slice (no Marketplace, no ACP); desktop clients are planned, and hosted runners and paired-device Relay access are early P3 work. Private HTTPS/SSH dashboard access already works. | | **Pi** | A deliberately small [terminal harness with TypeScript extensions, packages and an SDK](https://github.com/earendil-works/pi/tree/main/packages/coding-agent). | Cyber ships its own plugin host and SDK; package marketplaces and broader extension compatibility remain unfinished. Pi intentionally leaves features such as subagents and plan mode to extensions/packages, so its smaller core is a design choice. | Other limits to consider: -- **Acceptance is ongoing:** the full local-model baseline, Windows enforcement and several P1 migration, memory and code-intelligence paths remain open. +- **Acceptance is ongoing:** the full local-model baseline, Windows enforcement and several P1 extensibility, migration (`cyber import`), memory and code-intelligence paths remain open. +- **Subscriptions:** sign-in covers ChatGPT and GitHub Copilot only; there is no Claude subscription login. - **Automation has edges:** [reserved budgets](docs/reserved-budgets.md) currently support bounded official OpenAI Responses requests; ChatGPT/Copilot subscription models use soft token/time controls. Finished-agent transcript retention is a separate roadmap item; persistent schedules (`cyber loops`) run only while the Cyber service runs, which has no launchd/systemd unit yet; agent teams and the project hub are experimental. - **The native Gemini adapter is experimental:** off until `features.gemini` is set; tested against recorded protocol shapes only. A live tool-loop run with a key, the live coding baseline, Vertex AI and stored Gemini keys (`cyber providers login google`) remain. - **Native computer use is experimental:** macOS 14+ only, off by default; controlled capture, input and Stop passed. Other layouts, live OS revocation and release signing remain unverified. @@ -208,7 +216,7 @@ The TUI, web dashboard, VS Code extension, CLI, SDK and MCP clients call one ser | Find a command or planned capability | [CLI reference](docs/cli.md) · [Roadmap](ROADMAP.md) · [OpenSpec](openspec/specs) | | Check builds, tests or evaluations | [Development guide](docs/local-core-guide.md#build-and-development) · [Evaluation guide](eval/README.md) | -Run `just` for available development tasks and `just ci` for local checks. Browse the [documentation index](docs/README.md) for the full guide set. +**Developer tasks:** `just setup` checks your tools, `just` lists the tasks, and `just ci` runs the local equivalent of CI; `just lean ` builds with less disk. See [CONTRIBUTING.md](CONTRIBUTING.md#development-setup). Browse the [documentation index](docs/README.md) for the full guide set. ## Contributing and license diff --git a/docs/local-core-guide.md b/docs/local-core-guide.md index 9f01bc3e..9d4eb8d3 100644 --- a/docs/local-core-guide.md +++ b/docs/local-core-guide.md @@ -7,20 +7,22 @@ Detailed commands, client behavior, limits and terminology for the implemented l Common tasks are in the [`justfile`](../justfile) (install [`just`](https://github.com/casey/just)); run `just` to list them: ```bash +just setup # check the development tools (installs cargo-nextest if missing) just build # debug build: target/debug/cyber -just ci # local checks: lint, tests, specs, SDK (platform builds run in CI) -just test -p cyber-server # one crate, or `just test ` +just ci # local checks: lint, tests, specs, docs, SDK, dashboard, VS Code extension +just test -p cyber-server # one crate, or `just test ` (nextest when installed) +just lean test # any task with the low-disk build env (no incremental, no debug info) just test-linux # the test suite on Linux in Docker (bubblewrap sandbox) just tui # the TUI here; just exec "fix the failing test" just sandboxed exec --ephemeral "hello" # run with a throwaway CYBER_HOME just sdk-generate # regenerate sdk/openapi.json and the TypeScript SDK ``` -`just ci` covers the recipes listed above; dashboard checks and native platform builds/tests run separately in CI. For documentation validation, use the same OpenSpec version as CI (`npm install -g @fission-ai/openspec@1.13.2`) and run `just specs`. After changing the inventory, inspect the generated ROADMAP diff before committing it. +`just ci` mirrors the CI checks except native platform builds, the browser and Electron integration runs and the benchmark. `just specs` runs the same OpenSpec version as CI through `npx` (`@fission-ai/openspec@1.13.2`), so no global install is needed. After changing the inventory, inspect the generated ROADMAP diff before committing it. The raw commands: -Requires Rust 1.89 or newer (edition 2024). SQLite is bundled. +Requires Rust 1.90 or newer (edition 2024; CI pins 1.99.1). SQLite is bundled. ```bash cargo build # target/debug/cyber diff --git a/justfile b/justfile index daba37d0..1b33edf7 100644 --- a/justfile +++ b/justfile @@ -2,31 +2,129 @@ set shell := ["bash", "-euo", "pipefail", "-c"] -cyber := "target/debug/cyber" +# Follows CARGO_TARGET_DIR, so the run recipes find the binary in a shared target dir. +target_dir := env("CARGO_TARGET_DIR", justfile_directory() / "target") +cyber := target_dir / "debug" / "cyber" linux_image := "cyber-linux-test" +# The OpenSpec CLI version CI installs (.github/workflows/ci.yml), run through npx. +openspec := "npx -y @fission-ai/openspec@1.13.2" # List the recipes. default: @just --list --unsorted +# --- Setup ------------------------------------------------------------------- + +# Check the development tools; installs cargo-nextest if it is missing (never uses sudo). +setup: + #!/usr/bin/env bash + set -euo pipefail + missing=0 + have() { command -v "$1" >/dev/null 2>&1; } + ok() { printf ' ok %-14s %s\n' "$1" "$2"; } + miss() { printf ' missing %-14s %s\n' "$1" "$2"; missing=1; } + opt() { printf ' optional %-14s %s\n' "$1" "$2"; } + echo "Cyber Code development tools:" + msrv=$(sed -n 's/^rust-version = "\(.*\)"/\1/p' Cargo.toml) + ci_rust=$(grep -m1 -oE 'toolchain: [0-9.]+' .github/workflows/ci.yml | cut -d' ' -f2) + if have rustup; then ok rustup "$(rustup --version 2>/dev/null | head -1)"; else miss rustup "https://rustup.rs"; fi + pinned="" + for f in rust-toolchain.toml rust-toolchain; do + [ -f "$f" ] && pinned=$(grep -m1 -oE '[0-9]+\.[0-9]+(\.[0-9]+)?|stable|beta|nightly' "$f") && break + done + if [ -n "$pinned" ] && have rustup; then + if rustup toolchain list | grep -q "^$pinned"; then ok toolchain "$pinned (from rust-toolchain)"; else miss toolchain "rustup toolchain install $pinned"; fi + fi + if have rustc; then ok rustc "$(rustc --version) (minimum $msrv, CI uses $ci_rust)"; else miss rustc "rustup toolchain install $ci_rust"; fi + if have cargo-nextest; then + ok cargo-nextest "$(cargo nextest --version 2>/dev/null | head -1)" + elif have cargo; then + echo " installing cargo-nextest: cargo install cargo-nextest --locked (into ~/.cargo/bin)" + cargo install cargo-nextest --locked + ok cargo-nextest "$(cargo nextest --version 2>/dev/null | head -1)" + else + miss cargo-nextest "needs cargo first" + fi + if have node; then ok node "$(node --version) (CI uses 22)"; else miss node "Node.js 22: web/, sdk/, clients/vscode and OpenSpec"; fi + if have npm; then ok npm "$(npm --version)"; else miss npm "comes with Node.js"; fi + if have python3; then ok python3 "$(python3 --version 2>&1)"; else miss python3 "spec, SDK and release scripts"; fi + if [ "$(uname -s)" = Linux ]; then + if have bwrap; then ok bubblewrap "$(bwrap --version)"; else miss bubblewrap "sandboxed commands: sudo apt install bubblewrap"; fi + fi + if have docker; then ok docker "$(docker --version)"; else opt docker "only for just test-linux / ci-linux"; fi + if [ "$missing" = 1 ]; then echo "Install the missing tools above, then rerun just setup."; exit 1; fi + # --- Build ------------------------------------------------------------------- # Debug build of the whole workspace (binary: target/debug/cyber). build: cargo build --workspace -# Optimized `cyber` binary (target/release/cyber). -release: - cargo build --release -p cyber-cli +# Fast type check of every crate and target, without linking. +check: + cargo check --workspace --all-targets + +# The sandbox helper (cyber-sandbox-exec) that tests and sandboxed runs look for next to the binary. +sandbox-helpers: + cargo build -p cyber-sandbox --bins -# Install `cyber` into ~/.cargo/bin. -install: - cargo install --path crates/cyber-cli --locked +# Optimized `cyber` and its sandbox helper (target/release/). +release: + cargo build --release -p cyber-cli -p cyber-sandbox --bins + +# Install the release `cyber` and its sandbox helper into ${CYBER_INSTALL_DIR:-~/.local/bin}. +install: release + #!/usr/bin/env bash + set -euo pipefail + dir="${CYBER_INSTALL_DIR:-$HOME/.local/bin}" + mkdir -p "$dir" + for bin in cyber-sandbox-exec cyber; do + install -m 755 "{{ target_dir }}/release/$bin" "$dir/$bin" + echo "installed $dir/$bin" + done + case ":$PATH:" in + *":$dir:"*) ;; + *) echo "warning: $dir is not on PATH; add it to your shell profile" >&2 ;; + esac + +# Remove the binaries `just install` placed; `cyber uninstall` also removes config and data. +uninstall: + #!/usr/bin/env bash + set -euo pipefail + dir="${CYBER_INSTALL_DIR:-$HOME/.local/bin}" + for bin in cyber cyber-sandbox-exec; do + if [ -e "$dir/$bin" ]; then rm -f "$dir/$bin" && echo "removed $dir/$bin"; else echo "not installed: $dir/$bin"; fi + done + echo "Configuration, data and keyring entries are kept; 'cyber uninstall --dry-run' lists them." # Remove build artifacts. clean: cargo clean +# Target dir size per profile. +disk: + @du -sh "{{ target_dir }}" 2>/dev/null || echo "no target dir at {{ target_dir }}" + @du -sh "{{ target_dir }}"/*/ 2>/dev/null | sort -rh | head -10 || true + +# Delete build artifacts not rebuilt in `days` days (default 14); cargo rebuilds what is needed. +disk-prune days="14": + #!/usr/bin/env bash + set -euo pipefail + dir="{{ target_dir }}" + [ -d "$dir" ] || { echo "no target dir at $dir"; exit 0; } + before=$(du -sk "$dir" | cut -f1) + find "$dir" -mindepth 2 -maxdepth 3 -type d \( -name deps -o -name build -o -name .fingerprint -o -name incremental \) -print0 | + while IFS= read -r -d '' sub; do + find "$sub" -mindepth 1 -maxdepth 1 -mtime +{{ days }} -exec rm -rf {} + + done + after=$(du -sk "$dir" | cut -f1) + echo "pruned artifacts older than {{ days }} days: $(( (before - after) / 1024 )) MiB freed, $(( after / 1024 )) MiB left in $dir" + +# Run any recipe with the low-disk build env, e.g. `just lean test -p cyber-cli`. +[positional-arguments] +lean *args: + @CARGO_INCREMENTAL=0 CARGO_PROFILE_DEV_DEBUG=0 CARGO_PROFILE_TEST_DEBUG=0 "{{ just_executable() }}" --justfile "{{ justfile() }}" "$@" + # --- Checks (what CI runs) --------------------------------------------------- # Format all Rust code. @@ -38,33 +136,86 @@ lint: cargo fmt --all --check cargo clippy --workspace --all-targets -- -D warnings -# Rust tests: `just test`, `just test -p cyber-server`, or `just test `. +# nextest uses the `ci` profile in .config/nextest.toml; NEXTEST=0 forces `cargo test`. +# Rust tests (nextest when installed): `just test`, `just test -p cyber-server`, or `just test `. +[positional-arguments] +test *args: sandbox-helpers + scope=--workspace; if printf '%s\n' "$@" | grep -qxE -- '-p|--package'; then scope=; fi; \ + if [ "${NEXTEST:-1}" != 0 ] && cargo nextest --version >/dev/null 2>&1; then \ + cargo nextest run $scope --profile ci "$@"; \ + else \ + cargo test $scope "$@"; \ + fi + +# Unit tests only (lib and bin targets), skipping the slower integration-test binaries. [positional-arguments] -test *args: - if printf '%s\n' "$@" | grep -qxE -- '-p|--package'; then cargo test "$@"; else cargo test --workspace "$@"; fi +test-quick *args: sandbox-helpers + scope=--workspace; if printf '%s\n' "$@" | grep -qxE -- '-p|--package'; then scope=; fi; \ + if [ "${NEXTEST:-1}" != 0 ] && cargo nextest --version >/dev/null 2>&1; then \ + cargo nextest run $scope --lib --bins "$@"; \ + else \ + cargo test $scope --lib --bins "$@"; \ + fi -# OpenSpec validation, cross-spec lint and the ROADMAP requirement inventory. +# Doctests (nextest does not run them; CI runs them separately). +test-doc: + cargo test --workspace --doc + +# OpenSpec validation (pinned to CI's version), cross-spec lint and the ROADMAP requirement inventory. specs: - openspec validate --all --strict + {{ openspec }} validate --all --strict python3 scripts/spec_lint.py python3 scripts/spec_inventory.py git diff --exit-code ROADMAP.md +# The non-spec checks of CI's OpenSpec job: eval graders, release-script tests, install.sh syntax. +scripts-test: + python3 scripts/check_eval_graders.py --jobs 4 + python3 -m unittest discover -s scripts/tests + sh -n scripts/install.sh + if command -v shellcheck >/dev/null; then shellcheck -s sh scripts/install.sh; else echo "shellcheck not installed; skipped"; fi + # Regenerate docs/cli.md from the clap definition (a cyber-cli test fails when it is stale). docs-cli: cargo run -q -p cyber-cli -- help-markdown > docs/cli.md -# TypeScript SDK: generated sources current, typecheck, tests. -sdk-test: +# Fail when docs/cli.md differs from `cyber help-markdown`. +docs-cli-check: + cargo run -q -p cyber-cli -- help-markdown | diff -u docs/cli.md - || { echo "docs/cli.md is stale; run just docs-cli" >&2; exit 1; } + +# TypeScript SDK and plugin kit: generated sources current, typecheck, tests (end-to-end against the built binary). +sdk-test: sandbox-helpers python3 scripts/generate_sdk.py --check - cd sdk/typescript && npm ci --silent && npm run typecheck && npm test + cargo build -p cyber-cli --bin cyber + cd sdk/typescript && npm ci --silent && npm run typecheck && CYBER_BIN="{{ cyber }}" npm test + cd sdk/plugin && npm ci --silent && npm run typecheck && npm run build && CYBER_BIN="{{ cyber }}" npm test + +# Web dashboard: typecheck, committed bundle current, unit tests (as CI; browser e2e not included). +web-test: + cd web && npm ci --silent && npm run typecheck && npm run typecheck:e2e && npm run check:build && npm test + +# Rebuild the committed web dashboard bundle (web/dist). +web-build: + cd web && npm ci --silent && npm run build + +# VS Code extension: typecheck, lint, unit tests (as CI; the Electron integration run is not included). +vscode-test: + cd clients/vscode && npm ci --silent && npm run typecheck && npm run lint && npm test -# Everything CI checks. -ci: lint test specs sdk-test +# Build the VS Code extension package (clients/vscode/cyber-.vsix). +vscode-package: + cd clients/vscode && npm ci --silent && npm run package -# Rust tests on Linux in Docker (bubblewrap sandbox, unprivileged user). Parallelism is +# Everything CI checks except platform builds, browser/Electron runs and the benchmark. +ci: lint test test-doc specs scripts-test docs-cli-check sdk-test web-test vscode-test -# capped (LINUX_JOBS, default 4) so linking fits in Docker's memory. +# Check that tag v matches the workspace (and extension) version before pushing it. +[positional-arguments] +release-check version: + python3 scripts/release_assets.py check-tag "v${1#v}" + +# Parallelism is capped (LINUX_JOBS, default 4) so linking fits in Docker's memory. +# Rust tests on Linux in Docker (bubblewrap sandbox, unprivileged user). [positional-arguments] test-linux *args: docker build -q -t {{ linux_image }} -f scripts/docker/linux-test.Dockerfile scripts/docker >/dev/null @@ -129,6 +280,11 @@ exec *args: build serve *args: build {{ cyber }} serve "$@" +# Check this machine's setup with the debug build. +[positional-arguments] +doctor *args: build + {{ cyber }} doctor "$@" + # Background server: `just service start|stop|restart|status|password [value]`. [positional-arguments] service *args: build @@ -146,8 +302,8 @@ sandboxed *args: build # --- Docs --------------------------------------------------------------------- -# Recapture docs/screenshots from the real TUI (needs pyte and pillow, and Chrome). # PY selects the interpreter, e.g. `PY=/tmp/cyber-shots/bin/python just screenshots`. +# Recapture docs/screenshots from the real TUI (needs pyte and pillow, and Chrome). screenshots: cargo build -p cyber-cli "${PY:-python3}" scripts/capture_tui_screens.py --binary {{ cyber }}