@remixhq/mcp 0.1.10 → 0.1.11

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/server.js CHANGED
@@ -202,7 +202,7 @@ function normalizeByMessage(err) {
202
202
  category: "local_state"
203
203
  });
204
204
  }
205
- if (code === ERROR_CODES.PREFERRED_BRANCH_MISMATCH || message.includes("preferred branch")) {
205
+ if (code === ERROR_CODES.PREFERRED_BRANCH_MISMATCH || message.includes("preferred branch") || message.includes("bound branch")) {
206
206
  return makeNormalized({
207
207
  code: ERROR_CODES.PREFERRED_BRANCH_MISMATCH,
208
208
  message,
@@ -780,7 +780,7 @@ function getRiskLevel(status) {
780
780
  function getRecommendedNextActions(status) {
781
781
  if (status.repo.branchMismatch) {
782
782
  return [
783
- `Switch to the preferred branch (${status.binding.preferredBranch ?? "configured in the binding"}) before using Remix mutation tools, or rerun with allowBranchMismatch=true if this deviation is intentional.`
783
+ `Switch to the bound branch (${status.binding.branchName ?? "configured in the binding"}) before using Remix mutation tools, or rerun with allowBranchMismatch=true if this deviation is intentional.`
784
784
  ];
785
785
  }
786
786
  switch (status.recommendedAction) {