@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.
- package/.hcode/settings.json +14 -0
- package/package.json +1 -1
- package/untils.js +7 -1
package/package.json
CHANGED
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
|
-
|
|
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(){
|