MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / notifySessionBound

Function notifySessionBound

services/cloud-agent-next/wrapper/src/server.ts:241–253  ·  view source on GitHub ↗
(
  deps: ServerDependencies,
  feedPolicy: SessionBoundFeedPolicy
)

Source from the content-addressed store, hash-verified

239 `PTY size must include integer cols ${MIN_PTY_COLS}-${MAX_PTY_COLS} and rows ${MIN_PTY_ROWS}-${MAX_PTY_ROWS}`
240 );
241 }
242
243 return { cols, rows };
244}
245
246function parsePtyPath(path: string): { ptyId: string; action?: 'connect' } | null {
247 const match = path.match(/^\/pty\/([^/]+)(?:\/(connect))?$/);
248 if (!match) return null;
249
250 const ptyId = validatePtyId(match[1]);
251 if (!ptyId) return null;
252
253 return {
254 ptyId,
255 action: match[2] === 'connect' ? 'connect' : undefined,
256 };

Callers 1

bindSessionContextFunction · 0.85

Calls 1

logToFileFunction · 0.85

Tested by

no test coverage detected