Skip to content

Commit 10f6c86

Browse files
committed
fix(agent): update verify skill auth commands
1 parent 3305dfa commit 10f6c86

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
@@ -16,11 +16,11 @@ build/config changes, or when the repo has no TestSprite project linked.
1616

1717
```bash
1818
testsprite --version # CLI installed?
19-
testsprite auth whoami # credentials valid?
19+
testsprite auth status # credentials valid?
2020
```
2121

2222
If `--version` fails, tell the user to install the CLI and stop.
23-
If `auth whoami` fails, tell the user to run `testsprite auth configure` and stop.
23+
If `auth status` fails, tell the user to run `testsprite setup` and stop.
2424

2525
### 2. Find the project
2626

skills/testsprite-verify.skill.md

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

5757
```bash
5858
testsprite --version # CLI installed?
59-
testsprite auth whoami # credentials configured?
59+
testsprite auth status # credentials configured?
6060
```
6161

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

6767
## 2. Find the project
6868

src/lib/agent-targets.test.ts

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

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

0 commit comments

Comments
 (0)