@sideboard-ai/core 0.1.346 → 0.1.347
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-5IMXA563.js → chunk-27XWAI7S.js} +22 -22
- 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-JZKNRDKF.js → chunk-IJNTTVFH.js} +23 -23
- 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-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-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 +1090 -640
- package/dist/index.d.cts +60 -6
- package/dist/index.d.ts +60 -6
- package/dist/index.js +325 -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 +500 -224
- 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-AJZNVREM.js} +10 -10
- package/dist/{orchestrator-POMFVZLB.js → orchestrator-BUEPWNCF.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,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
parseSessionQuotaResetAt,
|
|
15
15
|
planModeTurnInstruction,
|
|
16
16
|
resolveQuotaFallbackAgent
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-Y6VQX2LY.js";
|
|
18
18
|
import {
|
|
19
19
|
applyWorktreePkgCacheEnv,
|
|
20
20
|
askBlockStillWaiting,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
worktreeDevProcessKey,
|
|
55
55
|
worktreeRunProcessKey,
|
|
56
56
|
worktreeSetupProcessKey
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-ZJMYCDYQ.js";
|
|
58
58
|
import {
|
|
59
59
|
applyAgentEvent,
|
|
60
60
|
clipAgentEventForPaint,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
import {
|
|
89
89
|
formatOptionalServicesDirectiveForTurn,
|
|
90
90
|
formatOptionalServicesReminderForTurn
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-F7WP2U5I.js";
|
|
92
92
|
import {
|
|
93
93
|
extractPresentedPlan,
|
|
94
94
|
isPresentPlanToolName,
|
|
@@ -121,7 +121,7 @@ import {
|
|
|
121
121
|
stageAbsolutePathsAsAttachments,
|
|
122
122
|
stageBuffersAsAttachments,
|
|
123
123
|
syncWorkspacesFromThreads
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-6TV6L2DD.js";
|
|
125
125
|
import {
|
|
126
126
|
addPrStackLayer,
|
|
127
127
|
allocateTeamSlug,
|
|
@@ -172,7 +172,7 @@ import {
|
|
|
172
172
|
resolveRepoRoot,
|
|
173
173
|
switchWorktreeBranch,
|
|
174
174
|
withRepoGitLock
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-2HPVGTHF.js";
|
|
176
176
|
import {
|
|
177
177
|
issueActivityKind
|
|
178
178
|
} from "./chunk-OYRN356W.js";
|
|
@@ -215,7 +215,7 @@ import {
|
|
|
215
215
|
worktreeNameFromPath,
|
|
216
216
|
worktreeSlugForTicket,
|
|
217
217
|
writeThread
|
|
218
|
-
} from "./chunk-
|
|
218
|
+
} from "./chunk-MOUAM6ZC.js";
|
|
219
219
|
import {
|
|
220
220
|
HISTORY_CLEANUP_INTERVAL_HOURS_DEFAULT,
|
|
221
221
|
applyTurnUsage,
|
|
@@ -252,7 +252,7 @@ import {
|
|
|
252
252
|
wakeOrchestratorOnGithubEdgesEnabled,
|
|
253
253
|
withTurnScopedCost,
|
|
254
254
|
writeViewerContext
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-WWU4SYZR.js";
|
|
256
256
|
import {
|
|
257
257
|
writePrivateFile
|
|
258
258
|
} from "./chunk-NSTQ6QKD.js";
|
|
@@ -571,9 +571,9 @@ async function spawnAgentTurn(thread, input, onEvent) {
|
|
|
571
571
|
`Cannot spawn ${thread.agent}: thread ${thread.id} has no worktreePath`
|
|
572
572
|
);
|
|
573
573
|
}
|
|
574
|
-
const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-
|
|
574
|
+
const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-7OQ5O6JT.js");
|
|
575
575
|
if (isGlobalThread2(thread)) {
|
|
576
|
-
const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-
|
|
576
|
+
const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-WALVMGKI.js");
|
|
577
577
|
ensureGlobalCoordinatorCwd2(
|
|
578
578
|
isOrchestratorThread(thread) ? { orchestratorThreadId: thread.id } : void 0
|
|
579
579
|
);
|
|
@@ -2996,7 +2996,7 @@ async function createThread(input, _onSetupLine) {
|
|
|
2996
2996
|
});
|
|
2997
2997
|
await requireAgent(resolved.agent);
|
|
2998
2998
|
if (input.cowboy) {
|
|
2999
|
-
const { cowboyModeEnabled } = await import("./app-settings-
|
|
2999
|
+
const { cowboyModeEnabled } = await import("./app-settings-PPIMYJKS.js");
|
|
3000
3000
|
if (!cowboyModeEnabled()) {
|
|
3001
3001
|
throw new Error(
|
|
3002
3002
|
"Cowboy mode is off. Enable it in Settings \u2192 Advanced."
|
|
@@ -3055,7 +3055,7 @@ async function createThread(input, _onSetupLine) {
|
|
|
3055
3055
|
let sourceIsFork = false;
|
|
3056
3056
|
if (!input.cowboy && sourceType === "branch" && (!sourceRef || sourceRef === "HEAD" || sourceRef === "default")) {
|
|
3057
3057
|
if (isAbleTimeConnected() && getIssueSource() === "abletime") {
|
|
3058
|
-
const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-
|
|
3058
|
+
const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-3HRWLQZJ.js");
|
|
3059
3059
|
const task = await ensureAbleTimeTask({
|
|
3060
3060
|
title: title?.trim() || "Untitled work",
|
|
3061
3061
|
description: input.prompt?.trim() || void 0
|
|
@@ -3937,7 +3937,7 @@ async function adoptThread(input) {
|
|
|
3937
3937
|
messages: input.messages ?? []
|
|
3938
3938
|
});
|
|
3939
3939
|
writeThread(thread);
|
|
3940
|
-
const { addWorkspace: addWorkspace2 } = await import("./workspaces-
|
|
3940
|
+
const { addWorkspace: addWorkspace2 } = await import("./workspaces-KWGTP7DI.js");
|
|
3941
3941
|
await addWorkspace2(repoPath);
|
|
3942
3942
|
const { ensureWorktreeSideboardIgnored } = await import("./worktree-exclude-KMZQXZKP.js");
|
|
3943
3943
|
await ensureWorktreeSideboardIgnored(input.worktreePath);
|
|
@@ -7527,11 +7527,11 @@ function realDeps() {
|
|
|
7527
7527
|
parentIdForThread,
|
|
7528
7528
|
designatedId: designatedOrchestratorId,
|
|
7529
7529
|
send: async (threadId, prompt) => {
|
|
7530
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
7530
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-AJZNVREM.js");
|
|
7531
7531
|
await getOrchestrator2().send(threadId, prompt, { followUp: "queue" });
|
|
7532
7532
|
},
|
|
7533
7533
|
startOrchestration: async (prompt) => {
|
|
7534
|
-
const { startOrchestration: startOrchestration2 } = await import("./orchestrator-
|
|
7534
|
+
const { startOrchestration: startOrchestration2 } = await import("./orchestrator-AJZNVREM.js");
|
|
7535
7535
|
const defaults = resolveOrchestratorDefaults();
|
|
7536
7536
|
await startOrchestration2({
|
|
7537
7537
|
goal: prompt,
|
|
@@ -7558,7 +7558,7 @@ function formatScheduledPrompt(name, prompt) {
|
|
|
7558
7558
|
${prompt}`;
|
|
7559
7559
|
}
|
|
7560
7560
|
async function defaultDeps() {
|
|
7561
|
-
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-
|
|
7561
|
+
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-AJZNVREM.js");
|
|
7562
7562
|
const orch = getOrchestrator2();
|
|
7563
7563
|
return {
|
|
7564
7564
|
findThread: (id) => findThreadByRef(id),
|
|
@@ -7914,7 +7914,7 @@ var Orchestrator = class {
|
|
|
7914
7914
|
orphans: orphans.map((o) => ({ path: o.path, repoPath: o.repoPath }))
|
|
7915
7915
|
});
|
|
7916
7916
|
}
|
|
7917
|
-
const { autoCleanupOrphansEnabled } = await import("./app-settings-
|
|
7917
|
+
const { autoCleanupOrphansEnabled } = await import("./app-settings-PPIMYJKS.js");
|
|
7918
7918
|
if (autoCleanupOrphansEnabled() && shouldRunWorktreeCleanup() && orphans.length > 0) {
|
|
7919
7919
|
await cleanupOrphanWorktrees({ repoPaths });
|
|
7920
7920
|
}
|
|
@@ -8304,7 +8304,7 @@ var Orchestrator = class {
|
|
|
8304
8304
|
}
|
|
8305
8305
|
await setup;
|
|
8306
8306
|
if (skipSetup) return;
|
|
8307
|
-
const { autoRunAfterSetupEnabled } = await import("./app-settings-
|
|
8307
|
+
const { autoRunAfterSetupEnabled } = await import("./app-settings-PPIMYJKS.js");
|
|
8308
8308
|
if (autoRunAfterSetupEnabled()) {
|
|
8309
8309
|
try {
|
|
8310
8310
|
await this.startDev(threadId);
|
|
@@ -8688,7 +8688,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
|
|
|
8688
8688
|
}
|
|
8689
8689
|
const isBrightsy = fresh.agent === "brightsy";
|
|
8690
8690
|
const isOrchestration = isOrchestratorThread(fresh);
|
|
8691
|
-
const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-
|
|
8691
|
+
const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-PPIMYJKS.js");
|
|
8692
8692
|
const gitAuthMode = getGithubGitAuthMode();
|
|
8693
8693
|
const worktreeDirective = isBrightsy || isOrchestration ? null : formatWorktreeDirective(fresh, {
|
|
8694
8694
|
githubSlug: turnOrigin?.forge === "github" ? turnOrigin.slug : await withTimeout(resolveGithubRepoSlug(fresh.worktreePath), 8e3, "resolveGithubRepoSlug").catch(() => null),
|
|
@@ -10030,7 +10030,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
|
|
|
10030
10030
|
if (Object.keys(patch).length === 0) continue;
|
|
10031
10031
|
updateThread(t.id, patch);
|
|
10032
10032
|
}
|
|
10033
|
-
const { autoArchiveOnMergeEnabled } = await import("./app-settings-
|
|
10033
|
+
const { autoArchiveOnMergeEnabled } = await import("./app-settings-PPIMYJKS.js");
|
|
10034
10034
|
const latest = this.requireThread(thread.id);
|
|
10035
10035
|
if (!shouldAutoArchiveOnPrMerge({
|
|
10036
10036
|
previousPrState: prevState || null,
|
|
@@ -10354,7 +10354,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
|
|
|
10354
10354
|
await runArchiveScript(thread.repoPath, thread.worktreePath);
|
|
10355
10355
|
} catch {
|
|
10356
10356
|
}
|
|
10357
|
-
const { deleteBranchOnPurgeEnabled } = await import("./app-settings-
|
|
10357
|
+
const { deleteBranchOnPurgeEnabled } = await import("./app-settings-PPIMYJKS.js");
|
|
10358
10358
|
const deleteBranch = opts?.deleteBranch ?? deleteBranchOnPurgeEnabled();
|
|
10359
10359
|
await removeWorktree(thread.repoPath, thread.worktreePath, {
|
|
10360
10360
|
deleteBranch: deleteBranch ? thread.branchName : void 0
|
|
@@ -10492,7 +10492,7 @@ async function startOrchestration(opts) {
|
|
|
10492
10492
|
sourceRef: "default",
|
|
10493
10493
|
...createOpts
|
|
10494
10494
|
}).catch(async () => {
|
|
10495
|
-
const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-
|
|
10495
|
+
const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-ROJXGBWS.js");
|
|
10496
10496
|
const repo = await resolveRepoRoot2(repoPath);
|
|
10497
10497
|
const def = await resolveDefaultBranch2(repo);
|
|
10498
10498
|
return orch.createThread({
|
|
@@ -10502,7 +10502,7 @@ async function startOrchestration(opts) {
|
|
|
10502
10502
|
repoPath: repo
|
|
10503
10503
|
});
|
|
10504
10504
|
});
|
|
10505
|
-
const { updateThread: upd } = await import("./thread-store-
|
|
10505
|
+
const { updateThread: upd } = await import("./thread-store-MEUWZDVV.js");
|
|
10506
10506
|
const updated = upd(thread.id, {
|
|
10507
10507
|
sourceType: "orchestration",
|
|
10508
10508
|
sourceRef: goal
|
|
@@ -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";
|