MCPcopy Create free account

hub / github.com/HMDSimDev/heartmorrow / functions

Functions1,633 in github.com/HMDSimDev/heartmorrow

↓ 2 callersFunctionisFalsey
Treat only an explicit "false"/"0" query value as false; absent/anything else is true.
apps/server/src/routes/packs.ts:116
↓ 2 callersFunctionisFirstMeeting
* 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 callersFunctionisPoly
(id: string)
apps/server/src/services/world-sim-service.ts:225
↓ 2 callersFunctionitem
(name: string)
apps/server/src/services/data-export-import.test.ts:11
↓ 2 callersFunctionjoinCounts
Join localized "N thing" fragments (ICU-pluralized) with ' · ', dropping zeros.
apps/web/src/components/ShareTools.tsx:28
↓ 2 callersFunctionjoinNames
Natural-language join of a few names ("Bea", "Bea and Cy", "Bea, Cy and Dee").
apps/server/src/prompt/prompt-builder.ts:869
↓ 2 callersFunctionjoinNames
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 callersFunctionkey
(l: CharacterLink)
apps/server/src/services/character-service.ts:395
↓ 2 callersMethodkey
(i: number)
apps/web/src/lib/drafts.test.ts:25
↓ 2 callersFunctionlabelFor
(key: string, t: TFn)
apps/web/src/components/phone/gambling/RouletteGame.tsx:42
↓ 2 callersFunctionlines
(o: object)
apps/server/src/services/world-sim-color.test.ts:39
↓ 2 callersFunctionlink
(x: string, y: string)
apps/web/src/components/phone/ConstellationApp.tsx:259
↓ 2 callersFunctionlinkPairs
(c: { links: Array<{ targetId: string; kind: string }> })
apps/server/src/services/pack.test.ts:35
↓ 2 callersFunctionlistAssets
()
apps/server/src/services/asset-service.ts:88
↓ 2 callersFunctionlistMemorialCharacterIds
(worldId?: string, playerId: string = DEFAULT_PLAYER_ID)
apps/server/src/services/crisis-service.ts:55
↓ 2 callersFunctionlistSessions
()
apps/server/src/services/conversation-service.ts:242
↓ 2 callersFunctionload
()
apps/web/src/pages/Bench.tsx:585
↓ 2 callersFunctionload
()
apps/web/src/pages/Inventory.tsx:29
↓ 2 callersFunctionloadCatalog
(locale: string, namespace: string)
apps/web/src/i18n/index.ts:17
↓ 2 callersFunctionloadEvents
()
apps/web/src/pages/Debug.tsx:50
↓ 2 callersFunctionloadModels
(key: string)
apps/web/src/pages/Settings.tsx:279
↓ 2 callersFunctionmakeClose
Bump a relationship past the jealousy floor (warmth >= 45, the "getting close" band).
apps/server/src/services/phase3.test.ts:23
↓ 2 callersFunctionmakeIntimate
Bump a relationship into the intimacy-permissible band (warmth >= 65, low tension).
apps/server/src/services/phase3.test.ts:14
↓ 2 callersFunctionmakeMessage
(role: Message['role'], text: string)
apps/server/src/services/bench/runner.ts:207
↓ 2 callersFunctionmakePeak
Put a relationship at its committed peak (cohabiting + sweethearts + calm).
apps/server/src/services/ending.test.ts:9
↓ 2 callersFunctionmakePhoto
()
apps/server/src/services/text-image.test.ts:33
↓ 2 callersFunctionmarkSimmed
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 callersFunctionmaterializeAssets
* 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 callersFunctionmaxDividendForPrice
(basePrice: number)
packages/shared/src/wealth.ts:143
↓ 2 callersFunctionmaybePoachPlayerInterest
* 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 callersFunctionmemorialize
(characterId: string, day: number)
apps/server/src/services/crisis-service.ts:150
↓ 2 callersFunctionmessagesChars
Total characters across a message list (text parts only; image data excluded).
apps/server/src/llm/structured.ts:80
↓ 2 callersFunctionmk
(worldId: string, score: number)
apps/server/src/services/per-world-economy.test.ts:61
↓ 2 callersFunctionndjsonResponse
Build a streaming Response whose body emits the given NDJSON lines.
apps/server/src/llm/ollama-adapter.test.ts:28
↓ 2 callersFunctionnestedFiles
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 callersFunctionnetWorth
(worldId: string)
apps/server/src/services/wealth-service.ts:224
↓ 2 callersFunctionnewConversation
()
apps/web/src/pages/Chat.tsx:754
↓ 2 callersFunctionnextDtrRung
(rel: WarmthStats & FlagBag)
packages/shared/src/social.ts:788
↓ 2 callersFunctionnpcPartnerClause
* 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 callersFunctiononClose
()
apps/server/src/routes/conversations.ts:93
↓ 2 callersFunctionorient
A character's orientation pair, for `mutualAttraction`.
apps/server/src/services/world-sim-service.ts:561
↓ 2 callersFunctionoverrideFor
(key: string)
apps/web/src/pages/Settings.tsx:227
↓ 2 callersFunctionparseJsonStrict
(text: string)
apps/server/src/lib/json.ts:20
↓ 2 callersFunctionpartialSuffixLen
Longest suffix of `s` that is a proper prefix of `tag` (case-insensitive).
apps/server/src/lib/think-filter.ts:26
↓ 2 callersFunctionpersistNsfw
(enabled: boolean)
apps/web/src/pages/Settings.tsx:299
↓ 2 callersFunctionpersistTragic
(enabled: boolean)
apps/web/src/pages/Settings.tsx:327
↓ 2 callersFunctionpersonaTag
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 callersFunctionphaseIndex
(phase: Phase)
packages/shared/src/time.ts:39
↓ 2 callersFunctionpickGossipKnowledge
( characterId: string, worldId: string, )
apps/server/src/services/gossip-service.ts:116
↓ 2 callersFunctionplace
(m: Map<string, SocialTie>, target: string)
apps/server/src/services/character-service.ts:200
↓ 2 callersFunctionportraitFor
(cid: string, name: string, assetId: string | null)
apps/web/src/components/phone/ConstellationApp.tsx:802
↓ 2 callersFunctionpostShareFile
POST a single uploaded share file (multipart) and read the JSON response.
apps/web/src/lib/api.ts:206
↓ 2 callersFunctionreact
(kind: ReactionKind)
apps/web/src/components/phone/FacesApp.tsx:171
↓ 2 callersFunctionreactToGift
(args: { characterId: string; inventoryItemId: string; playerId: string; scene: 'date' | 'text'; /**
apps/server/src/services/gift-service.ts:67
↓ 2 callersFunctionreadUploadedArchive
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 callersFunctionreapStaleActive
* 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 callersFunctionreassemble
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 callersFunctionreciprocalLinkKind
(kind: CharacterLinkKind)
packages/shared/src/social.ts:58
↓ 2 callersFunctionrejectCanonFact
(id: string)
apps/server/src/services/ex-canon-service.ts:63
↓ 2 callersFunctionrelationshipStyleLabel
(s: RelationshipStyle | string)
apps/web/src/i18n/labels.ts:59
↓ 2 callersFunctionrentCadenceLabel
(c: RentCadence | string)
apps/web/src/i18n/labels.ts:47
↓ 2 callersFunctionrentCadencePer
(c: RentCadence | string)
apps/web/src/i18n/labels.ts:48
↓ 2 callersFunctionrepetitionColor
(v: number)
apps/web/src/pages/Bench.tsx:44
↓ 2 callersFunctionreplaceEntry
(updated: PromptCatalogEntry)
apps/web/src/pages/PromptEditor.tsx:75
↓ 2 callersFunctionreply
(o: object)
apps/server/src/services/farewell.test.ts:6
↓ 2 callersFunctionresolveDir
(value: string | undefined, fallback: string)
apps/server/src/config.ts:29
↓ 2 callersFunctionresolveLlmRole
(settings: LlmSettings, role: LlmRole)
packages/shared/src/schemas/settings.ts:257
↓ 2 callersFunctionresolveWeather
(kind: WeatherKind)
packages/shared/src/ambiance.ts:77
↓ 2 callersFunctionresume
(ad: ActiveDate)
apps/web/src/pages/Chat.tsx:350
↓ 2 callersFunctionrollup
Case-level rollup across every call the case made.
apps/server/src/services/bench/runner.ts:137
↓ 2 callersFunctionrowToGamblingRound
(r: Row)
apps/server/src/db/repositories.ts:1968
↓ 2 callersFunctionrowToInventory
(r: Row)
apps/server/src/db/repositories.ts:595
↓ 2 callersFunctionrowToStockPrice
(r: Row)
apps/server/src/db/repositories.ts:1872
↓ 2 callersFunctionrowToText
(r: Row)
apps/server/src/db/repositories.ts:846
↓ 2 callersFunctionrowToThread
(r: Row)
apps/server/src/db/repositories.ts:800
↓ 2 callersFunctionrun
(fn: () => Promise<{ view: BlackjackView; wallet: typeof wallet }>)
apps/web/src/components/phone/gambling/BlackjackGame.tsx:31
↓ 2 callersFunctionscale
(rec: Record<string, number>)
apps/server/src/minigames/registry.ts:95
↓ 2 callersFunctionseedHeardAbout
()
apps/server/src/services/player-gossip.test.ts:82
↓ 2 callersFunctionseen
(g: string, knowledgeId: string)
apps/server/src/services/gossip-service.ts:147
↓ 2 callersFunctionsetGambling
(key: K, value: GamblingConfig[K])
apps/web/src/pages/WorldEditor.tsx:160
↓ 2 callersFunctionsetLastExpression
(sessionId: string, expression: string)
apps/server/src/services/rapport-service.ts:61
↓ 2 callersFunctionsetRole
(role: RoleKey, patch: Partial<ConnectionForm>)
apps/web/src/pages/Settings.tsx:177
↓ 2 callersFunctionsettle
()
apps/server/src/services/gambling-service.ts:347
↓ 2 callersFunctionshareOnMeeting
`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 callersFunctionsharePlayerKnowledge
* `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 callersFunctionshowFeeling
(d: Partial<Record<string, number>>)
apps/web/src/components/phone/MessagesApp.tsx:462
↓ 2 callersFunctionshuffledDeck
(rng: () => number)
packages/shared/src/gambling.ts:110
↓ 2 callersFunctionsoftTrim
* 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 callersFunctionspinSlots
(rng: () => number)
packages/shared/src/gambling.ts:351
↓ 2 callersFunctionsseResponse
Build a streaming Response whose body emits the given raw SSE text.
apps/server/src/llm/koboldcpp-adapter.test.ts:28
↓ 2 callersFunctionstableStringify
(value: unknown)
apps/web/src/lib/drafts.ts:199
↓ 2 callersFunctionstatLabel
(key: string, kind: 'dating' | 'rel')
apps/web/src/pages/Minigames.tsx:228
↓ 2 callersFunctionstats
(affection: number, rest = 5, tension = 0)
packages/shared/src/social.test.ts:16
↓ 2 callersFunctionstatsFrom
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 callersFunctionstockDailyStep
( prevPrice: number, roll01: number, volatility: number, eventShock = 0, )
packages/shared/src/wealth.ts:126
↓ 2 callersFunctionstoryFlagParts
(key: string, value: unknown)
packages/shared/src/social.ts:1005
↓ 2 callersFunctionstylePhrase
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 callersFunctionsummarizeRepeatables
(events: GameEvent[])
apps/server/src/lib/day-events.ts:135
↓ 2 callersFunctionsummarizeSession
(sessionId: string)
apps/server/src/services/conversation-service.ts:1174
↓ 2 callersFunctionsyncReciprocalLinks
* 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
← previousnext →701–800 of 1,633, ranked by callers