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
↓ 3 callers
Function
validateOverride
(id: PromptId, text: string)
apps/server/src/prompt/registry.ts:416
↓ 3 callers
Function
videoPokerDraw
(worldId: string, roundId: string, holds: boolean[], rng: Rng = Math.random)
apps/server/src/services/gambling-service.ts:455
↓ 3 callers
Function
videoPokerPayout
(cards: Card[], bet: number)
packages/shared/src/gambling.ts:272
↓ 3 callers
Function
videoPokerView
(round: GamblingRound)
apps/server/src/services/gambling-service.ts:418
↓ 3 callers
Function
weekdayAbbr
(day: string)
apps/web/src/i18n/labels.ts:42
↓ 2 callers
Function
addLooseCharacters
(p: CharacterPackPayload)
apps/server/src/services/pack-service.ts:568
↓ 2 callers
Function
addWorld
(p: WorldPackPayload)
apps/server/src/services/pack-service.ts:556
↓ 2 callers
Function
allMeasured
True when at least one call generated tokens AND every token-bearing call's speed * was endpoint-measured (so a combined/rolled-up rate is honestly
apps/server/src/services/bench/runner.ts:109
↓ 2 callers
Function
api
(p)
tools/screenshots/capture.mjs:40
↓ 2 callers
Function
applyBreakup
( characterId: string, opts: { day: number; fromStatus: RelationshipStatus; initiator: BreakupInitiator; q
apps/server/src/services/breakup-service.ts:141
↓ 2 callers
Function
applyCharacterDatingChange
( characterId: string, deltas: Partial<Record<DatingStatKey, number>>, meta: StatChangeMeta, )
apps/server/src/services/stat-service.ts:114
↓ 2 callers
Function
applyCharacterUnit
Materialize one character payload's assets + characters into the open transaction, * accumulating into `result`.
apps/server/src/services/pack-service.ts:606
↓ 2 callers
Function
applyDatingDeltas
( current: DatingStats, deltas: Partial<Record<DatingStatKey, number>>, )
packages/shared/src/stats.ts:153
↓ 2 callers
Function
applyPreviewOverrides
(preview: Record<string, string>)
apps/server/src/prompt/registry.ts:367
↓ 2 callers
Function
applyWorldUnit
Materialize one world payload (world + content + optionally its cast) into the * open transaction, accumulating into `result`. When `includeCharacte
apps/server/src/services/pack-service.ts:634
↓ 2 callers
Function
assemble
(raw: Array<{ statements: string[]; lieIdx: number }>, source: 'llm' | 'fallback')
apps/server/src/minigames/two-truths-a-lie.ts:121
↓ 2 callers
Function
backfillWorld
* Reconstruct any completed day (1 … currentDay-1) that has no record yet. Events * are bucketed by their in-world day using the `day_advanced` marke
apps/server/src/services/day-record-service.ts:107
↓ 2 callers
Function
badgeFor
(to: string)
apps/web/src/App.tsx:95
↓ 2 callers
Function
blockOf
(day: number)
apps/web/src/components/phone/CalendarApp.tsx:21
↓ 2 callers
Method
body
(req: ChatRequest, stream: boolean)
apps/server/src/llm/ollama-adapter.ts:193
↓ 2 callers
Method
body
(req: ChatRequest, stream: boolean)
apps/server/src/llm/openai-adapter.ts:65
↓ 2 callers
Method
body
(req: ChatRequest)
apps/server/src/llm/koboldcpp-adapter.ts:203
↓ 2 callers
Method
body
(req: ChatRequest, stream: boolean)
apps/server/src/llm/anthropic-adapter.ts:130
↓ 2 callers
Function
boundGeneratedCompany
(g: GeneratedCompany, worldId: string)
apps/server/src/services/market-service.ts:223
↓ 2 callers
Function
boundGeneratedItem
(g: GeneratedShopItem, input: GenerateShopItemsParsed)
apps/server/src/services/shop-service.ts:303
↓ 2 callers
Function
boundGeneratedProperty
(g: GeneratedProperty, worldId: string)
apps/server/src/services/property-service.ts:273
↓ 2 callers
Function
breakUp
Break up (character-initiated, from strain): apply + return the surfaced outcome.
apps/server/src/services/breakup-service.ts:185
↓ 2 callers
Function
buildApp
(options: BuildAppOptions = {})
apps/server/src/app.ts:36
↓ 2 callers
Function
buildBeats
Collect the day's player-facing beats (+ the world-sim "around town" beats).
apps/server/src/services/day-record-service.ts:36
↓ 2 callers
Function
buildCharacterFromSourcesMessages
(args: { world: Pick<World, 'name' | 'summary' | 'tone' | 'lore' | 'rules' | 'globalNotes'> | null; /** Th
apps/server/src/prompt/prompt-builder.ts:1400
↓ 2 callers
Function
buildChronicleFoldMessages
(args: { characterName: string; playerName: string; existing: string; lines: Array<{ day: number; mode
apps/server/src/prompt/prompt-builder.ts:1474
↓ 2 callers
Function
buildCompanyGenMessages
(input: GenerateCompaniesParsed)
apps/server/src/prompt/prompt-builder.ts:1335
↓ 2 callers
Function
buildEmailBatchMessages
(args: { world: World | null; playerName: string })
apps/server/src/prompt/prompt-builder.ts:1207
↓ 2 callers
Function
buildEpilogueMessages
(args: { character: Character; playerName: string; chronicle: { chronicle: string; recentLines: Array<{
apps/server/src/prompt/prompt-builder.ts:1719
↓ 2 callers
Function
buildExFactMessages
(speakerName: string, characterLines: string[])
apps/server/src/prompt/prompt-builder.ts:734
↓ 2 callers
Function
buildLocationGenMessages
(args: { world: Pick<World, 'name' | 'summary' | 'tone' | 'lore' | 'rules' | 'globalNotes'>; /** Names of
apps/server/src/prompt/prompt-builder.ts:1252
↓ 2 callers
Function
buildMarketNewsMessages
(args: { worldName: string; items: Array<{ ref: string; fact: string }>; })
apps/server/src/prompt/prompt-builder.ts:1358
↓ 2 callers
Function
buildNpcFeedCommentMessages
(args: { commenter: Character; posterName: string; postBody: string; postKind: FeedPostKind; linkKin
apps/server/src/prompt/prompt-builder.ts:1937
↓ 2 callers
Function
buildPlayerFactMessages
(playerName: string, playerLines: string[])
apps/server/src/prompt/prompt-builder.ts:754
↓ 2 callers
Function
buildPropertyGenMessages
(input: GeneratePropertiesParsed)
apps/server/src/prompt/prompt-builder.ts:1312
↓ 2 callers
Function
buildRoomMessages
(c: Character)
apps/server/src/prompt/prompt-builder.ts:1706
↓ 2 callers
Function
buildShopItemGenMessages
(input: GenerateShopItemsParsed)
apps/server/src/prompt/prompt-builder.ts:1222
↓ 2 callers
Function
buildWorldGenMessages
(input: GenerateWorldParsed)
apps/server/src/prompt/prompt-builder.ts:1288
↓ 2 callers
Function
buildWorldSimMessages
(day: number, items: Array<{ ref: string; fact: string }>)
apps/server/src/prompt/prompt-builder.ts:771
↓ 2 callers
Function
bumpDay
(worldId: string)
apps/server/src/services/gambling.test.ts:39
↓ 2 callers
Function
buy
(pv: PropertyView)
apps/web/src/components/phone/PropertyApp.tsx:106
↓ 2 callers
Function
canPair
(x: string, y: string)
apps/server/src/services/world-sim-service.ts:227
↓ 2 callers
Function
cap
(n: number)
apps/server/src/services/minigame-service.ts:56
↓ 2 callers
Function
capturedText
All text content across every captured request (for substring assertions).
apps/server/src/services/feed.test.ts:37
↓ 2 callers
Function
casinoGameLabel
(g: CasinoGame | string)
apps/web/src/i18n/labels.ts:54
↓ 2 callers
Function
charPreview
( c: WorldPackPayload['characters'][number], world: string | null, assets: WorldPackPayload['asset
apps/server/src/services/pack-service.ts:543
↓ 2 callers
Function
chronicleForPrompt
The folded cross-date history for a character, shaped for the phone prompts so * outgoing texts reflect the last date(s) shared (chronicle is world-
apps/server/src/services/text-generation-service.ts:116
↓ 2 callers
Function
clamp
(v: number, lo: number, hi: number)
packages/shared/src/wealth.ts:174
↓ 2 callers
Function
clamp01
(n: number)
apps/server/src/services/bench/cases.ts:224
↓ 2 callers
Function
clamp01
(n: number)
apps/web/src/pages/Bench.tsx:26
↓ 2 callers
Function
clampInt
(v: number, lo: number, hi: number)
packages/shared/src/gambling.ts:514
↓ 2 callers
Function
clampInt
(n: number, lo: number, hi: number)
apps/server/src/services/market-service.ts:218
↓ 2 callers
Function
clampMagnitude
(n: number)
apps/server/src/services/shop-service.ts:269
↓ 2 callers
Function
clampTier
(tier: number | null | undefined)
packages/shared/src/venues.ts:32
↓ 2 callers
Function
cloneWorld
(sourceId: string, name: string)
apps/server/src/services/world-service.ts:49
↓ 2 callers
Function
comboWalk
* Single in-order combo walk shared by the scored pass AND the max-possible * denominator, so the two can never drift (a perfect run is exactly 100).
apps/server/src/minigames/rhythm-serenade.ts:47
↓ 2 callers
Function
commentSituation
Server-composed context line for a comment, derived from relationship flags.
apps/server/src/services/feed-service.ts:718
↓ 2 callers
Function
composeConstellation
(worldId?: string)
apps/server/src/services/character-service.ts:334
↓ 2 callers
Function
composeMeetingMemory
Stitch a meeting gist into a first-person life memory ("Caught up with Mara at the * café — talked about the gallery opening."). The gist is a neutr
apps/server/src/services/world-sim-service.ts:442
↓ 2 callers
Function
currentAvailabilityMap
( characters: Array<{ id: string; worldId: string | null }>, )
apps/server/src/services/availability-service.ts:94
↓ 2 callers
Function
currentDay
(worldId: string)
apps/server/src/services/property-service.ts:36
↓ 2 callers
Function
dateAfterglowLine
* A short-lived "afterglow" nudge so a character's texts honor how their LAST date * left them feeling (the evaluator's mood word) for a day or so, i
apps/server/src/prompt/prompt-builder.ts:855
↓ 2 callers
Function
dateNeedFor
(worldId: string, day: number, characterId: string)
apps/server/src/services/rapport-service.ts:129
↓ 2 callers
Function
dayLabel
(m: TextMessage)
apps/web/src/components/phone/MessagesApp.tsx:630
↓ 2 callers
Function
describeEvent
(e: GameEvent)
apps/server/src/lib/day-events.ts:53
↓ 2 callers
Function
despairStage
(value: number)
packages/shared/src/crisis.ts:48
↓ 2 callers
Function
dryRunSettings
(body: unknown)
apps/server/src/routes/settings.ts:25
↓ 2 callers
Function
edgeKey
Canonical undirected key for an npc_edges pair (matches the repo's a<b order).
apps/server/src/services/feed-service.ts:421
↓ 2 callers
Function
editableWorld
(w: World)
apps/web/src/pages/WorldEditor.tsx:35
↓ 2 callers
Function
emailWhen
Show "Day N" when available; fall back to a short date from the timestamp.
apps/web/src/components/phone/EmailApp.tsx:19
↓ 2 callers
Function
endBase
( evaluated: boolean, evalError: string | null, extra: Partial<EndSessionResponse> = {}, )
apps/server/src/services/conversation-service.ts:1255
↓ 2 callers
Function
endLease
(worldId: string, propertyId: string)
apps/server/src/services/property-service.ts:210
↓ 2 callers
Function
entryFor
(id: string)
apps/server/src/services/prompt-override-service.ts:55
↓ 2 callers
Function
estTokens
(chars: number)
apps/server/src/services/bench/runner.ts:50
↓ 2 callers
Function
evalNoDelta
()
apps/server/src/services/wealth-persistence.test.ts:27
↓ 2 callers
Function
exportBundlePack
(input: { worldIds: string[]; characterIds: string[]; includeCharacters?: boolean; title?: string; n
apps/server/src/services/pack-service.ts:268
↓ 2 callers
Function
fetchSamplers
(root: string)
apps/server/src/routes/settings.ts:62
↓ 2 callers
Function
fmtTps
(n: number | null | undefined)
apps/web/src/pages/Bench.tsx:33
↓ 2 callers
Function
foldChronicle
(characterId: string, playerId: string = DEFAULT_PLAYER_ID)
apps/server/src/services/chronicle-service.ts:86
↓ 2 callers
Function
forecastForWorld
(worldId: string, fromDay: number, days = 5)
apps/server/src/services/ambiance-service.ts:109
↓ 2 callers
Function
free
(self: string, other: string)
apps/server/src/services/world-sim-service.ts:228
↓ 2 callers
Function
generateTextReply
* Generate (and persist) the character's reply to the player's most-recent text in * a thread, then run the IMPARTIAL judge that moves the relationsh
apps/server/src/services/text-message-service.ts:365
↓ 2 callers
Function
getMinigameModule
(id: MinigameId)
apps/server/src/minigames/registry.ts:117
↓ 2 callers
Function
getMoments
(characterId: string)
apps/server/src/services/moments-service.ts:34
↓ 2 callers
Function
getRedactedLlmSettings
()
apps/server/src/services/settings-service.ts:61
↓ 2 callers
Function
grams
(s: string)
apps/server/src/services/bench/runner.ts:164
↓ 2 callers
Function
grievingFriendOf
Find a linked friend/family of the subject who can text the player (has dated).
apps/server/src/services/crisis-service.ts:180
↓ 2 callers
Function
heardConfidence
How surely a character holds a piece of second-hand news, by its fidelity.
apps/server/src/prompt/prompt-builder.ts:159
↓ 2 callers
Function
holdsPlayerKnowledge
True when a character is carrying word about the player still fresh enough to bring up.
apps/server/src/services/world-sim-service.ts:617
↓ 2 callers
Function
humanizeStoryFlag
(key: string, value: unknown)
packages/shared/src/social.ts:1021
↓ 2 callers
Function
imageRoot
(baseUrl?: string)
apps/server/src/routes/settings.ts:57
↓ 2 callers
Function
importCharacterDefs
* Insert a set of character DEFINITIONS as fresh characters in `targetWorldId`, * mirroring {@link cloneCharactersToWorld}: new ids, a clean relation
apps/server/src/services/pack-service.ts:422
↓ 2 callers
Function
indexOfCI
(haystack: string, lowerNeedle: string)
apps/server/src/lib/think-filter.ts:21
↓ 2 callers
Function
installImage
(file: string, altText: string, type: 'portrait' | 'other', tags: string[])
apps/server/src/mock-world.ts:103
↓ 2 callers
Function
intentLabel
(i: Intent | string)
apps/web/src/i18n/labels.ts:60
← previous
next →
601–700 of 1,633, ranked by callers