test(rename): align Copilot and ingest-docs assertions with Agent tool
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user