Skip to content

Conversation

theodormarcu
Copy link
Collaborator

- Add typescript_runtime.go with Node.js subprocess integration
- Extend Options struct with TypeScript SDK features:
  - CanUseTool callback for permission checking
  - Hooks system for event-driven architecture
  - StreamingInput mode support
  - UseTypeScriptRuntime flag for runtime selection
- Update claude.go to prioritize TypeScript runtime with CLI fallback
- Add new error types: TypeScriptRuntimeError, NodeNotFoundError
- Extend QueryRequest to support interface{} prompt for streaming input
- Add EnhancedQuery interface with interrupt() and setPermissionMode()
- Add comprehensive tests for new TypeScript runtime features
- Create examples/typescript-features/ demonstrating new capabilities
- Maintain full backward compatibility with existing CLI-based API

Features added from TypeScript SDK:
- Permission callbacks (canUseTool)
- Hooks system (PreToolUse, PostToolUse, etc.)
- Streaming input mode
- Enhanced permission management
- Runtime detection and fallback

Co-Authored-By: [email protected] <[email protected]>
Copy link

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant