MCPcopy Create free account

hub / github.com/HerSophia/TavernHeadless / functions

Functions8,237 in github.com/HerSophia/TavernHeadless

↓ 11 callersFunctionseedSourceSession
( database: DatabaseConnection, now: number, )
apps/api/src/services/__tests__/temporary-conversation-service.test.ts:863
↓ 11 callersFunctionsessionOwnershipFilter
(sessionId: string, accountId: string)
apps/api/src/routes/sessions.ts:1361
↓ 11 callersMethodsetActive
(input: { actor: ProjectActorInput; projectId: string; kind: FloorGraphBindingKind | string; g
apps/api/src/services/project-floor-graph-binding-service.ts:103
↓ 11 callersFunctionsetup
()
apps/api/src/realtime/run-log/__tests__/run-log.test.ts:30
↓ 11 callersMethodstage
(input: SessionStateProposalDraft)
apps/api/src/services/agent-runtime/agent-output-dispatcher.ts:72
↓ 11 callersFunctiontableHasColumns
( sqlite: Database.Database, tableName: string, columnNames: readonly string[], )
apps/api/src/db/client.ts:81
↓ 11 callersFunctiontoInsertion
(promptEntry: STPromptEntry | undefined)
packages/adapters-sillytavern/src/compat-assembler.ts:117
↓ 11 callersFunctiontoNodePlacement
(promptEntry: STPromptEntry | undefined, order: number, allowInChat = true)
packages/adapters-sillytavern/src/preset-to-native-group.ts:42
↓ 11 callersMethodwriteDirectValue
(input: { accountId: string; sessionId: string; branchId: string; namespace: SessionStateNames
apps/api/src/session-state/session-state-service.ts:301
↓ 10 callersFunctionasRecord
(value: unknown)
apps/api/src/session-state/__tests__/session-state-service.test.ts:1172
↓ 10 callersMethodassertFloorMutationAllowed
(floorId: string)
apps/api/src/services/conversation-shape-policy.ts:105
↓ 10 callersFunctionauthHeader
(token: string)
apps/api/test/variables.integration.test.ts:29
↓ 10 callersFunctionbuildAuthHeaders
(connection: BackendConnection)
apps/studio/src/lib/backend/connection.ts:48
↓ 10 callersFunctionbuildFloorSteps
(input: BuildFloorStepsInput)
packages/official-integration-kit/client-helpers/src/steps/build-floor-steps.ts:41
↓ 10 callersFunctionbuildOperationLogResourceAction
( domain: RuntimeGovernanceOperationDomain, resource: string, verb: string, )
apps/api/src/services/governance/operation-log-names.ts:85
↓ 10 callersFunctionclearInterval
(handle)
apps/studio/src/modules/graph/run/use-graph-run.test.ts:25
↓ 10 callersFunctioncloneSlotRecord
(record?: Record<string, string[]>)
apps/api/src/services/tooling/shared/permission-overlay.ts:31
↓ 10 callersMethodconsolidate
* 执行记忆整理。 * * @param input - 整理输入 * @returns 整理结果(结构化输出 + token 统计) * @throws 如果 LLM 调用失败,抛出原始错误
packages/core/src/memory/memory-consolidator.ts:238
↓ 10 callersFunctioncreateEventContextResolver
(tx: DbExecutor, accountId: string)
apps/api/src/services/manual-memory-mutation-service.ts:323
↓ 10 callersFunctioncreatePromptAssetDeclaration
(args: { id: string; ref: PromptAssetRef; part: PromptAssetDeclarationPart; runtimeActive: boolean;
packages/core/src/prompt-assets/declaration.ts:6
↓ 10 callersFunctioncreateSection
( name: string, order: number, messages: IRMessage[], pinned = true, options: { insertion?: IRSe
packages/core/src/prompt-graph/compiler.ts:191
↓ 10 callersFunctioncreateSession
(opts: { presetId?: string; worldbookId?: string; regexId?: string; character?: Record<string,
apps/api/test/e2e-chat.test.ts:211
↓ 10 callersFunctioncreateSession
(title = "Floor Session")
apps/api/test/floors.integration.test.ts:56
↓ 10 callersMethodcreateToolMutationEnvelope
( context: ToolExecutionContext, args: { id: string; kind: string; scopeType: string
apps/api/src/tools/resource-tool-provider.ts:986
↓ 10 callersMethodcreateWorldbookVersion
(worldbookId: string, input: Omit<CreateAssetVersionInput, "data"> & { data?: unknown })
apps/api/src/services/asset-version-service.ts:209
↓ 10 callersFunctiondescribeError
(cause: unknown)
apps/studio/src/stores/graph-editor.ts:1539
↓ 10 callersFunctionformatVariablePreview
(value: unknown)
packages/official-integration-kit/client-helpers/src/variables/flatten-variable-snapshot.ts:63
↓ 10 callersMethodgetResolvedState
(sessionId: string, accountId: string, branchId = "main")
apps/api/src/services/prompt-runtime/control-service.ts:760
↓ 10 callersFunctiongraphWithNarratorConfig
(config: unknown)
apps/api/src/services/__tests__/prompt-recipe-resolver.test.ts:64
↓ 10 callersFunctiongroupMessagesIntoFloors
(messages: STChatMessage[])
packages/adapters-sillytavern/src/parsers/chat-parser.ts:187
↓ 10 callersFunctionhandleServiceError
(error: unknown, reply: FastifyReply)
apps/api/src/routes/clients.ts:229
↓ 10 callersMethodingestSummaries
* 将摘要提取结果存入记忆。 * * 每条摘要创建一个 type='summary' 的记忆条目。 * 默认 importance=0.5, confidence=1.0。 * * @param summaries - extractSummaries 提取到的摘要列表
packages/core/src/memory/memory-store.ts:117
↓ 10 callersFunctioninsertMcpConfig
(overrides: Partial<typeof mcpServerConfigs.$inferInsert> = {})
apps/api/src/services/__tests__/session-tool-registry-service.test.ts:121
↓ 10 callersFunctionisBindingError
( result: SessionAssetBindingState | SessionAssetBindingError, )
apps/api/src/services/__tests__/session-asset-binding-service.test.ts:40
↓ 10 callersFunctionisMutationKind
( request: RuntimeMutationApplyRequest<unknown>, kind: string, )
apps/api/src/services/resource-mutation-applier.ts:215
↓ 10 callersFunctionjsonResponse
(body: unknown, status = 200)
packages/official-integration-kit/sdk/src/__tests__/content-resources.test.ts:9
↓ 10 callersFunctionjsonResponse
(body: unknown, status = 200)
packages/official-integration-kit/sdk/src/__tests__/project-agent-bindings-resource.test.ts:7
↓ 10 callersFunctionjsonResponse
(body: unknown, status = 200)
packages/official-integration-kit/sdk/src/__tests__/floors-expanded.test.ts:7
↓ 10 callersMethodlistByProject
(input: { projectId: string; accountId: string })
apps/api/src/services/project-mcp-binding-service.ts:40
↓ 10 callersFunctionloadPublicConversationDetail
( reply: FastifyReply, accountId: string, conversationId: string, )
apps/api/src/routes/temporary-conversations.ts:683
↓ 10 callersFunctionmakeExecutor
(result: ToolCallResult = { data: { ok: true } })
packages/core/src/orchestration/__tests__/text-protocol-agent-loop.test.ts:80
↓ 10 callersFunctionmakeInjection
( items: MemoryItem[], formattedText: string, tokenCount = 50, )
packages/adapters-sillytavern/src/__tests__/compat-plus-assembler.test.ts:65
↓ 10 callersFunctionmapClientRow
(row:typeof clients.$inferSelect)
apps/api/src/services/client-service.ts:343
↓ 10 callersFunctionmapPromptDeliveryRequest
( delivery: PromptDeliveryBody | undefined, )
apps/api/src/routes/chat/mappers.ts:129
↓ 10 callersFunctionmapPromptRuntimeInjectionsRequest
( injections: PromptRuntimeInjectionBody[] | undefined, )
apps/api/src/routes/chat/mappers.ts:66
↓ 10 callersFunctionmapPromptStructureRequest
( structure: PromptStructureBody | undefined, )
apps/api/src/routes/chat/mappers.ts:114
↓ 10 callersFunctionnormalizeReasonCode
(value: unknown, fallback = "unknown")
apps/api/src/services/governance/trace-summary.ts:77
↓ 10 callersMethodnotifyPendingOutputUpdate
( input: TurnInput, payload: { text: string; state: 'draft' | 'streaming' | 'generated' |
packages/core/src/orchestration/turn-orchestrator.ts:661
↓ 10 callersFunctionparseFailure
(message: string)
apps/api/src/services/st-macros/if-condition.ts:125
↓ 10 callersFunctionphaseToStatusKind
(phase: string)
apps/studio/src/modules/graph/assistant/tool-call-view.ts:56
↓ 10 callersFunctionplatformEnvironment
( overrides: Partial<NodeGraphPackageEnvironment> = {}, )
packages/core/src/node-graph/__tests__/node-graph-package.test.ts:41
↓ 10 callersFunctionpruneUndefined
(value: T)
apps/studio/src/modules/graph/import/silly-tavern-preset.ts:485
↓ 10 callersFunctionreadRequiredString
(value: unknown)
apps/web/src/lib/workspace-api/messages.ts:293
↓ 10 callersFunctionreadString
(value: unknown)
apps/api/src/services/governance/trace-summary.ts:408
↓ 10 callersMethodreleaseUpTo
释放某个 run 中 seq <= ackSeq 的已确认前缀(RT3 ack 释放,转发到 buffer)
apps/api/src/realtime/run-log/run-log.ts:152
↓ 10 callersFunctionrequestCorrelationId
(request: FastifyRequest)
apps/api/src/routes/projects.ts:1648
↓ 10 callersFunctionrequireAccountActor
(request: FastifyRequest, reply: FastifyReply)
apps/api/src/routes/clients.ts:215
↓ 10 callersFunctionrequireNonEmpty
(value: string)
apps/api/src/services/client-api-key-service.ts:555
↓ 10 callersFunctionrequireStringField
( record: Record<string, unknown>, fieldName: string, context: PayloadErrorContext, )
apps/api/src/session-state/first-party-game-state-service.ts:599
↓ 10 callersMethodrequireWritableDomain
(domain: ClientDataDomainRecord)
apps/api/src/client-data/client-data-service.ts:1110
↓ 10 callersMethodresolveAccountId
(queryAccountId?: string, options?: MemoryAccessOptions)
apps/api/src/adapters/drizzle-memory-repository.ts:131
↓ 10 callersMethodresolveConfigs
( accountId: string, sessionId?: string, )
apps/api/src/services/llm-instance-service.ts:236
↓ 10 callersFunctionresolveInputTokens
(usage: unknown)
packages/official-integration-kit/sdk/src/types/usage.ts:33
↓ 10 callersFunctionresolveNodeGraphNodePorts
( node: Pick<NodeGraphNode, 'type' | 'config'>, registryPorts: { inputPorts: readonly NodeGraphPortDefinit
packages/core/src/node-graph/subgraph.ts:233
↓ 10 callersFunctionresolveOutputTokens
(usage: unknown)
packages/official-integration-kit/sdk/src/types/usage.ts:38
↓ 10 callersFunctionresolvePromptSourceGates
( sourceSelection?: PromptSourceSelectionPolicy, )
apps/api/src/services/prompt-runtime-source-resolution.ts:62
↓ 10 callersMethodresolveTurnModelsForSession
(sessionId: string, accountId: string)
apps/api/src/services/chat/turn-model-service.ts:59
↓ 10 callersFunctionrun
(promptMode: PromptMode, userMessage = "Continue.")
apps/api/src/services/agent-runtime/__tests__/turn-assembly-determinism.test.ts:67
↓ 10 callersFunctionscriptedGenerate
把脚本化的 rawText 序列封装成单步生成回调。
packages/core/src/orchestration/__tests__/text-protocol-agent-loop.test.ts:57
↓ 10 callersFunctionseedInputPage
(args: { database: DatabaseConnection; floorId: string; pageId: string; now: number; })
apps/api/src/services/__tests__/turn-commit-service.test.ts:115
↓ 10 callersFunctionsendPromptRuntimeControlServiceError
( reply: Parameters<typeof sendError>[0], error: unknown, )
apps/api/src/routes/prompt-runtime/register-routes.ts:2063
↓ 10 callersFunctionsendServiceError
(reply: FastifyReply, error: unknown)
apps/api/src/routes/llm-profiles.ts:696
↓ 10 callersFunctionserializeThChatForAccount
( db: AppDb, sessionId: string, options: Partial<Parameters<typeof serializeSessionToThChat>[2]> = {}, )
apps/api/src/services/__tests__/chat-export.test.ts:126
↓ 10 callersMethodstart
开始监听 EventBus 事件并转发到 WebSocket 客户端
apps/api/src/ws/ws-bridge.ts:65
↓ 10 callersFunctiontranscript
(floors: TemporaryConversationTranscriptFloor[])
apps/studio/src/modules/graph/assistant/floor-view-model.test.ts:60
↓ 10 callersFunctionvalidateAssetImportFile
(kind: AssetKind, file: File)
apps/studio/src/lib/assets/validate-import.ts:11
↓ 9 callersFunctionappendEvent
( database: DatabaseConnection["db"], input: { workspaceId: string; projectId: string; type: s
apps/api/src/routes/__tests__/project-routes.test.ts:105
↓ 9 callersMethodassertNarratorSlotEnabled
(models: ResolvedTurnModels)
apps/api/src/services/chat/turn-model-service.ts:123
↓ 9 callersMethodassertTurnSessionStateWritesAvailable
(writes?: TurnSessionStateWriteRequest[])
apps/api/src/services/chat/turn-session-state-service.ts:13
↓ 9 callersFunctionauthorizeProjectWriteBySessionId
( reply: FastifyReply, actorAccountId: string, sessionId: string, )
apps/api/src/routes/prompt-runtime/register-routes.ts:228
↓ 9 callersFunctionbaseInput
(overrides?: Partial<ConsolidationInput>)
packages/core/src/memory/__tests__/memory-consolidator.test.ts:41
↓ 9 callersFunctionbuildChatApp
(input: { enableClientData?: boolean; respondImpl?: (...args: unknown[]) => unknown | Promise<unknown>; }
apps/api/src/routes/__tests__/chat.test.ts:394
↓ 9 callersFunctionbuildElkGraph
(document: NodeGraphDocument, options: ElkAdapterOptions = {})
apps/studio/src/modules/graph/layout/elk-adapter.ts:109
↓ 9 callersMethodbuildJobArtifactPath
(jobId: string, fileName: string)
apps/api/src/services/backup-artifacts.ts:17
↓ 9 callersFunctionbuildResolvedPromptRuntimePolicy
( ...layers: Array<PromptRuntimePersistentPolicy | undefined> )
apps/api/src/services/prompt-runtime/control-service.ts:1573
↓ 9 callersFunctionbuildStatusForConfig
(config: McpConfigResponseSummary, mcpManager?: McpConnectionManager)
apps/api/src/routes/tooling/mcp.ts:460
↓ 9 callersFunctionclearMcpManagerError
()
apps/web/src/composables/workspace/mcp/mcp-manager-dialog.ts:232
↓ 9 callersFunctioncollectContextBlocks
( snapshot: GraphContextSnapshot, config: GraphAssistantContextConfig, )
apps/studio/src/modules/graph/assistant/collect-context-blocks.ts:194
↓ 9 callersFunctioncompilePromptGraph
( document: PromptGraphDocument, input: PromptGraphCompilerInput, )
packages/core/src/prompt-graph/compiler.ts:542
↓ 9 callersMethodcount
(text: string)
packages/core/src/prompt/token-budget.ts:18
↓ 9 callersFunctioncreateEntry
( app: FastifyInstance, wbId: string, payload: Record<string, unknown> )
apps/api/test/worldbook-entries.test.ts:195
↓ 9 callersFunctioncreateExecution
(_floorId: string, generatedText: string)
apps/api/src/session-state/__tests__/first-party-game-state-service.test.ts:705
↓ 9 callersFunctioncreateMemory
( app: FastifyInstance, args: { scope: MemoryScope; scopeId: string; type: MemoryType; con
apps/api/test/memories.integration.test.ts:145
↓ 9 callersMethodcreateRegexProfileVersion
(regexProfileId: string, input: CreateAssetVersionInput)
apps/api/src/services/asset-version-service.ts:238
↓ 9 callersFunctioncreateSession
( app: FastifyInstance, payload: { title: string; prompt_mode?: "compat_strict" | "compat_plus" | "native"
apps/api/test/api.integration.test.ts:668
↓ 9 callersFunctioncreateSession
()
apps/api/test/unified-vc-phase4.integration.test.ts:37
↓ 9 callersFunctioncreateSlotParamsDraft
(params?: WorkspaceLlmGenerationParams | null)
apps/web/src/composables/workspace/llm/instance-manager-dialog.ts:130
↓ 9 callersFunctioncreateUserInputDigest
(content: string)
apps/api/src/services/memory-job-utils.ts:3
↓ 9 callersFunctioncreateValidGraph
(overrides: Partial<NodeGraphDocument> = {})
packages/core/src/node-graph/__tests__/node-graph.test.ts:8
↓ 9 callersFunctiondefaultContextConfig
()
apps/studio/src/modules/graph/assistant/context-config.ts:85
← previousnext →501–600 of 8,237, ranked by callers