Skip to content

YaksokSession

Defined in: core/session/session.ts:23

new YaksokSession(__namedParameters?): YaksokSession

Defined in: core/session/session.ts:48

Partial<{ stderr: YaksokSession["stderr"]; stdout: YaksokSession["stdout"]; }> = {}

YaksokSession

aliveListeners: Promise<void>[] = []

Defined in: core/session/session.ts:46


baseScope: Scope | null = null

Defined in: core/session/session.ts:30


eventCreation: PubSub<{[key: string]: (args, callback, terminate, scope) => void; }>

Defined in: core/session/session.ts:37


extensions: Extension[]

Defined in: core/session/session.ts:29


files: Record<string, CodeFile> = {}

Defined in: core/session/session.ts:32


id: string

Defined in: core/session/session.ts:24


runtimeContext: RuntimeContext | null = null

Defined in: core/session/session.ts:33


stderr: (message, error) => void

Defined in: core/session/session.ts:27

string

YaksokError

void


stdout: (message) => void

Defined in: core/session/session.ts:26

string

void

addModule(moduleName, code): CodeFile

Defined in: core/session/session.ts:61

string

string

CodeFile


extend(extension): Promise<void>

Defined in: core/session/session.ts:74

Extension

Promise<void>


getMentionRules(): Rule<Node<SubnodeScheme>[]>[]

Defined in: core/session/session.ts:186

Rule<Node<SubnodeScheme>[]>[]


runFFI(runtime, code, args, callerScope): Promise<ValueType>

Defined in: core/session/session.ts:134

string

string

Map<string | symbol, ValueType>

Scope

Promise<ValueType>


runModules<T>(fileNames): Promise<Record<T[number], PromiseSettledResult<Scope>>>

Defined in: core/session/session.ts:91

T extends string[]

T

Promise<Record<T[number], PromiseSettledResult<Scope>>>


tick(): Promise<void>

Defined in: core/session/session.ts:180

Promise<void>


useBaseScope(scope): void

Defined in: core/session/session.ts:87

Scope

void


withRuntimeContext<T>(func, providedContext): Promise<T>

Defined in: core/session/session.ts:112

T

(content) => Promise<T>

Partial<RuntimeContext> & Pick<RuntimeContext, "entry">

Promise<T>