bitpull 0.1.12 → 0.1.13
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/bitpull.cjs +6 -5
- package/package.json +1 -1
package/bitpull.cjs
CHANGED
|
@@ -18564,7 +18564,8 @@ async function ensureImage(sb, image, timeoutMs = 6e5) {
|
|
|
18564
18564
|
}
|
|
18565
18565
|
var cached2 = null;
|
|
18566
18566
|
async function selectSandbox(preference = "auto", probe = probeSandbox) {
|
|
18567
|
-
|
|
18567
|
+
const ttl = cached2?.sandbox ? 864e5 : 5 * 6e4;
|
|
18568
|
+
if (cached2 && cached2.preference === preference && Date.now() - cached2.at < ttl) return cached2;
|
|
18568
18569
|
const candidates = (await availableRuntimes()).filter((r) => preference === "auto" || r.runtime === preference);
|
|
18569
18570
|
const tried = [];
|
|
18570
18571
|
let chosen = null;
|
|
@@ -19254,7 +19255,7 @@ async function doctor(cfg) {
|
|
|
19254
19255
|
}
|
|
19255
19256
|
|
|
19256
19257
|
// apps/agent/src/control.ts
|
|
19257
|
-
var APP_VERSION = true ? "0.1.
|
|
19258
|
+
var APP_VERSION = true ? "0.1.13" : "dev";
|
|
19258
19259
|
var UPDATE_MANIFEST = "https://github.com/SamuealPK/bitpull-releases/releases/latest/download/latest.json";
|
|
19259
19260
|
var inDesktopApp = () => /bitpull-agent(\.exe)?$/i.test(process.execPath);
|
|
19260
19261
|
function newerVersion(a, b) {
|
|
@@ -30584,7 +30585,7 @@ async function startNode(ctx, home, opts = {}) {
|
|
|
30584
30585
|
busy = false;
|
|
30585
30586
|
}
|
|
30586
30587
|
};
|
|
30587
|
-
|
|
30588
|
+
void tick();
|
|
30588
30589
|
const timer = setInterval(tick, opts.heartbeatMs ?? 3e4);
|
|
30589
30590
|
const worker = startWorker(ctx, { pollMs: opts.workerPollMs, sandbox });
|
|
30590
30591
|
status.worker = worker.status;
|
|
@@ -30674,7 +30675,7 @@ function openBrowser(url) {
|
|
|
30674
30675
|
const args = (0, import_node_os10.platform)() === "win32" ? ["/c", "start", "", url] : [url];
|
|
30675
30676
|
(0, import_node_child_process7.spawn)(cmd, args, { stdio: "ignore", detached: true }).unref();
|
|
30676
30677
|
}
|
|
30677
|
-
var agentVersion = () => true ? "0.1.
|
|
30678
|
+
var agentVersion = () => true ? "0.1.13" : "dev";
|
|
30678
30679
|
var dashboardUrl = (cfg) => `http://127.0.0.1:${cfg.controlPort}/#token=${cfg.controlToken}`;
|
|
30679
30680
|
var AppNotRunning = class extends Error {
|
|
30680
30681
|
};
|
|
@@ -31005,7 +31006,7 @@ ${DRAFT_INSTRUCTIONS.replace(/call publish_repo.*/, 'run "bitpull publish <folde
|
|
|
31005
31006
|
const control2 = await startControlServer(ctx, node);
|
|
31006
31007
|
await (0, import_promises21.writeFile)((0, import_node_path18.join)(bitpullHome(), "agent.json"), JSON.stringify({ pid: process.pid, version: agentVersion() }));
|
|
31007
31008
|
console.log(`BitPull is running. Dashboard: ${dashboardUrl(cfg)}`);
|
|
31008
|
-
console.log(
|
|
31009
|
+
console.log('Connecting to the network in the background (see the dashboard or "bitpull status").');
|
|
31009
31010
|
const stop = async () => {
|
|
31010
31011
|
control2.close();
|
|
31011
31012
|
await node.stop();
|
package/package.json
CHANGED