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

Function splitTokenFragment

apps/kimi-code/src/cli/sub/server/access-urls.ts:27–31  ·  view source on GitHub ↗
(fullUrl: string)

Source from the content-addressed store, hash-verified

25 * `[fullUrl, '']` when there is no token fragment.
26 */
27export function splitTokenFragment(fullUrl: string): [string, string] {
28 const marker = '#token=';
29 const idx = fullUrl.indexOf(marker);
30 return idx < 0 ? [fullUrl, ''] : [fullUrl.slice(0, idx), fullUrl.slice(idx)];
31}
32
33export interface AccessUrlLine {
34 /** Fixed-width label including trailing padding, e.g. `"Local: "`. */

Callers 3

urlWithDimTokenFunction · 0.90
server.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected