claude-yes 1.17.0 → 1.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +6 -2
- package/dist/cli.js.map +3 -3
- package/dist/index.js +6 -2
- package/dist/index.js.map +3 -3
- package/index.ts +6 -2
- package/package.json +7 -7
package/index.ts
CHANGED
|
@@ -70,8 +70,12 @@ export default async function claudeYes({
|
|
|
70
70
|
|
|
71
71
|
// recommened to use bun pty in windows
|
|
72
72
|
const pty = process.versions.bun
|
|
73
|
-
? await import('bun-pty')
|
|
74
|
-
|
|
73
|
+
? await import('bun-pty').catch(() => {
|
|
74
|
+
throw new Error('Please install bun-pty');
|
|
75
|
+
})
|
|
76
|
+
: await import('node-pty').catch(() => {
|
|
77
|
+
throw new Error('Please install node-pty');
|
|
78
|
+
});
|
|
75
79
|
|
|
76
80
|
const getPtyOptions = () => ({
|
|
77
81
|
name: 'xterm-color',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-yes",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.1",
|
|
4
4
|
"description": "A wrapper tool that automates interactions with the Claude CLI by automatically handling common prompts and responses.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"import": "./dist/index.js",
|
|
28
28
|
"types": "./index.ts"
|
|
29
29
|
},
|
|
30
|
-
"main": "index.js",
|
|
30
|
+
"main": "dist/index.js",
|
|
31
31
|
"module": "index.ts",
|
|
32
32
|
"types": "./index.ts",
|
|
33
33
|
"bin": {
|
|
@@ -52,10 +52,6 @@
|
|
|
52
52
|
"prettier --write"
|
|
53
53
|
]
|
|
54
54
|
},
|
|
55
|
-
"dependencies": {
|
|
56
|
-
"bun-pty": "^0.3.2",
|
|
57
|
-
"node-pty": "^1.0.0"
|
|
58
|
-
},
|
|
59
55
|
"devDependencies": {
|
|
60
56
|
"@types/bun": "^1.2.18",
|
|
61
57
|
"@types/jest": "^30.0.0",
|
|
@@ -77,6 +73,10 @@
|
|
|
77
73
|
"yargs": "^18.0.0"
|
|
78
74
|
},
|
|
79
75
|
"peerDependencies": {
|
|
80
|
-
"typescript": "^5.8.3"
|
|
76
|
+
"typescript": "^5.8.3",
|
|
77
|
+
"node-pty": "^1.0.0"
|
|
78
|
+
},
|
|
79
|
+
"dependencies": {
|
|
80
|
+
"bun-pty": "^0.3.2"
|
|
81
81
|
}
|
|
82
82
|
}
|