@sideboard-ai/core 0.1.149 → 0.1.151
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-QEVAE67D.js → abletime-223A3LY6.js} +2 -2
- package/dist/{abletime-DI55AJX3.js → abletime-CLC5UJC2.js} +2 -2
- package/dist/agents/cursor-runner.cjs +40 -35
- package/dist/agents/cursor-runner.js +2 -2
- package/dist/{agents-V4MTDWXS.js → agents-JAOMXDXN.js} +10 -9
- package/dist/{agents-HSVQ2Z6Y.js → agents-U2JCFXW4.js} +10 -9
- package/dist/{app-settings-WJDCJFSY.js → app-settings-3CHCNIMD.js} +5 -1
- package/dist/{app-settings-ZCN632OJ.js → app-settings-J3JBCUOT.js} +5 -1
- package/dist/{chunk-N5PM7HGQ.js → chunk-2SDMENAL.js} +1 -1
- package/dist/{chunk-JTPDWTWJ.js → chunk-3JBMACYX.js} +137 -114
- package/dist/{chunk-I77RYPOH.js → chunk-4XNSGDXE.js} +12 -0
- package/dist/{chunk-JDYKQ6OI.js → chunk-6H4TJ5TA.js} +136 -75
- package/dist/{chunk-EGDRPA4B.js → chunk-77MP647F.js} +6 -6
- package/dist/{chunk-KBWND62T.js → chunk-7F4XE6UG.js} +5 -5
- package/dist/{chunk-R4JP32P5.js → chunk-ADCEGG4A.js} +4 -4
- package/dist/{chunk-BOD5V52W.js → chunk-B7XK37WZ.js} +1 -1
- package/dist/{chunk-BGQBELGJ.js → chunk-CZD4NRDZ.js} +12 -0
- package/dist/{chunk-KPIYENTF.js → chunk-FNQNJOHY.js} +89 -5
- package/dist/{chunk-ED4UPEJX.js → chunk-G7SIQFBQ.js} +1 -1
- package/dist/{chunk-TZWO7J4W.js → chunk-GCWAAPJ5.js} +115 -54
- package/dist/{chunk-YP3CSOZ6.js → chunk-GE7M3QTE.js} +142 -114
- package/dist/{chunk-LAFA56WD.js → chunk-HEII7W3Q.js} +1 -1
- package/dist/{chunk-3QRGCKYL.js → chunk-HWZWBJWL.js} +2 -2
- package/dist/{chunk-FKOIHGKV.js → chunk-JRH62XC4.js} +5 -1
- package/dist/{chunk-Q5DHVMXB.js → chunk-LZAOX76N.js} +18 -7
- package/dist/{chunk-B3SJXYIJ.js → chunk-NVXVEGGM.js} +1 -1
- package/dist/{chunk-ZVYLEF72.js → chunk-OXOU2FRS.js} +6 -6
- package/dist/chunk-QQKDGPUI.js +63 -0
- package/dist/{chunk-QTUESPAW.js → chunk-RFMQY56R.js} +1 -1
- package/dist/chunk-SYFVUF2C.js +65 -0
- package/dist/{chunk-Q62SDB53.js → chunk-TSCWSAQL.js} +2 -2
- package/dist/{chunk-DVM4ID64.js → chunk-UFHNSFAS.js} +89 -5
- package/dist/{chunk-PTI5H3RK.js → chunk-UIS7BVCX.js} +24 -13
- package/dist/{chunk-VZJVKQHH.js → chunk-WLV7TRMR.js} +1 -1
- package/dist/{chunk-N3VNOFXQ.js → chunk-Y2FNDKHF.js} +4 -4
- package/dist/{connected-teams-IJUJQ7R6.js → connected-teams-I2WZZZFA.js} +2 -2
- package/dist/{connected-teams-4A2AXDNN.js → connected-teams-XO766HB4.js} +2 -2
- package/dist/{coordinator-prompt-ZWBMAIWA.js → coordinator-prompt-LWYUZAXR.js} +6 -5
- package/dist/{coordinator-prompt-5GXGBGEZ.js → coordinator-prompt-ZK5MII7W.js} +6 -5
- package/dist/{global-workspace-OJRXWXEA.js → global-workspace-IB2CCEJF.js} +7 -6
- package/dist/{global-workspace-2SIPM4PW.js → global-workspace-T7RL3XEC.js} +7 -6
- package/dist/index.cjs +1010 -577
- package/dist/index.d.cts +96 -11
- package/dist/index.d.ts +96 -11
- package/dist/index.js +272 -93
- package/dist/mcp/run-stdio.cjs +981 -581
- package/dist/mcp/run-stdio.js +196 -43
- package/dist/{orchestrator-Z2O5OVJA.js → orchestrator-DPTRBKEH.js} +16 -13
- package/dist/{orchestrator-6TXQWBXN.js → orchestrator-Y5MWUU7C.js} +14 -11
- package/dist/{plan-file-6O7G4VPQ.js → plan-file-LSSSQGTQ.js} +2 -2
- package/dist/{plan-file-PHVKUAEE.js → plan-file-OZEBFSGQ.js} +2 -2
- package/dist/{run-XQKGHQZ2.js → run-CAGKZLHA.js} +1 -1
- package/dist/{run-USF6FRKV.js → run-EBWL2Q4N.js} +1 -1
- package/dist/{workspaces-UUJNOO4T.js → workspaces-VICQYI2N.js} +8 -7
- package/dist/{workspaces-3NUUZTQK.js → workspaces-ZXCUVCZC.js} +8 -7
- package/dist/{worktree-RZRJNHYL.js → worktree-DPIREDFR.js} +5 -4
- package/dist/{worktree-UCWWTVLS.js → worktree-HTUM35NT.js} +5 -4
- package/dist/worktree-exclude-N5X5I422.js +13 -0
- package/dist/worktree-exclude-X54WSOXM.js +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
git
|
|
3
|
+
} from "./chunk-UFHNSFAS.js";
|
|
4
|
+
|
|
5
|
+
// src/git/worktree-exclude.ts
|
|
6
|
+
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
7
|
+
import { dirname, join } from "path";
|
|
8
|
+
var WORKTREE_SIDEBOARD_EXCLUDE = ".sideboard/";
|
|
9
|
+
var WORKTREE_CONTEXT_EXCLUDE = ".context/";
|
|
10
|
+
var EXCLUDE_COMMENT = "# Sideboard worktree scratch \u2014 do not commit";
|
|
11
|
+
function excludeHasLine(body, ...needles) {
|
|
12
|
+
return body.split(/\r?\n/).some((line) => needles.includes(line.trim()));
|
|
13
|
+
}
|
|
14
|
+
async function ensureWorktreeSideboardIgnored(worktreePath) {
|
|
15
|
+
if (!worktreePath.trim()) return;
|
|
16
|
+
const gitDir = await git(["rev-parse", "--absolute-git-dir"], worktreePath, {
|
|
17
|
+
reject: false,
|
|
18
|
+
timeoutMs: 5e3
|
|
19
|
+
});
|
|
20
|
+
if (gitDir.exitCode !== 0) return;
|
|
21
|
+
const dir = gitDir.stdout.trim();
|
|
22
|
+
if (!dir) return;
|
|
23
|
+
const excludePath = join(dir, "info", "exclude");
|
|
24
|
+
mkdirSync(dirname(excludePath), { recursive: true });
|
|
25
|
+
let body = "";
|
|
26
|
+
try {
|
|
27
|
+
body = readFileSync(excludePath, "utf8");
|
|
28
|
+
} catch {
|
|
29
|
+
body = "";
|
|
30
|
+
}
|
|
31
|
+
const missing = [];
|
|
32
|
+
if (!excludeHasLine(body, ".sideboard/", ".sideboard", "/.sideboard/")) {
|
|
33
|
+
missing.push(WORKTREE_SIDEBOARD_EXCLUDE);
|
|
34
|
+
}
|
|
35
|
+
if (!excludeHasLine(body, ".context/", ".context", "/.context/")) {
|
|
36
|
+
missing.push(WORKTREE_CONTEXT_EXCLUDE);
|
|
37
|
+
}
|
|
38
|
+
if (missing.length > 0) {
|
|
39
|
+
const prefix = body && !body.endsWith("\n") ? `${body}
|
|
40
|
+
` : body;
|
|
41
|
+
const header = body.includes(EXCLUDE_COMMENT) ? "" : `${EXCLUDE_COMMENT}
|
|
42
|
+
`;
|
|
43
|
+
writeFileSync(excludePath, `${prefix}${header}${missing.join("\n")}
|
|
44
|
+
`, "utf8");
|
|
45
|
+
}
|
|
46
|
+
const listed = await git(["ls-files", "-z", "--", ".sideboard"], worktreePath, {
|
|
47
|
+
reject: false,
|
|
48
|
+
timeoutMs: 5e3
|
|
49
|
+
});
|
|
50
|
+
if (listed.exitCode !== 0 || !listed.stdout) return;
|
|
51
|
+
const files = listed.stdout.split("\0").filter(Boolean);
|
|
52
|
+
if (files.length === 0) return;
|
|
53
|
+
await git(["update-index", "--skip-worktree", "--", ...files], worktreePath, {
|
|
54
|
+
reject: false,
|
|
55
|
+
timeoutMs: 8e3
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
WORKTREE_SIDEBOARD_EXCLUDE,
|
|
61
|
+
WORKTREE_CONTEXT_EXCLUDE,
|
|
62
|
+
ensureWorktreeSideboardIgnored
|
|
63
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
git
|
|
5
|
+
} from "./chunk-FNQNJOHY.js";
|
|
6
|
+
|
|
7
|
+
// src/git/worktree-exclude.ts
|
|
8
|
+
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
9
|
+
import { dirname, join } from "path";
|
|
10
|
+
var WORKTREE_SIDEBOARD_EXCLUDE = ".sideboard/";
|
|
11
|
+
var WORKTREE_CONTEXT_EXCLUDE = ".context/";
|
|
12
|
+
var EXCLUDE_COMMENT = "# Sideboard worktree scratch \u2014 do not commit";
|
|
13
|
+
function excludeHasLine(body, ...needles) {
|
|
14
|
+
return body.split(/\r?\n/).some((line) => needles.includes(line.trim()));
|
|
15
|
+
}
|
|
16
|
+
async function ensureWorktreeSideboardIgnored(worktreePath) {
|
|
17
|
+
if (!worktreePath.trim()) return;
|
|
18
|
+
const gitDir = await git(["rev-parse", "--absolute-git-dir"], worktreePath, {
|
|
19
|
+
reject: false,
|
|
20
|
+
timeoutMs: 5e3
|
|
21
|
+
});
|
|
22
|
+
if (gitDir.exitCode !== 0) return;
|
|
23
|
+
const dir = gitDir.stdout.trim();
|
|
24
|
+
if (!dir) return;
|
|
25
|
+
const excludePath = join(dir, "info", "exclude");
|
|
26
|
+
mkdirSync(dirname(excludePath), { recursive: true });
|
|
27
|
+
let body = "";
|
|
28
|
+
try {
|
|
29
|
+
body = readFileSync(excludePath, "utf8");
|
|
30
|
+
} catch {
|
|
31
|
+
body = "";
|
|
32
|
+
}
|
|
33
|
+
const missing = [];
|
|
34
|
+
if (!excludeHasLine(body, ".sideboard/", ".sideboard", "/.sideboard/")) {
|
|
35
|
+
missing.push(WORKTREE_SIDEBOARD_EXCLUDE);
|
|
36
|
+
}
|
|
37
|
+
if (!excludeHasLine(body, ".context/", ".context", "/.context/")) {
|
|
38
|
+
missing.push(WORKTREE_CONTEXT_EXCLUDE);
|
|
39
|
+
}
|
|
40
|
+
if (missing.length > 0) {
|
|
41
|
+
const prefix = body && !body.endsWith("\n") ? `${body}
|
|
42
|
+
` : body;
|
|
43
|
+
const header = body.includes(EXCLUDE_COMMENT) ? "" : `${EXCLUDE_COMMENT}
|
|
44
|
+
`;
|
|
45
|
+
writeFileSync(excludePath, `${prefix}${header}${missing.join("\n")}
|
|
46
|
+
`, "utf8");
|
|
47
|
+
}
|
|
48
|
+
const listed = await git(["ls-files", "-z", "--", ".sideboard"], worktreePath, {
|
|
49
|
+
reject: false,
|
|
50
|
+
timeoutMs: 5e3
|
|
51
|
+
});
|
|
52
|
+
if (listed.exitCode !== 0 || !listed.stdout) return;
|
|
53
|
+
const files = listed.stdout.split("\0").filter(Boolean);
|
|
54
|
+
if (files.length === 0) return;
|
|
55
|
+
await git(["update-index", "--skip-worktree", "--", ...files], worktreePath, {
|
|
56
|
+
reject: false,
|
|
57
|
+
timeoutMs: 8e3
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export {
|
|
62
|
+
WORKTREE_SIDEBOARD_EXCLUDE,
|
|
63
|
+
WORKTREE_CONTEXT_EXCLUDE,
|
|
64
|
+
ensureWorktreeSideboardIgnored
|
|
65
|
+
};
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
isGlobalRepoPath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Y2FNDKHF.js";
|
|
6
6
|
import {
|
|
7
7
|
ensureGhPreferOrigin,
|
|
8
8
|
resolveRepoRoot
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3JBMACYX.js";
|
|
10
10
|
import {
|
|
11
11
|
appDataDir
|
|
12
12
|
} from "./chunk-BD2ICC4D.js";
|
|
@@ -96,17 +96,93 @@ function withExportedPath(command, pathValue) {
|
|
|
96
96
|
return `export PATH=${posixShellSingleQuote(pathValue)} && ${trimmed}`;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
// src/git/github-agent-auth.ts
|
|
100
|
+
import { chmodSync, existsSync as existsSync2, mkdirSync, writeFileSync } from "fs";
|
|
101
|
+
import { homedir as homedir2 } from "os";
|
|
102
|
+
import { dirname, join as join2 } from "path";
|
|
103
|
+
function githubAgentAuthDir() {
|
|
104
|
+
const override = process.env.SIDEBOARD_GIT_AUTH_DIR?.trim();
|
|
105
|
+
if (override) return override;
|
|
106
|
+
return join2(homedir2(), ".sideboard-git-auth");
|
|
107
|
+
}
|
|
108
|
+
function githubCredentialStorePath() {
|
|
109
|
+
return join2(githubAgentAuthDir(), "git-credentials");
|
|
110
|
+
}
|
|
111
|
+
function githubGhConfigDir() {
|
|
112
|
+
return join2(githubAgentAuthDir(), "gh");
|
|
113
|
+
}
|
|
114
|
+
function writePrivateFile(file, body) {
|
|
115
|
+
mkdirSync(dirname(file), { recursive: true, mode: 448 });
|
|
116
|
+
try {
|
|
117
|
+
chmodSync(dirname(file), 448);
|
|
118
|
+
} catch {
|
|
119
|
+
}
|
|
120
|
+
writeFileSync(file, body, { encoding: "utf8", mode: 384 });
|
|
121
|
+
try {
|
|
122
|
+
chmodSync(file, 384);
|
|
123
|
+
} catch {
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
function gitCredentialStoreContents(token) {
|
|
127
|
+
return `https://x-access-token:${encodeURIComponent(token)}@github.com
|
|
128
|
+
`;
|
|
129
|
+
}
|
|
130
|
+
function ghHostsYml(token, user = "x-access-token") {
|
|
131
|
+
const u = user.replace(/[^A-Za-z0-9._-]/g, "") || "x-access-token";
|
|
132
|
+
return [
|
|
133
|
+
"github.com:",
|
|
134
|
+
" git_protocol: https",
|
|
135
|
+
` user: ${u}`,
|
|
136
|
+
` oauth_token: ${token}`,
|
|
137
|
+
" users:",
|
|
138
|
+
` ${u}:`,
|
|
139
|
+
` oauth_token: ${token}`,
|
|
140
|
+
""
|
|
141
|
+
].join("\n");
|
|
142
|
+
}
|
|
143
|
+
function materializeGithubAgentAuth(token, user) {
|
|
144
|
+
const trimmed = token.trim();
|
|
145
|
+
if (!trimmed) return;
|
|
146
|
+
const root = githubAgentAuthDir();
|
|
147
|
+
mkdirSync(root, { recursive: true, mode: 448 });
|
|
148
|
+
try {
|
|
149
|
+
chmodSync(root, 448);
|
|
150
|
+
} catch {
|
|
151
|
+
}
|
|
152
|
+
writePrivateFile(githubCredentialStorePath(), gitCredentialStoreContents(trimmed));
|
|
153
|
+
const ghDir = githubGhConfigDir();
|
|
154
|
+
mkdirSync(ghDir, { recursive: true, mode: 448 });
|
|
155
|
+
writePrivateFile(join2(ghDir, "hosts.yml"), ghHostsYml(trimmed, user));
|
|
156
|
+
writePrivateFile(join2(ghDir, "config.yml"), "git_protocol: https\nprompt: disabled\n");
|
|
157
|
+
}
|
|
158
|
+
function githubAgentAuthReady() {
|
|
159
|
+
return existsSync2(githubCredentialStorePath()) && existsSync2(join2(githubGhConfigDir(), "hosts.yml"));
|
|
160
|
+
}
|
|
161
|
+
function githubCredentialHelperGitConfig() {
|
|
162
|
+
const file = githubCredentialStorePath();
|
|
163
|
+
return [
|
|
164
|
+
{ key: "credential.helper", value: "" },
|
|
165
|
+
{ key: "credential.helper", value: `store --file=${file}` }
|
|
166
|
+
];
|
|
167
|
+
}
|
|
168
|
+
function githubGhConfigEnv() {
|
|
169
|
+
return {
|
|
170
|
+
GH_CONFIG_DIR: githubGhConfigDir(),
|
|
171
|
+
GH_PROMPT_DISABLED: "1"
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
|
|
99
175
|
// src/git/stale-lock.ts
|
|
100
|
-
import { existsSync as
|
|
101
|
-
import { join as
|
|
176
|
+
import { existsSync as existsSync3, statSync, unlinkSync } from "fs";
|
|
177
|
+
import { join as join3 } from "path";
|
|
102
178
|
var STALE_INDEX_LOCK_MS = 2e4;
|
|
103
179
|
function isIndexLockError(text) {
|
|
104
180
|
return /Unable to create ['"][^'"]*index\.lock['"]: File exists/i.test(text);
|
|
105
181
|
}
|
|
106
182
|
function clearStaleIndexLock(gitDir, maxAgeMs = STALE_INDEX_LOCK_MS, now = Date.now()) {
|
|
107
|
-
const lockPath =
|
|
183
|
+
const lockPath = join3(gitDir, "index.lock");
|
|
108
184
|
try {
|
|
109
|
-
if (!
|
|
185
|
+
if (!existsSync3(lockPath)) return null;
|
|
110
186
|
if (now - statSync(lockPath).mtimeMs < maxAgeMs) return null;
|
|
111
187
|
unlinkSync(lockPath);
|
|
112
188
|
return lockPath;
|
|
@@ -208,7 +284,10 @@ async function gh(args, cwd, opts) {
|
|
|
208
284
|
timeoutMs: opts?.timeoutMs,
|
|
209
285
|
env: {
|
|
210
286
|
GH_PROMPT_DISABLED: "1",
|
|
211
|
-
GIT_TERMINAL_PROMPT: "0"
|
|
287
|
+
GIT_TERMINAL_PROMPT: "0",
|
|
288
|
+
// Isolated hosts.yml uses git_protocol: https so `gh pr create` does not
|
|
289
|
+
// shell out over SSH when Settings → Git is SSH (ask_git in Electron).
|
|
290
|
+
...githubAgentAuthReady() ? githubGhConfigEnv() : {}
|
|
212
291
|
}
|
|
213
292
|
});
|
|
214
293
|
}
|
|
@@ -227,6 +306,11 @@ export {
|
|
|
227
306
|
posixShellSingleQuote,
|
|
228
307
|
resolveCommandBinarySync,
|
|
229
308
|
withExportedPath,
|
|
309
|
+
githubAgentAuthDir,
|
|
310
|
+
materializeGithubAgentAuth,
|
|
311
|
+
githubAgentAuthReady,
|
|
312
|
+
githubCredentialHelperGitConfig,
|
|
313
|
+
githubGhConfigEnv,
|
|
230
314
|
clearStaleIndexLocks,
|
|
231
315
|
run,
|
|
232
316
|
resolveGitDirsForLockRecovery,
|
|
@@ -3,13 +3,19 @@ import {
|
|
|
3
3
|
brightsyMcpServerName,
|
|
4
4
|
ensureCliTeamTracked,
|
|
5
5
|
ensureConnectedBrightsyTeamTokens
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7F4XE6UG.js";
|
|
7
7
|
import {
|
|
8
8
|
loadBrightsyConfig
|
|
9
9
|
} from "./chunk-M267JPEA.js";
|
|
10
10
|
import {
|
|
11
11
|
isOrchestratorThread
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ADCEGG4A.js";
|
|
13
|
+
import {
|
|
14
|
+
codexUnattendedGitConfigArgs,
|
|
15
|
+
mergeAgentGitAuthEnv,
|
|
16
|
+
resolveAgentGitAuthEnv,
|
|
17
|
+
resolveCodexGitWritableRoots
|
|
18
|
+
} from "./chunk-GE7M3QTE.js";
|
|
13
19
|
import {
|
|
14
20
|
applyAgentRunnerHeapEnv,
|
|
15
21
|
applyNodeLaunch,
|
|
@@ -22,19 +28,13 @@ import {
|
|
|
22
28
|
packagedMcpStdioPath,
|
|
23
29
|
parseCursorRunnerLine,
|
|
24
30
|
resolveNodeLaunch
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import {
|
|
27
|
-
codexUnattendedGitConfigArgs,
|
|
28
|
-
mergeAgentGitAuthEnv,
|
|
29
|
-
resolveAgentGitAuthEnv,
|
|
30
|
-
resolveCodexGitWritableRoots
|
|
31
|
-
} from "./chunk-YP3CSOZ6.js";
|
|
31
|
+
} from "./chunk-HEII7W3Q.js";
|
|
32
32
|
import {
|
|
33
33
|
claudeChromeEnabled,
|
|
34
34
|
loadAppSettings,
|
|
35
35
|
resolveAgentExecutable,
|
|
36
36
|
resolveClaudeExecutable
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-4XNSGDXE.js";
|
|
38
38
|
import {
|
|
39
39
|
isElectronLikeCommand,
|
|
40
40
|
unwrapStrippedElectronLaunch
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
resolveCommandBinarySync,
|
|
49
49
|
run,
|
|
50
50
|
withExportedPath
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-UFHNSFAS.js";
|
|
52
52
|
|
|
53
53
|
// src/agents/brightsy.ts
|
|
54
54
|
import { existsSync } from "fs";
|
|
@@ -716,6 +716,13 @@ function isSubagentToolName(name) {
|
|
|
716
716
|
if (/^(task|agent|spawn_agent)$/i.test(n)) return true;
|
|
717
717
|
return /connectedAgentRequest/i.test(n);
|
|
718
718
|
}
|
|
719
|
+
function isInternalAgentStatusText(text) {
|
|
720
|
+
const t = text.trim();
|
|
721
|
+
if (!t) return false;
|
|
722
|
+
if (/waiting for gate to pass/i.test(t)) return true;
|
|
723
|
+
if (/^agent is running\b/i.test(t) && t.length < 160) return true;
|
|
724
|
+
return false;
|
|
725
|
+
}
|
|
719
726
|
function isPollWrapperToolName(name) {
|
|
720
727
|
const n = (name ?? "").replace(/[_-]/g, "");
|
|
721
728
|
return /^(taskoutput|taskstop|sleep)$/i.test(n);
|
|
@@ -723,7 +730,10 @@ function isPollWrapperToolName(name) {
|
|
|
723
730
|
function lastTextPart(parts, type) {
|
|
724
731
|
for (let i = parts.length - 1; i >= 0; i--) {
|
|
725
732
|
const p = parts[i];
|
|
726
|
-
if (p.type
|
|
733
|
+
if (p.type !== type) continue;
|
|
734
|
+
const text = p.text.trim();
|
|
735
|
+
if (!text || isInternalAgentStatusText(text)) continue;
|
|
736
|
+
return text;
|
|
727
737
|
}
|
|
728
738
|
return "";
|
|
729
739
|
}
|
|
@@ -1767,7 +1777,7 @@ var claudeAdapter = {
|
|
|
1767
1777
|
);
|
|
1768
1778
|
}
|
|
1769
1779
|
const mode = permissionMode(thread);
|
|
1770
|
-
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-
|
|
1780
|
+
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-IB2CCEJF.js");
|
|
1771
1781
|
const isOrchestrator = isOrchestratorThread2(thread);
|
|
1772
1782
|
const injectedServers = await buildInjectedMcpServers({
|
|
1773
1783
|
includeSideboard: true,
|
|
@@ -3339,6 +3349,7 @@ export {
|
|
|
3339
3349
|
toolDetail,
|
|
3340
3350
|
toolDescription,
|
|
3341
3351
|
isSubagentToolName,
|
|
3352
|
+
isInternalAgentStatusText,
|
|
3342
3353
|
isPollWrapperToolName,
|
|
3343
3354
|
isShellToolName,
|
|
3344
3355
|
toolActivityLine,
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
ensureGlobalCoordinatorCwd
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OXOU2FRS.js";
|
|
6
6
|
import {
|
|
7
7
|
allocateTeamName,
|
|
8
8
|
takenSlugsFromThread,
|
|
9
9
|
teamSlugFromName
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3JBMACYX.js";
|
|
11
11
|
import {
|
|
12
12
|
ATTACHMENTS_DIR,
|
|
13
13
|
attachmentsGitignoreBody
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NVXVEGGM.js";
|
|
15
15
|
import {
|
|
16
16
|
createEmptyThread,
|
|
17
17
|
listThreads,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
resolveNewThreadOptions,
|
|
23
23
|
resolveThreadDefaults
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CZD4NRDZ.js";
|
|
25
25
|
import {
|
|
26
26
|
globalAgentCwd
|
|
27
27
|
} from "./chunk-BD2ICC4D.js";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
ensureConnectedBrightsyTeamTokens,
|
|
10
10
|
getConnectedBrightsyTeamsRaw,
|
|
11
11
|
listConnectedBrightsyTeams
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-G7SIQFBQ.js";
|
|
13
13
|
import "./chunk-S42XV45P.js";
|
|
14
14
|
import "./chunk-6GN5WPYZ.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-FNQNJOHY.js";
|
|
16
16
|
import "./chunk-BD2ICC4D.js";
|
|
17
17
|
export {
|
|
18
18
|
applyConnectedTeamToCli,
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
ensureConnectedBrightsyTeamTokens,
|
|
8
8
|
getConnectedBrightsyTeamsRaw,
|
|
9
9
|
listConnectedBrightsyTeams
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7F4XE6UG.js";
|
|
11
11
|
import "./chunk-M267JPEA.js";
|
|
12
12
|
import "./chunk-ELBYOGVA.js";
|
|
13
13
|
import "./chunk-QZQEXME2.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-UFHNSFAS.js";
|
|
15
15
|
export {
|
|
16
16
|
applyConnectedTeamToCli,
|
|
17
17
|
brightsyMcpServerName,
|
|
@@ -7,16 +7,17 @@ import {
|
|
|
7
7
|
enrichWorkspacesWithGithub,
|
|
8
8
|
ensureGlobalCoordinatorCwd,
|
|
9
9
|
formatWorkspaceInventory
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-77MP647F.js";
|
|
11
|
+
import "./chunk-GE7M3QTE.js";
|
|
12
|
+
import "./chunk-JRH62XC4.js";
|
|
13
|
+
import "./chunk-4XNSGDXE.js";
|
|
14
14
|
import "./chunk-4TR3HZFT.js";
|
|
15
15
|
import "./chunk-JT7R45JB.js";
|
|
16
16
|
import "./chunk-TUGKX5BD.js";
|
|
17
17
|
import "./chunk-77WWLBCI.js";
|
|
18
18
|
import "./chunk-QZQEXME2.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-QQKDGPUI.js";
|
|
20
|
+
import "./chunk-UFHNSFAS.js";
|
|
20
21
|
export {
|
|
21
22
|
COORDINATOR_TOOL_PLAYBOOK,
|
|
22
23
|
SLACK_REPLY_FORMATTING,
|
|
@@ -9,12 +9,13 @@ import {
|
|
|
9
9
|
enrichWorkspacesWithGithub,
|
|
10
10
|
ensureGlobalCoordinatorCwd,
|
|
11
11
|
formatWorkspaceInventory
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-OXOU2FRS.js";
|
|
13
|
+
import "./chunk-3JBMACYX.js";
|
|
14
|
+
import "./chunk-NVXVEGGM.js";
|
|
15
15
|
import "./chunk-EUXOHTUK.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-SYFVUF2C.js";
|
|
17
|
+
import "./chunk-FNQNJOHY.js";
|
|
18
|
+
import "./chunk-CZD4NRDZ.js";
|
|
18
19
|
import "./chunk-NSTQ6QKD.js";
|
|
19
20
|
import "./chunk-KGZBYWZ3.js";
|
|
20
21
|
import "./chunk-BD2ICC4D.js";
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
orchestratorSessionPoisonedByBuiltins,
|
|
16
16
|
slackCoordinatorSourceRef,
|
|
17
17
|
takenTeamSlugsForOrchestration
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-ADCEGG4A.js";
|
|
19
|
+
import "./chunk-77MP647F.js";
|
|
20
|
+
import "./chunk-GE7M3QTE.js";
|
|
21
|
+
import "./chunk-JRH62XC4.js";
|
|
22
|
+
import "./chunk-4XNSGDXE.js";
|
|
23
23
|
import "./chunk-4TR3HZFT.js";
|
|
24
24
|
import "./chunk-JT7R45JB.js";
|
|
25
25
|
import "./chunk-TUGKX5BD.js";
|
|
@@ -27,7 +27,8 @@ import "./chunk-77WWLBCI.js";
|
|
|
27
27
|
import {
|
|
28
28
|
globalAgentCwd
|
|
29
29
|
} from "./chunk-QZQEXME2.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-QQKDGPUI.js";
|
|
31
|
+
import "./chunk-UFHNSFAS.js";
|
|
31
32
|
export {
|
|
32
33
|
GLOBAL_WORKSPACE_ID,
|
|
33
34
|
createGlobalChat,
|
|
@@ -17,13 +17,14 @@ import {
|
|
|
17
17
|
orchestratorSessionPoisonedByBuiltins,
|
|
18
18
|
slackCoordinatorSourceRef,
|
|
19
19
|
takenTeamSlugsForOrchestration
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-Y2FNDKHF.js";
|
|
21
|
+
import "./chunk-OXOU2FRS.js";
|
|
22
|
+
import "./chunk-3JBMACYX.js";
|
|
23
|
+
import "./chunk-NVXVEGGM.js";
|
|
24
24
|
import "./chunk-EUXOHTUK.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-SYFVUF2C.js";
|
|
26
|
+
import "./chunk-FNQNJOHY.js";
|
|
27
|
+
import "./chunk-CZD4NRDZ.js";
|
|
27
28
|
import "./chunk-NSTQ6QKD.js";
|
|
28
29
|
import "./chunk-KGZBYWZ3.js";
|
|
29
30
|
import {
|