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>
21 lines
963 B
Bash
Executable File
21 lines
963 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# tbn — "thread by name". Short, directly-invokable wrapper: tbn <pattern>
|
|
# Cross-site case-insensitive substring search on thread name (v1 `tbn`).
|
|
# Maps to: nc-find.sh --name <pattern> [extra flags pass through].
|
|
#
|
|
# tbn adt # every thread whose name contains 'adt', all sites
|
|
# tbn IB_ADT --format tsv # pass-through flags go straight to nc-find
|
|
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 "tbn: usage: tbn <name-pattern> [--format tsv|table|jsonl]" >&2; exit 2; }
|
|
|
|
lib="$(_nc_resolve_lib)" || { echo "tbn: lib/ toolkit not found (set LARRY_LIB_DIR or LARRY_HOME)" >&2; exit 1; }
|
|
pat="$1"; shift
|
|
exec bash "$lib/nc-find.sh" --name "$pat" "$@"
|