@mrrlin-dev/mcp 0.4.234 → 0.4.235
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 +9 -7
- package/package.json +1 -1
package/dist/bin.cjs
CHANGED
|
@@ -106502,7 +106502,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
|
|
|
106502
106502
|
}
|
|
106503
106503
|
|
|
106504
106504
|
// src/_generated/version.ts
|
|
106505
|
-
var PKG_VERSION = "0.4.
|
|
106505
|
+
var PKG_VERSION = "0.4.235";
|
|
106506
106506
|
|
|
106507
106507
|
// src/bridge-allowed-origins.ts
|
|
106508
106508
|
var DEFAULT_DIRECTOR_BRIDGE_ALLOWED_ORIGINS = [
|
|
@@ -115893,7 +115893,7 @@ async function driveAsyncJob(deps, projectSlug, jobId, shutdown) {
|
|
|
115893
115893
|
if (shutdown?.aborted) return;
|
|
115894
115894
|
const preClaimJob = await deps.client.getAsyncJob(projectSlug, jobId);
|
|
115895
115895
|
if (shutdown?.aborted || !preClaimJob) return;
|
|
115896
|
-
const secureReport = preClaimJob.toolName === "report-evidence" && deps.reportWorkerClient !== void 0;
|
|
115896
|
+
const secureReport = preClaimJob.toolName === "report-evidence" && deps.reportWorkerClient?.(projectSlug)?.reportWorkerAction !== void 0;
|
|
115897
115897
|
const drive = driveClaimableAsyncJob(deps, projectSlug, jobId, preClaimJob, secureReport, shutdown);
|
|
115898
115898
|
if (secureReport) deps.onReportDrive?.(drive);
|
|
115899
115899
|
await drive;
|
|
@@ -116389,13 +116389,15 @@ async function runAsyncBackstopSweep(deps, drive = (slug, jobId) => driveAsyncJo
|
|
|
116389
116389
|
} catch {
|
|
116390
116390
|
running = [];
|
|
116391
116391
|
}
|
|
116392
|
+
const reportWorker = deps.reportWorkerClient?.(slug);
|
|
116392
116393
|
for (const job of running) {
|
|
116393
116394
|
if (shutdown?.aborted) return;
|
|
116394
|
-
if (
|
|
116395
|
-
|
|
116395
|
+
if (reportWorker?.reportWorkerAction && job.toolName === "report-evidence") {
|
|
116396
|
+
const reaped = job.leaseId ? await reportWorker.reportWorkerAction(slug, job.id, {
|
|
116396
116397
|
action: "reap",
|
|
116397
116398
|
leaseId: job.leaseId
|
|
116398
|
-
}, shutdown ? AbortSignal.any([shutdown, AbortSignal.timeout(3e3)]) : AbortSignal.timeout(3e3)).catch(() => null);
|
|
116399
|
+
}, shutdown ? AbortSignal.any([shutdown, AbortSignal.timeout(3e3)]) : AbortSignal.timeout(3e3)).catch(() => null) : null;
|
|
116400
|
+
if (!reaped && !shutdown?.aborted) await deps.client.requeueAsyncJob(slug, job.id, deps.staleSeconds).catch(() => null);
|
|
116399
116401
|
continue;
|
|
116400
116402
|
}
|
|
116401
116403
|
await deps.client.requeueAsyncJob(slug, job.id, deps.staleSeconds).catch(() => null);
|
|
@@ -127080,12 +127082,12 @@ async function startBridge(startupDeps, agentSecret, startupRollback) {
|
|
|
127080
127082
|
});
|
|
127081
127083
|
const reportWorkerProject = process.env.MRRLIN_F54_REPORT_WORKER_PROJECT?.trim();
|
|
127082
127084
|
const reportWorkerSecret = process.env.MRRLIN_F54_REPORT_WORKER_SECRET?.trim();
|
|
127083
|
-
const
|
|
127084
|
-
const reportWorkerProvider = reportDelivery && reportWorkerProject && reportWorkerSecret ? createAgentTokenProvider({ secret: reportWorkerSecret, baseUrl: apiBaseUrl }) : void 0;
|
|
127085
|
+
const reportWorkerProvider = killSwitchOn(process.env.MRRLIN_F54_REPORT_DELIVERY) && reportWorkerProject && reportWorkerSecret ? createAgentTokenProvider({ secret: reportWorkerSecret, baseUrl: apiBaseUrl }) : void 0;
|
|
127085
127086
|
const reportWorkerClient = reportWorkerProvider && createMrrlinClient({
|
|
127086
127087
|
baseUrl: apiBaseUrl,
|
|
127087
127088
|
headers: async () => ({ authorization: `Bearer ${await reportWorkerProvider.getToken(reportWorkerProject)}` })
|
|
127088
127089
|
});
|
|
127090
|
+
const reportDelivery = reportWorkerClient !== void 0;
|
|
127089
127091
|
const activeReports = /* @__PURE__ */ new Set();
|
|
127090
127092
|
const reportShutdown = reportDelivery ? new AbortController() : void 0;
|
|
127091
127093
|
const asyncConsumerDeps = {
|