@dahawa/hawa-cli-analysis 1.0.4 → 1.0.5
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/package.json +3 -2
- package/uclaude.js +3 -1
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dahawa/hawa-cli-analysis",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"main": "index",
|
|
5
5
|
"bin": {
|
|
6
6
|
"uclaude": "uclaude.js",
|
|
7
7
|
"ucodex": "ucodex.js"
|
|
8
8
|
},
|
|
9
9
|
"scripts": {
|
|
10
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
+
"publish": "npm publish --access public"
|
|
11
12
|
},
|
|
12
13
|
"type": "module",
|
|
13
14
|
"repository": {
|
package/uclaude.js
CHANGED
|
@@ -123,11 +123,13 @@ function start(){
|
|
|
123
123
|
|
|
124
124
|
const child = spawn(claudePath,[],{
|
|
125
125
|
env:{
|
|
126
|
+
...process.env, //包含原先环境变量
|
|
126
127
|
...anthropicEnv,
|
|
127
128
|
PIPE_PATH_PRE: process.pid
|
|
128
129
|
},
|
|
129
130
|
stdio: 'inherit', // 继承父进程 stdio,方便交互,
|
|
130
|
-
shell: true
|
|
131
|
+
shell: true,
|
|
132
|
+
cwd: process.cwd() // 设置工作目录为当前目录
|
|
131
133
|
}
|
|
132
134
|
);
|
|
133
135
|
|