@x-all-in-one/coding-helper 0.0.1 → 0.0.3
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
CHANGED
|
File without changes
|
|
@@ -20,7 +20,7 @@ export interface ClaudeCodeSettingsConfig {
|
|
|
20
20
|
ANTHROPIC_DEFAULT_SONNET_MODEL?: string;
|
|
21
21
|
ANTHROPIC_DEFAULT_OPUS_MODEL?: string;
|
|
22
22
|
API_TIMEOUT_MS?: string;
|
|
23
|
-
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?:
|
|
23
|
+
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC?: string;
|
|
24
24
|
[key: string]: any;
|
|
25
25
|
};
|
|
26
26
|
[key: string]: any;
|
|
@@ -150,11 +150,12 @@ export class ClaudeCodeManager {
|
|
|
150
150
|
...cleanedEnv,
|
|
151
151
|
ANTHROPIC_BASE_URL: config.baseUrl || DEFAULT_CONFIG.ANTHROPIC_BASE_URL,
|
|
152
152
|
ANTHROPIC_API_KEY: config.apiKey,
|
|
153
|
+
ANTHROPIC_AUTH_TOKEN: config.apiKey,
|
|
153
154
|
ANTHROPIC_DEFAULT_HAIKU_MODEL: config.haikuModel,
|
|
154
155
|
ANTHROPIC_DEFAULT_SONNET_MODEL: config.sonnetModel,
|
|
155
156
|
ANTHROPIC_DEFAULT_OPUS_MODEL: config.opusModel,
|
|
156
157
|
API_TIMEOUT_MS: '3000000',
|
|
157
|
-
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: 1
|
|
158
|
+
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: "1"
|
|
158
159
|
}
|
|
159
160
|
};
|
|
160
161
|
this.saveSettings(newSettings);
|
|
@@ -187,7 +188,7 @@ export class ClaudeCodeManager {
|
|
|
187
188
|
if (!currentSettings.env) {
|
|
188
189
|
return;
|
|
189
190
|
}
|
|
190
|
-
const { ANTHROPIC_BASE_URL: _1, ANTHROPIC_API_KEY: _2, ANTHROPIC_DEFAULT_HAIKU_MODEL: _3, ANTHROPIC_DEFAULT_SONNET_MODEL: _4, ANTHROPIC_DEFAULT_OPUS_MODEL: _5, API_TIMEOUT_MS: _6, CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: _7, ...otherEnv } = currentSettings.env;
|
|
191
|
+
const { ANTHROPIC_BASE_URL: _1, ANTHROPIC_API_KEY: _2, ANTHROPIC_DEFAULT_HAIKU_MODEL: _3, ANTHROPIC_DEFAULT_SONNET_MODEL: _4, ANTHROPIC_DEFAULT_OPUS_MODEL: _5, API_TIMEOUT_MS: _6, CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: _7, ANTHROPIC_AUTH_TOKEN: _8, ...otherEnv } = currentSettings.env;
|
|
191
192
|
const newSettings = {
|
|
192
193
|
...currentSettings,
|
|
193
194
|
env: otherEnv
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@x-all-in-one/coding-helper",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "X All In One Coding Helper",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,16 +23,6 @@
|
|
|
23
23
|
"publishConfig": {
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
|
-
"scripts": {
|
|
27
|
-
"build": "tsc --project tsconfig.json && node scripts/postbuild.mjs",
|
|
28
|
-
"package": "pnpm run build",
|
|
29
|
-
"dev": "tsx watch src/cli.ts",
|
|
30
|
-
"start": "node dist/cli.js",
|
|
31
|
-
"prepublishOnly": "pnpm run build",
|
|
32
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
33
|
-
"lint": "eslint .",
|
|
34
|
-
"lint:fix": "eslint . --fix"
|
|
35
|
-
},
|
|
36
26
|
"keywords": [
|
|
37
27
|
"cli",
|
|
38
28
|
"coding",
|
|
@@ -40,7 +30,6 @@
|
|
|
40
30
|
"tools"
|
|
41
31
|
],
|
|
42
32
|
"author": "X.AIO",
|
|
43
|
-
"packageManager": "pnpm@10.15.0",
|
|
44
33
|
"dependencies": {
|
|
45
34
|
"chalk": "^5.3.0",
|
|
46
35
|
"commander": "^12.1.0",
|
|
@@ -62,5 +51,15 @@
|
|
|
62
51
|
"tsx": "^4.20.6",
|
|
63
52
|
"typescript": "^5.9.3",
|
|
64
53
|
"typescript-eslint": "^8.46.4"
|
|
54
|
+
},
|
|
55
|
+
"scripts": {
|
|
56
|
+
"build": "tsc --project tsconfig.json && node scripts/postbuild.mjs",
|
|
57
|
+
"package": "pnpm run build",
|
|
58
|
+
"dev": "tsx watch src/cli.ts",
|
|
59
|
+
"start": "node dist/cli.js",
|
|
60
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
61
|
+
"lint": "eslint .",
|
|
62
|
+
"lint:fix": "eslint . --fix",
|
|
63
|
+
"release": "pnpm run build && pnpm publish"
|
|
65
64
|
}
|
|
66
|
-
}
|
|
65
|
+
}
|