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

Function base

src/utils/sessionLifecycle.test.ts:8–21  ·  view source on GitHub ↗
(input: Partial<SessionLifecycleInput> = {})

Source from the content-addressed store, hash-verified

6import type { SessionLifecycleInput } from './sessionLifecycle.js'
7
8function base(input: Partial<SessionLifecycleInput> = {}) {
9 return {
10 sdkUrl: undefined,
11 print: undefined,
12 inputFormat: undefined,
13 outputFormat: undefined,
14 remote: null,
15 teleport: null,
16 hasPendingConnect: false,
17 hasPendingSSH: false,
18 hasPendingAssistant: false,
19 ...input,
20 } as SessionLifecycleInput
21}
22
23describe('determineSessionLifecycle', () => {
24 it('returns "noninteractive" for SDK stream-json mode', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected