MCPcopy Create free account

hub / github.com/HMDSimDev/heartmorrow / functions

Functions1,633 in github.com/HMDSimDev/heartmorrow

↓ 3 callersFunctioncareerProgress
(xp: number)
packages/shared/src/career.ts:66
↓ 3 callersFunctioncareerSkillLabel
(s: CareerSkill | string)
apps/web/src/i18n/labels.ts:55
↓ 3 callersFunctioncharacterTexts
()
apps/server/src/services/gossip-knowledge.test.ts:30
↓ 3 callersFunctionclaimTextGift
(textId: string, playerId: string = DEFAULT_PLAYER_ID)
apps/server/src/services/text-message-service.ts:645
↓ 3 callersFunctionclampInt
(n: number, lo: number, hi: number)
apps/server/src/services/property-service.ts:264
↓ 3 callersFunctioncleanLine
Tidy a generated dialogue line: trim, drop a leading speaker prefix + wrapping quotes.
apps/server/src/services/bench/runner.ts:179
↓ 3 callersFunctionclearRapport
(sessionId: string)
apps/server/src/services/rapport-service.ts:52
↓ 3 callersFunctioncommentOnPost
( postId: string, body: string, playerId: string = DEFAULT_PLAYER_ID, )
apps/server/src/services/feed-service.ts:776
↓ 3 callersFunctionconnectionPatch
A connection → settings-patch object, dropping a blank API key so the server * keeps the stored one (the field is redacted on load and only sent whe
apps/web/src/pages/Settings.tsx:71
↓ 3 callersFunctioncurrent
()
apps/web/src/lib/hooks.ts:28
↓ 3 callersFunctiondescribeItemEffect
(effect: ItemEffect)
packages/shared/src/schemas/items.ts:65
↓ 3 callersFunctiondescribeLlmError
(err: unknown, baseUrl: string)
apps/server/src/llm/errors.ts:46
↓ 3 callersFunctiondisplayFor
Resolve an author's display name + portrait. Returns null if a character was deleted. * The player's display name uses the per-world persona (the po
apps/server/src/services/feed-service.ts:869
↓ 3 callersFunctiondone
(outcome: TogetherOutcomeKind, statDelta: number, memorable: boolean)
packages/shared/src/together.ts:92
↓ 3 callersFunctiondownloadShareFile
* Fetch a binary share file and save it via a temporary download link. Prefers the * server's Content-Disposition filename, falling back to a supplie
apps/web/src/lib/api.ts:186
↓ 3 callersFunctioneffectiveDatingStats
(base: DatingStats, flags: FlagMap)
packages/shared/src/buffs.ts:24
↓ 3 callersFunctionenabled
* The OPT-IN tragic-outcome system (see packages/shared/src/crisis.ts for the * design + the safety principles). Everything here is a no-op unless *
apps/server/src/services/crisis-service.ts:39
↓ 3 callersFunctionendDate
()
apps/web/src/pages/Chat.tsx:897
↓ 3 callersFunctionepilogue
(title: string)
apps/server/src/services/ending.test.ts:18
↓ 3 callersFunctionestimateTokens
The crude offline fallback when the model isn't measuring tokens for us.
apps/server/src/services/prompt-estimator-service.ts:48
↓ 3 callersFunctionevalReply
(summaryLine: string)
apps/server/src/services/social-web.test.ts:36
↓ 3 callersFunctionevalReply
()
apps/server/src/services/paid-dates.test.ts:13
↓ 3 callersFunctionfinish
()
apps/server/src/routes/conversations.ts:97
↓ 3 callersFunctionformatCoin
(n: number)
apps/web/src/components/phone/gambling/shared.tsx:14
↓ 3 callersFunctiongatherAssets
* Read every referenced asset's row + bytes and turn them into portable descriptors * plus the archive's binary entries. Assets that are missing, non
apps/server/src/services/pack-service.ts:171
↓ 3 callersFunctiongenerateGossipForDay
( worldId: string, day: number, playerId: string = DEFAULT_PLAYER_ID, )
apps/server/src/services/gossip-service.ts:36
↓ 3 callersFunctiongetAsset
(id: string)
apps/server/src/services/asset-service.ts:105
↓ 3 callersFunctiongetEnding
(characterId: string, playerId: string = DEFAULT_PLAYER_ID)
apps/server/src/services/ending-service.ts:30
↓ 3 callersFunctiongetGamblingState
(worldId: string)
apps/server/src/services/gambling-service.ts:143
↓ 3 callersFunctionguardednessDescriptor
(guardedness = 0)
packages/shared/src/date-dynamics.ts:115
↓ 3 callersFunctionhasLostInterest
(sessionId: string)
apps/server/src/services/rapport-service.ts:124
↓ 3 callersMethodheaders
()
apps/server/src/llm/openai-adapter.ts:59
↓ 3 callersMethodheaders
()
apps/server/src/llm/anthropic-adapter.ts:121
↓ 3 callersFunctionholdingValue
(shares: number, price: number)
packages/shared/src/wealth.ts:150
↓ 3 callersFunctionhydratePromptOverrides
()
apps/server/src/services/prompt-override-service.ts:16
↓ 3 callersFunctionidbSet
(key: string, value: unknown)
apps/web/src/lib/idb-kv.ts:32
↓ 3 callersFunctioninspectPack
(buffer: Buffer)
apps/server/src/services/pack-service.ts:530
↓ 3 callersFunctionintimacyAllowed
(rel: WarmthStats)
packages/shared/src/social.ts:721
↓ 3 callersFunctionisAllowedImageMime
(mime: string)
apps/server/src/services/pack-service.ts:108
↓ 3 callersFunctionitemCategoryLabel
(c: ItemCategory | string)
apps/web/src/i18n/labels.ts:62
↓ 3 callersFunctionitemRarityLabel
(r: ItemRarity | string)
apps/web/src/i18n/labels.ts:61
↓ 3 callersFunctionlcg
A tiny deterministic LCG for shuffle tests (NOT used by game logic).
packages/shared/src/gambling.test.ts:29
↓ 3 callersFunctionlinkPairs
(c: { links: Array<{ targetId: string; kind: string }> })
apps/server/src/services/world-clone-import.test.ts:20
↓ 3 callersFunctionlistAcquaintances
(character: Character)
apps/server/src/services/character-service.ts:104
↓ 3 callersFunctionlistWorldNotes
(worldId: string)
apps/server/src/services/world-service.ts:140
↓ 3 callersFunctionloc
(indoor: boolean)
apps/server/src/services/weather.test.ts:7
↓ 3 callersFunctionlog
(...a)
tools/screenshots/capture.mjs:36
↓ 3 callersFunctionmakeManifest
( kind: PackManifest['kind'], fields: Partial<Omit<PackManifest, 'format' | 'formatVersion' | 'kind' | 'ge
apps/server/src/services/pack-service.ts:143
↓ 3 callersFunctionmarkDated
Make a character count as "dated" (a date session the player actually spoke in — * a real date needs a player turn, which is also what gates `hasDat
apps/server/src/services/gossip-knowledge.test.ts:17
↓ 3 callersFunctionmarkDated
Make hasDated(characterId) true without going through the availability gate.
apps/server/src/services/social-web.test.ts:22
↓ 3 callersFunctionmaybeExtractPlayerFacts
( session: ConversationSession, messages: Message[], partner: Character, day: number, )
apps/server/src/services/player-fact-service.ts:53
↓ 3 callersFunctionmaybeLeaveForLostInterest
(sessionId: string, signal?: AbortSignal)
apps/server/src/services/conversation-service.ts:897
↓ 3 callersFunctionmeetingMemoryStub
The templated meeting memory before any gist (the fail-safe text). A cold run-in * reads tense rather than as a friendly catch-up.
apps/server/src/services/world-sim-service.ts:432
↓ 3 callersFunctionmigratePlayerIdentity
()
apps/server/src/db/migrate-player-identity.ts:22
↓ 3 callersFunctionnormalizeTicker
(raw: string, name = '')
apps/server/src/services/market-service.ts:48
↓ 3 callersFunctionnum
(v: unknown)
apps/server/src/llm/openai-adapter.ts:43
↓ 3 callersFunctionnum
(v: unknown)
apps/server/src/services/breakup-service.ts:51
↓ 3 callersFunctiononlinePersonaLine
* Foreground HOW this character posts. The feed is the surface where * `onlinePersona` matters most. Framed as reference DATA (never an instruction)
apps/server/src/prompt/prompt-builder.ts:1843
↓ 3 callersFunctionopen
()
apps/web/src/lib/idb-kv.ts:10
↓ 3 callersFunctionpair
(worldId: string)
apps/server/src/services/world-clone-import.test.ts:12
↓ 3 callersFunctionparseKey
Parse a placed-bet key like 'red' / 'dozen:2' / 'straight:17' into a RouletteBet.
apps/web/src/components/phone/gambling/RouletteGame.tsx:38
↓ 3 callersFunctionpatchEmp
(patch: Partial<Employment>)
apps/web/src/pages/CharacterEditor.tsx:194
↓ 3 callersFunctionpayRent
(worldId: string, propertyId: string)
apps/server/src/services/property-service.ts:179
↓ 3 callersFunctionplace
(key: string)
apps/web/src/components/phone/gambling/RouletteGame.tsx:75
↓ 3 callersMethodprepare
(sql: string)
apps/server/src/db/sqlite.ts:30
↓ 3 callersFunctionpriorDate
Insert a prior, real date (a session the player actually spoke in) so the NEXT * date is no longer a first meeting — without going through the date
apps/server/src/services/first-meeting.test.ts:15
↓ 3 callersFunctionpropertyDateBuff
( buffStat: RelationshipStatKey | null, buffAmount: number, owned: boolean, )
packages/shared/src/wealth.ts:100
↓ 3 callersFunctionpumpSse
Read an SSE response body to completion, dispatching each event to handlers.
apps/web/src/lib/api.ts:308
↓ 3 callersFunctionreadJson
(map: Map<string, Buffer>, name: string)
apps/server/src/services/pack-service.ts:331
↓ 3 callersFunctionrecentHistoryBlock
* A read-only "recently between you" block folded from the cross-date chronicle, * so the phone surfaces reflect the last date(s) the player and char
apps/server/src/prompt/prompt-builder.ts:838
↓ 3 callersFunctionrecover
()
apps/web/src/pages/Chat.tsx:534
↓ 3 callersFunctionrel
(over: Partial<Rel> = {})
packages/shared/src/together.test.ts:19
↓ 3 callersFunctionrel
Relationship state factory (keeps the boilerplate in one place).
apps/server/src/services/bench/fixtures.ts:130
↓ 3 callersMethodremoveItem
(k: string)
apps/web/src/lib/drafts.test.ts:34
↓ 3 callersFunctionreply
(o: object)
apps/server/src/services/breakup.test.ts:39
↓ 3 callersFunctionseedTrio
A trio of café coworkers + a linked pair — enough for meetings + worked beats.
apps/server/src/services/world-sim.test.ts:47
↓ 3 callersFunctionsellProperty
(worldId: string, propertyId: string)
apps/server/src/services/property-service.ts:224
↓ 3 callersFunctionsellStock
(worldId: string, companyId: string, shares: number)
apps/server/src/services/market-service.ts:135
↓ 3 callersFunctionsend
(resend?: { text: string; image: { assetId: string; url: string } | null; gift: { inventoryItem: InventoryItem
apps/web/src/components/phone/MessagesApp.tsx:474
↓ 3 callersFunctionsend
(resend?: { text: string; intent?: Intent })
apps/web/src/pages/Chat.tsx:511
↓ 3 callersFunctionsetAfterglow
(characterId: string, mood: string, day: number)
apps/server/src/services/prompt-coherence.test.ts:133
↓ 3 callersFunctionsetCooldown
()
apps/server/src/services/dtr-service.ts:125
↓ 3 callersFunctionsetFeature
(key: K, value: FeatureFlags[K])
apps/web/src/pages/WorldEditor.tsx:157
↓ 3 callersFunctionsetPromptOverrides
(map: Partial<Record<string, string>>)
apps/server/src/prompt/registry.ts:349
↓ 3 callersFunctionsetup
Two authored friends, no jobs → exactly one possible meeting (ref b0), no worked beats.
apps/server/src/services/world-sim-color.test.ts:16
↓ 3 callersFunctionspinRoulette
(rng: () => number)
packages/shared/src/gambling.ts:458
↓ 3 callersFunctionstop
()
packages/shared/src/gambling.ts:352
↓ 3 callersFunctionstreamReply
( sessionId: string, onDelta: (text: string) => void, signal?: AbortSignal, turnVerdict?: TurnVerdict
apps/server/src/services/conversation-service.ts:536
↓ 3 callersFunctionstubFetch
Stub global fetch with a JSON response and capture the request it received.
apps/server/src/llm/anthropic-adapter.test.ts:16
↓ 3 callersFunctiontake
(values: string[], seen: Set<string>, max: number, maxLen = 40)
apps/server/src/minigames/sweet-and-sour.ts:51
↓ 3 callersFunctiontest
(key: string)
apps/web/src/pages/Settings.tsx:232
↓ 3 callersFunctiontextToLines
Map a fixture SMS thread to display transcript lines.
apps/server/src/services/bench/cases.ts:218
↓ 3 callersFunctiontoExpression
(value: unknown)
packages/shared/src/vocab.ts:58
↓ 3 callersFunctiontoJson
(schema: ZodTypeAny)
apps/server/src/lib/openapi-schema.ts:64
↓ 3 callersFunctiontoPostView
Assemble a stored FeedPost into the display FeedPostView.
apps/server/src/services/feed-service.ts:883
↓ 3 callersFunctiontokensIn
The `{{TOKEN}}` names that appear in a template (the slots an override must keep).
apps/server/src/prompt/registry.ts:337
↓ 3 callersFunctiontopMemoriesFor
A few top memories (importance, then recency) for personalizing a post.
apps/server/src/services/feed-service.ts:94
↓ 3 callersFunctionupdateProperty
(id: string, patch: PropertyUpdate)
apps/server/src/services/property-service.ts:58
↓ 3 callersFunctionupdateWorld
(id: string, patch: WorldUpdate)
apps/server/src/services/world-service.ts:77
↓ 3 callersFunctionuseDraft
(opts: UseDraftOptions<T>)
apps/web/src/lib/useDraft.ts:79
← previousnext →501–600 of 1,633, ranked by callers