MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / abort

Method abort

apps/kimi-web/src/api/daemon/ws.ts:189–196  ·  view source on GitHub ↗

* Send a WS abort control message for a prompt. * (The REST :abort endpoint is the primary path; this is the WS path per spec.)

(sessionId: string, promptId: string)

Source from the content-addressed store, hash-verified

187 * (The REST :abort endpoint is the primary path; this is the WS path per spec.)
188 */
189 abort(sessionId: string, promptId: string): void {
190 if (!this.connected || !this.ws) return;
191 this.send({
192 type: 'abort',
193 id: this.nextId(),
194 payload: { session_id: sessionId, prompt_id: promptId },
195 });
196 }
197
198 terminalAttach(sessionId: string, terminalId: string, sinceSeq?: number): void {
199 const key = terminalKey(sessionId, terminalId);

Callers

nothing calls this directly

Calls 2

sendMethod · 0.95
nextIdMethod · 0.95

Tested by

no test coverage detected