@bike4mind/cli 0.2.11-fix-extendend-thinking-with-tool-use.17316 → 0.2.11-fix-tool-pairing-integrity.17312
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/{artifactExtractor-3KB44W7B.js → artifactExtractor-JAGU7QRL.js} +1 -1
- package/dist/{chunk-7ORA6KGN.js → chunk-A3VAT7TT.js} +2 -2
- package/dist/{chunk-HPYQM2B7.js → chunk-CQW42LY2.js} +2 -2
- package/dist/{chunk-3OX632TE.js → chunk-DJPXSSP4.js} +0 -3
- package/dist/{chunk-7JR6VASX.js → chunk-MU4EEXAL.js} +2 -2
- package/dist/{chunk-JYH72REB.js → chunk-TFONTTOE.js} +88 -59
- package/dist/{create-MSSVWSVO.js → create-GE45KYWN.js} +3 -3
- package/dist/index.js +22 -41
- package/dist/{llmMarkdownGenerator-LCCZ76BQ.js → llmMarkdownGenerator-LXUGJ7QH.js} +1 -1
- package/dist/{markdownGenerator-4OF7GEBT.js → markdownGenerator-IMDG6OX6.js} +1 -1
- package/dist/{mementoService-A6UR5AZY.js → mementoService-GIDVVHNG.js} +3 -3
- package/dist/{src-GFWGZLJE.js → src-XCR4PATL.js} +2 -2
- package/dist/{src-7UYCXFTE.js → src-YNY32ELR.js} +1 -1
- package/dist/{subtractCredits-L52DZ3SP.js → subtractCredits-HDHG6FFY.js} +3 -3
- package/package.json +6 -6
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
BadRequestError,
|
|
4
4
|
secureParameters
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TFONTTOE.js";
|
|
6
6
|
import {
|
|
7
7
|
GenericCreditDeductTransaction,
|
|
8
8
|
ImageEditUsageTransaction,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
RealtimeVoiceUsageTransaction,
|
|
11
11
|
TextGenerationUsageTransaction,
|
|
12
12
|
TransferCreditTransaction
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DJPXSSP4.js";
|
|
14
14
|
|
|
15
15
|
// ../../b4m-core/packages/services/dist/src/creditService/subtractCredits.js
|
|
16
16
|
import { z } from "zod";
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
getSettingsMap,
|
|
8
8
|
getSettingsValue,
|
|
9
9
|
secureParameters
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TFONTTOE.js";
|
|
11
11
|
import {
|
|
12
12
|
KnowledgeType,
|
|
13
13
|
SupportedFabFileMimeTypes
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DJPXSSP4.js";
|
|
15
15
|
|
|
16
16
|
// ../../b4m-core/packages/services/dist/src/fabFileService/create.js
|
|
17
17
|
import { z } from "zod";
|
|
@@ -5901,9 +5901,6 @@ function buildSSEEvent(text, info) {
|
|
|
5901
5901
|
outputTokens: info.outputTokens
|
|
5902
5902
|
};
|
|
5903
5903
|
}
|
|
5904
|
-
if (info?.thinking && info.thinking.length > 0) {
|
|
5905
|
-
event.thinking = info.thinking;
|
|
5906
|
-
}
|
|
5907
5904
|
return event;
|
|
5908
5905
|
}
|
|
5909
5906
|
function formatSSEError(error) {
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
getSettingsByNames,
|
|
7
7
|
obfuscateApiKey,
|
|
8
8
|
secureParameters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TFONTTOE.js";
|
|
10
10
|
import {
|
|
11
11
|
ApiKeyType,
|
|
12
12
|
MementoTier,
|
|
13
13
|
isSupportedEmbeddingModel
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DJPXSSP4.js";
|
|
15
15
|
|
|
16
16
|
// ../../b4m-core/packages/services/dist/src/apiKeyService/get.js
|
|
17
17
|
import { z } from "zod";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
dayjsConfig_default,
|
|
17
17
|
extractSnippetMeta,
|
|
18
18
|
settingsMap
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-DJPXSSP4.js";
|
|
20
20
|
|
|
21
21
|
// ../../b4m-core/packages/utils/dist/src/storage/S3Storage.js
|
|
22
22
|
import { S3Client, PutObjectCommand, DeleteObjectCommand, GetObjectCommand, HeadObjectCommand } from "@aws-sdk/client-s3";
|
|
@@ -249,17 +249,6 @@ var AnthropicBackend = class {
|
|
|
249
249
|
this._api = new Anthropic({ apiKey });
|
|
250
250
|
this.logger = logger ?? new Logger();
|
|
251
251
|
}
|
|
252
|
-
/**
|
|
253
|
-
* Get thinking blocks from the last assistant content.
|
|
254
|
-
* Filters to only include thinking/redacted_thinking blocks.
|
|
255
|
-
* Returns undefined if thinking is disabled or no blocks are present.
|
|
256
|
-
*/
|
|
257
|
-
getThinkingBlocks() {
|
|
258
|
-
if (!this.isThinkingEnabled)
|
|
259
|
-
return void 0;
|
|
260
|
-
const blocks = this.lastAssistantContent.filter((block) => block?.type === "thinking" || block?.type === "redacted_thinking");
|
|
261
|
-
return blocks.length > 0 ? blocks : void 0;
|
|
262
|
-
}
|
|
263
252
|
async getModelInfo() {
|
|
264
253
|
return [
|
|
265
254
|
{
|
|
@@ -712,12 +701,8 @@ var AnthropicBackend = class {
|
|
|
712
701
|
this.logger.debug(`[Tool Execution] Last few messages:`, JSON.stringify(messages.slice(-3), null, 2));
|
|
713
702
|
await this.complete(model, messages, options, cb, toolsUsed);
|
|
714
703
|
} else {
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
await cb([null], {
|
|
718
|
-
toolsUsed,
|
|
719
|
-
thinking: thinkingBlocks
|
|
720
|
-
});
|
|
704
|
+
this.logger.debug(`[Tool Execution] executeTools=false, passing tool calls to callback`);
|
|
705
|
+
await cb([null], { toolsUsed });
|
|
721
706
|
}
|
|
722
707
|
return;
|
|
723
708
|
}
|
|
@@ -789,12 +774,8 @@ var AnthropicBackend = class {
|
|
|
789
774
|
await this.complete(model, messages, { ...options, tools: void 0, _internal: void 0 }, cb, toolsUsed);
|
|
790
775
|
}
|
|
791
776
|
} else {
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
await cb([null], {
|
|
795
|
-
toolsUsed,
|
|
796
|
-
thinking: thinkingBlocks
|
|
797
|
-
});
|
|
777
|
+
this.logger.debug(`[Tool Execution] executeTools=false, passing tool calls to callback`);
|
|
778
|
+
await cb([null], { toolsUsed });
|
|
798
779
|
}
|
|
799
780
|
return;
|
|
800
781
|
}
|
|
@@ -6267,6 +6248,8 @@ var ensureToolPairingIntegrity = (messages, logger) => {
|
|
|
6267
6248
|
return messages;
|
|
6268
6249
|
}
|
|
6269
6250
|
const toolUseIds = /* @__PURE__ */ new Set();
|
|
6251
|
+
const toolResultIds = /* @__PURE__ */ new Set();
|
|
6252
|
+
let hasToolUseBlocks = false;
|
|
6270
6253
|
let hasToolResultBlocks = false;
|
|
6271
6254
|
for (let i = 0; i < messages.length; i++) {
|
|
6272
6255
|
const message = messages[i];
|
|
@@ -6276,65 +6259,111 @@ var ensureToolPairingIntegrity = (messages, logger) => {
|
|
|
6276
6259
|
const block = content[j];
|
|
6277
6260
|
if (block.type === "tool_use" && "id" in block) {
|
|
6278
6261
|
toolUseIds.add(block.id);
|
|
6262
|
+
hasToolUseBlocks = true;
|
|
6279
6263
|
}
|
|
6280
6264
|
}
|
|
6281
6265
|
} else if (message.role === "user" && Array.isArray(message.content)) {
|
|
6282
6266
|
const content = message.content;
|
|
6283
6267
|
for (let j = 0; j < content.length; j++) {
|
|
6284
|
-
|
|
6268
|
+
const block = content[j];
|
|
6269
|
+
if (block.type === "tool_result" && "tool_use_id" in block) {
|
|
6270
|
+
toolResultIds.add(block.tool_use_id);
|
|
6285
6271
|
hasToolResultBlocks = true;
|
|
6286
|
-
break;
|
|
6287
6272
|
}
|
|
6288
6273
|
}
|
|
6289
6274
|
}
|
|
6290
6275
|
}
|
|
6291
|
-
if (!hasToolResultBlocks) {
|
|
6276
|
+
if (!hasToolUseBlocks && !hasToolResultBlocks) {
|
|
6292
6277
|
return messages;
|
|
6293
6278
|
}
|
|
6294
|
-
let
|
|
6279
|
+
let orphanedToolResultCount = 0;
|
|
6280
|
+
let orphanedToolUseCount = 0;
|
|
6295
6281
|
const result = [];
|
|
6296
6282
|
for (let i = 0; i < messages.length; i++) {
|
|
6297
6283
|
const message = messages[i];
|
|
6298
|
-
if (message.role
|
|
6299
|
-
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
hasOrphans = true;
|
|
6309
|
-
break;
|
|
6284
|
+
if (message.role === "assistant" && Array.isArray(message.content)) {
|
|
6285
|
+
const content = message.content;
|
|
6286
|
+
let hasOrphanedToolUse = false;
|
|
6287
|
+
for (let j = 0; j < content.length; j++) {
|
|
6288
|
+
const block = content[j];
|
|
6289
|
+
if (block.type === "tool_use" && "id" in block) {
|
|
6290
|
+
if (!toolResultIds.has(block.id)) {
|
|
6291
|
+
hasOrphanedToolUse = true;
|
|
6292
|
+
break;
|
|
6293
|
+
}
|
|
6310
6294
|
}
|
|
6311
6295
|
}
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6296
|
+
if (!hasOrphanedToolUse) {
|
|
6297
|
+
result.push(message);
|
|
6298
|
+
continue;
|
|
6299
|
+
}
|
|
6300
|
+
const filteredContent = [];
|
|
6301
|
+
for (let j = 0; j < content.length; j++) {
|
|
6302
|
+
const block = content[j];
|
|
6303
|
+
if (block.type === "tool_use" && "id" in block) {
|
|
6304
|
+
const toolId = block.id;
|
|
6305
|
+
if (!toolResultIds.has(toolId)) {
|
|
6306
|
+
orphanedToolUseCount++;
|
|
6307
|
+
if (logger) {
|
|
6308
|
+
logger.warn(`Removing orphaned tool_use block with id: ${toolId} (no matching tool_result)`);
|
|
6309
|
+
}
|
|
6310
|
+
continue;
|
|
6311
|
+
}
|
|
6312
|
+
}
|
|
6313
|
+
filteredContent.push(block);
|
|
6314
|
+
}
|
|
6315
|
+
if (filteredContent.length > 0) {
|
|
6316
|
+
result.push({ ...message, content: filteredContent });
|
|
6317
|
+
}
|
|
6315
6318
|
continue;
|
|
6316
6319
|
}
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
const
|
|
6322
|
-
if (
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6320
|
+
if (message.role === "user" && Array.isArray(message.content)) {
|
|
6321
|
+
const content = message.content;
|
|
6322
|
+
let hasOrphanedToolResult = false;
|
|
6323
|
+
for (let j = 0; j < content.length; j++) {
|
|
6324
|
+
const block = content[j];
|
|
6325
|
+
if (block.type === "tool_result" && "tool_use_id" in block) {
|
|
6326
|
+
if (!toolUseIds.has(block.tool_use_id)) {
|
|
6327
|
+
hasOrphanedToolResult = true;
|
|
6328
|
+
break;
|
|
6326
6329
|
}
|
|
6327
|
-
continue;
|
|
6328
6330
|
}
|
|
6329
6331
|
}
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6332
|
+
if (!hasOrphanedToolResult) {
|
|
6333
|
+
result.push(message);
|
|
6334
|
+
continue;
|
|
6335
|
+
}
|
|
6336
|
+
const filteredContent = [];
|
|
6337
|
+
for (let j = 0; j < content.length; j++) {
|
|
6338
|
+
const block = content[j];
|
|
6339
|
+
if (block.type === "tool_result" && "tool_use_id" in block) {
|
|
6340
|
+
const toolUseId = block.tool_use_id;
|
|
6341
|
+
if (!toolUseIds.has(toolUseId)) {
|
|
6342
|
+
orphanedToolResultCount++;
|
|
6343
|
+
if (logger) {
|
|
6344
|
+
logger.warn(`Removing orphaned tool_result block referencing missing tool_use_id: ${toolUseId}`);
|
|
6345
|
+
}
|
|
6346
|
+
continue;
|
|
6347
|
+
}
|
|
6348
|
+
}
|
|
6349
|
+
filteredContent.push(block);
|
|
6350
|
+
}
|
|
6351
|
+
if (filteredContent.length > 0) {
|
|
6352
|
+
result.push({ ...message, content: filteredContent });
|
|
6353
|
+
}
|
|
6354
|
+
continue;
|
|
6334
6355
|
}
|
|
6356
|
+
result.push(message);
|
|
6335
6357
|
}
|
|
6336
|
-
if (
|
|
6337
|
-
|
|
6358
|
+
if ((orphanedToolResultCount > 0 || orphanedToolUseCount > 0) && logger) {
|
|
6359
|
+
const parts = [];
|
|
6360
|
+
if (orphanedToolResultCount > 0) {
|
|
6361
|
+
parts.push(`${orphanedToolResultCount} orphaned tool_result block(s)`);
|
|
6362
|
+
}
|
|
6363
|
+
if (orphanedToolUseCount > 0) {
|
|
6364
|
+
parts.push(`${orphanedToolUseCount} orphaned tool_use block(s)`);
|
|
6365
|
+
}
|
|
6366
|
+
logger.log(`Tool pairing integrity: removed ${parts.join(" and ")} after truncation`);
|
|
6338
6367
|
}
|
|
6339
6368
|
return result;
|
|
6340
6369
|
};
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createFabFile,
|
|
4
4
|
createFabFileSchema
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-CQW42LY2.js";
|
|
6
|
+
import "./chunk-TFONTTOE.js";
|
|
7
7
|
import "./chunk-AMDXHL6S.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-DJPXSSP4.js";
|
|
9
9
|
import "./chunk-PDX44BCA.js";
|
|
10
10
|
export {
|
|
11
11
|
createFabFile,
|
package/dist/index.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
getEffectiveApiKey,
|
|
5
5
|
getOpenWeatherKey,
|
|
6
6
|
getSerperKey
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-MU4EEXAL.js";
|
|
8
|
+
import "./chunk-A3VAT7TT.js";
|
|
9
|
+
import "./chunk-CQW42LY2.js";
|
|
10
10
|
import {
|
|
11
11
|
BFLImageService,
|
|
12
12
|
BaseStorage,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
OpenAIBackend,
|
|
16
16
|
OpenAIImageService,
|
|
17
17
|
XAIImageService
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TFONTTOE.js";
|
|
19
19
|
import {
|
|
20
20
|
Logger
|
|
21
21
|
} from "./chunk-AMDXHL6S.js";
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
XAI_IMAGE_MODELS,
|
|
74
74
|
b4mLLMTools,
|
|
75
75
|
getMcpProviderMetadata
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-DJPXSSP4.js";
|
|
77
77
|
import {
|
|
78
78
|
__require
|
|
79
79
|
} from "./chunk-PDX44BCA.js";
|
|
@@ -3144,7 +3144,6 @@ ${options.context}` : this.getSystemPrompt()
|
|
|
3144
3144
|
}
|
|
3145
3145
|
if (completionInfo.toolsUsed && completionInfo.toolsUsed.length > 0) {
|
|
3146
3146
|
hadToolCalls = true;
|
|
3147
|
-
const thinkingBlocks = completionInfo.thinking || [];
|
|
3148
3147
|
for (const toolUse of completionInfo.toolsUsed) {
|
|
3149
3148
|
const toolCallId = `${toolUse.name}_${JSON.stringify(toolUse.arguments)}`;
|
|
3150
3149
|
if (processedToolIds.has(toolCallId)) {
|
|
@@ -3177,23 +3176,16 @@ ${options.context}` : this.getSystemPrompt()
|
|
|
3177
3176
|
const params = typeof toolUse.arguments === "string" ? JSON.parse(toolUse.arguments) : toolUse.arguments;
|
|
3178
3177
|
observation = await tool.toolFn(params);
|
|
3179
3178
|
const toolCallId2 = `${toolUse.name}_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
|
|
3180
|
-
const assistantContent = [
|
|
3181
|
-
// Include thinking blocks first (required by Anthropic when thinking is enabled)
|
|
3182
|
-
...thinkingBlocks,
|
|
3183
|
-
// Then the tool use
|
|
3184
|
-
{
|
|
3185
|
-
type: "tool_use",
|
|
3186
|
-
id: toolCallId2,
|
|
3187
|
-
name: toolUse.name,
|
|
3188
|
-
input: params
|
|
3189
|
-
}
|
|
3190
|
-
];
|
|
3191
|
-
this.context.logger.debug(
|
|
3192
|
-
`[assistantContent] ${assistantContent.length} blocks (${thinkingBlocks.length} thinking, 1 tool_use)`
|
|
3193
|
-
);
|
|
3194
3179
|
messages.push({
|
|
3195
3180
|
role: "assistant",
|
|
3196
|
-
content:
|
|
3181
|
+
content: [
|
|
3182
|
+
{
|
|
3183
|
+
type: "tool_use",
|
|
3184
|
+
id: toolCallId2,
|
|
3185
|
+
name: toolUse.name,
|
|
3186
|
+
input: params
|
|
3187
|
+
}
|
|
3188
|
+
]
|
|
3197
3189
|
});
|
|
3198
3190
|
messages.push({
|
|
3199
3191
|
role: "user",
|
|
@@ -11142,7 +11134,6 @@ var ServerLlmBackend = class {
|
|
|
11142
11134
|
let accumulatedText = "";
|
|
11143
11135
|
let lastUsageInfo = {};
|
|
11144
11136
|
let toolsUsed = [];
|
|
11145
|
-
let thinkingBlocks = [];
|
|
11146
11137
|
let receivedDone = false;
|
|
11147
11138
|
const parser = createParser({
|
|
11148
11139
|
onEvent: (event) => {
|
|
@@ -11156,12 +11147,9 @@ var ServerLlmBackend = class {
|
|
|
11156
11147
|
if (toolsUsed.length > 0) {
|
|
11157
11148
|
const info = {
|
|
11158
11149
|
toolsUsed,
|
|
11159
|
-
thinking: thinkingBlocks.length > 0 ? thinkingBlocks : void 0,
|
|
11160
11150
|
...lastUsageInfo
|
|
11161
11151
|
};
|
|
11162
|
-
logger.debug(
|
|
11163
|
-
`[ServerLlmBackend] Calling callback with tools, thinking blocks: ${thinkingBlocks.length}`
|
|
11164
|
-
);
|
|
11152
|
+
logger.debug("[ServerLlmBackend] Calling callback with tools, will wait for completion");
|
|
11165
11153
|
callback([cleanedText], info).catch((err) => {
|
|
11166
11154
|
logger.error("[ServerLlmBackend] Callback error:", err);
|
|
11167
11155
|
reject(err);
|
|
@@ -11217,10 +11205,6 @@ var ServerLlmBackend = class {
|
|
|
11217
11205
|
if (parsed.tools && parsed.tools.length > 0) {
|
|
11218
11206
|
toolsUsed = parsed.tools;
|
|
11219
11207
|
}
|
|
11220
|
-
if (parsed.thinking && parsed.thinking.length > 0) {
|
|
11221
|
-
thinkingBlocks = parsed.thinking;
|
|
11222
|
-
logger.debug(`[ServerLlmBackend] Received ${thinkingBlocks.length} thinking blocks`);
|
|
11223
|
-
}
|
|
11224
11208
|
if (parsed.usage) {
|
|
11225
11209
|
lastUsageInfo = {
|
|
11226
11210
|
inputTokens: parsed.usage.inputTokens,
|
|
@@ -11543,7 +11527,7 @@ import { isAxiosError as isAxiosError2 } from "axios";
|
|
|
11543
11527
|
// package.json
|
|
11544
11528
|
var package_default = {
|
|
11545
11529
|
name: "@bike4mind/cli",
|
|
11546
|
-
version: "0.2.11-fix-
|
|
11530
|
+
version: "0.2.11-fix-tool-pairing-integrity.17312+7bfc5c80f",
|
|
11547
11531
|
type: "module",
|
|
11548
11532
|
description: "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
11549
11533
|
license: "UNLICENSED",
|
|
@@ -11647,10 +11631,10 @@ var package_default = {
|
|
|
11647
11631
|
},
|
|
11648
11632
|
devDependencies: {
|
|
11649
11633
|
"@bike4mind/agents": "0.1.0",
|
|
11650
|
-
"@bike4mind/common": "2.40.1-fix-
|
|
11651
|
-
"@bike4mind/mcp": "1.20.5-fix-
|
|
11652
|
-
"@bike4mind/services": "2.35.1-fix-
|
|
11653
|
-
"@bike4mind/utils": "2.1.5-fix-
|
|
11634
|
+
"@bike4mind/common": "2.40.1-fix-tool-pairing-integrity.17312+7bfc5c80f",
|
|
11635
|
+
"@bike4mind/mcp": "1.20.5-fix-tool-pairing-integrity.17312+7bfc5c80f",
|
|
11636
|
+
"@bike4mind/services": "2.35.1-fix-tool-pairing-integrity.17312+7bfc5c80f",
|
|
11637
|
+
"@bike4mind/utils": "2.1.5-fix-tool-pairing-integrity.17312+7bfc5c80f",
|
|
11654
11638
|
"@types/better-sqlite3": "^7.6.13",
|
|
11655
11639
|
"@types/diff": "^5.0.9",
|
|
11656
11640
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -11663,7 +11647,7 @@ var package_default = {
|
|
|
11663
11647
|
typescript: "^5.9.3",
|
|
11664
11648
|
vitest: "^3.2.4"
|
|
11665
11649
|
},
|
|
11666
|
-
gitHead: "
|
|
11650
|
+
gitHead: "7bfc5c80fed342996ecbfb0c7974795bdaa75132"
|
|
11667
11651
|
};
|
|
11668
11652
|
|
|
11669
11653
|
// src/config/constants.ts
|
|
@@ -12048,8 +12032,7 @@ function CliApp() {
|
|
|
12048
12032
|
permissionPrompt: null,
|
|
12049
12033
|
trustLocationSelector: null,
|
|
12050
12034
|
rewindSelector: null,
|
|
12051
|
-
sessionSelector: null
|
|
12052
|
-
orchestrator: null
|
|
12035
|
+
sessionSelector: null
|
|
12053
12036
|
});
|
|
12054
12037
|
const [isInitialized, setIsInitialized] = useState8(false);
|
|
12055
12038
|
const [initError, setInitError] = useState8(null);
|
|
@@ -12395,10 +12378,8 @@ Remember: Use context from previous messages to understand follow-up questions.$
|
|
|
12395
12378
|
permissionManager,
|
|
12396
12379
|
config,
|
|
12397
12380
|
// Store config for synchronous access
|
|
12398
|
-
availableModels: models
|
|
12381
|
+
availableModels: models
|
|
12399
12382
|
// Store models for ConfigEditor
|
|
12400
|
-
orchestrator
|
|
12401
|
-
// Store orchestrator for step handler updates
|
|
12402
12383
|
}));
|
|
12403
12384
|
setStoreSession(newSession);
|
|
12404
12385
|
setIsInitialized(true);
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
findMostSimilarMemento,
|
|
4
4
|
getRelevantMementos
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-MU4EEXAL.js";
|
|
6
|
+
import "./chunk-TFONTTOE.js";
|
|
7
7
|
import "./chunk-AMDXHL6S.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-DJPXSSP4.js";
|
|
9
9
|
import "./chunk-PDX44BCA.js";
|
|
10
10
|
export {
|
|
11
11
|
findMostSimilarMemento,
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
validateMermaidSyntax,
|
|
121
121
|
warmUpSettingsCache,
|
|
122
122
|
withRetry
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-TFONTTOE.js";
|
|
124
124
|
import {
|
|
125
125
|
Logger,
|
|
126
126
|
NotificationDeduplicator,
|
|
@@ -129,7 +129,7 @@ import {
|
|
|
129
129
|
postLowCreditsNotificationToSlack,
|
|
130
130
|
postMessageToSlack
|
|
131
131
|
} from "./chunk-AMDXHL6S.js";
|
|
132
|
-
import "./chunk-
|
|
132
|
+
import "./chunk-DJPXSSP4.js";
|
|
133
133
|
import "./chunk-PDX44BCA.js";
|
|
134
134
|
export {
|
|
135
135
|
AWSBackend,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
SubtractCreditsSchema,
|
|
4
4
|
subtractCredits
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-A3VAT7TT.js";
|
|
6
|
+
import "./chunk-TFONTTOE.js";
|
|
7
7
|
import "./chunk-AMDXHL6S.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-DJPXSSP4.js";
|
|
9
9
|
import "./chunk-PDX44BCA.js";
|
|
10
10
|
export {
|
|
11
11
|
SubtractCreditsSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bike4mind/cli",
|
|
3
|
-
"version": "0.2.11-fix-
|
|
3
|
+
"version": "0.2.11-fix-tool-pairing-integrity.17312+7bfc5c80f",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -104,10 +104,10 @@
|
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
106
|
"@bike4mind/agents": "0.1.0",
|
|
107
|
-
"@bike4mind/common": "2.40.1-fix-
|
|
108
|
-
"@bike4mind/mcp": "1.20.5-fix-
|
|
109
|
-
"@bike4mind/services": "2.35.1-fix-
|
|
110
|
-
"@bike4mind/utils": "2.1.5-fix-
|
|
107
|
+
"@bike4mind/common": "2.40.1-fix-tool-pairing-integrity.17312+7bfc5c80f",
|
|
108
|
+
"@bike4mind/mcp": "1.20.5-fix-tool-pairing-integrity.17312+7bfc5c80f",
|
|
109
|
+
"@bike4mind/services": "2.35.1-fix-tool-pairing-integrity.17312+7bfc5c80f",
|
|
110
|
+
"@bike4mind/utils": "2.1.5-fix-tool-pairing-integrity.17312+7bfc5c80f",
|
|
111
111
|
"@types/better-sqlite3": "^7.6.13",
|
|
112
112
|
"@types/diff": "^5.0.9",
|
|
113
113
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
"typescript": "^5.9.3",
|
|
121
121
|
"vitest": "^3.2.4"
|
|
122
122
|
},
|
|
123
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "7bfc5c80fed342996ecbfb0c7974795bdaa75132"
|
|
124
124
|
}
|