@mrrlin-dev/mcp 0.4.122 → 0.4.123
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 -2
- package/package.json +1 -1
package/dist/bin.cjs
CHANGED
|
@@ -62120,7 +62120,7 @@ Do NOT derail the current task - if the operator has an in-flight question, answ
|
|
|
62120
62120
|
}
|
|
62121
62121
|
|
|
62122
62122
|
// src/_generated/version.ts
|
|
62123
|
-
var PKG_VERSION = "0.4.
|
|
62123
|
+
var PKG_VERSION = "0.4.123";
|
|
62124
62124
|
|
|
62125
62125
|
// src/receipt-signing.ts
|
|
62126
62126
|
var import_node_crypto13 = __toESM(require("node:crypto"), 1);
|
|
@@ -68082,7 +68082,7 @@ async function askCodeHostOnce(deps, projectSlug, taskId) {
|
|
|
68082
68082
|
try {
|
|
68083
68083
|
const snapshot = await deps.client.getProjectSnapshot(projectSlug);
|
|
68084
68084
|
if (snapshot.project.codeHost != null) return;
|
|
68085
|
-
await deps.client.createInboxItem(projectSlug, {
|
|
68085
|
+
const item = await deps.client.createInboxItem(projectSlug, {
|
|
68086
68086
|
id: codeHostQuestionId(projectSlug),
|
|
68087
68087
|
kind: "question",
|
|
68088
68088
|
taskId,
|
|
@@ -68093,6 +68093,30 @@ async function askCodeHostOnce(deps, projectSlug, taskId) {
|
|
|
68093
68093
|
{ label: "Also put it on GitLab", answer: "gitlab", description: "You will be asked to connect GitLab." }
|
|
68094
68094
|
]
|
|
68095
68095
|
});
|
|
68096
|
+
if (item?.answer === "github" || item?.answer === "gitlab") {
|
|
68097
|
+
const host = item.answer === "github" ? "GitHub" : "GitLab";
|
|
68098
|
+
await deps.client.createInboxItem(projectSlug, {
|
|
68099
|
+
id: `${codeHostQuestionId(projectSlug)}-connect`,
|
|
68100
|
+
kind: "info",
|
|
68101
|
+
// Project-scoped on purpose: closing a task acknowledges that task's pending info items, which
|
|
68102
|
+
// would hide this note before the operator saw it (and its stable id prevents re-filing).
|
|
68103
|
+
body: `You asked for this project's code to also go to ${host}. Until ${host} is connected, code keeps being saved only on this computer. Connect it in Settings \u2192 Integrations, or ask the Director to help you connect ${host}.`
|
|
68104
|
+
});
|
|
68105
|
+
return;
|
|
68106
|
+
}
|
|
68107
|
+
if (item?.answer === "local") {
|
|
68108
|
+
try {
|
|
68109
|
+
await deps.client.renameProject(projectSlug, { codeHost: "local", codeHostOnlyIfUnset: true });
|
|
68110
|
+
} catch (error51) {
|
|
68111
|
+
console.warn(
|
|
68112
|
+
JSON.stringify({
|
|
68113
|
+
event: "code_host_answer_apply_failed",
|
|
68114
|
+
projectSlug,
|
|
68115
|
+
error: error51 instanceof Error ? error51.message : String(error51)
|
|
68116
|
+
})
|
|
68117
|
+
);
|
|
68118
|
+
}
|
|
68119
|
+
}
|
|
68096
68120
|
} catch {
|
|
68097
68121
|
}
|
|
68098
68122
|
}
|