@mrrlin-dev/mcp 0.4.249 → 0.4.250
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/bin.cjs +11 -3
- package/package.json +1 -1
package/dist/bin.cjs
CHANGED
|
@@ -106855,7 +106855,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
|
|
|
106855
106855
|
}
|
|
106856
106856
|
|
|
106857
106857
|
// src/_generated/version.ts
|
|
106858
|
-
var PKG_VERSION = "0.4.
|
|
106858
|
+
var PKG_VERSION = "0.4.250";
|
|
106859
106859
|
|
|
106860
106860
|
// src/bridge-allowed-origins.ts
|
|
106861
106861
|
var DEFAULT_DIRECTOR_BRIDGE_ALLOWED_ORIGINS = [
|
|
@@ -113310,6 +113310,14 @@ async function unlockColdWorkWorktreeWithGit(worktreePath, signal) {
|
|
|
113310
113310
|
await gitOutput(worktreePath, ["worktree", "unlock", worktreePath], signal);
|
|
113311
113311
|
}
|
|
113312
113312
|
var COLD_WORK_RECONCILED_STATUSES = /* @__PURE__ */ new Set(["done", "failed", "cancelled", "pull_request", "dev_deploy", "prod_deploy", "handoff_queued"]);
|
|
113313
|
+
function resolveF74ColdWork(supervised, env = process.env) {
|
|
113314
|
+
const raw = (env.MRRLIN_F74_COLD_WORK_ENABLED ?? "").trim().toLowerCase();
|
|
113315
|
+
if (raw === "0" || raw === "false") return false;
|
|
113316
|
+
return raw === "1" || raw === "true" || supervised;
|
|
113317
|
+
}
|
|
113318
|
+
function f74ColdWorkPossibleOnHost(env = process.env, drainServiceInstalled = () => readDrainServiceEndpoint() !== null) {
|
|
113319
|
+
return resolveF74ColdWork(drainServiceInstalled(), env);
|
|
113320
|
+
}
|
|
113313
113321
|
function defaultDrainSupervisor() {
|
|
113314
113322
|
const endpoint = readDrainServiceEndpoint();
|
|
113315
113323
|
if (!endpoint) return null;
|
|
@@ -113715,7 +113723,7 @@ async function driveClaimedRun(deps, projectSlug, runId, claimed, leaseId) {
|
|
|
113715
113723
|
const legacy = explicitLegacyTurnTimeoutMs();
|
|
113716
113724
|
return legacy != null ? Math.min(legacy, remaining) : remaining;
|
|
113717
113725
|
};
|
|
113718
|
-
const f74ColdWorkEnabled =
|
|
113726
|
+
const f74ColdWorkEnabled = resolveF74ColdWork(deps.attemptSupervision !== void 0);
|
|
113719
113727
|
const f67BackgroundGateEnabled = process.env.MRRLIN_F67_BACKGROUND_GATE_ENABLED === "1";
|
|
113720
113728
|
const task = await deps.client.getTask(projectSlug, claimed.taskId);
|
|
113721
113729
|
deps.activeLease?.progress();
|
|
@@ -125793,7 +125801,7 @@ function reportAutopilotLimitPause2(client, reason, resetAt) {
|
|
|
125793
125801
|
});
|
|
125794
125802
|
}
|
|
125795
125803
|
async function runOrphanWorktreeSweep(client, opts) {
|
|
125796
|
-
if (
|
|
125804
|
+
if (f74ColdWorkPossibleOnHost()) return;
|
|
125797
125805
|
const cutoff = Date.now() - worktreeRetentionMs();
|
|
125798
125806
|
const isReapable = (worktreePath) => {
|
|
125799
125807
|
try {
|