MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / writeRunMeta

Function writeRunMeta

yaml-flow-editor/vite.config.ts:78–100  ·  view source on GitHub ↗
(projectRoot: string, run: RunInfo)

Source from the content-addressed store, hash-verified

76 }
77
78 function writeRunMeta(projectRoot: string, run: RunInfo) {
79 try {
80 const p = runMetaPath(projectRoot, run.id)
81 fs.mkdirSync(path.dirname(p), { recursive: true })
82 fs.writeFileSync(
83 p,
84 JSON.stringify(
85 {
86 id: run.id,
87 planPath: run.planPath,
88 dashboardPort: run.dashboardPort ?? null,
89 dashboardPid: run.dashboardPid ?? null,
90 updatedAt: Date.now(),
91 },
92 null,
93 2
94 ),
95 'utf8'
96 )
97 } catch {
98 // best-effort
99 }
100 }
101
102 function readRunMeta(projectRoot: string, runId: string): { dashboardPort?: number; dashboardPid?: number } | null {
103 try {

Callers 2

ensureDashboardFunction · 0.85
appendLogFunction · 0.85

Calls 1

runMetaPathFunction · 0.85

Tested by

no test coverage detected