@remixhq/mcp 0.1.11 → 0.1.12
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/cli.js +17 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/dist/server.js +17 -1
- package/dist/server.js.map +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -77,6 +77,7 @@ var ERROR_CODES = {
|
|
|
77
77
|
DIRTY_WORKTREE: "DIRTY_WORKTREE",
|
|
78
78
|
DETACHED_HEAD: "DETACHED_HEAD",
|
|
79
79
|
PREFERRED_BRANCH_MISMATCH: "PREFERRED_BRANCH_MISMATCH",
|
|
80
|
+
FAMILY_SELECTION_AMBIGUOUS: "FAMILY_SELECTION_AMBIGUOUS",
|
|
80
81
|
MISSING_HEAD: "MISSING_HEAD",
|
|
81
82
|
REPO_LOCK_HELD: "REPO_LOCK_HELD",
|
|
82
83
|
REPO_LOCK_TIMEOUT: "REPO_LOCK_TIMEOUT",
|
|
@@ -213,6 +214,14 @@ function normalizeByMessage(err) {
|
|
|
213
214
|
category: "local_state"
|
|
214
215
|
});
|
|
215
216
|
}
|
|
217
|
+
if (message.includes("Multiple canonical Remix families") || message.includes("family selection is ambiguous")) {
|
|
218
|
+
return makeNormalized({
|
|
219
|
+
code: ERROR_CODES.FAMILY_SELECTION_AMBIGUOUS,
|
|
220
|
+
message,
|
|
221
|
+
hint,
|
|
222
|
+
category: "local_state"
|
|
223
|
+
});
|
|
224
|
+
}
|
|
216
225
|
if (message.includes("Failed to resolve local HEAD")) {
|
|
217
226
|
return makeNormalized({
|
|
218
227
|
code: ERROR_CODES.MISSING_HEAD,
|
|
@@ -624,7 +633,9 @@ var initDataSchema = z2.object({
|
|
|
624
633
|
dashboardUrl: z2.string().url(),
|
|
625
634
|
upstreamAppId: z2.string(),
|
|
626
635
|
bindingPath: z2.string(),
|
|
627
|
-
repoRoot: z2.string()
|
|
636
|
+
repoRoot: z2.string(),
|
|
637
|
+
bindingMode: z2.enum(["legacy", "lane", "explicit_root"]).optional(),
|
|
638
|
+
createdCanonicalFamily: z2.boolean().optional()
|
|
628
639
|
});
|
|
629
640
|
var listDataSchema = z2.object({
|
|
630
641
|
apps: genericArraySchema,
|
|
@@ -776,6 +787,7 @@ import {
|
|
|
776
787
|
import { findGitRoot, getHeadCommitHash, listUntrackedFiles } from "@remixhq/core/repo";
|
|
777
788
|
function getRiskLevel(status) {
|
|
778
789
|
if (status.recommendedAction === "reconcile") return "high";
|
|
790
|
+
if (status.recommendedAction === "choose_family") return "medium";
|
|
779
791
|
if (status.recommendedAction === "sync" || status.remote.incomingOpenMergeRequestCount) return "medium";
|
|
780
792
|
if (status.repo.branchMismatch || !status.repo.isGitRepo || !status.binding.isBound || !status.repo.worktree.isClean) return "medium";
|
|
781
793
|
return "low";
|
|
@@ -795,6 +807,10 @@ function getRecommendedNextActions(status) {
|
|
|
795
807
|
return ["Run remix_collab_reconcile_preview before attempting remix_collab_reconcile_apply. Reconcile is the explicit Remix recovery path when fast-forward sync is no longer possible."];
|
|
796
808
|
case "review_queue":
|
|
797
809
|
return ["Run remix_collab_review_queue to inspect reviewable merge requests instead of using local git merge flows."];
|
|
810
|
+
case "choose_family":
|
|
811
|
+
return [
|
|
812
|
+
"This checkout is ambiguous across multiple canonical Remix families. Continue from a checkout already bound to the intended family, or run remix_collab_init with forceNew=true to create and bind a new canonical family."
|
|
813
|
+
];
|
|
798
814
|
default:
|
|
799
815
|
return [];
|
|
800
816
|
}
|