@sideboard-ai/core 0.1.172 → 0.1.174
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-CTWLBPCV.js → agents-LMPVUPOH.js} +3 -3
- package/dist/{agents-7UTRNLXQ.js → agents-ZWYRGFZB.js} +3 -3
- package/dist/{chunk-QYZYDO3F.js → chunk-7JIYKYLL.js} +26 -5
- package/dist/{chunk-PXNOT6NV.js → chunk-7O53GXTA.js} +26 -5
- package/dist/{chunk-3F7AXVIL.js → chunk-CUA4S537.js} +3 -3
- package/dist/{chunk-QYJS7LYE.js → chunk-HJPGIETB.js} +204 -145
- package/dist/{chunk-6X6KMUI2.js → chunk-TPPZXZTA.js} +3 -3
- package/dist/{chunk-234EKD2F.js → chunk-VCVBICMZ.js} +1 -1
- package/dist/{chunk-ZTVBIBLB.js → chunk-YEPVWJ3R.js} +200 -143
- package/dist/{chunk-2RM6BZQ2.js → chunk-ZY7K4T37.js} +1 -1
- package/dist/{coordinator-prompt-PM6MPYYB.js → coordinator-prompt-K3HXEPFD.js} +2 -2
- package/dist/{coordinator-prompt-7CTI6HRH.js → coordinator-prompt-LJKA2ODR.js} +2 -2
- package/dist/{global-workspace-CRJ6ZVIY.js → global-workspace-KA7T26F5.js} +2 -2
- package/dist/{global-workspace-CMYSFRCM.js → global-workspace-VDFSU3DD.js} +2 -2
- package/dist/index.cjs +324 -238
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +6 -6
- package/dist/mcp/run-stdio.cjs +336 -250
- package/dist/mcp/run-stdio.js +4 -4
- package/dist/{orchestrator-RW4IVITI.js → orchestrator-DMSSC4SV.js} +4 -4
- package/dist/{orchestrator-VPT4SXXD.js → orchestrator-VMUZJFTZ.js} +4 -4
- package/dist/{workspaces-L73MCDFA.js → workspaces-GOGBPATJ.js} +2 -2
- package/dist/{workspaces-UYSD2STS.js → workspaces-UR7YEFMZ.js} +2 -2
- package/dist/{worktree-SQD3DBYC.js → worktree-LC4VRWDM.js} +1 -1
- package/dist/{worktree-WVEDT3FM.js → worktree-UTDBQXSS.js} +1 -1
- package/package.json +1 -1
|
@@ -37,12 +37,12 @@ import {
|
|
|
37
37
|
resolveQuotaFallbackAgent,
|
|
38
38
|
turnCostUsdFromCursorUsage,
|
|
39
39
|
whichOnPath
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-TPPZXZTA.js";
|
|
41
41
|
import "./chunk-LZ6QMEQC.js";
|
|
42
42
|
import "./chunk-S42XV45P.js";
|
|
43
43
|
import "./chunk-6GN5WPYZ.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-VCVBICMZ.js";
|
|
45
|
+
import "./chunk-7O53GXTA.js";
|
|
46
46
|
import "./chunk-D6JWYJ4P.js";
|
|
47
47
|
import "./chunk-LZQULFIT.js";
|
|
48
48
|
import "./chunk-SYFVUF2C.js";
|
|
@@ -31,9 +31,9 @@ import {
|
|
|
31
31
|
resolveLoginCommand,
|
|
32
32
|
resolveQuotaFallbackAgent,
|
|
33
33
|
whichOnPath
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-CUA4S537.js";
|
|
35
|
+
import "./chunk-ZY7K4T37.js";
|
|
36
|
+
import "./chunk-7JIYKYLL.js";
|
|
37
37
|
import "./chunk-6K64FJDD.js";
|
|
38
38
|
import "./chunk-XD2BAANL.js";
|
|
39
39
|
import "./chunk-M267JPEA.js";
|
|
@@ -760,18 +760,35 @@ function teamSlugFromName(name) {
|
|
|
760
760
|
function normalizeTakenSlug(raw) {
|
|
761
761
|
return raw.toLowerCase().replace(/^thread\//, "").replace(/\/+$/, "");
|
|
762
762
|
}
|
|
763
|
+
function soccerTokenFromTakenSlug(raw) {
|
|
764
|
+
const normalized = normalizeTakenSlug(raw);
|
|
765
|
+
if (!normalized) return null;
|
|
766
|
+
const withoutTicket = normalized.replace(/^[a-z]{2,8}-\d{1,6}-/, "").replace(/^\d{1,8}-/, "");
|
|
767
|
+
const lookup = withoutTicket || normalized;
|
|
768
|
+
const suffixMatch = lookup.match(/^(.+)-(\d+)$/);
|
|
769
|
+
const base = suffixMatch?.[1] ?? lookup;
|
|
770
|
+
const team = FAMOUS_SOCCER_TEAM_SEEDS.find((t) => t.slug === base);
|
|
771
|
+
if (!team) return null;
|
|
772
|
+
return suffixMatch ? `${team.slug}-${suffixMatch[2]}` : team.slug;
|
|
773
|
+
}
|
|
774
|
+
function addTakenSlug(out, raw) {
|
|
775
|
+
const normalized = normalizeTakenSlug(raw);
|
|
776
|
+
if (!normalized) return;
|
|
777
|
+
out.add(normalized);
|
|
778
|
+
const token = soccerTokenFromTakenSlug(normalized);
|
|
779
|
+
if (token) out.add(token);
|
|
780
|
+
}
|
|
763
781
|
function takenSlugsFromThread(thread) {
|
|
764
782
|
const out = /* @__PURE__ */ new Set();
|
|
765
783
|
const titleSlug = thread.title ? teamSlugFromName(thread.title) : null;
|
|
766
784
|
if (titleSlug) out.add(normalizeTakenSlug(titleSlug));
|
|
767
785
|
if (thread.branchName?.trim()) {
|
|
768
|
-
|
|
769
|
-
if (branch) out.add(branch);
|
|
786
|
+
addTakenSlug(out, thread.branchName.trim());
|
|
770
787
|
}
|
|
771
788
|
if (thread.worktreePath) {
|
|
772
789
|
const parts = thread.worktreePath.replace(/\/+$/, "").split("/");
|
|
773
790
|
const dir = parts[parts.length - 1];
|
|
774
|
-
if (dir) out
|
|
791
|
+
if (dir) addTakenSlug(out, dir);
|
|
775
792
|
}
|
|
776
793
|
return [...out];
|
|
777
794
|
}
|
|
@@ -3191,12 +3208,16 @@ function collectTakenTeamSlugs(repoPath) {
|
|
|
3191
3208
|
if (existsSync(root)) {
|
|
3192
3209
|
for (const entry of readdirSync(root, { withFileTypes: true })) {
|
|
3193
3210
|
if (entry.isDirectory() && entry.name !== ".DS_Store") {
|
|
3194
|
-
|
|
3211
|
+
for (const slug of takenSlugsFromThread({ worktreePath: entry.name })) {
|
|
3212
|
+
taken.add(slug);
|
|
3213
|
+
}
|
|
3195
3214
|
}
|
|
3196
3215
|
}
|
|
3197
3216
|
}
|
|
3198
3217
|
for (const slug of listLocalThreadBranchSlugs(repoPath)) {
|
|
3199
|
-
|
|
3218
|
+
for (const token of takenSlugsFromThread({ branchName: slug })) {
|
|
3219
|
+
taken.add(token);
|
|
3220
|
+
}
|
|
3200
3221
|
}
|
|
3201
3222
|
for (const thread of listThreads({ includeArchived: true })) {
|
|
3202
3223
|
if (!sameRepoPath(thread.repoPath, repoPath)) continue;
|
|
@@ -762,18 +762,35 @@ function teamSlugFromName(name) {
|
|
|
762
762
|
function normalizeTakenSlug(raw) {
|
|
763
763
|
return raw.toLowerCase().replace(/^thread\//, "").replace(/\/+$/, "");
|
|
764
764
|
}
|
|
765
|
+
function soccerTokenFromTakenSlug(raw) {
|
|
766
|
+
const normalized = normalizeTakenSlug(raw);
|
|
767
|
+
if (!normalized) return null;
|
|
768
|
+
const withoutTicket = normalized.replace(/^[a-z]{2,8}-\d{1,6}-/, "").replace(/^\d{1,8}-/, "");
|
|
769
|
+
const lookup = withoutTicket || normalized;
|
|
770
|
+
const suffixMatch = lookup.match(/^(.+)-(\d+)$/);
|
|
771
|
+
const base = suffixMatch?.[1] ?? lookup;
|
|
772
|
+
const team = FAMOUS_SOCCER_TEAM_SEEDS.find((t) => t.slug === base);
|
|
773
|
+
if (!team) return null;
|
|
774
|
+
return suffixMatch ? `${team.slug}-${suffixMatch[2]}` : team.slug;
|
|
775
|
+
}
|
|
776
|
+
function addTakenSlug(out, raw) {
|
|
777
|
+
const normalized = normalizeTakenSlug(raw);
|
|
778
|
+
if (!normalized) return;
|
|
779
|
+
out.add(normalized);
|
|
780
|
+
const token = soccerTokenFromTakenSlug(normalized);
|
|
781
|
+
if (token) out.add(token);
|
|
782
|
+
}
|
|
765
783
|
function takenSlugsFromThread(thread) {
|
|
766
784
|
const out = /* @__PURE__ */ new Set();
|
|
767
785
|
const titleSlug = thread.title ? teamSlugFromName(thread.title) : null;
|
|
768
786
|
if (titleSlug) out.add(normalizeTakenSlug(titleSlug));
|
|
769
787
|
if (thread.branchName?.trim()) {
|
|
770
|
-
|
|
771
|
-
if (branch) out.add(branch);
|
|
788
|
+
addTakenSlug(out, thread.branchName.trim());
|
|
772
789
|
}
|
|
773
790
|
if (thread.worktreePath) {
|
|
774
791
|
const parts = thread.worktreePath.replace(/\/+$/, "").split("/");
|
|
775
792
|
const dir = parts[parts.length - 1];
|
|
776
|
-
if (dir) out
|
|
793
|
+
if (dir) addTakenSlug(out, dir);
|
|
777
794
|
}
|
|
778
795
|
return [...out];
|
|
779
796
|
}
|
|
@@ -3154,12 +3171,16 @@ function collectTakenTeamSlugs(repoPath) {
|
|
|
3154
3171
|
if (existsSync(root)) {
|
|
3155
3172
|
for (const entry of readdirSync(root, { withFileTypes: true })) {
|
|
3156
3173
|
if (entry.isDirectory() && entry.name !== ".DS_Store") {
|
|
3157
|
-
|
|
3174
|
+
for (const slug of takenSlugsFromThread({ worktreePath: entry.name })) {
|
|
3175
|
+
taken.add(slug);
|
|
3176
|
+
}
|
|
3158
3177
|
}
|
|
3159
3178
|
}
|
|
3160
3179
|
}
|
|
3161
3180
|
for (const slug of listLocalThreadBranchSlugs(repoPath)) {
|
|
3162
|
-
|
|
3181
|
+
for (const token of takenSlugsFromThread({ branchName: slug })) {
|
|
3182
|
+
taken.add(token);
|
|
3183
|
+
}
|
|
3163
3184
|
}
|
|
3164
3185
|
for (const thread of listThreads({ includeArchived: true })) {
|
|
3165
3186
|
if (!sameRepoPath(thread.repoPath, repoPath)) continue;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isOrchestratorThread
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZY7K4T37.js";
|
|
4
4
|
import {
|
|
5
5
|
codexUnattendedGitConfigArgs,
|
|
6
6
|
mergeAgentGitAuthEnv,
|
|
7
7
|
resolveAgentGitAuthEnv,
|
|
8
8
|
resolveCodexGitWritableRoots
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7JIYKYLL.js";
|
|
10
10
|
import {
|
|
11
11
|
applyConnectedTeamToCli,
|
|
12
12
|
brightsyMcpServerName,
|
|
@@ -1898,7 +1898,7 @@ var claudeAdapter = {
|
|
|
1898
1898
|
);
|
|
1899
1899
|
}
|
|
1900
1900
|
const mode = permissionMode(thread);
|
|
1901
|
-
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-
|
|
1901
|
+
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-VDFSU3DD.js");
|
|
1902
1902
|
const isOrchestrator = isOrchestratorThread2(thread);
|
|
1903
1903
|
const injectedServers = await buildInjectedMcpServers({
|
|
1904
1904
|
includeSideboard: true,
|