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
_nodeRegistry
_nodesCatalog
_mcpStore
_userStore
options?
Partial<Pick<InitializeContextOptions, "workspaceWorkflows" | "fileWorkflows" | "gitWorkflows" | "moveWorkflows" | "typedFileWorkflows" | "flowWorkflows" | "vfsSyncManager">>
Returns
void