mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 12:40:44 +00:00
- Add os.tmpdir() to allowed paths in read-file tool - Add tests for reading files from OS temp directory - Add terminal capture scenario for PR review testing This supports the PR review workflow which saves context to temp files. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
18 lines
487 B
TypeScript
18 lines
487 B
TypeScript
import type { ScenarioConfig } from '../scenario-runner.js';
|
|
|
|
export default {
|
|
name: 'pr-2371-review',
|
|
spawn: ['node', 'dist/cli.js', '--yolo'],
|
|
terminal: { title: 'qwen-code', cwd: '../../..' },
|
|
flow: [
|
|
{
|
|
type: '/review https://github.com/QwenLM/qwen-code/pull/2371',
|
|
streaming: {
|
|
delayMs: 5000,
|
|
intervalMs: 10000, // Every 10s
|
|
count: 60, // 10 minutes total (60 * 10s)
|
|
gif: true,
|
|
},
|
|
},
|
|
],
|
|
} satisfies ScenarioConfig;
|