@rigstate/mcp 0.5.5 ā 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 +0 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +0 -2
- package/src/server/telemetry.ts +0 -4
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/server/telemetry.ts
CHANGED
|
@@ -12,7 +12,6 @@ export let watcherState: WatcherState = {
|
|
|
12
12
|
export async function startFrankWatcher(supabase: SupabaseClient, userId: string) {
|
|
13
13
|
if (watcherState.isRunning) return;
|
|
14
14
|
watcherState.isRunning = true;
|
|
15
|
-
console.error(`š¤ Frank Watcher started for user ${userId}`);
|
|
16
15
|
|
|
17
16
|
const checkTasks = async () => {
|
|
18
17
|
try {
|
|
@@ -33,7 +32,6 @@ export async function startFrankWatcher(supabase: SupabaseClient, userId: string
|
|
|
33
32
|
|
|
34
33
|
// Heartbeat Logic
|
|
35
34
|
if (task.proposal?.startsWith('ping') || (task.task_id === null && !task.proposal?.startsWith('report'))) {
|
|
36
|
-
console.error(`\nā” HEARTBEAT: Frank received REAL-TIME PING for project ${task.project_id}. Response: PONG`);
|
|
37
35
|
await supabase.from('agent_bridge').update({
|
|
38
36
|
status: 'COMPLETED',
|
|
39
37
|
summary: 'Pong! Frank is active and listening.',
|
|
@@ -47,7 +45,6 @@ export async function startFrankWatcher(supabase: SupabaseClient, userId: string
|
|
|
47
45
|
const parts = task.proposal.split(':');
|
|
48
46
|
const signalType = parts[1];
|
|
49
47
|
const reportType = signalType === 'MANIFEST' ? 'SYSTEM_MANIFEST' : 'INVESTOR_REPORT';
|
|
50
|
-
console.error(`\nš Frank is generating ${reportType} report...`);
|
|
51
48
|
|
|
52
49
|
try {
|
|
53
50
|
const result = await generateProfessionalPdf(supabase, userId, task.project_id, reportType);
|
|
@@ -69,7 +66,6 @@ export async function startFrankWatcher(supabase: SupabaseClient, userId: string
|
|
|
69
66
|
|
|
70
67
|
// Execution Logic
|
|
71
68
|
if (task.status === 'APPROVED') {
|
|
72
|
-
console.error(`\nšļø Worker: EXECUTING approved task: [${task.id}]`);
|
|
73
69
|
await supabase.from('agent_bridge').update({ status: 'EXECUTING', updated_at: new Date().toISOString() }).eq('id', task.id);
|
|
74
70
|
|
|
75
71
|
await new Promise(resolve => setTimeout(resolve, 2000));
|