Compare commits
4 Commits
d2b361420b
...
76e835d936
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
76e835d936 | ||
|
|
0dee00b03d | ||
|
|
7bda3a6123 | ||
|
|
97ef96f3d8 |
@ -131,6 +131,9 @@ let d = import "../ontology/defaults/core.ncl" in
|
|||||||
level = 'Practice,
|
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.",
|
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 = [
|
artifact_paths = [
|
||||||
|
"ontoref",
|
||||||
|
"justfile",
|
||||||
|
"justfiles/ci.just",
|
||||||
"templates/ontology/",
|
"templates/ontology/",
|
||||||
"templates/ontoref-config.ncl",
|
"templates/ontoref-config.ncl",
|
||||||
"templates/scripts-ontoref",
|
"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/qa_ncl.rs",
|
||||||
"crates/ontoref-daemon/src/ui/drift_watcher.rs",
|
"crates/ontoref-daemon/src/ui/drift_watcher.rs",
|
||||||
"crates/ontoref-daemon/src/mcp/mod.rs",
|
"crates/ontoref-daemon/src/mcp/mod.rs",
|
||||||
|
"justfiles/ci.just",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -25,7 +25,7 @@ let d = import "../ontology/defaults/state.ncl" in
|
|||||||
to = "protocol-stable",
|
to = "protocol-stable",
|
||||||
condition = "ADR-001 accepted, ontoref.dev published, at least two external projects consuming the protocol.",
|
condition = "ADR-001 accepted, ontoref.dev published, at least two external projects consuming the protocol.",
|
||||||
catalyst = "First external adoption.",
|
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,
|
horizon = 'Months,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
path = ".ontoref/logs",
|
path = ".ontoref/logs",
|
||||||
rotation = "daily",
|
rotation = "daily",
|
||||||
compress = false,
|
compress = false,
|
||||||
archive = ".ontoref/logs/archive",
|
archive = ".ontoref/logs-archive",
|
||||||
max_files = 7,
|
max_files = 7,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -36,3 +36,6 @@
|
|||||||
{"ts":"2026-03-12T20:46:12+0000","author":"unknown","actor":"developer","level":"read","action":"sync diff"}
|
{"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: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"}
|
{"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"}
|
||||||
|
|||||||
@ -184,6 +184,23 @@ hooks-run-all:
|
|||||||
@echo "🪝 Running pre-commit on all files..."
|
@echo "🪝 Running pre-commit on all files..."
|
||||||
pre-commit run --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
|
# Utility Commands
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
/Users/Akasha/Tools/dev-system/languages/rust/just-modules/axum
|
|
||||||
@ -1 +0,0 @@
|
|||||||
/Users/Akasha/Tools/dev-system/languages/rust/just-modules/cargo
|
|
||||||
@ -1 +0,0 @@
|
|||||||
/Users/Akasha/Tools/dev-system/languages/rust/just-modules/leptos
|
|
||||||
14
ontoref
14
ontoref
@ -247,11 +247,23 @@ if [[ "${ENV_ONLY}" -eq 1 ]]; then
|
|||||||
return 0 2>/dev/null || exit 0
|
return 0 2>/dev/null || exit 0
|
||||||
fi
|
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 ────────────────────────────────────────────────────────
|
# ── Rewrite help flags ────────────────────────────────────────────────────────
|
||||||
# Transform --help, -help, -h anywhere in args into: help <preceding-args>
|
# Transform --help, -help, -h anywhere in args into: help <preceding-args>
|
||||||
_has_help=0
|
_has_help=0
|
||||||
_non_help_args=()
|
_non_help_args=()
|
||||||
for _a in "${REMAINING_ARGS[@]}"; do
|
for _a in "${REMAINING_ARGS[@]+"${REMAINING_ARGS[@]}"}"; do
|
||||||
case "${_a}" in
|
case "${_a}" in
|
||||||
--help|-help|-h) _has_help=1 ;;
|
--help|-help|-h) _has_help=1 ;;
|
||||||
*) _non_help_args+=("${_a}") ;;
|
*) _non_help_args+=("${_a}") ;;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user