MCPcopy Create free account

hub / github.com/HMDSimDev/heartmorrow / functions

Functions1,633 in github.com/HMDSimDev/heartmorrow

↓ 385 callersMethodget
(sql: string, ...params: SqlParam[])
apps/server/src/db/sqlite.ts:44
↓ 314 callersMethodpush
Feed a raw token chunk; returns the newly-visible (cleaned) text, if any.
apps/server/src/lib/think-filter.ts:41
↓ 240 callersFunctiongetDb
()
apps/server/src/db/index.ts:45
↓ 237 callersFunctionseedWorldAndCharacter
()
apps/server/src/test/helpers.ts:39
↓ 229 callersFunctionsetAdapterOverride
(adapter: ChatAdapter | null)
apps/server/src/llm/provider.ts:16
↓ 221 callersFunctiongetRelationship
( characterId: string, playerId: string = DEFAULT_PLAYER_ID, )
apps/server/src/services/relationship-service.ts:28
↓ 152 callersFunctiondocSchema
(opts: DocSchemaOptions)
apps/server/src/lib/openapi-schema.ts:85
↓ 143 callersFunctionrecordEvent
(type: string, payload: Record<string, unknown> = {})
apps/server/src/services/event-service.ts:30
↓ 136 callersMethodrun
(sql: string, ...params: SqlParam[])
apps/server/src/db/sqlite.ts:43
↓ 134 callersFunctionnewId
(prefix?: string)
apps/server/src/lib/ids.ts:5
↓ 127 callersFunctionbadRequest
(message: string, details?: unknown)
apps/server/src/lib/errors.ts:13
↓ 114 callersFunctionat
(day: number, offsetMs = 0)
apps/server/src/mock-world.ts:100
↓ 113 callersFunctionerrorMessage
(err: unknown)
apps/web/src/lib/hooks.ts:64
↓ 112 callersFunctioncreateCharacter
(input: CharacterCreate)
apps/server/src/services/character-service.ts:414
↓ 102 callersFunctionensureWorldState
(worldId: string)
apps/server/src/services/world-clock-service.ts:61
↓ 99 callersFunctionplayerIdForWorld
(worldId: string)
apps/server/src/lib/ids.ts:17
↓ 95 callersFunctionsetRelationshipFlag
( characterId: string, flag: string, value: boolean | number | string, meta: StatChangeMeta, )
apps/server/src/services/stat-service.ts:129
↓ 92 callersMethodall
(sql: string, ...params: SqlParam[])
apps/server/src/db/sqlite.ts:45
↓ 92 callersFunctiongetOrCreatePlayer
(id: string = DEFAULT_PLAYER_ID)
apps/server/src/services/player-service.ts:15
↓ 82 callersFunctioncreateSession
(input: ConversationCreate)
apps/server/src/services/conversation-service.ts:153
↓ 80 callersFunctionresolvePrompt
(id: PromptId, vars?: Record<string, string>)
apps/server/src/prompt/registry.ts:385
↓ 74 callersFunctioncreateWorld
(input: WorldCreate)
apps/server/src/services/world-service.ts:29
↓ 70 callersFunctionresetDb
()
apps/server/src/test/helpers.ts:8
↓ 66 callersFunctiongetCharacter
(id: string)
apps/server/src/services/character-service.ts:72
↓ 65 callersFunctionparseInput
(schema: S, data: unknown)
apps/server/src/lib/validate.ts:5
↓ 64 callersFunctionpost
(path: string, body?: unknown)
apps/web/src/lib/api.ts:168
↓ 59 callersFunctionj
(v: unknown)
apps/server/src/db/repositories.ts:79
↓ 53 callersFunctioncard
(rank: Rank, suit: Suit = 'spades')
packages/shared/src/gambling.test.ts:27
↓ 53 callersFunctionget
(path: string)
apps/web/src/lib/api.ts:167
↓ 50 callersFunctionapplyRelationshipChange
( characterId: string, deltas: Partial<Record<RelationshipStatKey, number>>, meta: StatChangeMeta, )
apps/server/src/services/stat-service.ts:41
↓ 50 callersFunctioncallStructuredLlm
( schema: S, messages: ChatMessage[], options: StructuredCallOptions, )
apps/server/src/llm/structured.ts:190
↓ 50 callersFunctiongetLlmSettings
()
apps/server/src/services/settings-service.ts:16
↓ 42 callersFunctionaddPlayerMessage
(sessionId: string, text: string, intent?: Intent)
apps/server/src/services/conversation-service.ts:284
↓ 42 callersMethodresolve
(submission: unknown, state: unknown)
apps/server/src/minigames/registry.ts:51
↓ 40 callersFunctionplayerIdForWorldOrDefault
(worldId: string | null | undefined)
apps/server/src/lib/ids.ts:23
↓ 39 callersFunctionmsg
(role: Message['role'], text: string, meta: Record<string, unknown> = {})
apps/server/src/services/bench/fixtures.ts:167
↓ 38 callersFunctionset
(key: K, value: Form[K])
apps/web/src/pages/CharacterEditor.tsx:191
↓ 38 callersFunctionuseAppData
()
apps/web/src/state/app-context.tsx:458
↓ 36 callersFunctionchar
( id: string, name: string, opts: { links?: Character['links']; style?: RelationshipStyle; e
apps/server/src/services/world-sim-social.test.ts:35
↓ 35 callersFunctioncreateShopItem
(input: ShopItemCreate)
apps/server/src/services/shop-service.ts:55
↓ 35 callersFunctionupdateCharacter
(id: string, patch: CharacterUpdate)
apps/server/src/services/character-service.ts:428
↓ 34 callersFunctioncreateProperty
(input: PropertyCreate)
apps/server/src/services/property-service.ts:52
↓ 34 callersFunctionfromJson
(v: unknown, fallback: T)
apps/server/src/db/repositories.ts:80
↓ 32 callersFunctiononChange
(e: React.ChangeEvent<HTMLTextAreaElement>)
apps/web/src/components/minigames/WriterGame.tsx:37
↓ 32 callersFunctionrequireFeature
(worldId: string, key: FeatureKey)
apps/server/src/services/world-feature-service.ts:24
↓ 32 callersFunctionsimulateWorldDay
( worldId: string, simDay: number, rng: SeededRandom = hashFloat, )
apps/server/src/services/world-sim-service.ts:107
↓ 30 callersMethodchat
Single-shot completion.
apps/server/src/llm/types.ts:74
↓ 29 callersMethodtransaction
(fn: () => T)
apps/server/src/db/sqlite.ts:46
↓ 28 callersFunctionlistMemories
(characterId: string)
apps/server/src/services/memory-service.ts:16
↓ 28 callersFunctionreact
(postId: string, actor: string, kind: 'like' | 'love' | 'laugh' | 'wow' | 'sad' | 'angry', day: number, offset
apps/server/src/mock-world.ts:1025
↓ 27 callersFunctionnStr
(v: unknown)
apps/server/src/db/repositories.ts:91
↓ 27 callersFunctionnotFound
(message = 'We couldn’t find what you were looking for.')
apps/server/src/lib/errors.ts:16
↓ 27 callersFunctionturnRapportDelta
(engagement: number, opts: { guardedness?: number } = {})
packages/shared/src/date-dynamics.ts:105
↓ 26 callersFunctionaddEvent
(type: string, payload: Record<string, unknown>, createdAt: number)
apps/server/src/mock-world.ts:188
↓ 26 callersFunctionaddMoney
(amount: number, id: string = DEFAULT_PLAYER_ID)
apps/server/src/services/player-service.ts:40
↓ 26 callersFunctionadvanceDay
(worldId: string, expectedDay?: number)
apps/server/src/services/world-clock-service.ts:154
↓ 26 callersFunctionrng
(seed: string)
apps/server/src/services/feed.test.ts:296
↓ 25 callersFunctioncurrentStatus
(rel: FlagBag)
packages/shared/src/social.ts:773
↓ 25 callersFunctionderiveCalendar
(day: number)
packages/shared/src/time.ts:99
↓ 25 callersFunctionisBrokenUp
(rel: FlagBag)
packages/shared/src/social.ts:860
↓ 25 callersFunctionrunBenchCase
( req: Pick<BenchRunCaseRequest, 'caseId' | 'llmPlayer' | 'dialogueTurns'> & { promptOverrides?: BenchRu
apps/server/src/services/bench/runner.ts:435
↓ 25 callersFunctionsend
(event: string, data: unknown)
apps/server/src/routes/conversations.ts:83
↓ 23 callersFunctionbandIndex
(key: WarmthBandKey)
packages/shared/src/social.ts:603
↓ 23 callersFunctiongenerateFeedForDay
( worldId: string, day: number, playerId: string = DEFAULT_PLAYER_ID, rng: SeededRandom = hashFloat, )
apps/server/src/services/feed-service.ts:115
↓ 23 callersFunctiongetWorld
(id: string)
apps/server/src/services/world-service.ts:23
↓ 23 callersFunctionrelLine
(rel: Relationship)
apps/server/src/services/bench/cases.ts:204
↓ 23 callersFunctionvenueCost
(tier: number | null | undefined)
packages/shared/src/venues.ts:42
↓ 23 callersFunctionworldQuery
(worldId?: string)
apps/web/src/lib/api.ts:175
↓ 22 callersFunctioncomment
(postId: string, author: string, body: string, tone: string, day: number, offsetMin: number)
apps/server/src/mock-world.ts:1017
↓ 21 callersFunctionwarmthOf
(rel: WarmthStats)
packages/shared/src/social.ts:537
↓ 20 callersFunctionendSession
(sessionId: string)
apps/server/src/services/conversation-service.ts:1220
↓ 20 callersFunctionensureRelationship
( characterId: string, playerId: string = DEFAULT_PLAYER_ID, )
apps/server/src/services/relationship-service.ts:11
↓ 20 callersMethodexec
(sql: string)
apps/server/src/db/sqlite.ts:42
↓ 20 callersFunctiongetWorldState
(worldId: string)
apps/server/src/services/world-clock-service.ts:80
↓ 20 callersFunctionperformActivity
(input: PerformActivity)
apps/server/src/services/activity-service.ts:61
↓ 20 callersFunctionspendMoney
(amount: number, id: string = DEFAULT_PLAYER_ID)
apps/server/src/services/player-service.ts:90
↓ 19 callersFunctionaddMemory
( characterId: string, text: string, importance: number, tags: string[], createdAt: number, // Mem
apps/server/src/mock-world.ts:151
↓ 19 callersFunctionbullet
(items: string[])
apps/server/src/prompt/prompt-builder.ts:146
↓ 19 callersFunctionenv
(over: Partial<DraftEnvelope> = {})
apps/web/src/lib/drafts.test.ts:49
↓ 19 callersFunctiongetOrCreateThread
(characterId: string, playerId: string = DEFAULT_PLAYER_ID)
apps/server/src/services/text-message-service.ts:75
↓ 19 callersFunctionsendPlayerText
( characterId: string, text: string, imageAssetId: string | null = null, playerId: string = DEFAULT_PL
apps/server/src/services/text-message-service.ts:243
↓ 18 callersFunctioncreateCompany
(input: CompanyCreate)
apps/server/src/services/market-service.ts:62
↓ 18 callersFunctionlinkTo
(links: readonly CharacterLink[], targetId: string)
packages/shared/src/social.ts:102
↓ 18 callersFunctionmoneyOf
(worldId: string)
apps/server/src/services/wealth.test.ts:40
↓ 18 callersFunctionrunDailyWealth
( worldId: string, newDay: number, endedDayEvents: GameEvent[], )
apps/server/src/services/wealth-service.ts:70
↓ 18 callersFunctiontieFor
(web: { nodes: Array<{ id: string; ties: Array<{ targetId: string; kind: string; derived: boolean; incoming?:
apps/server/src/services/social-web.test.ts:328
↓ 17 callersFunctionaddDateEval
Record a date's session-evaluation event and return its id (used as the * sourceEventId for memories captured on that date — exactly as endSession d
apps/server/src/mock-world.ts:195
↓ 17 callersFunctioncasinoWorld
(balance = 10_000, config?: { maxBet?: number; dailyWagerLimit?: number })
apps/server/src/services/gambling.test.ts:22
↓ 17 callersFunctioncommentReply
(body: string, tone = 'warm')
apps/server/src/services/feed.test.ts:90
↓ 17 callersFunctionisMemorialized
(rel: Relationship)
packages/shared/src/crisis.ts:67
↓ 17 callersFunctionnameFor
(characterId: unknown)
apps/server/src/lib/day-events.ts:47
↓ 17 callersFunctionperson
(worldId: string | null, name: string)
apps/server/src/services/reciprocal-links.test.ts:8
↓ 17 callersFunctionrelationshipStage
(rel: WarmthStats)
packages/shared/src/social.ts:699
↓ 17 callersFunctionrichWorld
(money = 200_000)
apps/server/src/services/wealth.test.ts:33
↓ 16 callersFunctionattractedToGender
(viewer: Orientation, targetGender: Gender)
packages/shared/src/social.ts:655
↓ 16 callersFunctionchar
(id: string, name: string, opts: { job?: Job; links?: Character['links'] } = {})
apps/server/src/services/world-sim.test.ts:27
↓ 16 callersFunctioncharacterBrief
(c: Character, register: 'text' | 'speech' = 'text')
apps/server/src/prompt/prompt-builder.ts:786
↓ 16 callersFunctionfinishMinigame
(input: MinigameFinish)
apps/server/src/services/minigame-service.ts:118
↓ 16 callersFunctiongetSession
(id: string)
apps/server/src/services/conversation-service.ts:236
↓ 16 callersFunctionhasDated
(characterId: string)
apps/server/src/services/text-message-service.ts:46
next →1–100 of 1,633, ranked by callers