@rigstate/mcp 0.5.4 → 0.5.6

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
@@ -977,7 +977,6 @@ async function generateQueryEmbedding(query) {
977
977
  const openRouterKey = process.env.OPENROUTER_API_KEY;
978
978
  const googleKey = process.env.GOOGLE_GENERATIVE_AI_API_KEY;
979
979
  if (!openRouterKey && !googleKey) {
980
- console.warn("Neither OPENROUTER_API_KEY nor GOOGLE_GENERATIVE_AI_API_KEY found, skipping vector search.");
981
980
  return null;
982
981
  }
983
982
  try {
@@ -999,7 +998,6 @@ async function generateQueryEmbedding(query) {
999
998
  return embedding;
1000
999
  }
1001
1000
  } catch (error) {
1002
- console.error("Failed to generate embedding for search:", error);
1003
1001
  return null;
1004
1002
  }
1005
1003
  }
@@ -1010,8 +1008,6 @@ async function queryBrain(supabase, userId, projectId, query, limit = 8, thresho
1010
1008
  }
1011
1009
  const embedding = await generateQueryEmbedding(query);
1012
1010
  let memories = [];
1013
- console.error(`Searching brain for "${query}" (limit: ${limit}, threshold: ${threshold})`);
1014
- console.error(`Embedding present: ${!!embedding}`);
1015
1011
  const { data: searchResults, error: searchError } = await supabase.rpc("hybrid_search_memories", {
1016
1012
  p_project_id: projectId,
1017
1013
  p_query: query,
@@ -1020,7 +1016,6 @@ async function queryBrain(supabase, userId, projectId, query, limit = 8, thresho
1020
1016
  p_similarity_threshold: threshold || 0.1
1021
1017
  });
1022
1018
  if (searchError) {
1023
- console.error("Hybrid search error:", searchError);
1024
1019
  const { data: recentMemories } = await supabase.from("project_memories").select("id, content, category, tags, importance, created_at").eq("project_id", projectId).eq("is_active", true).order("created_at", { ascending: false }).limit(limit);
1025
1020
  if (recentMemories) {
1026
1021
  memories = recentMemories.map((m) => ({
@@ -1033,7 +1028,6 @@ async function queryBrain(supabase, userId, projectId, query, limit = 8, thresho
1033
1028
  }));
1034
1029
  }
1035
1030
  } else if (searchResults) {
1036
- console.error(`Found ${searchResults.length} results from RPC`);
1037
1031
  memories = searchResults.map((m) => ({
1038
1032
  id: m.id,
1039
1033
  content: m.content,
@@ -2882,7 +2876,6 @@ var watcherState = {
2882
2876
  async function startFrankWatcher(supabase, userId) {
2883
2877
  if (watcherState.isRunning) return;
2884
2878
  watcherState.isRunning = true;
2885
- console.error(`\u{1F916} Frank Watcher started for user ${userId}`);
2886
2879
  const checkTasks = async () => {
2887
2880
  try {
2888
2881
  watcherState.lastCheck = (/* @__PURE__ */ new Date()).toISOString();
@@ -2892,8 +2885,6 @@ async function startFrankWatcher(supabase, userId) {
2892
2885
  const task = tasks[0];
2893
2886
  watcherState.tasksFound++;
2894
2887
  if (task.proposal?.startsWith("ping") || task.task_id === null && !task.proposal?.startsWith("report")) {
2895
- console.error(`
2896
- \u26A1 HEARTBEAT: Frank received REAL-TIME PING for project ${task.project_id}. Response: PONG`);
2897
2888
  await supabase.from("agent_bridge").update({
2898
2889
  status: "COMPLETED",
2899
2890
  summary: "Pong! Frank is active and listening.",
@@ -2905,8 +2896,6 @@ async function startFrankWatcher(supabase, userId) {
2905
2896
  const parts = task.proposal.split(":");
2906
2897
  const signalType = parts[1];
2907
2898
  const reportType = signalType === "MANIFEST" ? "SYSTEM_MANIFEST" : "INVESTOR_REPORT";
2908
- console.error(`
2909
- \u{1F4C4} Frank is generating ${reportType} report...`);
2910
2899
  try {
2911
2900
  const result = await generateProfessionalPdf(supabase, userId, task.project_id, reportType);
2912
2901
  await supabase.from("agent_bridge").update({
@@ -2925,8 +2914,6 @@ async function startFrankWatcher(supabase, userId) {
2925
2914
  return;
2926
2915
  }
2927
2916
  if (task.status === "APPROVED") {
2928
- console.error(`
2929
- \u{1F3D7}\uFE0F Worker: EXECUTING approved task: [${task.id}]`);
2930
2917
  await supabase.from("agent_bridge").update({ status: "EXECUTING", updated_at: (/* @__PURE__ */ new Date()).toISOString() }).eq("id", task.id);
2931
2918
  await new Promise((resolve2) => setTimeout(resolve2, 2e3));
2932
2919
  const taskTitle2 = task.roadmap_chunks?.title || "manual objective";
@@ -3012,7 +2999,6 @@ async function main() {
3012
2999
  setupToolHandlers(server, { supabase, userId });
3013
3000
  const transport = new StdioServerTransport();
3014
3001
  await server.connect(transport);
3015
- console.error("\u{1F6F0}\uFE0F Rigstate MCP Server (Evolutionary) running on stdio");
3016
3002
  }
3017
3003
  main().catch((error) => {
3018
3004
  console.error("FATAL ERROR:", error);