@rigstate/mcp 0.7.1 → 0.7.2

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/index.js CHANGED
@@ -1938,8 +1938,8 @@ async function getProjectContext(supabase, userId, projectId) {
1938
1938
  };
1939
1939
  const stackDef = projectRow.architectural_dna?.stack_definition;
1940
1940
  const [activeTaskResult, nextTaskResult] = await Promise.all([
1941
- supabase.from("roadmap_chunks").select("id, title, step_number, role, instruction_set").eq("project_id", projectId).eq("status", "IN_PROGRESS").limit(1).maybeSingle(),
1942
- supabase.from("roadmap_chunks").select("id, title, step_number, role").eq("project_id", projectId).eq("status", "PENDING").order("step_number", { ascending: true }).limit(1).maybeSingle()
1941
+ supabase.from("roadmap_chunks").select("id, title, step_number, role, instruction_set").eq("project_id", projectId).in("status", ["IN_PROGRESS", "ACTIVE"]).limit(1).maybeSingle(),
1942
+ supabase.from("roadmap_chunks").select("id, title, step_number, role").eq("project_id", projectId).in("status", ["PENDING", "LOCKED"]).order("step_number", { ascending: true }).limit(1).maybeSingle()
1943
1943
  ]);
1944
1944
  const activeTask = activeTaskResult.data;
1945
1945
  const nextTask = nextTaskResult.data;
@@ -2818,7 +2818,7 @@ async function getNextRoadmapStep(supabase, projectId, currentStepId) {
2818
2818
  currentStepNumber = current.step_number;
2819
2819
  }
2820
2820
  } else {
2821
- const { data: active } = await supabase.from("roadmap_chunks").select("step_number").eq("project_id", projectId).eq("status", "ACTIVE").order("step_number", { ascending: true }).limit(1).single();
2821
+ const { data: active } = await supabase.from("roadmap_chunks").select("step_number").eq("project_id", projectId).in("status", ["ACTIVE", "IN_PROGRESS"]).order("step_number", { ascending: true }).limit(1).single();
2822
2822
  if (active) {
2823
2823
  currentStepNumber = active.step_number;
2824
2824
  }