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

Function webSessionUrl

apps/kimi-code/src/tui/commands/web.ts:89–92  ·  view source on GitHub ↗
(origin: string, sessionId: string, token?: string)

Source from the content-addressed store, hash-verified

87 * logged), so the browser authenticates on load just like `kimi web`.
88 */
89export function webSessionUrl(origin: string, sessionId: string, token?: string): string {
90 const base = `${origin.replace(/\/+$/, '')}/sessions/${encodeURIComponent(sessionId)}`;
91 return token === undefined ? base : `${base}#token=${token}`;
92}

Callers 2

web.test.tsFile · 0.90
handleWebCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected