devpass 0.1.0 → 0.1.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/index.js +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -440,6 +440,7 @@ async function writeJsonObject(filePath, data) {
|
|
|
440
440
|
return;
|
|
441
441
|
});
|
|
442
442
|
}
|
|
443
|
+
var DEFAULT_HAIKU_MODEL = "claude-haiku-5-5";
|
|
443
444
|
async function applyClaudeCodeConfig(params) {
|
|
444
445
|
const settingsPath = getClaudeSettingsPath(params);
|
|
445
446
|
const statePath = getClaudeStatePath(params);
|
|
@@ -454,6 +455,7 @@ async function applyClaudeCodeConfig(params) {
|
|
|
454
455
|
}
|
|
455
456
|
existingEnv.ANTHROPIC_BASE_URL = baseUrl;
|
|
456
457
|
existingEnv.ANTHROPIC_AUTH_TOKEN = authToken;
|
|
458
|
+
existingEnv.ANTHROPIC_DEFAULT_HAIKU_MODEL = (params.haikuModel || DEFAULT_HAIKU_MODEL).trim();
|
|
457
459
|
const nextSettings = {
|
|
458
460
|
...settingsData,
|
|
459
461
|
env: existingEnv
|
|
@@ -514,7 +516,11 @@ async function resetClaudeCodeConfig(options) {
|
|
|
514
516
|
}
|
|
515
517
|
const nextEnv = { ...data.env };
|
|
516
518
|
const removedKeys = [];
|
|
517
|
-
for (const key of [
|
|
519
|
+
for (const key of [
|
|
520
|
+
"ANTHROPIC_BASE_URL",
|
|
521
|
+
"ANTHROPIC_AUTH_TOKEN",
|
|
522
|
+
"ANTHROPIC_DEFAULT_HAIKU_MODEL"
|
|
523
|
+
]) {
|
|
518
524
|
if (key in nextEnv) {
|
|
519
525
|
delete nextEnv[key];
|
|
520
526
|
removedKeys.push(key);
|
package/package.json
CHANGED