@bike4mind/cli 0.2.31-feat-wolfram-alpha-tool.19541 → 0.2.31-feat-python-playground.19625
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-C2IQKNSV.js → artifactExtractor-HSTGLMPL.js} +1 -1
- package/dist/{chunk-WZURXWHI.js → chunk-2PXPXXDN.js} +116 -7
- package/dist/{chunk-KTHRGR3M.js → chunk-EEGKRFVP.js} +43 -20
- package/dist/{chunk-RCVCDNU6.js → chunk-LAZAO77H.js} +2 -8
- package/dist/{chunk-WO3ITPAK.js → chunk-RTD3GUAP.js} +2 -2
- package/dist/{chunk-DRPTZ5JQ.js → chunk-S3S2FV2N.js} +6 -6
- package/dist/{chunk-MHXRROUI.js → chunk-ZHXVJFCI.js} +2 -2
- package/dist/commands/doctorCommand.js +1 -1
- package/dist/commands/updateCommand.js +1 -1
- package/dist/{create-3DD2VF24.js → create-ICV35GRO.js} +3 -3
- package/dist/index.js +1726 -352
- package/dist/{llmMarkdownGenerator-6F3NRN2U.js → llmMarkdownGenerator-6FOXI2T4.js} +1 -1
- package/dist/{markdownGenerator-I6SXLUQY.js → markdownGenerator-6RY7C5B7.js} +1 -1
- package/dist/{mementoService-IVERNAPK.js → mementoService-OHL67X43.js} +3 -3
- package/dist/{src-4LH7F47S.js → src-O2DE2WAD.js} +7 -1
- package/dist/{src-SSG6BPOK.js → src-ZR2BFWLN.js} +2 -2
- package/dist/{subtractCredits-OOGV44PO.js → subtractCredits-OPURYRNV.js} +3 -3
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
CurationArtifactType
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EEGKRFVP.js";
|
|
5
5
|
|
|
6
6
|
// ../../b4m-core/packages/services/dist/src/notebookCurationService/artifactExtractor.js
|
|
7
7
|
var ARTIFACT_TAG_REGEX = /<artifact\s+(.*?)>([\s\S]*?)<\/artifact>/gi;
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
dayjsConfig_default,
|
|
17
17
|
extractSnippetMeta,
|
|
18
18
|
settingsMap
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-EEGKRFVP.js";
|
|
20
20
|
import {
|
|
21
21
|
Logger
|
|
22
22
|
} from "./chunk-PFBYGCOW.js";
|
|
@@ -2250,6 +2250,7 @@ var TEMPERATURE_ONLY_MODELS = [
|
|
|
2250
2250
|
ChatModels.CLAUDE_4_1_OPUS,
|
|
2251
2251
|
ChatModels.CLAUDE_4_5_HAIKU,
|
|
2252
2252
|
ChatModels.CLAUDE_4_5_OPUS,
|
|
2253
|
+
ChatModels.CLAUDE_4_6_SONNET,
|
|
2253
2254
|
ChatModels.CLAUDE_4_6_OPUS
|
|
2254
2255
|
];
|
|
2255
2256
|
var INITIAL_TIMEOUT_MS = 3e4;
|
|
@@ -2585,6 +2586,32 @@ var AnthropicBackend = class {
|
|
|
2585
2586
|
releaseDate: "2025-11-25",
|
|
2586
2587
|
description: "Claude 4.5 Opus with Anthropic. Top-tier extended thinking model with excellent performance for complex reasoning, coding, and creative tasks."
|
|
2587
2588
|
},
|
|
2589
|
+
{
|
|
2590
|
+
id: ChatModels.CLAUDE_4_6_SONNET,
|
|
2591
|
+
type: "text",
|
|
2592
|
+
name: "Claude 4.6 Sonnet",
|
|
2593
|
+
backend: ModelBackend.Anthropic,
|
|
2594
|
+
contextWindow: 2e5,
|
|
2595
|
+
max_tokens: 16384,
|
|
2596
|
+
can_stream: true,
|
|
2597
|
+
can_think: true,
|
|
2598
|
+
pricing: {
|
|
2599
|
+
2e5: {
|
|
2600
|
+
input: 3 / 1e6,
|
|
2601
|
+
// $3 per 1M input tokens
|
|
2602
|
+
output: 15 / 1e6
|
|
2603
|
+
// $15 per 1M output tokens
|
|
2604
|
+
}
|
|
2605
|
+
},
|
|
2606
|
+
supportsVision: true,
|
|
2607
|
+
supportsTools: true,
|
|
2608
|
+
supportsImageVariation: false,
|
|
2609
|
+
logoFile: "Anthropic_logo.png",
|
|
2610
|
+
rank: 0,
|
|
2611
|
+
trainingCutoff: "2025-10-01",
|
|
2612
|
+
releaseDate: "2026-02-19",
|
|
2613
|
+
description: "Anthropic's newest Claude 4.6 Sonnet model. Delivers enhanced performance across coding, analysis, and complex reasoning tasks with improved speed and efficiency."
|
|
2614
|
+
},
|
|
2588
2615
|
{
|
|
2589
2616
|
id: ChatModels.CLAUDE_4_6_OPUS,
|
|
2590
2617
|
type: "text",
|
|
@@ -3070,8 +3097,25 @@ IMPORTANT! Only when someone asks, remember that you are specifically the ${mode
|
|
|
3070
3097
|
return;
|
|
3071
3098
|
}
|
|
3072
3099
|
} else {
|
|
3100
|
+
this.logger.info("[AnthropicBackend] Non-streaming request", {
|
|
3101
|
+
model,
|
|
3102
|
+
hasThinking: !!apiParams.thinking,
|
|
3103
|
+
thinkingBudget: apiParams.thinking?.budget_tokens,
|
|
3104
|
+
maxTokens: apiParams.max_tokens,
|
|
3105
|
+
temperature: apiParams.temperature,
|
|
3106
|
+
isThinkingEnabled: this.isThinkingEnabled
|
|
3107
|
+
});
|
|
3073
3108
|
const response = await this._api.messages.create(apiParams, { signal: options.abortSignal });
|
|
3074
3109
|
const streamedText = [];
|
|
3110
|
+
const contentTypes = "content" in response && Array.isArray(response.content) ? response.content.map((c) => c.type || (c.text ? "text" : "unknown")) : [];
|
|
3111
|
+
this.logger.info("[AnthropicBackend] Non-streaming response received", {
|
|
3112
|
+
model,
|
|
3113
|
+
stopReason: response.stop_reason,
|
|
3114
|
+
contentBlockCount: contentTypes.length,
|
|
3115
|
+
contentTypes: contentTypes.join(","),
|
|
3116
|
+
inputTokens: response.usage?.input_tokens,
|
|
3117
|
+
outputTokens: response.usage?.output_tokens
|
|
3118
|
+
});
|
|
3075
3119
|
if ("content" in response && Array.isArray(response.content)) {
|
|
3076
3120
|
if (this.isThinkingEnabled) {
|
|
3077
3121
|
this.lastAssistantContent = response.content;
|
|
@@ -3080,12 +3124,21 @@ IMPORTANT! Only when someone asks, remember that you are specifically the ${mode
|
|
|
3080
3124
|
const content = response.content[i];
|
|
3081
3125
|
if ("text" in content) {
|
|
3082
3126
|
streamedText.push(content.text);
|
|
3127
|
+
this.logger.debug("[AnthropicBackend] Text block extracted", {
|
|
3128
|
+
blockIndex: i,
|
|
3129
|
+
textLength: content.text.length
|
|
3130
|
+
});
|
|
3083
3131
|
} else if ("type" in content) {
|
|
3084
3132
|
if (content.type === "tool_use") {
|
|
3085
3133
|
func[i] ||= {};
|
|
3086
3134
|
func[i].name = content.name;
|
|
3087
3135
|
func[i].id = content.id;
|
|
3088
3136
|
func[i].parameters = JSON.stringify(content.input || {});
|
|
3137
|
+
} else if (content.type === "thinking") {
|
|
3138
|
+
this.logger.warn("[AnthropicBackend] Unexpected thinking block in response", {
|
|
3139
|
+
blockIndex: i,
|
|
3140
|
+
thinkingLength: content.thinking?.length || 0
|
|
3141
|
+
});
|
|
3089
3142
|
}
|
|
3090
3143
|
}
|
|
3091
3144
|
}
|
|
@@ -3713,6 +3766,7 @@ var TEMPERATURE_ONLY_MODELS2 = [
|
|
|
3713
3766
|
ChatModels.CLAUDE_4_5_SONNET_BEDROCK,
|
|
3714
3767
|
ChatModels.CLAUDE_4_5_HAIKU_BEDROCK,
|
|
3715
3768
|
ChatModels.CLAUDE_4_5_OPUS_BEDROCK,
|
|
3769
|
+
ChatModels.CLAUDE_4_6_SONNET_BEDROCK,
|
|
3716
3770
|
ChatModels.CLAUDE_4_6_OPUS_BEDROCK
|
|
3717
3771
|
];
|
|
3718
3772
|
var AnthropicBedrockBackend = class extends BaseBedrockBackend {
|
|
@@ -3962,6 +4016,32 @@ var AnthropicBedrockBackend = class extends BaseBedrockBackend {
|
|
|
3962
4016
|
releaseDate: "2025-11-25",
|
|
3963
4017
|
description: "Claude 4.5 Opus via AWS Bedrock. Top-tier extended thinking model with excellent performance for complex reasoning, coding, and creative tasks."
|
|
3964
4018
|
},
|
|
4019
|
+
{
|
|
4020
|
+
id: ChatModels.CLAUDE_4_6_SONNET_BEDROCK,
|
|
4021
|
+
type: "text",
|
|
4022
|
+
name: "Claude 4.6 Sonnet",
|
|
4023
|
+
backend: ModelBackend.Bedrock,
|
|
4024
|
+
contextWindow: 2e5,
|
|
4025
|
+
max_tokens: 16384,
|
|
4026
|
+
can_stream: true,
|
|
4027
|
+
can_think: true,
|
|
4028
|
+
pricing: {
|
|
4029
|
+
2e5: {
|
|
4030
|
+
input: 3 / 1e6,
|
|
4031
|
+
// $3 per 1M input tokens
|
|
4032
|
+
output: 15 / 1e6
|
|
4033
|
+
// $15 per 1M output tokens
|
|
4034
|
+
}
|
|
4035
|
+
},
|
|
4036
|
+
supportsVision: true,
|
|
4037
|
+
supportsTools: true,
|
|
4038
|
+
supportsImageVariation: false,
|
|
4039
|
+
logoFile: "Anthropic_logo.png",
|
|
4040
|
+
rank: 0,
|
|
4041
|
+
trainingCutoff: "2025-10-01",
|
|
4042
|
+
releaseDate: "2026-02-19",
|
|
4043
|
+
description: "Anthropic's newest Claude 4.6 Sonnet model via AWS Bedrock. Delivers enhanced performance across coding, analysis, and complex reasoning tasks with improved speed and efficiency."
|
|
4044
|
+
},
|
|
3965
4045
|
{
|
|
3966
4046
|
id: ChatModels.CLAUDE_4_6_OPUS_BEDROCK,
|
|
3967
4047
|
type: "text",
|
|
@@ -4078,8 +4158,6 @@ ${modelIdentity}` : modelIdentity;
|
|
|
4078
4158
|
topP: options.topP
|
|
4079
4159
|
}
|
|
4080
4160
|
}, null, 2)}`);
|
|
4081
|
-
const bodyStr = JSON.stringify(body);
|
|
4082
|
-
console.log(`[AnthropicBedrockBackend] Request body: ${bodyStr.substring(0, 1e3)}${bodyStr.length > 1e3 ? "..." : ""}`);
|
|
4083
4161
|
return {
|
|
4084
4162
|
modelId,
|
|
4085
4163
|
contentType: "application/json",
|
|
@@ -4137,7 +4215,30 @@ ${modelIdentity}` : modelIdentity;
|
|
|
4137
4215
|
translateChunk(model, chunk) {
|
|
4138
4216
|
try {
|
|
4139
4217
|
const response = chunk;
|
|
4218
|
+
const contentTypes = response.content.map((c) => c.type);
|
|
4219
|
+
const thinkingBlocks = response.content.filter((c) => c.type === "thinking");
|
|
4220
|
+
console.log(`[AnthropicBedrockBackend] Response received:`, {
|
|
4221
|
+
model,
|
|
4222
|
+
stopReason: response.stop_reason,
|
|
4223
|
+
contentBlockCount: response.content.length,
|
|
4224
|
+
contentTypes: contentTypes.join(","),
|
|
4225
|
+
hasThinkingBlocks: thinkingBlocks.length > 0,
|
|
4226
|
+
thinkingBlockCount: thinkingBlocks.length,
|
|
4227
|
+
inputTokens: response.usage?.input_tokens,
|
|
4228
|
+
outputTokens: response.usage?.output_tokens
|
|
4229
|
+
});
|
|
4230
|
+
if (thinkingBlocks.length > 0) {
|
|
4231
|
+
console.warn(`[AnthropicBedrockBackend] Unexpected thinking blocks in response`, {
|
|
4232
|
+
thinkingBlockCount: thinkingBlocks.length,
|
|
4233
|
+
thinkingLengths: thinkingBlocks.map((b) => b.thinking?.length || 0)
|
|
4234
|
+
});
|
|
4235
|
+
}
|
|
4140
4236
|
const textContent = response.content.filter((item) => item.type === "text").map((item) => item.text || "").join("");
|
|
4237
|
+
console.log(`[AnthropicBedrockBackend] Text extracted:`, {
|
|
4238
|
+
textLength: textContent.length,
|
|
4239
|
+
textPreview: textContent.substring(0, 200),
|
|
4240
|
+
endsWithCloseBrace: textContent.trim().endsWith("}")
|
|
4241
|
+
});
|
|
4141
4242
|
const toolUseBlocks = response.content.filter((item) => item.type === "tool_use");
|
|
4142
4243
|
let choice;
|
|
4143
4244
|
if (toolUseBlocks.length > 0) {
|
|
@@ -7659,6 +7760,7 @@ function getLlmByModel(apiKeyTable, options) {
|
|
|
7659
7760
|
case ChatModels.CLAUDE_4_5_SONNET_BEDROCK:
|
|
7660
7761
|
case ChatModels.CLAUDE_4_5_HAIKU_BEDROCK:
|
|
7661
7762
|
case ChatModels.CLAUDE_4_5_OPUS_BEDROCK:
|
|
7763
|
+
case ChatModels.CLAUDE_4_6_SONNET_BEDROCK:
|
|
7662
7764
|
case ChatModels.CLAUDE_4_6_OPUS_BEDROCK:
|
|
7663
7765
|
return new AnthropicBedrockBackend();
|
|
7664
7766
|
case ChatModels.LLAMA3_INSTRUCT_8B_V1:
|
|
@@ -11757,9 +11859,16 @@ function findAutomaticFallback(originalModel, availableModels, apiKeyTable, logg
|
|
|
11757
11859
|
"gemini-2.5-flash-preview-05-20": ["claude-3-5-haiku-20241022", "gpt-4o-mini", "claude-3-haiku-20240307"],
|
|
11758
11860
|
"gemini-1.5-pro": ["claude-3-5-sonnet-20241022", "gpt-4o", "claude-3-opus-20240229"],
|
|
11759
11861
|
"gemini-1.5-flash": ["claude-3-5-haiku-20241022", "gpt-4o-mini", "claude-3-haiku-20240307"],
|
|
11760
|
-
// Claude 4.5/4.6
|
|
11761
|
-
"claude-opus-4-5-20251101": [
|
|
11762
|
-
|
|
11862
|
+
// Claude 4.5/4.6 models fallback hierarchy
|
|
11863
|
+
"claude-opus-4-5-20251101": [
|
|
11864
|
+
"claude-sonnet-4-6",
|
|
11865
|
+
"claude-sonnet-4-5-20250929",
|
|
11866
|
+
"gpt-5",
|
|
11867
|
+
"claude-haiku-4-5-20251001"
|
|
11868
|
+
],
|
|
11869
|
+
"claude-opus-4-6": ["claude-sonnet-4-6", "claude-sonnet-4-5-20250929", "gpt-5", "claude-haiku-4-5-20251001"],
|
|
11870
|
+
"claude-sonnet-4-6": ["claude-sonnet-4-5-20250929", "claude-opus-4-5-20251101", "gpt-5"],
|
|
11871
|
+
"claude-sonnet-4-5-20250929": ["claude-sonnet-4-6", "claude-haiku-4-5-20251001", "gpt-5"],
|
|
11763
11872
|
// Claude models fallback to other Claude models or GPT
|
|
11764
11873
|
"claude-3-5-sonnet-20241022": ["claude-3-opus-20240229", "gpt-4o", "claude-3-sonnet-20240229"],
|
|
11765
11874
|
"claude-3-opus-20240229": ["claude-3-5-sonnet-20241022", "gpt-4o", "claude-3-sonnet-20240229"],
|
|
@@ -11769,7 +11878,7 @@ function findAutomaticFallback(originalModel, availableModels, apiKeyTable, logg
|
|
|
11769
11878
|
};
|
|
11770
11879
|
const preferences = fallbackPreferences[originalModel.id] || [];
|
|
11771
11880
|
if (preferences.length === 0) {
|
|
11772
|
-
preferences.push("claude-sonnet-4-5-20250929", "gpt-5", "claude-haiku-4-5-20251001");
|
|
11881
|
+
preferences.push("claude-sonnet-4-6", "claude-sonnet-4-5-20250929", "gpt-5", "claude-haiku-4-5-20251001");
|
|
11773
11882
|
}
|
|
11774
11883
|
for (const modelId of preferences) {
|
|
11775
11884
|
const fallbackModel = availableModels.find((m) => m.id === modelId);
|
|
@@ -133,6 +133,7 @@ var ChatModels;
|
|
|
133
133
|
ChatModels2["CLAUDE_4_5_SONNET_BEDROCK"] = "us.anthropic.claude-sonnet-4-5-20250929-v1:0";
|
|
134
134
|
ChatModels2["CLAUDE_4_5_HAIKU_BEDROCK"] = "us.anthropic.claude-haiku-4-5-20251001-v1:0";
|
|
135
135
|
ChatModels2["CLAUDE_4_5_OPUS_BEDROCK"] = "global.anthropic.claude-opus-4-5-20251101-v1:0";
|
|
136
|
+
ChatModels2["CLAUDE_4_6_SONNET_BEDROCK"] = "anthropic.claude-sonnet-4-6";
|
|
136
137
|
ChatModels2["CLAUDE_4_6_OPUS_BEDROCK"] = "global.anthropic.claude-opus-4-6-v1";
|
|
137
138
|
ChatModels2["CLAUDE_3_OPUS"] = "claude-3-opus-20240229";
|
|
138
139
|
ChatModels2["CLAUDE_3_5_HAIKU_ANTHROPIC"] = "claude-3-5-haiku-20241022";
|
|
@@ -144,6 +145,7 @@ var ChatModels;
|
|
|
144
145
|
ChatModels2["CLAUDE_4_5_SONNET"] = "claude-sonnet-4-5-20250929";
|
|
145
146
|
ChatModels2["CLAUDE_4_5_HAIKU"] = "claude-haiku-4-5-20251001";
|
|
146
147
|
ChatModels2["CLAUDE_4_5_OPUS"] = "claude-opus-4-5-20251101";
|
|
148
|
+
ChatModels2["CLAUDE_4_6_SONNET"] = "claude-sonnet-4-6";
|
|
147
149
|
ChatModels2["CLAUDE_4_6_OPUS"] = "claude-opus-4-6";
|
|
148
150
|
ChatModels2["JURASSIC2_ULTRA"] = "ai21.j2-ultra-v1";
|
|
149
151
|
ChatModels2["JURASSIC2_MID"] = "ai21.j2-mid-v1";
|
|
@@ -307,7 +309,6 @@ var b4mLLMTools = z5.enum([
|
|
|
307
309
|
"weather_info",
|
|
308
310
|
"web_search",
|
|
309
311
|
"web_fetch",
|
|
310
|
-
"wolfram_alpha",
|
|
311
312
|
"math_evaluate",
|
|
312
313
|
"mermaid_chart",
|
|
313
314
|
"current_datetime",
|
|
@@ -482,6 +483,15 @@ var LatticeArtifactSchema = ArtifactSchema.extend({
|
|
|
482
483
|
lastComputedAt: z6.date().optional()
|
|
483
484
|
})
|
|
484
485
|
});
|
|
486
|
+
var PythonArtifactSchema = ArtifactSchema.extend({
|
|
487
|
+
type: z6.literal("python"),
|
|
488
|
+
metadata: ArtifactMetadataSchema.extend({
|
|
489
|
+
packages: z6.array(z6.string()).default([]),
|
|
490
|
+
hasOutput: z6.boolean().default(false),
|
|
491
|
+
executionState: z6.enum(["idle", "running", "completed", "error"]).optional(),
|
|
492
|
+
lastExecutionTime: z6.number().optional()
|
|
493
|
+
})
|
|
494
|
+
});
|
|
485
495
|
var MermaidChartMetadataSchema = z6.object({
|
|
486
496
|
chartType: z6.enum([
|
|
487
497
|
"flowchart",
|
|
@@ -516,7 +526,8 @@ var ClaudeArtifactMimeTypes = {
|
|
|
516
526
|
RECHARTS: "application/vnd.ant.recharts",
|
|
517
527
|
CODE: "application/vnd.ant.code",
|
|
518
528
|
MARKDOWN: "text/markdown",
|
|
519
|
-
LATTICE: "application/vnd.b4m.lattice"
|
|
529
|
+
LATTICE: "application/vnd.b4m.lattice",
|
|
530
|
+
PYTHON: "application/vnd.ant.python"
|
|
520
531
|
};
|
|
521
532
|
|
|
522
533
|
// ../../b4m-core/packages/common/dist/src/types/entities/AppFileTypes.js
|
|
@@ -1460,7 +1471,12 @@ var StreamedChatCompletionAction = z10.object({
|
|
|
1460
1471
|
endTime: z10.number().optional()
|
|
1461
1472
|
}).optional(),
|
|
1462
1473
|
// Add fallback info to support backend fallback mechanism
|
|
1463
|
-
fallbackInfo: FallbackInfoSchema.optional()
|
|
1474
|
+
fallbackInfo: FallbackInfoSchema.optional(),
|
|
1475
|
+
// UI side-effects dispatched on the client when streaming completes
|
|
1476
|
+
uiSideEffects: z10.array(z10.object({
|
|
1477
|
+
type: z10.string(),
|
|
1478
|
+
payload: z10.unknown()
|
|
1479
|
+
})).optional()
|
|
1464
1480
|
}).partial().nullable()
|
|
1465
1481
|
});
|
|
1466
1482
|
var StreamedRapidReplyAction = z10.object({
|
|
@@ -2504,7 +2520,6 @@ var SettingKeySchema = z21.enum([
|
|
|
2504
2520
|
"SystemFiles",
|
|
2505
2521
|
"OpenWeatherKey",
|
|
2506
2522
|
"SerperKey",
|
|
2507
|
-
"WolframAlphaKey",
|
|
2508
2523
|
"VectorThreshold",
|
|
2509
2524
|
"bflApiKey",
|
|
2510
2525
|
"EnableMCPServer",
|
|
@@ -2830,7 +2845,12 @@ var LT = LIVEOPS_TRIAGE_VALIDATION_LIMITS;
|
|
|
2830
2845
|
var LiveopsTriageConfigSchema = z21.object({
|
|
2831
2846
|
// General settings
|
|
2832
2847
|
enabled: z21.boolean().default(false),
|
|
2848
|
+
slackWorkspaceId: z21.string().optional(),
|
|
2849
|
+
// MongoDB ObjectId of the Slack workspace to use
|
|
2833
2850
|
slackChannelId: z21.string(),
|
|
2851
|
+
// Source channel - where errors are read from
|
|
2852
|
+
slackOutputChannelId: z21.string().optional(),
|
|
2853
|
+
// Output channel - where summaries are posted (defaults to slackChannelId if not set)
|
|
2834
2854
|
githubOwner: z21.string(),
|
|
2835
2855
|
githubRepo: z21.string(),
|
|
2836
2856
|
// Model configuration
|
|
@@ -2954,13 +2974,10 @@ var API_SERVICE_GROUPS = {
|
|
|
2954
2974
|
},
|
|
2955
2975
|
SEARCH: {
|
|
2956
2976
|
id: "searchAPIService",
|
|
2957
|
-
name: "Search
|
|
2958
|
-
description: "Search
|
|
2977
|
+
name: "Search Service",
|
|
2978
|
+
description: "Serper Search API integration settings",
|
|
2959
2979
|
icon: "Search",
|
|
2960
|
-
settings: [
|
|
2961
|
-
{ key: "SerperKey", order: 1 },
|
|
2962
|
-
{ key: "WolframAlphaKey", order: 2 }
|
|
2963
|
-
]
|
|
2980
|
+
settings: [{ key: "SerperKey", order: 1 }]
|
|
2964
2981
|
},
|
|
2965
2982
|
CALENDAR: {
|
|
2966
2983
|
id: "calendarAPIService",
|
|
@@ -3743,16 +3760,6 @@ var settingsMap = {
|
|
|
3743
3760
|
order: 1,
|
|
3744
3761
|
isSensitive: true
|
|
3745
3762
|
}),
|
|
3746
|
-
WolframAlphaKey: makeStringSetting({
|
|
3747
|
-
key: "WolframAlphaKey",
|
|
3748
|
-
name: "Wolfram Alpha API Key",
|
|
3749
|
-
defaultValue: "",
|
|
3750
|
-
description: "The AppID for Wolfram Alpha LLM API. Get one at developer.wolframalpha.com.",
|
|
3751
|
-
category: "Tools",
|
|
3752
|
-
group: API_SERVICE_GROUPS.SEARCH.id,
|
|
3753
|
-
order: 2,
|
|
3754
|
-
isSensitive: true
|
|
3755
|
-
}),
|
|
3756
3763
|
VectorThreshold: makeNumberSetting({
|
|
3757
3764
|
key: "VectorThreshold",
|
|
3758
3765
|
name: "Vector Threshold",
|
|
@@ -9122,6 +9129,16 @@ var MermaidArtifactV2Schema = BaseArtifactSchema.extend({
|
|
|
9122
9129
|
description: z28.string().optional()
|
|
9123
9130
|
})
|
|
9124
9131
|
});
|
|
9132
|
+
var PythonArtifactV2Schema = BaseArtifactSchema.extend({
|
|
9133
|
+
type: z28.literal("python"),
|
|
9134
|
+
content: z28.string(),
|
|
9135
|
+
metadata: EnhancedArtifactMetadataSchema.extend({
|
|
9136
|
+
packages: z28.array(z28.string()).default([]),
|
|
9137
|
+
hasOutput: z28.boolean().default(false),
|
|
9138
|
+
executionState: z28.enum(["idle", "running", "completed", "error"]).optional(),
|
|
9139
|
+
lastExecutionTime: z28.number().optional()
|
|
9140
|
+
})
|
|
9141
|
+
});
|
|
9125
9142
|
var ArtifactStatuses;
|
|
9126
9143
|
(function(ArtifactStatuses2) {
|
|
9127
9144
|
ArtifactStatuses2["DRAFT"] = "draft";
|
|
@@ -9145,6 +9162,9 @@ var validateSvgArtifactV2 = (data) => {
|
|
|
9145
9162
|
var validateMermaidArtifactV2 = (data) => {
|
|
9146
9163
|
return MermaidArtifactV2Schema.parse(data);
|
|
9147
9164
|
};
|
|
9165
|
+
var validatePythonArtifactV2 = (data) => {
|
|
9166
|
+
return PythonArtifactV2Schema.parse(data);
|
|
9167
|
+
};
|
|
9148
9168
|
|
|
9149
9169
|
// ../../b4m-core/packages/common/dist/src/schemas/questmaster.js
|
|
9150
9170
|
import { z as z29 } from "zod";
|
|
@@ -10187,6 +10207,7 @@ export {
|
|
|
10187
10207
|
MermaidArtifactSchema,
|
|
10188
10208
|
RechartsArtifactSchema,
|
|
10189
10209
|
LatticeArtifactSchema,
|
|
10210
|
+
PythonArtifactSchema,
|
|
10190
10211
|
MermaidChartMetadataSchema,
|
|
10191
10212
|
ChatHistoryItemWithArtifactsSchema,
|
|
10192
10213
|
ArtifactOperationSchema,
|
|
@@ -10535,12 +10556,14 @@ export {
|
|
|
10535
10556
|
HtmlArtifactV2Schema,
|
|
10536
10557
|
SvgArtifactV2Schema,
|
|
10537
10558
|
MermaidArtifactV2Schema,
|
|
10559
|
+
PythonArtifactV2Schema,
|
|
10538
10560
|
ArtifactStatuses,
|
|
10539
10561
|
validateBaseArtifact,
|
|
10540
10562
|
validateReactArtifactV2,
|
|
10541
10563
|
validateHtmlArtifactV2,
|
|
10542
10564
|
validateSvgArtifactV2,
|
|
10543
10565
|
validateMermaidArtifactV2,
|
|
10566
|
+
validatePythonArtifactV2,
|
|
10544
10567
|
QuestStatusSchema,
|
|
10545
10568
|
QuestSchema,
|
|
10546
10569
|
QuestResourceSchema,
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
getSettingsByNames,
|
|
7
7
|
obfuscateApiKey,
|
|
8
8
|
secureParameters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2PXPXXDN.js";
|
|
10
10
|
import {
|
|
11
11
|
ApiKeyType,
|
|
12
12
|
MementoTier,
|
|
13
13
|
isSupportedEmbeddingModel
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EEGKRFVP.js";
|
|
15
15
|
|
|
16
16
|
// ../../b4m-core/packages/services/dist/src/apiKeyService/get.js
|
|
17
17
|
import { z } from "zod";
|
|
@@ -62,11 +62,6 @@ var getOpenWeatherKey = async (adapters) => {
|
|
|
62
62
|
const settings = await db.adminSettings.findBySettingName("OpenWeatherKey");
|
|
63
63
|
return settings?.settingValue;
|
|
64
64
|
};
|
|
65
|
-
var getWolframAlphaKey = async (adapters) => {
|
|
66
|
-
const { db } = adapters;
|
|
67
|
-
const settings = await db.adminSettings.findBySettingName("WolframAlphaKey");
|
|
68
|
-
return settings?.settingValue;
|
|
69
|
-
};
|
|
70
65
|
var getEffectiveApiKey = async (userId, params, adapters) => {
|
|
71
66
|
const { db } = adapters;
|
|
72
67
|
const apiKey = await getApiKey(userId, params, adapters);
|
|
@@ -234,7 +229,6 @@ function findMostSimilarMemento(targetEmbedding, mementos) {
|
|
|
234
229
|
export {
|
|
235
230
|
getSerperKey,
|
|
236
231
|
getOpenWeatherKey,
|
|
237
|
-
getWolframAlphaKey,
|
|
238
232
|
getEffectiveApiKey,
|
|
239
233
|
getRelevantMementos,
|
|
240
234
|
findMostSimilarMemento
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
getSettingsMap,
|
|
8
8
|
getSettingsValue,
|
|
9
9
|
secureParameters
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2PXPXXDN.js";
|
|
11
11
|
import {
|
|
12
12
|
KnowledgeType,
|
|
13
13
|
SupportedFabFileMimeTypes
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-EEGKRFVP.js";
|
|
15
15
|
|
|
16
16
|
// ../../b4m-core/packages/services/dist/src/fabFileService/create.js
|
|
17
17
|
import { z } from "zod";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// package.json
|
|
4
4
|
var package_default = {
|
|
5
5
|
name: "@bike4mind/cli",
|
|
6
|
-
version: "0.2.31-feat-
|
|
6
|
+
version: "0.2.31-feat-python-playground.19625+2188a6ca0",
|
|
7
7
|
type: "module",
|
|
8
8
|
description: "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
9
9
|
license: "UNLICENSED",
|
|
@@ -114,10 +114,10 @@ var package_default = {
|
|
|
114
114
|
},
|
|
115
115
|
devDependencies: {
|
|
116
116
|
"@bike4mind/agents": "0.1.0",
|
|
117
|
-
"@bike4mind/common": "2.52.1-feat-
|
|
118
|
-
"@bike4mind/mcp": "1.31.1-feat-
|
|
119
|
-
"@bike4mind/services": "2.50.1-feat-
|
|
120
|
-
"@bike4mind/utils": "2.7.1-feat-
|
|
117
|
+
"@bike4mind/common": "2.52.1-feat-python-playground.19625+2188a6ca0",
|
|
118
|
+
"@bike4mind/mcp": "1.31.1-feat-python-playground.19625+2188a6ca0",
|
|
119
|
+
"@bike4mind/services": "2.50.1-feat-python-playground.19625+2188a6ca0",
|
|
120
|
+
"@bike4mind/utils": "2.7.1-feat-python-playground.19625+2188a6ca0",
|
|
121
121
|
"@types/better-sqlite3": "^7.6.13",
|
|
122
122
|
"@types/diff": "^5.0.9",
|
|
123
123
|
"@types/jsonwebtoken": "^9.0.4",
|
|
@@ -138,7 +138,7 @@ var package_default = {
|
|
|
138
138
|
optionalDependencies: {
|
|
139
139
|
"@vscode/ripgrep": "^1.17.0"
|
|
140
140
|
},
|
|
141
|
-
gitHead: "
|
|
141
|
+
gitHead: "2188a6ca0657db95ea8770071ddb90cc84b8b601"
|
|
142
142
|
};
|
|
143
143
|
|
|
144
144
|
// src/utils/updateChecker.ts
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
BadRequestError,
|
|
4
4
|
secureParameters
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2PXPXXDN.js";
|
|
6
6
|
import {
|
|
7
7
|
CompletionApiUsageTransaction,
|
|
8
8
|
GenericCreditDeductTransaction,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
TextGenerationUsageTransaction,
|
|
13
13
|
TransferCreditTransaction,
|
|
14
14
|
VideoGenerationUsageTransaction
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EEGKRFVP.js";
|
|
16
16
|
|
|
17
17
|
// ../../b4m-core/packages/services/dist/src/creditService/subtractCredits.js
|
|
18
18
|
import { z } from "zod";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createFabFile,
|
|
4
4
|
createFabFileSchema
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-RTD3GUAP.js";
|
|
6
|
+
import "./chunk-2PXPXXDN.js";
|
|
7
|
+
import "./chunk-EEGKRFVP.js";
|
|
8
8
|
import "./chunk-PFBYGCOW.js";
|
|
9
9
|
export {
|
|
10
10
|
createFabFile,
|