Skip to content

PersistentAI API Documentation / @persistentai/fireflow-trpc / server / initializeContext

Function: initializeContext()

initializeContext(_db, _flowStore, _nodeRegistry, _nodesCatalog, _mcpStore, _userStore, options?): void

Defined in: packages/fireflow-trpc/server/context.ts:87

Initialize application context with stores Should be called once when application starts

Parameters

_db

NodePgDatabase<Record<string, unknown>> & object

_flowStore

IFlowStore

_nodeRegistry

NodeRegistry

_nodesCatalog

NodeCatalog

_mcpStore

IMCPStore

_userStore

UserStore

options?

Partial<Pick<InitializeContextOptions, "workspaceWorkflows" | "fileWorkflows" | "gitWorkflows" | "moveWorkflows" | "typedFileWorkflows" | "flowWorkflows" | "vfsSyncManager">>

Returns

void

Licensed under BUSL-1.1