@mrrlin-dev/mcp 0.4.62 → 0.4.64
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 -18
- package/package.json +1 -1
package/dist/bin.cjs
CHANGED
|
@@ -40688,8 +40688,8 @@ function runAgentExec(input, deps, persistedProvider) {
|
|
|
40688
40688
|
}
|
|
40689
40689
|
|
|
40690
40690
|
// ../../packages/agent-client/dist/resolved-seat.js
|
|
40691
|
-
var CODEX_STRONG_MODEL_CONSTANT = "gpt-5.
|
|
40692
|
-
var CLAUDE_STRONG_MODEL_CONSTANT = "
|
|
40691
|
+
var CODEX_STRONG_MODEL_CONSTANT = "gpt-5.6-terra";
|
|
40692
|
+
var CLAUDE_STRONG_MODEL_CONSTANT = "sonnet";
|
|
40693
40693
|
var CODEX_WEAK_MODEL_CONSTANT = "codex-gpt-5.4-mini";
|
|
40694
40694
|
var CLAUDE_WEAK_MODEL_CONSTANT = "haiku";
|
|
40695
40695
|
var CODEX_STRONG_MODEL_ENV = "MRRLIN_CODEX_STRONG_MODEL";
|
|
@@ -40720,34 +40720,39 @@ async function mintResolvedSeat(provider, opts) {
|
|
|
40720
40720
|
const providerId = provider.id;
|
|
40721
40721
|
let strongModel;
|
|
40722
40722
|
let weakModel;
|
|
40723
|
+
const strongEnvValue = process.env[providerId === "codex" ? CODEX_STRONG_MODEL_ENV : CLAUDE_STRONG_MODEL_ENV]?.trim();
|
|
40723
40724
|
if (opts?.handle && capabilities.listsModels) {
|
|
40724
40725
|
try {
|
|
40725
40726
|
const models = await opts.handle.listModels();
|
|
40726
|
-
|
|
40727
|
-
|
|
40728
|
-
|
|
40727
|
+
if (strongEnvValue && models.some((m) => m.id === strongEnvValue)) {
|
|
40728
|
+
strongModel = strongEnvValue;
|
|
40729
|
+
logFallback(providerId, "strong", "env", strongModel);
|
|
40729
40730
|
} else {
|
|
40730
|
-
|
|
40731
|
+
const picked = pickStrongModelFromList(models);
|
|
40732
|
+
if (picked) {
|
|
40733
|
+
strongModel = picked;
|
|
40734
|
+
if (strongEnvValue) {
|
|
40735
|
+
logFallback(providerId, "strong", "live-default (env pin retired)", strongModel);
|
|
40736
|
+
}
|
|
40737
|
+
} else {
|
|
40738
|
+
throw new Error("empty model list");
|
|
40739
|
+
}
|
|
40731
40740
|
}
|
|
40732
40741
|
} catch {
|
|
40733
|
-
|
|
40734
|
-
|
|
40735
|
-
strongModel = envValue;
|
|
40742
|
+
if (strongEnvValue) {
|
|
40743
|
+
strongModel = strongEnvValue;
|
|
40736
40744
|
logFallback(providerId, "strong", "env", strongModel);
|
|
40737
40745
|
} else {
|
|
40738
40746
|
strongModel = providerId === "codex" ? CODEX_STRONG_MODEL_CONSTANT : CLAUDE_STRONG_MODEL_CONSTANT;
|
|
40739
40747
|
logFallback(providerId, "strong", "constant", strongModel);
|
|
40740
40748
|
}
|
|
40741
40749
|
}
|
|
40750
|
+
} else if (strongEnvValue) {
|
|
40751
|
+
strongModel = strongEnvValue;
|
|
40752
|
+
logFallback(providerId, "strong", "env", strongModel);
|
|
40742
40753
|
} else {
|
|
40743
|
-
|
|
40744
|
-
|
|
40745
|
-
strongModel = envValue;
|
|
40746
|
-
logFallback(providerId, "strong", "env", strongModel);
|
|
40747
|
-
} else {
|
|
40748
|
-
strongModel = providerId === "codex" ? CODEX_STRONG_MODEL_CONSTANT : CLAUDE_STRONG_MODEL_CONSTANT;
|
|
40749
|
-
logFallback(providerId, "strong", "constant", strongModel);
|
|
40750
|
-
}
|
|
40754
|
+
strongModel = providerId === "codex" ? CODEX_STRONG_MODEL_CONSTANT : CLAUDE_STRONG_MODEL_CONSTANT;
|
|
40755
|
+
logFallback(providerId, "strong", "constant", strongModel);
|
|
40751
40756
|
}
|
|
40752
40757
|
if (providerId === "claude") {
|
|
40753
40758
|
weakModel = CLAUDE_WEAK_MODEL_CONSTANT;
|
|
@@ -42841,7 +42846,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
|
|
|
42841
42846
|
}
|
|
42842
42847
|
|
|
42843
42848
|
// src/_generated/version.ts
|
|
42844
|
-
var PKG_VERSION = "0.4.
|
|
42849
|
+
var PKG_VERSION = "0.4.64";
|
|
42845
42850
|
|
|
42846
42851
|
// src/api-base-url-migrate.ts
|
|
42847
42852
|
var import_node_fs5 = __toESM(require("node:fs"), 1);
|
|
@@ -42875,6 +42880,8 @@ function renderEcosystemConfig(opts) {
|
|
|
42875
42880
|
if (telemetryProject) env.MRRLIN_TELEMETRY_DEFAULT_PROJECT = telemetryProject;
|
|
42876
42881
|
if (opts.user) env.USER = opts.user;
|
|
42877
42882
|
if (opts.codexHome) env.CODEX_HOME = opts.codexHome;
|
|
42883
|
+
const claudeConfigDir = opts.claudeConfigDir?.trim();
|
|
42884
|
+
if (claudeConfigDir) env.CLAUDE_CONFIG_DIR = claudeConfigDir;
|
|
42878
42885
|
const apiBaseUrl = opts.apiBaseUrl ? retargetRetiredApiBaseUrl(opts.apiBaseUrl).baseUrl : void 0;
|
|
42879
42886
|
if (apiBaseUrl && !isProductionApiBaseUrl(apiBaseUrl)) {
|
|
42880
42887
|
env.MRRLIN_API_BASE_URL = apiBaseUrl;
|
|
@@ -69036,6 +69043,7 @@ function installService(deps) {
|
|
|
69036
69043
|
home,
|
|
69037
69044
|
user,
|
|
69038
69045
|
codexHome: deps.env.CODEX_HOME?.trim() || void 0,
|
|
69046
|
+
claudeConfigDir: deps.env.CLAUDE_CONFIG_DIR?.trim() || void 0,
|
|
69039
69047
|
pathEnv,
|
|
69040
69048
|
apiBaseUrl: apiTarget.apiBaseUrl,
|
|
69041
69049
|
apiAllowRemote: apiTarget.apiAllowRemote,
|