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
Function
decayRelationshipBuffs
(characterId: string)
apps/server/src/services/stat-service.ts:160
↓ 1 callers
Function
defaultBaseline
(spec: BenchBaselineSpec)
apps/web/src/pages/Bench.tsx:52
↓ 1 callers
Function
del
(id: string)
apps/web/src/pages/Bench.tsx:616
↓ 1 callers
Function
deleteCharacter
(id: string)
apps/server/src/services/character-service.ts:496
↓ 1 callers
Function
deleteCompany
(id: string)
apps/server/src/services/market-service.ts:81
↓ 1 callers
Function
deleteMemory
(id: string)
apps/server/src/services/memory-service.ts:85
↓ 1 callers
Function
deleteProperty
(id: string)
apps/server/src/services/property-service.ts:76
↓ 1 callers
Function
deleteShopItem
(id: string)
apps/server/src/services/shop-service.ts:67
↓ 1 callers
Function
deleteWorldNote
(id: string)
apps/server/src/services/world-service.ts:159
↓ 1 callers
Function
deliverCrisisTextsForDay
(worldId: string, day: number, playerId: string = DEFAULT_PLAYER_ID)
apps/server/src/services/crisis-service.ts:226
↓ 1 callers
Function
deliverRelationshipBeat
* Deliver a relationship turning-point text (on-the-rocks warning / breakup / * reconcile). These are SERVER-decided beats that must arrive reliably,
apps/server/src/services/text-generation-service.ts:52
↓ 1 callers
Function
deriveBattery
Derive a plausible battery % from the world's daily stamina consumption. * Full stamina = high battery; spent stamina = draining battery. * Falls
apps/web/src/pages/Phone.tsx:66
↓ 1 callers
Function
despairEligible
(rel: Relationship)
packages/shared/src/crisis.ts:59
↓ 1 callers
Function
despairFromBreakup
(characterId: string, priorBreakups: number, day = 0)
apps/server/src/services/crisis-service.ts:82
↓ 1 callers
Function
difficultyFor
Board size scales with how close you are — the game deepens with the bond.
apps/server/src/minigames/memory-match.ts:73
↓ 1 callers
Function
discardDraft
(env: DraftEnvelope)
apps/web/src/pages/Characters.tsx:81
↓ 1 callers
Function
discover
Discover world + character ids straight from the API (via the web proxy).
tools/screenshots/capture.mjs:39
↓ 1 callers
Function
dispatch
(block: string)
apps/web/src/lib/api.ts:313
↓ 1 callers
Function
doEndLease
(pv: PropertyView)
apps/web/src/components/phone/PropertyApp.tsx:130
↓ 1 callers
Function
downscaleImageFile
(file: File, maxHeight = CHAT_IMAGE_MAX_HEIGHT)
apps/web/src/lib/image.ts:18
↓ 1 callers
Function
duplicate
(id: string)
apps/web/src/pages/Characters.tsx:94
↓ 1 callers
Function
duplicate
()
apps/web/src/pages/CharacterProfile.tsx:87
↓ 1 callers
Function
duplicateCharacter
(id: string)
apps/server/src/services/character-service.ts:437
↓ 1 callers
Function
endSessionInner
(sessionId: string)
apps/server/src/services/conversation-service.ts:1229
↓ 1 callers
Function
endingEligible
(rel: WarmthStats & FlagBag)
packages/shared/src/social.ts:877
↓ 1 callers
Function
engagedWorldChars
Engaged characters in a world (the player has actually dated them).
apps/server/src/services/feed-service.ts:101
↓ 1 callers
Function
ensureDayRecords
(worldId: string)
apps/server/src/services/day-record-service.ts:163
↓ 1 callers
Function
ensureRapportSeeded
(sessionId: string, guardedness = 0)
apps/server/src/services/rapport-service.ts:96
↓ 1 callers
Function
enter
(id: string)
apps/web/src/pages/WorldSelector.tsx:47
↓ 1 callers
Function
estimatePrompts
(req: PromptEstimateRequest)
apps/server/src/services/prompt-estimator-service.ts:184
↓ 1 callers
Function
evalReply
(deltas: object)
apps/server/src/services/conversation-concurrency.test.ts:30
↓ 1 callers
Function
eventShockFor
A bounded price shock from the prior day's events touching this company's linked * character — the deterministic core of "the market reacts to the w
apps/server/src/services/wealth-service.ts:46
↓ 1 callers
Function
expressionLabel
(e: string)
apps/web/src/i18n/labels.ts:64
↓ 1 callers
Function
failedResult
(def: BenchCaseDef, message: string)
apps/server/src/services/bench/runner.ts:421
↓ 1 callers
Function
fallbackCommission
Deterministic, world-flavored copy used when no world exists or generation fails.
apps/server/src/minigames/writer.ts:94
↓ 1 callers
Function
fallbackQuestions
Deterministic fallback questions used when no world exists or generation fails.
apps/server/src/minigames/lore-quiz.ts:80
↓ 1 callers
Function
fallbackRounds
Deterministic fallback rounds built from real traits (or generic if none).
apps/server/src/minigames/two-truths-a-lie.ts:63
↓ 1 callers
Function
favoriteMinigameFor
(character: Character)
apps/server/src/minigames/reactions.ts:31
↓ 1 callers
Function
featureOk
(id: AppDef['id'])
apps/web/src/pages/Phone.tsx:136
↓ 1 callers
Function
fidelityPhrase
(fidelity: number, tt: TFn)
apps/web/src/components/phone/ConstellationApp.tsx:754
↓ 1 callers
Function
fillTokens
Replace every `{{token}}` from the provided map; unknown tokens are left intact * (defensive — a stray brace in authored text never throws or vanish
apps/server/src/prompt/registry.ts:87
↓ 1 callers
Function
fillerMessages
A full conversation window of filler, for the worst-case (simulateFull) estimate.
apps/server/src/services/prompt-estimator-service.ts:80
↓ 1 callers
Function
fillerTexts
A full recent-texts thread of filler (worst-case phone-prompt history).
apps/server/src/services/prompt-estimator-service.ts:99
↓ 1 callers
Function
finish
()
apps/web/src/components/minigames/RhythmSerenade.tsx:32
↓ 1 callers
Function
fmtDate
(ms: number, lang: string)
apps/web/src/components/ShareTools.tsx:18
↓ 1 callers
Function
fmtPct
(pct: number)
apps/web/src/components/phone/MarketApp.tsx:30
↓ 1 callers
Function
forbidden
(message = 'This feature isn’t enabled for this world.')
apps/server/src/lib/errors.ts:15
↓ 1 callers
Function
formatEventsForRecap
(events: GameEvent[])
apps/server/src/lib/day-events.ts:187
↓ 1 callers
Function
formatZodError
(err: z.ZodError)
apps/server/src/llm/structured.ts:87
↓ 1 callers
Function
frictionChance
(affinity: number)
packages/shared/src/social.ts:270
↓ 1 callers
Function
friendsOfFriends
Ids of the character's friends' friends (excluding self + direct connections).
apps/server/src/services/world-sim-service.ts:493
↓ 1 callers
Function
gamblingRoutes
(app: FastifyInstance)
apps/server/src/routes/gambling.ts:29
↓ 1 callers
Function
gatherFacts
Build categorized (cue -> reveal) facts from real character/world data.
apps/server/src/minigames/memory-match.ts:50
↓ 1 callers
Function
generateCharacterProfile
( input: GenerateProfileInput, )
apps/server/src/services/character-service.ts:548
↓ 1 callers
Function
generateCompanies
( input: GenerateCompaniesParsed, worldId: string, )
apps/server/src/services/market-service.ts:242
↓ 1 callers
Function
generateDatingStats
( input: GenerateDatingStatsInput, )
apps/server/src/services/character-service.ts:506
↓ 1 callers
Function
generateDayRecap
( day: number, events: GameEvent[], worldSim: WorldSimResult | null = null, )
apps/server/src/services/world-clock-service.ts:268
↓ 1 callers
Function
generateLocations
( worldId: string, input: GenerateLocationsInput, )
apps/server/src/services/location-service.ts:52
↓ 1 callers
Function
generateMarketNews
(worldId: string, day: number)
apps/server/src/services/market-service.ts:265
↓ 1 callers
Function
generateNpcEngagement
* After the day's NPC posts exist, let socially-connected characters COMMENT on * and REACT to each other's posts — friends/family warmly, exes/rival
apps/server/src/services/feed-service.ts:503
↓ 1 callers
Function
generateProperties
( input: GeneratePropertiesParsed, worldId: string, )
apps/server/src/services/property-service.ts:306
↓ 1 callers
Function
generateReply
(sessionId: string)
apps/server/src/services/conversation-service.ts:515
↓ 1 callers
Function
generateWorld
(input: GenerateWorldInput)
apps/server/src/services/location-service.ts:105
↓ 1 callers
Function
getCharacterBundle
(id: string)
apps/server/src/services/character-service.ts:729
↓ 1 callers
Function
getLandlordInbox
(worldId: string, playerId: string)
apps/server/src/services/landlord-notice-service.ts:43
↓ 1 callers
Function
getPromptCatalog
()
apps/server/src/services/prompt-override-service.ts:26
↓ 1 callers
Function
getThreadView
(characterId: string, playerId: string = DEFAULT_PLAYER_ID)
apps/server/src/services/text-message-service.ts:202
↓ 1 callers
Function
getWorldWeather
(worldId: string, days = 5)
apps/server/src/services/ambiance-service.ts:126
↓ 1 callers
Function
giftChance
(rel: Pick<WarmthStats, 'affection' | 'trust' | 'chemistry' | 'comfort' | 'respect'>)
packages/shared/src/social.ts:731
↓ 1 callers
Function
giftSentiment
Server-derived read of how a gift landed, from the deltas actually applied.
apps/server/src/services/gift-service.ts:39
↓ 1 callers
Function
gitCommit
()
apps/web/vite.config.ts:17
↓ 1 callers
Function
giveGift
(inventoryItemId: string)
apps/web/src/pages/Chat.tsx:825
↓ 1 callers
Function
greetingKeyForPhase
A warm, phase-aware home greeting — the cover line of the almanac. Returns a * catalog key under `phone.greeting.*` so the line localizes with the U
apps/web/src/pages/Phone.tsx:82
↓ 1 callers
Function
guardednessDescriptorLabel
(guardedness = 0)
apps/web/src/i18n/labels.ts:71
↓ 1 callers
Function
handleFile
(file: File)
apps/web/src/components/AssetPicker.tsx:41
↓ 1 callers
Function
hasMaxLength
(node: unknown)
apps/server/src/llm/structured.test.ts:142
↓ 1 callers
Function
hasModel
(id: string)
apps/web/src/components/ConnectionConsole.tsx:71
↓ 1 callers
Function
healthRoutes
(app: FastifyInstance)
apps/server/src/routes/health.ts:4
↓ 1 callers
Function
heardAboutPlayer
* Word about the PLAYER that has reached this character SECONDHAND (through a mutual), * for the "wait — you're the one Mara mentioned?" recognition
apps/server/src/services/conversation-service.ts:401
↓ 1 callers
Function
heardLately
* The world-sim news this character is currently carrying, resolved for the prompt. * Surfaces only news ABOUT OTHER CHARACTERS (not the player — tha
apps/server/src/services/conversation-service.ts:376
↓ 1 callers
Function
holdingPnL
(shares: number, price: number, costBasis: number)
packages/shared/src/wealth.ts:155
↓ 1 callers
Function
idbDel
(key: string)
apps/web/src/lib/idb-kv.ts:42
↓ 1 callers
Function
importData
(file: File)
apps/web/src/pages/Debug.tsx:88
↓ 1 callers
Function
importWorldPayload
Insert a world payload as a brand-new world: world + notes + cast + authored * property/company content, all with fresh ids and references remapped.
apps/server/src/services/pack-service.ts:469
↓ 1 callers
Function
initials
(name: string)
apps/web/src/components/Portrait.tsx:5
↓ 1 callers
Function
installPhoto
(file: string, altText: string)
apps/server/src/mock-world.ts:129
↓ 1 callers
Function
isAllowedMime
(mime: string)
apps/server/src/services/asset-service.ts:21
↓ 1 callers
Function
isInvolved
Only capture once you're actually involved — dating+ OR into the romantic bands — * so a single awkward first chat doesn't seed gossip about you.
apps/server/src/services/player-fact-service.ts:43
↓ 1 callers
Function
isMemorializedChar
A memorialized character is permanently gone — never available.
apps/server/src/services/availability-service.ts:24
↓ 1 callers
Function
isRedSuit
(suit: Suit)
packages/shared/src/gambling.ts:62
↓ 1 callers
Function
isResponseFormatError
Heuristic: did the server reject the request specifically over the structured * -output directive? Covers the OpenAI `response_format` field and Anth
apps/server/src/llm/structured.ts:157
↓ 1 callers
Function
kindNounKey
(kind: PackInspectResult['kind'])
apps/web/src/components/ShareTools.tsx:14
↓ 1 callers
Function
knowledgeSituation
Build the SITUATION for a feed post where a character shares neighborhood news.
apps/server/src/services/feed-service.ts:279
↓ 1 callers
Function
latestTranscript
The character's most recent real transcript (capped like the runtime does), or * [] when they've never been talked to.
apps/server/src/services/prompt-estimator-service.ts:67
↓ 1 callers
Function
layout
* A tiny deterministic force layout in a normalized 100×100 space: seeded ring * starts, then repulsion + edge springs + a gentle pull to center, wit
apps/web/src/components/phone/ConstellationApp.tsx:125
↓ 1 callers
Function
levelToNumeric
(c: ConfidenceLevel)
apps/web/src/components/minigames/MinigameShell.tsx:91
↓ 1 callers
Function
listActiveBuffs
( flags: FlagMap, )
packages/shared/src/buffs.ts:75
↓ 1 callers
Function
listActivities
()
apps/server/src/services/activity-service.ts:34
↓ 1 callers
Function
listCanonFactsForCharacter
(characterId: string)
apps/server/src/services/ex-canon-service.ts:58
↓ 1 callers
Function
listCanonFactsForPrompt
( characterId: string, )
apps/server/src/services/ex-canon-service.ts:48
← previous
next →
901–1,000 of 1,633, ranked by callers