@sideboard-ai/core 0.1.206 → 0.1.208
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/{abletime-TONBQP4O.js → abletime-I4IYZBKU.js} +4 -4
- package/dist/{abletime-S3UHQZVW.js → abletime-UWSSLXH3.js} +4 -4
- package/dist/{abletime-oauth-SD4SZY5U.js → abletime-oauth-C3BQXKW3.js} +5 -3
- package/dist/{abletime-oauth-AVCEO2DY.js → abletime-oauth-UZHPB3W2.js} +14 -4
- package/dist/{abletime-rest-J2OBB4VA.js → abletime-rest-5YPPEOKK.js} +3 -3
- package/dist/{abletime-rest-6ODSXV7G.js → abletime-rest-HYNYDYK3.js} +3 -3
- package/dist/agents/cursor-runner.js +1 -1
- package/dist/{agents-UW2BUEDH.js → agents-CCS5IEBV.js} +6 -6
- package/dist/{agents-5SDF6KCI.js → agents-QHQXR55O.js} +5 -5
- package/dist/{app-settings-YEPF46IJ.js → app-settings-GJ6KDYEF.js} +1 -1
- package/dist/{app-settings-LGHMNHSP.js → app-settings-R2KNCT37.js} +1 -1
- package/dist/{chunk-X743YN5Y.js → chunk-4EGK47WV.js} +1 -0
- package/dist/{chunk-6Q7DFVDQ.js → chunk-6J4OQ6TF.js} +14 -4
- package/dist/{chunk-FO2NTJ7L.js → chunk-6YZLSZLK.js} +3 -3
- package/dist/{chunk-ARR4OGLY.js → chunk-7DKX5JLT.js} +2 -0
- package/dist/{chunk-64L62EZY.js → chunk-7PEIIN7P.js} +30 -5
- package/dist/{chunk-FX3P25X2.js → chunk-A6SOSLUV.js} +32 -5
- package/dist/{chunk-IQEBC3LD.js → chunk-C5MNMITQ.js} +95 -35
- package/dist/{chunk-SCIMSW7C.js → chunk-C6ZNQV5W.js} +91 -33
- package/dist/{chunk-R7QI3O74.js → chunk-DNTPX6HV.js} +3 -3
- package/dist/{chunk-CYLDJWRK.js → chunk-F4LZUEIO.js} +37 -7
- package/dist/{chunk-GD2WKFFA.js → chunk-HA4EZKFY.js} +3 -3
- package/dist/{chunk-4YXOCLJU.js → chunk-JZHRZ3DR.js} +1 -1
- package/dist/{chunk-6F2L3NTL.js → chunk-NJ2CCLV6.js} +2 -2
- package/dist/{chunk-EJX62RSX.js → chunk-OP6CFVTB.js} +2 -2
- package/dist/{chunk-3K257PCS.js → chunk-TEDEVD4O.js} +37 -7
- package/dist/{chunk-QAVWH2RQ.js → chunk-W6X4GZJG.js} +3 -3
- package/dist/{chunk-SGUVAK66.js → chunk-WXWJ5MJ4.js} +5 -5
- package/dist/{chunk-W6VM36YO.js → chunk-X45BV4VX.js} +5 -5
- package/dist/{chunk-QFBBUFD4.js → chunk-Y4CF7LHH.js} +1 -0
- package/dist/{chunk-DWGEBZ3C.js → chunk-ZHCB4CKR.js} +2 -0
- package/dist/{coordinator-prompt-EWHEK24X.js → coordinator-prompt-TUHB6ZFA.js} +4 -4
- package/dist/{coordinator-prompt-6Q5NDWOC.js → coordinator-prompt-WOTJQMD5.js} +4 -4
- package/dist/{global-workspace-2GMALKKE.js → global-workspace-5UUUNA4A.js} +4 -4
- package/dist/{global-workspace-KHSZZKIH.js → global-workspace-V6G2KH2V.js} +4 -4
- package/dist/index.cjs +164 -20
- package/dist/index.d.cts +39 -4
- package/dist/index.d.ts +39 -4
- package/dist/index.js +26 -13
- package/dist/mcp/run-stdio.cjs +150 -20
- package/dist/mcp/run-stdio.js +11 -11
- package/dist/{orchestrator-WIL5WFBL.js → orchestrator-4IGHVRAF.js} +6 -6
- package/dist/{orchestrator-NXZ5NDAM.js → orchestrator-D4AQNF25.js} +7 -7
- package/dist/{thread-store-XGYWXR2P.js → thread-store-ESZYZSVC.js} +1 -1
- package/dist/{thread-store-LS2T6RVH.js → thread-store-FMWDFAO5.js} +1 -1
- package/dist/{workspaces-6RGWGUFK.js → workspaces-CLNANACI.js} +4 -4
- package/dist/{workspaces-4CBMCP6N.js → workspaces-PZ36M7EQ.js} +4 -4
- package/dist/{worktree-SPH7Q2S6.js → worktree-JKTM47K5.js} +3 -3
- package/dist/{worktree-2U7SZBO2.js → worktree-NC4XQNQI.js} +3 -3
- package/package.json +1 -1
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
toAbleTimeIssueInfo,
|
|
16
16
|
updateAbleTimeTask,
|
|
17
17
|
verifyAbleTimeConnection
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-W6X4GZJG.js";
|
|
19
|
+
import "./chunk-F4LZUEIO.js";
|
|
20
|
+
import "./chunk-X45BV4VX.js";
|
|
21
21
|
import "./chunk-N7WZ6NIN.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-Y4CF7LHH.js";
|
|
23
23
|
import "./chunk-4TR3HZFT.js";
|
|
24
24
|
import "./chunk-WDRMZKVB.js";
|
|
25
25
|
import "./chunk-JT7R45JB.js";
|
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
toAbleTimeIssueInfo,
|
|
18
18
|
updateAbleTimeTask,
|
|
19
19
|
verifyAbleTimeConnection
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-6YZLSZLK.js";
|
|
21
|
+
import "./chunk-TEDEVD4O.js";
|
|
22
|
+
import "./chunk-WXWJ5MJ4.js";
|
|
23
23
|
import "./chunk-VKQGAWHY.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-4EGK47WV.js";
|
|
25
25
|
import "./chunk-NSTQ6QKD.js";
|
|
26
26
|
import "./chunk-KGZBYWZ3.js";
|
|
27
27
|
import "./chunk-EQNRWDLN.js";
|
|
@@ -18,11 +18,12 @@ import {
|
|
|
18
18
|
hasBakedAbleTimeOAuth,
|
|
19
19
|
isAbleTimeOAuthCancelled,
|
|
20
20
|
parseAbleTimeOAuthCallbackUrl,
|
|
21
|
+
resolveAbleTimeOAuthHost,
|
|
21
22
|
startAbleTimeOAuth
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-6J4OQ6TF.js";
|
|
24
|
+
import "./chunk-X45BV4VX.js";
|
|
24
25
|
import "./chunk-N7WZ6NIN.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-Y4CF7LHH.js";
|
|
26
27
|
import "./chunk-4TR3HZFT.js";
|
|
27
28
|
import "./chunk-WDRMZKVB.js";
|
|
28
29
|
import "./chunk-JT7R45JB.js";
|
|
@@ -48,5 +49,6 @@ export {
|
|
|
48
49
|
hasBakedAbleTimeOAuth,
|
|
49
50
|
isAbleTimeOAuthCancelled,
|
|
50
51
|
parseAbleTimeOAuthCallbackUrl,
|
|
52
|
+
resolveAbleTimeOAuthHost,
|
|
51
53
|
startAbleTimeOAuth
|
|
52
54
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import {
|
|
4
4
|
DEFAULT_ABLETIME_HOST,
|
|
5
5
|
normalizeAbleTimeHost
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WXWJ5MJ4.js";
|
|
7
7
|
import {
|
|
8
8
|
httpFetch
|
|
9
9
|
} from "./chunk-VKQGAWHY.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
getAbleTimeHost,
|
|
13
13
|
loadAppSettings,
|
|
14
14
|
saveAbleTimeConnection
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4EGK47WV.js";
|
|
16
16
|
import "./chunk-NSTQ6QKD.js";
|
|
17
17
|
import "./chunk-KGZBYWZ3.js";
|
|
18
18
|
import "./chunk-EQNRWDLN.js";
|
|
@@ -78,6 +78,12 @@ function ableTimeOAuthClientId() {
|
|
|
78
78
|
function ableTimeOAuthResource(host) {
|
|
79
79
|
return `${normalizeAbleTimeHost(host)}/api/public/v2/mcp`;
|
|
80
80
|
}
|
|
81
|
+
function resolveAbleTimeOAuthHost(requested, saved) {
|
|
82
|
+
const fromRequest = requested?.trim();
|
|
83
|
+
if (fromRequest) return fromRequest;
|
|
84
|
+
const fromSaved = saved?.trim();
|
|
85
|
+
return fromSaved || void 0;
|
|
86
|
+
}
|
|
81
87
|
function createAbleTimePkce() {
|
|
82
88
|
const verifier = randomBytes(32).toString("base64url");
|
|
83
89
|
const challenge = createHash("sha256").update(verifier).digest("base64url");
|
|
@@ -189,7 +195,10 @@ async function startAbleTimeOAuth(opts) {
|
|
|
189
195
|
`AbleTime browser sign-in needs a Client ID Metadata Document URL. Host ${BAKED_ABLETIME_OAUTH_CLIENT_ID} (see site/oauth/abletime-client.json), or set SIDEBOARD_ABLETIME_OAUTH_CLIENT_ID.`
|
|
190
196
|
);
|
|
191
197
|
}
|
|
192
|
-
const host =
|
|
198
|
+
const host = resolveAbleTimeOAuthHost(
|
|
199
|
+
opts?.host,
|
|
200
|
+
loadAppSettings().integrations.abletimeHost
|
|
201
|
+
);
|
|
193
202
|
const state = randomBytes(16).toString("hex");
|
|
194
203
|
const pkce = createAbleTimePkce();
|
|
195
204
|
const authorizeUrl = ableTimeOAuthAuthorizeUrl(clientId, state, pkce.challenge, host);
|
|
@@ -277,7 +286,7 @@ async function startAbleTimeOAuth(opts) {
|
|
|
277
286
|
persistAbleTimeTokens(data, { host });
|
|
278
287
|
const token = data.access_token.trim();
|
|
279
288
|
try {
|
|
280
|
-
const { getAbleTimeOrientation } = await import("./abletime-
|
|
289
|
+
const { getAbleTimeOrientation } = await import("./abletime-UWSSLXH3.js");
|
|
281
290
|
const orientation = await getAbleTimeOrientation({ token, host });
|
|
282
291
|
return saveAbleTimeConnection({
|
|
283
292
|
accessToken: token,
|
|
@@ -310,5 +319,6 @@ export {
|
|
|
310
319
|
hasBakedAbleTimeOAuth,
|
|
311
320
|
isAbleTimeOAuthCancelled,
|
|
312
321
|
parseAbleTimeOAuthCallbackUrl,
|
|
322
|
+
resolveAbleTimeOAuthHost,
|
|
313
323
|
startAbleTimeOAuth
|
|
314
324
|
};
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
callAbleTimeRestTool,
|
|
6
6
|
looksLikeAbleTimeUlid,
|
|
7
7
|
textFromAbleTimeDoc
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-F4LZUEIO.js";
|
|
9
|
+
import "./chunk-X45BV4VX.js";
|
|
10
10
|
import "./chunk-N7WZ6NIN.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-Y4CF7LHH.js";
|
|
12
12
|
import "./chunk-4TR3HZFT.js";
|
|
13
13
|
import "./chunk-WDRMZKVB.js";
|
|
14
14
|
import "./chunk-JT7R45JB.js";
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
callAbleTimeRestTool,
|
|
8
8
|
looksLikeAbleTimeUlid,
|
|
9
9
|
textFromAbleTimeDoc
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-TEDEVD4O.js";
|
|
11
|
+
import "./chunk-WXWJ5MJ4.js";
|
|
12
12
|
import "./chunk-VKQGAWHY.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-4EGK47WV.js";
|
|
14
14
|
import "./chunk-NSTQ6QKD.js";
|
|
15
15
|
import "./chunk-KGZBYWZ3.js";
|
|
16
16
|
import "./chunk-EQNRWDLN.js";
|
|
@@ -44,9 +44,9 @@ import {
|
|
|
44
44
|
resolveLoginCommand,
|
|
45
45
|
resolveQuotaFallbackAgent,
|
|
46
46
|
whichOnPath
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
47
|
+
} from "./chunk-A6SOSLUV.js";
|
|
48
|
+
import "./chunk-HA4EZKFY.js";
|
|
49
|
+
import "./chunk-OP6CFVTB.js";
|
|
50
50
|
import "./chunk-6K64FJDD.js";
|
|
51
51
|
import "./chunk-QQKDGPUI.js";
|
|
52
52
|
import "./chunk-SALM35KD.js";
|
|
@@ -57,17 +57,17 @@ import {
|
|
|
57
57
|
parseCursorRunnerLine,
|
|
58
58
|
preferredCursorCostCents,
|
|
59
59
|
turnCostUsdFromCursorUsage
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-JZHRZ3DR.js";
|
|
61
61
|
import {
|
|
62
62
|
ORCHESTRATOR_AGENT_KINDS,
|
|
63
63
|
assertOrchestratorCapableAgent,
|
|
64
64
|
coerceOrchestratorAgent,
|
|
65
65
|
isOrchestratorCapableAgent
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-Y4CF7LHH.js";
|
|
67
67
|
import "./chunk-4TR3HZFT.js";
|
|
68
68
|
import "./chunk-WDRMZKVB.js";
|
|
69
69
|
import "./chunk-JT7R45JB.js";
|
|
70
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-7DKX5JLT.js";
|
|
71
71
|
import "./chunk-77WWLBCI.js";
|
|
72
72
|
import "./chunk-WFUDY6PC.js";
|
|
73
73
|
import {
|
|
@@ -50,14 +50,14 @@ import {
|
|
|
50
50
|
resolveQuotaFallbackAgent,
|
|
51
51
|
turnCostUsdFromCursorUsage,
|
|
52
52
|
whichOnPath
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import "./chunk-
|
|
53
|
+
} from "./chunk-7PEIIN7P.js";
|
|
54
|
+
import "./chunk-DNTPX6HV.js";
|
|
55
55
|
import "./chunk-3OHR73VK.js";
|
|
56
56
|
import "./chunk-Y4MIXGPA.js";
|
|
57
57
|
import "./chunk-VKQGAWHY.js";
|
|
58
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-NJ2CCLV6.js";
|
|
59
59
|
import "./chunk-D6JWYJ4P.js";
|
|
60
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-ZHCB4CKR.js";
|
|
61
61
|
import "./chunk-SYFVUF2C.js";
|
|
62
62
|
import {
|
|
63
63
|
conductorBundledBinDir,
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
assertOrchestratorCapableAgent,
|
|
74
74
|
coerceOrchestratorAgent,
|
|
75
75
|
isOrchestratorCapableAgent
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-4EGK47WV.js";
|
|
77
77
|
import "./chunk-NSTQ6QKD.js";
|
|
78
78
|
import "./chunk-KGZBYWZ3.js";
|
|
79
79
|
import "./chunk-EQNRWDLN.js";
|
|
@@ -1605,6 +1605,7 @@ function disconnectAbleTimeConnection() {
|
|
|
1605
1605
|
delete integrations.abletimeRefreshToken;
|
|
1606
1606
|
delete integrations.abletimeTokenExpiresAt;
|
|
1607
1607
|
delete integrations.abletimeViewerName;
|
|
1608
|
+
delete integrations.abletimeHost;
|
|
1608
1609
|
return saveAppSettings({ ...current, integrations });
|
|
1609
1610
|
}
|
|
1610
1611
|
function getIssueSource(settings = loadAppSettings()) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_ABLETIME_HOST,
|
|
3
3
|
normalizeAbleTimeHost
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-X45BV4VX.js";
|
|
5
5
|
import {
|
|
6
6
|
httpFetch
|
|
7
7
|
} from "./chunk-N7WZ6NIN.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
getAbleTimeHost,
|
|
11
11
|
loadAppSettings,
|
|
12
12
|
saveAbleTimeConnection
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-Y4CF7LHH.js";
|
|
14
14
|
|
|
15
15
|
// src/integrations/abletime-oauth.ts
|
|
16
16
|
import { createHash, randomBytes } from "crypto";
|
|
@@ -72,6 +72,12 @@ function ableTimeOAuthClientId() {
|
|
|
72
72
|
function ableTimeOAuthResource(host) {
|
|
73
73
|
return `${normalizeAbleTimeHost(host)}/api/public/v2/mcp`;
|
|
74
74
|
}
|
|
75
|
+
function resolveAbleTimeOAuthHost(requested, saved) {
|
|
76
|
+
const fromRequest = requested?.trim();
|
|
77
|
+
if (fromRequest) return fromRequest;
|
|
78
|
+
const fromSaved = saved?.trim();
|
|
79
|
+
return fromSaved || void 0;
|
|
80
|
+
}
|
|
75
81
|
function createAbleTimePkce() {
|
|
76
82
|
const verifier = randomBytes(32).toString("base64url");
|
|
77
83
|
const challenge = createHash("sha256").update(verifier).digest("base64url");
|
|
@@ -183,7 +189,10 @@ async function startAbleTimeOAuth(opts) {
|
|
|
183
189
|
`AbleTime browser sign-in needs a Client ID Metadata Document URL. Host ${BAKED_ABLETIME_OAUTH_CLIENT_ID} (see site/oauth/abletime-client.json), or set SIDEBOARD_ABLETIME_OAUTH_CLIENT_ID.`
|
|
184
190
|
);
|
|
185
191
|
}
|
|
186
|
-
const host =
|
|
192
|
+
const host = resolveAbleTimeOAuthHost(
|
|
193
|
+
opts?.host,
|
|
194
|
+
loadAppSettings().integrations.abletimeHost
|
|
195
|
+
);
|
|
187
196
|
const state = randomBytes(16).toString("hex");
|
|
188
197
|
const pkce = createAbleTimePkce();
|
|
189
198
|
const authorizeUrl = ableTimeOAuthAuthorizeUrl(clientId, state, pkce.challenge, host);
|
|
@@ -271,7 +280,7 @@ async function startAbleTimeOAuth(opts) {
|
|
|
271
280
|
persistAbleTimeTokens(data, { host });
|
|
272
281
|
const token = data.access_token.trim();
|
|
273
282
|
try {
|
|
274
|
-
const { getAbleTimeOrientation } = await import("./abletime-
|
|
283
|
+
const { getAbleTimeOrientation } = await import("./abletime-I4IYZBKU.js");
|
|
275
284
|
const orientation = await getAbleTimeOrientation({ token, host });
|
|
276
285
|
return saveAbleTimeConnection({
|
|
277
286
|
accessToken: token,
|
|
@@ -299,6 +308,7 @@ export {
|
|
|
299
308
|
hasBakedAbleTimeOAuth,
|
|
300
309
|
ableTimeOAuthClientId,
|
|
301
310
|
ableTimeOAuthResource,
|
|
311
|
+
resolveAbleTimeOAuthHost,
|
|
302
312
|
createAbleTimePkce,
|
|
303
313
|
ableTimeOAuthAuthorizeUrl,
|
|
304
314
|
ensureAbleTimeAccessToken,
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
textFromAbleTimeDoc
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TEDEVD4O.js";
|
|
6
6
|
import {
|
|
7
7
|
assertAbleTimeCredential,
|
|
8
8
|
callAbleTimeTool,
|
|
9
9
|
normalizeAbleTimeHost,
|
|
10
10
|
rewriteAbleTimeError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WXWJ5MJ4.js";
|
|
12
12
|
import {
|
|
13
13
|
isAbleTimeConnected,
|
|
14
14
|
saveAbleTimeConnection
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4EGK47WV.js";
|
|
16
16
|
|
|
17
17
|
// src/integrations/abletime.ts
|
|
18
18
|
var CLOSED_STATES = /* @__PURE__ */ new Set([
|
|
@@ -41,6 +41,7 @@ function normalizeThread(raw) {
|
|
|
41
41
|
lastError: raw.lastError ?? null,
|
|
42
42
|
agentPid: raw.agentPid ?? null,
|
|
43
43
|
attachments: Array.isArray(raw.attachments) ? raw.attachments : [],
|
|
44
|
+
pendingTurnAttachments: Array.isArray(raw.pendingTurnAttachments) ? raw.pendingTurnAttachments : [],
|
|
44
45
|
prTitle: raw.prTitle ?? null,
|
|
45
46
|
prState: raw.prState ?? null,
|
|
46
47
|
prIsDraft: Boolean(raw.prIsDraft),
|
|
@@ -83,6 +84,7 @@ function createEmptyThread(partial) {
|
|
|
83
84
|
userSetTitle: partial.userSetTitle ?? false,
|
|
84
85
|
messages: partial.messages ?? [],
|
|
85
86
|
attachments: partial.attachments ?? [],
|
|
87
|
+
pendingTurnAttachments: partial.pendingTurnAttachments ?? [],
|
|
86
88
|
createdAt: ts,
|
|
87
89
|
updatedAt: ts,
|
|
88
90
|
title: partial.title,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
isOrchestratorThread
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DNTPX6HV.js";
|
|
6
6
|
import {
|
|
7
7
|
applyConnectedTeamToCli,
|
|
8
8
|
brightsyMcpServerName,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
mergeAgentGitAuthEnv,
|
|
21
21
|
resolveAgentGitAuthEnv,
|
|
22
22
|
resolveCodexGitWritableRoots
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NJ2CCLV6.js";
|
|
24
24
|
import {
|
|
25
25
|
enrichPathWithNpmGlobalBin,
|
|
26
26
|
isConductorBundledCli,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
resolveClaudeExecutable,
|
|
39
39
|
unwrapStrippedElectronLaunch,
|
|
40
40
|
wrapElectronAsNodeLaunch
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-4EGK47WV.js";
|
|
42
42
|
import {
|
|
43
43
|
appDataDir
|
|
44
44
|
} from "./chunk-EQNRWDLN.js";
|
|
@@ -486,7 +486,7 @@ function looksLikeCodexMcpError(text) {
|
|
|
486
486
|
if (/\brmcp\b/.test(t) && /fatal|quit|transport|error|died|kill|auth/.test(t)) {
|
|
487
487
|
return true;
|
|
488
488
|
}
|
|
489
|
-
return /
|
|
489
|
+
return /invalid transport in mcp_servers/.test(t);
|
|
490
490
|
}
|
|
491
491
|
function shouldFeedErrorBackToAgent(opts) {
|
|
492
492
|
const detail = opts.detail.trim();
|
|
@@ -1161,6 +1161,30 @@ function clipThinkingForStore(text, max = THINKING_PART_MAX_CHARS) {
|
|
|
1161
1161
|
const marker = "\u2026(earlier thinking trimmed)\n";
|
|
1162
1162
|
return marker + text.slice(text.length - Math.max(1, max - marker.length));
|
|
1163
1163
|
}
|
|
1164
|
+
var STDOUT_EVENT_MAX_CHARS = 16e3;
|
|
1165
|
+
var STDERR_EVENT_MAX_CHARS = 4e3;
|
|
1166
|
+
function clipEventTail(text, max) {
|
|
1167
|
+
if (text.length <= max) return text;
|
|
1168
|
+
const marker = "\u2026(truncated)\n";
|
|
1169
|
+
return marker + text.slice(text.length - Math.max(1, max - marker.length));
|
|
1170
|
+
}
|
|
1171
|
+
function clipAgentEventForPaint(event) {
|
|
1172
|
+
if (event.type === "tool_result" && event.content) {
|
|
1173
|
+
const content = clipToolResultForStore(event.content);
|
|
1174
|
+
if (content === event.content) return event;
|
|
1175
|
+
return { ...event, content };
|
|
1176
|
+
}
|
|
1177
|
+
if (event.type === "thinking" && event.data.length > THINKING_PART_MAX_CHARS) {
|
|
1178
|
+
return { ...event, data: clipThinkingForStore(event.data) };
|
|
1179
|
+
}
|
|
1180
|
+
if (event.type === "stdout" && event.data.length > STDOUT_EVENT_MAX_CHARS) {
|
|
1181
|
+
return { ...event, data: clipEventTail(event.data, STDOUT_EVENT_MAX_CHARS) };
|
|
1182
|
+
}
|
|
1183
|
+
if (event.type === "stderr" && event.data.length > STDERR_EVENT_MAX_CHARS) {
|
|
1184
|
+
return { ...event, data: clipEventTail(event.data, STDERR_EVENT_MAX_CHARS) };
|
|
1185
|
+
}
|
|
1186
|
+
return event;
|
|
1187
|
+
}
|
|
1164
1188
|
function withPartTimes(next, prev) {
|
|
1165
1189
|
const now = Date.now();
|
|
1166
1190
|
const startedAt = prev && typeof prev.startedAt === "number" ? prev.startedAt : now;
|
|
@@ -2450,7 +2474,7 @@ var claudeAdapter = {
|
|
|
2450
2474
|
);
|
|
2451
2475
|
}
|
|
2452
2476
|
const mode = permissionMode(thread);
|
|
2453
|
-
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-
|
|
2477
|
+
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-V6G2KH2V.js");
|
|
2454
2478
|
const isOrchestrator = isOrchestratorThread2(thread);
|
|
2455
2479
|
const injectedServers = await buildInjectedMcpServers({
|
|
2456
2480
|
includeSideboard: true,
|
|
@@ -4798,6 +4822,7 @@ export {
|
|
|
4798
4822
|
isInternalAgentStatusText,
|
|
4799
4823
|
isPollWrapperToolName,
|
|
4800
4824
|
liveActivitySummary,
|
|
4825
|
+
clipAgentEventForPaint,
|
|
4801
4826
|
applyAgentEvent,
|
|
4802
4827
|
partsToAssistantText,
|
|
4803
4828
|
stripBrightsyNdjsonNoise,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isOrchestratorThread
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HA4EZKFY.js";
|
|
4
4
|
import {
|
|
5
5
|
codexUnattendedGitConfigArgs,
|
|
6
6
|
mergeAgentGitAuthEnv,
|
|
7
7
|
resolveAgentGitAuthEnv,
|
|
8
8
|
resolveCodexGitWritableRoots
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OP6CFVTB.js";
|
|
10
10
|
import {
|
|
11
11
|
applyConnectedTeamToCli,
|
|
12
12
|
brightsyMcpServerName,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
packagedMcpStdioPath,
|
|
34
34
|
parseCursorRunnerLine,
|
|
35
35
|
resolveNodeLaunch
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-JZHRZ3DR.js";
|
|
37
37
|
import {
|
|
38
38
|
claudeChromeEnabled,
|
|
39
39
|
isAbleTimeConnected,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
loadAppSettings,
|
|
42
42
|
resolveAgentExecutable,
|
|
43
43
|
resolveClaudeExecutable
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-Y4CF7LHH.js";
|
|
45
45
|
import {
|
|
46
46
|
isElectronLikeCommand,
|
|
47
47
|
unwrapStrippedElectronLaunch
|
|
@@ -968,6 +968,30 @@ function clipThinkingForStore(text, max = THINKING_PART_MAX_CHARS) {
|
|
|
968
968
|
const marker = "\u2026(earlier thinking trimmed)\n";
|
|
969
969
|
return marker + text.slice(text.length - Math.max(1, max - marker.length));
|
|
970
970
|
}
|
|
971
|
+
var STDOUT_EVENT_MAX_CHARS = 16e3;
|
|
972
|
+
var STDERR_EVENT_MAX_CHARS = 4e3;
|
|
973
|
+
function clipEventTail(text, max) {
|
|
974
|
+
if (text.length <= max) return text;
|
|
975
|
+
const marker = "\u2026(truncated)\n";
|
|
976
|
+
return marker + text.slice(text.length - Math.max(1, max - marker.length));
|
|
977
|
+
}
|
|
978
|
+
function clipAgentEventForPaint(event) {
|
|
979
|
+
if (event.type === "tool_result" && event.content) {
|
|
980
|
+
const content = clipToolResultForStore(event.content);
|
|
981
|
+
if (content === event.content) return event;
|
|
982
|
+
return { ...event, content };
|
|
983
|
+
}
|
|
984
|
+
if (event.type === "thinking" && event.data.length > THINKING_PART_MAX_CHARS) {
|
|
985
|
+
return { ...event, data: clipThinkingForStore(event.data) };
|
|
986
|
+
}
|
|
987
|
+
if (event.type === "stdout" && event.data.length > STDOUT_EVENT_MAX_CHARS) {
|
|
988
|
+
return { ...event, data: clipEventTail(event.data, STDOUT_EVENT_MAX_CHARS) };
|
|
989
|
+
}
|
|
990
|
+
if (event.type === "stderr" && event.data.length > STDERR_EVENT_MAX_CHARS) {
|
|
991
|
+
return { ...event, data: clipEventTail(event.data, STDERR_EVENT_MAX_CHARS) };
|
|
992
|
+
}
|
|
993
|
+
return event;
|
|
994
|
+
}
|
|
971
995
|
function withPartTimes(next, prev) {
|
|
972
996
|
const now = Date.now();
|
|
973
997
|
const startedAt = prev && typeof prev.startedAt === "number" ? prev.startedAt : now;
|
|
@@ -1942,7 +1966,7 @@ var claudeAdapter = {
|
|
|
1942
1966
|
);
|
|
1943
1967
|
}
|
|
1944
1968
|
const mode = permissionMode(thread);
|
|
1945
|
-
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-
|
|
1969
|
+
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-5UUUNA4A.js");
|
|
1946
1970
|
const isOrchestrator = isOrchestratorThread2(thread);
|
|
1947
1971
|
const injectedServers = await buildInjectedMcpServers({
|
|
1948
1972
|
includeSideboard: true,
|
|
@@ -4067,6 +4091,9 @@ export {
|
|
|
4067
4091
|
toolFilePath,
|
|
4068
4092
|
THINKING_PART_MAX_CHARS,
|
|
4069
4093
|
clipThinkingForStore,
|
|
4094
|
+
STDOUT_EVENT_MAX_CHARS,
|
|
4095
|
+
STDERR_EVENT_MAX_CHARS,
|
|
4096
|
+
clipAgentEventForPaint,
|
|
4070
4097
|
applyAgentEvent,
|
|
4071
4098
|
partsToAssistantText,
|
|
4072
4099
|
lastAssistantMessageText,
|