@mrrlin-dev/mcp 0.4.277 → 0.4.279
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 +183 -14
- package/package.json +1 -1
package/dist/bin.cjs
CHANGED
|
@@ -17405,6 +17405,12 @@ var init_operationIds = __esm({
|
|
|
17405
17405
|
getTask: "getTask",
|
|
17406
17406
|
archiveTask: "archiveTask",
|
|
17407
17407
|
unarchiveTask: "unarchiveTask",
|
|
17408
|
+
setTaskRecurrence: "setTaskRecurrence",
|
|
17409
|
+
getTaskRecurrence: "getTaskRecurrence",
|
|
17410
|
+
deleteTaskRecurrence: "deleteTaskRecurrence",
|
|
17411
|
+
pauseTaskRecurrence: "pauseTaskRecurrence",
|
|
17412
|
+
resumeTaskRecurrence: "resumeTaskRecurrence",
|
|
17413
|
+
listTaskRecurrences: "listTaskRecurrences",
|
|
17408
17414
|
takeOverTask: "takeOverTask",
|
|
17409
17415
|
closeTaskAsWontDo: "closeTaskAsWontDo",
|
|
17410
17416
|
getWikiPage: "getWikiPage",
|
|
@@ -18614,6 +18620,85 @@ var init_appsumo = __esm({
|
|
|
18614
18620
|
}
|
|
18615
18621
|
});
|
|
18616
18622
|
|
|
18623
|
+
// ../../packages/schemas/dist/recurrence.js
|
|
18624
|
+
function isValidTimeZone(timeZone) {
|
|
18625
|
+
if (typeof timeZone !== "string" || timeZone.length === 0) {
|
|
18626
|
+
return false;
|
|
18627
|
+
}
|
|
18628
|
+
try {
|
|
18629
|
+
new Intl.DateTimeFormat("en-US", { timeZone });
|
|
18630
|
+
return true;
|
|
18631
|
+
} catch {
|
|
18632
|
+
return false;
|
|
18633
|
+
}
|
|
18634
|
+
}
|
|
18635
|
+
var HH_MM, mrrlinRecurrenceTimeSchema, mrrlinRecurrenceScheduleSchema, mrrlinTaskRecurrenceStatusSchema, mrrlinTaskRecurrencePauseReasonSchema, mrrlinTaskRecurrenceRunOutcomeSchema, mrrlinTaskRecurrenceRunSchema, mrrlinTaskRecurrenceSchema, mrrlinSetTaskRecurrenceRequestSchema;
|
|
18636
|
+
var init_recurrence = __esm({
|
|
18637
|
+
"../../packages/schemas/dist/recurrence.js"() {
|
|
18638
|
+
"use strict";
|
|
18639
|
+
init_zod();
|
|
18640
|
+
HH_MM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
18641
|
+
mrrlinRecurrenceTimeSchema = external_exports.string().regex(HH_MM, "time must be HH:MM (24h)");
|
|
18642
|
+
mrrlinRecurrenceScheduleSchema = external_exports.discriminatedUnion("kind", [
|
|
18643
|
+
external_exports.object({
|
|
18644
|
+
kind: external_exports.literal("daily"),
|
|
18645
|
+
time: mrrlinRecurrenceTimeSchema
|
|
18646
|
+
}),
|
|
18647
|
+
external_exports.object({
|
|
18648
|
+
kind: external_exports.literal("weekly"),
|
|
18649
|
+
// ISO weekdays: 1 = Monday ... 7 = Sunday. Non-empty, unique, sorted ascending.
|
|
18650
|
+
weekdays: external_exports.array(external_exports.number().int().min(1).max(7)).min(1).refine((days) => days.every((day, index) => index === 0 || day > (days[index - 1] ?? 0)), {
|
|
18651
|
+
message: "weekdays must be unique and sorted ascending"
|
|
18652
|
+
}),
|
|
18653
|
+
time: mrrlinRecurrenceTimeSchema
|
|
18654
|
+
}),
|
|
18655
|
+
external_exports.object({
|
|
18656
|
+
kind: external_exports.literal("interval"),
|
|
18657
|
+
everyHours: external_exports.number().int().min(1).max(168)
|
|
18658
|
+
})
|
|
18659
|
+
]);
|
|
18660
|
+
mrrlinTaskRecurrenceStatusSchema = external_exports.enum(["awaiting_spec", "active", "paused"]);
|
|
18661
|
+
mrrlinTaskRecurrencePauseReasonSchema = external_exports.enum([
|
|
18662
|
+
"operator",
|
|
18663
|
+
"spec_changed",
|
|
18664
|
+
"source_archived",
|
|
18665
|
+
"fire_failed"
|
|
18666
|
+
]);
|
|
18667
|
+
mrrlinTaskRecurrenceRunOutcomeSchema = external_exports.enum([
|
|
18668
|
+
"created",
|
|
18669
|
+
"skipped_open_instance",
|
|
18670
|
+
"paused_spec_changed",
|
|
18671
|
+
"paused_source_archived"
|
|
18672
|
+
]);
|
|
18673
|
+
mrrlinTaskRecurrenceRunSchema = external_exports.object({
|
|
18674
|
+
scheduledFor: external_exports.string().datetime({ offset: true }),
|
|
18675
|
+
outcome: mrrlinTaskRecurrenceRunOutcomeSchema,
|
|
18676
|
+
instanceTaskId: external_exports.string().nullable(),
|
|
18677
|
+
createdAt: external_exports.string().datetime({ offset: true })
|
|
18678
|
+
});
|
|
18679
|
+
mrrlinTaskRecurrenceSchema = external_exports.object({
|
|
18680
|
+
id: external_exports.string().min(1),
|
|
18681
|
+
projectSlug: external_exports.string().min(1),
|
|
18682
|
+
sourceTaskId: external_exports.string().min(1),
|
|
18683
|
+
title: external_exports.string().min(1).max(200),
|
|
18684
|
+
schedule: mrrlinRecurrenceScheduleSchema,
|
|
18685
|
+
timezone: external_exports.string().min(1),
|
|
18686
|
+
nextRunAt: external_exports.string().datetime({ offset: true }).nullable(),
|
|
18687
|
+
status: mrrlinTaskRecurrenceStatusSchema,
|
|
18688
|
+
pauseReason: mrrlinTaskRecurrencePauseReasonSchema.nullable(),
|
|
18689
|
+
approvedSpecContentHash: external_exports.string().nullable(),
|
|
18690
|
+
createdAt: external_exports.string().datetime({ offset: true }),
|
|
18691
|
+
updatedAt: external_exports.string().datetime({ offset: true }),
|
|
18692
|
+
runs: external_exports.array(mrrlinTaskRecurrenceRunSchema).optional(),
|
|
18693
|
+
openInstanceTaskId: external_exports.string().nullable().optional()
|
|
18694
|
+
});
|
|
18695
|
+
mrrlinSetTaskRecurrenceRequestSchema = external_exports.object({
|
|
18696
|
+
schedule: mrrlinRecurrenceScheduleSchema,
|
|
18697
|
+
timezone: external_exports.string().min(1).refine((tz) => isValidTimeZone(tz), { message: "unknown IANA timezone" })
|
|
18698
|
+
});
|
|
18699
|
+
}
|
|
18700
|
+
});
|
|
18701
|
+
|
|
18617
18702
|
// ../../packages/schemas/dist/integration-route-defaults.js
|
|
18618
18703
|
function getDefaultCapabilityRouteForServer(serverId) {
|
|
18619
18704
|
const normalizedId = (SERVER_ALIASES[serverId.toLowerCase()] ?? serverId).toLowerCase();
|
|
@@ -20139,6 +20224,7 @@ var init_dist = __esm({
|
|
|
20139
20224
|
init_intent();
|
|
20140
20225
|
init_plans();
|
|
20141
20226
|
init_appsumo();
|
|
20227
|
+
init_recurrence();
|
|
20142
20228
|
init_integration_route_defaults();
|
|
20143
20229
|
init_settlement();
|
|
20144
20230
|
init_receipt_canonical();
|
|
@@ -20579,6 +20665,9 @@ var init_dist = __esm({
|
|
|
20579
20665
|
resolvedIntent: external_exports.string().min(1).max(4e3).nullable().optional(),
|
|
20580
20666
|
intentProvenance: mrrlinIntentProvenanceSchema.nullable().optional(),
|
|
20581
20667
|
planId: mrrlinPlanIdSchema.nullable(),
|
|
20668
|
+
// recurring-tasks (design.md D6): set on a recurrence's source task and on every instance it
|
|
20669
|
+
// created. Output-optional so existing task fixtures need no churn.
|
|
20670
|
+
recurrenceId: external_exports.string().nullable().optional(),
|
|
20582
20671
|
specApproved: mrrlinSpecApprovedSchema.optional(),
|
|
20583
20672
|
specWikiPageId: mrrlinWikiPageIdSchema.nullable(),
|
|
20584
20673
|
// Slice 3: episode bookkeeping alongside the async_jobs-derived countEpisodeAttempts --
|
|
@@ -78296,6 +78385,39 @@ function createMrrlinClient(config2) {
|
|
|
78296
78385
|
});
|
|
78297
78386
|
return taskResponseSchema.parse(body).data;
|
|
78298
78387
|
},
|
|
78388
|
+
async setTaskRecurrence(projectSlug, taskId, input) {
|
|
78389
|
+
const body = await request(`${projectPath(projectSlug)}/tasks/${encodeURIComponent(taskId)}/recurrence`, {
|
|
78390
|
+
method: "PUT",
|
|
78391
|
+
headers: { "content-type": "application/json" },
|
|
78392
|
+
body: JSON.stringify(input)
|
|
78393
|
+
});
|
|
78394
|
+
return mrrlinTaskRecurrenceSchema.parse(body.data);
|
|
78395
|
+
},
|
|
78396
|
+
async getTaskRecurrence(projectSlug, taskId) {
|
|
78397
|
+
const body = await request(`${projectPath(projectSlug)}/tasks/${encodeURIComponent(taskId)}/recurrence`);
|
|
78398
|
+
return mrrlinTaskRecurrenceSchema.parse(body.data);
|
|
78399
|
+
},
|
|
78400
|
+
async deleteTaskRecurrence(projectSlug, taskId) {
|
|
78401
|
+
await requestText(`${projectPath(projectSlug)}/tasks/${encodeURIComponent(taskId)}/recurrence`, {
|
|
78402
|
+
method: "DELETE"
|
|
78403
|
+
});
|
|
78404
|
+
},
|
|
78405
|
+
async pauseTaskRecurrence(projectSlug, taskId) {
|
|
78406
|
+
const body = await request(`${projectPath(projectSlug)}/tasks/${encodeURIComponent(taskId)}/recurrence/pause`, {
|
|
78407
|
+
method: "POST"
|
|
78408
|
+
});
|
|
78409
|
+
return mrrlinTaskRecurrenceSchema.parse(body.data);
|
|
78410
|
+
},
|
|
78411
|
+
async resumeTaskRecurrence(projectSlug, taskId) {
|
|
78412
|
+
const body = await request(`${projectPath(projectSlug)}/tasks/${encodeURIComponent(taskId)}/recurrence/resume`, {
|
|
78413
|
+
method: "POST"
|
|
78414
|
+
});
|
|
78415
|
+
return mrrlinTaskRecurrenceSchema.parse(body.data);
|
|
78416
|
+
},
|
|
78417
|
+
async listTaskRecurrences(projectSlug) {
|
|
78418
|
+
const body = await request(`${projectPath(projectSlug)}/recurrences`);
|
|
78419
|
+
return mrrlinTaskRecurrenceSchema.array().parse(body.data);
|
|
78420
|
+
},
|
|
78299
78421
|
async takeOverTask(projectSlug, taskId, assignee) {
|
|
78300
78422
|
const body = await request(`${projectPath(projectSlug)}/tasks/${encodeURIComponent(taskId)}/take-over`, {
|
|
78301
78423
|
method: "POST",
|
|
@@ -107633,7 +107755,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
|
|
|
107633
107755
|
}
|
|
107634
107756
|
|
|
107635
107757
|
// src/_generated/version.ts
|
|
107636
|
-
var PKG_VERSION = "0.4.
|
|
107758
|
+
var PKG_VERSION = "0.4.279";
|
|
107637
107759
|
|
|
107638
107760
|
// src/bridge-allowed-origins.ts
|
|
107639
107761
|
var DEFAULT_DIRECTOR_BRIDGE_ALLOWED_ORIGINS = [
|
|
@@ -126268,6 +126390,26 @@ async function runExternalAgentsPruneAtStartup(deps) {
|
|
|
126268
126390
|
}
|
|
126269
126391
|
}
|
|
126270
126392
|
|
|
126393
|
+
// src/self-update-notice.ts
|
|
126394
|
+
var PREFIX2 = "II-MCPUPD-";
|
|
126395
|
+
function parseVersion(text2) {
|
|
126396
|
+
const match2 = /^(\d+)\.(\d+)\.(\d+)/.exec(text2);
|
|
126397
|
+
return match2 ? [Number(match2[1]), Number(match2[2]), Number(match2[3])] : null;
|
|
126398
|
+
}
|
|
126399
|
+
function atOrBelow([aMajor, aMinor, aPatch], [bMajor, bMinor, bPatch]) {
|
|
126400
|
+
if (aMajor !== bMajor) return aMajor < bMajor;
|
|
126401
|
+
if (aMinor !== bMinor) return aMinor < bMinor;
|
|
126402
|
+
return aPatch <= bPatch;
|
|
126403
|
+
}
|
|
126404
|
+
function staleUpdateNoticeIds(items, runningVersion) {
|
|
126405
|
+
const running = parseVersion(runningVersion);
|
|
126406
|
+
if (!running) return [];
|
|
126407
|
+
return items.filter((item) => item.status === "pending" && item.id.startsWith(PREFIX2)).filter((item) => {
|
|
126408
|
+
const offered = parseVersion(item.id.slice(PREFIX2.length));
|
|
126409
|
+
return offered !== null && atOrBelow(offered, running);
|
|
126410
|
+
}).map((item) => item.id);
|
|
126411
|
+
}
|
|
126412
|
+
|
|
126271
126413
|
// src/director-bridge.ts
|
|
126272
126414
|
var JSON_GPT_MODEL_REF_RE = /"(?:slug|model)"\s*:\s*"(gpt-[a-z0-9.-]+)"/gi;
|
|
126273
126415
|
var DECLINED_PROPOSALS_MAX = 5;
|
|
@@ -126446,6 +126588,7 @@ function readCodexFallbackModels() {
|
|
|
126446
126588
|
}
|
|
126447
126589
|
return [...models.values()];
|
|
126448
126590
|
}
|
|
126591
|
+
var updateNoticesRetired = /* @__PURE__ */ new Set();
|
|
126449
126592
|
function selfUpdateInboxItemId(offeredVersion) {
|
|
126450
126593
|
if (!offeredVersion) return `II-MCPUPD-${(0, import_node_crypto40.randomUUID)()}`;
|
|
126451
126594
|
if (/^[A-Za-z0-9._-]+$/.test(offeredVersion)) return `II-MCPUPD-${offeredVersion}`;
|
|
@@ -126484,7 +126627,8 @@ function buildThreadStartParams(msg, config2, desiredModel) {
|
|
|
126484
126627
|
// Dogfood R2-10: GT-2's journal said all 24 spec checks ran and passed; the Director said it had not run them.
|
|
126485
126628
|
"- Report a task's checks from its record (get_task journalMarkdown, run artifacts): if they say checks ran, report that and the result; never call them not run because you did not run them in this chat.",
|
|
126486
126629
|
"- Mention a GT- or WK- id only if a tool returned it in this conversation (server-authoritative receipts).",
|
|
126487
|
-
|
|
126630
|
+
// Dogfood R4-1: an English message got a Ukrainian reply in a project whose wiki/history was Ukrainian.
|
|
126631
|
+
"- Reply in the language of the operator's LATEST message for the whole turn, even if earlier chats, wiki pages or tools use another.",
|
|
126488
126632
|
"- Keep chat short and human. No code blocks, DDL, terminal output, local filesystem paths, internal job/inbox UUIDs or alert markers in chat \u2014 put long content into a wiki page and link it.",
|
|
126489
126633
|
"- Spec pages in folder Specs must contain `## Acceptance criteria` followed by `- [ ]` items.",
|
|
126490
126634
|
"- AGNOSTIC DELIVERY MANDATE: Mrrlin is an Agnostic Delivery Platform decoupled from mandatory GitHub. Delivery is routed strictly by artifact kind: (1) document -> wiki; (2) page -> publish (web pages, landing pages, interactive HTML previews); (3) file_set -> artifacts (file uploads, bundles, build zips); (4) message -> send (outbound webhooks, Slack, notifications); (5) code_change -> repo_host (no host: local repo; register_local_checkout w/o repo; init_local_repo after a yes; a done local run lands on main (human_review: after Accept), apply_local_run retries, get_execution_run's localLanding says if it landed; NEVER edit or commit code yourself, only a code run does). NEVER stall or refuse non-code tasks by demanding a Git repository. Non-code tasks deliver directly via page (Publish) or document (Wiki). A page goes live only via a publish route, and a new project has none until the operator adds a publisher on the Integrations page: never promise or give a live link until publishing has produced one.",
|
|
@@ -128669,6 +128813,8 @@ function createBridgeMessageHandler(deps) {
|
|
|
128669
128813
|
const updateOfferProjectSlug = msg.context?.projectSlug?.trim();
|
|
128670
128814
|
if (updateOffer !== null && !updateOffer.startsWith(SELF_UPDATE_AUTH_PREFLIGHT_OFFER_PREFIX) && updateOfferProjectSlug && deps.fileUpdateInboxItem) {
|
|
128671
128815
|
void deps.fileUpdateInboxItem(updateOfferProjectSlug);
|
|
128816
|
+
} else if (updateOffer === null && updateOfferProjectSlug && deps.retireUpdateInboxItems) {
|
|
128817
|
+
void deps.retireUpdateInboxItems(updateOfferProjectSlug);
|
|
128672
128818
|
}
|
|
128673
128819
|
let reseedPrefix = null;
|
|
128674
128820
|
if (startedFreshThread && deps.buildReseedPrefix) {
|
|
@@ -129809,6 +129955,29 @@ async function startBridge(startupDeps, agentSecret, startupRollback) {
|
|
|
129809
129955
|
errorClass: "inbox_write_failed",
|
|
129810
129956
|
message: String(err?.message ?? err)
|
|
129811
129957
|
})}
|
|
129958
|
+
`
|
|
129959
|
+
);
|
|
129960
|
+
}
|
|
129961
|
+
},
|
|
129962
|
+
retireUpdateInboxItems: async (projectSlug) => {
|
|
129963
|
+
if (updateNoticesRetired.has(projectSlug)) return;
|
|
129964
|
+
updateNoticesRetired.add(projectSlug);
|
|
129965
|
+
try {
|
|
129966
|
+
const items = await client.listInboxItems(projectSlug, { kind: "info", status: "pending" });
|
|
129967
|
+
for (const id of staleUpdateNoticeIds(items, PKG_VERSION)) {
|
|
129968
|
+
await client.decideInboxItem(projectSlug, id, {
|
|
129969
|
+
verdict: "acknowledged",
|
|
129970
|
+
decidedBy: "director",
|
|
129971
|
+
answer: `The bridge now runs ${PKG_VERSION}.`
|
|
129972
|
+
}).catch(() => {
|
|
129973
|
+
});
|
|
129974
|
+
}
|
|
129975
|
+
} catch (err) {
|
|
129976
|
+
process.stderr.write(
|
|
129977
|
+
`[mrrlin-mcp director-bridge] warn bridge.self_update.notice_retire_failed ${JSON.stringify({
|
|
129978
|
+
projectSlug,
|
|
129979
|
+
message: String(err?.message ?? err)
|
|
129980
|
+
})}
|
|
129812
129981
|
`
|
|
129813
129982
|
);
|
|
129814
129983
|
}
|
|
@@ -133366,7 +133535,7 @@ function findBridgeAncestor(startPid, readPs, maxHops = 16) {
|
|
|
133366
133535
|
}
|
|
133367
133536
|
return null;
|
|
133368
133537
|
}
|
|
133369
|
-
var
|
|
133538
|
+
var PREFIX3 = "[mrrlin-mcp restart-service]";
|
|
133370
133539
|
function isOnlineBridge(entry) {
|
|
133371
133540
|
if (!entry || typeof entry !== "object") return false;
|
|
133372
133541
|
const e = entry;
|
|
@@ -133382,23 +133551,23 @@ function runRestartService(deps) {
|
|
|
133382
133551
|
const { print, installedVersion } = deps;
|
|
133383
133552
|
const manual = "run `pm2 restart mrrlin-bridge` yourself once nothing is running in Mrrlin";
|
|
133384
133553
|
const done = (exitCode, outcome) => ({ exitCode, outcome });
|
|
133385
|
-
print(`${
|
|
133554
|
+
print(`${PREFIX3} installed version on disk: ${installedVersion}`);
|
|
133386
133555
|
const jlist = deps.runPm2Jlist();
|
|
133387
133556
|
const askAncestor = (why) => {
|
|
133388
133557
|
if (deps.platform === "win32" || !deps.findAncestorBridge) return null;
|
|
133389
133558
|
const pid = deps.findAncestorBridge();
|
|
133390
133559
|
if (pid === null || !Number.isInteger(pid) || pid <= 1) return null;
|
|
133391
|
-
print(`${
|
|
133560
|
+
print(`${PREFIX3} ${why}, but this command runs inside the bridge (pid ${pid}), so that one is asked directly.`);
|
|
133392
133561
|
return signalBridges(deps, [{ pid }], false, manual);
|
|
133393
133562
|
};
|
|
133394
133563
|
if (jlist.status !== 0) {
|
|
133395
133564
|
const viaAncestor = askAncestor("pm2's process list could not be read from here");
|
|
133396
133565
|
if (viaAncestor) return viaAncestor;
|
|
133397
133566
|
if (jlist.errorCode === "ENOENT") {
|
|
133398
|
-
print(`${
|
|
133567
|
+
print(`${PREFIX3} pm2 is not installed here, so the bridge was NOT asked to reload. If you run the bridge some other way, restart it there.`);
|
|
133399
133568
|
return done(1, "no_pm2");
|
|
133400
133569
|
}
|
|
133401
|
-
print(`${
|
|
133570
|
+
print(`${PREFIX3} \`pm2 jlist\` failed (status ${jlist.status ?? "none"}), so the bridge was NOT asked to reload. To restart it, ${manual}.`);
|
|
133402
133571
|
return done(1, "pm2_failed");
|
|
133403
133572
|
}
|
|
133404
133573
|
let entries;
|
|
@@ -133406,14 +133575,14 @@ function runRestartService(deps) {
|
|
|
133406
133575
|
const parsed = JSON.parse(jlist.stdout || "[]");
|
|
133407
133576
|
entries = Array.isArray(parsed) ? parsed : [];
|
|
133408
133577
|
} catch {
|
|
133409
|
-
print(`${
|
|
133578
|
+
print(`${PREFIX3} \`pm2 jlist\` returned output that is not JSON, so the bridge was NOT asked to reload. To restart it, ${manual}.`);
|
|
133410
133579
|
return done(1, "pm2_failed");
|
|
133411
133580
|
}
|
|
133412
133581
|
const bridges = entries.filter(isOnlineBridge).filter((e) => typeof e.pid === "number" && Number.isInteger(e.pid) && e.pid > 0);
|
|
133413
133582
|
if (bridges.length === 0) {
|
|
133414
133583
|
const viaAncestor = askAncestor("pm2 listed no running mrrlin-bridge from here");
|
|
133415
133584
|
if (viaAncestor) return viaAncestor;
|
|
133416
|
-
print(`${
|
|
133585
|
+
print(`${PREFIX3} no running mrrlin-bridge found under pm2. Start it with: mrrlin-mcp install-service`);
|
|
133417
133586
|
return done(1, "no_bridge");
|
|
133418
133587
|
}
|
|
133419
133588
|
const ownReal = deps.ownBinPath ? deps.realpath(deps.ownBinPath) : null;
|
|
@@ -133428,7 +133597,7 @@ function runRestartService(deps) {
|
|
|
133428
133597
|
if (elsewhere.length > 0) {
|
|
133429
133598
|
const where = elsewhere.map((b) => `pid ${b.pid}: ${String(b.pm2_env?.pm_exec_path)}`).join("; ");
|
|
133430
133599
|
print(
|
|
133431
|
-
`${
|
|
133600
|
+
`${PREFIX3} a running bridge uses a different copy of mrrlin-mcp (${where}) than the one just installed (${ownReal}). The install did not update it, so it was NOT asked to reload and stays on its old version. Update that copy, or re-run \`mrrlin-mcp install-service\` with this one, then run \`pm2 restart mrrlin-bridge\` once nothing is running in Mrrlin.`
|
|
133432
133601
|
);
|
|
133433
133602
|
if (sameCopy.length === 0) return done(1, "different_install");
|
|
133434
133603
|
}
|
|
@@ -133439,7 +133608,7 @@ function signalBridges(deps, sameCopy, someElsewhere, manual) {
|
|
|
133439
133608
|
const done = (exitCode, outcome) => ({ exitCode, outcome });
|
|
133440
133609
|
if (deps.platform === "win32") {
|
|
133441
133610
|
print(
|
|
133442
|
-
`${
|
|
133611
|
+
`${PREFIX3} Windows cannot send the reload signal, so the bridge was NOT asked to reload. The running bridge (pid ${sameCopy.map((b) => b.pid).join(", ")}) is still the old version and may not notice the new one by itself. To switch to the new version, ${manual}.`
|
|
133443
133612
|
);
|
|
133444
133613
|
return done(1, "signal_unsupported");
|
|
133445
133614
|
}
|
|
@@ -133455,13 +133624,13 @@ function signalBridges(deps, sameCopy, someElsewhere, manual) {
|
|
|
133455
133624
|
}
|
|
133456
133625
|
}
|
|
133457
133626
|
if (signalled.length === 0) {
|
|
133458
|
-
print(`${
|
|
133627
|
+
print(`${PREFIX3} could not signal the bridge (${failed.join("; ")}). It is still running the old version. To restart it, ${manual}.`);
|
|
133459
133628
|
return done(1, "signal_failed");
|
|
133460
133629
|
}
|
|
133461
133630
|
print(
|
|
133462
|
-
`${
|
|
133631
|
+
`${PREFIX3} asked the running bridge (pid ${signalled.join(", ")}) to reload onto ${installedVersion}. It has NOT restarted yet. If the copy on disk differs from the one it is running, it first lets any reply or task that is running finish, then restarts by itself; if it already runs this version, nothing changes. Anything said in the meantime is still handled by the running version.`
|
|
133463
133632
|
);
|
|
133464
|
-
if (failed.length > 0) print(`${
|
|
133633
|
+
if (failed.length > 0) print(`${PREFIX3} could not signal: ${failed.join("; ")}`);
|
|
133465
133634
|
if (someElsewhere || failed.length > 0) return done(0, "partial");
|
|
133466
133635
|
return done(0, "signalled");
|
|
133467
133636
|
}
|