Merge nucleic/olive-ember-seal-q7vk into dev

This commit is contained in:
2026-07-18 15:14:54 -07:00
commit d919c693dd
34 changed files with 624 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
Package: naros
Version: @VERSION@
Architecture: all
Maintainer: Nucleic <[email protected]>
Section: utils
Priority: optional
Description: narOS introspection CLI (NAROS.md §6.3)
`naros info [--json]` prints the capability manifest (/etc/naros/manifest.json:
tier, version, channel, snapshot, toolchains, caches); `naros version` prints
the release. Lets agents and the host ask "what can this box do" instead of
probing binary-by-binary. v1 is a POSIX sh script; a compiled multi-call
binary shared with naros-init can replace it without interface change.
+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh
# narOS introspection CLI (NAROS.md §6.3). Reads /etc/naros + /etc/os-release only.
set -eu
MANIFEST=/etc/naros/manifest.json
case "${1:-info}" in
version)
. /etc/os-release
echo "narOS ${VERSION_ID:-unknown} (${VARIANT:-?}/$(cat /etc/naros/channel 2>/dev/null || echo '?'))"
;;
info)
if [ "${2:-}" = "--json" ]; then
cat "$MANIFEST"
elif command -v jq > /dev/null 2>&1; then
jq . "$MANIFEST"
else
cat "$MANIFEST"
fi
;;
*)
echo "usage: naros [info [--json] | version]" >&2
exit 2
;;
esac