Selaa lähdekoodia

test(examples): include task controls in CLI composition

Tianyi Cui 3 kuukautta sitten
vanhempi
sitoutus
fb7fa980b8
1 muutettua tiedostoa jossa 8 lisäystä ja 1 poistoa
  1. 8 1
      packages/examples/cli-demo/tests/cli-demo.spec.ts

+ 8 - 1
packages/examples/cli-demo/tests/cli-demo.spec.ts

@@ -89,7 +89,14 @@ describe('dsh-cli-demo app composition', () => {
       ctx.tools.register({ name, description: name, parameters: {}, execute: async () => [] })
     }
     expect(JSON.stringify(await composePrefix(ctx))).toContain('- `cli-skill`: CLI...')
-    expect((await ctx.systemPrompt.assemble()).tools.map(tool => tool.name)).toEqual(['zulu', 'alpha', 'skill'])
+    expect((await ctx.systemPrompt.assemble()).tools.map(tool => tool.name)).toEqual([
+      'zulu',
+      'alpha',
+      'skill',
+      'task_kill',
+      'task_list',
+      'task_output',
+    ])
   })
 
   it('exposes the Loader-safe namespace plugin shape and schema', () => {