@sideboard-ai/core 0.1.340 → 0.1.341
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-TNONAVJG.js → abletime-AYYRRDT2.js} +4 -4
- package/dist/{abletime-OGOHNRVB.js → abletime-MK4T5FZY.js} +4 -4
- package/dist/{abletime-oauth-TYDQ73GK.js → abletime-oauth-7TOEFRWH.js} +3 -3
- package/dist/{abletime-oauth-DAZEUQJI.js → abletime-oauth-NB34M4X4.js} +3 -3
- package/dist/{abletime-rest-3FWZGTX6.js → abletime-rest-7M3QXAXY.js} +3 -3
- package/dist/{abletime-rest-B4VI46MI.js → abletime-rest-IF7IMJGU.js} +3 -3
- package/dist/{agents-QFXIBIKJ.js → agents-4WL4U5WD.js} +8 -8
- package/dist/{agents-6MSZHZOM.js → agents-FH5NVVCJ.js} +8 -8
- package/dist/{app-settings-KOSVLMO5.js → app-settings-377375BJ.js} +3 -1
- package/dist/{app-settings-YS5AUJTF.js → app-settings-YTOPIRDH.js} +3 -1
- package/dist/{chunk-W6J3ZWLJ.js → chunk-2IA556KV.js} +2 -2
- package/dist/{chunk-SYTTUNX6.js → chunk-3HJ2USRA.js} +1 -1
- package/dist/{chunk-5FGQTB2Z.js → chunk-43BOPWFV.js} +2 -2
- package/dist/{chunk-4BRO5LNX.js → chunk-47UDPUVZ.js} +3 -3
- package/dist/{chunk-FCBUDWP6.js → chunk-4BUTF5LN.js} +2 -2
- package/dist/{chunk-NHLTTT5G.js → chunk-4RIKHUKB.js} +7 -6
- package/dist/{chunk-HNW5KMGK.js → chunk-5MHENWO5.js} +2 -2
- package/dist/{chunk-6ABL7HZN.js → chunk-5VXE4ZI4.js} +10 -8
- package/dist/{chunk-DYUAVL5S.js → chunk-BIM24I3O.js} +1 -0
- package/dist/{chunk-VHHEQP5V.js → chunk-CMYGUGGZ.js} +11 -9
- package/dist/{chunk-5TVRPOVS.js → chunk-CN7GSNEL.js} +1 -1
- package/dist/{chunk-EZZY3EAZ.js → chunk-COFHTNQU.js} +666 -62
- package/dist/{chunk-N6TGSJVC.js → chunk-DF34F3QR.js} +10 -0
- package/dist/{chunk-PEJ3N5VE.js → chunk-DF3S5X3H.js} +7 -6
- package/dist/{chunk-LYJ5AVK4.js → chunk-FVX7JWFW.js} +2 -2
- package/dist/{chunk-4SP26Z6H.js → chunk-HNIEEKKR.js} +5 -5
- package/dist/{chunk-4OVQGZEI.js → chunk-HZRYQ27Z.js} +48 -26
- package/dist/{chunk-OMKTX7ZW.js → chunk-I5C42O2M.js} +3 -3
- package/dist/{chunk-Q73I6I2K.js → chunk-IY4YNHYD.js} +1 -1
- package/dist/{chunk-EVYOONTE.js → chunk-K355SYYX.js} +5 -5
- package/dist/{chunk-BD7QARIJ.js → chunk-MGV6JFDY.js} +5 -5
- package/dist/{chunk-KAIOL2M5.js → chunk-NF3KRZXV.js} +1 -1
- package/dist/{chunk-AFSLMWQK.js → chunk-O6UAW76V.js} +42 -3
- package/dist/{chunk-5KH3EQ2C.js → chunk-ORO4ENZR.js} +1 -0
- package/dist/{chunk-ELDHERAD.js → chunk-PHLFFV2M.js} +661 -56
- package/dist/{chunk-ERCYQTJU.js → chunk-QBUX2EDG.js} +48 -26
- package/dist/{chunk-FEGRY7NL.js → chunk-QULOUTDQ.js} +3 -3
- package/dist/{chunk-23KYDM2U.js → chunk-RZUZU5KD.js} +10 -0
- package/dist/{chunk-BDQFZAE6.js → chunk-SLTWZRBN.js} +43 -3
- package/dist/{chunk-QWFNKOGA.js → chunk-TZFYBQAD.js} +2 -2
- package/dist/{chunk-I2C5ZRVO.js → chunk-WSW27W5R.js} +1 -1
- package/dist/{chunk-WSZIJNAR.js → chunk-ZS7AY6DS.js} +5 -5
- package/dist/{conductor-AUUXCJZT.js → conductor-QZKG7YPO.js} +6 -6
- package/dist/{conductor-LEPTWN2U.js → conductor-RGVRIOTZ.js} +6 -6
- package/dist/{coordinator-prompt-CIWWP2P6.js → coordinator-prompt-66UHVADL.js} +4 -4
- package/dist/{coordinator-prompt-VO42IZWS.js → coordinator-prompt-CDVIFBYS.js} +4 -4
- package/dist/{global-workspace-MCAREQI7.js → global-workspace-FNDRAJLF.js} +4 -4
- package/dist/{global-workspace-FKXLFKYX.js → global-workspace-KMQSUF2G.js} +4 -4
- package/dist/index.cjs +965 -182
- package/dist/index.d.cts +45 -7
- package/dist/index.d.ts +45 -7
- package/dist/index.js +107 -25
- package/dist/{linear-5E2WI4QQ.js → linear-6DM4FJWT.js} +2 -2
- package/dist/{linear-P3LP455O.js → linear-ZJQM5IGJ.js} +2 -2
- package/dist/{linear-list-AXK62DPW.js → linear-list-4EPKZTYE.js} +1 -1
- package/dist/{linear-list-Y3INIBYH.js → linear-list-POPBU2VC.js} +1 -1
- package/dist/mcp/run-stdio.cjs +877 -108
- package/dist/mcp/run-stdio.js +97 -22
- package/dist/{optional-cli-6J6C4I3X.js → optional-cli-3G2274LT.js} +3 -3
- package/dist/{optional-cli-X6I35UNI.js → optional-cli-CZF2ZFU5.js} +4 -4
- package/dist/{orchestrator-JTFCNXVR.js → orchestrator-BKCQUMLB.js} +11 -11
- package/dist/{orchestrator-NOQDMYLB.js → orchestrator-SCFWTIE7.js} +11 -11
- package/dist/{thread-store-DCO5MZWJ.js → thread-store-OARQT6DL.js} +2 -2
- package/dist/{thread-store-QGBPSZU2.js → thread-store-W2SSO6IQ.js} +2 -2
- package/dist/{workspaces-D6FQCZRK.js → workspaces-6GB56LMJ.js} +4 -4
- package/dist/{workspaces-Y25L2EPV.js → workspaces-EWWLVSZ5.js} +4 -4
- package/dist/{worktree-S4YOAYRA.js → worktree-BRKMPZMJ.js} +5 -3
- package/dist/{worktree-GWS77LWX.js → worktree-OB5ABI22.js} +5 -3
- package/package.json +1 -1
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
normalizeTakenSlug,
|
|
24
24
|
normalizeWorktreePath,
|
|
25
25
|
takenSlugsFromThread
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-O6UAW76V.js";
|
|
27
27
|
import {
|
|
28
28
|
getGithubGitAuthMode,
|
|
29
29
|
getGithubPat
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-DF34F3QR.js";
|
|
31
31
|
import {
|
|
32
32
|
worktreesRoot
|
|
33
33
|
} from "./chunk-WOU343SI.js";
|
|
@@ -1048,11 +1048,16 @@ async function listCursorPrs(repoPath, slug, opts, head) {
|
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
1050
|
const { stdout, exitCode } = await originCli(args, repoPath, { reject: false, timeoutMs: 2e4 });
|
|
1051
|
-
if (exitCode !== 0
|
|
1051
|
+
if (exitCode !== 0) {
|
|
1052
|
+
if (opts?.strict) throw new Error(`origin pr list failed (${exitCode})`);
|
|
1053
|
+
return [];
|
|
1054
|
+
}
|
|
1055
|
+
if (!stdout.trim()) return [];
|
|
1052
1056
|
let parsed;
|
|
1053
1057
|
try {
|
|
1054
1058
|
parsed = JSON.parse(stdout);
|
|
1055
1059
|
} catch {
|
|
1060
|
+
if (opts?.strict) throw new Error("origin pr list returned invalid JSON");
|
|
1056
1061
|
return [];
|
|
1057
1062
|
}
|
|
1058
1063
|
if (!Array.isArray(parsed)) return [];
|
|
@@ -1155,21 +1160,23 @@ async function fetchCursorPrHead(repoPath, slug, number, localBranch) {
|
|
|
1155
1160
|
throw new Error((result.stderr || result.stdout).trim() || `git fetch origin ${head} failed`);
|
|
1156
1161
|
}
|
|
1157
1162
|
}
|
|
1158
|
-
async function
|
|
1163
|
+
async function cursorPrCiChecks(repoPath, slug, selector) {
|
|
1159
1164
|
const { stdout, exitCode, stderr } = await originCli(
|
|
1160
1165
|
["pr", "checks", selector, ...repoArgs(slug), "--json", "name,status,conclusion,detailsUrl,startedAt,completedAt,summary,group,link"],
|
|
1161
1166
|
repoPath,
|
|
1162
1167
|
{ reject: false, timeoutMs: 2e4 }
|
|
1163
1168
|
);
|
|
1164
1169
|
const err = stderr.trim();
|
|
1165
|
-
let ci;
|
|
1166
1170
|
if (!stdout.trim()) {
|
|
1167
1171
|
if (/no pull request|not found|no change/i.test(err)) return null;
|
|
1168
1172
|
if (exitCode !== 0 && err) throw new Error(err);
|
|
1169
|
-
|
|
1170
|
-
} else {
|
|
1171
|
-
ci = originChecksToRuns(stdout);
|
|
1173
|
+
return [];
|
|
1172
1174
|
}
|
|
1175
|
+
return originChecksToRuns(stdout);
|
|
1176
|
+
}
|
|
1177
|
+
async function cursorPrChecks(repoPath, slug, selector) {
|
|
1178
|
+
const ci = await cursorPrCiChecks(repoPath, slug, selector);
|
|
1179
|
+
if (!ci) return null;
|
|
1173
1180
|
const view = await viewCursorPr(
|
|
1174
1181
|
repoPath,
|
|
1175
1182
|
slug,
|
|
@@ -1700,7 +1707,11 @@ async function listPrs(repoPath, opts) {
|
|
|
1700
1707
|
limit: fetchLimit
|
|
1701
1708
|
});
|
|
1702
1709
|
const { stdout, exitCode } = await gh(args, repoPath, { reject: false });
|
|
1703
|
-
if (exitCode !== 0
|
|
1710
|
+
if (exitCode !== 0) {
|
|
1711
|
+
if (opts?.strict) throw new Error(`gh pr list failed (${exitCode})`);
|
|
1712
|
+
return [];
|
|
1713
|
+
}
|
|
1714
|
+
if (!stdout.trim()) return [];
|
|
1704
1715
|
return applyPrListResponse(stdout, { ...resolved, limit, viewerTeams });
|
|
1705
1716
|
}
|
|
1706
1717
|
var PR_INFO_JSON_FIELDS = "number,title,headRefName,url,isCrossRepository,author,isDraft,labels,state";
|
|
@@ -1963,12 +1974,7 @@ async function probeLocalMergeGate(cwd, gate) {
|
|
|
1963
1974
|
}
|
|
1964
1975
|
return { gate, files: [] };
|
|
1965
1976
|
}
|
|
1966
|
-
async function
|
|
1967
|
-
const origin = await resolveOriginRemote(cwd);
|
|
1968
|
-
if (origin?.forge === "entire") return null;
|
|
1969
|
-
const cursorSlug = origin?.forge === "cursor" ? origin.slug : null;
|
|
1970
|
-
if (cursorSlug) return cursorPrChecks(cwd, cursorSlug, selector);
|
|
1971
|
-
const slug = await resolveGithubRepoSlug(cwd);
|
|
1977
|
+
async function readGhPrChecks(cwd, selector, slug) {
|
|
1972
1978
|
const args = [
|
|
1973
1979
|
"pr",
|
|
1974
1980
|
"checks",
|
|
@@ -1979,7 +1985,6 @@ async function getPrChecks(cwd, selector) {
|
|
|
1979
1985
|
if (slug) args.push("--repo", slug);
|
|
1980
1986
|
const { stdout, exitCode, stderr } = await gh(args, cwd, { reject: false });
|
|
1981
1987
|
const errText = stderr.trim();
|
|
1982
|
-
let ciChecks;
|
|
1983
1988
|
if (!stdout.trim()) {
|
|
1984
1989
|
if (/no pull requests found/i.test(errText)) return null;
|
|
1985
1990
|
if (/auth|login|HTTP\s*401|credentials|token/i.test(errText)) {
|
|
@@ -1989,18 +1994,34 @@ async function getPrChecks(cwd, selector) {
|
|
|
1989
1994
|
if (exitCode === 1 && errText && !/fail|check/i.test(errText)) {
|
|
1990
1995
|
throw new Error(errText);
|
|
1991
1996
|
}
|
|
1992
|
-
|
|
1993
|
-
} else {
|
|
1994
|
-
throw new Error(errText || `gh pr checks failed (${exitCode})`);
|
|
1995
|
-
}
|
|
1996
|
-
} else {
|
|
1997
|
-
try {
|
|
1998
|
-
const parsed = JSON.parse(stdout);
|
|
1999
|
-
ciChecks = parsed.map(normalizeCheck);
|
|
2000
|
-
} catch {
|
|
2001
|
-
throw new Error(errText || "gh pr checks returned invalid JSON");
|
|
1997
|
+
return [];
|
|
2002
1998
|
}
|
|
1999
|
+
throw new Error(errText || `gh pr checks failed (${exitCode})`);
|
|
2000
|
+
}
|
|
2001
|
+
try {
|
|
2002
|
+
const parsed = JSON.parse(stdout);
|
|
2003
|
+
return parsed.map(normalizeCheck);
|
|
2004
|
+
} catch {
|
|
2005
|
+
throw new Error(errText || "gh pr checks returned invalid JSON");
|
|
2006
|
+
}
|
|
2007
|
+
}
|
|
2008
|
+
async function getPrCiChecks(cwd, selector) {
|
|
2009
|
+
const origin = await resolveOriginRemote(cwd);
|
|
2010
|
+
if (origin?.forge === "entire") return null;
|
|
2011
|
+
if (origin?.forge === "cursor" && origin.slug) {
|
|
2012
|
+
return cursorPrCiChecks(cwd, origin.slug, selector);
|
|
2003
2013
|
}
|
|
2014
|
+
const slug = await resolveGithubRepoSlug(cwd);
|
|
2015
|
+
return readGhPrChecks(cwd, selector, slug);
|
|
2016
|
+
}
|
|
2017
|
+
async function getPrChecks(cwd, selector) {
|
|
2018
|
+
const origin = await resolveOriginRemote(cwd);
|
|
2019
|
+
if (origin?.forge === "entire") return null;
|
|
2020
|
+
const cursorSlug = origin?.forge === "cursor" ? origin.slug : null;
|
|
2021
|
+
if (cursorSlug) return cursorPrChecks(cwd, cursorSlug, selector);
|
|
2022
|
+
const slug = await resolveGithubRepoSlug(cwd);
|
|
2023
|
+
const ciChecks = await readGhPrChecks(cwd, selector, slug);
|
|
2024
|
+
if (!ciChecks) return null;
|
|
2004
2025
|
let gate = await fetchPrMergeGate(cwd, selector, slug);
|
|
2005
2026
|
const probed = await probeLocalMergeGate(cwd, gate);
|
|
2006
2027
|
gate = probed.gate;
|
|
@@ -2947,6 +2968,7 @@ export {
|
|
|
2947
2968
|
connectedPrSelectors,
|
|
2948
2969
|
getPrForHeadBranch,
|
|
2949
2970
|
detectLocalMergeConflicts,
|
|
2971
|
+
getPrCiChecks,
|
|
2950
2972
|
getPrChecks,
|
|
2951
2973
|
getPrMeta,
|
|
2952
2974
|
PR_DETAILS_JSON_FIELDS,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
abletimeRestUrl,
|
|
12
12
|
textFromAbleTimeDoc
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2IA556KV.js";
|
|
14
14
|
import {
|
|
15
15
|
assertAbleTimeCredential,
|
|
16
16
|
callAbleTimeTool,
|
|
17
17
|
normalizeAbleTimeHost,
|
|
18
18
|
rewriteAbleTimeError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-HNIEEKKR.js";
|
|
20
20
|
import {
|
|
21
21
|
httpFetch
|
|
22
22
|
} from "./chunk-JAT3JFOS.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
getAbleTimeHost,
|
|
26
26
|
isAbleTimeConnected,
|
|
27
27
|
saveAbleTimeConnection
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-RZUZU5KD.js";
|
|
29
29
|
|
|
30
30
|
// src/integrations/abletime-attachments.ts
|
|
31
31
|
function asRecord(value) {
|
|
@@ -1499,6 +1499,9 @@ function normalizeAdvanced(raw) {
|
|
|
1499
1499
|
if (typeof source.cowboyMode === "boolean") {
|
|
1500
1500
|
out.cowboyMode = source.cowboyMode;
|
|
1501
1501
|
}
|
|
1502
|
+
if (typeof source.wakeOrchestratorOnGithubEdges === "boolean") {
|
|
1503
|
+
out.wakeOrchestratorOnGithubEdges = source.wakeOrchestratorOnGithubEdges;
|
|
1504
|
+
}
|
|
1502
1505
|
if (typeof source.showCost === "boolean") {
|
|
1503
1506
|
out.showCost = source.showCost;
|
|
1504
1507
|
}
|
|
@@ -2401,6 +2404,9 @@ function updateAdvancedSettings(patch) {
|
|
|
2401
2404
|
if (typeof patch.cowboyMode === "boolean") {
|
|
2402
2405
|
advanced.cowboyMode = patch.cowboyMode;
|
|
2403
2406
|
}
|
|
2407
|
+
if (typeof patch.wakeOrchestratorOnGithubEdges === "boolean") {
|
|
2408
|
+
advanced.wakeOrchestratorOnGithubEdges = patch.wakeOrchestratorOnGithubEdges;
|
|
2409
|
+
}
|
|
2404
2410
|
if (typeof patch.showCost === "boolean") {
|
|
2405
2411
|
advanced.showCost = patch.showCost;
|
|
2406
2412
|
}
|
|
@@ -2506,6 +2512,9 @@ function deleteBranchOnPurgeEnabled(settings = loadAppSettings()) {
|
|
|
2506
2512
|
function cowboyModeEnabled(settings = loadAppSettings()) {
|
|
2507
2513
|
return Boolean(settings.advanced.cowboyMode);
|
|
2508
2514
|
}
|
|
2515
|
+
function wakeOrchestratorOnGithubEdgesEnabled(settings = loadAppSettings()) {
|
|
2516
|
+
return Boolean(settings.advanced.wakeOrchestratorOnGithubEdges);
|
|
2517
|
+
}
|
|
2509
2518
|
function showCostEnabled(settings = loadAppSettings()) {
|
|
2510
2519
|
return Boolean(settings.advanced.showCost);
|
|
2511
2520
|
}
|
|
@@ -2793,6 +2802,7 @@ export {
|
|
|
2793
2802
|
caffeinateWhileCloudConnectEnabled,
|
|
2794
2803
|
deleteBranchOnPurgeEnabled,
|
|
2795
2804
|
cowboyModeEnabled,
|
|
2805
|
+
wakeOrchestratorOnGithubEdgesEnabled,
|
|
2796
2806
|
showCostEnabled,
|
|
2797
2807
|
chatTextScale,
|
|
2798
2808
|
confirmClaudeUsageOverLimitEnabled,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
isOrchestratorCapableAgent,
|
|
11
11
|
normalizeThinkingEffort,
|
|
12
12
|
updateAdvancedSettings
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RZUZU5KD.js";
|
|
14
14
|
import {
|
|
15
15
|
writePrivateFile
|
|
16
16
|
} from "./chunk-JT7R45JB.js";
|
|
@@ -1215,6 +1215,7 @@ function normalizeWhen(raw) {
|
|
|
1215
1215
|
}
|
|
1216
1216
|
|
|
1217
1217
|
// src/store/schedules.ts
|
|
1218
|
+
var SCHEDULE_RUN_HISTORY_LIMIT = 10;
|
|
1218
1219
|
function schedulesPath() {
|
|
1219
1220
|
return join(appDataDir(), "schedules.json");
|
|
1220
1221
|
}
|
|
@@ -1273,6 +1274,35 @@ function normalizeAttachments(raw) {
|
|
|
1273
1274
|
}
|
|
1274
1275
|
return out;
|
|
1275
1276
|
}
|
|
1277
|
+
function normalizeRunList(raw) {
|
|
1278
|
+
if (!Array.isArray(raw)) return [];
|
|
1279
|
+
const out = [];
|
|
1280
|
+
for (const item of raw) {
|
|
1281
|
+
if (!item || typeof item !== "object") continue;
|
|
1282
|
+
const row = item;
|
|
1283
|
+
if (typeof row.at !== "string" || !row.at.trim()) continue;
|
|
1284
|
+
const next = {
|
|
1285
|
+
at: row.at,
|
|
1286
|
+
threadId: typeof row.threadId === "string" && row.threadId.trim() ? row.threadId.trim() : null
|
|
1287
|
+
};
|
|
1288
|
+
if (typeof row.error === "string" && row.error.trim()) next.error = row.error;
|
|
1289
|
+
out.push(next);
|
|
1290
|
+
if (out.length >= SCHEDULE_RUN_HISTORY_LIMIT) break;
|
|
1291
|
+
}
|
|
1292
|
+
return out;
|
|
1293
|
+
}
|
|
1294
|
+
function runsFromStored(raw) {
|
|
1295
|
+
if (Array.isArray(raw.runs)) return normalizeRunList(raw.runs);
|
|
1296
|
+
if (typeof raw.lastRunAt === "string" && raw.lastRunAt.trim()) {
|
|
1297
|
+
const one = {
|
|
1298
|
+
at: raw.lastRunAt,
|
|
1299
|
+
threadId: raw.lastThreadId?.trim() || null
|
|
1300
|
+
};
|
|
1301
|
+
if (typeof raw.lastError === "string" && raw.lastError.trim()) one.error = raw.lastError;
|
|
1302
|
+
return [one];
|
|
1303
|
+
}
|
|
1304
|
+
return [];
|
|
1305
|
+
}
|
|
1276
1306
|
function normalizeTask(raw) {
|
|
1277
1307
|
const when = normalizeWhen(raw.when);
|
|
1278
1308
|
const agent = raw.agent && isOrchestratorCapableAgent(raw.agent) ? raw.agent : null;
|
|
@@ -1295,6 +1325,7 @@ function normalizeTask(raw) {
|
|
|
1295
1325
|
lastRunAt: raw.lastRunAt ?? null,
|
|
1296
1326
|
lastThreadId: raw.lastThreadId ?? null,
|
|
1297
1327
|
lastError: raw.lastError ?? null,
|
|
1328
|
+
runs: runsFromStored(raw),
|
|
1298
1329
|
createdBy: raw.createdBy === "mcp" || raw.createdBy === "cli" || raw.createdBy === "ui" ? raw.createdBy : "ui",
|
|
1299
1330
|
createdAt: raw.createdAt,
|
|
1300
1331
|
updatedAt: raw.updatedAt
|
|
@@ -1347,6 +1378,7 @@ function buildTask(input, now) {
|
|
|
1347
1378
|
lastRunAt: null,
|
|
1348
1379
|
lastThreadId: null,
|
|
1349
1380
|
lastError: null,
|
|
1381
|
+
runs: [],
|
|
1350
1382
|
createdBy: input.createdBy,
|
|
1351
1383
|
createdAt: ts,
|
|
1352
1384
|
updatedAt: ts
|
|
@@ -1439,14 +1471,19 @@ function recordScheduleRun(id, result) {
|
|
|
1439
1471
|
if (idx < 0) throw new Error(`Automation not found: ${id}`);
|
|
1440
1472
|
const prev = rows[idx];
|
|
1441
1473
|
const firedAt = result.firedAt ?? /* @__PURE__ */ new Date();
|
|
1474
|
+
const at = nowIso(firedAt);
|
|
1475
|
+
const threadId = result.lastThreadId !== void 0 ? result.lastThreadId?.trim() || null : null;
|
|
1476
|
+
const entry = { at, threadId };
|
|
1477
|
+
if (result.lastError?.trim()) entry.error = result.lastError;
|
|
1442
1478
|
const next = {
|
|
1443
1479
|
...prev,
|
|
1444
1480
|
enabled: prev.when.kind === "once" ? false : prev.enabled,
|
|
1445
1481
|
nextRunAt: prev.when.kind === "once" ? prev.nextRunAt : computeNextRunAt(prev.when, firedAt).toISOString(),
|
|
1446
|
-
lastRunAt:
|
|
1482
|
+
lastRunAt: at,
|
|
1447
1483
|
lastThreadId: result.lastThreadId !== void 0 ? result.lastThreadId : prev.lastThreadId,
|
|
1448
1484
|
lastError: result.lastError ?? null,
|
|
1449
|
-
|
|
1485
|
+
runs: [entry, ...prev.runs].slice(0, SCHEDULE_RUN_HISTORY_LIMIT),
|
|
1486
|
+
updatedAt: at
|
|
1450
1487
|
};
|
|
1451
1488
|
rows[idx] = next;
|
|
1452
1489
|
writeAll(rows);
|
|
@@ -1526,6 +1563,7 @@ function normalizeThread(raw) {
|
|
|
1526
1563
|
prIsInMergeQueue: Boolean(raw.prIsInMergeQueue),
|
|
1527
1564
|
prLabels: Array.isArray(raw.prLabels) ? raw.prLabels : [],
|
|
1528
1565
|
prChecksFailed: typeof raw.prChecksFailed === "boolean" ? raw.prChecksFailed : void 0,
|
|
1566
|
+
wakeOnGithubEdges: raw.wakeOnGithubEdges === true ? true : void 0,
|
|
1529
1567
|
issueBlockedBy: sanitizeIssueBlockedBy(raw.issueBlockedBy),
|
|
1530
1568
|
skipAutoArchiveOnMerge: Boolean(raw.skipAutoArchiveOnMerge),
|
|
1531
1569
|
cowboy: Boolean(raw.cowboy),
|
|
@@ -1570,6 +1608,7 @@ function createEmptyThread(partial) {
|
|
|
1570
1608
|
prIsInMergeQueue: Boolean(partial.prIsInMergeQueue),
|
|
1571
1609
|
prLabels: partial.prLabels ?? [],
|
|
1572
1610
|
prChecksFailed: partial.prChecksFailed,
|
|
1611
|
+
...partial.wakeOnGithubEdges === true ? { wakeOnGithubEdges: true } : {},
|
|
1573
1612
|
skipAutoArchiveOnMerge: partial.skipAutoArchiveOnMerge ?? false,
|
|
1574
1613
|
cowboy: Boolean(partial.cowboy),
|
|
1575
1614
|
stackId: partial.stackId ?? null,
|
|
@@ -1783,6 +1822,7 @@ export {
|
|
|
1783
1822
|
weeklyCronExpr,
|
|
1784
1823
|
computeNextRunAt,
|
|
1785
1824
|
formatScheduleWhen,
|
|
1825
|
+
SCHEDULE_RUN_HISTORY_LIMIT,
|
|
1786
1826
|
schedulesPath,
|
|
1787
1827
|
defaultScheduleName,
|
|
1788
1828
|
resolveScheduleThreadId,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
loadAppSettings,
|
|
6
6
|
saveAppSettings
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RZUZU5KD.js";
|
|
8
8
|
|
|
9
9
|
// src/integrations/optional-services.ts
|
|
10
10
|
var OPTIONAL_SERVICE_IDS = ["vercel", "supabase", "posthog", "sentry"];
|
|
@@ -273,7 +273,7 @@ async function connectedCliPresence(integrations) {
|
|
|
273
273
|
const ids = connectedOptionalServices(integrations).filter((spec) => spec.cli).map((spec) => spec.id);
|
|
274
274
|
if (ids.length === 0) return void 0;
|
|
275
275
|
try {
|
|
276
|
-
const { optionalCliPresence } = await import("./optional-cli-
|
|
276
|
+
const { optionalCliPresence } = await import("./optional-cli-CZF2ZFU5.js");
|
|
277
277
|
return await optionalCliPresence(ids);
|
|
278
278
|
} catch {
|
|
279
279
|
return void 0;
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
getAbleTimeHost,
|
|
8
8
|
isAbleTimeConnected
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DF34F3QR.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-NB34M4X4.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-NB34M4X4.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-7M3QXAXY.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-7M3QXAXY.js");
|
|
248
248
|
return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
|
|
249
249
|
}
|
|
250
250
|
throw err instanceof Error ? new Error(rewriteAbleTimeError(err.message)) : err;
|
|
@@ -32,11 +32,11 @@ import {
|
|
|
32
32
|
tryReservePort,
|
|
33
33
|
tryReservePorts,
|
|
34
34
|
worktreeRunPortsPath
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-DF3S5X3H.js";
|
|
36
|
+
import "./chunk-BIM24I3O.js";
|
|
37
|
+
import "./chunk-MGV6JFDY.js";
|
|
38
|
+
import "./chunk-HZRYQ27Z.js";
|
|
39
|
+
import "./chunk-SLTWZRBN.js";
|
|
40
40
|
import "./chunk-BMRJNRQK.js";
|
|
41
41
|
import "./chunk-NJV5YEKI.js";
|
|
42
42
|
import "./chunk-N6ZF3XRP.js";
|
|
@@ -44,7 +44,7 @@ import "./chunk-OPXEJJBM.js";
|
|
|
44
44
|
import "./chunk-6K64FJDD.js";
|
|
45
45
|
import "./chunk-LG6RJBIY.js";
|
|
46
46
|
import "./chunk-R4W4VQJZ.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-RZUZU5KD.js";
|
|
48
48
|
import {
|
|
49
49
|
stripNestedElectronEnv
|
|
50
50
|
} from "./chunk-4TR3HZFT.js";
|
|
@@ -34,16 +34,16 @@ import {
|
|
|
34
34
|
tryReservePort,
|
|
35
35
|
tryReservePorts,
|
|
36
36
|
worktreeRunPortsPath
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-4RIKHUKB.js";
|
|
38
|
+
import "./chunk-ORO4ENZR.js";
|
|
39
|
+
import "./chunk-K355SYYX.js";
|
|
40
|
+
import "./chunk-QBUX2EDG.js";
|
|
41
41
|
import "./chunk-N2WW62LF.js";
|
|
42
42
|
import "./chunk-GK7H3SY7.js";
|
|
43
43
|
import "./chunk-TL2HK6LZ.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-O6UAW76V.js";
|
|
45
45
|
import "./chunk-WMZIANPV.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-DF34F3QR.js";
|
|
47
47
|
import "./chunk-NSTQ6QKD.js";
|
|
48
48
|
import {
|
|
49
49
|
stripNestedElectronEnv
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
enrichWorkspacesWithGithub,
|
|
10
10
|
ensureGlobalCoordinatorCwd,
|
|
11
11
|
formatWorkspaceInventory
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-K355SYYX.js";
|
|
13
|
+
import "./chunk-QBUX2EDG.js";
|
|
14
14
|
import "./chunk-N2WW62LF.js";
|
|
15
15
|
import "./chunk-GK7H3SY7.js";
|
|
16
16
|
import "./chunk-TL2HK6LZ.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-O6UAW76V.js";
|
|
18
18
|
import "./chunk-WMZIANPV.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-DF34F3QR.js";
|
|
20
20
|
import "./chunk-NSTQ6QKD.js";
|
|
21
21
|
import "./chunk-WWUABK6B.js";
|
|
22
22
|
import "./chunk-FJZWM2ON.js";
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
enrichWorkspacesWithGithub,
|
|
8
8
|
ensureGlobalCoordinatorCwd,
|
|
9
9
|
formatWorkspaceInventory
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-MGV6JFDY.js";
|
|
11
|
+
import "./chunk-HZRYQ27Z.js";
|
|
12
|
+
import "./chunk-SLTWZRBN.js";
|
|
13
13
|
import "./chunk-BMRJNRQK.js";
|
|
14
14
|
import "./chunk-N6ZF3XRP.js";
|
|
15
15
|
import "./chunk-6K64FJDD.js";
|
|
16
16
|
import "./chunk-LG6RJBIY.js";
|
|
17
17
|
import "./chunk-R4W4VQJZ.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-RZUZU5KD.js";
|
|
19
19
|
import "./chunk-4TR3HZFT.js";
|
|
20
20
|
import "./chunk-WDRMZKVB.js";
|
|
21
21
|
import "./chunk-KI45T4DI.js";
|
|
@@ -18,15 +18,15 @@ import {
|
|
|
18
18
|
remoteCoordinatorSourceRef,
|
|
19
19
|
slackCoordinatorSourceRef,
|
|
20
20
|
takenTeamSlugsForOrchestration
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-MGV6JFDY.js";
|
|
22
|
+
import "./chunk-HZRYQ27Z.js";
|
|
23
|
+
import "./chunk-SLTWZRBN.js";
|
|
24
24
|
import "./chunk-BMRJNRQK.js";
|
|
25
25
|
import "./chunk-N6ZF3XRP.js";
|
|
26
26
|
import "./chunk-6K64FJDD.js";
|
|
27
27
|
import "./chunk-LG6RJBIY.js";
|
|
28
28
|
import "./chunk-R4W4VQJZ.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-RZUZU5KD.js";
|
|
30
30
|
import "./chunk-4TR3HZFT.js";
|
|
31
31
|
import "./chunk-WDRMZKVB.js";
|
|
32
32
|
import "./chunk-KI45T4DI.js";
|
|
@@ -20,14 +20,14 @@ import {
|
|
|
20
20
|
remoteCoordinatorSourceRef,
|
|
21
21
|
slackCoordinatorSourceRef,
|
|
22
22
|
takenTeamSlugsForOrchestration
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-K355SYYX.js";
|
|
24
|
+
import "./chunk-QBUX2EDG.js";
|
|
25
25
|
import "./chunk-N2WW62LF.js";
|
|
26
26
|
import "./chunk-GK7H3SY7.js";
|
|
27
27
|
import "./chunk-TL2HK6LZ.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-O6UAW76V.js";
|
|
29
29
|
import "./chunk-WMZIANPV.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-DF34F3QR.js";
|
|
31
31
|
import "./chunk-NSTQ6QKD.js";
|
|
32
32
|
import "./chunk-WWUABK6B.js";
|
|
33
33
|
import "./chunk-FJZWM2ON.js";
|