test(cli): follow agent names in profile e2e expectations
This commit is contained in:
1 parent
ff563d07e0
commit
fbfc91bcba
4 files changed
+13
-13
No files matched your search
@@ -102,11 +102,11 @@ describe('dsh run with Agent Teams enabled', () => {
|
||||
expect(eventTypes).not.toContain('team/member')
|
||||
const catalog = root!.filter(record => record.type === 'subagent/catalog').map(record => record.data)
|
||||
expect(catalog).toEqual(expect.arrayContaining([
|
||||
expect.objectContaining({ version: 0, childId: workflowChild![0]?.id }),
|
||||
expect.objectContaining({ version: 0, label: 'Own deterministic implementation.' }),
|
||||
expect.objectContaining({ version: 0, label: 'Own deterministic research.' }),
|
||||
expect.objectContaining({ version: 3, childId: workflowChild![0]?.id, name: 'agent-1' }),
|
||||
expect.objectContaining({ version: 3, label: 'Own deterministic implementation.', name: 'agent-2' }),
|
||||
expect.objectContaining({ version: 3, label: 'Own deterministic research.', name: 'agent-3' }),
|
||||
]))
|
||||
for (const entry of catalog) expect(entry).not.toHaveProperty('name')
|
||||
for (const entry of catalog) expect(entry).toHaveProperty('name')
|
||||
expect(eventTypes).not.toContain('subagent-name/bound')
|
||||
expect(eventTypes).not.toContain('team/message/queued')
|
||||
expect(eventTypes).not.toContain('team/message/delivered')
|
||||
|
||||
@@ -345,7 +345,7 @@ describe('the shipped Web composition', () => {
|
||||
'model', 'provider', 'reasoning_effort',
|
||||
]))
|
||||
for (const agent of [disabled.agent, enabled.agent]) {
|
||||
expect(toolParameterNames(ctx, agent, 'subagent_fork')).toEqual(['cwd', 'description', 'prompt'])
|
||||
expect(toolParameterNames(ctx, agent, 'subagent_fork')).toEqual(['cwd', 'description', 'name', 'prompt'])
|
||||
}
|
||||
} finally {
|
||||
await policy.dispose()
|
||||
@@ -802,7 +802,7 @@ describe.each(['web', 'desktop'] as const)('%s native subagent bundles', (surfac
|
||||
})
|
||||
try {
|
||||
for (const product of installed) {
|
||||
expect(toolParameterNames(productCtx, handle.agent, toolName(product))).toEqual(['cwd', 'description', 'prompt'])
|
||||
expect(toolParameterNames(productCtx, handle.agent, toolName(product))).toEqual(['cwd', 'description', 'name', 'prompt'])
|
||||
}
|
||||
} finally { await handle.dispose() }
|
||||
expect(spawn).not.toHaveBeenCalled()
|
||||
|
||||
@@ -79,22 +79,22 @@ describe('product-provider public Loader composition', () => {
|
||||
tools: [
|
||||
{
|
||||
name: 'subagent_codex',
|
||||
parameterNames: ['cwd', 'description', 'prompt'],
|
||||
parameterNames: ['cwd', 'description', 'name', 'prompt'],
|
||||
required: ['description', 'prompt'],
|
||||
},
|
||||
{
|
||||
name: 'subagent_claude_code',
|
||||
parameterNames: ['cwd', 'description', 'prompt'],
|
||||
parameterNames: ['cwd', 'description', 'name', 'prompt'],
|
||||
required: ['description', 'prompt'],
|
||||
},
|
||||
{
|
||||
name: 'subagent_claude_primary',
|
||||
parameterNames: ['cwd', 'description', 'prompt'],
|
||||
parameterNames: ['cwd', 'description', 'name', 'prompt'],
|
||||
required: ['description', 'prompt'],
|
||||
},
|
||||
{
|
||||
name: 'subagent_claude_secondary',
|
||||
parameterNames: ['cwd', 'description', 'prompt'],
|
||||
parameterNames: ['cwd', 'description', 'name', 'prompt'],
|
||||
required: ['description', 'prompt'],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -69,17 +69,17 @@ describe('Codex provider public Loader composition', () => {
|
||||
tools: [
|
||||
{
|
||||
name: 'subagent_codex',
|
||||
parameterNames: ['cwd', 'description', 'prompt'],
|
||||
parameterNames: ['cwd', 'description', 'name', 'prompt'],
|
||||
required: ['description', 'prompt'],
|
||||
},
|
||||
{
|
||||
name: 'subagent_codex_primary',
|
||||
parameterNames: ['cwd', 'description', 'prompt'],
|
||||
parameterNames: ['cwd', 'description', 'name', 'prompt'],
|
||||
required: ['description', 'prompt'],
|
||||
},
|
||||
{
|
||||
name: 'subagent_codex_secondary',
|
||||
parameterNames: ['cwd', 'description', 'prompt'],
|
||||
parameterNames: ['cwd', 'description', 'name', 'prompt'],
|
||||
required: ['description', 'prompt'],
|
||||
},
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user