feat: Modernize package with ES modules and improve error handling
- Update to ES modules syntax throughout the codebase - Add fileURLToPath and dirname imports to handle __dirname in ES modules - Upgrade Anthropic SDK from 0.10.0 to 0.39.0 - Fix JSON parsing to handle responses wrapped in Markdown code blocks - Improve documentation with clearer installation instructions - Add important notes about ES modules and SDK requirements - Update environment examples with API key format and model recommendations - Include index.js in package files list - Bump version to 1.0.2
This commit is contained in:
10
package.json
10
package.json
@@ -1,10 +1,11 @@
|
||||
{
|
||||
"name": "claude-task-master",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"description": "A task management system for AI-driven development with Claude",
|
||||
"main": "index.js",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
"claude-task-init": "./scripts/init.js"
|
||||
"claude-task-init": "scripts/init.js"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
@@ -23,7 +24,7 @@
|
||||
"author": "Eyal Toledano",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@anthropic-ai/sdk": "^0.10.0",
|
||||
"@anthropic-ai/sdk": "^0.39.0",
|
||||
"chalk": "^4.1.2",
|
||||
"commander": "^11.1.0",
|
||||
"dotenv": "^16.3.1"
|
||||
@@ -43,6 +44,7 @@
|
||||
"scripts/init.js",
|
||||
"scripts/dev.js",
|
||||
"templates/**",
|
||||
"README.md"
|
||||
"README.md",
|
||||
"index.js"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user