@pushpalsdev/cli 1.1.8 → 1.1.9
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 +35 -2
- package/monitor-ui/+not-found.html +1 -1
- package/monitor-ui/_expo/static/js/web/{entry-22a236a301d5ba71c53234f142ec71d4.js → entry-ff425ab85ad13c1920b8ee00abfae7dd.js} +1139 -1139
- package/monitor-ui/_expo/static/js/web/{index-968878738b5a9ca32445d688cec9db60.js → index-ec13ec62e2b37ed3c5f6d324ef6784e1.js} +6 -6
- package/monitor-ui/_sitemap.html +1 -1
- package/monitor-ui/index.html +1 -1
- package/monitor-ui/modal.html +1 -1
- package/package.json +1 -1
- package/runtime/sandbox/apps/workerpals/src/execute_job.ts +128 -0
package/dist/pushpals-cli.js
CHANGED
|
@@ -1644,6 +1644,7 @@ var WINDOWS_TASKKILL_TIMEOUT_MS2 = 5000;
|
|
|
1644
1644
|
var RUNTIME_BINARY_DOWNLOAD_ATTEMPTS = 3;
|
|
1645
1645
|
var DEFAULT_STARTUP_GIT_PROBE_TIMEOUT_MS = 5000;
|
|
1646
1646
|
var DEFAULT_STARTUP_GIT_REMOTE_TIMEOUT_MS = 1e4;
|
|
1647
|
+
var DEFAULT_EMBEDDED_SERVICE_LAUNCH_WARN_MS = 5000;
|
|
1647
1648
|
var EMBEDDED_SERVICE_RESTART_MAX_ATTEMPTS = 4;
|
|
1648
1649
|
var WORKERPAL_STARTUP_READINESS_PROBE_MAX_MS = 15000;
|
|
1649
1650
|
var EMBEDDED_RUNTIME_SAFETY_CAP_DISABLE_ENV = "PUSHPALS_DISABLE_EMBEDDED_SAFETY_CAPS";
|
|
@@ -1677,6 +1678,13 @@ function formatRuntimeStartupTimingSummary(input) {
|
|
|
1677
1678
|
const detail = typeof input.detail === "string" && input.detail.trim() ? ` detail=${input.detail.trim()}` : "";
|
|
1678
1679
|
return `[pushpals] startup timing summary: outcome=${input.outcome} ` + `total=${Math.max(0, Math.floor(input.totalDurationMs))}ms${detail}` + (phaseSummary ? ` ${phaseSummary}` : "");
|
|
1679
1680
|
}
|
|
1681
|
+
function formatEmbeddedServiceLaunchDelayWarning(input) {
|
|
1682
|
+
const durationMs = Math.max(0, Math.floor(Number(input.durationMs) || 0));
|
|
1683
|
+
const serviceName = String(input.serviceName || "service");
|
|
1684
|
+
const platform = String(input.platform ?? process.platform);
|
|
1685
|
+
const windowsHint = platform === "win32" ? " On Windows, first-run standalone binaries can be delayed while security software scans them." : "";
|
|
1686
|
+
return `[pushpals] Embedded ${serviceName} process launch took ${durationMs}ms; startup is continuing.` + windowsHint;
|
|
1687
|
+
}
|
|
1680
1688
|
function describeWorkerExecutionReadiness(opts) {
|
|
1681
1689
|
const onlineWorkers = Math.max(0, Math.floor(opts.onlineWorkers));
|
|
1682
1690
|
const idleWorkers = Math.max(0, Math.floor(opts.idleWorkers));
|
|
@@ -4481,10 +4489,34 @@ async function autoStartRuntimeServices(opts) {
|
|
|
4481
4489
|
};
|
|
4482
4490
|
};
|
|
4483
4491
|
const launchService = (name, command, launchOpts) => {
|
|
4484
|
-
|
|
4492
|
+
const launchStartedAt = Date.now();
|
|
4493
|
+
const service = serviceManager.startService(buildManagedServiceSpec(name, command, launchOpts));
|
|
4494
|
+
const launchDurationMs = Date.now() - launchStartedAt;
|
|
4495
|
+
if (launchDurationMs >= DEFAULT_EMBEDDED_SERVICE_LAUNCH_WARN_MS) {
|
|
4496
|
+
const warning = formatEmbeddedServiceLaunchDelayWarning({
|
|
4497
|
+
serviceName: name,
|
|
4498
|
+
durationMs: launchDurationMs,
|
|
4499
|
+
platform: process.platform
|
|
4500
|
+
});
|
|
4501
|
+
console.warn(warning);
|
|
4502
|
+
appendRuntimeServicesLogLine(runtimeServicesLogPath, warning);
|
|
4503
|
+
}
|
|
4504
|
+
return service;
|
|
4485
4505
|
};
|
|
4486
4506
|
const replaceService = (name, command, launchOpts) => {
|
|
4487
|
-
|
|
4507
|
+
const launchStartedAt = Date.now();
|
|
4508
|
+
const service = serviceManager.replaceService(buildManagedServiceSpec(name, command, launchOpts));
|
|
4509
|
+
const launchDurationMs = Date.now() - launchStartedAt;
|
|
4510
|
+
if (launchDurationMs >= DEFAULT_EMBEDDED_SERVICE_LAUNCH_WARN_MS) {
|
|
4511
|
+
const warning = formatEmbeddedServiceLaunchDelayWarning({
|
|
4512
|
+
serviceName: name,
|
|
4513
|
+
durationMs: launchDurationMs,
|
|
4514
|
+
platform: process.platform
|
|
4515
|
+
});
|
|
4516
|
+
console.warn(warning);
|
|
4517
|
+
appendRuntimeServicesLogLine(runtimeServicesLogPath, warning);
|
|
4518
|
+
}
|
|
4519
|
+
return service;
|
|
4488
4520
|
};
|
|
4489
4521
|
const sandboxPaths = buildWorkerpalSandboxPaths(runtimeRoot);
|
|
4490
4522
|
const remoteBuddyFallbackBun = process.platform === "win32" ? resolveEmbeddedBunExecutableFromEnv(runtimeEnv, process.platform, process.execPath) : "";
|
|
@@ -5905,6 +5937,7 @@ export {
|
|
|
5905
5937
|
formatTimestampedCliLine,
|
|
5906
5938
|
formatSessionEventLine,
|
|
5907
5939
|
formatRuntimeStartupTimingSummary,
|
|
5940
|
+
formatEmbeddedServiceLaunchDelayWarning,
|
|
5908
5941
|
formatEmbeddedRuntimeHealthLines2 as formatEmbeddedRuntimeHealthLines,
|
|
5909
5942
|
extractRemoteBuddySessionConsumerHealth,
|
|
5910
5943
|
extractRemoteBuddyAutonomousEngineState,
|
|
@@ -435,5 +435,5 @@ input::-webkit-search-cancel-button,input::-webkit-search-decoration,input::-web
|
|
|
435
435
|
@keyframes r-1pzkwqh{0%{transform:translateY(100%);}100%{transform:translateY(0%);}}
|
|
436
436
|
@keyframes r-imtty0{0%{opacity:0;}100%{opacity:1;}}
|
|
437
437
|
@keyframes r-q67da2{0%{transform:translateX(-100%);}100%{transform:translateX(400%);}}
|
|
438
|
-
@keyframes r-t2lo5v{0%{opacity:1;}100%{opacity:0;}}</style><script type="module">globalThis.__EXPO_ROUTER_HYDRATE__=true;</script><link rel="icon" href="/favicon.ico" /></head><body><div id="root"><div class="css-g5y9jx r-13awgt0"></div></div><script src="/_expo/static/js/web/entry-
|
|
438
|
+
@keyframes r-t2lo5v{0%{opacity:1;}100%{opacity:0;}}</style><script type="module">globalThis.__EXPO_ROUTER_HYDRATE__=true;</script><link rel="icon" href="/favicon.ico" /></head><body><div id="root"><div class="css-g5y9jx r-13awgt0"></div></div><script src="/_expo/static/js/web/entry-ff425ab85ad13c1920b8ee00abfae7dd.js" defer></script>
|
|
439
439
|
</body></html>
|