MCPcopy Index your code
hub / github.com/anomalyco/opencode / serverOptions

Function serverOptions

packages/opencode/test/plugin/xai.test.ts:41–47  ·  view source on GitHub ↗
(server: ReturnType<typeof Bun.serve>)

Source from the content-addressed store, hash-verified

39}
40
41function serverOptions(server: ReturnType<typeof Bun.serve>) {
42 return {
43 authorizeUrl: new URL("/oauth2/authorize", server.url).toString(),
44 tokenUrl: new URL("/oauth2/token", server.url).toString(),
45 deviceAuthorizationUrl: new URL("/oauth2/device/code", server.url).toString(),
46 }
47}
48
49describe("plugin.xai", () => {
50 describe("accessTokenIsExpiring", () => {

Callers 1

xai.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected