qwen-code/integration-tests/sdk-typescript
tanzhenxin 5d58b2f112 feat: simplify subagent model configuration with model selector
Refactor subagent model configuration from nested modelConfig object to a simple model string field for better UX and clarity.

Changes:
- Replace modelConfig object with model string in SubagentConfig interface
- Add model-selection.ts utility for parsing and validating model selectors
- Support 'inherit' keyword and bare model IDs (e.g., 'glm-5', 'claude-sonnet-4-6')
- Maintain backward compatibility by parsing legacy modelConfig frontmatter
- Update validation to reject cross-provider authType-prefixed selectors
- Update SDK types (TypeScript and Java) to reflect new schema
- Add comprehensive tests for model selection and validation
- Update documentation with model selection examples

Breaking changes:
- modelConfig.frontmatter field deprecated in favor of model field
- Cross-provider model selectors (e.g., 'openai:gpt-4') not supported for subagents

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-27 11:49:45 +08:00
..
abort-and-lifecycle.test.ts test(sdk): simplify integration tests for reliability 2026-03-16 11:23:57 +08:00
configuration-options.test.ts Add chat recording toggle (CLI + settings) and disable recording in tests 2025-12-15 13:48:38 +08:00
mcp-server.test.ts fix: sdk mcp tests 2026-02-09 11:54:20 +08:00
message-event-pairing.test.ts Fix SDK message event pairing and improve content block handling 2026-03-18 18:10:23 +08:00
multi-turn.test.ts test(sdk): simplify integration tests for reliability 2026-03-16 11:23:57 +08:00
permission-control.test.ts test(sdk): simplify integration tests for reliability 2026-03-16 11:23:57 +08:00
sdk-mcp-server.test.ts fix: sdk mcp tests 2026-02-09 11:54:20 +08:00
session-id.test.ts fix: sandbox user permission in integration tests 2026-02-15 11:02:32 +08:00
single-turn.test.ts chore: rename @qwen-code/sdk-typescript to @qwen-code/sdk 2025-12-05 21:47:26 +08:00
subagents.test.ts feat: simplify subagent model configuration with model selector 2026-03-27 11:49:45 +08:00
system-control.test.ts test: improve sdk integration tests 2026-01-27 17:10:36 +08:00
test-helper.ts feat: enhance session ID handling and error propagation 2026-02-13 21:41:38 +08:00
tool-control.test.ts test: improve sdk integration tests 2026-01-27 17:10:36 +08:00