@bike4mind/cli 0.2.37-fix-cli-missing-runtime-deps.20082 → 0.2.37-fix-overloaded-retry-backoff.20081
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/{chunk-AOP6RYDY.js → chunk-7KNY7K4J.js} +1 -1
- package/dist/{chunk-4F4DAZ35.js → chunk-BAC2Z4ZH.js} +9 -9
- package/dist/{chunk-XIB66EG7.js → chunk-DUQ53WJZ.js} +2 -2
- package/dist/{chunk-NJQYWIDJ.js → chunk-J5HUFBDQ.js} +1 -1
- package/dist/{chunk-LJG44UT3.js → chunk-MGN57HOU.js} +1 -1
- package/dist/{chunk-5YLGNW2B.js → chunk-ZYCQYXDE.js} +12 -0
- package/dist/commands/doctorCommand.js +1 -1
- package/dist/commands/headlessCommand.js +5 -5
- package/dist/commands/updateCommand.js +1 -1
- package/dist/{create-IFIWNV4T.js → create-XR2Y3CVD.js} +2 -2
- package/dist/index.js +6 -6
- package/dist/{mementoService-ABCCDW6T.js → mementoService-5E3UWNRR.js} +2 -2
- package/dist/{src-D6KSYF2W.js → src-3BRZNGCI.js} +3 -1
- package/dist/{subtractCredits-QKF6HTX3.js → subtractCredits-OPM5736N.js} +2 -2
- package/package.json +9 -9
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// package.json
|
|
4
4
|
var package_default = {
|
|
5
5
|
name: "@bike4mind/cli",
|
|
6
|
-
version: "0.2.37-fix-
|
|
6
|
+
version: "0.2.37-fix-overloaded-retry-backoff.20081+93547881e",
|
|
7
7
|
type: "module",
|
|
8
8
|
description: "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
9
9
|
license: "UNLICENSED",
|
|
@@ -74,13 +74,10 @@ var package_default = {
|
|
|
74
74
|
diff: "^8.0.2",
|
|
75
75
|
dotenv: "^16.3.1",
|
|
76
76
|
"eventsource-parser": "^3.0.6",
|
|
77
|
-
fdir: "^6.5.0",
|
|
78
77
|
"file-type": "^18.7.0",
|
|
79
78
|
"fuse.js": "^7.1.0",
|
|
80
|
-
fzf: "^0.5.2",
|
|
81
79
|
glob: "^13.0.0",
|
|
82
80
|
"gray-matter": "^4.0.3",
|
|
83
|
-
ignore: "^7.0.5",
|
|
84
81
|
ink: "^6.5.1",
|
|
85
82
|
"ink-select-input": "^6.2.0",
|
|
86
83
|
"ink-spinner": "^5.0.0",
|
|
@@ -117,10 +114,10 @@ var package_default = {
|
|
|
117
114
|
},
|
|
118
115
|
devDependencies: {
|
|
119
116
|
"@bike4mind/agents": "0.1.0",
|
|
120
|
-
"@bike4mind/common": "2.58.1-fix-
|
|
121
|
-
"@bike4mind/mcp": "1.32.6-fix-
|
|
122
|
-
"@bike4mind/services": "2.54.2-fix-
|
|
123
|
-
"@bike4mind/utils": "2.11.1-fix-
|
|
117
|
+
"@bike4mind/common": "2.58.1-fix-overloaded-retry-backoff.20081+93547881e",
|
|
118
|
+
"@bike4mind/mcp": "1.32.6-fix-overloaded-retry-backoff.20081+93547881e",
|
|
119
|
+
"@bike4mind/services": "2.54.2-fix-overloaded-retry-backoff.20081+93547881e",
|
|
120
|
+
"@bike4mind/utils": "2.11.1-fix-overloaded-retry-backoff.20081+93547881e",
|
|
124
121
|
"@types/better-sqlite3": "^7.6.13",
|
|
125
122
|
"@types/diff": "^5.0.9",
|
|
126
123
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -129,6 +126,9 @@ var package_default = {
|
|
|
129
126
|
"@types/react": "^19.2.7",
|
|
130
127
|
"@types/uuid": "^9.0.7",
|
|
131
128
|
"@types/yargs": "^17.0.32",
|
|
129
|
+
fdir: "^6.5.0",
|
|
130
|
+
fzf: "^0.5.2",
|
|
131
|
+
ignore: "^7.0.5",
|
|
132
132
|
"ink-testing-library": "^4.0.0",
|
|
133
133
|
tsup: "^8.5.1",
|
|
134
134
|
tsx: "^4.21.0",
|
|
@@ -138,7 +138,7 @@ var package_default = {
|
|
|
138
138
|
optionalDependencies: {
|
|
139
139
|
"@vscode/ripgrep": "^1.17.0"
|
|
140
140
|
},
|
|
141
|
-
gitHead: "
|
|
141
|
+
gitHead: "93547881e3881ec31228965009301cc55590c545"
|
|
142
142
|
};
|
|
143
143
|
|
|
144
144
|
// src/utils/updateChecker.ts
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getOpenWeatherKey,
|
|
5
5
|
getSerperKey,
|
|
6
6
|
getWolframAlphaKey
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-J5HUFBDQ.js";
|
|
8
8
|
import {
|
|
9
9
|
BFLImageService,
|
|
10
10
|
BaseStorage,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
OpenAIBackend,
|
|
17
17
|
OpenAIImageService,
|
|
18
18
|
XAIImageService
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZYCQYXDE.js";
|
|
20
20
|
import {
|
|
21
21
|
Logger
|
|
22
22
|
} from "./chunk-PFBYGCOW.js";
|
|
@@ -12161,6 +12161,17 @@ function shouldTriggerFallback(error) {
|
|
|
12161
12161
|
];
|
|
12162
12162
|
return fallbackTriggers.some((trigger) => message.includes(trigger));
|
|
12163
12163
|
}
|
|
12164
|
+
function isOverloadedError(error) {
|
|
12165
|
+
const message = error.message.toLowerCase();
|
|
12166
|
+
if (isAxiosError2(error)) {
|
|
12167
|
+
const status = error.response?.status;
|
|
12168
|
+
if (status === 429 || status === 529 || status === 503) {
|
|
12169
|
+
return true;
|
|
12170
|
+
}
|
|
12171
|
+
}
|
|
12172
|
+
const overloadedTriggers = ["overloaded", "rate limit", "capacity", "too many requests", "529"];
|
|
12173
|
+
return overloadedTriggers.some((trigger) => message.includes(trigger));
|
|
12174
|
+
}
|
|
12164
12175
|
function validateFallbackModel(fallbackModelId, availableModels, apiKeyTable, logger) {
|
|
12165
12176
|
logger.info(`\u{1F504} Validating fallback model ${fallbackModelId} from frontend`);
|
|
12166
12177
|
const model = availableModels.find((m) => m.id === fallbackModelId);
|
|
@@ -12790,6 +12801,7 @@ export {
|
|
|
12790
12801
|
validateMermaidSyntax,
|
|
12791
12802
|
isMermaidSyntax,
|
|
12792
12803
|
shouldTriggerFallback,
|
|
12804
|
+
isOverloadedError,
|
|
12793
12805
|
validateFallbackModel,
|
|
12794
12806
|
getLlmWithFallback,
|
|
12795
12807
|
isModelAccessible,
|
|
@@ -36,13 +36,13 @@ import {
|
|
|
36
36
|
isReadOnlyTool,
|
|
37
37
|
loadContextFiles,
|
|
38
38
|
setWebSocketToolExecutor
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-DUQ53WJZ.js";
|
|
40
40
|
import "../chunk-BDQBOLYG.js";
|
|
41
|
-
import "../chunk-
|
|
41
|
+
import "../chunk-J5HUFBDQ.js";
|
|
42
42
|
import "../chunk-GQGOWACU.js";
|
|
43
|
-
import "../chunk-
|
|
44
|
-
import "../chunk-
|
|
45
|
-
import "../chunk-
|
|
43
|
+
import "../chunk-MGN57HOU.js";
|
|
44
|
+
import "../chunk-7KNY7K4J.js";
|
|
45
|
+
import "../chunk-ZYCQYXDE.js";
|
|
46
46
|
import "../chunk-PFBYGCOW.js";
|
|
47
47
|
import "../chunk-BPFEGDC7.js";
|
|
48
48
|
import {
|
package/dist/index.js
CHANGED
|
@@ -46,13 +46,13 @@ import {
|
|
|
46
46
|
setWebSocketToolExecutor,
|
|
47
47
|
substituteArguments,
|
|
48
48
|
warmFileCache
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-DUQ53WJZ.js";
|
|
50
50
|
import "./chunk-BDQBOLYG.js";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-J5HUFBDQ.js";
|
|
52
52
|
import "./chunk-GQGOWACU.js";
|
|
53
|
-
import "./chunk-
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-MGN57HOU.js";
|
|
54
|
+
import "./chunk-7KNY7K4J.js";
|
|
55
|
+
import "./chunk-ZYCQYXDE.js";
|
|
56
56
|
import "./chunk-PFBYGCOW.js";
|
|
57
57
|
import "./chunk-BPFEGDC7.js";
|
|
58
58
|
import {
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
import {
|
|
63
63
|
checkForUpdate,
|
|
64
64
|
package_default
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-BAC2Z4ZH.js";
|
|
66
66
|
import {
|
|
67
67
|
selectActiveBackgroundAgents,
|
|
68
68
|
useCliStore
|
|
@@ -115,6 +115,7 @@ import {
|
|
|
115
115
|
isGPT5ModelWithToolSupport,
|
|
116
116
|
isMermaidSyntax,
|
|
117
117
|
isModelAccessible,
|
|
118
|
+
isOverloadedError,
|
|
118
119
|
isPlainText,
|
|
119
120
|
isPrivateIP,
|
|
120
121
|
isPrivateOrInternalHostname,
|
|
@@ -139,7 +140,7 @@ import {
|
|
|
139
140
|
validateUrlForFetch,
|
|
140
141
|
warmUpSettingsCache,
|
|
141
142
|
withRetry
|
|
142
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-ZYCQYXDE.js";
|
|
143
144
|
import {
|
|
144
145
|
Logger,
|
|
145
146
|
NotificationDeduplicator,
|
|
@@ -273,6 +274,7 @@ export {
|
|
|
273
274
|
isMermaidSyntax,
|
|
274
275
|
isModelAccessible,
|
|
275
276
|
isNearLimit,
|
|
277
|
+
isOverloadedError,
|
|
276
278
|
isPlainText,
|
|
277
279
|
isPrivateIP,
|
|
278
280
|
isPrivateOrInternalHostname,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bike4mind/cli",
|
|
3
|
-
"version": "0.2.37-fix-
|
|
3
|
+
"version": "0.2.37-fix-overloaded-retry-backoff.20081+93547881e",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -71,13 +71,10 @@
|
|
|
71
71
|
"diff": "^8.0.2",
|
|
72
72
|
"dotenv": "^16.3.1",
|
|
73
73
|
"eventsource-parser": "^3.0.6",
|
|
74
|
-
"fdir": "^6.5.0",
|
|
75
74
|
"file-type": "^18.7.0",
|
|
76
75
|
"fuse.js": "^7.1.0",
|
|
77
|
-
"fzf": "^0.5.2",
|
|
78
76
|
"glob": "^13.0.0",
|
|
79
77
|
"gray-matter": "^4.0.3",
|
|
80
|
-
"ignore": "^7.0.5",
|
|
81
78
|
"ink": "^6.5.1",
|
|
82
79
|
"ink-select-input": "^6.2.0",
|
|
83
80
|
"ink-spinner": "^5.0.0",
|
|
@@ -114,10 +111,10 @@
|
|
|
114
111
|
},
|
|
115
112
|
"devDependencies": {
|
|
116
113
|
"@bike4mind/agents": "0.1.0",
|
|
117
|
-
"@bike4mind/common": "2.58.1-fix-
|
|
118
|
-
"@bike4mind/mcp": "1.32.6-fix-
|
|
119
|
-
"@bike4mind/services": "2.54.2-fix-
|
|
120
|
-
"@bike4mind/utils": "2.11.1-fix-
|
|
114
|
+
"@bike4mind/common": "2.58.1-fix-overloaded-retry-backoff.20081+93547881e",
|
|
115
|
+
"@bike4mind/mcp": "1.32.6-fix-overloaded-retry-backoff.20081+93547881e",
|
|
116
|
+
"@bike4mind/services": "2.54.2-fix-overloaded-retry-backoff.20081+93547881e",
|
|
117
|
+
"@bike4mind/utils": "2.11.1-fix-overloaded-retry-backoff.20081+93547881e",
|
|
121
118
|
"@types/better-sqlite3": "^7.6.13",
|
|
122
119
|
"@types/diff": "^5.0.9",
|
|
123
120
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -126,6 +123,9 @@
|
|
|
126
123
|
"@types/react": "^19.2.7",
|
|
127
124
|
"@types/uuid": "^9.0.7",
|
|
128
125
|
"@types/yargs": "^17.0.32",
|
|
126
|
+
"fdir": "^6.5.0",
|
|
127
|
+
"fzf": "^0.5.2",
|
|
128
|
+
"ignore": "^7.0.5",
|
|
129
129
|
"ink-testing-library": "^4.0.0",
|
|
130
130
|
"tsup": "^8.5.1",
|
|
131
131
|
"tsx": "^4.21.0",
|
|
@@ -135,5 +135,5 @@
|
|
|
135
135
|
"optionalDependencies": {
|
|
136
136
|
"@vscode/ripgrep": "^1.17.0"
|
|
137
137
|
},
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "93547881e3881ec31228965009301cc55590c545"
|
|
139
139
|
}
|