atlarix 14.52.3 → 14.52.4
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.
|
@@ -327528,6 +327528,16 @@ var init_provider_finish_error = __esm({
|
|
|
327528
327528
|
});
|
|
327529
327529
|
|
|
327530
327530
|
// src/ipc/utils/stream_chunk_tags.ts
|
|
327531
|
+
function parseToolOutput(output) {
|
|
327532
|
+
if (typeof output !== "string") return output;
|
|
327533
|
+
const trimmed = output.trim();
|
|
327534
|
+
if (!trimmed.startsWith("{")) return output;
|
|
327535
|
+
try {
|
|
327536
|
+
return JSON.parse(trimmed);
|
|
327537
|
+
} catch {
|
|
327538
|
+
return output;
|
|
327539
|
+
}
|
|
327540
|
+
}
|
|
327531
327541
|
function computeAdaptiveStallBudget(gapsMs, opts) {
|
|
327532
327542
|
const minSamples = opts.minSamples ?? ADAPTIVE_STALL_MIN_SAMPLES;
|
|
327533
327543
|
if (gapsMs.length < minSamples) return opts.ceiling;
|
|
@@ -327835,7 +327845,8 @@ ${content}
|
|
|
327835
327845
|
typeof part.output === "string" ? part.output : JSON.stringify(part.output)
|
|
327836
327846
|
);
|
|
327837
327847
|
if (!serverName || serverName === toolName) {
|
|
327838
|
-
|
|
327848
|
+
const status = isFailedToolResult(parseToolOutput(part.output)) ? "error" : "complete";
|
|
327849
|
+
chunk2 = `<atlarix-tool-result tool="${toolName}" status="${status}">
|
|
327839
327850
|
${content}
|
|
327840
327851
|
</atlarix-tool-result>
|
|
327841
327852
|
`;
|
|
@@ -327914,6 +327925,7 @@ var init_stream_chunk_tags = __esm({
|
|
|
327914
327925
|
init_cleanFullResponse();
|
|
327915
327926
|
init_escape_atlarix_tags();
|
|
327916
327927
|
init_stream_debug();
|
|
327928
|
+
init_tool_result_status();
|
|
327917
327929
|
init_provider_finish_error();
|
|
327918
327930
|
logger73 = import_electron_log75.default.scope("stream-chunk-tags");
|
|
327919
327931
|
STREAM_STALL_TIMEOUT_MS = 6e5;
|
|
@@ -337680,7 +337692,7 @@ if (!process.env.ATLARIX_MODELS_SNAPSHOT) {
|
|
|
337680
337692
|
const shipped = path55.join(here, "models-snapshot.json.gz");
|
|
337681
337693
|
if (fs42.existsSync(shipped)) process.env.ATLARIX_MODELS_SNAPSHOT = shipped;
|
|
337682
337694
|
}
|
|
337683
|
-
var VERSION15 = false ? "dev" : "14.52.
|
|
337695
|
+
var VERSION15 = false ? "dev" : "14.52.4";
|
|
337684
337696
|
if (process.argv[2] === "run") process.argv.splice(2, 1);
|
|
337685
337697
|
function arg(name29) {
|
|
337686
337698
|
const i4 = process.argv.indexOf(`--${name29}`);
|
package/package.json
CHANGED