From 97af273850589098a6418ff76c6358c93cdc75da Mon Sep 17 00:00:00 2001 From: Andrei Iurchenkov Date: Fri, 13 Nov 2026 20:08:11 +0100 Subject: [PATCH] fix(validate): use opencode debug agents for agent discovery OpenCode renamed 'debug agent ' to 'debug agents', which lists every agent. The old command failed make check on any machine with a current OpenCode install. List the agents once and check that both pstack agents are present. --- scripts/validate.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/validate.sh b/scripts/validate.sh index c08477b..712a108 100755 --- a/scripts/validate.sh +++ b/scripts/validate.sh @@ -52,8 +52,9 @@ else fi if command -v opencode >/dev/null 2>&1; then - XDG_DATA_HOME="$VALIDATE_TEMP/data" XDG_CACHE_HOME="$VALIDATE_TEMP/cache" opencode debug agent poteto-agent >/dev/null - XDG_DATA_HOME="$VALIDATE_TEMP/data" XDG_CACHE_HOME="$VALIDATE_TEMP/cache" opencode debug agent comment-sicko >/dev/null + XDG_DATA_HOME="$VALIDATE_TEMP/data" XDG_CACHE_HOME="$VALIDATE_TEMP/cache" opencode debug agents > "$VALIDATE_TEMP/agents.json" + grep -q '"id": "poteto-agent"' "$VALIDATE_TEMP/agents.json" + grep -q '"id": "comment-sicko"' "$VALIDATE_TEMP/agents.json" echo 'ok: OpenCode agent discovery' else echo 'ok: OpenCode CLI absent, discovery skipped'