Skip to content

HookDbApi

This content is for v0.1. Switch to the latest version for up-to-date documentation.

Defined in: hooks.ts:55

Scoped API surface available to server-side hook handlers. Intentionally narrow — handlers should not have full StateDb access.

appendEvent: (sessionId, type, data?, context?) => void

Defined in: hooks.ts:62

string | null | undefined

string

DbFieldValue

EventContext | null

void


generateRetrospective: (sessionId) => string | null

Defined in: hooks.ts:61

string

string | null


getPushSubscriptionCount: () => number

Defined in: hooks.ts:64

number


proposeLessonFromRetro: (project, section, content, source?) => Lesson | null

Defined in: hooks.ts:60

string | null

string

string

string

Lesson | null


resolveProjectPath: (ref) => string | null

Defined in: hooks.ts:66

string | null | undefined

string | null


resolveProjectSlug: (ref) => string

Defined in: hooks.ts:65

string | null | undefined

string


sendPushToAll: (payload) => Promise<{ cleaned: number; failed: number; sent: number; }>

Defined in: hooks.ts:63

string

string

Record<string, unknown>

string

string

string

Promise<{ cleaned: number; failed: number; sent: number; }>

getProjectMemory(projectPath?): string

Defined in: hooks.ts:59

string | null

string


getSession(id): Session | null

Defined in: hooks.ts:57

string

Session | null


getSettings(): Settings

Defined in: hooks.ts:56

Settings


getTask(id): Task | null

Defined in: hooks.ts:58

string

Task | null