Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HMDSimDev/heartmorrow
/ functions
Functions
1,633 in github.com/HMDSimDev/heartmorrow
⨍
Functions
1,633
◇
Types & classes
179
↓ 1 callers
Method
render
()
apps/web/src/components/ErrorBoundary.tsx:82
↓ 1 callers
Function
renderMistral
Mistral `[INST] … [/INST]` rendering: no system role, so system text is folded into * the first instruction; assistant turns are closed with `</s>`.
apps/server/src/llm/koboldcpp-adapter.ts:136
↓ 1 callers
Function
rentedBuffAmount
(fullBuff: number)
packages/shared/src/wealth.ts:112
↓ 1 callers
Function
resetPromptOverride
(id: string)
apps/server/src/services/prompt-override-service.ts:48
↓ 1 callers
Function
resolveCharacter
Pick the character to build prompts around: the requested one, else the first * one that exists (the estimator is about prompt SHAPE, so any real ch
apps/server/src/services/prompt-estimator-service.ts:54
↓ 1 callers
Function
resolveEx
Resolve which eligible ex a fact is about: a unique named match, or the sole ex if unnamed.
apps/server/src/services/ex-canon-service.ts:141
↓ 1 callers
Function
resolveWorldId
* Resolve the world an event belongs to. Most producers already carry a worldId * (world-clock, world-sim); the date/relationship pipeline carries a
apps/server/src/services/event-service.ts:13
↓ 1 callers
Function
restTapped
(i: number)
apps/server/src/minigames/rhythm-serenade.ts:128
↓ 1 callers
Function
resumeDraft
(env: DraftEnvelope)
apps/web/src/pages/Characters.tsx:87
↓ 1 callers
Function
retry
()
apps/web/src/components/phone/MessagesApp.tsx:551
↓ 1 callers
Function
retry
()
apps/web/src/pages/Chat.tsx:624
↓ 1 callers
Function
romanticCompatFor
(characterId: string)
apps/server/src/services/compatibility-service.ts:19
↓ 1 callers
Method
root
The server root, with a trailing `/v1` or `/api` segment stripped so a URL * copied from the OpenAI-compatible config still resolves correctly.
apps/server/src/llm/ollama-adapter.ts:162
↓ 1 callers
Method
root
()
apps/server/src/llm/koboldcpp-adapter.ts:189
↓ 1 callers
Function
routeKey
A short, stable key for the current screen — drives the per-screen wallpaper.
apps/web/src/App.tsx:46
↓ 1 callers
Function
rowToAsset
(r: Row)
apps/server/src/db/repositories.ts:416
↓ 1 callers
Function
rowToCharacter
(r: Row)
apps/server/src/db/repositories.ts:190
↓ 1 callers
Function
rowToChronicle
(r: Row)
apps/server/src/db/repositories.ts:1004
↓ 1 callers
Function
rowToCompany
(r: Row)
apps/server/src/db/repositories.ts:1761
↓ 1 callers
Function
rowToDayRecord
(r: Row)
apps/server/src/db/repositories.ts:1080
↓ 1 callers
Function
rowToEmail
(r: Row)
apps/server/src/db/repositories.ts:922
↓ 1 callers
Function
rowToEnding
(r: Row)
apps/server/src/db/repositories.ts:1046
↓ 1 callers
Function
rowToFeedPost
(r: Row)
apps/server/src/db/repositories.ts:1176
↓ 1 callers
Function
rowToFeedReaction
(r: Row)
apps/server/src/db/repositories.ts:1321
↓ 1 callers
Function
rowToHolding
(r: Row)
apps/server/src/db/repositories.ts:1815
↓ 1 callers
Function
rowToLease
(r: Row)
apps/server/src/db/repositories.ts:1654
↓ 1 callers
Function
rowToMemory
(r: Row)
apps/server/src/db/repositories.ts:278
↓ 1 callers
Function
rowToNpcEdge
(r: Row)
apps/server/src/db/repositories.ts:1384
↓ 1 callers
Function
rowToOwnership
(r: Row)
apps/server/src/db/repositories.ts:1601
↓ 1 callers
Function
rowToPlayer
(r: Row)
apps/server/src/db/repositories.ts:372
↓ 1 callers
Function
rowToProperty
(r: Row)
apps/server/src/db/repositories.ts:1545
↓ 1 callers
Function
rowToRelationship
(r: Row)
apps/server/src/db/repositories.ts:325
↓ 1 callers
Function
rowToSession
(r: Row)
apps/server/src/db/repositories.ts:452
↓ 1 callers
Function
rowToShopItem
(r: Row)
apps/server/src/db/repositories.ts:548
↓ 1 callers
Function
rowToWorld
(r: Row)
apps/server/src/db/repositories.ts:95
↓ 1 callers
Function
rowToWorldNote
(r: Row)
apps/server/src/db/repositories.ts:144
↓ 1 callers
Function
rowToWorldState
(r: Row)
apps/server/src/db/repositories.ts:758
↓ 1 callers
Function
runDialogue
( def: BenchCaseDef, settings: LlmSettings, dialogueTurns: number, llmPlayer: boolean, signal?: Abor
apps/server/src/services/bench/runner.ts:277
↓ 1 callers
Function
runHealthCheck
(settings: LlmSettings)
apps/server/src/llm/health.ts:9
↓ 1 callers
Function
runSceneColor
* The ONE batched LLM call: rewrite each templated draft beat into a natural line * and, for meetings, return a short `gist` of what they talked abou
apps/server/src/services/world-sim-service.ts:458
↓ 1 callers
Function
runStructured
(def: BenchCaseDef, settings: LlmSettings, signal?: AbortSignal)
apps/server/src/services/bench/runner.ts:214
↓ 1 callers
Function
salvageEpilogue
* Last-ditch salvage for the once-per-relationship epilogue: if strict validation * failed only because the model slightly overshot the length, recov
apps/server/src/services/ending-service.ts:57
↓ 1 callers
Function
sanitizeDisplayName
Keep a human-readable original name for display, stripped of path parts.
apps/server/src/services/asset-service.ts:123
↓ 1 callers
Function
saveBaseline
(caseId: string, value: BenchBaselineValue)
apps/web/src/pages/Bench.tsx:824
↓ 1 callers
Function
savePromptOverride
(id: string, text: string, when: number)
apps/server/src/services/prompt-override-service.ts:32
↓ 1 callers
Function
scoreChoice
One-of-N categorical decision (DTR).
apps/server/src/services/bench/cases.ts:292
↓ 1 callers
Function
seed
()
apps/server/src/seed.ts:19
↓ 1 callers
Function
seedSeeingFact
Seed "you and the partner have been seeing each other" once you're at least dating, * so word that you're taken can spread even with nothing else qu
apps/server/src/services/player-fact-service.ts:143
↓ 1 callers
Function
sell
(pv: PropertyView)
apps/web/src/components/phone/PropertyApp.tsx:112
↓ 1 callers
Function
senderInitial
(name: string)
apps/web/src/components/phone/EmailApp.tsx:12
↓ 1 callers
Function
sensitivityFor
Server-owned sensitivity: 'habit' is touchy by default; the model may UPGRADE * others to touchy but can never DOWNGRADE a baseline-touchy category.
apps/server/src/services/ex-canon-service.ts:43
↓ 1 callers
Function
seq
A fake RNG returning a scripted sequence (last value repeats).
apps/server/src/services/social-web.test.ts:31
↓ 1 callers
Function
set
(patch: Partial<Form>)
apps/web/src/pages/Settings.tsx:175
↓ 1 callers
Function
setCtxWindow
(v: number)
apps/web/src/pages/Debug.tsx:33
↓ 1 callers
Function
setMoney
(amount: number, playerId: string)
apps/server/src/mock-world.ts:362
↓ 1 callers
Function
setNullable
(k: NullableKey, raw: string)
apps/web/src/components/ConnectionConsole.tsx:82
↓ 1 callers
Function
setReciprocalLink
* Mirror one authored connection onto the target so a non-rival connection is * mutual. Same-world only (connections never cross worlds), and we over
apps/server/src/services/character-service.ts:360
↓ 1 callers
Function
setTempBuff
( flags: FlagMap, stat: DatingStatKey, delta: number, durationSessions: number, )
packages/shared/src/buffs.ts:35
↓ 1 callers
Function
settingsRoutes
(app: FastifyInstance)
apps/server/src/routes/settings.ts:12
↓ 1 callers
Function
shopRoutes
(app: FastifyInstance)
apps/server/src/routes/shop.ts:24
↓ 1 callers
Function
shuffle
(arr: T[])
apps/server/src/minigames/memory-match.ts:82
↓ 1 callers
Function
shuffle
(arr: T[])
apps/server/src/minigames/sweet-and-sour.ts:64
↓ 1 callers
Function
shuffleTrio
(statements: string[], lieIdx: number)
apps/server/src/minigames/two-truths-a-lie.ts:110
↓ 1 callers
Function
similarity
Character 3-gram Jaccard similarity (0..1) — high means the texts overlap heavily.
apps/server/src/services/bench/runner.ts:163
↓ 1 callers
Function
sniffImageMime
Confirm the bytes really are the image type they claim (magic numbers). Even a * mismatched image is only ever served statically / shown to a vision
apps/server/src/services/pack-service.ts:115
↓ 1 callers
Function
splitContent
Flatten one message's content into text + any base64 image payloads. KoboldCpp's * `images` field takes raw base64 (no `data:` prefix) and has no re
apps/server/src/llm/koboldcpp-adapter.ts:65
↓ 1 callers
Function
start
(minigameId: MinigameId)
apps/web/src/pages/Minigames.tsx:66
↓ 1 callers
Function
startJob
(g: MinigameInfo)
apps/web/src/components/phone/WorkApp.tsx:107
↓ 1 callers
Function
startLease
(pv: PropertyView)
apps/web/src/components/phone/PropertyApp.tsx:118
↓ 1 callers
Function
stockHoldingsValue
(worldId: string)
apps/server/src/services/market-service.ts:207
↓ 1 callers
Function
straightHighCard
* Return the high-card value of a 5-card straight (0 if not a straight). Handles * the wheel (A-2-3-4-5, high card 5) and ace-high (10-J-Q-K-A, high
packages/shared/src/gambling.ts:282
↓ 1 callers
Function
streamChat
( sessionId: string, text: string, handlers: StreamHandlers, signal?: AbortSignal, intent?: Intent,
apps/web/src/lib/api.ts:240
↓ 1 callers
Function
streamRegenerate
( sessionId: string, handlers: StreamHandlers, signal?: AbortSignal, )
apps/web/src/lib/api.ts:290
↓ 1 callers
Function
streamRetry
( sessionId: string, handlers: StreamHandlers, signal?: AbortSignal, )
apps/web/src/lib/api.ts:267
↓ 1 callers
Function
stripMaxLength
* Deep-clone a JSON-schema tree with every `maxLength` constraint removed. * * In `json_schema` mode the schema becomes a GRAMMAR that constrains de
apps/server/src/llm/structured.ts:104
↓ 1 callers
Function
submit
()
apps/web/src/components/phone/FacesApp.tsx:269
↓ 1 callers
Function
syncHtmlLang
(locale: string)
apps/web/src/i18n/index.ts:34
↓ 1 callers
Function
synthesizeRecap
A deterministic (no-LLM) recap for a reconstructed day, built from its beats.
apps/server/src/services/day-record-service.ts:59
↓ 1 callers
Function
systemText
Flatten any text out of a system message's content (system is a top-level * string in the Anthropic API, never a role inside `messages`).
apps/server/src/llm/anthropic-adapter.ts:80
↓ 1 callers
Function
tap
()
apps/web/src/components/minigames/RhythmSerenade.tsx:38
↓ 1 callers
Function
textBodyForPrompt
A text's body as it should read in a transcript — marks photo attachments so * the model knows an image was sent even though it isn't shown here.
apps/server/src/services/text-message-service.ts:188
↓ 1 callers
Function
thinkValue
Translate the `ollamaThink` setting into the wire `think` value (or undefined to * omit). 'default' → omit; off/on → boolean; a level → that string.
apps/server/src/llm/ollama-adapter.ts:92
↓ 1 callers
Function
tieKind
* How `viewer` relates to `target`, from the viewer's side: their own AUTHORED * link wins, else a world-sim-derived edge — a grown couple → partner,
apps/server/src/services/feed-service.ts:435
↓ 1 callers
Function
tieTitle
(owner: string, peer: string, kind: CharacterLinkKind, tie: SocialTie, tt: TFn)
apps/web/src/components/phone/ConstellationApp.tsx:654
↓ 1 callers
Function
toBlocks
(content: ChatMessage['content'])
apps/server/src/llm/anthropic-adapter.ts:67
↓ 1 callers
Function
toImageSource
Map a `data:<mime>;base64,<data>` or remote URL into an Anthropic image source.
apps/server/src/llm/anthropic-adapter.ts:58
↓ 1 callers
Function
toOllamaFormat
Map our ResponseFormat onto Ollama's `format` field: a raw JSON schema for * json_schema, the literal `"json"` for json_object, nothing for text.
apps/server/src/llm/ollama-adapter.ts:108
↓ 1 callers
Function
togetherNote
How an outing landed, as a keepsake card: a tone + seal + the descriptive line. * Warmth (spark/warm) reads rose; a flat/crowded afternoon reads moo
apps/web/src/components/phone/TogetherApp.tsx:22
↓ 1 callers
Function
toggle
(i: number)
apps/web/src/components/phone/gambling/VideoPokerGame.tsx:70
↓ 1 callers
Function
toggle
(id: string)
apps/web/src/pages/Bench.tsx:814
↓ 1 callers
Function
toggleCompare
(id: string)
apps/web/src/pages/Bench.tsx:599
↓ 1 callers
Function
toggleKeep
(i: number)
apps/web/src/components/phone/PropertyApp.tsx:190
↓ 1 callers
Function
toggleKeep
(i: number)
apps/web/src/pages/Shop.tsx:125
↓ 1 callers
Function
toggleSelect
(id: string)
apps/web/src/pages/WorldSelector.tsx:52
↓ 1 callers
Function
toggleSelect
(id: string)
apps/web/src/pages/Characters.tsx:42
↓ 1 callers
Function
toggleWorkday
(idx: number)
apps/web/src/pages/CharacterEditor.tsx:196
↓ 1 callers
Function
tokenizeEnums
Reverse-derive the editable default from a resolved guardrail constant: replace * the live enum lists with their `{{TOKEN}}` placeholders. The joine
apps/server/src/prompt/registry.ts:77
↓ 1 callers
Function
toneForGrade
(grade: Grade)
apps/server/src/minigames/reactions.ts:49
↓ 1 callers
Function
topicSignals
Build the deterministic topic-weighting signals for a meeting pair.
apps/server/src/services/world-sim-service.ts:603
↓ 1 callers
Function
totalReset
()
apps/web/src/components/phone/SettingsApp.tsx:37
← previous
next →
1,101–1,200 of 1,633, ranked by callers