@mrrlin-dev/mcp 0.4.55 → 0.4.57
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 +26 -8
- package/package.json +2 -2
package/dist/bin.cjs
CHANGED
|
@@ -21134,7 +21134,7 @@ function browserTable(binPath, distribution, homeDir) {
|
|
|
21134
21134
|
}
|
|
21135
21135
|
function blockRegex(id) {
|
|
21136
21136
|
const escaped = id.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
21137
|
-
return new RegExp(`(^|\\n)\\[mcp_servers\\.${escaped}\\][\\s\\S]*?(?=\\n\\[|$)`);
|
|
21137
|
+
return new RegExp(`(^|\\n)\\[mcp_servers\\.${escaped}\\][\\s\\S]*?(?=\\n\\[(?!\\]|mcp_servers\\.${escaped}\\.)|$)`);
|
|
21138
21138
|
}
|
|
21139
21139
|
function renderBlock(id, expected) {
|
|
21140
21140
|
const lines2 = [
|
|
@@ -42488,7 +42488,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
|
|
|
42488
42488
|
}
|
|
42489
42489
|
|
|
42490
42490
|
// src/_generated/version.ts
|
|
42491
|
-
var PKG_VERSION = "0.4.
|
|
42491
|
+
var PKG_VERSION = "0.4.57";
|
|
42492
42492
|
|
|
42493
42493
|
// src/api-base-url-migrate.ts
|
|
42494
42494
|
var import_node_fs4 = __toESM(require("node:fs"), 1);
|
|
@@ -42758,7 +42758,7 @@ function migrateCodexConfig(deps = {}) {
|
|
|
42758
42758
|
const text = d.readFile(file2);
|
|
42759
42759
|
const host = findRetiredHost(text);
|
|
42760
42760
|
if (!host && !hasLiveLegacyStagingFlag(text, "toml")) return { file: file2, status: "clean" };
|
|
42761
|
-
const managedBlockRe = /^\[mcp_servers\.mrrlin\][^\n]*\n(?:(?!\[)[^\n]*\n?)*/gm;
|
|
42761
|
+
const managedBlockRe = /^\[mcp_servers\.mrrlin(?:\]|\.env\])[^\n]*\n(?:(?!\[)[^\n]*\n?)*/gm;
|
|
42762
42762
|
const blocks = text.match(managedBlockRe) ?? [];
|
|
42763
42763
|
if (blocks.length === 0) {
|
|
42764
42764
|
return {
|
|
@@ -42773,34 +42773,52 @@ function migrateCodexConfig(deps = {}) {
|
|
|
42773
42773
|
let out = text;
|
|
42774
42774
|
let changed = 0;
|
|
42775
42775
|
for (const block of blocks) {
|
|
42776
|
+
let blockNextApiUrl;
|
|
42777
|
+
const urlMatch = /MRRLIN_API_BASE_URL\s*=\s*"([^"]*)"/.exec(block);
|
|
42778
|
+
const matchedUrl = urlMatch?.[1];
|
|
42779
|
+
if (matchedUrl !== void 0) {
|
|
42780
|
+
const successor = migratedApiUrl(matchedUrl);
|
|
42781
|
+
if (successor) blockNextApiUrl = successor;
|
|
42782
|
+
}
|
|
42783
|
+
if (!blockNextApiUrl && /MRRLIN_STAGING\s*=\s*"1"/.test(block)) {
|
|
42784
|
+
blockNextApiUrl = STAGING_API_BASE_URL;
|
|
42785
|
+
}
|
|
42776
42786
|
let blockChanged = false;
|
|
42777
42787
|
const healedBlock = block.split("\n").map((line) => {
|
|
42778
42788
|
if (line.trimStart().startsWith("#")) return line;
|
|
42779
|
-
let nextApiUrl;
|
|
42780
42789
|
let healedLine = line.replace(assignRe, (match, url2) => {
|
|
42781
42790
|
const successor = migratedApiUrl(url2);
|
|
42782
42791
|
if (!successor) return match;
|
|
42783
|
-
nextApiUrl = successor;
|
|
42784
42792
|
return `MRRLIN_API_BASE_URL = ${JSON.stringify(successor)}`;
|
|
42785
42793
|
});
|
|
42786
42794
|
healedLine = healedLine.replace(stagingAssignRe, () => {
|
|
42787
|
-
nextApiUrl = STAGING_API_BASE_URL;
|
|
42788
42795
|
return `MRRLIN_API_BASE_URL = ${JSON.stringify(STAGING_API_BASE_URL)}`;
|
|
42789
42796
|
});
|
|
42790
|
-
if (
|
|
42797
|
+
if (blockNextApiUrl && isFirstPartyOrLoopbackUrl(blockNextApiUrl)) {
|
|
42791
42798
|
healedLine = healedLine.replace(
|
|
42792
42799
|
allowRemoteAssignRe,
|
|
42793
42800
|
(match) => match.startsWith(",") && match.endsWith(",") ? "," : ""
|
|
42794
42801
|
).replace(/\{\s*,\s*/, "{ ").replace(/,\s*\}/, " }").replace(/,\s*,/g, ",");
|
|
42802
|
+
if (/^[ \t]*MRRLIN_API_ALLOW_REMOTE\s*=\s*"1"[ \t]*$/.test(healedLine)) {
|
|
42803
|
+
healedLine = "";
|
|
42804
|
+
}
|
|
42795
42805
|
}
|
|
42796
42806
|
if (healedLine !== line) blockChanged = true;
|
|
42797
42807
|
return healedLine;
|
|
42808
|
+
}).filter((line, i) => {
|
|
42809
|
+
if (line === "" && block.split("\n")[i] !== "") return false;
|
|
42810
|
+
return true;
|
|
42798
42811
|
}).join("\n");
|
|
42799
42812
|
if (!blockChanged) continue;
|
|
42800
|
-
|
|
42813
|
+
let deduped = healedBlock.replace(
|
|
42801
42814
|
/MRRLIN_API_BASE_URL = "https:\/\/api-staging\.mrrlin\.com"\s*,\s*MRRLIN_API_BASE_URL = "https:\/\/api-staging\.mrrlin\.com"/g,
|
|
42802
42815
|
`MRRLIN_API_BASE_URL = "https://api-staging.mrrlin.com"`
|
|
42803
42816
|
);
|
|
42817
|
+
deduped = deduped.replace(
|
|
42818
|
+
/^[ \t]*MRRLIN_API_BASE_URL\s*=\s*"https:\/\/api-staging\.mrrlin\.com"[ \t]*\r?\n([\s\S]*?)^[ \t]*MRRLIN_API_BASE_URL\s*=\s*"https:\/\/api-staging\.mrrlin\.com"[ \t]*\r?\n/gm,
|
|
42819
|
+
`MRRLIN_API_BASE_URL = "https://api-staging.mrrlin.com"
|
|
42820
|
+
$1`
|
|
42821
|
+
);
|
|
42804
42822
|
out = out.replace(block, () => deduped);
|
|
42805
42823
|
changed += 1;
|
|
42806
42824
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrrlin-dev/mcp",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.57",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"mrrlin-mcp": "dist/bin.cjs"
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"@mrrlin/client": "0.0.0",
|
|
25
25
|
"@mrrlin/agent-client": "0.0.0",
|
|
26
26
|
"@mrrlin/director-e2e": "0.0.0",
|
|
27
|
-
"@mrrlin/tsconfig": "0.0.0",
|
|
28
27
|
"@mrrlin/schemas": "0.0.0",
|
|
28
|
+
"@mrrlin/tsconfig": "0.0.0",
|
|
29
29
|
"@mrrlin/wiki": "0.0.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|