Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HerSophia/TavernHeadless
/ functions
Functions
8,237 in github.com/HerSophia/TavernHeadless
⨍
Functions
8,237
◇
Types & classes
2,308
↓ 8 callers
Method
createEdge
(edge: MemoryEdgeCreateInput)
packages/core/src/memory/memory-mutation-applier.ts:62
↓ 8 callers
Function
createInitialRespondStreamState
()
packages/official-integration-kit/client-helpers/src/stream/reduce-respond-stream.ts:121
↓ 8 callers
Function
createLimitedText
(text: string)
apps/api/src/services/st-macros/runtime.ts:696
↓ 8 callers
Function
createMessage
(args: { pageId: string; seq: number; role: MessageRole; content: string; contentFormat?:
apps/api/test/messages.integration.test.ts:103
↓ 8 callers
Function
createMockMcpManager
(tools: ToolDefinition[])
apps/api/src/services/__tests__/session-tool-registry-service.test.ts:37
↓ 8 callers
Function
createMvpDocument
(graphId = "ngraph_route_mvp")
apps/api/src/routes/__tests__/node-graphs.test.ts:34
↓ 8 callers
Function
createNoopCompactionProcessor
()
apps/api/src/services/__tests__/memory-worker.test.ts:123
↓ 8 callers
Function
createPage
(args: { token: string; floorId: string; pageNo: number; pageKind: PageKind; isActive?: bo
apps/api/test/direct-content-crud-isolation.integration.test.ts:138
↓ 8 callers
Function
createPromptRuntimeInjectionRecord
(overrides: Partial<{ id: string; scope: "session" | "branch"; sourceKind: "client_injection"; title:
apps/api/test/prompt-runtime.routes.test.ts:2098
↓ 8 callers
Function
createStaticFacet
()
apps/api/src/services/tooling/mcp/mcp-capability-snapshot-service.ts:112
↓ 8 callers
Function
createToolRuntimeJobBridge
( db: AppDb, options: ToolRuntimeJobBridgeOptions = {}, )
apps/api/src/services/tooling/runtime/tool-runtime-job-bridge.ts:69
↓ 8 callers
Function
defaultValueRef
(source: NodeGraphValueSource = "runtime", path: string[] = ["intent"])
apps/studio/src/modules/graph/config/control-node-config.ts:78
↓ 8 callers
Method
delete
* 删除变量
packages/core/src/variables/store/variable-store.ts:173
↓ 8 callers
Method
emitJobEvent
( name: Parameters<typeof emitRuntimeJobEvent>[1], job: RuntimeJobRecord, overrides: Parameters<ty
apps/api/src/services/runtime-worker.ts:185
↓ 8 callers
Method
emitSnapshot
(snapshot: FloorRunSnapshot)
apps/api/src/services/floor-run-service.ts:744
↓ 8 callers
Method
enqueue
( tx: DbExecutor, input: EnqueueRuntimeJobInput<TPayload>, )
apps/api/src/services/runtime-job-scheduler.ts:36
↓ 8 callers
Function
enqueueGraphRun
(database: DatabaseConnection, payload: NodeGraphRunJobPayload)
apps/api/src/services/__tests__/node-graph-runtime.test.ts:258
↓ 8 callers
Method
enqueueIngestTurn
( tx: DbExecutor, input: EnqueueIngestTurnJobInput, )
apps/api/src/services/memory-job-scheduler.ts:125
↓ 8 callers
Function
enqueueJob
( database: DatabaseConnection, args: { jobId?: string; workspaceId: string; projectId: string;agentTypeId
apps/api/src/services/__tests__/project-agent-task-board-service.test.ts:41
↓ 8 callers
Function
errorFrames
(socket: MockSocket)
apps/api/src/realtime/resume/__tests__/resume-coordinator.test.ts:44
↓ 8 callers
Function
estimateTokens
(text: string)
apps/studio/src/modules/graph/assistant/estimate-tokens.ts:16
↓ 8 callers
Function
expectTurnOperationLog
(route: string)
apps/api/test/chat-routes.integration.test.ts:27
↓ 8 callers
Function
findActiveMentionQuery
(text: string, caret: number)
apps/studio/src/modules/graph/assistant/mention-query.ts:32
↓ 8 callers
Method
getById
(input: { id: string; accountId: string })
apps/api/src/services/project-agent-binding-service.ts:132
↓ 8 callers
Function
getDebugSink
()
packages/core/src/debug/debug-registry.ts:22
↓ 8 callers
Method
getFloorLocalSnapshot
(input: { accountId: string; floorId: string; })
apps/api/src/services/branch-local-variable-snapshot-service.ts:240
↓ 8 callers
Function
getOwnedFloorById
( db: AppDb, accountId: string, floorId: string )
apps/api/src/services/resource-ownership.ts:173
↓ 8 callers
Function
getOwnedSessionIds
( db: AppDb, accountId: string, candidateSessionIds?: readonly string[] )
apps/api/src/services/resource-ownership.ts:12
↓ 8 callers
Function
getRuntimeMemoryJobs
(database: DatabaseConnection, jobType?: "ingest_turn" | "compact_macro" | "maintenance" | "rebuild_scope")
apps/api/src/services/__tests__/memory-worker.test.ts:91
↓ 8 callers
Function
groupFloorStepsIntoSegments
(steps: readonly FloorStep[])
packages/official-integration-kit/client-helpers/src/steps/group-floor-step-segments.ts:29
↓ 8 callers
Function
hasOwn
(value: T, key: PropertyKey)
apps/api/src/lib/llm-params.ts:56
↓ 8 callers
Function
indent
(value: string, spaces: number)
apps/api/scripts/smoke/harness.ts:459
↓ 8 callers
Function
indexOf
(...refs: MentionRef[])
apps/studio/src/modules/graph/assistant/segment-mention-text.test.ts:10
↓ 8 callers
Method
initializeRun
(input: { sessionId: string; floorId: string; runType: FloorRunType; phase?: FloorRunPhase;
apps/api/src/services/floor-run-service.ts:144
↓ 8 callers
Function
insertProjectBinding
(input: { projectId: string; workspaceId: string; status?: "enabled" | "disabled"; allowedTool
apps/api/src/services/__tests__/session-tool-registry-service.test.ts:144
↓ 8 callers
Function
invalidApiKey
()
apps/api/src/services/client-api-key-service.ts:574
↓ 8 callers
Function
isRecord
(value: unknown)
packages/core/src/node-graph/subgraph.ts:70
↓ 8 callers
Function
isRecord
轻量对象守卫(非数组的纯对象)。
apps/api/src/tools/node-graph-tool-provider.ts:773
↓ 8 callers
Function
isRecord
(value: unknown)
apps/api/src/services/node-graph-runtime-job-processor.ts:559
↓ 8 callers
Function
jsonResponse
(body: unknown, status = 200)
packages/official-integration-kit/sdk/src/__tests__/projects-inbox.test.ts:7
↓ 8 callers
Method
listToolsWithMetadata
()
apps/api/src/services/tooling/mcp/mcp-tool-provider.ts:130
↓ 8 callers
Function
makeConnection
(overrides: Partial<BackendConnection>)
apps/studio/src/lib/backend/connection.test.ts:5
↓ 8 callers
Function
makeContext
(overrides: Partial<TurnAssemblyContext> = {})
apps/api/src/services/agent-runtime/__tests__/prompt-mode-turn-processor.golden.test.ts:38
↓ 8 callers
Function
makeMinimalFile
(overrides?: Record<string, unknown>)
packages/shared/src/types/__tests__/chat-file.test.ts:60
↓ 8 callers
Function
makeRecord
(id: string, overrides: Partial<ExecutedToolCallRecord> = {})
apps/api/src/adapters/__tests__/drizzle-tool-execution-repository.test.ts:63
↓ 8 callers
Function
makeSummary
(overrides: Partial<MemoryItem> = {})
packages/core/src/memory/__tests__/memory-compaction-planner.test.ts:6
↓ 8 callers
Function
mapApiErrorToUiState
(error: unknown)
packages/official-integration-kit/client-helpers/src/errors/map-api-error-to-ui-state.ts:64
↓ 8 callers
Function
mapGenerationParams
( params: GenerationParamsBody, )
apps/api/src/routes/chat/mappers.ts:21
↓ 8 callers
Function
mapLiveDebugOptionsRequest
( debugOptions: LiveDebugOptionsBody | undefined, )
apps/api/src/routes/chat/mappers.ts:171
↓ 8 callers
Function
mapPromptRuntimeInjectionRecordToSnakeCase
( record: PromptRuntimeInjectionRecord, )
apps/api/src/routes/prompt-runtime/presenters.ts:278
↓ 8 callers
Function
mapPromptRuntimeInjectionsRequest
( promptRuntimeInjections?: PromptRuntimeInjectionInput[], )
packages/official-integration-kit/sdk/src/prompt-runtime.ts:738
↓ 8 callers
Function
mapPromptRuntimeTraceMemoryPayload
(value: unknown)
packages/official-integration-kit/sdk/src/prompt-runtime.ts:1452
↓ 8 callers
Function
mapRunRecordStatusToUiStatus
( status: string | null | undefined, )
apps/studio/src/modules/graph/run/graph-run-view.ts:196
↓ 8 callers
Function
mapRunRecordToNodeStatusById
( response: NodeGraphRunRecordResponse |null | undefined, )
apps/studio/src/modules/graph/run/graph-run-view.ts:109
↓ 8 callers
Function
mapTurnSessionStateWritesRequest
( writes: Array<TurnSessionStateWriteValueBody | TurnSessionStateWriteDeleteBody> | undefined, )
apps/api/src/routes/chat/mappers.ts:83
↓ 8 callers
Function
matchesProjectEventStreamFilters
( event: ProjectEventRecord, filters: ProjectEventStreamFilters, )
apps/api/src/services/project-event-stream-service.ts:184
↓ 8 callers
Function
normalizeLlmInstanceCapabilities
( input: unknown, options: { warn?: CapabilitiesWarningReporter } = {}, )
apps/api/src/lib/llm-capabilities.ts:66
↓ 8 callers
Function
normalizeTemporaryConversationBranchId
(branchId?: string)
apps/api/src/services/temporary-conversation-service.ts:1964
↓ 8 callers
Method
plan
(input: MemoryCompactionPlannerInput)
packages/core/src/memory/memory-compaction-planner.ts:137
↓ 8 callers
Method
planForSource
* 根据调用来源解析执行计划。
apps/api/src/services/agent-runtime/agent-invocation-service.ts:99
↓ 8 callers
Method
previewPromptRuntimeText
( sessionId: string, request: import("./contracts.js").PromptRuntimePreviewRequest, accountId?: st
apps/api/src/services/chat/chat-service.ts:551
↓ 8 callers
Method
process
(input: MemoryIngestInput)
packages/core/src/memory/memory-ingest-processor.ts:334
↓ 8 callers
Method
promote
* 提升变量:从低 scope 复制到高 scope * * @throws {InvalidScopePromotionError} 方向不合法(高→低) * @throws {VariableNotFoundError} 源 scope 中找不到该变量
packages/core/src/variables/store/variable-store.ts:92
↓ 8 callers
Function
pushOperationLogTargetCondition
( conditions: SQL[], targetType: string, targetIds: string[], )
apps/api/src/services/core-asset-backup-snapshot.ts:1425
↓ 8 callers
Function
readAgentOriginFromMetadataJson
( metadataJson: string | null, )
apps/api/src/services/temporary-conversation-service.ts:2168
↓ 8 callers
Method
regenerate
( sessionId: string, request: RegenerateRequest = {}, accountId?: string, )
apps/api/src/services/chat/chat-service.ts:567
↓ 8 callers
Method
reject
用户拒绝:`pending` → `rejected`。
apps/api/src/services/graph-assistant-tool-confirmation-service.ts:181
↓ 8 callers
Method
removeServer
* 移除服务器,断开连接并从管理器中删除。
apps/api/src/services/tooling/mcp/mcp-connection-manager.ts:104
↓ 8 callers
Method
reopenForRetry
* 重试专用:把已提交楼层重新打开到 generating。 * * committed 是终态,常规 VALID_TRANSITIONS 不允许 committed → generating。但楼层级 / step 级 * 重试需要在同一楼层上重跑并产出新的 output page 版
packages/core/src/floor/floor-state-machine.ts:193
↓ 8 callers
Method
requireActiveTemporaryConversation
( accountId: string, conversationId: string, )
apps/api/src/services/temporary-conversation-service.ts:1480
↓ 8 callers
Method
requireDispatcher
(target: string)
apps/api/src/services/agent-runtime/temporary-conversation-agent-executor.ts:652
↓ 8 callers
Function
requireOptionalMappedId
(map: Map<string, string>, sourceId: string, label: string)
apps/api/src/services/core-asset-backup-restore.ts:722
↓ 8 callers
Method
requireProjectActionBySessionIdForActor
( actor: ProjectActorInput, sessionId: string, action: ProjectAction, )
apps/api/src/services/project-access-service.ts:167
↓ 8 callers
Method
requireSink
(sink: T | undefined, target: string)
apps/api/src/services/agent-runtime/agent-output-dispatcher.ts:512
↓ 8 callers
Function
resolveErrorMessage
(error: unknown, fallback: string)
apps/web/src/composables/workspace/mcp/mcp-manager-dialog.ts:208
↓ 8 callers
Function
resolveMemoryWriteAccess
( actorAccountId: string, scope: MemoryScope, scopeId: string, )
apps/api/src/routes/memories.ts:915
↓ 8 callers
Function
resolvePromptAgentKindFromLegacyMode
( legacyMode: string, )
apps/api/src/services/agent-runtime/prompt-agent-definitions.ts:90
↓ 8 callers
Function
resolvePromptModeDetails
( session: Pick<SessionPromptInfo, "promptMode">, metadata: SessionMetadata, )
apps/api/src/services/prompt-assembler.ts:2391
↓ 8 callers
Function
resolveTurnCompletionEventKey
( baseKey: TurnCompletionEventBaseKey, result?: TurnCompletionResult )
apps/web/src/composables/workspace/messages/turn-result-events.ts:20
↓ 8 callers
Method
routeByMedium
( medium: AgentMediumSelection, options: { singleCallExecutor?: SingleCallExecutorAdapter;
apps/api/src/services/agent-runtime/agent-executor-router.ts:174
↓ 8 callers
Function
runGit
(args: string[])
scripts/generate-agent-artifacts.ts:2401
↓ 8 callers
Function
seedTemporaryConversation
( database: DatabaseConnection, input: { status: TemporaryConversationStatus; retentionPolicy: Tem
apps/api/src/services/__tests__/temporary-conversation-retention-service.test.ts:137
↓ 8 callers
Function
selectFinalAnswerText
(stepRecords: readonly AgentLoopStepRecord[])
packages/core/src/orchestration/agent-loop.ts:143
↓ 8 callers
Method
sendControl
(socket: RealtimeSocketLike, control: RealtimeServerControl)
apps/api/src/realtime/resume/resume-coordinator.ts:422
↓ 8 callers
Function
sendPromptRuntimeRouteServiceError
( reply: Parameters<typeof sendError>[0], error: unknown, )
apps/api/src/routes/prompt-runtime/register-routes.ts:2074
↓ 8 callers
Method
stageSceneState
(input: StageFirstPartySceneStateInput)
apps/api/src/session-state/first-party-game-state-service.ts:84
↓ 8 callers
Function
summarizeToolArgs
( args: Record<string, unknown> | null | undefined, limit: number = DEFAULT_ARG_ENTRY_LIMIT, )
apps/studio/src/modules/graph/assistant/pending-tool-call-view.ts:58
↓ 8 callers
Function
textOutput
( title: string, text: string, source: "live" | "dry_run" | "synthetic" = "live", outputs: Record<stri
apps/api/src/services/node-graph-runtime/handlers/handler-io.ts:17
↓ 8 callers
Function
toDomainRecord
(row: typeof clientDataDomains.$inferSelect)
apps/api/src/client-data/client-data-repository.ts:839
↓ 8 callers
Function
toProposalDecision
(reason: TurnAttemptStaleReason | "commit_gate_blocked", options: { persistDiscardedRows: boolean; persist
apps/api/src/services/chat/turn-proposal-staging-service.ts:133
↓ 8 callers
Method
toSchemaName
原始工具名 → schema 名。原名合法时返回原名。
packages/core/src/tools/transport/native-tool-name-mapping.ts:48
↓ 8 callers
Function
toSectionInsertion
(placement: PromptPlacement)
packages/core/src/prompt-graph/compiler.ts:141
↓ 8 callers
Function
uniqueOrderedValues
(values: Array<string | null>)
apps/api/src/services/chat/conversation-history-normalizer.ts:200
↓ 8 callers
Method
updateDomainCounters
(domainId: string, deltaEntries: number, deltaBytes: number, now: number)
apps/api/src/client-data/client-data-repository.ts:656
↓ 8 callers
Function
withGraphId
(document: NodeGraphDocument, graphId: string, name: string)
apps/api/src/services/__tests__/project-floor-graph-binding-service.test.ts:30
↓ 8 callers
Function
withResourceWriteCas
( options: ResourceWriteCasOptions<TRow, TResult> )
apps/api/src/services/resource-write.ts:100
↓ 7 callers
Function
allocatePromptBudget
(args: PromptBudgetAllocatorInput)
packages/core/src/prompt/budget-allocator.ts:208
↓ 7 callers
Method
applyManualRevision
(input: ApplyCommittedContentManualRevisionInput)
apps/api/src/services/committed-content-manual-revision-service.ts:144
↓ 7 callers
Method
approve
用户批准:`pending` → `approved`。
apps/api/src/services/graph-assistant-tool-confirmation-service.ts:176
↓ 7 callers
Function
arrayOfRecords
(value: unknown)
apps/api/src/services/governance/trace-summary.ts:404
← previous
next →
701–800 of 8,237, ranked by callers