@bike4mind/cli 0.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/README.md +246 -0
- package/bin/bike4mind-cli.mjs +66 -0
- package/dist/artifactExtractor-QN34RFDM.js +181 -0
- package/dist/chunk-BDQBOLYG.js +120 -0
- package/dist/chunk-BPFEGDC7.js +192 -0
- package/dist/chunk-CC67R4RB.js +345 -0
- package/dist/chunk-CPNUKQQ3.js +110 -0
- package/dist/chunk-ETEFNJEP.js +235 -0
- package/dist/chunk-JVPB6BB5.js +10399 -0
- package/dist/chunk-LM6ZFZT6.js +92 -0
- package/dist/chunk-MKO2KCCS.js +6119 -0
- package/dist/chunk-PDX44BCA.js +11 -0
- package/dist/create-AYVZNCEH.js +13 -0
- package/dist/formatConverter-I7EIUVDY.js +8 -0
- package/dist/index.js +7614 -0
- package/dist/llmMarkdownGenerator-JBDLN44A.js +372 -0
- package/dist/markdownGenerator-MM5N3H5I.js +270 -0
- package/dist/mementoService-N5HYIH4Y.js +13 -0
- package/dist/notificationDeduplicator-LQAMED4L.js +10 -0
- package/dist/src-GTQ5UBCP.js +255 -0
- package/dist/src-OVEHYUVN.js +588 -0
- package/dist/subtractCredits-22TZUVZX.js +13 -0
- package/dist/utils-JPMDGUBL.js +32 -0
- package/package.json +111 -0
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
AWSBackend,
|
|
4
|
+
AdminSettingsCache,
|
|
5
|
+
AnthropicBackend,
|
|
6
|
+
AnthropicBedrockBackend,
|
|
7
|
+
BEDROCK_EMBEDDING_MODEL_MAP,
|
|
8
|
+
BFLBackend,
|
|
9
|
+
BFLImageService,
|
|
10
|
+
BadRequestError,
|
|
11
|
+
BaseBedrockBackend,
|
|
12
|
+
BaseStorage,
|
|
13
|
+
BedrockEmbeddingService,
|
|
14
|
+
CacheKeys,
|
|
15
|
+
ChoiceEndReason,
|
|
16
|
+
ChoiceStatus,
|
|
17
|
+
ChunkSchema,
|
|
18
|
+
ClientMessageSender,
|
|
19
|
+
CorruptedFileError,
|
|
20
|
+
DEFAULT_MAX_TOOL_CALLS,
|
|
21
|
+
EmbeddingFactory,
|
|
22
|
+
EmbeddingModelProvider,
|
|
23
|
+
EmbeddingService,
|
|
24
|
+
ForbiddenError,
|
|
25
|
+
FunctionQueueRunner,
|
|
26
|
+
GeminiBackend,
|
|
27
|
+
GeminiImageService,
|
|
28
|
+
HTTPError,
|
|
29
|
+
HttpStatus,
|
|
30
|
+
InternalServerError,
|
|
31
|
+
JurassicTwoBedrockBackend,
|
|
32
|
+
LlamaBedrockBackend,
|
|
33
|
+
NotFoundError,
|
|
34
|
+
OPENAI_EMBEDDING_MODEL_MAP,
|
|
35
|
+
OllamaBackend,
|
|
36
|
+
OpenAIBackend,
|
|
37
|
+
OpenAIEmbeddingService,
|
|
38
|
+
OpenAIImageService,
|
|
39
|
+
OpenaiModerationsService,
|
|
40
|
+
Pagination,
|
|
41
|
+
QuestMaster,
|
|
42
|
+
RapidReplyMappingsCache,
|
|
43
|
+
S3Storage,
|
|
44
|
+
SQSService,
|
|
45
|
+
SmartChunker,
|
|
46
|
+
TestImageService,
|
|
47
|
+
TiktokenTokenizer,
|
|
48
|
+
TitanBedrockBackend,
|
|
49
|
+
TooManyRequestsError,
|
|
50
|
+
URL_REGEX,
|
|
51
|
+
UnauthorizedError,
|
|
52
|
+
UndifferentiatedBedrockBackend,
|
|
53
|
+
UnprocessableEntityError,
|
|
54
|
+
VOYAGEAI_EMBEDDING_MODEL_MAP,
|
|
55
|
+
VoyageAIEmbeddingProvider,
|
|
56
|
+
XAIBackend,
|
|
57
|
+
XAIImageService,
|
|
58
|
+
aiImageService,
|
|
59
|
+
buildAndSortMessages,
|
|
60
|
+
calculateRetryDelay,
|
|
61
|
+
calculateTotalTokenLength,
|
|
62
|
+
checkOrganizationStorageLimit,
|
|
63
|
+
checkStorageLimit,
|
|
64
|
+
checkStorageLimitForFile,
|
|
65
|
+
cleanMermaidSyntax,
|
|
66
|
+
computeCosineSimilarity,
|
|
67
|
+
convertCodeBlocksToArtifacts,
|
|
68
|
+
createTokenizer,
|
|
69
|
+
decodeBase64DataUrl,
|
|
70
|
+
detectURLs,
|
|
71
|
+
ensureToolPairingIntegrity,
|
|
72
|
+
extractFilename,
|
|
73
|
+
extractThinkContent,
|
|
74
|
+
fetchAndConvertFabFiles,
|
|
75
|
+
fetchAndParseURL,
|
|
76
|
+
fetchAndProcessPreviousMessages,
|
|
77
|
+
generateSafeEmbedding,
|
|
78
|
+
getAvailableModels,
|
|
79
|
+
getCachedSignedUrl,
|
|
80
|
+
getFileContent,
|
|
81
|
+
getFileExtension,
|
|
82
|
+
getFileType,
|
|
83
|
+
getLastBuildDebugInfo,
|
|
84
|
+
getLlmByModel,
|
|
85
|
+
getLlmWithFallback,
|
|
86
|
+
getMimeTypeByExtension,
|
|
87
|
+
getProviderFromModel,
|
|
88
|
+
getRetryAfterMs,
|
|
89
|
+
getSettingByName,
|
|
90
|
+
getSettingsByNames,
|
|
91
|
+
getSettingsCacheStats,
|
|
92
|
+
getSettingsMap,
|
|
93
|
+
getSettingsValue,
|
|
94
|
+
hasURLs,
|
|
95
|
+
includeArtifactSystemMessage,
|
|
96
|
+
includeHardcodedSystemMessage,
|
|
97
|
+
includeImagePromptSystemMessage,
|
|
98
|
+
initializeConfig,
|
|
99
|
+
invalidateSettingsCache,
|
|
100
|
+
isMermaidSyntax,
|
|
101
|
+
isModelAccessible,
|
|
102
|
+
isPlainText,
|
|
103
|
+
isRetryableError,
|
|
104
|
+
isValidEnumValue,
|
|
105
|
+
isZodError,
|
|
106
|
+
obfuscateApiKey,
|
|
107
|
+
parseArtifacts,
|
|
108
|
+
processFabFilesServer,
|
|
109
|
+
processUrlsFromPrompt,
|
|
110
|
+
secureParameters,
|
|
111
|
+
sendToConnection,
|
|
112
|
+
shouldTriggerFallback,
|
|
113
|
+
shutdownSettingsCache,
|
|
114
|
+
urlExists,
|
|
115
|
+
usdToCredits,
|
|
116
|
+
validateFallbackModel,
|
|
117
|
+
validateMermaidSyntax,
|
|
118
|
+
warmUpSettingsCache,
|
|
119
|
+
withRetry
|
|
120
|
+
} from "./chunk-JVPB6BB5.js";
|
|
121
|
+
import {
|
|
122
|
+
Logger,
|
|
123
|
+
NotificationDeduplicator,
|
|
124
|
+
notificationDeduplicator,
|
|
125
|
+
notifyEventLogsToSlack,
|
|
126
|
+
postLowCreditsNotificationToSlack,
|
|
127
|
+
postMessageToSlack
|
|
128
|
+
} from "./chunk-CC67R4RB.js";
|
|
129
|
+
import "./chunk-MKO2KCCS.js";
|
|
130
|
+
import "./chunk-PDX44BCA.js";
|
|
131
|
+
export {
|
|
132
|
+
AWSBackend,
|
|
133
|
+
AdminSettingsCache,
|
|
134
|
+
AnthropicBackend,
|
|
135
|
+
AnthropicBedrockBackend,
|
|
136
|
+
BEDROCK_EMBEDDING_MODEL_MAP,
|
|
137
|
+
BFLBackend,
|
|
138
|
+
BFLImageService,
|
|
139
|
+
BadRequestError,
|
|
140
|
+
BaseBedrockBackend,
|
|
141
|
+
BaseStorage,
|
|
142
|
+
BedrockEmbeddingService,
|
|
143
|
+
CacheKeys,
|
|
144
|
+
ChoiceEndReason,
|
|
145
|
+
ChoiceStatus,
|
|
146
|
+
ChunkSchema,
|
|
147
|
+
ClientMessageSender,
|
|
148
|
+
CorruptedFileError,
|
|
149
|
+
DEFAULT_MAX_TOOL_CALLS,
|
|
150
|
+
EmbeddingFactory,
|
|
151
|
+
EmbeddingModelProvider,
|
|
152
|
+
EmbeddingService,
|
|
153
|
+
ForbiddenError,
|
|
154
|
+
FunctionQueueRunner,
|
|
155
|
+
GeminiBackend,
|
|
156
|
+
GeminiImageService,
|
|
157
|
+
HTTPError,
|
|
158
|
+
HttpStatus,
|
|
159
|
+
InternalServerError,
|
|
160
|
+
JurassicTwoBedrockBackend,
|
|
161
|
+
LlamaBedrockBackend,
|
|
162
|
+
Logger,
|
|
163
|
+
NotFoundError,
|
|
164
|
+
NotificationDeduplicator,
|
|
165
|
+
OPENAI_EMBEDDING_MODEL_MAP,
|
|
166
|
+
OllamaBackend,
|
|
167
|
+
OpenAIBackend,
|
|
168
|
+
OpenAIEmbeddingService,
|
|
169
|
+
OpenAIImageService,
|
|
170
|
+
OpenaiModerationsService,
|
|
171
|
+
Pagination,
|
|
172
|
+
QuestMaster,
|
|
173
|
+
RapidReplyMappingsCache,
|
|
174
|
+
S3Storage,
|
|
175
|
+
SQSService,
|
|
176
|
+
SmartChunker,
|
|
177
|
+
TestImageService,
|
|
178
|
+
TiktokenTokenizer,
|
|
179
|
+
TitanBedrockBackend,
|
|
180
|
+
TooManyRequestsError,
|
|
181
|
+
URL_REGEX,
|
|
182
|
+
UnauthorizedError,
|
|
183
|
+
UndifferentiatedBedrockBackend,
|
|
184
|
+
UnprocessableEntityError,
|
|
185
|
+
VOYAGEAI_EMBEDDING_MODEL_MAP,
|
|
186
|
+
VoyageAIEmbeddingProvider,
|
|
187
|
+
XAIBackend,
|
|
188
|
+
XAIImageService,
|
|
189
|
+
aiImageService,
|
|
190
|
+
buildAndSortMessages,
|
|
191
|
+
calculateRetryDelay,
|
|
192
|
+
calculateTotalTokenLength,
|
|
193
|
+
checkOrganizationStorageLimit,
|
|
194
|
+
checkStorageLimit,
|
|
195
|
+
checkStorageLimitForFile,
|
|
196
|
+
cleanMermaidSyntax,
|
|
197
|
+
computeCosineSimilarity,
|
|
198
|
+
convertCodeBlocksToArtifacts,
|
|
199
|
+
createTokenizer,
|
|
200
|
+
decodeBase64DataUrl,
|
|
201
|
+
detectURLs,
|
|
202
|
+
ensureToolPairingIntegrity,
|
|
203
|
+
extractFilename,
|
|
204
|
+
extractThinkContent,
|
|
205
|
+
fetchAndConvertFabFiles,
|
|
206
|
+
fetchAndParseURL,
|
|
207
|
+
fetchAndProcessPreviousMessages,
|
|
208
|
+
generateSafeEmbedding,
|
|
209
|
+
getAvailableModels,
|
|
210
|
+
getCachedSignedUrl,
|
|
211
|
+
getFileContent,
|
|
212
|
+
getFileExtension,
|
|
213
|
+
getFileType,
|
|
214
|
+
getLastBuildDebugInfo,
|
|
215
|
+
getLlmByModel,
|
|
216
|
+
getLlmWithFallback,
|
|
217
|
+
getMimeTypeByExtension,
|
|
218
|
+
getProviderFromModel,
|
|
219
|
+
getRetryAfterMs,
|
|
220
|
+
getSettingByName,
|
|
221
|
+
getSettingsByNames,
|
|
222
|
+
getSettingsCacheStats,
|
|
223
|
+
getSettingsMap,
|
|
224
|
+
getSettingsValue,
|
|
225
|
+
hasURLs,
|
|
226
|
+
includeArtifactSystemMessage,
|
|
227
|
+
includeHardcodedSystemMessage,
|
|
228
|
+
includeImagePromptSystemMessage,
|
|
229
|
+
initializeConfig,
|
|
230
|
+
invalidateSettingsCache,
|
|
231
|
+
isMermaidSyntax,
|
|
232
|
+
isModelAccessible,
|
|
233
|
+
isPlainText,
|
|
234
|
+
isRetryableError,
|
|
235
|
+
isValidEnumValue,
|
|
236
|
+
isZodError,
|
|
237
|
+
notificationDeduplicator,
|
|
238
|
+
notifyEventLogsToSlack,
|
|
239
|
+
obfuscateApiKey,
|
|
240
|
+
parseArtifacts,
|
|
241
|
+
postLowCreditsNotificationToSlack,
|
|
242
|
+
postMessageToSlack,
|
|
243
|
+
processFabFilesServer,
|
|
244
|
+
processUrlsFromPrompt,
|
|
245
|
+
secureParameters,
|
|
246
|
+
sendToConnection,
|
|
247
|
+
shouldTriggerFallback,
|
|
248
|
+
shutdownSettingsCache,
|
|
249
|
+
urlExists,
|
|
250
|
+
usdToCredits,
|
|
251
|
+
validateFallbackModel,
|
|
252
|
+
validateMermaidSyntax,
|
|
253
|
+
warmUpSettingsCache,
|
|
254
|
+
withRetry
|
|
255
|
+
};
|