qwen-code/integration-tests/terminal-capture/scenarios/streaming-insight.ts
tanzhenxin df20ec9871 feat(terminal-capture): add streaming-insight scenario and simplify GIF timing
- 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>
2026-03-05 19:13:28 +08:00

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;