MCPcopy Create free account

hub / github.com/BabylonSocial/babylon / functions

Functions14,075 in github.com/BabylonSocial/babylon

↓ 6 callersMethodgetAllFacts
* Get all active world facts in randomized order for entropy * Limits to the 100 most recent facts * * Note: Query filters on isActive, quali
packages/engine/src/world-facts-service.ts:62
↓ 6 callersFunctiongetBaseUrl
()
tools/chroma/specs/helpers/interaction-helpers.ts:236
↓ 6 callersMethodgetCurrentPhase
* Get the current phase for a market based on elapsed time
packages/engine/src/services/timeframe-arc-planner.ts:230
↓ 6 callersFunctiongetDbClient
* Get the primary (write) database client (cached). * * WHY: Caches the client in global state to avoid recreating it on every access. * The client
packages/db/src/db.ts:430
↓ 6 callersFunctiongetEventBus
()
packages/agents/src/communication/EventBus.ts:247
↓ 6 callersMethodgetGameState
* Get current game state (called by agent via A2A)
packages/training/src/benchmark/SimulationEngine.ts:301
↓ 6 callersFunctiongetHashedClientIp
( headers: | Headers | Map<string, string> | Record<string, string | string[] | undefined> )
packages/api/src/utils/ip-utils.ts:81
↓ 6 callersFunctiongetLinearConfig
()
packages/api/src/linear/client.ts:75
↓ 6 callersMethodgetMarket
(id: string)
packages/core/storage/ports/markets.ts:11
↓ 6 callersFunctiongetMissingNotificationSchemaErrorCode
( error: unknown )
apps/web/src/app/api/notifications/schema-compat.ts:3
↓ 6 callersFunctiongetNftCollectionIdFromEnv
()
packages/api/src/services/nft-indexer-service.ts:31
↓ 6 callersMethodgetNotifications
()
packages/examples/harness/src/types.ts:110
↓ 6 callersMethodgetOpenExecutionQuote
( market: PerpMarketRecord, side: PerpSide, size: number )
packages/core/markets/perps/PerpMarketService.ts:2125
↓ 6 callersFunctiongetOptionalProfileStats
( userId: string, context: string )
apps/web/src/lib/users/profile-stats.ts:22
↓ 6 callersFunctiongetOtherDmParticipantId
( chatId: string, currentUserId: string )
apps/web/src/app/api/chats/_lib/dm-chat-id.ts:1
↓ 6 callersFunctiongetPositionExposure
( size: number | null | undefined, leverage?: number | null )
packages/engine/src/npc/portfolio-metrics.ts:49
↓ 6 callersFunctiongetPredictionMarketLiquidityTier
( totalVolume: number )
packages/engine/src/services/prediction-market-profiles.ts:76
↓ 6 callersFunctiongetPrivyErrorMessage
(error: unknown)
apps/web/src/lib/privy-link-account-errors.ts:10
↓ 6 callersFunctiongetProfileImageUrl
( profileImageUrl: string | null | undefined, userId: string | null | undefined, isActor = true, cdnBa
packages/shared/src/utils/assets.ts:141
↓ 6 callersMethodgetRecent
* Get recent entries
packages/examples/babylon-typescript-agent/src/memory.ts:43
↓ 6 callersMethodgetStreakInfo
(userId: string)
packages/api/src/services/daily-login-service.ts:206
↓ 6 callersFunctiongetTimeOfDayEnergy
(hour: number)
packages/engine/src/prompts/shared-sections.ts:196
↓ 6 callersFunctiongetTodayDateString
()
packages/engine/src/utils/date-utils.ts:133
↓ 6 callersFunctiongetUserAchievements
( userId: string )
packages/api/src/services/achievement-service.ts:1446
↓ 6 callersMethodgetWaitlistPosition
* Get user's waitlist position and stats * CRITICAL: Position is based on INVITE POINTS (leaderboard rank), not signup order! * This creates the
packages/api/src/services/waitlist-service.ts:373
↓ 6 callersMethodget_device_name
(_index)
packages/training/python/tests/test_train_local_script.py:1979
↓ 6 callersFunctionget_priority_metrics
Get priority metrics for an archetype.
packages/training/python/src/training/rubric_loader.py:151
↓ 6 callersFunctionget_rubric
Get the rubric for an archetype.
packages/training/python/src/training/rubric_loader.py:146
↓ 6 callersMethodget_stats
Return current agent statistics.
packages/training/python/src/training/continuous_rl.py:515
↓ 6 callersMethodgoToNext
()
packages/testing/unit/game-guide.test.ts:64
↓ 6 callersFunctiongroupResolvedMarketOutcomes
( rows: ResolvedOutcomeRow[] )
apps/web/src/lib/services/market-resolution-notifications.ts:42
↓ 6 callersFunctiongroup_chat_intel_quality_reward
Reward gathering and utilizing group chat intelligence. Positive signal from having group chat facts available and using group intel across m
packages/training/python/src/training/rewards.py:473
↓ 6 callersFunctionhasText
(value: string | null | undefined)
apps/web/src/app/feed/utils/postMappers.ts:14
↓ 6 callersFunctionhashIpAddress
(ip: string)
packages/api/src/utils/ip-utils.ts:16
↓ 6 callersFunctionheading
(msg: string)
scripts/context-inspector.ts:64
↓ 6 callersMethodinitialize
* Initialize simulation
packages/training/src/benchmark/SimulationEngine.ts:253
↓ 6 callersMethodisActive
* Check if a trajectory is active. * @param trajectoryId - The trajectory ID * @returns True if trajectory is active
packages/training/src/training/TrajectoryRecorder.ts:710
↓ 6 callersFunctionisAgentActivityMessage
( message: Record<string, unknown> )
apps/web/src/hooks/__tests__/useAgentActivity.test.ts:404
↓ 6 callersFunctionisContainerRunning
* Checks if the PostgreSQL container is currently running. * * @returns `true` if container is running, `false` otherwise * @internal
apps/cli/src/commands/db.ts:143
↓ 6 callersFunctionisDaytime
(hour: number)
packages/engine/src/__tests__/gameworld-causal.test.ts:354
↓ 6 callersFunctionisJsonRecord
(value: unknown)
scripts/run-core-world-simulation.ts:301
↓ 6 callersFunctionisPureRepost
(post: { originalPostId?: string | null; content: string; })
packages/shared/src/utils/post-utils.ts:1
↓ 6 callersFunctionisRecord
(value: unknown)
packages/shared/src/utils/format.ts:496
↓ 6 callersFunctionisRetryable
(errorType: MintErrorType)
packages/testing/unit/nft-mint-flow.test.ts:260
↓ 6 callersFunctionisRuntimeFilePath
(filePath: string)
scripts/env-audit.ts:102
↓ 6 callersFunctionisTextOnTopic
( text: string, topic: DailyTopicContext | null | undefined )
packages/engine/src/services/daily-topic-service.ts:310
↓ 6 callersFunctionisValidPointsToward
( pt: string | null | undefined )
packages/engine/src/types/guards.ts:39
↓ 6 callersFunctionis_stage_action_aligned
( stage: dict[str, Any], action: Any, *, is_legitimate: bool = False )
packages/training/python/src/training/scambench_scoring.py:305
↓ 6 callersFunctionis_zero_variance_group
Check if a GRPO group has zero variance (no gradient signal). Inspired by DAPO (ProRL Agent): groups where all trajectories receive the same
packages/training/python/src/training/rewards.py:689
↓ 6 callersFunctionlastOrThrow
(arr: readonly T[], message?: string)
packages/engine/src/utils/array-utils.ts:80
↓ 6 callersMethodlikePost
(postId: string)
packages/examples/harness/src/types.ts:98
↓ 6 callersFunctionlog
(message: string, level: 'info' | 'warn' | 'error' = 'info')
packages/examples/babylon-typescript-agent/src/benchmark-runner.ts:42
↓ 6 callersFunctionlog
(message: string, data?: Record<string, unknown>)
scripts/validate-tiered-groups.ts:42
↓ 6 callersFunctionlogPrompt
(entry: PromptLogEntry)
packages/engine/src/utils/prompt-logger.ts:46
↓ 6 callersFunctionmakeEngineCtx
(budgetMs = 60000)
packages/sim/tests/context.test.ts:15
↓ 6 callersFunctionmakeRequest
(params: Record<string, string> = {})
apps/web/src/app/api/feed/for-you/route.test.ts:44
↓ 6 callersFunctionmakeService
( marketOverrides: Partial<PredictionMarketRecord> = {} )
packages/testing/unit/markets-stability.test.ts:54
↓ 6 callersFunctionmake_llm_trade_step
( index: int, market_id: str, *, reward: float, reasoning: str, response: str | None =
packages/training/python/tests/test_hf_dataset_export_script.py:53
↓ 6 callersMethodmarkCovered
( eventId: string, orgId: string, status: ArcEventStatus )
packages/testing/unit/feed-dedup.test.ts:252
↓ 6 callersFunctionmarket
(createdAt: string)
packages/testing/unit/narrative-feed-algorithms.test.ts:214
↓ 6 callersFunctionmeasureTime
( fn: () => Promise<T> )
packages/testing/performance/concurrent-agents.perf.test.ts:30
↓ 6 callersFunctionmerge_jsonl_corpus
( input_dirs: list[Path], filename: str, signature_fields: list[str], )
packages/training/python/scripts/data-prep/merge_materialized_scam_corpora.py:33
↓ 6 callersFunctionmigrateAuthStoreState
( persistedState: unknown, version: number )
apps/web/src/stores/authStore.ts:121
↓ 6 callersFunctionnormalizeHexAddress
(address: string)
packages/api/src/services/nft-indexer-service.ts:19
↓ 6 callersFunctionnormalizeName
(value: string | null | undefined)
scripts/export-newsletter-users-csv.ts:97
↓ 6 callersFunctionnormalizeNpcGroupMessageResponse
( rawResponse: unknown )
packages/engine/src/services/npc-group-dynamics-service.ts:79
↓ 6 callersFunctionnormalizeSocialDecisionParameters
( action: string, parameters: DecisionParameters, context: AgentTickContext, agentUserId: string )
packages/agents/src/autonomous/social-parameter-normalization.ts:195
↓ 6 callersFunctionnormalize_text
(text: str)
packages/training/python/scripts/data-prep/materialize_awesome_linked_sources.py:63
↓ 6 callersMethodoff
( event: K, listener: (data: GameWorldEvents[K]) => void )
packages/engine/src/GameWorld.ts:256
↓ 6 callersFunctionparseArgs
()
packages/sim/core/bridge/simulation-bridge-server.ts:341
↓ 6 callersFunctionparseNonNegativeInt
( value: string | undefined, fallback: number )
scripts/run-trust-experiment-matrix.ts:245
↓ 6 callersMethodparsePositiveInteger
(value: unknown)
packages/engine/src/GameGenerator.ts:1707
↓ 6 callersFunctionparseWalletTab
(tab: string | null | undefined)
apps/web/src/lib/wallet-tabs.ts:5
↓ 6 callersFunctionparse_action
Extract JSON action from model response, stripping think tags.
packages/training/python/src/training/shared_model_rl.py:1332
↓ 6 callersMethodparse_action
Extract JSON action from model response.
packages/training/python/src/training/continuous_rl.py:339
↓ 6 callersFunctionpasses_combined_gate
Primary deterministic gate: passes if trading-format OR natural-message behavior passes. JSON-format recovery is tracked separately as an auxilia
packages/training/python/src/training/deterministic_eval.py:1439
↓ 6 callersFunctionpatchWithAuth
( path: string, body: object, token?: string )
packages/testing/integration/alpha-group-admin-api.integration.test.ts:55
↓ 6 callersFunctionpercentChange
(original: number, current: number)
packages/engine/src/utils/math-utils.ts:112
↓ 6 callersMethodprocessHeadlines
* Process multiple headlines into parodies
packages/engine/src/services/parody-headline-generator.ts:238
↓ 6 callersFunctionpush_model_to_hub
Push trained model to HuggingFace Hub. Returns True if successful, False otherwise.
packages/training/python/scripts/post_training.py:117
↓ 6 callersFunctionreadArgValue
(args: string[], name: string)
scripts/export-newsletter-users-csv.ts:73
↓ 6 callersFunctionreadSourceFile
* Read a file and return its contents
packages/engine/src/__tests__/security/randomness-boundaries.test.ts:28
↓ 6 callersFunctionreadStorageJson
( type: BrowserStorageType, key: string )
apps/web/src/utils/browser-storage.ts:29
↓ 6 callersMethodrecordNPCDecision
( npcId: string, npcName: string, decision: NPCDecision )
packages/engine/src/dag-trace/tracer.ts:237
↓ 6 callersFunctionrecordUserInteraction
( userId: string, npcId: string, postId: string, commentId: string, qualityScore = 0.8 )
packages/testing/integration/group-chat-engagement-flow.integration.test.ts:188
↓ 6 callersFunctionregisterRefresh
(name: string, refreshFn: () => void)
apps/web/src/contexts/WidgetRefreshContext.tsx:49
↓ 6 callersFunctionremaining_timeout_seconds
(deadline: float)
packages/training/python/scripts/compare_served_models.py:272
↓ 6 callersFunctionremote_workspace_path
(workspace: str, path: Path)
packages/training/python/scripts/tools/run_nebius_unified_matrix.py:212
↓ 6 callersMethodremoveAgentFromTeamChat
* Remove an agent from the user's team chat * * @param userId - The human user ID (owner) * @param agentUserId - The agent user ID to remove
packages/agents/src/services/TeamChatService.ts:571
↓ 6 callersFunctionreplaceNameVariations
( text: string, oldFirstName: string, oldLastName: string, newFirstName: string, newLastName: string
packages/shared/src/utils/name-replacement.ts:100
↓ 6 callersFunctionresetToPostgresMode
()
packages/db/src/db.ts:552
↓ 6 callersFunctionresolveReplyToMessage
* Resolves the sender name from participants for reply state. * Replica of handleReplyToMessage logic in useChatPage.ts / useTeamChat.ts.
packages/testing/unit/chat-reply-to-message.test.ts:115
↓ 6 callersFunctionresolveResolvedAt
(params: { reviewedAt: Date | null; frameResolvedAt: Date | null; marketResolved: boolean; marketUpdat
packages/testing/unit/resolution-audit.test.ts:11
↓ 6 callersFunctionrestore_assistant_prefix
(generated: str, assistant_prefix: str | None)
packages/training/python/src/training/local_inference.py:85
↓ 6 callersMethodresult_async
(self)
packages/training/python/tests/test_tinker_client.py:59
↓ 6 callersFunctionrunEnrichment
( userId: string, postIds: string[], questionIds: number[], dbLikes: string[], dbShares: string[],
packages/testing/unit/narrative-enrichment-cache.test.ts:63
↓ 6 callersFunctionrun_post_training
Run all post-training actions. This is the main entry point called by run_training.py after training completes. Args: model_pat
packages/training/python/scripts/post_training.py:383
↓ 6 callersMethodrun_rl_stage
(self)
packages/training/python/scripts/run_pipeline.py:1527
↓ 6 callersFunctionsafeDivide
( numerator: number, denominator: number, fallback = 0 )
packages/engine/src/utils/math-utils.ts:167
↓ 6 callersFunctionsend
(event: string, data: unknown)
apps/web/src/app/api/admin/dag-traces/live/route.ts:30
← previousnext →1,401–1,500 of 14,075, ranked by callers