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

Method attachTerminal

packages/server-e2e/src/client.ts:484–498  ·  view source on GitHub ↗
(
    sid: string,
    terminalId: string,
    options: TerminalAttachOptions = {},
  )

Source from the content-addressed store, hash-verified

482
483 // ── Terminal WS controls ───────────────────────────────────────────────
484 attachTerminal(
485 sid: string,
486 terminalId: string,
487 options: TerminalAttachOptions = {},
488 ): Promise<TerminalAttachResult> {
489 return this._sendWsControl<TerminalAttachResult>(
490 'terminal_attach',
491 {
492 session_id: sid,
493 terminal_id: terminalId,
494 since_seq: options.sinceSeq,
495 },
496 options.timeoutMs,
497 );
498 }
499
500 detachTerminal(
501 sid: string,

Callers 1

mainFunction · 0.95

Calls 1

_sendWsControlMethod · 0.95

Tested by

no test coverage detected