Skip to content

Commit 45dcd08

Browse files
authored
fix(agent): update verify skill auth commands (#216)
1 parent 759a1c7 commit 45dcd08

4 files changed

Lines changed: 29 additions & 8 deletions

File tree

docs/cli-v1-agent-install/skill-template.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ because <X>. Treat this as unverified until that's resolved." Don't claim done.
6161

6262
```bash
6363
testsprite --version # CLI installed?
64-
testsprite auth whoami # credentials configured?
64+
testsprite auth status # credentials configured?
6565
```
6666

6767
- `--version` fails → the CLI isn't installed. Tell the user to install the
6868
TestSprite CLI (see the TestSprite docs) and stop; don't install it for them.
69-
- `auth whoami` fails → no credentials. Tell the user they can run
70-
`testsprite auth configure`, then stop.
69+
- `auth status` fails → no credentials. Tell the user they can run
70+
`testsprite setup`, then stop.
7171

7272
## 2. Find the project
7373

skills/testsprite-verify.codex.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ unverified-because-undeployed and stop. If the user explicitly named a tool
2222

2323
```bash
2424
testsprite --version # CLI installed?
25-
testsprite auth whoami # credentials valid?
25+
testsprite auth status # credentials valid?
2626
```
2727

2828
If `--version` fails, tell the user to install the CLI and stop.
29-
If `auth whoami` fails, tell the user to run `testsprite auth configure` and stop.
29+
If `auth status` fails, tell the user to run `testsprite setup` and stop.
3030

3131
### 2. Find the project
3232

skills/testsprite-verify.skill.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ because <X>. Treat this as unverified until that's resolved." Don't claim done.
6767

6868
```bash
6969
testsprite --version # CLI installed?
70-
testsprite auth whoami # credentials configured?
70+
testsprite auth status # credentials configured?
7171
```
7272

7373
- `--version` fails → the CLI isn't installed. Tell the user to install the
7474
TestSprite CLI (see the TestSprite docs) and stop; don't install it for them.
75-
- `auth whoami` fails → no credentials. Tell the user they can run
76-
`testsprite auth configure`, then stop.
75+
- `auth status` fails → no credentials. Tell the user they can run
76+
`testsprite setup`, then stop.
7777

7878
## 2. Find the project
7979

src/lib/agent-targets.test.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,27 @@ describe('loadCodexSkillBody', () => {
449449
});
450450
});
451451

452+
// ---------------------------------------------------------------------------
453+
// content integrity — current auth command names
454+
// ---------------------------------------------------------------------------
455+
456+
describe('content integrity — testsprite-verify auth commands', () => {
457+
it('uses current auth/setup commands in every canonical verify skill asset', () => {
458+
const assets = [
459+
['docs template', templateRaw],
460+
['own-file skill body', loadSkillBodyFor('testsprite-verify')],
461+
['codex skill body', codexContentFor('testsprite-verify')],
462+
] as const;
463+
464+
for (const [name, content] of assets) {
465+
expect(content, name).toContain('testsprite auth status');
466+
expect(content, name).toContain('testsprite setup');
467+
expect(content, name).not.toContain('auth whoami');
468+
expect(content, name).not.toContain('auth configure');
469+
}
470+
});
471+
});
472+
452473
// ---------------------------------------------------------------------------
453474
// MANAGED_SECTION sentinels
454475
// ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)