@pushpalsdev/cli 1.0.15 → 1.0.16
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/pushpals-cli.js +17 -3
- package/package.json +1 -1
package/dist/pushpals-cli.js
CHANGED
|
@@ -1848,12 +1848,14 @@ async function ensureRuntimeBinaries(runtimeRoot, runtimeTag) {
|
|
|
1848
1848
|
server: join2(binDir, runtimeBinaryFilename("server", platformKey)),
|
|
1849
1849
|
localbuddy: join2(binDir, runtimeBinaryFilename("localbuddy", platformKey)),
|
|
1850
1850
|
remotebuddy: join2(binDir, runtimeBinaryFilename("remotebuddy", platformKey)),
|
|
1851
|
+
workerpals: join2(binDir, runtimeBinaryFilename("workerpals", platformKey)),
|
|
1851
1852
|
sourceControlManager: join2(binDir, runtimeBinaryFilename("source_control_manager", platformKey))
|
|
1852
1853
|
};
|
|
1853
1854
|
const requiredAssets = [
|
|
1854
1855
|
runtimeBinaries.server,
|
|
1855
1856
|
runtimeBinaries.localbuddy,
|
|
1856
1857
|
runtimeBinaries.remotebuddy,
|
|
1858
|
+
runtimeBinaries.workerpals,
|
|
1857
1859
|
runtimeBinaries.sourceControlManager
|
|
1858
1860
|
];
|
|
1859
1861
|
let downloadedCount = 0;
|
|
@@ -2284,6 +2286,7 @@ async function autoStartRuntimeServices(opts) {
|
|
|
2284
2286
|
useRuntimeConfig: opts.preparedRuntime.preflightUsesEmbeddedRuntime,
|
|
2285
2287
|
sessionId: opts.sessionId
|
|
2286
2288
|
});
|
|
2289
|
+
runtimeEnv.PUSHPALS_WORKERPALS_BIN = runtimeBinaries.workerpals;
|
|
2287
2290
|
if (runtimeEnv.PUSHPALS_GIT_BIN) {
|
|
2288
2291
|
applyResolvedGitBinaryToRuntimeEnv(runtimeEnv, runtimeEnv.PUSHPALS_GIT_BIN);
|
|
2289
2292
|
}
|
|
@@ -2461,7 +2464,10 @@ ${tail}` : ""}`);
|
|
|
2461
2464
|
}
|
|
2462
2465
|
console.log("[pushpals] Embedded runtime is ready.");
|
|
2463
2466
|
appendRuntimeServicesLogLine(runtimeServicesLogPath, "[pushpals] embedded runtime is ready.");
|
|
2464
|
-
return
|
|
2467
|
+
return {
|
|
2468
|
+
services,
|
|
2469
|
+
pushpalsLogPath: runtimeServicesLogPath
|
|
2470
|
+
};
|
|
2465
2471
|
}
|
|
2466
2472
|
await Bun.sleep(DEFAULT_RUNTIME_BOOT_POLL_MS);
|
|
2467
2473
|
}
|
|
@@ -2492,6 +2498,7 @@ function readCliState(pathValue) {
|
|
|
2492
2498
|
localAgentUrl: typeof parsed.localAgentUrl === "string" ? parsed.localAgentUrl : undefined,
|
|
2493
2499
|
sessionId: typeof parsed.sessionId === "string" ? parsed.sessionId : undefined,
|
|
2494
2500
|
repoRoot: typeof parsed.repoRoot === "string" ? parsed.repoRoot : undefined,
|
|
2501
|
+
pushpalsLogPath: typeof parsed.pushpalsLogPath === "string" ? parsed.pushpalsLogPath : undefined,
|
|
2495
2502
|
updatedAt: typeof parsed.updatedAt === "string" ? parsed.updatedAt : undefined
|
|
2496
2503
|
};
|
|
2497
2504
|
} catch {
|
|
@@ -3042,6 +3049,7 @@ async function main() {
|
|
|
3042
3049
|
repoRoot
|
|
3043
3050
|
};
|
|
3044
3051
|
let autoStartedServices = [];
|
|
3052
|
+
let pushpalsLogPath;
|
|
3045
3053
|
const stopAutoStartedServices = () => {
|
|
3046
3054
|
if (autoStartedServices.length === 0)
|
|
3047
3055
|
return;
|
|
@@ -3057,7 +3065,7 @@ async function main() {
|
|
|
3057
3065
|
if (!serverHealthy) {
|
|
3058
3066
|
if (!parsed.noAutoStart) {
|
|
3059
3067
|
try {
|
|
3060
|
-
|
|
3068
|
+
const startedRuntime = await autoStartRuntimeServices({
|
|
3061
3069
|
repoRoot,
|
|
3062
3070
|
serverUrl,
|
|
3063
3071
|
localAgentUrl,
|
|
@@ -3068,6 +3076,8 @@ async function main() {
|
|
|
3068
3076
|
requestedRuntimeTag: parsed.runtimeTag,
|
|
3069
3077
|
startLocalBuddy: resolveCliLocalBuddyAutostart(parsed.runtimeOnly, Boolean(config.localbuddy.enabled))
|
|
3070
3078
|
});
|
|
3079
|
+
autoStartedServices = startedRuntime.services;
|
|
3080
|
+
pushpalsLogPath = startedRuntime.pushpalsLogPath;
|
|
3071
3081
|
serverHealthy = await probeServer(serverUrl);
|
|
3072
3082
|
} catch (err) {
|
|
3073
3083
|
console.error(`[pushpals] Auto-start failed: ${String(err)}`);
|
|
@@ -3121,6 +3131,7 @@ async function main() {
|
|
|
3121
3131
|
}
|
|
3122
3132
|
const statePath = resolveCliStatePath(repoRoot);
|
|
3123
3133
|
const saved = statePath ? readCliState(statePath) : {};
|
|
3134
|
+
pushpalsLogPath = pushpalsLogPath || (typeof saved.pushpalsLogPath === "string" ? saved.pushpalsLogPath : undefined);
|
|
3124
3135
|
const preferredHubUrl = normalizeUrl(parsed.monitoringHubUrl ?? process.env.PUSHPALS_MONITOR_URL ?? saved.monitoringHubUrl ?? "");
|
|
3125
3136
|
const monitorPort = parsePositiveInt(process.env.PUSHPALS_CLIENT_PORT, DEFAULT_MONITOR_PORT);
|
|
3126
3137
|
const monitoringHub = await resolveMonitoringHub({
|
|
@@ -3136,7 +3147,8 @@ async function main() {
|
|
|
3136
3147
|
serverUrl,
|
|
3137
3148
|
localAgentUrl,
|
|
3138
3149
|
sessionId: activeSessionId,
|
|
3139
|
-
repoRoot
|
|
3150
|
+
repoRoot,
|
|
3151
|
+
pushpalsLogPath
|
|
3140
3152
|
});
|
|
3141
3153
|
} else {
|
|
3142
3154
|
console.warn("[pushpals] Could not resolve git metadata dir; skipping CLI state persistence.");
|
|
@@ -3153,6 +3165,7 @@ async function main() {
|
|
|
3153
3165
|
console.log(`[pushpals] serverUrl=${serverUrl}`);
|
|
3154
3166
|
console.log(`[pushpals] sessionId=${activeSessionId}`);
|
|
3155
3167
|
console.log(`[pushpals] repoRoot=${repoRoot}`);
|
|
3168
|
+
console.log(`[pushpals] pushpalsLog=${pushpalsLogPath ?? "unavailable"}`);
|
|
3156
3169
|
console.log(`[pushpals] cliStateFile=${statePath ?? "unavailable"}`);
|
|
3157
3170
|
if (parsed.runtimeOnly) {
|
|
3158
3171
|
console.log("[pushpals] runtimeOnly=true");
|
|
@@ -3253,6 +3266,7 @@ ${line}
|
|
|
3253
3266
|
console.log(`[pushpals] serverUrl=${serverUrl}`);
|
|
3254
3267
|
console.log(`[pushpals] sessionId=${activeSessionId}`);
|
|
3255
3268
|
console.log(`[pushpals] repoRoot=${repoRoot}`);
|
|
3269
|
+
console.log(`[pushpals] pushpalsLog=${pushpalsLogPath ?? "unavailable"}`);
|
|
3256
3270
|
console.log(monitoringHubUrl ? `[pushpals] monitoringHubUrl=${monitoringHubUrl}` : "[pushpals] monitoringHubUrl=unavailable");
|
|
3257
3271
|
rl.prompt();
|
|
3258
3272
|
continue;
|