@sideboard-ai/core 0.1.211 → 0.1.213
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-GQANI7M5.js → agents-HETHRRZJ.js} +4 -4
- package/dist/{agents-A2U3K7VK.js → agents-WBDDLRBY.js} +4 -4
- package/dist/{chunk-JJ3ONQ4Q.js → chunk-3IMSQNTS.js} +12 -2
- package/dist/{chunk-IA5IPGZI.js → chunk-7MTVRNP4.js} +3 -3
- package/dist/{chunk-KZUA4QG2.js → chunk-C32SBNA3.js} +198 -97
- package/dist/{chunk-ERNK7AWM.js → chunk-D2IKXMF3.js} +196 -96
- package/dist/{chunk-IRCAWYTN.js → chunk-DFTVZEZY.js} +3 -3
- package/dist/{chunk-2PE6SZCM.js → chunk-FNGXKY5W.js} +2 -2
- package/dist/{chunk-GHKFSBES.js → chunk-HY2GFZ5S.js} +12 -2
- package/dist/{chunk-WNVQJZ7P.js → chunk-KFD2OXCE.js} +2 -2
- package/dist/{chunk-NRKDRQM3.js → chunk-NI243N27.js} +1 -1
- package/dist/{chunk-VPQXJYIW.js → chunk-XYKVRRC2.js} +1 -1
- package/dist/{coordinator-prompt-LMTMWCPN.js → coordinator-prompt-FQX6ALAI.js} +3 -3
- package/dist/{coordinator-prompt-EHRDZ2ZU.js → coordinator-prompt-LE2GQZ2X.js} +3 -3
- package/dist/{global-workspace-NG2TBUI5.js → global-workspace-6P236KKG.js} +3 -3
- package/dist/{global-workspace-RHABXQWB.js → global-workspace-KT3FRHZL.js} +3 -3
- package/dist/index.cjs +210 -88
- package/dist/index.d.cts +61 -6
- package/dist/index.d.ts +61 -6
- package/dist/index.js +11 -5
- package/dist/mcp/run-stdio.cjs +204 -88
- package/dist/mcp/run-stdio.js +5 -5
- package/dist/{orchestrator-NZO4PVFH.js → orchestrator-MI7A5DQZ.js} +7 -5
- package/dist/{orchestrator-QMGH4V4K.js → orchestrator-WVZPTHBV.js} +7 -5
- package/dist/{thread-store-MSMBQ3V4.js → thread-store-KDPPXJJ3.js} +3 -1
- package/dist/{thread-store-4M6WETL6.js → thread-store-N6WQIWZ4.js} +3 -1
- package/dist/{workspaces-VIUUE4RT.js → workspaces-KM7KTLVO.js} +3 -3
- package/dist/{workspaces-FRR6Y4BY.js → workspaces-R5LJCJRB.js} +3 -3
- package/dist/{worktree-GKUOHXXB.js → worktree-MDMTCAHX.js} +2 -2
- package/dist/{worktree-3MEG62KB.js → worktree-VXRI7LYM.js} +2 -2
- package/package.json +1 -1
|
@@ -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-DFTVZEZY.js";
|
|
48
|
+
import "./chunk-FNGXKY5W.js";
|
|
49
|
+
import "./chunk-NI243N27.js";
|
|
50
50
|
import "./chunk-6K64FJDD.js";
|
|
51
51
|
import "./chunk-QQKDGPUI.js";
|
|
52
52
|
import "./chunk-SALM35KD.js";
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
import "./chunk-4TR3HZFT.js";
|
|
68
68
|
import "./chunk-WDRMZKVB.js";
|
|
69
69
|
import "./chunk-JT7R45JB.js";
|
|
70
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-3IMSQNTS.js";
|
|
71
71
|
import "./chunk-7J72QJOM.js";
|
|
72
72
|
import "./chunk-77WWLBCI.js";
|
|
73
73
|
import "./chunk-WFUDY6PC.js";
|
|
@@ -50,14 +50,14 @@ import {
|
|
|
50
50
|
resolveQuotaFallbackAgent,
|
|
51
51
|
turnCostUsdFromCursorUsage,
|
|
52
52
|
whichOnPath
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import "./chunk-
|
|
53
|
+
} from "./chunk-7MTVRNP4.js";
|
|
54
|
+
import "./chunk-KFD2OXCE.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-XYKVRRC2.js";
|
|
59
59
|
import "./chunk-D6JWYJ4P.js";
|
|
60
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-HY2GFZ5S.js";
|
|
61
61
|
import "./chunk-X5B3OS5I.js";
|
|
62
62
|
import "./chunk-SYFVUF2C.js";
|
|
63
63
|
import {
|
|
@@ -144,6 +144,7 @@ function forgetThread(id) {
|
|
|
144
144
|
const cache = cacheForDir();
|
|
145
145
|
cache.byId.delete(id);
|
|
146
146
|
cache.mtimeMs.delete(id);
|
|
147
|
+
selfWriteMtimes.delete(id);
|
|
147
148
|
}
|
|
148
149
|
function invalidateThreadListCache() {
|
|
149
150
|
listCache = null;
|
|
@@ -167,20 +168,28 @@ function readThread(id) {
|
|
|
167
168
|
rememberThread(thread, mtimeMs);
|
|
168
169
|
return thread;
|
|
169
170
|
}
|
|
171
|
+
var selfWriteMtimes = /* @__PURE__ */ new Map();
|
|
170
172
|
function writeThread(thread, opts) {
|
|
171
173
|
const path = threadFilePath(idPath(thread.id));
|
|
172
174
|
const tmp = `${path}.${process.pid}.tmp`;
|
|
173
175
|
const next = opts?.touch === false ? { ...thread } : { ...thread, updatedAt: nowIso() };
|
|
174
176
|
writeFileSync(tmp, JSON.stringify(next, null, 2), "utf8");
|
|
175
177
|
renameSync(tmp, path);
|
|
176
|
-
|
|
178
|
+
const mtimeMs = fileMtimeMs(path) ?? Date.now();
|
|
179
|
+
rememberThread(next, mtimeMs);
|
|
180
|
+
selfWriteMtimes.set(thread.id, mtimeMs);
|
|
181
|
+
}
|
|
182
|
+
function isSelfWrittenRecord(id) {
|
|
183
|
+
const ours = selfWriteMtimes.get(id);
|
|
184
|
+
if (ours == null) return false;
|
|
185
|
+
return fileMtimeMs(threadFilePath(id)) === ours;
|
|
177
186
|
}
|
|
178
187
|
function idPath(id) {
|
|
179
188
|
return id;
|
|
180
189
|
}
|
|
181
190
|
function isThreadRecordFile(nameOrPath) {
|
|
182
191
|
const name = basename(nameOrPath);
|
|
183
|
-
return name.endsWith(".json") && !name.endsWith(".live.json");
|
|
192
|
+
return name.endsWith(".json") && !name.endsWith(".live.json") && !name.endsWith(".setup.log.json");
|
|
184
193
|
}
|
|
185
194
|
function listThreads(opts) {
|
|
186
195
|
const cache = cacheForDir();
|
|
@@ -256,6 +265,7 @@ export {
|
|
|
256
265
|
invalidateThreadRecord,
|
|
257
266
|
readThread,
|
|
258
267
|
writeThread,
|
|
268
|
+
isSelfWrittenRecord,
|
|
259
269
|
isThreadRecordFile,
|
|
260
270
|
listThreads,
|
|
261
271
|
deleteThreadRecord,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
isOrchestratorThread
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KFD2OXCE.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-XYKVRRC2.js";
|
|
24
24
|
import {
|
|
25
25
|
enrichPathWithNpmGlobalBin,
|
|
26
26
|
isConductorBundledCli,
|
|
@@ -2414,7 +2414,7 @@ var claudeAdapter = {
|
|
|
2414
2414
|
);
|
|
2415
2415
|
}
|
|
2416
2416
|
const mode = permissionMode(thread);
|
|
2417
|
-
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-
|
|
2417
|
+
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-KT3FRHZL.js");
|
|
2418
2418
|
const isOrchestrator = isOrchestratorThread2(thread);
|
|
2419
2419
|
const injectedServers = await buildInjectedMcpServers({
|
|
2420
2420
|
includeSideboard: true,
|