@staff0rd/assist 0.1148.0 → 0.1148.1
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/.build-files +629 -0
- package/dist/{addActivity-H6SNTW5N.js → addActivity-IUDDS4FX.js} +2 -2
- package/dist/{addPhase-CIT2FFSN.js → addPhase-565F7KOZ.js} +3 -3
- package/dist/{advise-2IMV4YHR.js → advise-TF3W2HBA.js} +3 -3
- package/dist/{askCheck-UC5GHJBY.js → askCheck-ZIF7BWBQ.js} +7 -7
- package/dist/{askDesign-VQVBTNN4.js → askDesign-RYBRLSD3.js} +1 -1
- package/dist/{branch-32ISVA77.js → branch-R5SCN2UJ.js} +3 -3
- package/dist/built-version +1 -1
- package/dist/{chunk-LXLUX26W.js → chunk-2NLD36CE.js} +1 -1
- package/dist/{chunk-WB3WNIWJ.js → chunk-2WB3DUS2.js} +1 -1
- package/dist/{chunk-R2NVIJQD.js → chunk-3PI7FMYV.js} +1 -1
- package/dist/chunk-4CP23TT2.js +61 -0
- package/dist/{chunk-DKOQPHKM.js → chunk-6CK47ZGM.js} +1 -1
- package/dist/{chunk-5Z3RALZM.js → chunk-ARU5TAGC.js} +1 -1
- package/dist/{chunk-G5H3FHAI.js → chunk-AWRPXWP2.js} +1 -1
- package/dist/{chunk-NAER6Z6J.js → chunk-BMW3E2QR.js} +1 -1
- package/dist/{chunk-NHK4QFIM.js → chunk-EBVNAMYS.js} +2 -2
- package/dist/{chunk-Y3OIYPX3.js → chunk-F5BFL4JK.js} +2 -2
- package/dist/{chunk-F4XZWNHH.js → chunk-GSXHABVW.js} +1 -1
- package/dist/{chunk-WNSFDD76.js → chunk-HICUMDUD.js} +1 -1
- package/dist/{chunk-HSCTITMK.js → chunk-KN5ZETAR.js} +1 -1
- package/dist/{chunk-M7NOC543.js → chunk-KTCQFSW3.js} +1 -1
- package/dist/{chunk-BEPH5SX4.js → chunk-L4NOD7SX.js} +1 -1
- package/dist/{chunk-EQBKGOXY.js → chunk-LKVISYMA.js} +2 -2
- package/dist/{chunk-7M6EITZP.js → chunk-M2PMZTIF.js} +1 -1
- package/dist/{chunk-V6AV2NPV.js → chunk-M3WZ4V3G.js} +1 -1
- package/dist/{chunk-HQYE6PIL.js → chunk-NJS76Y65.js} +1 -1
- package/dist/{chunk-HXNIHNEO.js → chunk-NTH3COMZ.js} +1 -1
- package/dist/{chunk-AAMQLWMH.js → chunk-ODWX74PC.js} +4 -4
- package/dist/{chunk-OGKKTIBK.js → chunk-OGKBGLQS.js} +5 -1
- package/dist/{chunk-VU4XIAA4.js → chunk-OVV4XBBX.js} +1 -1
- package/dist/{chunk-FILYK4D5.js → chunk-QAH6X3NA.js} +1 -1
- package/dist/{chunk-SH3A7BZT.js → chunk-QRXRXE7D.js} +1 -1
- package/dist/{chunk-2I35MMXS.js → chunk-TRPX44JR.js} +1 -1
- package/dist/{chunk-YPQ6OZFB.js → chunk-U4DNTL25.js} +5 -0
- package/dist/{chunk-EBKKNZTY.js → chunk-VE26B5QP.js} +1 -1
- package/dist/{chunk-7XNULNFZ.js → chunk-W2HN7MC2.js} +2 -2
- package/dist/{chunk-K7ED4LQL.js → chunk-WATVHSJF.js} +24 -15
- package/dist/{chunk-JOFNCYQU.js → chunk-XAKBHIPL.js} +6 -6
- package/dist/{chunk-BWQZSKMT.js → chunk-Y3DL3RF7.js} +3 -3
- package/dist/{chunk-PIJVMO5X.js → chunk-Y4MBH7VW.js} +1 -1
- package/dist/{chunk-JXRUL6TZ.js → chunk-YHJTRCUF.js} +1 -1
- package/dist/{chunk-HL523NHR.js → chunk-ZFSD6ZJP.js} +1 -1
- package/dist/{chunk-JNJ4LTTR.js → chunk-ZSAYC4ER.js} +1 -1
- package/dist/{cliHook-YRRDRK66.js → cliHook-VGJRLSI2.js} +5 -5
- package/dist/{cliHookCheck-6FYD22EC.js → cliHookCheck-2I6MLAW2.js} +2 -2
- package/dist/{codexHook-3M6VDVOM.js → codexHook-NKKE3F2L.js} +7 -7
- package/dist/commands/sessions/web/bundle.js +392 -392
- package/dist/{commit-7G7CCHQR.js → commit-QCHFHGCO.js} +3 -3
- package/dist/{doctorNodes-QW5TY3EA.js → doctorNodes-MTV5KCNV.js} +3 -3
- package/dist/{done-ED36RL42.js → done-JWJURR7T.js} +4 -4
- package/dist/{editHook-XN7SV6JA.js → editHook-FC53RLQC.js} +5 -5
- package/dist/{fixConflict-CJTP6FLK.js → fixConflict-EYLGDMB7.js} +2 -2
- package/dist/index.js +49 -49
- package/dist/{launchMode-NNZNM7MM.js → launchMode-VOBL4DYU.js} +13 -13
- package/dist/{list-ZV6VXLCB.js → list-DZI4AJDI.js} +5 -5
- package/dist/{next-NKITRRUG.js → next-N4B5GJIW.js} +12 -12
- package/dist/{piHook-LILHN4YZ.js → piHook-WQCNKOET.js} +5 -5
- package/dist/{propose-GUCJ6QPT.js → propose-LYUPJI3S.js} +4 -4
- package/dist/{refine-2RJ7RUQJ.js → refine-Z35RA6V2.js} +14 -14
- package/dist/{restartDaemon-YSKQMKEQ.js → restartDaemon-7M36R7G4.js} +3 -1
- package/dist/{restartNode-D6R7WXXT.js → restartNode-54DQSXFF.js} +5 -5
- package/dist/{review-2IY2R6KX.js → review-T3R6R5LS.js} +2 -2
- package/dist/{reviewPrComments-QK2KANFR.js → reviewPrComments-G7AMAMFC.js} +2 -2
- package/dist/{rewindPhase-J7X3UCAG.js → rewindPhase-XN7YOWRA.js} +8 -8
- package/dist/{run-NH3ZM2MS.js → run-KTKO7CCD.js} +10 -10
- package/dist/{run-ZYPCBEGH.js → run-ULEKHZB2.js} +10 -10
- package/dist/{runDaemon-GAUQXUKF.js → runDaemon-5EXE7NHI.js} +25 -18
- package/dist/{runRefine-J73T25UG.js → runRefine-OV3VCQHC.js} +14 -14
- package/dist/{scan-5MKKVK4H.js → scan-WYS544B7.js} +2 -2
- package/dist/{schemaConfirm-GCR4IGS7.js → schemaConfirm-SLHW4EIV.js} +2 -2
- package/dist/{schemaUnlock-2QGIAWOU.js → schemaUnlock-365ORD3L.js} +2 -2
- package/dist/{search-ZVA7OUWZ.js → search-TJSKMOO4.js} +5 -5
- package/dist/{show-GU7NJSYD.js → show-53I2FMRF.js} +3 -3
- package/dist/{show-WYXHWDI5.js → show-ZXFLSRFT.js} +3 -3
- package/dist/{signExtension-WDKZ2IBH.js → signExtension-25JSZAFS.js} +1 -1
- package/dist/{update-6NKPYHDT.js → update-HSXQZ2EI.js} +4 -3
- package/dist/{updateNode-OEW2ZI7P.js → updateNode-MY6AUXFD.js} +5 -5
- package/dist/{updatePlan-PZ77ZZRW.js → updatePlan-WXNHCHKB.js} +4 -4
- package/dist/{web-2DVAPAF3.js → web-DS57JQKY.js} +19 -18
- package/dist/{web-PGSNL7AQ.js → web-YMSBQYKR.js} +19 -18
- package/package.json +1 -1
- package/dist/{permitCliReads-RSRMZMGS.js → permitCliReads-6FVIMWRO.js} +4 -4
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
createBranch,
|
|
3
3
|
generateBranchSlug,
|
|
4
4
|
isConciseSlug
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-M2PMZTIF.js";
|
|
6
|
+
import "./chunk-Y4MBH7VW.js";
|
|
7
7
|
import "./chunk-OZNYQOQK.js";
|
|
8
8
|
import "./chunk-ORSRBZ2X.js";
|
|
9
9
|
import "./chunk-PCF66ALO.js";
|
|
@@ -18,7 +18,7 @@ import "./chunk-LMUTL44M.js";
|
|
|
18
18
|
import "./chunk-6NDXAN45.js";
|
|
19
19
|
import "./chunk-MELBVXKL.js";
|
|
20
20
|
import "./chunk-OGJ6AZK4.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-OGKBGLQS.js";
|
|
22
22
|
import "./chunk-MRUIXQXS.js";
|
|
23
23
|
import "./chunk-HO7RNI6V.js";
|
|
24
24
|
import "./chunk-DIAC4XYA.js";
|
package/dist/built-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1148.
|
|
1
|
+
0.1148.1
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getInstallDir
|
|
3
|
+
} from "./chunk-SW7FSLHP.js";
|
|
4
|
+
|
|
5
|
+
// src/build/isBuildInFlight.ts
|
|
6
|
+
import { readFileSync } from "fs";
|
|
7
|
+
|
|
8
|
+
// src/build/buildLockPath.ts
|
|
9
|
+
import { join } from "path";
|
|
10
|
+
function buildLockPath(installDir) {
|
|
11
|
+
return join(installDir, "dist.building");
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// src/build/isBuildInFlight.ts
|
|
15
|
+
function isAlive(pid) {
|
|
16
|
+
try {
|
|
17
|
+
process.kill(pid, 0);
|
|
18
|
+
return true;
|
|
19
|
+
} catch (error) {
|
|
20
|
+
return error.code === "EPERM";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function isBuildInFlight(installDir) {
|
|
24
|
+
let pid;
|
|
25
|
+
try {
|
|
26
|
+
pid = Number(readFileSync(buildLockPath(installDir), "utf8").trim());
|
|
27
|
+
} catch {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
return Number.isInteger(pid) && pid > 0 && isAlive(pid);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// src/build/waitForBuild.ts
|
|
34
|
+
var TIMEOUT_MS = 18e4;
|
|
35
|
+
var POLL_MS = 250;
|
|
36
|
+
function delay(ms) {
|
|
37
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
38
|
+
}
|
|
39
|
+
async function waitForBuild(deps = {}) {
|
|
40
|
+
const {
|
|
41
|
+
installDir = getInstallDir(),
|
|
42
|
+
timeoutMs = TIMEOUT_MS,
|
|
43
|
+
pollMs = POLL_MS,
|
|
44
|
+
log = console.log
|
|
45
|
+
} = deps;
|
|
46
|
+
if (!isBuildInFlight(installDir)) return;
|
|
47
|
+
log(`waiting for the in-flight build in ${installDir} to finish`);
|
|
48
|
+
const deadline = Date.now() + timeoutMs;
|
|
49
|
+
while (Date.now() < deadline) {
|
|
50
|
+
await delay(pollMs);
|
|
51
|
+
if (!isBuildInFlight(installDir)) {
|
|
52
|
+
log("build finished; continuing");
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
log(`build still running after ${timeoutMs / 1e3}s; continuing anyway`);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
waitForBuild
|
|
61
|
+
};
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
isApprovedRead,
|
|
14
14
|
resolvePermission,
|
|
15
15
|
splitCompound
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AWRPXWP2.js";
|
|
17
17
|
import {
|
|
18
18
|
DOCS_LOCK_REASON,
|
|
19
19
|
SCHEMA_LOCK_REASON,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
isSchemaPath,
|
|
24
24
|
isSchemaRelativePath,
|
|
25
25
|
mentionsDocsPath
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-KN5ZETAR.js";
|
|
27
27
|
import {
|
|
28
28
|
isLiveDaemonSession
|
|
29
29
|
} from "./chunk-ZO7NYS25.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveReviewPhase
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QRXRXE7D.js";
|
|
4
4
|
import {
|
|
5
5
|
resolvePlan
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZSAYC4ER.js";
|
|
7
7
|
|
|
8
8
|
// src/commands/backlog/resolveRewindPlan.ts
|
|
9
9
|
function resolveRewindPlan(item) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
next
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Y3DL3RF7.js";
|
|
4
4
|
import {
|
|
5
5
|
pullIfConfigured
|
|
6
6
|
} from "./chunk-SB4BG7PH.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
run,
|
|
11
11
|
stopWatching,
|
|
12
12
|
watchForMarker
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XAKBHIPL.js";
|
|
14
14
|
import {
|
|
15
15
|
resumeNudge
|
|
16
16
|
} from "./chunk-LFRSZIAS.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-NWNODYLQ.js";
|
|
30
30
|
import {
|
|
31
31
|
isBlocked
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-OVV4XBBX.js";
|
|
33
33
|
import {
|
|
34
34
|
loadItemSummaries
|
|
35
35
|
} from "./chunk-BV2V6RTH.js";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
} from "./chunk-N65VOEFI.js";
|
|
48
48
|
import {
|
|
49
49
|
harnessAdapter
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-OGKBGLQS.js";
|
|
51
51
|
|
|
52
52
|
// src/commands/backlog/launchMode.ts
|
|
53
53
|
import chalk3 from "chalk";
|
|
@@ -3837,7 +3837,11 @@ import { spawn as spawn4 } from "child_process";
|
|
|
3837
3837
|
|
|
3838
3838
|
// src/commands/sessions/daemon/sdk/workflowQueryEnv.ts
|
|
3839
3839
|
function workflowQueryEnv(base, sessionId, launcherEnv2) {
|
|
3840
|
-
const env =
|
|
3840
|
+
const env = {
|
|
3841
|
+
...sessionChildEnv(base, sessionId),
|
|
3842
|
+
// why: claude turns the Artifact tool off for SDK-driven runs unless this opts back in
|
|
3843
|
+
CLAUDE_CODE_ARTIFACT: base.CLAUDE_CODE_ARTIFACT ?? "1"
|
|
3844
|
+
};
|
|
3841
3845
|
if (!launcherEnv2) return env;
|
|
3842
3846
|
const { ASSIST_ACTIVITY_ID: _activityId, ...rest } = env;
|
|
3843
3847
|
return { ...rest, ...launcherEnv2 };
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
waitForBuild
|
|
3
|
+
} from "./chunk-4CP23TT2.js";
|
|
1
4
|
import {
|
|
2
5
|
stopDaemon
|
|
3
6
|
} from "./chunk-CXJJGUTK.js";
|
|
@@ -23,6 +26,7 @@ var RETRY_DELAY_MS = 200;
|
|
|
23
26
|
var STALE_LOCK_MS = SPAWN_TIMEOUT_MS + 5e3;
|
|
24
27
|
async function ensureDaemonRunning(reason = "unspecified") {
|
|
25
28
|
if (await isDaemonRunning()) return;
|
|
29
|
+
await waitForBuild();
|
|
26
30
|
mkdirSync(daemonPaths.dir, { recursive: true });
|
|
27
31
|
const holdsLock = acquireSpawnLock();
|
|
28
32
|
if (holdsLock) spawnDaemon(reason);
|
|
@@ -90,6 +94,7 @@ function delay(ms) {
|
|
|
90
94
|
|
|
91
95
|
// src/commands/sessions/daemon/restartDaemon.ts
|
|
92
96
|
async function restartDaemon() {
|
|
97
|
+
await waitForBuild();
|
|
93
98
|
await stopDaemon();
|
|
94
99
|
await ensureDaemonRunning("daemon restart");
|
|
95
100
|
console.log(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lookupConversation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HICUMDUD.js";
|
|
4
4
|
import {
|
|
5
5
|
harnessAdapter,
|
|
6
6
|
readTranscriptTail
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OGKBGLQS.js";
|
|
8
8
|
|
|
9
9
|
// src/commands/sessions/shared/targetConversationEvents.ts
|
|
10
10
|
async function targetConversationEvents(cwd, target) {
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveLinkTarget,
|
|
12
12
|
usageWindowKey,
|
|
13
13
|
watcherLogPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TRPX44JR.js";
|
|
15
15
|
import {
|
|
16
16
|
readLogTail
|
|
17
17
|
} from "./chunk-JNCFHWBK.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from "./chunk-ZKVDVSCE.js";
|
|
27
27
|
import {
|
|
28
28
|
firstBrokenHop
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-NJS76Y65.js";
|
|
30
30
|
import {
|
|
31
31
|
TRACE_HEADER,
|
|
32
32
|
newTraceId
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
ASSIST_VERSION,
|
|
36
36
|
PROTOCOL_VERSION
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-BMW3E2QR.js";
|
|
38
38
|
import {
|
|
39
39
|
queryNodes
|
|
40
40
|
} from "./chunk-4TIDERIW.js";
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
} from "./chunk-UJBW7FVI.js";
|
|
80
80
|
import {
|
|
81
81
|
targetConversationEvents
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-W2HN7MC2.js";
|
|
83
83
|
import {
|
|
84
84
|
configEntryLayers,
|
|
85
85
|
ghFailure,
|
|
@@ -198,10 +198,6 @@ import {
|
|
|
198
198
|
import {
|
|
199
199
|
describeConfigNode
|
|
200
200
|
} from "./chunk-XZFSW5AY.js";
|
|
201
|
-
import {
|
|
202
|
-
getInstallDir,
|
|
203
|
-
isGitRepo
|
|
204
|
-
} from "./chunk-SW7FSLHP.js";
|
|
205
201
|
import {
|
|
206
202
|
detectPlatform
|
|
207
203
|
} from "./chunk-E36L7ASL.js";
|
|
@@ -219,7 +215,7 @@ import {
|
|
|
219
215
|
} from "./chunk-PRYIRRAS.js";
|
|
220
216
|
import {
|
|
221
217
|
rewindItemToPhase
|
|
222
|
-
} from "./chunk-
|
|
218
|
+
} from "./chunk-NTH3COMZ.js";
|
|
223
219
|
import {
|
|
224
220
|
loadBacklogSummaries,
|
|
225
221
|
searchBacklogSummaries
|
|
@@ -246,7 +242,7 @@ import {
|
|
|
246
242
|
} from "./chunk-IZBQH3LW.js";
|
|
247
243
|
import {
|
|
248
244
|
resolveRewindPlan
|
|
249
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-LKVISYMA.js";
|
|
250
246
|
import {
|
|
251
247
|
deleteItem,
|
|
252
248
|
getOrigin,
|
|
@@ -295,7 +291,7 @@ import {
|
|
|
295
291
|
discoverSessionJsonlPaths,
|
|
296
292
|
harnessAdapter,
|
|
297
293
|
parseSessionFile
|
|
298
|
-
} from "./chunk-
|
|
294
|
+
} from "./chunk-OGKBGLQS.js";
|
|
299
295
|
import {
|
|
300
296
|
harnessLabel
|
|
301
297
|
} from "./chunk-AWIOBY7Q.js";
|
|
@@ -353,7 +349,14 @@ import {
|
|
|
353
349
|
import {
|
|
354
350
|
ensureDaemonRunning,
|
|
355
351
|
restartDaemon
|
|
356
|
-
} from "./chunk-
|
|
352
|
+
} from "./chunk-U4DNTL25.js";
|
|
353
|
+
import {
|
|
354
|
+
waitForBuild
|
|
355
|
+
} from "./chunk-4CP23TT2.js";
|
|
356
|
+
import {
|
|
357
|
+
getInstallDir,
|
|
358
|
+
isGitRepo
|
|
359
|
+
} from "./chunk-SW7FSLHP.js";
|
|
357
360
|
import {
|
|
358
361
|
connectToDaemon,
|
|
359
362
|
isDaemonRunning
|
|
@@ -5716,7 +5719,12 @@ async function restartWeb(req, res, deps = {}) {
|
|
|
5716
5719
|
}
|
|
5717
5720
|
}
|
|
5718
5721
|
async function performRestart(target, deps = {}) {
|
|
5719
|
-
const {
|
|
5722
|
+
const {
|
|
5723
|
+
restartDaemonFn = restartDaemon,
|
|
5724
|
+
reExecFn = reExecWebServer,
|
|
5725
|
+
waitForBuildFn = waitForBuild
|
|
5726
|
+
} = deps;
|
|
5727
|
+
await waitForBuildFn();
|
|
5720
5728
|
if (target === "daemon" || target === "both") {
|
|
5721
5729
|
await restartDaemonFn();
|
|
5722
5730
|
}
|
|
@@ -6940,9 +6948,10 @@ import { createLogUpdate } from "log-update";
|
|
|
6940
6948
|
|
|
6941
6949
|
// src/commands/sessions/web/restartMenu/runRestartItem.ts
|
|
6942
6950
|
import chalk2 from "chalk";
|
|
6943
|
-
async function runRestartItem(item, { runRestartDaemon, reExec }) {
|
|
6951
|
+
async function runRestartItem(item, { runRestartDaemon, reExec, waitForBuildFn = waitForBuild }) {
|
|
6944
6952
|
if (item.disabled) return;
|
|
6945
6953
|
try {
|
|
6954
|
+
await waitForBuildFn();
|
|
6946
6955
|
if (item.action === "restart-daemon" || item.action === "restart-both") {
|
|
6947
6956
|
console.log(chalk2.cyan("Restarting sessions daemon\u2026"));
|
|
6948
6957
|
await runRestartDaemon();
|
|
@@ -7190,7 +7199,7 @@ function emit(line) {
|
|
|
7190
7199
|
console.log(data.line);
|
|
7191
7200
|
if (data.type === "restart-webserver") {
|
|
7192
7201
|
console.log("restart webserver requested by the daemon");
|
|
7193
|
-
reExecWebServer();
|
|
7202
|
+
void waitForBuild().then(() => reExecWebServer());
|
|
7194
7203
|
}
|
|
7195
7204
|
} catch {
|
|
7196
7205
|
}
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
isPausePending,
|
|
10
10
|
recordPhaseSession,
|
|
11
11
|
releaseLock
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6CK47ZGM.js";
|
|
13
13
|
import {
|
|
14
14
|
resumeNudge
|
|
15
15
|
} from "./chunk-LFRSZIAS.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
import {
|
|
30
30
|
createBranch,
|
|
31
31
|
generateBranchSlug
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-M2PMZTIF.js";
|
|
33
33
|
import {
|
|
34
34
|
setSessionStatus
|
|
35
35
|
} from "./chunk-UJAMN3ML.js";
|
|
@@ -42,13 +42,13 @@ import {
|
|
|
42
42
|
import {
|
|
43
43
|
buildReviewPhase,
|
|
44
44
|
resolveReviewPhase
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-QRXRXE7D.js";
|
|
46
46
|
import {
|
|
47
47
|
resolvePlan
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-ZSAYC4ER.js";
|
|
49
49
|
import {
|
|
50
50
|
buildPhasePrompt
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ZFSD6ZJP.js";
|
|
52
52
|
import {
|
|
53
53
|
findOneItem,
|
|
54
54
|
getOrigin,
|
|
@@ -72,7 +72,7 @@ import {
|
|
|
72
72
|
import {
|
|
73
73
|
harnessAdapter,
|
|
74
74
|
withoutResumeSession
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-OGKBGLQS.js";
|
|
76
76
|
import {
|
|
77
77
|
buildFeature
|
|
78
78
|
} from "./chunk-PXQTFJ2N.js";
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-SB4BG7PH.js";
|
|
4
4
|
import {
|
|
5
5
|
run
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XAKBHIPL.js";
|
|
7
7
|
import {
|
|
8
8
|
isLockedByOther
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6CK47ZGM.js";
|
|
10
10
|
import {
|
|
11
11
|
isBlocked,
|
|
12
12
|
typeLabel
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OVV4XBBX.js";
|
|
14
14
|
import {
|
|
15
15
|
loadBacklog
|
|
16
16
|
} from "./chunk-X6ETCS7E.js";
|