(ws)
| 77 | } |
| 78 | |
| 79 | function sendInitialMessages(ws) { |
| 80 | sendWs(ws, { |
| 81 | type: 'status', |
| 82 | status: state.claudeProc ? 'running' : 'starting', |
| 83 | hasTranscript: !!state.transcriptPath, |
| 84 | cwd: state.CWD, |
| 85 | sessionId: state.currentSessionId, |
| 86 | lastSeq: latestEventSeq(), |
| 87 | }, 'initial'); |
| 88 | |
| 89 | if (state.currentSessionId) { |
| 90 | sendWs(ws, { |
| 91 | type: 'transcript_ready', |
| 92 | transcript: state.transcriptPath, |
| 93 | sessionId: state.currentSessionId, |
| 94 | lastSeq: latestEventSeq(), |
| 95 | }, 'initial'); |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | function sendAuthOk(ws) { |
| 100 | sendWs(ws, { |
no test coverage detected