mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 12:11:09 +00:00
- Add terminal-capture engine using node-pty + xterm.js + Playwright - Add scenario runner with TypeScript configuration - Add pre-built scenarios (/about, /context, /export, /auth) - Add Cursor skills for terminal-capture and pr-review workflow - Add motivation documentation Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
46 lines
1.3 KiB
TypeScript
46 lines
1.3 KiB
TypeScript
import type { ScenarioConfig } from '../scenario-runner.js';
|
|
|
|
export default [
|
|
{
|
|
name: '/about',
|
|
spawn: ['node', 'dist/cli.js', '--yolo'],
|
|
terminal: { title: 'qwen-code', cwd: '../../..' },
|
|
flow: [
|
|
{ type: 'Hi, can you help me understand this codebase?' },
|
|
{ type: '/about' },
|
|
],
|
|
},
|
|
{
|
|
name: '/context',
|
|
spawn: ['node', 'dist/cli.js', '--yolo'],
|
|
terminal: { title: 'qwen-code', cwd: '../../..' },
|
|
flow: [
|
|
{ type: 'How do you understand this project?' },
|
|
{ type: '/context' },
|
|
],
|
|
},
|
|
|
|
{
|
|
name: '/export (tab select)',
|
|
spawn: ['node', 'dist/cli.js', '--yolo'],
|
|
terminal: { title: 'qwen-code', cwd: '../../..' },
|
|
flow: [
|
|
{ type: 'Please give me a brief introduction about yourself.' },
|
|
{ type: '/export' },
|
|
{ key: 'Tab' }, // Tab to open format selection
|
|
{ key: 'ArrowDown' }, // Down arrow to switch options
|
|
{ key: 'Enter' }, // Confirm selection
|
|
],
|
|
},
|
|
{
|
|
name: '/auth',
|
|
spawn: ['node', 'dist/cli.js', '--yolo'],
|
|
terminal: { title: 'qwen-code', cwd: '../../..' },
|
|
flow: [
|
|
{ type: '/auth' },
|
|
{ key: 'ArrowDown' }, // Select API Key
|
|
{ key: 'Enter' }, // Confirm
|
|
{ type: 'sk-test-key-123' },
|
|
],
|
|
},
|
|
] satisfies ScenarioConfig[];
|