@sideboard-ai/core 0.1.205 → 0.1.207
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-67K4BQFJ.js → agents-7MULGRPU.js} +5 -5
- package/dist/{agents-BVOJNHV6.js → agents-KCBCFMFW.js} +6 -6
- 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-FO45DMJ5.js → chunk-2GPZ4BAU.js} +81 -34
- package/dist/{chunk-X743YN5Y.js → chunk-4EGK47WV.js} +1 -0
- package/dist/{chunk-ULZLWQBS.js → chunk-5UQTT4S7.js} +79 -32
- package/dist/{chunk-6Q7DFVDQ.js → chunk-6J4OQ6TF.js} +14 -4
- package/dist/{chunk-WVATAIF4.js → chunk-6KH4OBEW.js} +2 -2
- package/dist/{chunk-FO2NTJ7L.js → chunk-6YZLSZLK.js} +3 -3
- package/dist/{chunk-YOSTWSNC.js → chunk-A2BRWIEM.js} +18 -11
- package/dist/{chunk-DFUES6QU.js → chunk-ARR4OGLY.js} +1 -0
- package/dist/{chunk-INNLWYXW.js → chunk-DWGEBZ3C.js} +1 -0
- package/dist/{chunk-CYLDJWRK.js → chunk-F4LZUEIO.js} +37 -7
- package/dist/{chunk-KZ7PI7FE.js → chunk-JZHRZ3DR.js} +6 -1
- package/dist/{chunk-QUW5D62C.js → chunk-N4A4NWFO.js} +2 -2
- package/dist/{chunk-VIPA75ZA.js → chunk-PAQPT3JO.js} +3 -3
- package/dist/{chunk-5SMS6QTO.js → chunk-QOJB5PC7.js} +3 -3
- 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-WF33LOP4.js → chunk-ZU7R35NY.js} +23 -11
- package/dist/{coordinator-prompt-WEPXXLLX.js → coordinator-prompt-6A3D7BV3.js} +4 -4
- package/dist/{coordinator-prompt-NPT555BO.js → coordinator-prompt-6NV2IHEX.js} +4 -4
- package/dist/{global-workspace-2I2T7FL5.js → global-workspace-I2X6UQMX.js} +4 -4
- package/dist/{global-workspace-NSILADOM.js → global-workspace-VS6HZF2I.js} +4 -4
- package/dist/index.cjs +125 -24
- package/dist/index.d.cts +16 -3
- package/dist/index.d.ts +16 -3
- package/dist/index.js +15 -13
- package/dist/mcp/run-stdio.cjs +123 -24
- package/dist/mcp/run-stdio.js +11 -11
- package/dist/{orchestrator-I7GFXLHF.js → orchestrator-7WF32ZXJ.js} +6 -6
- package/dist/{orchestrator-CMAVNELS.js → orchestrator-CXQY5YRG.js} +7 -7
- package/dist/{thread-store-ZGVWPVHP.js → thread-store-LS2T6RVH.js} +1 -1
- package/dist/{thread-store-2SS5V5CN.js → thread-store-XGYWXR2P.js} +1 -1
- package/dist/{workspaces-BOC6M7BW.js → workspaces-7PM7UGLG.js} +4 -4
- package/dist/{workspaces-RFGZBUAR.js → workspaces-CEU25ANO.js} +4 -4
- package/dist/{worktree-G3ZLM4DC.js → worktree-T6PCOIHZ.js} +3 -3
- package/dist/{worktree-WSUQMMK4.js → worktree-YD7Y6NRY.js} +3 -3
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
resolveRepoRoot,
|
|
8
8
|
takenSlugsFromThread,
|
|
9
9
|
teamSlugFromName
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-N4A4NWFO.js";
|
|
11
11
|
import {
|
|
12
12
|
ATTACHMENTS_DIR,
|
|
13
13
|
attachmentsGitignoreBody
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
listThreads,
|
|
18
18
|
updateThread,
|
|
19
19
|
writeThread
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-DWGEBZ3C.js";
|
|
21
21
|
import {
|
|
22
22
|
assertOrchestratorCapableAgent,
|
|
23
23
|
formatAccountProfilePlaybookLine,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
resolveThreadDefaults,
|
|
31
31
|
resolveViewerProfile,
|
|
32
32
|
resolveViewerProfileForRepo
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-4EGK47WV.js";
|
|
34
34
|
import {
|
|
35
35
|
appDataDir,
|
|
36
36
|
globalAgentCwd,
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
normalizeAbleTimeCredential,
|
|
7
7
|
normalizeAbleTimeHost,
|
|
8
8
|
rewriteAbleTimeError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WXWJ5MJ4.js";
|
|
10
10
|
import {
|
|
11
11
|
httpFetch
|
|
12
12
|
} from "./chunk-VKQGAWHY.js";
|
|
13
13
|
import {
|
|
14
14
|
getAbleTimeAccessToken,
|
|
15
15
|
getAbleTimeHost
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4EGK47WV.js";
|
|
17
17
|
|
|
18
18
|
// src/integrations/abletime-rest.ts
|
|
19
19
|
var ABLETIME_REST_PREFIX = "/api/public/v2";
|
|
@@ -155,6 +155,7 @@ function restTaskToRaw(raw, users) {
|
|
|
155
155
|
description: textFromAbleTimeDoc(rec.description) || asString(rec.descriptionSanitized),
|
|
156
156
|
projectId: asString(rec.projectId),
|
|
157
157
|
categoryId: asString(rec.projectCategoryId) || asString(rec.categoryId),
|
|
158
|
+
parentId: asString(rec.parentTaskId) || asString(rec.parentId),
|
|
158
159
|
tags: rec.tags,
|
|
159
160
|
comments,
|
|
160
161
|
createdAt: asString(rec.dateCreated) || asString(rec.createdAt),
|
|
@@ -245,6 +246,19 @@ function firstStringArg(args, keys) {
|
|
|
245
246
|
}
|
|
246
247
|
return "";
|
|
247
248
|
}
|
|
249
|
+
function isNoneToken(value) {
|
|
250
|
+
return value.trim().toLowerCase() === "none";
|
|
251
|
+
}
|
|
252
|
+
function findRestProject(projects, projectId) {
|
|
253
|
+
const wanted = projectId.trim().toLowerCase();
|
|
254
|
+
return projects.find(
|
|
255
|
+
(item) => asString(item.id).toLowerCase() === wanted || asString(item.name).toLowerCase() === wanted
|
|
256
|
+
) ?? null;
|
|
257
|
+
}
|
|
258
|
+
async function resolveRestParentTaskId(parent, opts) {
|
|
259
|
+
if (isNoneToken(parent)) return null;
|
|
260
|
+
return resolveTaskId(parent, opts);
|
|
261
|
+
}
|
|
248
262
|
async function callAbleTimeRestTool(name, args = {}, opts) {
|
|
249
263
|
const token = normalizeAbleTimeCredential(opts?.token ?? getAbleTimeAccessToken() ?? "");
|
|
250
264
|
if (!token) {
|
|
@@ -290,9 +304,7 @@ async function callAbleTimeRestTool(name, args = {}, opts) {
|
|
|
290
304
|
const projectId = firstStringArg(args, ["project_id", "projectId", "project"]);
|
|
291
305
|
if (!projectId) throw new Error("AbleTime project is required");
|
|
292
306
|
const projects = await listProjectsRaw(requestOpts);
|
|
293
|
-
const project = projects
|
|
294
|
-
(item) => String(item.id).toLowerCase() === projectId.toLowerCase() || String(item.name).toLowerCase() === projectId.toLowerCase()
|
|
295
|
-
) ?? projects[0];
|
|
307
|
+
const project = findRestProject(projects, projectId) ?? projects[0];
|
|
296
308
|
if (!project) throw new Error("AbleTime has no projects to create a task in");
|
|
297
309
|
const categories = asList(project.categories);
|
|
298
310
|
const wantedCategory = firstStringArg(args, ["category_id", "categoryId", "category"]);
|
|
@@ -300,13 +312,16 @@ async function callAbleTimeRestTool(name, args = {}, opts) {
|
|
|
300
312
|
if (!item || !wantedCategory) return false;
|
|
301
313
|
return asString(item.id).toLowerCase() === wantedCategory.toLowerCase() || asString(item.name).toLowerCase() === wantedCategory.toLowerCase();
|
|
302
314
|
}) ?? asRecord(categories[0]);
|
|
315
|
+
const parentArg = firstStringArg(args, ["parent", "parent_id", "parentId", "related_task_id"]);
|
|
316
|
+
const parentTaskId = parentArg ? await resolveRestParentTaskId(parentArg, requestOpts) : void 0;
|
|
303
317
|
const created = await abletimeRestRequest("/tasks", {
|
|
304
318
|
...requestOpts,
|
|
305
319
|
method: "POST",
|
|
306
320
|
body: {
|
|
307
|
-
projectId: project.id,
|
|
321
|
+
projectId: asString(project.id),
|
|
308
322
|
projectCategoryId: category ? asString(category.id) : void 0,
|
|
309
|
-
title
|
|
323
|
+
title,
|
|
324
|
+
...parentTaskId ? { parentTaskId } : {}
|
|
310
325
|
}
|
|
311
326
|
});
|
|
312
327
|
const state = firstStringArg(args, ["state"]);
|
|
@@ -339,6 +354,21 @@ async function callAbleTimeRestTool(name, args = {}, opts) {
|
|
|
339
354
|
if (args.tags !== void 0 || args.labels !== void 0) {
|
|
340
355
|
patch.tags = args.tags ?? args.labels ?? args.tag_names;
|
|
341
356
|
}
|
|
357
|
+
const projectArg = firstStringArg(args, ["project", "project_id", "projectId"]);
|
|
358
|
+
if (projectArg) {
|
|
359
|
+
if (isNoneToken(projectArg)) {
|
|
360
|
+
throw new Error("AbleTime tasks stay in a project \u2014 pass a project name or id");
|
|
361
|
+
}
|
|
362
|
+
const projects = await listProjectsRaw(requestOpts);
|
|
363
|
+
const project = findRestProject(projects, projectArg);
|
|
364
|
+
const nextProjectId = project ? asString(project.id) : "";
|
|
365
|
+
if (!nextProjectId) throw new Error(`AbleTime project not found: ${projectArg}`);
|
|
366
|
+
patch.projectId = nextProjectId;
|
|
367
|
+
}
|
|
368
|
+
const parentArg = firstStringArg(args, ["parent", "parent_id", "parentId", "related_task_id"]);
|
|
369
|
+
if (parentArg) {
|
|
370
|
+
patch.parentTaskId = await resolveRestParentTaskId(parentArg, requestOpts);
|
|
371
|
+
}
|
|
342
372
|
if (Object.keys(patch).length > 0) {
|
|
343
373
|
await abletimeRestRequest(`/tasks/${encodeURIComponent(id)}`, {
|
|
344
374
|
...requestOpts,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
textFromAbleTimeDoc
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-F4LZUEIO.js";
|
|
4
4
|
import {
|
|
5
5
|
assertAbleTimeCredential,
|
|
6
6
|
callAbleTimeTool,
|
|
7
7
|
normalizeAbleTimeHost,
|
|
8
8
|
rewriteAbleTimeError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-X45BV4VX.js";
|
|
10
10
|
import {
|
|
11
11
|
isAbleTimeConnected,
|
|
12
12
|
saveAbleTimeConnection
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-Y4CF7LHH.js";
|
|
14
14
|
|
|
15
15
|
// src/integrations/abletime.ts
|
|
16
16
|
var CLOSED_STATES = /* @__PURE__ */ new Set([
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
getAbleTimeHost,
|
|
8
8
|
isAbleTimeConnected
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4EGK47WV.js";
|
|
10
10
|
|
|
11
11
|
// src/integrations/abletime-mcp.ts
|
|
12
12
|
var DEFAULT_ABLETIME_HOST = "https://track.abletime.com";
|
|
@@ -155,7 +155,7 @@ function textsFromUnknown(value) {
|
|
|
155
155
|
return "";
|
|
156
156
|
}
|
|
157
157
|
async function abletimeMcpRequest(method, params, opts) {
|
|
158
|
-
const rawToken = opts?.token ?? await import("./abletime-oauth-
|
|
158
|
+
const rawToken = opts?.token ?? await import("./abletime-oauth-UZHPB3W2.js").then((m) => m.ensureAbleTimeAccessToken());
|
|
159
159
|
if (!rawToken?.trim()) {
|
|
160
160
|
throw new Error("AbleTime is not connected \u2014 paste a personal access token in Account settings");
|
|
161
161
|
}
|
|
@@ -226,9 +226,9 @@ async function callAbleTimeTool(name, args = {}, opts) {
|
|
|
226
226
|
if (!opts?.token && !isAbleTimeConnected()) {
|
|
227
227
|
throw new Error("AbleTime is not connected \u2014 paste a personal access token in Account settings");
|
|
228
228
|
}
|
|
229
|
-
const rawToken = opts?.token ?? await import("./abletime-oauth-
|
|
229
|
+
const rawToken = opts?.token ?? await import("./abletime-oauth-UZHPB3W2.js").then((m) => m.ensureAbleTimeAccessToken());
|
|
230
230
|
if (rawToken && ableTimeUsesRest(rawToken)) {
|
|
231
|
-
const { callAbleTimeRestTool } = await import("./abletime-rest-
|
|
231
|
+
const { callAbleTimeRestTool } = await import("./abletime-rest-HYNYDYK3.js");
|
|
232
232
|
return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
|
|
233
233
|
}
|
|
234
234
|
const requestOpts = { ...opts, pm: opts?.pm ?? abletimeToolUsesPm(name) };
|
|
@@ -244,7 +244,7 @@ async function callAbleTimeTool(name, args = {}, opts) {
|
|
|
244
244
|
return await call();
|
|
245
245
|
}
|
|
246
246
|
if (rawToken && ableTimeUsesRest(rawToken) && isAbleTimeRejectedCredential(message)) {
|
|
247
|
-
const { callAbleTimeRestTool } = await import("./abletime-rest-
|
|
247
|
+
const { callAbleTimeRestTool } = await import("./abletime-rest-HYNYDYK3.js");
|
|
248
248
|
return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
|
|
249
249
|
}
|
|
250
250
|
throw err instanceof Error ? new Error(rewriteAbleTimeError(err.message)) : err;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
getAbleTimeHost,
|
|
6
6
|
isAbleTimeConnected
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Y4CF7LHH.js";
|
|
8
8
|
|
|
9
9
|
// src/integrations/abletime-mcp.ts
|
|
10
10
|
var DEFAULT_ABLETIME_HOST = "https://track.abletime.com";
|
|
@@ -153,7 +153,7 @@ function textsFromUnknown(value) {
|
|
|
153
153
|
return "";
|
|
154
154
|
}
|
|
155
155
|
async function abletimeMcpRequest(method, params, opts) {
|
|
156
|
-
const rawToken = opts?.token ?? await import("./abletime-oauth-
|
|
156
|
+
const rawToken = opts?.token ?? await import("./abletime-oauth-C3BQXKW3.js").then((m) => m.ensureAbleTimeAccessToken());
|
|
157
157
|
if (!rawToken?.trim()) {
|
|
158
158
|
throw new Error("AbleTime is not connected \u2014 paste a personal access token in Account settings");
|
|
159
159
|
}
|
|
@@ -224,9 +224,9 @@ async function callAbleTimeTool(name, args = {}, opts) {
|
|
|
224
224
|
if (!opts?.token && !isAbleTimeConnected()) {
|
|
225
225
|
throw new Error("AbleTime is not connected \u2014 paste a personal access token in Account settings");
|
|
226
226
|
}
|
|
227
|
-
const rawToken = opts?.token ?? await import("./abletime-oauth-
|
|
227
|
+
const rawToken = opts?.token ?? await import("./abletime-oauth-C3BQXKW3.js").then((m) => m.ensureAbleTimeAccessToken());
|
|
228
228
|
if (rawToken && ableTimeUsesRest(rawToken)) {
|
|
229
|
-
const { callAbleTimeRestTool } = await import("./abletime-rest-
|
|
229
|
+
const { callAbleTimeRestTool } = await import("./abletime-rest-5YPPEOKK.js");
|
|
230
230
|
return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
|
|
231
231
|
}
|
|
232
232
|
const requestOpts = { ...opts, pm: opts?.pm ?? abletimeToolUsesPm(name) };
|
|
@@ -242,7 +242,7 @@ async function callAbleTimeTool(name, args = {}, opts) {
|
|
|
242
242
|
return await call();
|
|
243
243
|
}
|
|
244
244
|
if (rawToken && ableTimeUsesRest(rawToken) && isAbleTimeRejectedCredential(message)) {
|
|
245
|
-
const { callAbleTimeRestTool } = await import("./abletime-rest-
|
|
245
|
+
const { callAbleTimeRestTool } = await import("./abletime-rest-5YPPEOKK.js");
|
|
246
246
|
return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
|
|
247
247
|
}
|
|
248
248
|
throw err instanceof Error ? new Error(rewriteAbleTimeError(err.message)) : err;
|
|
@@ -1577,6 +1577,7 @@ function disconnectAbleTimeConnection() {
|
|
|
1577
1577
|
delete integrations.abletimeRefreshToken;
|
|
1578
1578
|
delete integrations.abletimeTokenExpiresAt;
|
|
1579
1579
|
delete integrations.abletimeViewerName;
|
|
1580
|
+
delete integrations.abletimeHost;
|
|
1580
1581
|
return saveAppSettings({ ...current, integrations });
|
|
1581
1582
|
}
|
|
1582
1583
|
function getIssueSource(settings = loadAppSettings()) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
isOrchestratorThread
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QOJB5PC7.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-N4A4NWFO.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";
|
|
@@ -470,6 +470,10 @@ function turnFailChatText(opts) {
|
|
|
470
470
|
|
|
471
471
|
${fail}`;
|
|
472
472
|
}
|
|
473
|
+
function shouldRetryCodexPluginIsolate(detail, opts) {
|
|
474
|
+
if (opts?.alreadyIsolated) return false;
|
|
475
|
+
return looksLikeCodexMcpError(detail);
|
|
476
|
+
}
|
|
473
477
|
function looksLikeCodexMcpError(text) {
|
|
474
478
|
const t = text.trim().toLowerCase();
|
|
475
479
|
if (!t) return false;
|
|
@@ -482,7 +486,7 @@ function looksLikeCodexMcpError(text) {
|
|
|
482
486
|
if (/\brmcp\b/.test(t) && /fatal|quit|transport|error|died|kill|auth/.test(t)) {
|
|
483
487
|
return true;
|
|
484
488
|
}
|
|
485
|
-
return /
|
|
489
|
+
return /invalid transport in mcp_servers/.test(t);
|
|
486
490
|
}
|
|
487
491
|
function shouldFeedErrorBackToAgent(opts) {
|
|
488
492
|
const detail = opts.detail.trim();
|
|
@@ -528,13 +532,18 @@ function normalizeTurnInput(input) {
|
|
|
528
532
|
return {
|
|
529
533
|
prompt: input.prompt,
|
|
530
534
|
cachedPrefix: input.cachedPrefix?.trim() || void 0,
|
|
531
|
-
systemPrompt: input.systemPrompt?.trim() || void 0
|
|
535
|
+
systemPrompt: input.systemPrompt?.trim() || void 0,
|
|
536
|
+
...input.isolateCodexPlugins ? { isolateCodexPlugins: true } : {}
|
|
532
537
|
};
|
|
533
538
|
}
|
|
534
539
|
function dropCachedPrefixOnResume(input, sessionId) {
|
|
535
540
|
const turn = normalizeTurnInput(input);
|
|
536
541
|
if (sessionId) {
|
|
537
|
-
return
|
|
542
|
+
return {
|
|
543
|
+
prompt: turn.prompt,
|
|
544
|
+
...turn.systemPrompt ? { systemPrompt: turn.systemPrompt } : {},
|
|
545
|
+
...turn.isolateCodexPlugins ? { isolateCodexPlugins: true } : {}
|
|
546
|
+
};
|
|
538
547
|
}
|
|
539
548
|
return turn;
|
|
540
549
|
}
|
|
@@ -2441,7 +2450,7 @@ var claudeAdapter = {
|
|
|
2441
2450
|
);
|
|
2442
2451
|
}
|
|
2443
2452
|
const mode = permissionMode(thread);
|
|
2444
|
-
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-
|
|
2453
|
+
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-I2X6UQMX.js");
|
|
2445
2454
|
const isOrchestrator = isOrchestratorThread2(thread);
|
|
2446
2455
|
const injectedServers = await buildInjectedMcpServers({
|
|
2447
2456
|
includeSideboard: true,
|
|
@@ -2781,9 +2790,7 @@ function toCodexUnattendedAppsArgs() {
|
|
|
2781
2790
|
"-c",
|
|
2782
2791
|
"apps.posthog.enabled=false",
|
|
2783
2792
|
"-c",
|
|
2784
|
-
"features.plugins=false"
|
|
2785
|
-
"-c",
|
|
2786
|
-
"mcp_servers.posthog.enabled=false"
|
|
2793
|
+
"features.plugins=false"
|
|
2787
2794
|
];
|
|
2788
2795
|
}
|
|
2789
2796
|
|
|
@@ -2952,8 +2959,12 @@ var codexAdapter = {
|
|
|
2952
2959
|
}),
|
|
2953
2960
|
orchestratorThreadId: isOrchestrator ? thread.id : null
|
|
2954
2961
|
});
|
|
2962
|
+
const isolatePlugins = isOrchestrator || Boolean(thread.isolateCodexPlugins) || Boolean(normalizeTurnInput(input).isolateCodexPlugins);
|
|
2955
2963
|
const mcpOverrides = [
|
|
2956
|
-
|
|
2964
|
+
// Worktree first try keeps plugins (Claude connectors). Coordinators
|
|
2965
|
+
// isolate. After a fatal plugin MCP, the orchestrator retries with
|
|
2966
|
+
// isolateCodexPlugins so the turn continues. Never invent mcp_servers.posthog.
|
|
2967
|
+
...isolatePlugins ? toCodexUnattendedAppsArgs() : [],
|
|
2957
2968
|
...toCodexMcpConfigArgs(injected),
|
|
2958
2969
|
...isOrchestrator ? toCodexDisableUserMcpArgs(
|
|
2959
2970
|
userMcpNamesToDisable({
|
|
@@ -4770,6 +4781,7 @@ export {
|
|
|
4770
4781
|
looksLikeAgentFailureMessage,
|
|
4771
4782
|
fallbackTurnFailDetail,
|
|
4772
4783
|
turnFailChatText,
|
|
4784
|
+
shouldRetryCodexPluginIsolate,
|
|
4773
4785
|
shouldFeedErrorBackToAgent,
|
|
4774
4786
|
formatAgentErrorContinuePrompt,
|
|
4775
4787
|
formatTurnExitError,
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
enrichWorkspacesWithGithub,
|
|
8
8
|
ensureGlobalCoordinatorCwd,
|
|
9
9
|
formatWorkspaceInventory
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-PAQPT3JO.js";
|
|
11
|
+
import "./chunk-6KH4OBEW.js";
|
|
12
12
|
import "./chunk-6K64FJDD.js";
|
|
13
13
|
import "./chunk-QQKDGPUI.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-Y4CF7LHH.js";
|
|
15
15
|
import "./chunk-4TR3HZFT.js";
|
|
16
16
|
import "./chunk-WDRMZKVB.js";
|
|
17
17
|
import "./chunk-JT7R45JB.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-ARR4OGLY.js";
|
|
19
19
|
import "./chunk-77WWLBCI.js";
|
|
20
20
|
import "./chunk-WFUDY6PC.js";
|
|
21
21
|
import "./chunk-UFHNSFAS.js";
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
enrichWorkspacesWithGithub,
|
|
10
10
|
ensureGlobalCoordinatorCwd,
|
|
11
11
|
formatWorkspaceInventory
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-QOJB5PC7.js";
|
|
13
|
+
import "./chunk-N4A4NWFO.js";
|
|
14
14
|
import "./chunk-D6JWYJ4P.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-DWGEBZ3C.js";
|
|
16
16
|
import "./chunk-SYFVUF2C.js";
|
|
17
17
|
import "./chunk-FNQNJOHY.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-4EGK47WV.js";
|
|
19
19
|
import "./chunk-NSTQ6QKD.js";
|
|
20
20
|
import "./chunk-KGZBYWZ3.js";
|
|
21
21
|
import "./chunk-EQNRWDLN.js";
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
orchestratorSessionPoisonedByBuiltins,
|
|
18
18
|
slackCoordinatorSourceRef,
|
|
19
19
|
takenTeamSlugsForOrchestration
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-QOJB5PC7.js";
|
|
21
|
+
import "./chunk-N4A4NWFO.js";
|
|
22
22
|
import "./chunk-D6JWYJ4P.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-DWGEBZ3C.js";
|
|
24
24
|
import "./chunk-SYFVUF2C.js";
|
|
25
25
|
import "./chunk-FNQNJOHY.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-4EGK47WV.js";
|
|
27
27
|
import "./chunk-NSTQ6QKD.js";
|
|
28
28
|
import "./chunk-KGZBYWZ3.js";
|
|
29
29
|
import {
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
orchestratorSessionPoisonedByBuiltins,
|
|
16
16
|
slackCoordinatorSourceRef,
|
|
17
17
|
takenTeamSlugsForOrchestration
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-PAQPT3JO.js";
|
|
19
|
+
import "./chunk-6KH4OBEW.js";
|
|
20
20
|
import "./chunk-6K64FJDD.js";
|
|
21
21
|
import "./chunk-QQKDGPUI.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";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-ARR4OGLY.js";
|
|
27
27
|
import "./chunk-77WWLBCI.js";
|
|
28
28
|
import {
|
|
29
29
|
globalAgentCwd
|