decord/beta/source/modules/conjure/debug/ConjureDebugSnapshot.tsx

20 lines
1 KiB
TypeScript
Raw Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 17334
// Function ID: 17335
2026-10-07 22:43:51 +00:00
// Name: ConjureDebugSnapshot
2026-10-12 16:32:48 +00:00
// Dependencies: [13224, 13219, 2]
2026-10-07 22:43:51 +00:00
// Exports: conjureDebugSnapshot
2026-10-12 16:32:48 +00:00
// Module 17334 (ConjureDebugSnapshot)
import ConjureDebugLogStore from "ConjureDebugLogStore" /* 13224 */;
import ConjureDebugStore from "ConjureDebugStore" /* 13219 */;
2026-10-07 22:43:51 +00:00
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/conjure/debug/ConjureDebugSnapshot.tsx");
export const conjureDebugSnapshot = function conjureDebugSnapshot(projectId) {
let date;
2026-10-12 16:32:48 +00:00
const obj = { captured_at: date.toISOString(), project_id: projectId, status: ConjureDebugStore.getStatus(projectId), last_turn_usage: ConjureDebugStore.getLastTurnUsage(projectId), last_compaction: ConjureDebugStore.getLastCompaction(projectId), last_compaction_decline: ConjureDebugStore.getLastCompactionDecline(projectId), timing_traces: ConjureDebugStore.getTimingTraces(projectId), logs: ConjureDebugLogStore.getLogs(projectId) };
2026-10-07 22:43:51 +00:00
date = new Date();
return stringify(obj, null, 2);
};