@sideboard-ai/core 0.1.346 → 0.1.348
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-MSIMJKKQ.js → abletime-3HRWLQZJ.js} +4 -4
- package/dist/{abletime-X2TJ6PPK.js → abletime-CGFJZB7L.js} +4 -4
- package/dist/{abletime-oauth-DEIENLHC.js → abletime-oauth-JQDSH5OL.js} +3 -3
- package/dist/{abletime-oauth-2RUKRZYZ.js → abletime-oauth-QNJQLHR4.js} +3 -3
- package/dist/{abletime-rest-UBLSGMSA.js → abletime-rest-TANL5TMY.js} +3 -3
- package/dist/{abletime-rest-HWBUPI4R.js → abletime-rest-UQA2CRZN.js} +3 -3
- package/dist/{agents-AQM7NLXD.js → agents-5MFGVK7C.js} +7 -7
- package/dist/{agents-7CHZO3K3.js → agents-T4XBZZDA.js} +7 -7
- package/dist/{app-settings-Q2F57NVK.js → app-settings-PPIMYJKS.js} +3 -1
- package/dist/{app-settings-A6JUT2SF.js → app-settings-SNOPJ7P5.js} +3 -1
- package/dist/{chunk-RTZO2YJC.js → chunk-2HPVGTHF.js} +2 -2
- package/dist/{chunk-GHKJBZW5.js → chunk-4NXGVJA6.js} +2 -2
- package/dist/{chunk-O5WRVQFT.js → chunk-5FUAOU3G.js} +1 -1
- package/dist/{chunk-3J3XOIHF.js → chunk-62ALWH3T.js} +3 -3
- package/dist/{chunk-J3BQHHDZ.js → chunk-6TV6L2DD.js} +4 -4
- package/dist/{chunk-4PHOJMZI.js → chunk-6WMNIX2U.js} +35 -2
- package/dist/{chunk-4PXHJA5K.js → chunk-7B2OUQON.js} +2 -2
- package/dist/{chunk-TD76ORBJ.js → chunk-AJMERXZP.js} +2 -2
- package/dist/{chunk-QTDCPMOW.js → chunk-ATS7SYHG.js} +1 -1
- package/dist/{chunk-AG2RM3DF.js → chunk-CEQ4Z32M.js} +3 -3
- package/dist/{chunk-5TS3KVGI.js → chunk-E77SRVVO.js} +1 -1
- package/dist/{chunk-5SJGR3VS.js → chunk-F7WP2U5I.js} +12 -9
- package/dist/{chunk-YFPSTG52.js → chunk-FDYMVJFU.js} +5 -5
- package/dist/{chunk-IYX53WZY.js → chunk-GAGTEI6B.js} +5 -5
- package/dist/{chunk-MB3GOWB3.js → chunk-IVRWRYTH.js} +19 -10
- package/dist/{chunk-3DMRQB4Y.js → chunk-JCYGQKER.js} +1 -1
- package/dist/{chunk-JHT3CYLT.js → chunk-MOUAM6ZC.js} +1 -1
- package/dist/{chunk-Z54FI4VL.js → chunk-NTY5WGRD.js} +2 -2
- package/dist/{chunk-5IMXA563.js → chunk-OH3BAUMC.js} +46 -33
- package/dist/{chunk-LHU6ZBFB.js → chunk-OHUAAX3O.js} +2 -2
- package/dist/{chunk-NQHEEGTH.js → chunk-PVCECFJK.js} +1 -1
- package/dist/{chunk-MHRU743Z.js → chunk-Q4TZA4MN.js} +2247 -2155
- package/dist/{chunk-4SNEW63T.js → chunk-RUIHNWRV.js} +3 -3
- package/dist/{chunk-NDBMDHQ5.js → chunk-RYPD7XWV.js} +5 -5
- package/dist/{chunk-FNAP6CCS.js → chunk-UJMCTGV7.js} +2 -2
- package/dist/{chunk-JZKNRDKF.js → chunk-WMD77UCY.js} +47 -34
- package/dist/{chunk-S3UGLMGE.js → chunk-WWU4SYZR.js} +35 -2
- package/dist/{chunk-4YGVJRXY.js → chunk-XNGW4OYD.js} +4 -4
- package/dist/{chunk-TW63CYUA.js → chunk-Y6VQX2LY.js} +2679 -2587
- package/dist/{chunk-BD7KUYJA.js → chunk-ZJMYCDYQ.js} +5 -5
- package/dist/{conductor-DUHRZUQY.js → conductor-EMGMDNHL.js} +5 -5
- package/dist/{conductor-3A2TNWUW.js → conductor-LYQKONSA.js} +5 -5
- package/dist/{coordinator-prompt-OX6A4MDA.js → coordinator-prompt-DLY3FS2L.js} +4 -4
- package/dist/{coordinator-prompt-7QALNDIV.js → coordinator-prompt-WALVMGKI.js} +4 -4
- package/dist/{global-workspace-HM2RKBCT.js → global-workspace-7OQ5O6JT.js} +4 -4
- package/dist/{global-workspace-6GGS3DWU.js → global-workspace-UG2A3CEM.js} +4 -4
- package/dist/index.cjs +1115 -651
- package/dist/index.d.cts +61 -6
- package/dist/index.d.ts +61 -6
- package/dist/index.js +326 -32
- package/dist/{linear-WYI64BMX.js → linear-MIJO6DCV.js} +2 -2
- package/dist/{linear-JE4WAZ3W.js → linear-PKYJH4WK.js} +2 -2
- package/dist/{linear-list-I4NAOWPN.js → linear-list-JPQ27RXG.js} +1 -1
- package/dist/{linear-list-CGUCPWTV.js → linear-list-N57PR6JM.js} +1 -1
- package/dist/mcp/run-stdio.cjs +524 -235
- package/dist/mcp/run-stdio.js +106 -21
- package/dist/{optional-cli-7QXXPEN6.js → optional-cli-4GTEDEYJ.js} +3 -3
- package/dist/{optional-cli-YHLVTVRK.js → optional-cli-RPJIQBDX.js} +4 -4
- package/dist/{orchestrator-OWO6LQ5U.js → orchestrator-4SXTORD2.js} +10 -10
- package/dist/{orchestrator-POMFVZLB.js → orchestrator-KNOMW5CZ.js} +10 -10
- package/dist/{thread-store-HETUMDVA.js → thread-store-MEUWZDVV.js} +2 -2
- package/dist/{thread-store-V5IDUJ4L.js → thread-store-R3G5VBII.js} +2 -2
- package/dist/{workspaces-DTMPNDPW.js → workspaces-35T6FW57.js} +4 -4
- package/dist/{workspaces-V6IIBSKA.js → workspaces-KWGTP7DI.js} +4 -4
- package/dist/{worktree-FX5FT6BI.js → worktree-5P7SCST3.js} +3 -3
- package/dist/{worktree-BD3EJE24.js → worktree-ROJXGBWS.js} +3 -3
- package/package.json +1 -1
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
toAbleTimeIssueInfo,
|
|
20
20
|
updateAbleTimeTask,
|
|
21
21
|
verifyAbleTimeConnection
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-62ALWH3T.js";
|
|
23
|
+
import "./chunk-OHUAAX3O.js";
|
|
24
|
+
import "./chunk-RYPD7XWV.js";
|
|
25
25
|
import "./chunk-F6GE7V3Q.js";
|
|
26
26
|
import "./chunk-N2WW62LF.js";
|
|
27
27
|
import "./chunk-2GPQZZLY.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-WWU4SYZR.js";
|
|
29
29
|
import "./chunk-NSTQ6QKD.js";
|
|
30
30
|
import "./chunk-WWUABK6B.js";
|
|
31
31
|
import "./chunk-FJZWM2ON.js";
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
toAbleTimeIssueInfo,
|
|
18
18
|
updateAbleTimeTask,
|
|
19
19
|
verifyAbleTimeConnection
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-RUIHNWRV.js";
|
|
21
21
|
import "./chunk-DBKHL7NC.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-AJMERXZP.js";
|
|
23
|
+
import "./chunk-FDYMVJFU.js";
|
|
24
24
|
import "./chunk-JAT3JFOS.js";
|
|
25
25
|
import "./chunk-6K64FJDD.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-6WMNIX2U.js";
|
|
27
27
|
import "./chunk-4TR3HZFT.js";
|
|
28
28
|
import "./chunk-WDRMZKVB.js";
|
|
29
29
|
import "./chunk-KI45T4DI.js";
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
parseAbleTimeOAuthCallbackUrl,
|
|
21
21
|
resolveAbleTimeOAuthHost,
|
|
22
22
|
startAbleTimeOAuth
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-CEQ4Z32M.js";
|
|
24
|
+
import "./chunk-FDYMVJFU.js";
|
|
25
25
|
import "./chunk-JAT3JFOS.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-6WMNIX2U.js";
|
|
27
27
|
import "./chunk-4TR3HZFT.js";
|
|
28
28
|
import "./chunk-WDRMZKVB.js";
|
|
29
29
|
import "./chunk-KI45T4DI.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import {
|
|
4
4
|
DEFAULT_ABLETIME_HOST,
|
|
5
5
|
normalizeAbleTimeHost
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RYPD7XWV.js";
|
|
7
7
|
import {
|
|
8
8
|
httpFetch
|
|
9
9
|
} from "./chunk-2GPQZZLY.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
getAbleTimeHost,
|
|
13
13
|
loadAppSettings,
|
|
14
14
|
saveAbleTimeConnection
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WWU4SYZR.js";
|
|
16
16
|
import "./chunk-NSTQ6QKD.js";
|
|
17
17
|
import "./chunk-WWUABK6B.js";
|
|
18
18
|
import "./chunk-FJZWM2ON.js";
|
|
@@ -287,7 +287,7 @@ async function startAbleTimeOAuth(opts) {
|
|
|
287
287
|
persistAbleTimeTokens(data, { host });
|
|
288
288
|
const token = data.access_token.trim();
|
|
289
289
|
try {
|
|
290
|
-
const { getAbleTimeOrientation } = await import("./abletime-
|
|
290
|
+
const { getAbleTimeOrientation } = await import("./abletime-3HRWLQZJ.js");
|
|
291
291
|
const orientation = await getAbleTimeOrientation({ token, host });
|
|
292
292
|
return saveAbleTimeConnection({
|
|
293
293
|
accessToken: token,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
callAbleTimeRestTool,
|
|
8
8
|
looksLikeAbleTimeUlid,
|
|
9
9
|
textFromAbleTimeDoc
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-OHUAAX3O.js";
|
|
11
|
+
import "./chunk-RYPD7XWV.js";
|
|
12
12
|
import "./chunk-2GPQZZLY.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-WWU4SYZR.js";
|
|
14
14
|
import "./chunk-NSTQ6QKD.js";
|
|
15
15
|
import "./chunk-WWUABK6B.js";
|
|
16
16
|
import "./chunk-FJZWM2ON.js";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
callAbleTimeRestTool,
|
|
6
6
|
looksLikeAbleTimeUlid,
|
|
7
7
|
textFromAbleTimeDoc
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-AJMERXZP.js";
|
|
9
|
+
import "./chunk-FDYMVJFU.js";
|
|
10
10
|
import "./chunk-JAT3JFOS.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-6WMNIX2U.js";
|
|
12
12
|
import "./chunk-4TR3HZFT.js";
|
|
13
13
|
import "./chunk-WDRMZKVB.js";
|
|
14
14
|
import "./chunk-KI45T4DI.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
planModeTurnInstruction,
|
|
38
38
|
resolveCursorModelId,
|
|
39
39
|
resolveQuotaFallbackAgent
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-Q4TZA4MN.js";
|
|
41
41
|
import {
|
|
42
42
|
getAgentSetupInfo,
|
|
43
43
|
installAgent,
|
|
@@ -49,13 +49,13 @@ import {
|
|
|
49
49
|
prepareTerminalCommand,
|
|
50
50
|
resolveLoginCommand,
|
|
51
51
|
whichOnPath
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-4NXGVJA6.js";
|
|
53
53
|
import "./chunk-XOEKCE6L.js";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-5FUAOU3G.js";
|
|
55
55
|
import "./chunk-BIM24I3O.js";
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-XNGW4OYD.js";
|
|
57
|
+
import "./chunk-NTY5WGRD.js";
|
|
58
|
+
import "./chunk-ATS7SYHG.js";
|
|
59
59
|
import "./chunk-BMRJNRQK.js";
|
|
60
60
|
import "./chunk-RSA47QYR.js";
|
|
61
61
|
import "./chunk-JAT3JFOS.js";
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
assertOrchestratorCapableAgent,
|
|
90
90
|
coerceOrchestratorAgent,
|
|
91
91
|
isOrchestratorCapableAgent
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-6WMNIX2U.js";
|
|
93
93
|
import "./chunk-4TR3HZFT.js";
|
|
94
94
|
import "./chunk-WDRMZKVB.js";
|
|
95
95
|
import "./chunk-KI45T4DI.js";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
resolveCursorSdkRoot,
|
|
47
47
|
resolveQuotaFallbackAgent,
|
|
48
48
|
turnCostUsdFromCursorUsage
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-Y6VQX2LY.js";
|
|
50
50
|
import "./chunk-ORO4ENZR.js";
|
|
51
51
|
import {
|
|
52
52
|
getAgentSetupInfo,
|
|
@@ -59,14 +59,14 @@ import {
|
|
|
59
59
|
prepareTerminalCommand,
|
|
60
60
|
resolveLoginCommand,
|
|
61
61
|
whichOnPath
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
62
|
+
} from "./chunk-7B2OUQON.js";
|
|
63
|
+
import "./chunk-6TV6L2DD.js";
|
|
64
|
+
import "./chunk-2HPVGTHF.js";
|
|
65
65
|
import "./chunk-I6RGRUNY.js";
|
|
66
66
|
import "./chunk-E63AM3PW.js";
|
|
67
67
|
import "./chunk-N2WW62LF.js";
|
|
68
68
|
import "./chunk-2GPQZZLY.js";
|
|
69
|
-
import "./chunk-
|
|
69
|
+
import "./chunk-JCYGQKER.js";
|
|
70
70
|
import "./chunk-GK7H3SY7.js";
|
|
71
71
|
import {
|
|
72
72
|
conductorBundledBinDir,
|
|
@@ -79,14 +79,14 @@ import {
|
|
|
79
79
|
resolveCommandBinarySync,
|
|
80
80
|
withExportedPath
|
|
81
81
|
} from "./chunk-TL2HK6LZ.js";
|
|
82
|
-
import "./chunk-
|
|
82
|
+
import "./chunk-MOUAM6ZC.js";
|
|
83
83
|
import "./chunk-WMZIANPV.js";
|
|
84
84
|
import {
|
|
85
85
|
ORCHESTRATOR_AGENT_KINDS,
|
|
86
86
|
assertOrchestratorCapableAgent,
|
|
87
87
|
coerceOrchestratorAgent,
|
|
88
88
|
isOrchestratorCapableAgent
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-WWU4SYZR.js";
|
|
90
90
|
import "./chunk-NSTQ6QKD.js";
|
|
91
91
|
import "./chunk-WWUABK6B.js";
|
|
92
92
|
import "./chunk-FJZWM2ON.js";
|
|
@@ -96,6 +96,7 @@ import {
|
|
|
96
96
|
saveAbleTimeConnection,
|
|
97
97
|
saveAppSettings,
|
|
98
98
|
saveLinearOAuth,
|
|
99
|
+
savePosthogOAuth,
|
|
99
100
|
selectManagedAccount,
|
|
100
101
|
showCostEnabled,
|
|
101
102
|
slackAppLevelToken,
|
|
@@ -114,7 +115,7 @@ import {
|
|
|
114
115
|
usageOnLimit,
|
|
115
116
|
wakeOrchestratorOnGithubEdgesEnabled,
|
|
116
117
|
writeViewerContext
|
|
117
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-WWU4SYZR.js";
|
|
118
119
|
import "./chunk-NSTQ6QKD.js";
|
|
119
120
|
import "./chunk-WWUABK6B.js";
|
|
120
121
|
import "./chunk-FJZWM2ON.js";
|
|
@@ -216,6 +217,7 @@ export {
|
|
|
216
217
|
saveAbleTimeConnection,
|
|
217
218
|
saveAppSettings,
|
|
218
219
|
saveLinearOAuth,
|
|
220
|
+
savePosthogOAuth,
|
|
219
221
|
selectManagedAccount,
|
|
220
222
|
showCostEnabled,
|
|
221
223
|
slackAppLevelToken,
|
|
@@ -94,6 +94,7 @@ import {
|
|
|
94
94
|
saveAbleTimeConnection,
|
|
95
95
|
saveAppSettings,
|
|
96
96
|
saveLinearOAuth,
|
|
97
|
+
savePosthogOAuth,
|
|
97
98
|
selectManagedAccount,
|
|
98
99
|
showCostEnabled,
|
|
99
100
|
slackAppLevelToken,
|
|
@@ -112,7 +113,7 @@ import {
|
|
|
112
113
|
usageOnLimit,
|
|
113
114
|
wakeOrchestratorOnGithubEdgesEnabled,
|
|
114
115
|
writeViewerContext
|
|
115
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-6WMNIX2U.js";
|
|
116
117
|
import "./chunk-4TR3HZFT.js";
|
|
117
118
|
import "./chunk-WDRMZKVB.js";
|
|
118
119
|
import "./chunk-KI45T4DI.js";
|
|
@@ -214,6 +215,7 @@ export {
|
|
|
214
215
|
saveAbleTimeConnection,
|
|
215
216
|
saveAppSettings,
|
|
216
217
|
saveLinearOAuth,
|
|
218
|
+
savePosthogOAuth,
|
|
217
219
|
selectManagedAccount,
|
|
218
220
|
showCostEnabled,
|
|
219
221
|
slackAppLevelToken,
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
normalizeTakenSlug,
|
|
24
24
|
normalizeWorktreePath,
|
|
25
25
|
takenSlugsFromThread
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-MOUAM6ZC.js";
|
|
27
27
|
import {
|
|
28
28
|
getGithubGitAuthMode,
|
|
29
29
|
getGithubPat
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-WWU4SYZR.js";
|
|
31
31
|
import {
|
|
32
32
|
worktreesRoot
|
|
33
33
|
} from "./chunk-WOU343SI.js";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-R4W4VQJZ.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveAgentExecutable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6WMNIX2U.js";
|
|
11
11
|
|
|
12
12
|
// src/agents/install.ts
|
|
13
13
|
import { chmodSync, existsSync } from "fs";
|
|
@@ -364,7 +364,7 @@ async function loginAgent(agent) {
|
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
366
|
async function loginManagedAccount(accountId) {
|
|
367
|
-
const { loadAppSettings } = await import("./app-settings-
|
|
367
|
+
const { loadAppSettings } = await import("./app-settings-SNOPJ7P5.js");
|
|
368
368
|
const { loginEnvPrefix } = await import("./managed-accounts-JJTAKHMG.js");
|
|
369
369
|
const account = loadAppSettings().accounts.accounts.find((a) => a.id === accountId);
|
|
370
370
|
if (!account) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var LIST_TIMEOUT_MS = 15e3;
|
|
3
3
|
async function listAssignedLinearIssues(opts) {
|
|
4
4
|
try {
|
|
5
|
-
const { listLinearIssuesDirect } = await import("./linear-
|
|
5
|
+
const { listLinearIssuesDirect } = await import("./linear-MIJO6DCV.js");
|
|
6
6
|
const listed = listLinearIssuesDirect({ limit: 50 }).catch(() => []);
|
|
7
7
|
let timer;
|
|
8
8
|
try {
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import {
|
|
4
4
|
abletimeRestUrl,
|
|
5
5
|
textFromAbleTimeDoc
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OHUAAX3O.js";
|
|
7
7
|
import {
|
|
8
8
|
assertAbleTimeCredential,
|
|
9
9
|
callAbleTimeTool,
|
|
10
10
|
normalizeAbleTimeHost,
|
|
11
11
|
rewriteAbleTimeError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-RYPD7XWV.js";
|
|
13
13
|
import {
|
|
14
14
|
downloadAuthenticatedFile,
|
|
15
15
|
extractHttpUrls,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
getAbleTimeHost,
|
|
28
28
|
isAbleTimeConnected,
|
|
29
29
|
saveAbleTimeConnection
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-WWU4SYZR.js";
|
|
31
31
|
|
|
32
32
|
// src/integrations/abletime-attachments.ts
|
|
33
33
|
function asRecord(value) {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
resolveGithubRepoSlug,
|
|
8
8
|
resolveOriginRemote,
|
|
9
9
|
resolveRepoRoot
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2HPVGTHF.js";
|
|
11
11
|
import {
|
|
12
12
|
ATTACHMENTS_DIR,
|
|
13
13
|
attachmentsGitignoreBody
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
teamSlugFromName,
|
|
21
21
|
updateThread,
|
|
22
22
|
writeThread
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MOUAM6ZC.js";
|
|
24
24
|
import {
|
|
25
25
|
assertOrchestratorCapableAgent,
|
|
26
26
|
formatAccountProfilePlaybookLine,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
resolveThreadDefaults,
|
|
34
34
|
resolveViewerProfile,
|
|
35
35
|
resolveViewerProfileForRepo
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-WWU4SYZR.js";
|
|
37
37
|
import {
|
|
38
38
|
appDataDir,
|
|
39
39
|
globalAgentCwd,
|
|
@@ -349,7 +349,7 @@ var COORDINATOR_TOOL_PLAYBOOK = [
|
|
|
349
349
|
"- linear_* (when Linear is connected) \u2014 list_teams for team key/states; linear_list_projects for project names; get/search include the project a ticket is on; get/create/update/comment with ENG-123. Worktree agents have the same Account tools \u2014 prefer they comment, update status, and create spin-offs (parent=) on their own ticket when they were asked to do the work. When reviewing a PR or ticket, do not comment or update until the user types a next step \u2014 they should work through the feedback in chat first. Do not tell the child to ask_user after the review. Scope errors: reconnect Linear in Account settings. Prefer these over any Linear MCP the CLI may still list. Worktree agents use the Claude Linear connector only when Account Linear is not set or the Sideboard call fails, and they do not mention that connector startup failure when Sideboard works.",
|
|
350
350
|
"- github_* \u2014 get/comment/update/create GitHub issues via Account `gh` (#123). github_list_projects and get/search include GitHub Projects. projectsError or a missing read:project scope \u2192 `gh auth refresh -s read:project`. Worktree agents have these too. Prefer Sideboard `github_*` while Account `gh` works. A failed Claude GitHub connector (`mcp_github_github`) is not a Sideboard outage \u2014 do not mention it. Use that connector only when `gh` is not set up or the Sideboard call fails. Pass parent= for spin-offs. When reviewing a PR or ticket, do not comment, submit `gh pr review`, or update the PR/ticket until the user types a next step.",
|
|
351
351
|
"- abletime_* (when AbleTime is connected) \u2014 orientation first; abletime_list_projects lists projects; get/list include the project a task is on; get/comment/update/create (parent= for spin-offs); ensure_task when work has no ticket (or create_workspace from the default branch auto-creates one). Worktree agents have the same Account tools. Same review-write gate as Linear/GitHub.",
|
|
352
|
-
"- Optional connectors (Vercel, Supabase, Sentry) in Settings \u2192 Connectors inject tokens into worktree agent env when connected. Prefer official CLIs (`vercel`, `supabase`, `sentry-cli`). When Settings \u2192 Connectors
|
|
352
|
+
"- Optional connectors (Vercel, Supabase, Sentry) in Settings \u2192 Connectors inject tokens into worktree agent env when connected. Prefer official CLIs (`vercel`, `supabase`, `sentry-cli`). When Settings \u2192 Connectors is signed in to PostHog, PostHog is the Sideboard tool `posthog_api` (GET by default; POST `/api/projects/:id/query/` or `/api/environments/:id/query/` is a read and does not need write=true; other POST and PATCH need write=true only when the user asked to change data). The PostHog token stays in the vault \u2014 do not read it from the environment, and do not sign in to a PostHog MCP. When PostHog is not signed in, Claude worktree turns load the signed-in PostHog connector as server claude.ai PostHog (tools mcp__claude_ai_PostHog__*) inside --mcp-config. --strict-mcp-config does not load claude.ai connectors, and --allowedTools only skips prompts. Cursor, Codex, and OpenCode do not have those tools. When PostHog is signed in, ignore a failed Claude PostHog connector and do not sign in to a PostHog MCP. If a Vercel, Supabase, or Sentry MCP needsAuth or is unauthorized while that Sideboard token is set, do not sign in \u2014 use the native CLI. When that token is not set or the CLI call fails, the Claude connector is the fallback. Do not mention a Claude connector startup failure when the Sideboard connection works. Tell any worktree agent (Claude / Cursor / Codex / OpenCode) to write CLI output to `.context/cli/` and read a slice. If a CLI is missing, the user presses Install CLI on that row. Do not add vendor MCPs. Git (`gh`) stays Settings \u2192 Git; issue tracking stays Settings \u2192 Issues. The phone remote is Settings \u2192 Remote \u2014 do not look up Slack users.",
|
|
353
353
|
"- get_pr_stack / open_pr_stack_layers / add_stack_layer / create_pr_stack \u2014 GitHub stacked PRs (`gh stack`); one worktree per layer",
|
|
354
354
|
"- list_models \u2014 only when you need a specific model (rare); otherwise omit model so Account defaults apply",
|
|
355
355
|
"- list_chats / get_chat \u2014 live thread list (parent id + last message preview). get_chat on this orchestration chat lists child worktree agents (status + lastText). blockedReason is why that agent is waiting on a person. Also includes usage / lastTurnUsage. Archived workspaces and agents are list_archive, not this list.",
|
|
@@ -714,6 +714,12 @@ function normalizeVault(raw) {
|
|
|
714
714
|
if (typeof raw.posthogPersonalApiKey === "string" && raw.posthogPersonalApiKey.trim()) {
|
|
715
715
|
out.posthogPersonalApiKey = raw.posthogPersonalApiKey.trim();
|
|
716
716
|
}
|
|
717
|
+
if (typeof raw.posthogAccessToken === "string" && raw.posthogAccessToken.trim()) {
|
|
718
|
+
out.posthogAccessToken = raw.posthogAccessToken.trim();
|
|
719
|
+
}
|
|
720
|
+
if (typeof raw.posthogRefreshToken === "string" && raw.posthogRefreshToken.trim()) {
|
|
721
|
+
out.posthogRefreshToken = raw.posthogRefreshToken.trim();
|
|
722
|
+
}
|
|
717
723
|
if (typeof raw.sentryAuthToken === "string" && raw.sentryAuthToken.trim()) {
|
|
718
724
|
out.sentryAuthToken = raw.sentryAuthToken.trim();
|
|
719
725
|
}
|
|
@@ -1125,6 +1131,8 @@ var INTEGRATION_VAULT_KEYS = [
|
|
|
1125
1131
|
"vercelToken",
|
|
1126
1132
|
"supabaseAccessToken",
|
|
1127
1133
|
"posthogPersonalApiKey",
|
|
1134
|
+
"posthogAccessToken",
|
|
1135
|
+
"posthogRefreshToken",
|
|
1128
1136
|
"sentryAuthToken"
|
|
1129
1137
|
];
|
|
1130
1138
|
function hasLinearOAuth(integrations) {
|
|
@@ -1158,7 +1166,7 @@ function toPublicAppSettings(settings) {
|
|
|
1158
1166
|
hasAbleTimeOAuth: Boolean(settings.integrations.abletimeRefreshToken?.trim()),
|
|
1159
1167
|
hasVercelToken: Boolean(settings.integrations.vercelToken?.trim()),
|
|
1160
1168
|
hasSupabaseToken: Boolean(settings.integrations.supabaseAccessToken?.trim()),
|
|
1161
|
-
hasPosthogToken:
|
|
1169
|
+
hasPosthogToken: hasPosthogCredentials(settings.integrations),
|
|
1162
1170
|
hasSentryToken: Boolean(settings.integrations.sentryAuthToken?.trim()),
|
|
1163
1171
|
hasRemoteAccount: Boolean(settings.integrations.remoteAccountToken?.trim())
|
|
1164
1172
|
}
|
|
@@ -1362,6 +1370,12 @@ function normalizeIntegrations(raw) {
|
|
|
1362
1370
|
const key = source.posthogPersonalApiKey.trim();
|
|
1363
1371
|
if (key) out.posthogPersonalApiKey = key;
|
|
1364
1372
|
}
|
|
1373
|
+
for (const key of ["posthogAccessToken", "posthogRefreshToken"]) {
|
|
1374
|
+
const token = typeof source[key] === "string" ? source[key].trim() : "";
|
|
1375
|
+
if (token) out[key] = token;
|
|
1376
|
+
}
|
|
1377
|
+
const posthogExp = Number(source.posthogTokenExpiresAt);
|
|
1378
|
+
if (Number.isFinite(posthogExp)) out.posthogTokenExpiresAt = posthogExp;
|
|
1365
1379
|
if (typeof source.posthogHost === "string") {
|
|
1366
1380
|
const host = source.posthogHost.trim();
|
|
1367
1381
|
if (host) out.posthogHost = host;
|
|
@@ -2295,8 +2309,26 @@ function disconnectLinearConnection() {
|
|
|
2295
2309
|
delete integrations.linearOrganizationName;
|
|
2296
2310
|
return saveAppSettings({ ...current, integrations });
|
|
2297
2311
|
}
|
|
2312
|
+
function hasPosthogCredentials(integrations) {
|
|
2313
|
+
return Boolean(
|
|
2314
|
+
integrations.posthogAccessToken?.trim() || integrations.posthogRefreshToken?.trim() || integrations.posthogPersonalApiKey?.trim()
|
|
2315
|
+
);
|
|
2316
|
+
}
|
|
2298
2317
|
function isPosthogConnected(settings = loadAppSettings()) {
|
|
2299
|
-
return
|
|
2318
|
+
return hasPosthogCredentials(settings.integrations);
|
|
2319
|
+
}
|
|
2320
|
+
function savePosthogOAuth(input) {
|
|
2321
|
+
const current = loadAppSettings();
|
|
2322
|
+
const integrations = { ...current.integrations };
|
|
2323
|
+
integrations.posthogAccessToken = input.accessToken.trim();
|
|
2324
|
+
if (input.refreshToken?.trim()) integrations.posthogRefreshToken = input.refreshToken.trim();
|
|
2325
|
+
if (typeof input.expiresIn === "number" && Number.isFinite(input.expiresIn)) {
|
|
2326
|
+
integrations.posthogTokenExpiresAt = Date.now() + Math.max(0, input.expiresIn) * 1e3;
|
|
2327
|
+
}
|
|
2328
|
+
if (input.host?.trim()) integrations.posthogHost = input.host.trim();
|
|
2329
|
+
if (input.viewerName?.trim()) integrations.posthogViewerName = input.viewerName.trim().slice(0, 120);
|
|
2330
|
+
delete integrations.posthogPersonalApiKey;
|
|
2331
|
+
return saveAppSettings({ ...current, integrations });
|
|
2300
2332
|
}
|
|
2301
2333
|
function isAbleTimeConnected(settings = loadAppSettings()) {
|
|
2302
2334
|
return Boolean(
|
|
@@ -2808,6 +2840,7 @@ export {
|
|
|
2808
2840
|
saveLinearOAuth,
|
|
2809
2841
|
disconnectLinearConnection,
|
|
2810
2842
|
isPosthogConnected,
|
|
2843
|
+
savePosthogOAuth,
|
|
2811
2844
|
isAbleTimeConnected,
|
|
2812
2845
|
getAbleTimeAccessToken,
|
|
2813
2846
|
getAbleTimeHost,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-TL2HK6LZ.js";
|
|
10
10
|
import {
|
|
11
11
|
resolveAgentExecutable
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WWU4SYZR.js";
|
|
13
13
|
|
|
14
14
|
// src/agents/install.ts
|
|
15
15
|
import { chmodSync, existsSync } from "fs";
|
|
@@ -366,7 +366,7 @@ async function loginAgent(agent) {
|
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
async function loginManagedAccount(accountId) {
|
|
369
|
-
const { loadAppSettings } = await import("./app-settings-
|
|
369
|
+
const { loadAppSettings } = await import("./app-settings-PPIMYJKS.js");
|
|
370
370
|
const { loginEnvPrefix } = await import("./managed-accounts-PITLFLKU.js");
|
|
371
371
|
const account = loadAppSettings().accounts.accounts.find((a) => a.id === accountId);
|
|
372
372
|
if (!account) {
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
normalizeAbleTimeCredential,
|
|
5
5
|
normalizeAbleTimeHost,
|
|
6
6
|
rewriteAbleTimeError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FDYMVJFU.js";
|
|
8
8
|
import {
|
|
9
9
|
httpFetch
|
|
10
10
|
} from "./chunk-JAT3JFOS.js";
|
|
11
11
|
import {
|
|
12
12
|
getAbleTimeAccessToken,
|
|
13
13
|
getAbleTimeHost
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6WMNIX2U.js";
|
|
15
15
|
|
|
16
16
|
// src/integrations/abletime-rest.ts
|
|
17
17
|
var ABLETIME_REST_PREFIX = "/api/public/v2";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_ABLETIME_HOST,
|
|
3
3
|
normalizeAbleTimeHost
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FDYMVJFU.js";
|
|
5
5
|
import {
|
|
6
6
|
httpFetch
|
|
7
7
|
} from "./chunk-JAT3JFOS.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
getAbleTimeHost,
|
|
11
11
|
loadAppSettings,
|
|
12
12
|
saveAbleTimeConnection
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6WMNIX2U.js";
|
|
14
14
|
|
|
15
15
|
// src/integrations/abletime-oauth.ts
|
|
16
16
|
import { createHash, randomBytes } from "crypto";
|
|
@@ -280,7 +280,7 @@ async function startAbleTimeOAuth(opts) {
|
|
|
280
280
|
persistAbleTimeTokens(data, { host });
|
|
281
281
|
const token = data.access_token.trim();
|
|
282
282
|
try {
|
|
283
|
-
const { getAbleTimeOrientation } = await import("./abletime-
|
|
283
|
+
const { getAbleTimeOrientation } = await import("./abletime-CGFJZB7L.js");
|
|
284
284
|
const orientation = await getAbleTimeOrientation({ token, host });
|
|
285
285
|
return saveAbleTimeConnection({
|
|
286
286
|
accessToken: token,
|
|
@@ -27,13 +27,12 @@ var OPTIONAL_SERVICES = [
|
|
|
27
27
|
{
|
|
28
28
|
id: "posthog",
|
|
29
29
|
label: "PostHog",
|
|
30
|
-
hint: "Product analytics.
|
|
30
|
+
hint: "Product analytics. Sign in with your browser. Agents call `posthog_api`.",
|
|
31
31
|
tokenPlaceholder: "phx_\u2026",
|
|
32
|
-
tokenDocs: "https://
|
|
32
|
+
tokenDocs: "https://posthog.com/docs/api/oauth",
|
|
33
33
|
envKey: "POSTHOG_PERSONAL_API_KEY",
|
|
34
34
|
hostEnvKey: "POSTHOG_HOST",
|
|
35
|
-
defaultHost: "https://us.posthog.com"
|
|
36
|
-
hostPlaceholder: "https://us.posthog.com"
|
|
35
|
+
defaultHost: "https://us.posthog.com"
|
|
37
36
|
},
|
|
38
37
|
{
|
|
39
38
|
id: "sentry",
|
|
@@ -70,7 +69,11 @@ function normalizeServiceOrigin(raw, fallback) {
|
|
|
70
69
|
function optionalServiceConnected(id, integrations) {
|
|
71
70
|
if (id === "vercel") return Boolean(integrations.vercelToken?.trim());
|
|
72
71
|
if (id === "supabase") return Boolean(integrations.supabaseAccessToken?.trim());
|
|
73
|
-
if (id === "posthog")
|
|
72
|
+
if (id === "posthog") {
|
|
73
|
+
return Boolean(
|
|
74
|
+
integrations.posthogAccessToken?.trim() || integrations.posthogRefreshToken?.trim() || integrations.posthogPersonalApiKey?.trim()
|
|
75
|
+
);
|
|
76
|
+
}
|
|
74
77
|
return Boolean(integrations.sentryAuthToken?.trim());
|
|
75
78
|
}
|
|
76
79
|
function connectedOptionalServices(integrations) {
|
|
@@ -85,12 +88,12 @@ function connectorDirectiveLine(spec, cli) {
|
|
|
85
88
|
if (spec.cli) {
|
|
86
89
|
return `- ${spec.label}: use \`${spec.cli}\` (\`${spec.envKey}\`${extras})${cliPresencePhrase(spec, cli)}. Do not add a ${spec.label} MCP.`;
|
|
87
90
|
}
|
|
88
|
-
return `- ${spec.label}: call \`posthog_api\`. Path must start with \`/api/\`. GET is the default. POST \`/api/projects/:id/query/\` or \`/api/environments/:id/query/\` is a read and does not need \`write=true\`. Other POST and PATCH require \`write=true\` only when the user asked to change data. Do not read the
|
|
91
|
+
return `- ${spec.label}: call \`posthog_api\`. Path must start with \`/api/\`. GET is the default. POST \`/api/projects/:id/query/\` or \`/api/environments/:id/query/\` is a read and does not need \`write=true\`. Other POST and PATCH require \`write=true\` only when the user asked to change data. Do not read the token from the environment. Do not add a ${spec.label} MCP.`;
|
|
89
92
|
}
|
|
90
93
|
function connectorAuthCaution(posthog, cliConnected) {
|
|
91
94
|
const signIn = posthog ? "If a connector MCP is listed but needsAuth or returns unauthorized, do not sign in to that MCP." : "If a Vercel, Supabase, or Sentry MCP is listed but needsAuth or returns unauthorized, do not sign in to that MCP.";
|
|
92
95
|
const token = cliConnected ? " CLI tokens are already in this process." : "";
|
|
93
|
-
const key = posthog ? " Do not read a PostHog
|
|
96
|
+
const key = posthog ? " Do not read a PostHog token from the environment." : "";
|
|
94
97
|
return `${signIn}${token}${key} When this Sideboard connection works, ignore a Claude connector that failed to start. Use the Claude connector only when this connection is not set or the CLI call fails.`;
|
|
95
98
|
}
|
|
96
99
|
function connectorReminderBit(spec, cli) {
|
|
@@ -118,14 +121,14 @@ function formatOptionalServicesReminder(integrations, cli) {
|
|
|
118
121
|
const bits = connected.map((spec) => connectorReminderBit(spec, cli)).join(". ");
|
|
119
122
|
const tokenBit = connected.some((spec) => spec.cli) ? "CLI tokens are already in this process. " : "";
|
|
120
123
|
const posthog = connected.some((spec) => spec.id === "posthog");
|
|
121
|
-
const auth = posthog ? "If a connector MCP needsAuth or is unauthorized, ignore it and use the CLI or `posthog_api` while this Sideboard connection works. Use the Claude connector only when it is not set or the call fails. Do not read a PostHog
|
|
124
|
+
const auth = posthog ? "If a connector MCP needsAuth or is unauthorized, ignore it and use the CLI or `posthog_api` while this Sideboard connection works. Use the Claude connector only when it is not set or the call fails. Do not read a PostHog token from the environment." : "If a Vercel, Supabase, or Sentry MCP needsAuth or is unauthorized, ignore it and use the CLI while this Sideboard connection works. Use the Claude connector only when it is not set or the CLI call fails.";
|
|
122
125
|
return `Settings \u2192 Connectors: ${tokenBit}${bits}. ${auth} Do not add vendor MCPs. Shell dumps from those CLIs go in \`.context/cli/\` \u2014 read a slice.`;
|
|
123
126
|
}
|
|
124
127
|
async function connectedCliPresence(integrations) {
|
|
125
128
|
const ids = connectedOptionalServices(integrations).filter((spec) => spec.cli).map((spec) => spec.id);
|
|
126
129
|
if (ids.length === 0) return void 0;
|
|
127
130
|
try {
|
|
128
|
-
const { optionalCliPresence } = await import("./optional-cli-
|
|
131
|
+
const { optionalCliPresence } = await import("./optional-cli-4GTEDEYJ.js");
|
|
129
132
|
return await optionalCliPresence(ids);
|
|
130
133
|
} catch {
|
|
131
134
|
return void 0;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
getAbleTimeHost,
|
|
6
6
|
isAbleTimeConnected
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6WMNIX2U.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-JQDSH5OL.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-JQDSH5OL.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-UQA2CRZN.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-UQA2CRZN.js");
|
|
246
246
|
return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
|
|
247
247
|
}
|
|
248
248
|
throw err instanceof Error ? new Error(rewriteAbleTimeError(err.message)) : err;
|