Skip to content

Commit 263820a

Browse files
committed
test(skills): track the plain-close finish line in the skill contracts
The contract pinned the pre-#4162 wording 'agent-device close --shutdown'. Plain close now owns the boot-stop, so the contract anchors on the finish instruction itself, and the mutation fixture still removes exactly that.
1 parent 7ea483e commit 263820a

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎scripts/__tests__/simulator-skills-contract.test.ts‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ const SKILLS = [
3737
id: 'foreground platform open',
3838
requiredText: 'agent-device open <app-or-bundle-id> --platform ios --foreground',
3939
},
40-
{ id: 'device shutdown on finish', requiredText: 'agent-device close --shutdown' },
40+
{
41+
id: 'device shutdown on finish',
42+
requiredText: 'When you finish, run `agent-device close`.',
43+
},
4144
] satisfies Contract[],
4245
prohibitions: [
4346
{ id: 'version startup probe', forbiddenText: 'agent-device --version' },
@@ -65,7 +68,10 @@ const SKILLS = [
6568
id: 'foreground platform open',
6669
requiredText: 'agent-device open <app-or-package-id> --platform android --foreground',
6770
},
68-
{ id: 'device shutdown on finish', requiredText: 'agent-device close --shutdown' },
71+
{
72+
id: 'device shutdown on finish',
73+
requiredText: 'When you finish, run `agent-device close`.',
74+
},
6975
] satisfies Contract[],
7076
prohibitions: [
7177
{ id: 'version startup probe', forbiddenText: 'agent-device --version' },

0 commit comments

Comments
 (0)