MCPcopy Create free account

hub / github.com/HerSophia/TavernHeadless / functions

Functions8,237 in github.com/HerSophia/TavernHeadless

↓ 12 callersFunctionassertSafeUrl
( rawUrl: string, options?: { allowPrivateNetwork?: boolean }, )
apps/api/src/lib/url-guard.ts:31
↓ 12 callersFunctionauthHeaders
(apiKey: string)
apps/api/src/routes/__tests__/project-floor-graph-bindings.test.ts:34
↓ 12 callersFunctionauthHeaders
(apiKey: string)
apps/api/src/routes/__tests__/project-observer-permissions.test.ts:542
↓ 12 callersFunctionbuildInput
( overrides: Partial<CreateGraphAssistantPendingToolCallInput> = {}, )
apps/api/src/services/__tests__/graph-assistant-tool-confirmation-service.test.ts:32
↓ 12 callersFunctionbuildStateApp
(overrides?: { enableClientData?: boolean; clientDataConfig?: Partial<typeof clientDataConfig> })
apps/api/src/routes/__tests__/session-state.test.ts:34
↓ 12 callersMethodcanTransition
* 验证状态转移是否合法(纯函数,无副作用)
packages/core/src/floor/floor-state-machine.ts:54
↓ 12 callersMethodclientDataRepository
(executor: AppDb | DbExecutor)
apps/api/src/session-state/session-state-service.ts:1742
↓ 12 callersFunctioncreateFloor
(args: { sessionId: string; floorNo: number; branchId: string; state?: "draft" | "generating"
apps/api/test/branch-management.integration.test.ts:50
↓ 12 callersFunctioncreatePage
( app: FastifyInstance, payload: { floor_id: string; page_no: number; page_kind: "input" | "ou
apps/api/test/m8-core-rp.test.ts:463
↓ 12 callersFunctioncreateProfileDraft
(mode: "create" | "edit", profile?: WorkspaceLlmProfile)
apps/web/src/composables/workspace/llm/instance-manager-dialog.ts:89
↓ 12 callersFunctioncreatePromptRuntimeResource
(client: TransportClient)
packages/official-integration-kit/sdk/src/resources/prompt-runtime.ts:766
↓ 12 callersMethodcreateSessionInjection
( sessionId: string, accountId: string, input: PromptRuntimeInjectionWriteInput, createdBy?: s
apps/api/src/services/agent-runtime/agent-output-dispatcher.ts:82
↓ 12 callersMethoddeprecate
(id: string)
packages/core/src/memory/memory-mutation-applier.ts:61
↓ 12 callersFunctionderiveSubgraphInterface
(document: Pick<NodeGraphDocument, 'nodes'>)
packages/core/src/node-graph/subgraph.ts:189
↓ 12 callersMethodensure
(input: { accountId: string; sessionId: string; branchId: string; sourceFloorId?: string | nul
apps/api/src/services/variables/host/session-branch-registry-service.ts:86
↓ 12 callersMethodfailRunAndFloorBestEffort
( floorId: string, error: unknown, code = "floor_run_failed", options?: { restoreSupersededSou
apps/api/src/services/chat/turn-run-tracker.ts:115
↓ 12 callersFunctionfloor
( over: Partial<TemporaryConversationTranscriptFloor> = {}, messages: TemporaryConversationTranscriptMessa
apps/studio/src/modules/graph/assistant/floor-view-model.test.ts:26
↓ 12 callersFunctiongetAuditActor
(request: Parameters<typeof getRequestAuthContext>[0])
apps/api/src/client-data/client-data-routes.ts:1769
↓ 12 callersFunctiongetCallerOwnerOrReply
( request: Parameters<typeof parseClientDataCallerOwner>[0], reply: Parameters<typeof sendClientDataCaller
apps/api/src/client-data/client-data-routes.ts:1757
↓ 12 callersMethodgetContextById
(accountId: string, pageId: string)
apps/api/src/services/owned-resource-repositories.ts:142
↓ 12 callersMethodgetCurrentVersion
(input: GetNodeGraphDefinitionInput)
apps/api/src/services/node-graph-definition-service.ts:414
↓ 12 callersFunctionhasNode
(nodes: PromptNode[], predicate: (node: PromptNode) => boolean)
packages/adapters-sillytavern/src/preset-to-native-group.ts:252
↓ 12 callersFunctionisTavernApiError
(error: unknown)
packages/official-integration-kit/sdk/src/errors/tavern-api-error.ts:23
↓ 12 callersFunctionmakeContext
( spec: InlineAgentSpec, overrides: Partial<AgentRunContext> = {}, )
apps/api/src/services/agent-runtime/__tests__/builtin-agents.test.ts:15
↓ 12 callersFunctionnodeGraphEdgeKind
(edge: Pick<NodeGraphEdge, 'kind'>)
packages/core/src/node-graph/control.ts:41
↓ 12 callersFunctionnormalizeOptionalText
(value: string | undefined)
apps/api/src/lib/character-snapshot.ts:56
↓ 12 callersFunctionnormalizeScopeId
(value: string | undefined)
packages/core/src/memory/memory-scope-resolver.ts:13
↓ 12 callersFunctionpending
(over: Partial<GraphAssistantPendingToolCall> = {})
apps/studio/src/stores/graph-assistant.test.ts:44
↓ 12 callersFunctionpresetRefDiagnostics
(narratorConfig: unknown)
packages/core/src/node-graph/__tests__/narration-preset-ref.test.ts:44
↓ 12 callersMethodprocessOneDueJob
()
apps/api/src/services/memory-worker.ts:75
↓ 12 callersFunctionpushMissingOperationLogTargetIssue
( isPresent: boolean, path: string, targetType: string, targetIdRef: string, issues: Array<{ path: s
apps/api/src/services/core-asset-backup-preview.ts:974
↓ 12 callersFunctionreadNodeGraphPresetRef
(node: Pick<NodeGraphNode, 'config'>)
packages/core/src/node-graph/agent-source.ts:49
↓ 12 callersFunctionreadNumber
( key: keyof LlmBindingGenerationParams, options: { int?: boolean; min?: number; max?: number; exclusi
apps/api/src/lib/llm-params.ts:147
↓ 12 callersMethodregister
( jobType: string, processor: RuntimeJobProcessor<TPayload, TPrepared, TResult>, )
apps/api/src/services/runtime-job-processor-registry.ts:6
↓ 12 callersFunctionreject
(projectId, itemId, options: ProjectsInboxDecisionOptions = {})
packages/official-integration-kit/sdk/src/resources/projects.ts:858
↓ 12 callersMethodrequireFloorInSession
( executor: AppDb | DbExecutor, sessionId: string, floorId: string, )
apps/api/src/session-state/session-state-service.ts:1274
↓ 12 callersMethodrequireReadableDomain
(domain: ClientDataDomainRecord)
apps/api/src/client-data/client-data-service.ts:1103
↓ 12 callersMethodrequireSessionHost
( executor: AppDb | DbExecutor, accountId: string, sessionId: string, options: { requireActive
apps/api/src/session-state/session-state-service.ts:1258
↓ 12 callersFunctionrequireString
( record: Record<string, unknown>, fieldName: string, code: BuiltInSchemaErrorCode, label: string, )
apps/api/src/session-state/builtin-game-state-slot-schemas.ts:279
↓ 12 callersFunctionresolvePromptRuntimeExecutionContext
( input: PromptRuntimeExecutionInput, )
apps/api/src/services/prompt-runtime-execution.ts:115
↓ 12 callersFunctionresolveRouteTag
(route: string)
apps/api/src/plugins/request-logging.ts:5
↓ 12 callersFunctionschema
( properties: ToolParameterSchema['properties'], )
packages/core/src/tools/__tests__/transport/tool-args-coercion.test.ts:6
↓ 12 callersFunctionseedFloor
(args: { floorId: string; sessionId: string; branchId?: string; floorNo?: number; state?:
apps/api/test/structural-run-guards.integration.test.ts:83
↓ 12 callersFunctionseedRunningRun
( floorId: string, runType: "respond" | "regenerate_page" | "retry_turn" | "edit_and_regenerate" = "re
apps/api/test/structural-run-guards.integration.test.ts:115
↓ 12 callersFunctionseedVariable
(args: { database: DatabaseConnection; id?: string; scope: "global" | "chat" | "branch" | "floor" | "pag
apps/api/src/services/__tests__/variable-commit-service.test.ts:67
↓ 12 callersFunctionsetDocument
(next: NodeGraphDocument | null, options?: { clearServerValidation?: boolean })
apps/studio/src/stores/graph-editor.ts:353
↓ 12 callersFunctionsitePath
(basePath: string, relativePath: string)
scripts/generate-agent-artifacts.ts:2360
↓ 12 callersMethodstop
退订并清理定时器
apps/api/src/realtime/run-log/run-log.ts:124
↓ 12 callersMethodstream
流式生成
packages/core/src/llm/types.ts:333
↓ 12 callersFunctionstringValue
(config: unknown, path: string, fallback = "")
apps/studio/src/modules/graph/inline-config/node-inline-config.ts:190
↓ 12 callersFunctionstripNativeToolBlocksPreservingTrailingMalformed
(text: string)
packages/core/src/tools/transport/text-protocol/native-tool-block-stripper.ts:231
↓ 12 callersFunctiontoMemoryRuntimeJobType
(jobType: MemoryJobType)
apps/api/src/services/memory-runtime-job-definitions.ts:90
↓ 12 callersFunctionupsertVar
( app: FastifyInstance, args: { scope: string; scopeId?: string; sessionId?: string; branchId?: string; ke
apps/api/test/variables.integration.test.ts:97
↓ 11 callersMethodappendMessage
(input: TemporaryConversationAppendInput)
apps/api/src/services/agent-runtime/temporary-conversation-agent-executor.ts:209
↓ 11 callersFunctionappendPromptAssetOperationLog
( tx: DbExecutor, request: FastifyRequest, input: AppendPromptAssetOperationLogInput, )
apps/api/src/services/prompt-asset-operation-log.ts:83
↓ 11 callersFunctionarePortTypesCompatible
(from: NodeGraphPortType, to: NodeGraphPortType)
packages/core/src/node-graph/validator.ts:108
↓ 11 callersMethodassemble
* 将 IR 按分区排序 → 展开插入位 → 扁平化 → 可选合并 → 统计
packages/core/src/prompt/message-builder.ts:68
↓ 11 callersFunctionauthHeader
(token: string)
apps/api/test/session-character-sync.integration.test.ts:302
↓ 11 callersFunctionbuildFloorViews
(transcript: TemporaryConversationTranscript)
apps/studio/src/modules/graph/assistant/floor-view-model.ts:107
↓ 11 callersFunctionbuildInlineConfigControls
( node: NodeGraphNode, _entry?: NodeTypeRegistryEntry, options: BuildInlineConfigControlsOptions = {}, )
apps/studio/src/modules/graph/inline-config/node-inline-config.ts:361
↓ 11 callersFunctionbuildPromptEntryMetadata
(identifier: string, promptEntry: STPromptEntry | undefined)
packages/adapters-sillytavern/src/preset-to-native-group.ts:72
↓ 11 callersMethodclear
()
apps/studio/src/stores/backend-connection.test.ts:12
↓ 11 callersFunctioncreateBuilder
(args: { promptPreparationService: { materializeTurnPromptMessages: ReturnType<typeof vi.fn>; buildP
apps/api/src/services/__tests__/prepared-prompt-artifacts-builder.test.ts:615
↓ 11 callersFunctioncreateDefinition
( app: FastifyInstance, payload: Record<string, unknown> = {}, )
apps/api/test/tools.integration.test.ts:71
↓ 11 callersFunctioncreateMockConnection
(overrides: { state?: McpConnectionState; tools?: Array<Partial<ToolDefinition> & Pick<ToolDefinition, 'na
apps/api/src/mcp/__tests__/mcp-tool-provider.test.ts:11
↓ 11 callersFunctiondoc
(partial: Partial<NodeGraphDocument> = {})
apps/studio/src/modules/graph/diff/graph-document-diff.test.ts:6
↓ 11 callersFunctionemitRuntimeMutationEvent
( eventBus: CoreEventBus | undefined, name: RuntimeMutationEventName, envelope: RuntimeMutationEnvelope,
apps/api/src/services/runtime-mutation-events.ts:78
↓ 11 callersFunctionensureOptionalObjectBody
(request: { body?: unknown })
apps/api/src/lib/http.ts:85
↓ 11 callersFunctiongetActiveBaseUrl
()
apps/studio/src/lib/backend/active.ts:36
↓ 11 callersMethodgetDraft
(draftId: string)
apps/api/src/tools/node-graph-tool-provider.ts:692
↓ 11 callersFunctiongraphPath
(projectId: string, graphId: string)
apps/studio/src/lib/nodegraph-api/client.ts:77
↓ 11 callersMethodhasServer
* 返回管理器中是否有指定 ID 的服务器。
apps/api/src/services/tooling/mcp/mcp-connection-manager.ts:163
↓ 11 callersFunctioninsertSession
(overrides: Partial<typeof sessions.$inferInsert> = {})
apps/api/src/services/__tests__/session-tool-registry-service.test.ts:87
↓ 11 callersMethodisEnabled
判断该域是否启用。调用方据此决定是否构造 payload。
packages/core/src/debug/debug-sink.ts:37
↓ 11 callersFunctionisRecord
(value: unknown)
apps/api/src/services/node-graph-runtime/executor.ts:654
↓ 11 callersMethodisSlotDisabled
(models: ResolvedTurnModels, slot: InstanceSlot)
apps/api/src/services/chat/turn-model-service.ts:680
↓ 11 callersMethodlistForSlot
* 按槽位和权限过滤可用工具。 * * 过滤逻辑(按顺序): * 1. 工具自身的 allowedSlots 检查(空数组 = 全部允许) * 2. permissions.slotAllowList 白名单(配置了则仅允许列出的工具名) * 3. permission
packages/core/src/tools/tool-registry.ts:72
↓ 11 callersFunctionmakeConfig
(overrides: Partial<McpServerConfig> = {})
apps/api/src/mcp/__tests__/mcp-connection.test.ts:79
↓ 11 callersFunctionmakeExecutor
(result: ToolCallResult = { data: { ok: true } })
packages/core/src/orchestration/__tests__/native-function-call-agent-loop.test.ts:87
↓ 11 callersFunctionmakeTool
(overrides?: Partial<PresetToolInput>)
packages/core/src/tools/__tests__/preset-provider.test.ts:24
↓ 11 callersFunctionmaterializePromptRuntimeMessages
( args: MaterializePromptRuntimeMessagesOptions, )
apps/api/src/services/prompt-assembler.ts:2536
↓ 11 callersFunctionnarratorGraph
(narratorConfig: unknown)
packages/core/src/node-graph/__tests__/agent-source.test.ts:26
↓ 11 callersFunctionnode
(type: string, config?: unknown)
apps/studio/src/modules/graph/inline-config/node-inline-config.test.ts:11
↓ 11 callersFunctionnormalizeNullableString
(value: string | null | undefined)
apps/api/src/services/project-event-service.ts:298
↓ 11 callersFunctionnormalizeOptionalText
(value: string | undefined)
packages/adapters-sillytavern/src/parsers/character-normalizer.ts:3
↓ 11 callersFunctionnormalizeSessionBaseToolPermissionsRecord
( value: unknown, )
apps/api/src/services/tooling/shared/permission-overlay.ts:190
↓ 11 callersMethodonStepNarration
* 流式中间叙述更新。 * * native多步循环中,仅当某步触发了工具调用且产出可见文本时触发, * 供上层(如临时对话 SSE)实时下发该步的中间叙述。末步纯结论步不触发, * 它走正文 streaming 通道与最终 message 正文。 * `stepInd
packages/core/src/orchestration/types.ts:94
↓ 11 callersFunctionparseMemoryRuntimeScopeKey
(scopeKey: string)
apps/api/src/services/memory-runtime-job-definitions.ts:113
↓ 11 callersFunctionparseReplyFragments
(content: string)
apps/studio/src/modules/graph/assistant/parse-reply-fragments.ts:144
↓ 11 callersFunctionpublicSessionIdFilter
(sessionId: string)
apps/api/src/routes/sessions.ts:1357
↓ 11 callersFunctionregisterDevelopmentTestAuth
( app: FastifyInstance, db: unknown = {}, )
apps/api/test/helpers/register-test-auth.ts:6
↓ 11 callersFunctionresolvePromptAgentKind
(agent: PromptAgentKind | string)
apps/api/src/services/agent-runtime/prompt-agent-runner.ts:87
↓ 11 callersFunctionresolvePromptRuntimeGovernancePolicy
(args: { sourceKind: string; budgetGroup?: string; fallback: PromptRuntimeGovernanceFallback; })
packages/core/src/prompt/governance.ts:84
↓ 11 callersFunctionresult
(over: Partial<TemporaryConversationResult> = {})
apps/studio/src/stores/graph-assistant.test.ts:127
↓ 11 callersFunctionrunStep
( name: string, method: ApiMethod, path: string, fn: () => Promise<StepResult<T>>,
apps/api/scripts/real-provider-regression.ts:185
↓ 11 callersFunctionscriptedGenerate
把脚本化的结构化 toolCalls 序列封装成单步生成回调。
packages/core/src/orchestration/__tests__/native-function-call-agent-loop.test.ts:61
↓ 11 callersFunctionseedAccount
(database: DatabaseConnection, accountId: string, now: number)
apps/api/src/services/__tests__/memory-worker.test.ts:132
↓ 11 callersFunctionseedFloor
( database: DatabaseConnection, floor: { id: string; sessionId: string; floorNo: number; b
apps/api/src/session-state/__tests__/first-party-game-state-service.test.ts:678
↓ 11 callersFunctionseedSession
(database: DatabaseConnection, sessionId: string, now: number, accountId = DEFAULT_ACCOUNT_ID)
apps/api/src/services/__tests__/memory-worker.test.ts:143
↓ 11 callersFunctionseedSession
( database: DatabaseConnection, sessionId: string, accountId: string, now: number, )
apps/api/src/session-state/__tests__/session-state-observation-service.test.ts:370
← previousnext →401–500 of 8,237, ranked by callers