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

Function fetchInputUrl

packages/oauth/test/toolkit.test.ts:72–77  ·  view source on GitHub ↗
(input: unknown)

Source from the content-addressed store, hash-verified

70}
71
72function fetchInputUrl(input: unknown): string {
73 if (typeof input === 'string') return input;
74 if (input instanceof URL) return input.href;
75 if (input instanceof Request) return input.url;
76 throw new TypeError('expected fetch input to be a string, URL, or Request');
77}
78
79describe('resolveKimiTokenStorageName', () => {
80 it('maps config oauth keys to the file storage token name', () => {

Callers 1

toolkit.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected