MCPcopy Create free account
hub / github.com/Noumena-Network/code / buildSession

Function buildSession

src/commands/chrome/chrome.test.ts:4–17  ·  view source on GitHub ↗
(overrides: Partial<any> = {})

Source from the content-addressed store, hash-verified

2import { hasChromeCommandAccessForSession } from './chromeAvailability.js'
3
4function buildSession(overrides: Partial<any> = {}) {
5 return {
6 headersKind: 'none',
7 providerPlan: {
8 mode: 'none',
9 },
10 scopes: [],
11 subscription: {
12 subscriptionType: null,
13 rateLimitTier: null,
14 },
15 ...overrides,
16 }
17}
18
19describe('/chrome command access', () => {
20 it('allows oauth-backed Noumena first-party sessions', () => {

Callers 1

chrome.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected