Codex support, and plainer docs

install.sh / install.ps1 synced from the source repo: they now wire the Codex
runtime where codex is on PATH, with --no-codex / -NoCodex to opt out.

README: say what gets wired and name the Windows flag spellings; drop the
stiffer wording in the licence and service sections; add a table of where the
binary, the data and the service definition actually live, since ~/.standup is
the thing people need to know about for backups and for STANDUP_HOME.

Signed-off-by: disqualifier <dev@disqualifier.me>
This commit is contained in:
dsql committed 2026-10-15 11:47:21 -04:00
1 parent 93473dd789
commit 419852e259
3 files changed
+72 -25

No files matched your search

+13 -1
View File
@@ -23,12 +23,14 @@ PKG="agent-standups"
SKILL_ONLY=0
NO_NODE=0
NO_CODEX=0
ASSUME_YES=0
while [ $# -gt 0 ]; do
case "$1" in
--skill-only) SKILL_ONLY=1 ;;
--no-node) NO_NODE=1 ;;
--no-codex) NO_CODEX=1 ;;
--yes|-y) ASSUME_YES=1 ;;
--registry) shift; REGISTRY="${1:-$REGISTRY}" ;;
--registry=*) REGISTRY="${1#--registry=}" ;;
@@ -38,6 +40,7 @@ agent-standups installer
--skill-only install the skill and hooks only; no daemon, no service
--no-node never provision Node; fall back to skill-only if too old
--no-codex never wire the Codex runtime, even where codex is installed
--registry <url> npm registry for a standalone install
--yes no prompts; also sets the provisioned Node as your default
USAGE
@@ -119,7 +122,9 @@ say " nvm : $([ "$NVM_PRESENT" = 1 ] && echo "present ($NVM_DIR_RESOLVE
# Existing install.
STANDUP_BIN=""
have standup && STANDUP_BIN="$(command -v standup)"
CODEX_BIN="$(command -v codex 2>/dev/null || true)"
say " standup : ${STANDUP_BIN:-not installed}"
say " codex : ${CODEX_BIN:-not installed}$([ -n "$CODEX_BIN" ] && [ "$NO_CODEX" = 1 ] && echo ' (--no-codex)')"
say " config : $([ -f "${STANDUP_HOME:-$HOME/.standup}/config.toml" ] && echo exists || echo absent)"
# ------------------------------------------------- 2. choose the target path --
@@ -397,7 +402,7 @@ say " standup $(standup version 2>/dev/null || echo '?') at $(command -v standu
# The runtime install ends with a synthetic Stop proving the hook is REACHABLE,
# not merely present. That needs a server answering, so start a throwaway one.
if [ "$SERVICE_ONLY" = 0 ]; then
step "installing the Claude runtime"
step "installing the agent runtimes"
PROBE_DIR="$(mktemp -d)"
# `--no-git`: the probe project is a throwaway in a bare mktemp dir, and
# `create` requires a git work tree (spec 06 §3). Without this flag it exits
@@ -421,6 +426,13 @@ if [ "$SERVICE_ONLY" = 0 ]; then
done
fi
standup install --runtime claude || warn "runtime install reported a problem; see doctor below"
# Codex only where its binary exists: `--runtime codex` writes to
# $CODEX_HOME/hooks.json, ~/.agents/skills/ and the project's AGENTS.md, and
# leaving marked blocks for a tool that is not installed is worse than
# skipping. `--no-codex` opts out on a box that does have it.
if [ "$NO_CODEX" = 0 ] && [ -n "$CODEX_BIN" ]; then
standup install --runtime codex || warn "codex runtime install reported a problem; see doctor below"
fi
[ -n "$PROBE_PID" ] && { kill "$PROBE_PID" 2>/dev/null || true; wait "$PROBE_PID" 2>/dev/null || true; PROBE_PID=""; }
rm -rf "$PROBE_DIR"; PROBE_DIR=""
fi