mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 12:11:09 +00:00
Also adds terminal capture test scenario for cron-loop feature. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
17 lines
483 B
TypeScript
17 lines
483 B
TypeScript
import type { ScenarioConfig } from '../scenario-runner.js';
|
|
|
|
/**
|
|
* Demonstrates the /loop skill and cron scheduling tools.
|
|
* Creates a recurring job, lists it, then clears all jobs.
|
|
*/
|
|
export default {
|
|
name: 'cron-loop',
|
|
spawn: ['node', 'dist/cli.js', '--yolo'],
|
|
terminal: { title: 'qwen-code', cwd: '../../..' },
|
|
flow: [
|
|
{ type: 'hi' },
|
|
{ type: '/loop 1m say hi to me' },
|
|
{ type: '/loop list' },
|
|
{ type: '/loop clear' },
|
|
],
|
|
} satisfies ScenarioConfig;
|