MCPcopy Create free account

hub / github.com/HerSophia/TavernHeadless / functions

Functions8,237 in github.com/HerSophia/TavernHeadless

↓ 21 callersFunctioncreatePromptRuntimeControlService
( overrides: Partial<PromptRuntimeControlServiceStub> = {}, )
apps/api/test/prompt-runtime.routes.test.ts:60
↓ 21 callersMethoddiff
(before: unknown, after: unknown, options: VcDiffServiceOptions = {})
apps/api/src/services/vc-diff-service.ts:64
↓ 21 callersMethoddryRun
()
apps/api/test/llm-runtime-wiring.integration.test.ts:31
↓ 21 callersFunctionextractSummaries
( text: string, options?: SummaryExtractorOptions, )
packages/core/src/generation/summary-extractor.ts:43
↓ 21 callersMethodgetExecutionRecords
获取当前回合已收集的真实执行记录快照。
packages/core/src/tools/tool-executor.ts:603
↓ 21 callersFunctiongetOpenApiSchemaExample
(container: OpenApiContentContainer | undefined)
apps/api/test/openapi.integration.test.ts:55
↓ 21 callersFunctionjsonOutput
( title: string, value: unknown, source: "live" | "dry_run" | "synthetic" = "live", outputs: Record<st
apps/api/src/services/node-graph-runtime/handlers/builtin.ts:54
↓ 21 callersFunctionmapDocumentToFlow
( document: NodeGraphDocument, options: MapDocumentOptions = {}, )
apps/studio/src/modules/graph/canvas/map-document.ts:617
↓ 21 callersFunctionmountRoutes
( service: PromptRuntimeControlServiceStub, previewService?: PromptRuntimePreviewServiceStub, insp
apps/api/test/prompt-runtime.routes.test.ts:124
↓ 21 callersMethodregister
* 注册一个提供商。 * * 根据 `config.type` 查找对应的工厂函数,初始化 provider。 * 重复注册会覆盖旧的。 * * @throws {ProviderInitError} 工厂初始化失败时
packages/core/src/llm/provider-registry.ts:194
↓ 21 callersFunctionsection
( name: string, messages: { role: 'system' | 'user' | 'assistant'; content: string; prunable?: boolean; pr
packages/core/src/prompt/__tests__/token-budget.test.ts:14
↓ 21 callersFunctionseedFloor
(args: { database: DatabaseConnection; sessionId: string; floorId: string; state: "draft" | "generatin
apps/api/src/services/__tests__/turn-commit-service.test.ts:94
↓ 20 callersFunctionassert
(condition: boolean, message: string)
apps/api/scripts/real-provider-regression.ts:984
↓ 20 callersFunctionauthHeaders
(apiKey: string)
apps/api/src/routes/__tests__/project-routes.test.ts:93
↓ 20 callersFunctioncreateDefaultNodeGraphExecutor
()
apps/api/src/services/node-graph-runtime/index.ts:47
↓ 20 callersFunctiondecryptSecret
(cipherText: string, masterKey: string)
apps/api/src/lib/secrets.ts:48
↓ 20 callersFunctioneventEnvelopes
(socket: MockSocket)
apps/api/src/realtime/resume/__tests__/resume-coordinator.test.ts:40
↓ 20 callersMethodfindByKey
查询指定 scope + scopeId 下的某个 key
packages/core/src/ports/variable-repository.ts:19
↓ 20 callersFunctiongetFloorContentMutationRejection
(input: { mutationKind: FloorContentMutationKind; floorState?: FloorState; floorSupersededAt?: number |
apps/api/src/services/floor-content-mutability-policy.ts:23
↓ 20 callersMethodinfo
(obj: unknown, message?: string)
apps/api/src/services/memory-worker.ts:15
↓ 20 callersFunctionmakeEnvelope
(runId: string, seq: number, sessionId = 'session-1')
apps/api/src/realtime/run-log/__tests__/run-event-buffer.test.ts:6
↓ 20 callersFunctionmakeTool
(overrides: Partial<ToolDefinition> = {})
packages/core/src/tools/__tests__/tool-registry.test.ts:14
↓ 20 callersFunctionparseBranchMemoryScopeId
(scopeId: string)
packages/shared/src/types/memory.ts:32
↓ 20 callersFunctionparsePreset
(json: unknown)
packages/adapters-sillytavern/src/parsers/preset-parser.ts:434
↓ 20 callersFunctiontoNodeTriggers
(promptEntry: STPromptEntry | undefined)
packages/adapters-sillytavern/src/preset-to-native-group.ts:37
↓ 20 callersFunctionvalidateNodeGraph
( document: NodeGraphDocument, options: NodeGraphValidationOptions = {}, )
packages/core/src/node-graph/validator.ts:1179
↓ 19 callersFunctionasRecord
(value: unknown)
apps/api/src/services/node-graph-runtime/handlers/builtin.ts:25
↓ 19 callersFunctionassembleCompatPlus
(input: CompatPlusAssemblerInput)
packages/adapters-sillytavern/src/compat-plus-assembler.ts:139
↓ 19 callersFunctionauthHeader
(token: string)
apps/api/test/accounts.integration.test.ts:61
↓ 19 callersFunctionbaseInput
(overrides?: Partial<GenerationInput>)
packages/core/src/generation/__tests__/generation-pipeline.test.ts:56
↓ 19 callersMethodbuildRuntime
( sessionId: string, accountId: string, )
apps/api/src/services/tooling/session-tool-registry-service.ts:415
↓ 19 callersFunctioncreateApiClient
(options: CreateApiClientOptions)
packages/shared/src/api/client.ts:93
↓ 19 callersFunctioncreateDefaultNodeTypeRegistry
()
packages/core/src/node-graph/registry.ts:894
↓ 19 callersFunctioncreateTestWorkspace
( db: TestDb, input: { accountId?: string; id?: string; name?: string; isDefault?: boolean
apps/api/src/__tests__/helpers/workspace-project.ts:57
↓ 19 callersFunctionfirstInput
(inputs: NodeGraphNodeInputs, keys: readonly string[])
apps/api/src/services/node-graph-runtime/handlers/builtin.ts:45
↓ 19 callersFunctioninsertSession
(input: { metadata?: unknown; characterId?: string | null; characterSnapshot?: unknown; preset
apps/api/src/services/__tests__/prompt-runtime-control-service.test.ts:54
↓ 19 callersFunctionisRecord
(value: unknown)
scripts/generate-agent-artifacts.ts:2421
↓ 19 callersFunctionjsonResponse
(body: unknown, status = 200)
packages/official-integration-kit/sdk/src/__tests__/memory-resources.test.ts:11
↓ 19 callersFunctionmakeConfig
(overrides: Partial<McpServerConfig> = {})
apps/api/src/mcp/__tests__/mcp-tool-provider.test.ts:45
↓ 19 callersFunctionmakeConfig
(overrides: Partial<McpServerConfig> = {})
apps/api/src/mcp/__tests__/mcp-connection-manager.test.ts:29
↓ 19 callersFunctionmakeContext
(overrides?: Partial<ToolExecutionContext>)
packages/core/src/tools/__tests__/builtin-provider.test.ts:9
↓ 19 callersFunctionrequest
(method: string, path: string, body?: unknown)
apps/studio/src/lib/nodegraph-api/client.ts:38
↓ 19 callersMethodresolveAccountId
(accountId?: string)
apps/api/src/services/llm-profile-service.ts:599
↓ 19 callersFunctionresume
(coordinator: RealtimeResumeCoordinator, socket: MockSocket, runId: string, lastSeq: number, context = SESSION
apps/api/src/realtime/resume/__tests__/resume-coordinator.test.ts:100
↓ 19 callersFunctionstringField
(record: Record<string, unknown>, key: string)
apps/studio/src/modules/graph/config/agent-call-config.ts:97
↓ 19 callersFunctiontick
()
apps/api/src/realtime/resume/__tests__/resume-coordinator.test.ts:86
↓ 18 callersFunctionasRecord
(value: unknown)
apps/api/src/lib/preset-utils.ts:484
↓ 18 callersFunctionauthHeader
(token: string)
apps/api/test/memories.integration.test.ts:59
↓ 18 callersFunctioncategorizeTool
(toolName: string)
apps/studio/src/modules/graph/assistant/tool-policy-grouping.ts:27
↓ 18 callersFunctionemitDebug
( domain: DebugDomain, levelOrMessage: DebugLevel | string, messageOrPayload?: unknown, payload?: unkn
packages/core/src/debug/debug-registry.ts:57
↓ 18 callersFunctionisDebugEnabled
(domain: DebugDomain)
packages/core/src/debug/debug-registry.ts:39
↓ 18 callersFunctionjsonResponse
(body: unknown, status = 200)
packages/official-integration-kit/sdk/src/__tests__/llm-resources.test.ts:7
↓ 18 callersFunctionjsonResponse
(body: unknown, status = 200)
packages/official-integration-kit/sdk/src/__tests__/sessions-expanded.test.ts:7
↓ 18 callersFunctionjsonResponse
(body: unknown, status = 200)
packages/official-integration-kit/sdk/src/__tests__/temporary-conversations-resource.test.ts:7
↓ 18 callersFunctionmakeInput
(overrides?: Partial<CreateDefinitionInput>)
apps/api/src/services/__tests__/tool-service.test.ts:12
↓ 18 callersFunctionmakeRequest
( overrides: Partial<TemporaryConversationAgentRequest> = {}, )
apps/api/src/services/agent-runtime/__tests__/temporary-conversation-agent-executor.test.ts:153
↓ 18 callersFunctionmakeServiceStub
( overrides: Partial<TemporaryConversationAgentService> = {}, )
apps/api/src/services/agent-runtime/__tests__/temporary-conversation-agent-executor.test.ts:80
↓ 18 callersFunctionmapStringArray
(value: unknown)
packages/official-integration-kit/sdk/src/prompt-runtime.ts:1882
↓ 18 callersFunctionmessage
( over: Partial<TemporaryConversationTranscriptMessage> = {}, )
apps/studio/src/modules/graph/assistant/floor-view-model.test.ts:10
↓ 18 callersFunctionmockFetch
* 创建一个 mock fetchImpl,返回指定的 Response。 * 同时暴露 spy 供断言调用参数。
packages/shared/src/api/__tests__/client.test.ts:11
↓ 18 callersFunctionnormalizeNullableString
(value: unknown)
apps/api/src/services/operation-log-service.ts:278
↓ 18 callersFunctionnormalizePositiveInt
(value: unknown)
apps/api/src/services/chat/prompt-preparation-service.ts:506
↓ 18 callersMethodrun
( projectId: string, graphId: string, input?: NodeGraphRunInput, )
apps/studio/src/modules/graph/run/use-graph-run.ts:29
↓ 18 callersMethodseed
( scope: VariableScope, scopeId: string, key: string, value: unknown, accountId?: string
packages/core/src/variables/__tests__/variable-store.test.ts:34
↓ 18 callersFunctionseedSession
( database: DatabaseConnection, sessionId: string, now: number, accountId: string = DEFAULT_ACCOUNT_ID
apps/api/src/services/__tests__/turn-commit-service.test.ts:78
↓ 18 callersFunctionselectPromptRuntimePolicySource
(args: { session: unknown; branch: unknown; request: unknown; })
apps/api/src/services/prompt-runtime/control-service.ts:2918
↓ 18 callersFunctionsendWorkspaceScopeError
(reply: Parameters<typeof sendError>[0], error: WorkspaceScopeServiceError)
apps/api/src/routes/imports.ts:906
↓ 18 callersFunctiontoOrderBy
(column: SQLWrapper, sortOrder: SortOrder)
apps/api/src/lib/pagination.ts:14
↓ 17 callersFunctioncreateChatService
(overrides: Partial<ChatServiceStub> = {})
apps/api/test/chat-routes.integration.test.ts:16
↓ 17 callersFunctioncreateFloor
( app: FastifyInstance, payload: { session_id: string; floor_no: number; branch_id: string;
apps/api/test/m8-core-rp.test.ts:449
↓ 17 callersFunctioncreateMockLLM
(responseText: string, options?: { usage?: LLMResponse['usage']; finishReason?: string; streamChunks?: s
packages/core/src/generation/__tests__/generation-pipeline.test.ts:9
↓ 17 callersMethodcreatePending
登记一条待确认工具调用(状态 `pending`)。
apps/api/src/services/graph-assistant-tool-confirmation-service.ts:92
↓ 17 callersFunctioncreatePrepareArgs
(overrides: { request?: { promptRuntimeInjections?: Array<{ sourceKind: "client_injection";
apps/api/src/services/__tests__/prepared-prompt-artifacts-builder.test.ts:680
↓ 17 callersMethoddispatch
(request: AgentOutputDispatchRequest)
apps/api/src/services/agent-runtime/agent-output-dispatcher.ts:333
↓ 17 callersMethodeditAndRegenerate
()
apps/api/test/llm-runtime-wiring.integration.test.ts:39
↓ 17 callersFunctionexportNodeGraphPackage
(input: ExportNodeGraphPackageInput)
packages/core/src/node-graph/package/export.ts:234
↓ 17 callersMethodgetById
(input: GetClientInput)
apps/api/src/services/client-service.ts:237
↓ 17 callersMethodgetFloorSnapshot
(input: { accountId: string; sessionId: string; floorId: string; namespace: SessionStateNamesp
apps/api/src/session-state/session-state-service.ts:765
↓ 17 callersFunctionhandleProjectRouteError
(error: unknown, reply: FastifyReply)
apps/api/src/routes/projects.ts:1652
↓ 17 callersFunctionjsonResponse
(body: unknown, status = 200)
packages/official-integration-kit/sdk/src/__tests__/core-resources.test.ts:7
↓ 17 callersMethodlistAll
* 列出所有提供者的所有工具定义。
packages/core/src/tools/tool-registry.ts:54
↓ 17 callersFunctionmapTurnTrace
(raw: RawTurnTrace)
apps/studio/src/modules/chat/trace/map-trace.ts:190
↓ 17 callersFunctionmountChatRoutes
( chatService: ChatServiceStub, options: { enablePromptDryRun?: boolean; enableSseChat?: boolean } = {
apps/api/test/chat-routes.integration.test.ts:37
↓ 17 callersFunctionpushOptionalFilter
(filters: SQL[], column: AnySQLiteColumn, value: string | null | undefined)
apps/api/src/services/agent-runtime/runtime-trace-query-service.ts:490
↓ 17 callersMethodrequireProjectActionBySessionId
( actorAccountId: string, sessionId: string, action: ProjectAction, )
apps/api/src/services/project-access-service.ts:155
↓ 17 callersFunctionresolvePromptRuntimeSourceGovernanceLevel
( kind: string, )
packages/core/src/prompt/runtime-registry.ts:294
↓ 17 callersFunctionseedSession
(database: DatabaseConnection, sessionId: string, now: number)
apps/api/src/services/__tests__/chat-service-session-state.test.ts:1371
↓ 17 callersMethodwrite
写出一条记录。仅在 `isEnabled` 返回 true 时才会被调用。
packages/core/src/debug/debug-sink.ts:39
↓ 16 callersFunctionactorFromRequest
(request: FastifyRequest)
apps/api/src/routes/node-graphs.ts:140
↓ 16 callersFunctionasRecord
(value: unknown)
apps/studio/src/modules/graph/canvas/map-document.ts:208
↓ 16 callersFunctionasRecord
(value: unknown)
apps/studio/src/modules/graph/settings/graph-settings-view.ts:482
↓ 16 callersFunctionbaseInput
(overrides?: Partial<CompatPlusAssemblerInput>)
packages/adapters-sillytavern/src/__tests__/compat-plus-assembler.test.ts:73
↓ 16 callersFunctionbearer
(token: string)
apps/api/test/prompt-runtime-injections.integration.test.ts:568
↓ 16 callersFunctionbuildNativePromptFloorTemplate
()
packages/core/src/node-graph/templates/native-prompt-floor.ts:85
↓ 16 callersFunctionclearMessageDialogTarget
()
apps/web/src/composables/workspace/messages/message-dialog.ts:76
↓ 16 callersFunctioncloneGraphDocument
(document: NodeGraphDocument)
apps/studio/src/stores/graph-editor.ts:67
↓ 16 callersFunctioncloseMessageDialogs
()
apps/web/src/composables/workspace/messages/message-dialog.ts:89
↓ 16 callersFunctioncreateFloor
(args: { sessionId: string; floorNo: number; branchId: string; parentFloorId?: string; sta
apps/api/test/floors.integration.test.ts:67
↓ 16 callersMethodcreatePresetVersion
(presetId: string, input: CreateAssetVersionInput)
apps/api/src/services/asset-version-service.ts:181
↓ 16 callersFunctionexecuteResourceWrite
( task: () => ResourceRouteMutationResult<T> | Promise<ResourceRouteMutationResult<T>> )
apps/api/src/routes/imports.ts:882
← previousnext →201–300 of 8,237, ranked by callers