-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: basic TypeScript SDK #1103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
📋 Review SummaryThis PR introduces a foundational TypeScript SDK ( 🔍 General Feedback
🎯 Specific Feedback🟢 Medium
🔵 Low
✅ Highlights
|
…pescript - Introduced a new logging system with adjustable log levels (debug, info, warn, error). - Updated query options to include a logLevel parameter for controlling verbosity. - Refactored existing code to utilize the new logging system for better error handling and debugging. - Cleaned up unused code and improved the structure of the SDK.
TLDR
This PR introduces TypeScript SDK (
@qwen-code/sdk-typescript) for programmatic access to qwen-code CLI.Todo Actions
planmode in SDKDive Deeper
SDK Package
Added
packages/sdk-typescript:query()function andQueryclass for CLI interactionProcessTransportwith JSON Lines protocolallowedToolsfor fine-grained tool access controlCLI & Core Updates
Testing
Reviewer Test Plan
npm testinpackages/sdk-typescriptto verify all unit and e2e tests passquery()to send a prompt to qwen-code CLITesting Matrix
Linked issues / bugs
Part of the SDK development initiative.