2026-10-09 10:00:15 +00:00
|
|
|
// Module ID: 17204
|
|
|
|
|
// Function ID: 17205
|
2026-10-05 08:00:40 +00:00
|
|
|
// Name: ConjureDebugSnapshot
|
2026-10-09 10:00:15 +00:00
|
|
|
// Dependencies: [10617, 13165, 2]
|
2026-10-05 08:00:40 +00:00
|
|
|
// Exports: conjureDebugSnapshot
|
|
|
|
|
|
2026-10-09 10:00:15 +00:00
|
|
|
// Module 17204 (ConjureDebugSnapshot)
|
|
|
|
|
import ConjureProjectStore from "ConjureProjectStore" /* 10617 */;
|
|
|
|
|
import ConjureDebugStore from "ConjureDebugStore" /* 13165 */;
|
2026-10-05 08:00:40 +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-09 10:00:15 +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: ConjureProjectStore.getLogs(projectId) };
|
2026-10-05 08:00:40 +00:00
|
|
|
date = new Date();
|
|
|
|
|
return stringify(obj, null, 2);
|
|
|
|
|
};
|