decord/alpha/source/modules/vibegrations/lib/VibegrationsDebugSnapshot.tsx

17 lines
1 KiB
TypeScript

// Module ID: 16980
// Function ID: 16981
// Name: VibegrationsDebugSnapshot
// Dependencies: [16979, 16851, 2]
// Exports: vibegrationsDebugSnapshot
// Module 16980 (VibegrationsDebugSnapshot)
import VibegrationsDebugStore from "VibegrationsDebugStore" /* 16979 */;
import VibegrationsProjectStore from "VibegrationsProjectStore" /* 16851 */;
const size = fn(2);
const result = size.fileFinishedImporting("modules/vibegrations/lib/VibegrationsDebugSnapshot.tsx");
export const vibegrationsDebugSnapshot = function vibegrationsDebugSnapshot(projectId) {
const obj = { captured_at: new Date().toISOString(), project_id: projectId, status: VibegrationsDebugStore.getStatus(projectId), last_turn_usage: VibegrationsDebugStore.getLastTurnUsage(projectId), last_compaction: VibegrationsDebugStore.getLastCompaction(projectId), last_compaction_decline: VibegrationsDebugStore.getLastCompactionDecline(projectId), model_calls: VibegrationsDebugStore.getModelCalls(projectId), logs: VibegrationsProjectStore.getLogs(projectId) };
return JSON.stringify(obj, null, 2);
};