From 10f6c86cf589c7a0198f0a162c191f3224afb556 Mon Sep 17 00:00:00 2001 From: JerryNee Date: Mon, 6 Jul 2026 15:58:35 -0500 Subject: [PATCH] fix(agent): update verify skill auth commands --- docs/cli-v1-agent-install/skill-template.md | 6 +++--- skills/testsprite-verify.codex.md | 4 ++-- skills/testsprite-verify.skill.md | 6 +++--- src/lib/agent-targets.test.ts | 21 +++++++++++++++++++++ 4 files changed, 29 insertions(+), 8 deletions(-) diff --git a/docs/cli-v1-agent-install/skill-template.md b/docs/cli-v1-agent-install/skill-template.md index d051a39..764e04e 100644 --- a/docs/cli-v1-agent-install/skill-template.md +++ b/docs/cli-v1-agent-install/skill-template.md @@ -61,13 +61,13 @@ because . Treat this as unverified until that's resolved." Don't claim done. ```bash testsprite --version # CLI installed? -testsprite auth whoami # credentials configured? +testsprite auth status # credentials configured? ``` - `--version` fails → the CLI isn't installed. Tell the user to install the TestSprite CLI (see the TestSprite docs) and stop; don't install it for them. -- `auth whoami` fails → no credentials. Tell the user they can run - `testsprite auth configure`, then stop. +- `auth status` fails → no credentials. Tell the user they can run + `testsprite setup`, then stop. ## 2. Find the project diff --git a/skills/testsprite-verify.codex.md b/skills/testsprite-verify.codex.md index f2c2456..a4365df 100644 --- a/skills/testsprite-verify.codex.md +++ b/skills/testsprite-verify.codex.md @@ -16,11 +16,11 @@ build/config changes, or when the repo has no TestSprite project linked. ```bash testsprite --version # CLI installed? -testsprite auth whoami # credentials valid? +testsprite auth status # credentials valid? ``` If `--version` fails, tell the user to install the CLI and stop. -If `auth whoami` fails, tell the user to run `testsprite auth configure` and stop. +If `auth status` fails, tell the user to run `testsprite setup` and stop. ### 2. Find the project diff --git a/skills/testsprite-verify.skill.md b/skills/testsprite-verify.skill.md index 650a88b..b04032b 100644 --- a/skills/testsprite-verify.skill.md +++ b/skills/testsprite-verify.skill.md @@ -56,13 +56,13 @@ because . Treat this as unverified until that's resolved." Don't claim done. ```bash testsprite --version # CLI installed? -testsprite auth whoami # credentials configured? +testsprite auth status # credentials configured? ``` - `--version` fails → the CLI isn't installed. Tell the user to install the TestSprite CLI (see the TestSprite docs) and stop; don't install it for them. -- `auth whoami` fails → no credentials. Tell the user they can run - `testsprite auth configure`, then stop. +- `auth status` fails → no credentials. Tell the user they can run + `testsprite setup`, then stop. ## 2. Find the project diff --git a/src/lib/agent-targets.test.ts b/src/lib/agent-targets.test.ts index 51bf9b5..adc6e7e 100644 --- a/src/lib/agent-targets.test.ts +++ b/src/lib/agent-targets.test.ts @@ -447,6 +447,27 @@ describe('loadCodexSkillBody', () => { }); }); +// --------------------------------------------------------------------------- +// content integrity — current auth command names +// --------------------------------------------------------------------------- + +describe('content integrity — testsprite-verify auth commands', () => { + it('uses current auth/setup commands in every canonical verify skill asset', () => { + const assets = [ + ['docs template', templateRaw], + ['own-file skill body', loadSkillBodyFor('testsprite-verify')], + ['codex skill body', codexContentFor('testsprite-verify')], + ] as const; + + for (const [name, content] of assets) { + expect(content, name).toContain('testsprite auth status'); + expect(content, name).toContain('testsprite setup'); + expect(content, name).not.toContain('auth whoami'); + expect(content, name).not.toContain('auth configure'); + } + }); +}); + // --------------------------------------------------------------------------- // MANAGED_SECTION sentinels // ---------------------------------------------------------------------------