diff --git a/.ontology/core.ncl b/.ontology/core.ncl index 7169d09..6679493 100644 --- a/.ontology/core.ncl +++ b/.ontology/core.ncl @@ -132,6 +132,8 @@ let d = import "../ontology/defaults/core.ncl" in description = "Migration system for onboarding existing projects into the ontoref protocol. Provides .ontology/ stub templates, .ontoref/config.ncl template, scripts/ontoref thin wrapper, and the adopt_ontoref mode+form+script that wire everything up idempotently.", artifact_paths = [ "ontoref", + "justfile", + "justfiles/ci.just", "templates/ontology/", "templates/ontoref-config.ncl", "templates/scripts-ontoref", @@ -163,6 +165,7 @@ let d = import "../ontology/defaults/core.ncl" in "crates/ontoref-daemon/src/ui/qa_ncl.rs", "crates/ontoref-daemon/src/ui/drift_watcher.rs", "crates/ontoref-daemon/src/mcp/mod.rs", + "justfiles/ci.just", ], }, diff --git a/justfiles/ci.just b/justfiles/ci.just index 575e2f5..590536d 100644 --- a/justfiles/ci.just +++ b/justfiles/ci.just @@ -184,6 +184,23 @@ hooks-run-all: @echo "🪝 Running pre-commit on all files..." pre-commit run --all-files +# ============================================================================== +# Install +# ============================================================================== + +# Build ontoref-daemon with default features (db,nats,ui,mcp) and install to ~/.local/bin +install-daemon: + #!/usr/bin/env bash + set -euo pipefail + echo "Building ontoref-daemon (features: db nats ui mcp)..." + cargo build --release -p ontoref-daemon + dest="${HOME}/.local/bin/ontoref-daemon" + mkdir -p "${HOME}/.local/bin" + cp target/release/ontoref-daemon "${dest}" + chmod +x "${dest}" + echo "Installed: ${dest}" + "${dest}" --version 2>/dev/null || true + # ============================================================================== # Utility Commands # ============================================================================== diff --git a/justfiles/rust-axum b/justfiles/rust-axum deleted file mode 120000 index 92dcf27..0000000 --- a/justfiles/rust-axum +++ /dev/null @@ -1 +0,0 @@ -/Users/Akasha/Tools/dev-system/languages/rust/just-modules/axum \ No newline at end of file diff --git a/justfiles/rust-cargo b/justfiles/rust-cargo deleted file mode 120000 index 3d031bf..0000000 --- a/justfiles/rust-cargo +++ /dev/null @@ -1 +0,0 @@ -/Users/Akasha/Tools/dev-system/languages/rust/just-modules/cargo \ No newline at end of file diff --git a/justfiles/rust-leptos b/justfiles/rust-leptos deleted file mode 120000 index 29df629..0000000 --- a/justfiles/rust-leptos +++ /dev/null @@ -1 +0,0 @@ -/Users/Akasha/Tools/dev-system/languages/rust/just-modules/leptos \ No newline at end of file