Make the toolkit usable BY HAND without the `larry tools <name>` prefix. - bin/ of thin wrappers (tbn/tbp/tbh/tbpr/where/paths/route_test + a full-name passthrough per operator tool). Installer symlinks them into LARRY_BIN_DIR so `tbn adt` runs directly. Each resolves lib/ via bin/_nc_common.sh (LARRY_LIB_DIR -> ../lib -> $LARRY_HOME/lib) and execs the matching tool. - -h/--help on every wrapper. - bin/nc-completion.bash: dynamic bash completion, 3 levels (command / SITE / THREAD) enumerated LIVE from the NetConfig tree under $HCIROOT via the same lib/nc-parse.sh the tools use; cached per (HCIROOT, newest-NetConfig-mtime). Installer appends a guarded source line to the user's bash rc. - fixtures/integrator: durable 3-site demo (epic->ancout->codamx) with cross- site fan-out + fan-in and a multi-route inbound. RESOLVES the v0.9.3 fixture conflict: cross-site destination blocks are XS_*-prefixed so they never collide with a local protocol name (a collision makes nc-paths _xsite_down_targets suppress the cross-site hop, lib/nc-paths.sh:378). - DEFERRED: fetch-token.sh broker wiring (broker contract still finalizing). VERSION+LARRY_VERSION -> 0.9.4; MANIFEST regenerated (--check clean); bash -n clean; verified live on .135 (short commands off PATH + all 3 completion levels). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
23 lines
1.1 KiB
Bash
Executable File
23 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# paths — route-chain PATH tracer. Short, directly-invokable wrapper.
|
|
# Maps to: nc-paths.sh (full root-to-leaf chains, intra `-->` / cross-site `==>`).
|
|
#
|
|
# paths IB_ADT_epic epic # downstream+upstream chains for a thread
|
|
# paths IB_ADT_epic epic --down # downstream only
|
|
# paths --all # every chain across every site
|
|
# paths IB_ADT_cmx codamx --up # who feeds this thread (cross-site fan-in)
|
|
#
|
|
# All flags/args pass straight through to nc-paths.sh.
|
|
set -o pipefail
|
|
_self="${BASH_SOURCE[0]}"; [ -L "$_self" ] && _self="$(readlink "$_self")"
|
|
. "$(cd "$(dirname "$_self")" && pwd)/_nc_common.sh"
|
|
|
|
if [ "${1:-}" = "-h" ] || [ "${1:-}" = "--help" ]; then
|
|
awk 'NR==1{next} /^#/{sub(/^# ?/,""); print; next} {exit}' "${BASH_SOURCE[0]}"
|
|
exit 0
|
|
fi
|
|
[ $# -ge 1 ] || { echo "paths: usage: paths <thread> [site] [--up|--down|--all] | paths --all" >&2; exit 2; }
|
|
|
|
lib="$(_nc_resolve_lib)" || { echo "paths: lib/ toolkit not found (set LARRY_LIB_DIR or LARRY_HOME)" >&2; exit 1; }
|
|
exec bash "$lib/nc-paths.sh" "$@"
|