@bike4mind/cli 0.2.29-feat-cli-sandbox.18926 → 0.2.29-feat-user-selectable-reasoning-effort.19079
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/HydrationEngine-WGYKF46H.js +9 -0
- package/dist/{artifactExtractor-5KWVJRK7.js → artifactExtractor-EYFWR6S4.js} +1 -1
- package/dist/{chunk-Q7CVAY4M.js → chunk-AYER7CYZ.js} +14 -4
- package/dist/{chunk-FKJTU7KU.js → chunk-EFIKL2MN.js} +874 -198
- package/dist/{chunk-2OADXKGK.js → chunk-H6SGVRC7.js} +2 -2
- package/dist/{chunk-CLA2MUX4.js → chunk-IVB6U2SF.js} +2 -2
- package/dist/{chunk-TQROMSHY.js → chunk-LBTTUQJM.js} +3 -78
- package/dist/chunk-RUI6HNLO.js +766 -0
- package/dist/{chunk-5JTIPGUF.js → chunk-VGC2XKLK.js} +2 -2
- package/dist/commands/mcpCommand.js +1 -2
- package/dist/{create-BDV4MI3R.js → create-RAXSDZG3.js} +3 -3
- package/dist/index.js +963 -544
- package/dist/{llmMarkdownGenerator-UIJD4IKA.js → llmMarkdownGenerator-7SMWGYBM.js} +1 -1
- package/dist/{markdownGenerator-UBZZJ3YM.js → markdownGenerator-57FPCFSG.js} +1 -1
- package/dist/{mementoService-UP7777VB.js → mementoService-D3J6HTZY.js} +3 -3
- package/dist/{src-DOG6MRCB.js → src-2VDCUBTZ.js} +141 -1
- package/dist/{src-G5MW2D7G.js → src-NHR56GQW.js} +2 -2
- package/dist/{subtractCredits-XGBHF6DI.js → subtractCredits-RDTC2BYL.js} +3 -3
- package/package.json +6 -6
- package/dist/BubblewrapRuntime-HSAAHKZN.js +0 -71
- package/dist/ProxyManager-4ZZEYTD6.js +0 -249
- package/dist/SandboxOrchestrator-MYBNKKWL.js +0 -162
- package/dist/SandboxRuntimeAdapter-JERGOSEV.js +0 -13
- package/dist/SeatbeltRuntime-O7DSMFKS.js +0 -98
- package/dist/StderrViolationParser-7OYPM2DJ.js +0 -59
- package/dist/ViolationLogStore-RIIUVURH.js +0 -104
- package/dist/chunk-4BIBE3J7.js +0 -48
- package/dist/chunk-QJCBARQN.js +0 -44
- package/dist/types-KB5NP6T4.js +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
CurationArtifactType
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EFIKL2MN.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;
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
dayjsConfig_default,
|
|
16
16
|
extractSnippetMeta,
|
|
17
17
|
settingsMap
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EFIKL2MN.js";
|
|
19
19
|
import {
|
|
20
20
|
Logger
|
|
21
21
|
} from "./chunk-OCYRD7D6.js";
|
|
@@ -227,7 +227,7 @@ var ChoiceEndReason;
|
|
|
227
227
|
// ../../b4m-core/packages/utils/dist/src/llm/toolStreamingHelper.js
|
|
228
228
|
async function handleToolResultStreaming(toolName, toolResult, streamCallback) {
|
|
229
229
|
const resultString = toolResult.toString();
|
|
230
|
-
const shouldStream = toolName === "recharts" || resultString.includes("<artifact") || resultString.includes('type="application/vnd.ant.');
|
|
230
|
+
const shouldStream = toolName === "recharts" || resultString.includes("<artifact") || resultString.includes('type="application/vnd.ant.') || resultString.includes('type="application/vnd.b4m.');
|
|
231
231
|
if (shouldStream) {
|
|
232
232
|
await streamCallback([resultString]);
|
|
233
233
|
}
|
|
@@ -6567,10 +6567,18 @@ var OpenAIBackend = class {
|
|
|
6567
6567
|
stream: true,
|
|
6568
6568
|
...options.maxTokens && { max_completion_tokens: options.maxTokens }
|
|
6569
6569
|
});
|
|
6570
|
-
|
|
6570
|
+
let reasoningEffort;
|
|
6571
|
+
if (options.reasoningEffort) {
|
|
6572
|
+
reasoningEffort = options.reasoningEffort;
|
|
6573
|
+
this.logger.debug(`Using explicit reasoning effort: ${reasoningEffort}`);
|
|
6574
|
+
} else if (options.complexity && effortMap[options.complexity]) {
|
|
6575
|
+
reasoningEffort = isGPT5_1Model || isGPT5_2Model ? effortMap_GPT5_1_2[options.complexity] : effortMap[options.complexity];
|
|
6576
|
+
this.logger.debug(`Auto-classified reasoning effort from complexity '${options.complexity}': ${reasoningEffort}`);
|
|
6577
|
+
}
|
|
6578
|
+
if (reasoningEffort) {
|
|
6571
6579
|
Object.assign(parameters, {
|
|
6572
6580
|
reasoning: {
|
|
6573
|
-
effort:
|
|
6581
|
+
effort: reasoningEffort
|
|
6574
6582
|
}
|
|
6575
6583
|
});
|
|
6576
6584
|
}
|
|
@@ -11281,6 +11289,8 @@ function mapMimeTypeToArtifactType(mimeType) {
|
|
|
11281
11289
|
case ClaudeArtifactMimeTypes.MARKDOWN:
|
|
11282
11290
|
return "code";
|
|
11283
11291
|
// Treat markdown as code for now
|
|
11292
|
+
case ClaudeArtifactMimeTypes.LATTICE:
|
|
11293
|
+
return "lattice";
|
|
11284
11294
|
default:
|
|
11285
11295
|
if (mimeType.includes("javascript") || mimeType.includes("jsx")) {
|
|
11286
11296
|
return "react";
|