MCPcopy Create free account

hub / github.com/HMDSimDev/heartmorrow / functions

Functions1,633 in github.com/HMDSimDev/heartmorrow

↓ 2 callersFunctiontoNumber
(v: number | bigint)
apps/server/src/db/sqlite.ts:51
↓ 2 callersFunctiontoggleKind
(k: CharacterLinkKind)
apps/web/src/components/phone/ConstellationApp.tsx:347
↓ 2 callersFunctiontoggleWeather
(kind: string, pref: 'fav' | 'dis')
apps/web/src/pages/CharacterEditor.tsx:205
↓ 2 callersFunctiontopMemoriesFor
A few top memories (importance, then recency) for personalizing a text.
apps/server/src/services/text-generation-service.ts:107
↓ 2 callersFunctiontrimToWord
Trim to `max` chars WITHOUT cutting mid-word: break on the last space, falling * back to a hard cut only for a single over-long token with no space
apps/server/src/services/character-service.ts:584
↓ 2 callersFunctiontryPay
Charge the player's affordable amount, returning whether the charge went through.
apps/server/src/services/wealth-service.ts:151
↓ 2 callersFunctionupdateGenLocation
(i: number, patch: Partial<Location>)
apps/web/src/pages/WorldSelector.tsx:526
↓ 2 callersFunctionupdateGenNote
(i: number, patch: Partial<WorldNoteCreate>)
apps/web/src/pages/WorldSelector.tsx:533
↓ 2 callersFunctionusageFrom
(d: OllamaChatPayload)
apps/server/src/llm/ollama-adapter.ts:129
↓ 2 callersFunctionvideoPokerRankLabel
(r: VideoPokerRank | string)
apps/web/src/i18n/labels.ts:53
↓ 2 callersFunctionweatherIcon
(k: string)
apps/web/src/pages/CharacterProfile.tsx:53
↓ 2 callersFunctionweightFor
(o: Character)
apps/server/src/services/conversation-service.ts:1121
↓ 2 callersFunctionworldNoteScopeLabel
(s: string)
apps/web/src/i18n/labels.ts:66
↓ 1 callersFunction_resetRuns
()
apps/server/src/services/minigame-service.ts:289
↓ 1 callersFunctionactivityRoutes
(app: FastifyInstance)
apps/server/src/routes/activities.ts:7
↓ 1 callersFunctionaddNarratorMessage
Insert a third-person narration "beat" (scene-setting, gift lines, etc.) — not * dialogue. Rendered centered/quiet on the client and fed back to the
apps/server/src/services/conversation-service.ts:316
↓ 1 callersFunctionadvanceToAvailableDay
(worldId: string, characterId: string)
apps/server/src/services/social-web.test.ts:39
↓ 1 callersFunctionadvanceToAvailableDay
* Advance the world clock to a day the given character is available. Availability * is a deterministic hash of (world, day, character), and the world
apps/server/src/services/conversation-concurrency.test.ts:18
↓ 1 callersFunctionambientSituation
* Build the SITUATION for an ambient "life" post. Real people rarely post about * the weather, so this leads with something specific to WHO the chara
apps/server/src/services/feed-service.ts:326
↓ 1 callersFunctionapplyColumnMigrations
Apply additive column migrations only when the column is missing.
apps/server/src/db/index.ts:6
↓ 1 callersFunctionapplyExFact
Validate one extracted fact; write it to canon_facts if it passes. Returns true if written.
apps/server/src/services/ex-canon-service.ts:160
↓ 1 callersFunctionapplyNeglectDecay
(characterId: string, daysNeglected: number, mult = 1)
apps/server/src/services/stat-service.ts:194
↓ 1 callersFunctionapplyWorldNeglect
(worldId: string, currentDay: number)
apps/server/src/services/world-clock-service.ts:300
↓ 1 callersFunctionaround
(stop: number)
apps/web/src/components/phone/gambling/SlotsGame.tsx:22
↓ 1 callersFunctionasZodFlattened
(d: unknown)
apps/web/src/lib/hooks.ts:56
↓ 1 callersFunctionassetRoutes
(app: FastifyInstance)
apps/server/src/routes/assets.ts:8
↓ 1 callersFunctionatPhase
"in the morning" / "at night" — a phase key or label as it reads inside a sentence.
apps/server/src/prompt/prompt-builder.ts:875
↓ 1 callersFunctionattachImage
(file: File)
apps/web/src/components/phone/MessagesApp.tsx:416
↓ 1 callersFunctionattemptDtrInner
(sessionId: string, signal?: AbortSignal)
apps/server/src/services/dtr-service.ts:64
↓ 1 callersFunctionbadgeFor
(id: AppId)
apps/web/src/pages/Phone.tsx:109
↓ 1 callersFunctionbase64FromDataUrl
Pull the raw base64 payload out of a `data:<mime>;base64,<data>` URL. Ollama's * `images` field takes base64 only (no scheme/prefix), and has no rem
apps/server/src/llm/ollama-adapter.ts:67
↓ 1 callersFunctionbatteryLevel
Battery fill level → tint class. Like a real phone: green when full, amber as * it drains, red when low — a non-numeric read on the day's remaining
apps/web/src/pages/Phone.tsx:74
↓ 1 callersFunctionbeatFromEvent
(e: GameEvent)
apps/server/src/lib/day-events.ts:226
↓ 1 callersFunctionbeatQ
(i: number)
apps/server/src/minigames/rhythm-serenade.ts:123
↓ 1 callersFunctionbenchRoutes
(app: FastifyInstance)
apps/server/src/routes/bench.ts:18
↓ 1 callersFunctionboundGeneratedTemplate
* Coerce a generated character template into a server-bounded DRAFT the editor * can safely load: clamp the age to the adult floor, clamp every datin
apps/server/src/services/character-service.ts:612
↓ 1 callersFunctionboundReward
(reward: MinigameReward)
apps/server/src/services/minigame-service.ts:55
↓ 1 callersMethodbuild
(ctx: MinigameBuildContext)
apps/server/src/minigames/registry.ts:50
↓ 1 callersFunctionbuildBaseInstruction
* The per-attempt "base instruction" appended to the messages. In json_schema mode * the server's grammar already enforces the shape, so when `omitSc
apps/server/src/llm/structured.ts:168
↓ 1 callersFunctionbuildCharacterGenMessages
Faithful mirror of the from-text branch of the unified character generator.
apps/server/src/services/bench/cases.ts:432
↓ 1 callersFunctionbuildDespairTextMessages
(args: { character: Character; relationship: Relationship; stage: 'withdrawn' | 'crisis'; playerName:
apps/server/src/prompt/prompt-builder.ts:1744
↓ 1 callersFunctionbuildEnvLlmDefaults
* LLM defaults seeded from the environment. These only set the INITIAL * settings row; afterwards settings are edited live and stored in SQLite.
apps/server/src/config.ts:55
↓ 1 callersFunctionbuildFriendConcernMessages
(args: { friend: Character; subjectName: string; linkKind: string; playerName: string; /** The serve
apps/server/src/prompt/prompt-builder.ts:1768
↓ 1 callersFunctionbuildGenMessages
(ctx: MinigameBuildContext)
apps/server/src/minigames/writer.ts:68
↓ 1 callersFunctionbuildGenMessages
(ctx: MinigameBuildContext)
apps/server/src/minigames/lore-quiz.ts:118
↓ 1 callersFunctionbuildGenMessages
(ctx: MinigameBuildContext)
apps/server/src/minigames/two-truths-a-lie.ts:92
↓ 1 callersFunctionbuildGossipTextMessages
(args: { gossiper: Character; subjectName: string; linkKind: string; news: string; playerName: strin
apps/server/src/prompt/prompt-builder.ts:1789
↓ 1 callersFunctionbuildImageDescriptionMessages
(imageDataUrl: string)
apps/server/src/prompt/prompt-builder.ts:1380
↓ 1 callersFunctionbuildKnowledgeGossipMessages
(args: { gossiper: Character; subjectName: string; claim: string; confident: boolean; playerName: st
apps/server/src/prompt/prompt-builder.ts:1814
↓ 1 callersFunctionbuildMessages
* Split our flat message list into Anthropic's (system, messages) pair. System * messages are pulled out and concatenated; the rest are converted to
apps/server/src/llm/anthropic-adapter.ts:95
↓ 1 callersFunctionbuildMinigameReaction
(args: { character: Character | null; minigameId: MinigameId; grade: Grade; score: number; seed: str
apps/server/src/minigames/reactions.ts:99
↓ 1 callersFunctionbuildModeChain
* Ordered list of structured-output modes to try, starting from the configured * one. If a server rejects the format (e.g. newer LM Studio rejects *
apps/server/src/llm/structured.ts:141
↓ 1 callersFunctionbuildPlayerTurnMessages
The "player persona" prompt for llmPlayer mode (the model plays Robin too).
apps/server/src/services/bench/runner.ts:189
↓ 1 callersFunctionbuildProfileGenMessages
Faithful mirror of the inline character-profile generation prompt.
apps/server/src/services/bench/cases.ts:382
↓ 1 callersFunctionbuildQuizGenMessages
()
apps/server/src/services/bench/cases.ts:339
↓ 1 callersFunctionbuildRelationshipBeatMessages
(args: { character: Character; relationship: Relationship; playerName: string; beat: 'rocks' | 'breaku
apps/server/src/prompt/prompt-builder.ts:1148
↓ 1 callersFunctionbuildResponseFormat
( mode: LlmSettings['structuredMode'], schemaName: string, jsonSchema: unknown, )
apps/server/src/llm/structured.ts:117
↓ 1 callersFunctionbuildSky
Weave the NPC↔NPC web and the player's warmth-threads into one star-field.
apps/web/src/components/phone/ConstellationApp.tsx:223
↓ 1 callersFunctionbuildStrip
(stop: number, len: number)
apps/web/src/components/phone/gambling/SlotsGame.tsx:28
↓ 1 callersFunctionbuildUpdate
()
apps/web/src/pages/Settings.tsx:187
↓ 1 callersFunctionbuildWriterGenMessages
()
apps/server/src/services/bench/cases.ts:361
↓ 1 callersFunctionbuy
(item: ShopItem)
apps/web/src/pages/Shop.tsx:59
↓ 1 callersFunctioncanonical
(value: unknown)
apps/web/src/lib/drafts.ts:188
↓ 1 callersFunctioncanonizedOnDay
Soft anti-grief cap: count canonizations across the world on an in-world day.
apps/server/src/services/ex-canon-service.ts:70
↓ 1 callersFunctioncapWarmthGrowth
Trim a relationship's POSITIVE warmth growth so its warmth never exceeds `cap`. * Only the gains over `prev` are cut (existing warmth is preserved);
apps/server/src/services/stat-service.ts:80
↓ 1 callersFunctioncasinoGameBlurb
(g: CasinoGame | string)
apps/web/src/i18n/labels.ts:63
↓ 1 callersFunctioncharOf
(id: string)
apps/web/src/components/phone/EndingsApp.tsx:33
↓ 1 callersFunctioncharacterQuestions
Questions about THIS character, built from their real traits (no LLM).
apps/server/src/minigames/lore-quiz.ts:54
↓ 1 callersFunctioncharacterRoutes
(app: FastifyInstance)
apps/server/src/routes/characters.ts:38
↓ 1 callersFunctionchargeDueLeases
* Walk the player's active leases as the world enters `newDay`: charge any due rent; * a missed payment flips the lease to `overdue` (a grace clock +
apps/server/src/services/wealth-service.ts:168
↓ 1 callersMethodchat
(req: ChatRequest)
apps/server/src/llm/structured.test.ts:18
↓ 1 callersMethodchat
(_req: ChatRequest)
apps/server/src/test/helpers.ts:22
↓ 1 callersMethodchat
(req: ChatRequest)
apps/server/src/services/character-from-image.test.ts:18
↓ 1 callersMethodchat
(req: ChatRequest)
apps/server/src/services/text-image.test.ts:14
↓ 1 callersMethodchat
()
apps/server/src/services/bench/bench.test.ts:18
↓ 1 callersFunctioncheapWalkoutPrescreen
Cheap no-LLM screen: consider a walkout only for clearly hostile messages, * or crude propositions when the relationship is not warm. When the playe
apps/server/src/services/conversation-service.ts:683
↓ 1 callersFunctionchoose
(choiceIndex: number)
apps/web/src/components/minigames/LoreQuizGame.tsx:24
↓ 1 callersFunctionclaim
(textId: string)
apps/web/src/components/phone/MessagesApp.tsx:632
↓ 1 callersFunctionclean
(s: string)
apps/server/src/minigames/sweet-and-sour.ts:47
↓ 1 callersFunctionclearArcFlags
(characterId: string)
apps/server/src/services/crisis-service.ts:86
↓ 1 callersFunctionclearBaseline
(caseId: string)
apps/web/src/pages/Bench.tsx:829
↓ 1 callersFunctionclick
(cardId: string, pairKey: string)
apps/web/src/components/minigames/MemoryMatchGame.tsx:31
↓ 1 callersFunctionclip
(s: string)
apps/server/src/minigames/memory-match.ts:45
↓ 1 callersFunctioncloneCompaniesToWorld
(sourceWorldId: string, destWorldId: string)
apps/server/src/services/market-service.ts:319
↓ 1 callersFunctionclonePropertiesToWorld
(sourceWorldId: string, destWorldId: string)
apps/server/src/services/property-service.ts:325
↓ 1 callersFunctioncloseNsfwModal
()
apps/web/src/pages/Settings.tsx:314
↓ 1 callersFunctioncloseTragicModal
()
apps/web/src/pages/Settings.tsx:341
↓ 1 callersFunctioncombineCalls
Roll several calls (e.g. a dialogue turn's structured retries) into one metric.
apps/server/src/services/bench/runner.ts:121
↓ 1 callersFunctioncommit
()
apps/web/src/components/ui.tsx:133
↓ 1 callersFunctioncomposeDossier
(characterId: string)
apps/server/src/services/character-service.ts:245
↓ 1 callersFunctioncomputeWorkPay
* Resolve a work shift's pay. The base ({@link ActivityDef.money}) can be: * - scaled by the day's weather for outdoor jobs ({@link ActivityDef.weat
apps/server/src/services/activity-service.ts:153
↓ 1 callersFunctionconsumeInventoryItem
( inventoryItemId: string, playerId: string = DEFAULT_PLAYER_ID, )
apps/server/src/services/shop-service.ts:249
↓ 1 callersMethodcontextLength
Best-effort context length the server reports via `/api/extra/true_max_context_length`.
apps/server/src/llm/koboldcpp-adapter.ts:313
↓ 1 callersFunctionconversationRoutes
(app: FastifyInstance)
apps/server/src/routes/conversations.ts:31
↓ 1 callersFunctioncountEdges
Count the web's UNIQUE connections (an unordered pair + kind).
apps/web/src/components/phone/ConstellationApp.tsx:662
↓ 1 callersFunctioncurrentAvailabilityFor
(character: { id: string; worldId: string | null })
apps/server/src/services/availability-service.ts:82
↓ 1 callersFunctiondataRoutes
(app: FastifyInstance)
apps/server/src/routes/data.ts:9
↓ 1 callersFunctiondatingStatDesc
(k: DatingStatKey | string)
apps/web/src/i18n/labels.ts:67
↓ 1 callersFunctiondatingStatLine
(stats: DatingStats)
apps/server/src/prompt/prompt-builder.ts:150
↓ 1 callersFunctiondecayBuffs
(flags: FlagMap)
packages/shared/src/buffs.ts:53
← previousnext →801–900 of 1,633, ranked by callers