Compare commits

...

4 Commits

Author SHA1 Message Date
Jesús Pérez
76e835d936
chore: update ontoref
Some checks failed
Nickel Type Check / Nickel Type Checking (push) Has been cancelled
Rust CI / Security Audit (push) Has been cancelled
Rust CI / Check + Test + Lint (nightly) (push) Has been cancelled
Rust CI / Check + Test + Lint (stable) (push) Has been cancelled
2026-03-13 00:53:15 +00:00
Jesús Pérez
0dee00b03d
chore: update ontology 2026-03-13 00:52:41 +00:00
Jesús Pérez
7bda3a6123
chore: update ontology 2026-03-13 00:52:17 +00:00
Jesús Pérez
97ef96f3d8
chore: update ontology 2026-03-13 00:41:20 +00:00
10 changed files with 43 additions and 6 deletions

View File

@ -131,6 +131,9 @@ let d = import "../ontology/defaults/core.ncl" in
level = 'Practice,
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",
@ -162,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",
],
},

View File

@ -25,7 +25,7 @@ let d = import "../ontology/defaults/state.ncl" in
to = "protocol-stable",
condition = "ADR-001 accepted, ontoref.dev published, at least two external projects consuming the protocol.",
catalyst = "First external adoption.",
blocker = "ontoref.dev not yet published; no external consumers yet.",
blocker = "ontoref.dev not yet published; no external consumers yet. Entry point UX fixed (no-args usage message, bash set -u safety).",
horizon = 'Months,
},
],

View File

@ -14,7 +14,7 @@
path = ".ontoref/logs",
rotation = "daily",
compress = false,
archive = ".ontoref/logs/archive",
archive = ".ontoref/logs-archive",
max_files = 7,
},

View File

@ -36,3 +36,6 @@
{"ts":"2026-03-12T20:46:12+0000","author":"unknown","actor":"developer","level":"read","action":"sync diff"}
{"ts":"2026-03-12T20:47:05+0000","author":"unknown","actor":"developer","level":"read","action":"sync scan"}
{"ts":"2026-03-12T20:47:09+0000","author":"unknown","actor":"developer","level":"read","action":"sync diff"}
test
{"ts":"2026-03-13T00:39:33+0000","author":"unknown","actor":"agent","level":"read","action":"adr list"}
{"ts":"2026-03-13T00:40:00+0000","author":"unknown","actor":"developer","level":"read","action":"adr list"}

4
justfile Normal file
View File

@ -0,0 +1,4 @@
import 'justfiles/ci.just'
default:
@just --list

View File

@ -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
# ==============================================================================

View File

@ -1 +0,0 @@
/Users/Akasha/Tools/dev-system/languages/rust/just-modules/axum

View File

@ -1 +0,0 @@
/Users/Akasha/Tools/dev-system/languages/rust/just-modules/cargo

View File

@ -1 +0,0 @@
/Users/Akasha/Tools/dev-system/languages/rust/just-modules/leptos

14
ontoref
View File

@ -247,11 +247,23 @@ if [[ "${ENV_ONLY}" -eq 1 ]]; then
return 0 2>/dev/null || exit 0
fi
# ── No-args usage ─────────────────────────────────────────────────────────────
if [[ "${#REMAINING_ARGS[@]}" -eq 0 ]]; then
_caller="$(basename "$0")"
echo ""
echo " ${_caller}"
echo " Usage: ./${_caller} <command> [options]"
echo ""
echo " Use './${_caller} help' for available commands"
echo ""
exit 0
fi
# ── Rewrite help flags ────────────────────────────────────────────────────────
# Transform --help, -help, -h anywhere in args into: help <preceding-args>
_has_help=0
_non_help_args=()
for _a in "${REMAINING_ARGS[@]}"; do
for _a in "${REMAINING_ARGS[@]+"${REMAINING_ARGS[@]}"}"; do
case "${_a}" in
--help|-help|-h) _has_help=1 ;;
*) _non_help_args+=("${_a}") ;;