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
careerProgress
(xp: number)
packages/shared/src/career.ts:66
↓ 3 callers
Function
careerSkillLabel
(s: CareerSkill | string)
apps/web/src/i18n/labels.ts:55
↓ 3 callers
Function
characterTexts
()
apps/server/src/services/gossip-knowledge.test.ts:30
↓ 3 callers
Function
claimTextGift
(textId: string, playerId: string = DEFAULT_PLAYER_ID)
apps/server/src/services/text-message-service.ts:645
↓ 3 callers
Function
clampInt
(n: number, lo: number, hi: number)
apps/server/src/services/property-service.ts:264
↓ 3 callers
Function
cleanLine
Tidy a generated dialogue line: trim, drop a leading speaker prefix + wrapping quotes.
apps/server/src/services/bench/runner.ts:179
↓ 3 callers
Function
clearRapport
(sessionId: string)
apps/server/src/services/rapport-service.ts:52
↓ 3 callers
Function
commentOnPost
( postId: string, body: string, playerId: string = DEFAULT_PLAYER_ID, )
apps/server/src/services/feed-service.ts:776
↓ 3 callers
Function
connectionPatch
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 callers
Function
current
()
apps/web/src/lib/hooks.ts:28
↓ 3 callers
Function
describeItemEffect
(effect: ItemEffect)
packages/shared/src/schemas/items.ts:65
↓ 3 callers
Function
describeLlmError
(err: unknown, baseUrl: string)
apps/server/src/llm/errors.ts:46
↓ 3 callers
Function
displayFor
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 callers
Function
done
(outcome: TogetherOutcomeKind, statDelta: number, memorable: boolean)
packages/shared/src/together.ts:92
↓ 3 callers
Function
downloadShareFile
* 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 callers
Function
effectiveDatingStats
(base: DatingStats, flags: FlagMap)
packages/shared/src/buffs.ts:24
↓ 3 callers
Function
enabled
* 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 callers
Function
endDate
()
apps/web/src/pages/Chat.tsx:897
↓ 3 callers
Function
epilogue
(title: string)
apps/server/src/services/ending.test.ts:18
↓ 3 callers
Function
estimateTokens
The crude offline fallback when the model isn't measuring tokens for us.
apps/server/src/services/prompt-estimator-service.ts:48
↓ 3 callers
Function
evalReply
(summaryLine: string)
apps/server/src/services/social-web.test.ts:36
↓ 3 callers
Function
evalReply
()
apps/server/src/services/paid-dates.test.ts:13
↓ 3 callers
Function
finish
()
apps/server/src/routes/conversations.ts:97
↓ 3 callers
Function
formatCoin
(n: number)
apps/web/src/components/phone/gambling/shared.tsx:14
↓ 3 callers
Function
gatherAssets
* 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 callers
Function
generateGossipForDay
( worldId: string, day: number, playerId: string = DEFAULT_PLAYER_ID, )
apps/server/src/services/gossip-service.ts:36
↓ 3 callers
Function
getAsset
(id: string)
apps/server/src/services/asset-service.ts:105
↓ 3 callers
Function
getEnding
(characterId: string, playerId: string = DEFAULT_PLAYER_ID)
apps/server/src/services/ending-service.ts:30
↓ 3 callers
Function
getGamblingState
(worldId: string)
apps/server/src/services/gambling-service.ts:143
↓ 3 callers
Function
guardednessDescriptor
(guardedness = 0)
packages/shared/src/date-dynamics.ts:115
↓ 3 callers
Function
hasLostInterest
(sessionId: string)
apps/server/src/services/rapport-service.ts:124
↓ 3 callers
Method
headers
()
apps/server/src/llm/openai-adapter.ts:59
↓ 3 callers
Method
headers
()
apps/server/src/llm/anthropic-adapter.ts:121
↓ 3 callers
Function
holdingValue
(shares: number, price: number)
packages/shared/src/wealth.ts:150
↓ 3 callers
Function
hydratePromptOverrides
()
apps/server/src/services/prompt-override-service.ts:16
↓ 3 callers
Function
idbSet
(key: string, value: unknown)
apps/web/src/lib/idb-kv.ts:32
↓ 3 callers
Function
inspectPack
(buffer: Buffer)
apps/server/src/services/pack-service.ts:530
↓ 3 callers
Function
intimacyAllowed
(rel: WarmthStats)
packages/shared/src/social.ts:721
↓ 3 callers
Function
isAllowedImageMime
(mime: string)
apps/server/src/services/pack-service.ts:108
↓ 3 callers
Function
itemCategoryLabel
(c: ItemCategory | string)
apps/web/src/i18n/labels.ts:62
↓ 3 callers
Function
itemRarityLabel
(r: ItemRarity | string)
apps/web/src/i18n/labels.ts:61
↓ 3 callers
Function
lcg
A tiny deterministic LCG for shuffle tests (NOT used by game logic).
packages/shared/src/gambling.test.ts:29
↓ 3 callers
Function
linkPairs
(c: { links: Array<{ targetId: string; kind: string }> })
apps/server/src/services/world-clone-import.test.ts:20
↓ 3 callers
Function
listAcquaintances
(character: Character)
apps/server/src/services/character-service.ts:104
↓ 3 callers
Function
listWorldNotes
(worldId: string)
apps/server/src/services/world-service.ts:140
↓ 3 callers
Function
loc
(indoor: boolean)
apps/server/src/services/weather.test.ts:7
↓ 3 callers
Function
log
(...a)
tools/screenshots/capture.mjs:36
↓ 3 callers
Function
makeManifest
( kind: PackManifest['kind'], fields: Partial<Omit<PackManifest, 'format' | 'formatVersion' | 'kind' | 'ge
apps/server/src/services/pack-service.ts:143
↓ 3 callers
Function
markDated
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 callers
Function
markDated
Make hasDated(characterId) true without going through the availability gate.
apps/server/src/services/social-web.test.ts:22
↓ 3 callers
Function
maybeExtractPlayerFacts
( session: ConversationSession, messages: Message[], partner: Character, day: number, )
apps/server/src/services/player-fact-service.ts:53
↓ 3 callers
Function
maybeLeaveForLostInterest
(sessionId: string, signal?: AbortSignal)
apps/server/src/services/conversation-service.ts:897
↓ 3 callers
Function
meetingMemoryStub
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 callers
Function
migratePlayerIdentity
()
apps/server/src/db/migrate-player-identity.ts:22
↓ 3 callers
Function
normalizeTicker
(raw: string, name = '')
apps/server/src/services/market-service.ts:48
↓ 3 callers
Function
num
(v: unknown)
apps/server/src/llm/openai-adapter.ts:43
↓ 3 callers
Function
num
(v: unknown)
apps/server/src/services/breakup-service.ts:51
↓ 3 callers
Function
onlinePersonaLine
* 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 callers
Function
open
()
apps/web/src/lib/idb-kv.ts:10
↓ 3 callers
Function
pair
(worldId: string)
apps/server/src/services/world-clone-import.test.ts:12
↓ 3 callers
Function
parseKey
Parse a placed-bet key like 'red' / 'dozen:2' / 'straight:17' into a RouletteBet.
apps/web/src/components/phone/gambling/RouletteGame.tsx:38
↓ 3 callers
Function
patchEmp
(patch: Partial<Employment>)
apps/web/src/pages/CharacterEditor.tsx:194
↓ 3 callers
Function
payRent
(worldId: string, propertyId: string)
apps/server/src/services/property-service.ts:179
↓ 3 callers
Function
place
(key: string)
apps/web/src/components/phone/gambling/RouletteGame.tsx:75
↓ 3 callers
Method
prepare
(sql: string)
apps/server/src/db/sqlite.ts:30
↓ 3 callers
Function
priorDate
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 callers
Function
propertyDateBuff
( buffStat: RelationshipStatKey | null, buffAmount: number, owned: boolean, )
packages/shared/src/wealth.ts:100
↓ 3 callers
Function
pumpSse
Read an SSE response body to completion, dispatching each event to handlers.
apps/web/src/lib/api.ts:308
↓ 3 callers
Function
readJson
(map: Map<string, Buffer>, name: string)
apps/server/src/services/pack-service.ts:331
↓ 3 callers
Function
recentHistoryBlock
* 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 callers
Function
recover
()
apps/web/src/pages/Chat.tsx:534
↓ 3 callers
Function
rel
(over: Partial<Rel> = {})
packages/shared/src/together.test.ts:19
↓ 3 callers
Function
rel
Relationship state factory (keeps the boilerplate in one place).
apps/server/src/services/bench/fixtures.ts:130
↓ 3 callers
Method
removeItem
(k: string)
apps/web/src/lib/drafts.test.ts:34
↓ 3 callers
Function
reply
(o: object)
apps/server/src/services/breakup.test.ts:39
↓ 3 callers
Function
seedTrio
A trio of café coworkers + a linked pair — enough for meetings + worked beats.
apps/server/src/services/world-sim.test.ts:47
↓ 3 callers
Function
sellProperty
(worldId: string, propertyId: string)
apps/server/src/services/property-service.ts:224
↓ 3 callers
Function
sellStock
(worldId: string, companyId: string, shares: number)
apps/server/src/services/market-service.ts:135
↓ 3 callers
Function
send
(resend?: { text: string; image: { assetId: string; url: string } | null; gift: { inventoryItem: InventoryItem
apps/web/src/components/phone/MessagesApp.tsx:474
↓ 3 callers
Function
send
(resend?: { text: string; intent?: Intent })
apps/web/src/pages/Chat.tsx:511
↓ 3 callers
Function
setAfterglow
(characterId: string, mood: string, day: number)
apps/server/src/services/prompt-coherence.test.ts:133
↓ 3 callers
Function
setCooldown
()
apps/server/src/services/dtr-service.ts:125
↓ 3 callers
Function
setFeature
(key: K, value: FeatureFlags[K])
apps/web/src/pages/WorldEditor.tsx:157
↓ 3 callers
Function
setPromptOverrides
(map: Partial<Record<string, string>>)
apps/server/src/prompt/registry.ts:349
↓ 3 callers
Function
setup
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 callers
Function
spinRoulette
(rng: () => number)
packages/shared/src/gambling.ts:458
↓ 3 callers
Function
stop
()
packages/shared/src/gambling.ts:352
↓ 3 callers
Function
streamReply
( sessionId: string, onDelta: (text: string) => void, signal?: AbortSignal, turnVerdict?: TurnVerdict
apps/server/src/services/conversation-service.ts:536
↓ 3 callers
Function
stubFetch
Stub global fetch with a JSON response and capture the request it received.
apps/server/src/llm/anthropic-adapter.test.ts:16
↓ 3 callers
Function
take
(values: string[], seen: Set<string>, max: number, maxLen = 40)
apps/server/src/minigames/sweet-and-sour.ts:51
↓ 3 callers
Function
test
(key: string)
apps/web/src/pages/Settings.tsx:232
↓ 3 callers
Function
textToLines
Map a fixture SMS thread to display transcript lines.
apps/server/src/services/bench/cases.ts:218
↓ 3 callers
Function
toExpression
(value: unknown)
packages/shared/src/vocab.ts:58
↓ 3 callers
Function
toJson
(schema: ZodTypeAny)
apps/server/src/lib/openapi-schema.ts:64
↓ 3 callers
Function
toPostView
Assemble a stored FeedPost into the display FeedPostView.
apps/server/src/services/feed-service.ts:883
↓ 3 callers
Function
tokensIn
The `{{TOKEN}}` names that appear in a template (the slots an override must keep).
apps/server/src/prompt/registry.ts:337
↓ 3 callers
Function
topMemoriesFor
A few top memories (importance, then recency) for personalizing a post.
apps/server/src/services/feed-service.ts:94
↓ 3 callers
Function
updateProperty
(id: string, patch: PropertyUpdate)
apps/server/src/services/property-service.ts:58
↓ 3 callers
Function
updateWorld
(id: string, patch: WorldUpdate)
apps/server/src/services/world-service.ts:77
↓ 3 callers
Function
useDraft
(opts: UseDraftOptions<T>)
apps/web/src/lib/useDraft.ts:79
← previous
next →
501–600 of 1,633, ranked by callers