MCPcopy Create free account

hub / github.com/HerSophia/TavernHeadless / functions

Functions8,237 in github.com/HerSophia/TavernHeadless

↓ 9 callersMethoddiagnose
(input: ScopeIntegrityDiagnoseInput = {})
apps/api/src/services/scope-integrity-service.ts:85
↓ 9 callersMethoddirect
* 生成本回合的叙事指令。 * * @param input - Director 输入 * @param params - 生成参数覆盖 * @returns Director 结果
packages/core/src/orchestration/director.ts:135
↓ 9 callersFunctiondoc
(overrides: Partial<NodeGraphDocument>)
packages/core/src/node-graph/__tests__/subgraph.test.ts:13
↓ 9 callersMethodensureDefaultWorkspace
(accountId: string, now = Date.now())
apps/api/src/services/workspace-scope-service.ts:41
↓ 9 callersFunctionensureServiceAvailable
(reply: FastifyReply)
apps/api/src/routes/session-state-observation.ts:117
↓ 9 callersFunctionestimateTokenCount
(text: string)
packages/core/src/memory/memory-mutation-applier.ts:159
↓ 9 callersFunctionexecuteCommittedMemoryTransaction
(options: { db: AppDb; eventBus?: CoreEventBus; now?: () => number; commit: (tx: DbExecutor, context:
apps/api/src/services/manual-memory-mutation-service.ts:557
↓ 9 callersFunctionexecutePromptRuntimeRegexPhase
(args: { phaseId: PromptRuntimeRegexPhaseId; text?: string; scripts: STRegexScript[]; depth?: number |
apps/api/src/services/prompt-runtime/regex/runtime-facade.ts:64
↓ 9 callersFunctionexpectAfter
(text: string, left: string, right: string)
apps/api/src/services/__tests__/prompt-runtime-injection-semantic-placements.test.ts:471
↓ 9 callersFunctionfail
(file: File, reason: AssetImportValidationReason, detail: string)
apps/studio/src/lib/assets/validate-import.ts:76
↓ 9 callersMethodfindAllByScope
查询指定 scope + scopeId 下的所有变量
packages/core/src/ports/variable-repository.ts:27
↓ 9 callersMethodfindById
(id: string)
packages/core/src/memory/memory-mutation-applier.ts:57
↓ 9 callersFunctionformatArgValue
(value: unknown)
apps/studio/src/modules/graph/assistant/pending-tool-call-view.ts:29
↓ 9 callersMethodgetConnection
* 获取指定服务器的连接。 * 如果是 HTTP 服务器且未连接,会自动发起连接。
apps/api/src/services/tooling/mcp/mcp-connection-manager.ts:60
↓ 9 callersFunctiongetOpenApiRequestSchema
(operation: OpenApiOperation | undefined)
apps/api/test/openapi.integration.test.ts:60
↓ 9 callersFunctiongetOpenApiResponseSchema
(operation: OpenApiOperation | undefined, statusCode: string)
apps/api/test/openapi.integration.test.ts:67
↓ 9 callersMethodgetStatus
* 获取单个服务器的连接状态。
apps/api/src/services/tooling/mcp/mcp-connection-manager.ts:151
↓ 9 callersFunctionhandleObservationError
(error: unknown, reply: FastifyReply)
apps/api/src/routes/session-state-observation.ts:564
↓ 9 callersFunctioninsertDefinition
(overrides: Partial<typeof toolDefinitions.$inferInsert> = {})
apps/api/src/services/__tests__/session-tool-registry-service.test.ts:99
↓ 9 callersFunctioninsertFloor
(overrides: Partial<typeof floors.$inferInsert> = {})
apps/api/src/adapters/__tests__/drizzle-floor-repository.test.ts:37
↓ 9 callersFunctioninsertPreset
(id = nanoid(), version = 1, workspaceId = TEST_WORKSPACE_ID)
apps/api/src/services/__tests__/session-asset-binding-service.test.ts:68
↓ 9 callersFunctioninsertSession
( database: DatabaseConnection, args: { branchId?: string } = {}, )
apps/api/src/services/__tests__/prompt-runtime/injection-service.test.ts:332
↓ 9 callersFunctionisNullableString
(value: unknown)
packages/official-integration-kit/client-helpers/src/projects/index.ts:98
↓ 9 callersFunctionisRecord
(value: unknown)
packages/core/src/node-graph/validator.ts:92
↓ 9 callersFunctionisRecord
(value: unknown)
packages/core/src/node-graph/package/export.ts:35
↓ 9 callersFunctionjsonResponse
(body: unknown, status = 200)
packages/official-integration-kit/sdk/src/__tests__/messages-expanded.test.ts:7
↓ 9 callersMethodloadFirstPartyStateContext
(input: { accountId: string; sessionId: string; branchId: string; sourceFloorId?: string | nul
apps/api/src/services/chat/first-party-state-context-service.ts:22
↓ 9 callersMethodloadSessionNodes
* 加载指定会话里参与 lineage 解析的全部楼层元数据。 * * 这是最底层的 IO 入口,所有 ancestry 查询都从这里出发。单次调用即可覆盖 * 整个会话常见的 branch 对比 / history 解析需求,避免在上层做 N+1 查询。
apps/api/src/services/floor-lineage-service.ts:135
↓ 9 callersFunctionmakeContext
()
apps/api/src/mcp/__tests__/mcp-tool-provider.test.ts:61
↓ 9 callersFunctionmakeDispatcher
(overrides?: { derivedOutput?: DerivedOutputSink; projectInbox?: ProjectInboxSink; sessionStateProposal?
apps/api/src/services/agent-runtime/__tests__/temporary-conversation-agent-executor.test.ts:141
↓ 9 callersFunctionmakeEntry
(input: Partial<PromptHistoryMessageEntry> & Pick<PromptHistoryMessageEntry, "role" | "content">)
apps/api/src/services/__tests__/conversation-history-normalizer.test.ts:10
↓ 9 callersFunctionmakeFloor
(overrides: Partial<FloorEntity> = {})
packages/core/src/floor/__tests__/floor-lifecycle.test.ts:12
↓ 9 callersFunctionmakeMemoryItem
(content: string, overrides?: Partial<MemoryItem>)
packages/adapters-sillytavern/src/__tests__/compat-plus-assembler.test.ts:49
↓ 9 callersFunctionmakeMinimalThChatFile
()
apps/api/test/imports-chat.integration.test.ts:87
↓ 9 callersFunctionmakePermissions
(overrides: Partial<ToolPermissions> = {})
packages/core/src/tools/__tests__/tool-registry.test.ts:38
↓ 9 callersFunctionmakeRunRecordResponse
( overrides: Partial<NodeGraphRunRecordResponse> = {}, )
apps/studio/src/modules/graph/run/graph-run-view.test.ts:18
↓ 9 callersFunctionmakeScript
(overrides: Partial<STRegexScript> & { id: string; scriptName: string; findRegex: string })
apps/api/src/services/__tests__/prompt-runtime/regex/runtime-facade.test.ts:14
↓ 9 callersFunctionmakeTool
(overrides: Partial<ToolDefinition> = {})
apps/api/src/services/__tests__/session-tool-registry-service.test.ts:25
↓ 9 callersFunctionmakeVerifierResult
(passed: boolean, overrides: Partial<VerifierResult> = {})
packages/core/src/orchestration/__tests__/turn-orchestrator.test.ts:65
↓ 9 callersFunctionmaskSecret
(secret: string)
apps/api/src/lib/secrets.ts:67
↓ 9 callersFunctionnarratorDiagnostics
(narratorConfig: unknown, code: string)
packages/core/src/node-graph/__tests__/agent-source.test.ts:54
↓ 9 callersFunctionparseFailure
(message: string)
apps/api/src/services/st-macros/variable-path.ts:31
↓ 9 callersFunctionpatchActiveEntry
(patch: EntryPatch)
apps/web/src/composables/workspace/assets/managers/preset-manager-dialog.ts:137
↓ 9 callersFunctionpayloadOf
(event: ProjectEventRecord)
apps/api/test/project-events-business-writes.integration.test.ts:61
↓ 9 callersFunctionpreflightNodeGraphPackage
( pkg: NodeGraphPackage, environment: NodeGraphPackageEnvironment, )
packages/core/src/node-graph/package/import-diagnostics.ts:112
↓ 9 callersFunctionpush
(item: T)
apps/api/src/services/temporary-conversation-service.ts:2484
↓ 9 callersMethodreadTranscript
(input: { accountId: string; conversationId: string; branchId?: string; })
apps/api/src/services/temporary-conversation-service.ts:856
↓ 9 callersFunctionrec
(stepIndex: number,visibleText: string, hasToolCalls: boolean)
packages/core/src/orchestration/__tests__/native-function-call-agent-loop.test.ts:377
↓ 9 callersMethodrequireOwnedCollection
(domainId: string, collectionId: string)
apps/api/src/client-data/client-data-service.ts:1118
↓ 9 callersMethodrequireOwnedSession
(accountId: string, sessionId: string)
apps/api/src/services/prompt-runtime/injection-service.ts:519
↓ 9 callersFunctionresetProfileModelOptions
()
apps/web/src/composables/workspace/llm/instance-manager-dialog.ts:506
↓ 9 callersMethodresolveDefaultWorkspaceId
(accountId: string)
apps/api/src/services/tooling/mcp/mcp-service.ts:1066
↓ 9 callersMethodresolveEffective
(input: { id: string; accountId: string })
apps/api/src/services/project-agent-binding-service.ts:290
↓ 9 callersFunctionresolveGraphAssistantToolTransport
( preference: ToolTransportPreference, supportsFunctionCall: boolean | undefined, )
apps/api/src/services/chat/tool-call-transport-resolver.ts:74
↓ 9 callersFunctionresolveOptionalMacroValue
(input: { macroName: string; value: string | undefined; warningMessage: string; })
apps/api/src/services/prompt-runtime/macro/context-builder.ts:117
↓ 9 callersFunctionresolvePlacementOrder
(group: PromptNodeGroup, placement: PromptPlacement)
packages/core/src/prompt-graph/compiler.ts:128
↓ 9 callersMethodresolveRef
( scope: MemoryScope, context: MemoryScopeResolutionContext, fallbackScopeId?: string, )
packages/core/src/memory/memory-scope-resolver.ts:82
↓ 9 callersFunctionresolveTemplate
(templateEngine: TemplateEngine, text: string, variables: Record<string, unknown>)
packages/core/src/prompt-graph/compiler.ts:42
↓ 9 callersFunctionresolveTotalTokens
(usage: unknown)
packages/official-integration-kit/sdk/src/types/usage.ts:43
↓ 9 callersMethodretryFloor
( floorId: string, request: RetryFloorRequest = {}, accountId?: string, options: { allowTempor
apps/api/src/services/chat/chat-service.ts:732
↓ 9 callersFunctionseedFloor
( database: DatabaseConnection, floor: { id: string; sessionId: string; floorNo: number; b
apps/api/src/session-state/__tests__/session-state-observation-service.test.ts:386
↓ 9 callersFunctionseedSession
( db: DatabaseConnection["db"], input: { title: string; metadataJson?: string | null; }, )
apps/api/test/temporary-conversations.integration.test.ts:638
↓ 9 callersFunctionseedSession
(database: DatabaseConnection, sessionId: string, now: number)
apps/api/src/session-state/__tests__/first-party-game-state-service.test.ts:661
↓ 9 callersFunctionsegmentMentionText
(text: string, index: MentionIndex)
apps/studio/src/modules/graph/assistant/segment-mention-text.ts:50
↓ 9 callersFunctionsetInterval
(handler, ms)
apps/studio/src/modules/graph/run/use-graph-run.test.ts:20
↓ 9 callersFunctionstageAndApplySceneState
( service: SessionStateService, input: { accountId: string; sessionId: string; branchId: strin
apps/api/src/session-state/__tests__/session-state-service.test.ts:1140
↓ 9 callersFunctionstageAndApplyState
( service: SessionStateService, input: { accountId: string; sessionId: string; branchId: strin
apps/api/src/session-state/__tests__/session-state-public-service.test.ts:442
↓ 9 callersMethodstageBufferedWrites
(input: { accountId: string; sessionId: string; branchId: string; floorId: string; pageId?
apps/api/src/services/variables/stage/page-variable-stage-service.ts:114
↓ 9 callersFunctiontoCharacterOperationRef
( characterId: string, version?: CharacterVersionOperationRow | null, options: { rolledBackFromVersionId
apps/api/src/services/character-operation-log.ts:39
↓ 9 callersFunctiontoNonEmptyString
(value: unknown)
apps/api/src/services/chat/turn-proposal-staging-service.ts:86
↓ 9 callersFunctiontoSessionOperationRef
(row: typeof sessions.$inferSelect)
apps/api/src/routes/sessions.ts:894
↓ 9 callersFunctiontool
(index: number, executionId: string)
packages/official-integration-kit/client-helpers/src/steps/group-floor-step-segments.test.ts:7
↓ 9 callersMethodupdateConfig
* 更新 MCP 服务器配置。 * 返回 null 表示指定 ID 不存在或不属于该账号。
apps/api/src/services/tooling/mcp/mcp-service.ts:861
↓ 9 callersMethodupdateDefinition
( id: string, accountId: string, input: UpdateDefinitionInput, )
apps/api/src/services/tooling/tool-service.ts:275
↓ 9 callersMethodverify
* 检查生成内容的一致性。 * * @param input - Verifier 输入 * @param params - 生成参数覆盖 * @returns Verifier 结果
packages/core/src/orchestration/verifier.ts:147
↓ 8 callersMethodaddEdge
(args: Record<string, unknown>)
apps/api/src/tools/node-graph-tool-provider.ts:551
↓ 8 callersFunctionanswer
(index: number, id: string)
packages/official-integration-kit/client-helpers/src/steps/group-floor-step-segments.test.ts:27
↓ 8 callersFunctionappendResourceMutationAssetOperationLog
( request: RuntimeMutationApplyRequest<unknown>, input: { operationId: string assetKind: PromptAss
apps/api/src/services/resource-mutation-applier.ts:309
↓ 8 callersMethodapplyConsolidation
* 应用 Memory 实例的整理结果。 * * 处理三类操作: * - factsAdd: 创建新的 fact 记忆 * - factsUpdate: 更新已有记忆的内容/重要度 * - factsDeprecate: 标记记忆为过时 * * 同时创建 t
packages/core/src/memory/memory-store.ts:268
↓ 8 callersFunctionapplyCorsHeaders
(target: HeaderTarget, requestOrigin: string | undefined, config: CorsConfig)
apps/api/src/plugins/cors.ts:41
↓ 8 callersFunctionapplyNamesBehavior
( content: string, role: ChatRole, input: PromptGraphCompilerInput, policy: PromptExecutionPolicy['nam
packages/core/src/prompt-graph/compiler.ts:167
↓ 8 callersFunctionasRecord
(value: unknown)
apps/studio/src/modules/graph/config/agent-call-config.ts:89
↓ 8 callersFunctionasString
(value: unknown)
scripts/generate-agent-artifacts.ts:2425
↓ 8 callersFunctionbackfillWorkspaceIdFromDefaultWorkspace
(sqlite: Database.Database, tableName: string)
apps/api/src/db/client.ts:519
↓ 8 callersFunctionbaseInput
(overrides?: Partial<DirectorInput>)
packages/core/src/orchestration/__tests__/director.test.ts:39
↓ 8 callersFunctionbaseInput
(overrides?: Partial<VerifierInput>)
packages/core/src/orchestration/__tests__/verifier.test.ts:39
↓ 8 callersFunctionbasePayload
(overrides: Partial<AgentRunJobPayload> = {})
apps/api/src/services/__tests__/project-agent-task-board-service.test.ts:15
↓ 8 callersFunctionbaseSnapshot
()
apps/studio/src/modules/graph/assistant/context-blocks.test.ts:14
↓ 8 callersFunctionbuildActivation
( activation: PromptWorldbookEntryActivation, insertion: PromptSnapshotWorldbookActivation["insertion"
apps/api/src/services/prompt-assembler.ts:3088
↓ 8 callersFunctionbuildCompatPromptFloorTemplate
()
packages/core/src/node-graph/templates/compat-prompt-floor.ts:76
↓ 8 callersFunctionbuildDetail
( activation: PromptWorldbookEntryActivation, insertion: WorldbookMatchInsertion, )
apps/api/src/services/prompt-assembler.ts:3040
↓ 8 callersMethodbuildLiveHeadItemKey
( namespace: SessionStateNamespace, slot: string, visibilityMode: SessionStateVisibilityMode,
apps/api/src/session-state/session-state-service.ts:1609
↓ 8 callersFunctionbuildLivePromptRuntimeRequestPolicy
(request: { structure?: PromptStructurePolicy; delivery?: PromptDeliveryPolicy; budget?: PromptBudgetPol
apps/api/src/services/chat/shared/request-policy.ts:10
↓ 8 callersFunctionbuildPromptRuntimeExecutionTrace
( artifacts: PromptRuntimeExecutionArtifacts, )
apps/api/src/services/prompt-runtime-execution.ts:155
↓ 8 callersFunctionbuildState
( error: { code?: string; message: string; status: number }, kind: UiStateError["kind"], retryable: bool
packages/official-integration-kit/client-helpers/src/errors/map-api-error-to-ui-state.ts:133
↓ 8 callersFunctionclamp
(value: number, min: number, max: number)
apps/studio/src/modules/graph/assistant/use-floating-window.ts:17
↓ 8 callersMethodcommitFloor
* 完整的楼层提交流程 * * @param floorId 要提交的楼层 ID * @param context 变量上下文(需包含 pageId、floorId、sessionId) * @returns 提交后的楼层实体
packages/core/src/floor/floor-lifecycle.ts:40
↓ 8 callersFunctioncontainsNativeToolBlock
(text: string)
packages/core/src/tools/transport/text-protocol/native-tool-block-stripper.ts:244
↓ 8 callersFunctioncreateAccount
(id: string, name = id)
apps/api/src/mcp/__tests__/mcp-service.test.ts:22
↓ 8 callersMethodcreateEdge
创建记忆关系边
packages/core/src/ports/memory-repository.ts:30
← previousnext →601–700 of 8,237, ranked by callers