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
↓ 2 callers
Function
isFalsey
Treat only an explicit "false"/"0" query value as false; absent/anything else is true.
apps/server/src/routes/packs.ts:116
↓ 2 callers
Function
isFirstMeeting
* True when this is the player's FIRST date with the character — they've never * actually met, so the character can't know the player's name or anyth
apps/server/src/services/conversation-service.ts:429
↓ 2 callers
Function
isPoly
(id: string)
apps/server/src/services/world-sim-service.ts:225
↓ 2 callers
Function
item
(name: string)
apps/server/src/services/data-export-import.test.ts:11
↓ 2 callers
Function
joinCounts
Join localized "N thing" fragments (ICU-pluralized) with ' · ', dropping zeros.
apps/web/src/components/ShareTools.tsx:28
↓ 2 callers
Function
joinNames
Natural-language join of a few names ("Bea", "Bea and Cy", "Bea, Cy and Dee").
apps/server/src/prompt/prompt-builder.ts:869
↓ 2 callers
Function
joinNames
Join names as "Alice", "Alice and Bob", or "Alice, Bob, and Carol"; a long list * collapses to "…, and N others" so a chatty day can't run on.
apps/server/src/lib/day-events.ts:115
↓ 2 callers
Function
key
(l: CharacterLink)
apps/server/src/services/character-service.ts:395
↓ 2 callers
Method
key
(i: number)
apps/web/src/lib/drafts.test.ts:25
↓ 2 callers
Function
labelFor
(key: string, t: TFn)
apps/web/src/components/phone/gambling/RouletteGame.tsx:42
↓ 2 callers
Function
lines
(o: object)
apps/server/src/services/world-sim-color.test.ts:39
↓ 2 callers
Function
link
(x: string, y: string)
apps/web/src/components/phone/ConstellationApp.tsx:259
↓ 2 callers
Function
linkPairs
(c: { links: Array<{ targetId: string; kind: string }> })
apps/server/src/services/pack.test.ts:35
↓ 2 callers
Function
listAssets
()
apps/server/src/services/asset-service.ts:88
↓ 2 callers
Function
listMemorialCharacterIds
(worldId?: string, playerId: string = DEFAULT_PLAYER_ID)
apps/server/src/services/crisis-service.ts:55
↓ 2 callers
Function
listSessions
()
apps/server/src/services/conversation-service.ts:242
↓ 2 callers
Function
load
()
apps/web/src/pages/Bench.tsx:585
↓ 2 callers
Function
load
()
apps/web/src/pages/Inventory.tsx:29
↓ 2 callers
Function
loadCatalog
(locale: string, namespace: string)
apps/web/src/i18n/index.ts:17
↓ 2 callers
Function
loadEvents
()
apps/web/src/pages/Debug.tsx:50
↓ 2 callers
Function
loadModels
(key: string)
apps/web/src/pages/Settings.tsx:279
↓ 2 callers
Function
makeClose
Bump a relationship past the jealousy floor (warmth >= 45, the "getting close" band).
apps/server/src/services/phase3.test.ts:23
↓ 2 callers
Function
makeIntimate
Bump a relationship into the intimacy-permissible band (warmth >= 65, low tension).
apps/server/src/services/phase3.test.ts:14
↓ 2 callers
Function
makeMessage
(role: Message['role'], text: string)
apps/server/src/services/bench/runner.ts:207
↓ 2 callers
Function
makePeak
Put a relationship at its committed peak (cohabiting + sweethearts + calm).
apps/server/src/services/ending.test.ts:9
↓ 2 callers
Function
makePhoto
()
apps/server/src/services/text-image.test.ts:33
↓ 2 callers
Function
markSimmed
Stamp the world as simulated for `simDay`, re-reading fresh state first so we * never clobber a concurrent day/stamina write (advanceDay updates jus
apps/server/src/services/world-sim-service.ts:486
↓ 2 callers
Function
materializeAssets
* Write each portable image to the uploads dir under a FRESH server-generated name * (via the audited {@link saveUploadedAsset}) and return an old-id
apps/server/src/services/pack-service.ts:382
↓ 2 callers
Function
maxDividendForPrice
(basePrice: number)
packages/shared/src/wealth.ts:143
↓ 2 callers
Function
maybePoachPlayerInterest
* Contested singles — "you snoozed, you lost". When NPC `x` pairs off with `partner`, * if the PLAYER had a real but pre-commitment romance with `x`
apps/server/src/services/world-sim-service.ts:574
↓ 2 callers
Function
memorialize
(characterId: string, day: number)
apps/server/src/services/crisis-service.ts:150
↓ 2 callers
Function
messagesChars
Total characters across a message list (text parts only; image data excluded).
apps/server/src/llm/structured.ts:80
↓ 2 callers
Function
mk
(worldId: string, score: number)
apps/server/src/services/per-world-economy.test.ts:61
↓ 2 callers
Function
ndjsonResponse
Build a streaming Response whose body emits the given NDJSON lines.
apps/server/src/llm/ollama-adapter.test.ts:28
↓ 2 callers
Function
nestedFiles
The nested `.hmchr`/`.hmwrld` files to import from a `.hmpack`: the manifest's * listed items, plus any matching entries actually present (deduped,
apps/server/src/services/pack-service.ts:364
↓ 2 callers
Function
netWorth
(worldId: string)
apps/server/src/services/wealth-service.ts:224
↓ 2 callers
Function
newConversation
()
apps/web/src/pages/Chat.tsx:754
↓ 2 callers
Function
nextDtrRung
(rel: WarmthStats & FlagBag)
packages/shared/src/social.ts:788
↓ 2 callers
Function
npcPartnerClause
* The "you're partnered with someone now" clause for the phone surfaces, mirroring * the date prompt's WHERE-THINGS-STAND block so a character the wo
apps/server/src/prompt/prompt-builder.ts:897
↓ 2 callers
Function
onClose
()
apps/server/src/routes/conversations.ts:93
↓ 2 callers
Function
orient
A character's orientation pair, for `mutualAttraction`.
apps/server/src/services/world-sim-service.ts:561
↓ 2 callers
Function
overrideFor
(key: string)
apps/web/src/pages/Settings.tsx:227
↓ 2 callers
Function
parseJsonStrict
(text: string)
apps/server/src/lib/json.ts:20
↓ 2 callers
Function
partialSuffixLen
Longest suffix of `s` that is a proper prefix of `tag` (case-insensitive).
apps/server/src/lib/think-filter.ts:26
↓ 2 callers
Function
persistNsfw
(enabled: boolean)
apps/web/src/pages/Settings.tsx:299
↓ 2 callers
Function
persistTragic
(enabled: boolean)
apps/web/src/pages/Settings.tsx:327
↓ 2 callers
Function
personaTag
A compact, neutral persona tag for the scene LLM (DATA, not free rein) — the * shortest authored hook we have, truncated. Always non-empty.
apps/server/src/services/world-sim-service.ts:513
↓ 2 callers
Function
phaseIndex
(phase: Phase)
packages/shared/src/time.ts:39
↓ 2 callers
Function
pickGossipKnowledge
( characterId: string, worldId: string, )
apps/server/src/services/gossip-service.ts:116
↓ 2 callers
Function
place
(m: Map<string, SocialTie>, target: string)
apps/server/src/services/character-service.ts:200
↓ 2 callers
Function
portraitFor
(cid: string, name: string, assetId: string | null)
apps/web/src/components/phone/ConstellationApp.tsx:802
↓ 2 callers
Function
postShareFile
POST a single uploaded share file (multipart) and read the JSON response.
apps/web/src/lib/api.ts:206
↓ 2 callers
Function
react
(kind: ReactionKind)
apps/web/src/components/phone/FacesApp.tsx:171
↓ 2 callers
Function
reactToGift
(args: { characterId: string; inventoryItemId: string; playerId: string; scene: 'date' | 'text'; /**
apps/server/src/services/gift-service.ts:67
↓ 2 callers
Function
readUploadedArchive
Read the single uploaded file as a Buffer, mapping the multipart "too large" * error onto a friendly 400 instead of a 413/500.
apps/server/src/routes/packs.ts:24
↓ 2 callers
Function
reapStaleActive
* Forfeit any active hand left over from a PRIOR in-world day (its stake was * already debited at deal time), then return a still-live SAME-DAY activ
apps/server/src/services/gambling-service.ts:109
↓ 2 callers
Function
reassemble
Re-read a post by id and assemble its view. Throws 404 if it's gone.
apps/server/src/services/feed-service.ts:856
↓ 2 callers
Function
reciprocalLinkKind
(kind: CharacterLinkKind)
packages/shared/src/social.ts:58
↓ 2 callers
Function
rejectCanonFact
(id: string)
apps/server/src/services/ex-canon-service.ts:63
↓ 2 callers
Function
relationshipStyleLabel
(s: RelationshipStyle | string)
apps/web/src/i18n/labels.ts:59
↓ 2 callers
Function
rentCadenceLabel
(c: RentCadence | string)
apps/web/src/i18n/labels.ts:47
↓ 2 callers
Function
rentCadencePer
(c: RentCadence | string)
apps/web/src/i18n/labels.ts:48
↓ 2 callers
Function
repetitionColor
(v: number)
apps/web/src/pages/Bench.tsx:44
↓ 2 callers
Function
replaceEntry
(updated: PromptCatalogEntry)
apps/web/src/pages/PromptEditor.tsx:75
↓ 2 callers
Function
reply
(o: object)
apps/server/src/services/farewell.test.ts:6
↓ 2 callers
Function
resolveDir
(value: string | undefined, fallback: string)
apps/server/src/config.ts:29
↓ 2 callers
Function
resolveLlmRole
(settings: LlmSettings, role: LlmRole)
packages/shared/src/schemas/settings.ts:257
↓ 2 callers
Function
resolveWeather
(kind: WeatherKind)
packages/shared/src/ambiance.ts:77
↓ 2 callers
Function
resume
(ad: ActiveDate)
apps/web/src/pages/Chat.tsx:350
↓ 2 callers
Function
rollup
Case-level rollup across every call the case made.
apps/server/src/services/bench/runner.ts:137
↓ 2 callers
Function
rowToGamblingRound
(r: Row)
apps/server/src/db/repositories.ts:1968
↓ 2 callers
Function
rowToInventory
(r: Row)
apps/server/src/db/repositories.ts:595
↓ 2 callers
Function
rowToStockPrice
(r: Row)
apps/server/src/db/repositories.ts:1872
↓ 2 callers
Function
rowToText
(r: Row)
apps/server/src/db/repositories.ts:846
↓ 2 callers
Function
rowToThread
(r: Row)
apps/server/src/db/repositories.ts:800
↓ 2 callers
Function
run
(fn: () => Promise<{ view: BlackjackView; wallet: typeof wallet }>)
apps/web/src/components/phone/gambling/BlackjackGame.tsx:31
↓ 2 callers
Function
scale
(rec: Record<string, number>)
apps/server/src/minigames/registry.ts:95
↓ 2 callers
Function
seedHeardAbout
()
apps/server/src/services/player-gossip.test.ts:82
↓ 2 callers
Function
seen
(g: string, knowledgeId: string)
apps/server/src/services/gossip-service.ts:147
↓ 2 callers
Function
setGambling
(key: K, value: GamblingConfig[K])
apps/web/src/pages/WorldEditor.tsx:160
↓ 2 callers
Function
setLastExpression
(sessionId: string, expression: string)
apps/server/src/services/rapport-service.ts:61
↓ 2 callers
Function
setRole
(role: RoleKey, patch: Partial<ConnectionForm>)
apps/web/src/pages/Settings.tsx:177
↓ 2 callers
Function
settle
()
apps/server/src/services/gambling-service.ts:347
↓ 2 callers
Function
shareOnMeeting
`to` learns what `from` does, and may pick up one piece of `from`'s older news. * Word about the PLAYER is deliberately excluded here — it's owned b
apps/server/src/services/world-sim-service.ts:675
↓ 2 callers
Function
sharePlayerKnowledge
* `from` mentions the player to `to`: pass along ONE fresh-enough thing `from` knows * about the player that `to` doesn't already hold, decaying fide
apps/server/src/services/world-sim-service.ts:631
↓ 2 callers
Function
showFeeling
(d: Partial<Record<string, number>>)
apps/web/src/components/phone/MessagesApp.tsx:462
↓ 2 callers
Function
shuffledDeck
(rng: () => number)
packages/shared/src/gambling.ts:110
↓ 2 callers
Function
softTrim
* Trim text to `max` chars on a sentence/word boundary so a salvage never cuts * mid-word: prefer the last sentence end in the back ~40% of the cut,
apps/server/src/services/ending-service.ts:39
↓ 2 callers
Function
spinSlots
(rng: () => number)
packages/shared/src/gambling.ts:351
↓ 2 callers
Function
sseResponse
Build a streaming Response whose body emits the given raw SSE text.
apps/server/src/llm/koboldcpp-adapter.test.ts:28
↓ 2 callers
Function
stableStringify
(value: unknown)
apps/web/src/lib/drafts.ts:199
↓ 2 callers
Function
statLabel
(key: string, kind: 'dating' | 'rel')
apps/web/src/pages/Minigames.tsx:228
↓ 2 callers
Function
stats
(affection: number, rest = 5, tension = 0)
packages/shared/src/social.test.ts:16
↓ 2 callers
Function
statsFrom
Ollama reports nanosecond timings on the final chunk — turn them into the same * GenerationStats (real decode tok/s, time-to-first-token) the bench
apps/server/src/llm/ollama-adapter.ts:142
↓ 2 callers
Function
stockDailyStep
( prevPrice: number, roll01: number, volatility: number, eventShock = 0, )
packages/shared/src/wealth.ts:126
↓ 2 callers
Function
storyFlagParts
(key: string, value: unknown)
packages/shared/src/social.ts:1005
↓ 2 callers
Function
stylePhrase
How a character's relationship STYLE should shape their attitude (esp. toward * polyamory). Fed into every prompt so a monogamous character won't en
apps/server/src/prompt/prompt-builder.ts:118
↓ 2 callers
Function
summarizeRepeatables
(events: GameEvent[])
apps/server/src/lib/day-events.ts:135
↓ 2 callers
Function
summarizeSession
(sessionId: string)
apps/server/src/services/conversation-service.ts:1174
↓ 2 callers
Function
syncReciprocalLinks
* Keep connections MUTUAL: when a character links to another, the other gets the * same link back — EXCEPT `rival`, which is allowed to be one-sided.
apps/server/src/services/character-service.ts:394
← previous
next →
701–800 of 1,633, ranked by callers