mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 12:40:44 +00:00
- Add streaming-insight scenario for /insight command demo - Add progress.sh script to test PTY carriage return handling - Simplify generateGif with fixed frame durations (300ms normal, 1s edges) This enhances terminal capture testing with a real-world streaming scenario and cleaner GIF generation logic. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
23 lines
752 B
TypeScript
23 lines
752 B
TypeScript
import type { ScenarioConfig } from '../scenario-runner.js';
|
|
|
|
/**
|
|
* Demonstrates streaming capture with the /insight command.
|
|
* The insight command analyzes the codebase and streams results,
|
|
* making it ideal for demonstrating streaming capture.
|
|
*/
|
|
export default {
|
|
name: 'streaming-insight',
|
|
spawn: ['node', 'dist/cli.js', '--yolo'],
|
|
terminal: { title: 'qwen-code', cwd: '../../..' },
|
|
flow: [
|
|
{
|
|
type: '/insight',
|
|
// /insight takes time to analyze the codebase and streams results
|
|
// Capture frames during the analysis to show real-time progress
|
|
streaming: {
|
|
intervalMs: 5000, // Capture every 5 seconds
|
|
count: 50, // Up to 250 seconds of capture
|
|
},
|
|
},
|
|
],
|
|
} satisfies ScenarioConfig;
|