@sideboard-ai/core 0.1.278 → 0.1.280
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/agents/cursor-runner.cjs +3 -3
- package/dist/agents/cursor-runner.js +5 -5
- package/dist/{agents-2FOWVJCN.js → agents-DYCFLDNL.js} +5 -5
- package/dist/{agents-JBVJRDH3.js → agents-RXP5NZBC.js} +3 -3
- package/dist/{chunk-FELFTNH2.js → chunk-2P75E243.js} +320 -39
- package/dist/{chunk-UKSJO36E.js → chunk-CPA43FBK.js} +4 -4
- package/dist/{chunk-SQOAFR2U.js → chunk-DK4DKQ2H.js} +329 -43
- package/dist/{chunk-NIB2IZ6J.js → chunk-HNNS25SG.js} +5 -5
- package/dist/{chunk-MGS5T2A3.js → chunk-HQXBBUQX.js} +161 -9
- package/dist/{chunk-FIBZEFKA.js → chunk-IFURHRAR.js} +1 -1
- package/dist/{chunk-5N4Q46SG.js → chunk-K2S33ZCB.js} +5 -5
- package/dist/{chunk-NT7RIWRR.js → chunk-RK5PIWCW.js} +3 -3
- package/dist/{chunk-A2G3ZBJS.js → chunk-SKSOCIJT.js} +8 -8
- package/dist/{chunk-QTZO4LPU.js → chunk-TZ5JHIYK.js} +8 -8
- package/dist/{chunk-27Z4MEQ5.js → chunk-UZUXWBXK.js} +1 -1
- package/dist/{chunk-FAGK33E2.js → chunk-Y7JPL4WA.js} +1 -1
- package/dist/{chunk-HOMZKYHF.js → chunk-YDXNCBA2.js} +107 -8
- package/dist/{conductor-YYQKZAND.js → conductor-J6WDOXWM.js} +3 -3
- package/dist/{conductor-GBCE37K4.js → conductor-OW6NAK3N.js} +4 -4
- package/dist/{coordinator-prompt-SFZCZ3HR.js → coordinator-prompt-ERTHREGJ.js} +1 -1
- package/dist/{coordinator-prompt-B3GLVXPP.js → coordinator-prompt-Z2D32HWK.js} +1 -1
- package/dist/{global-workspace-7XEXTIHL.js → global-workspace-5PJXO45Z.js} +1 -1
- package/dist/{global-workspace-N2YYJKA5.js → global-workspace-AK5PSPQ2.js} +1 -1
- package/dist/index.cjs +941 -542
- package/dist/index.d.cts +54 -17
- package/dist/index.d.ts +54 -17
- package/dist/index.js +251 -290
- package/dist/mcp/run-stdio.cjs +663 -345
- package/dist/mcp/run-stdio.js +40 -124
- package/dist/{orchestrator-6QJLM6Y4.js → orchestrator-K66OMTQO.js} +5 -5
- package/dist/{orchestrator-QMKVXVUR.js → orchestrator-XEKODYDQ.js} +7 -7
- package/dist/{workspaces-PBB6HY2D.js → workspaces-UP6DQ3WL.js} +1 -1
- package/dist/{workspaces-BJCHMGVG.js → workspaces-WU2RNLDV.js} +1 -1
- package/package.json +1 -1
|
@@ -475,8 +475,8 @@ ${content.slice(-tail)}`;
|
|
|
475
475
|
}
|
|
476
476
|
var HUGE_TOOL_RESULT_SUMMARY = "Agent crashed mid-turn after a huge tool result. Write CLI/HTTP output to .context/cli/ and read a slice \u2014 never dump raw --json/--expand into the tool result.";
|
|
477
477
|
var TOOL_RESULT_STORE_MAX_CHARS = 8e3;
|
|
478
|
-
function
|
|
479
|
-
return /nghttp2/i.test(text.trim());
|
|
478
|
+
function looksLikeCursorStreamCutOff(text) {
|
|
479
|
+
return /nghttp2|premature close|\[unavailable\]\s+error\b/i.test(text.trim());
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
// src/agents/cursor-session.ts
|
|
@@ -511,7 +511,7 @@ function isRetryableCursorTransportError(err) {
|
|
|
511
511
|
return true;
|
|
512
512
|
}
|
|
513
513
|
const message = cursorErrorMessage(err);
|
|
514
|
-
return /network request failed/i.test(message) ||
|
|
514
|
+
return /network request failed/i.test(message) || looksLikeCursorStreamCutOff(message);
|
|
515
515
|
}
|
|
516
516
|
function looksLikeNonRetryableCursorFailure(message) {
|
|
517
517
|
const lower = message.toLowerCase();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
clipAgentEventForEmit,
|
|
4
4
|
sideboardCursorRpcTools
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-UZUXWBXK.js";
|
|
6
6
|
import {
|
|
7
7
|
createAgentStreamCoalescer
|
|
8
8
|
} from "../chunk-AXQ4ZWHK.js";
|
|
@@ -17,12 +17,12 @@ import {
|
|
|
17
17
|
fetchCursorTurnCostUsd,
|
|
18
18
|
importCursorSdk,
|
|
19
19
|
resolveCursorSdkRoot
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-IFURHRAR.js";
|
|
21
21
|
import {
|
|
22
22
|
TOOL_RESULT_STORE_MAX_CHARS,
|
|
23
23
|
formatUnknownDetail,
|
|
24
|
-
|
|
25
|
-
} from "../chunk-
|
|
24
|
+
looksLikeCursorStreamCutOff
|
|
25
|
+
} from "../chunk-K2S33ZCB.js";
|
|
26
26
|
import "../chunk-6K64FJDD.js";
|
|
27
27
|
import {
|
|
28
28
|
cursorSdkStoreDir
|
|
@@ -70,7 +70,7 @@ function isRetryableCursorTransportError(err) {
|
|
|
70
70
|
return true;
|
|
71
71
|
}
|
|
72
72
|
const message = cursorErrorMessage(err);
|
|
73
|
-
return /network request failed/i.test(message) ||
|
|
73
|
+
return /network request failed/i.test(message) || looksLikeCursorStreamCutOff(message);
|
|
74
74
|
}
|
|
75
75
|
function looksLikeNonRetryableCursorFailure(message) {
|
|
76
76
|
const lower = message.toLowerCase();
|
|
@@ -47,10 +47,10 @@ import {
|
|
|
47
47
|
resolveLoginCommand,
|
|
48
48
|
resolveQuotaFallbackAgent,
|
|
49
49
|
whichOnPath
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-HNNS25SG.js";
|
|
51
51
|
import "./chunk-GWFVCCJZ.js";
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-Y7JPL4WA.js";
|
|
53
|
+
import "./chunk-SKSOCIJT.js";
|
|
54
54
|
import "./chunk-IPPY3FG5.js";
|
|
55
55
|
import "./chunk-FWNL62VA.js";
|
|
56
56
|
import "./chunk-2P4XKWV2.js";
|
|
@@ -64,8 +64,8 @@ import {
|
|
|
64
64
|
preferredCursorCostCents,
|
|
65
65
|
resolveCursorSdkRoot,
|
|
66
66
|
turnCostUsdFromCursorUsage
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import "./chunk-
|
|
67
|
+
} from "./chunk-IFURHRAR.js";
|
|
68
|
+
import "./chunk-K2S33ZCB.js";
|
|
69
69
|
import "./chunk-6K64FJDD.js";
|
|
70
70
|
import "./chunk-UWQ6UCIB.js";
|
|
71
71
|
import {
|
|
@@ -56,12 +56,12 @@ import {
|
|
|
56
56
|
resolveQuotaFallbackAgent,
|
|
57
57
|
turnCostUsdFromCursorUsage,
|
|
58
58
|
whichOnPath
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-RK5PIWCW.js";
|
|
60
60
|
import "./chunk-TQRSVE7D.js";
|
|
61
61
|
import "./chunk-P2BSMNHB.js";
|
|
62
62
|
import "./chunk-VKQGAWHY.js";
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-CPA43FBK.js";
|
|
64
|
+
import "./chunk-TZ5JHIYK.js";
|
|
65
65
|
import "./chunk-K7MWJLR7.js";
|
|
66
66
|
import "./chunk-N2WW62LF.js";
|
|
67
67
|
import "./chunk-DD67JWTN.js";
|