MCPcopy
hub / github.com/garrytan/gstack / agentRecordPath

Function agentRecordPath

browse/src/terminal-agent-control.ts:93–95  ·  view source on GitHub ↗
(stateDir: string)

Source from the content-addressed store, hash-verified

91}
92
93export function agentRecordPath(stateDir: string): string {
94 return path.join(stateDir, 'terminal-agent-pid');
95}
96
97/** Read the current record. Returns null on missing/malformed file. */
98export function readAgentRecord(stateDir: string): AgentRecord | null {

Callers 5

shutdownFunction · 0.90
readAgentRecordFunction · 0.85
writeAgentRecordFunction · 0.85
clearAgentRecordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected