@dahawa/hawa-cli-analysis 1.0.10 → 1.1.0

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.
@@ -0,0 +1,14 @@
1
+ {
2
+ "env": {},
3
+ "permissions": {
4
+ "allow": [],
5
+ "deny": [],
6
+ "ask": []
7
+ },
8
+ "autoMode": {
9
+ "enabled": false,
10
+ "model": "",
11
+ "maxConsecutiveDenials": 3,
12
+ "maxTotalDenials": 20
13
+ }
14
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dahawa/hawa-cli-analysis",
3
- "version": "1.0.10",
3
+ "version": "1.1.0",
4
4
  "main": "index",
5
5
  "bin": {
6
6
  "uclaude": "uclaude.js",
package/untils.js CHANGED
@@ -32,7 +32,13 @@ export function getCloggerFileURL(){
32
32
  }
33
33
  //C:\Users\gang.ji\AppData\Roaming\npm\node_modules\@anthropic-ai\claude-code
34
34
  export function getClaudePath(){
35
- return path.join(getGlobalNpmPath(),'@anthropic-ai',"claude-code","cli.js");
35
+ //如果 cli.js 不存在使用 cli-wrapper.cjs 兼容新的版本
36
+ const basePath = path.join(getGlobalNpmPath(),'@anthropic-ai',"claude-code");
37
+ const cliPath = path.join(basePath,"cli.js");
38
+ if(fs.existsSync(cliPath)){
39
+ return cliPath;
40
+ }
41
+ return path.join(basePath,"cli-wrapper.cjs");
36
42
  }
37
43
  //C:\Users\gang.ji\AppData\Roaming\npm\node_modules\@openai\codex\bin\codex.js
38
44
  export function getCodexPath(){