MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / getTurnStatePayload

Function getTurnStatePayload

lib/logger.js:168–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166}
167
168function getTurnStatePayload() {
169 return {
170 type: 'turn_state',
171 phase: state.turnState.phase,
172 sessionId: state.turnState.sessionId,
173 version: state.turnState.version,
174 updatedAt: state.turnState.updatedAt,
175 reason: state.turnState.reason || '',
176 };
177}
178
179function sendTurnState(ws, context = '') {
180 return sendWs(ws, getTurnStatePayload(), context);

Callers 3

sendTurnStateFunction · 0.85
setTurnStateFunction · 0.85
test-modules.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected