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

Function buildOpenableUrl

apps/kimi-code/src/cli/sub/server/access-urls.ts:17–20  ·  view source on GitHub ↗
(bareOrigin: string, token: string | undefined)

Source from the content-addressed store, hash-verified

15 * returned.
16 */
17export function buildOpenableUrl(bareOrigin: string, token: string | undefined): string {
18 const base = bareOrigin.endsWith('/') ? bareOrigin.slice(0, -1) : bareOrigin;
19 return token === undefined ? `${base}/` : `${base}/#token=${token}`;
20}
21
22/**
23 * Split a full URL into the part before `#token=` and the `#token=…` fragment

Callers 3

buildWebUrlFunction · 0.90
formatReadyLineFunction · 0.90
accessUrlLinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected