test(rename): align Copilot and ingest-docs assertions with Agent tool

This commit is contained in:
Tom Boucher
2026-05-06 15:34:29 -04:00
parent a4cb7451ff
commit 6b9ee44e19
2 changed files with 3 additions and 3 deletions

View File

@@ -675,7 +675,7 @@ describe('copyCommandsAsCopilotSkills', () => {
// argument-hint round-trips
assert.equal(fm['argument-hint'], '[--from N] [--to N] [--only N] [--interactive]', 'argument-hint round-trips');
// allowed-tools comma-separated
assert.ok(skillContent.includes('allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion, Task'),
assert.ok(skillContent.includes('allowed-tools: Read, Write, Bash, Glob, Grep, AskUserQuestion, Agent'),
'allowed-tools is comma-separated');
// No Claude-format remnants
assert.ok(!skillContent.includes('allowed-tools:\n -'), 'NOT YAML multiline format');

View File

@@ -60,9 +60,9 @@ describe('ingest-docs command frontmatter', () => {
assert.ok(m[1].includes('--manifest'), 'argument-hint should mention --manifest');
assert.ok(m[1].includes('--resolve'), 'argument-hint should mention --resolve');
});
test('allowed-tools include AskUserQuestion and Task', () => {
test('allowed-tools include AskUserQuestion and Agent', () => {
assert.ok(content.includes('AskUserQuestion'), 'command needs AskUserQuestion for gates');
assert.ok(content.includes('- Task'), 'command needs Task for agent spawns');
assert.ok(content.includes('- Agent'), 'command needs Agent for agent spawns');
});
});