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

Function urlWithDimToken

apps/kimi-code/src/cli/sub/server/run.ts:439–442  ·  view source on GitHub ↗
(href: string)

Source from the content-addressed store, hash-verified

437 // Render the `#token=…` fragment in a de-emphasized gray so the host/port
438 // stands out while the full URL stays selectable for copying.
439 const urlWithDimToken = (href: string): string => {
440 const [base, frag] = splitTokenFragment(href);
441 return frag === '' ? url(base) : url(base) + dim(frag);
442 };
443
444 const port = Number(new URL(origin).port);
445 // Borderless header: the Kimi sprite (the little mascot with eyes) sits next

Callers 1

formatReadyBannerFunction · 0.85

Calls 3

splitTokenFragmentFunction · 0.90
urlFunction · 0.85
dimFunction · 0.70

Tested by

no test coverage detected