MCPcopy Create free account

hub / github.com/YunYouJun/advjs / functions

Functions1,616 in github.com/YunYouJun/advjs

↓ 291 callersFunctiont
(key: string, ...args: (string | number)[])
packages/advjs/node/cli/i18n/index.ts:59
↓ 163 callersMethodget
* Get a session by ID
packages/core/src/engine/session.ts:111
↓ 50 callersMethodparse
* 解析
packages/parser/src/Serialize.ts:14
↓ 41 callersFunctiontest
()
plugins/plugin-playwright/scripts/test.ts:4
↓ 37 callersMethoddelete
* Delete a session
packages/core/src/engine/session.ts:155
↓ 36 callersFunctionparseCharacterMd
(content: string)
packages/parser/src/character.ts:77
↓ 33 callersMethodtext
* 处理文本 * 更多的扩展语法在此实现(从普通的段落文本中进行解析)
packages/parser/src/Serialize.ts:128
↓ 31 callersFunctionpushAttributeLine
( lines: string[], excluded: Set<string>, path: string, label: string, value: unknown, )
packages/parser/src/character.ts:237
↓ 27 callersMethodline
Add a single line (or empty line when called with no argument).
apps/studio/src/utils/promptBuilder.ts:10
↓ 25 callersFunctiongetCurrentProjectId
()
apps/studio/src/utils/projectScope.ts:17
↓ 23 callersFunctionparseSource
( input: SourceParseInput, opts: SourceParseOptions = {}, )
apps/studio/src/utils/sourceParser.ts:61
↓ 22 callersFunctionreadOptionalFile
(path: string)
packages/mcp-server/src/index.ts:30
↓ 21 callersFunctionlog
(type: LogItem['type'], message: string, data?: any)
editor/core/app/stores/useConsoleStore.ts:17
↓ 20 callersFunctionstringifyCharacterMd
(character: AdvCharacter)
packages/parser/src/character.ts:132
↓ 19 callersFunctionanalyzeBranches
(ast: AdvAst.Root)
packages/core/src/engine/branches.ts:90
↓ 19 callersFunctionchunkByHeadings
(text: string, opts: ChunkOptions)
apps/studio/src/utils/sourceChunk.ts:54
↓ 19 callersMethodnext
* Advance to the next node
packages/core/src/engine/runtime.ts:110
↓ 19 callersMethodreadFile
(path: string)
apps/studio/src/utils/fs/MemoryFsAdapter.ts:141
↓ 18 callersFunctionemit
(e: GenerateProgressEvent)
apps/studio/src/utils/projectGenerator.ts:181
↓ 18 callersFunctionestimateTokens
(text: string)
apps/studio/src/utils/tokenEstimate.ts:18
↓ 17 callersFunctionasString
(v: unknown, path: string)
apps/studio/src/utils/projectGenerator/schemas.ts:26
↓ 17 callersFunctiondownloadFromCloud
( config: CosConfig, key: string, )
apps/studio/src/utils/cloudSync.ts:274
↓ 17 callersFunctiontextContent
For tool/prompt callbacks: { content: [...] }
packages/mcp-server/src/index.ts:37
↓ 16 callersFunctionassert
(cond: unknown, msg: string)
apps/studio/src/utils/projectGenerator/schemas.ts:21
↓ 15 callersFunctionclassifyError
(err: unknown)
apps/studio/src/utils/aiAuthoring/result.ts:38
↓ 15 callersFunctionflush
()
apps/studio/src/utils/telemetry.ts:141
↓ 15 callersFunctiongetText
(val: any)
editor/core/server/utils/feishu-fields.ts:10
↓ 15 callersMethodon
(event: string, fn: (...args: any[]) => void)
apps/studio/src/utils/y-cloudbase.ts:202
↓ 15 callersFunctionresourceTextContent
For resource callbacks: { contents: [{ uri, text }] }
packages/mcp-server/src/index.ts:232
↓ 15 callersFunctionscanFiles
(dir: string, ext: string)
packages/advjs/node/commands/utils.ts:21
↓ 14 callersFunctionToast
(options: ToastOptions)
packages/gui/client/composables/useToast.ts:14
↓ 14 callersFunctionasOptionalString
(v: unknown, path: string)
apps/studio/src/utils/projectGenerator/schemas.ts:33
↓ 14 callersMethodimportSnapshot
* Import a portable snapshot. Optionally restore it under a new session ID.
packages/core/src/engine/session.ts:142
↓ 14 callersMethodinit
* Load file system state from IndexedDB. * Call once after construction.
apps/studio/src/utils/fs/MemoryFsAdapter.ts:56
↓ 14 callersMethodload
(alias: string)
packages/client/pixi/system/scene.ts:31
↓ 13 callersFunctiontoAtFS
(path: string)
packages/advjs/node/resolver.ts:16
↓ 13 callersFunctionwriteFile
* Recursively resolve (or create) subdirectories for a nested path, * then create the file in the final directory. * * e.g. `assets/characters/a.ch
editor/core/app/composables/useCreateProject.ts:20
↓ 12 callersFunctioncontentHash
(text: string)
apps/studio/src/utils/embeddingClient.ts:117
↓ 12 callersFunctionfail
(error: AiAuthoringError)
apps/studio/src/utils/aiAuthoring/result.ts:76
↓ 12 callersFunctionformatNode
(node: AstChild)
packages/core/src/engine/formatter.ts:40
↓ 12 callersMethodgetSessionManager
* Get the session manager for external session operations
packages/core/src/engine/runtime.ts:214
↓ 12 callersFunctionmakeGlobalConfig
(overrides: Partial<AiConfig> = {})
apps/studio/src/__tests__/resolveAiConfig.test.ts:5
↓ 12 callersMethodnormalizePath
(path: string)
apps/studio/src/utils/fs/MemoryFsAdapter.ts:121
↓ 12 callersFunctionparseAst
(content: string)
packages/parser/src/core.ts:65
↓ 12 callersMethodresolveSubdir
( dir: FileSystemDirectoryHandle, parts: string[], create = false, )
apps/studio/src/utils/fs/BrowserFsAdapter.ts:23
↓ 12 callersMethodrollback
* Rollback a session by popping the most recent entries off its history stack. * * The top of `history` is the currently displayed node. Popping
packages/core/src/engine/session.ts:178
↓ 12 callersFunctionsetMeta
(property: string, content: string)
apps/studio/src/utils/ogMeta.ts:21
↓ 12 callersFunctiontoSlug
(name: string)
apps/studio/src/utils/slug.ts:10
↓ 11 callersFunctionanalyzeCoverage
(graph: BranchGraph)
packages/core/src/engine/branches.ts:247
↓ 11 callersFunctionclassifySyncCandidates
(opts: { localPaths: Map<string, number> cloudPaths: Map<string, number> baselineMs: number | undefined
apps/studio/src/utils/cloudSync.ts:73
↓ 11 callersFunctionfail
(message)
apps/studio/cloudbase/functions/marketStats/index.js:39
↓ 11 callersFunctionformatAsText
(output: FormattedOutput)
packages/core/src/engine/formatter.ts:120
↓ 11 callersFunctiongetConversation
(characterId: string)
apps/studio/src/stores/useCharacterChatStore.ts:258
↓ 11 callersFunctiongetEngine
(opts?: { sessionDir?: string, root?: string })
packages/advjs/node/cli/play.ts:47
↓ 11 callersFunctiongetRoom
(roomId: string)
apps/studio/src/stores/useGroupChatStore.ts:265
↓ 11 callersFunctionmakeNotification
(overrides: Partial<NotificationRecord> = {})
apps/studio/src/__tests__/useNotificationsStore.test.ts:18
↓ 11 callersFunctionparseFrontmatterAndBody
(content: string)
apps/studio/src/utils/mdFrontmatter.ts:26
↓ 10 callersFunctionbuildSceneMd
(params: SceneCreateInput)
packages/mcp-server/src/index.ts:124
↓ 10 callersFunctionbuildStreamOptions
( messages: ChatMessage[], aiConfig: AiConfig, effectiveBaseURL: string, effectiveModel: string, sig
apps/studio/src/utils/aiClient.ts:255
↓ 10 callersFunctiongetFieldsForPath
(path: string)
apps/studio/src/utils/characterFrontmatterCompletion.ts:218
↓ 10 callersFunctiongetTemplate
(id: string)
apps/studio/src/utils/templates/loadTemplate.ts:129
↓ 10 callersMethodinit
* Lazily initialize fs-backed storage in Node.js environment
packages/core/src/engine/session.ts:50
↓ 10 callersFunctionloadI18n
()
packages/advjs/node/cli/i18n/__test__/i18n.test.ts:19
↓ 10 callersFunctionmaps
(local: Record<string, number>, cloud: Record<string, number>)
apps/studio/src/__tests__/cloudSyncClassify.test.ts:13
↓ 10 callersFunctionparseLocationMd
(content: string)
apps/studio/src/utils/locationMd.ts:38
↓ 10 callersFunctionparseSceneMd
(content: string)
apps/studio/src/utils/sceneMd.ts:33
↓ 10 callersFunctionstreamChat
(options: StreamChatOptions)
apps/studio/src/utils/aiClient.ts:32
↓ 9 callersFunctioncreateEngine
()
packages/core/test/engine/runtime.test.ts:51
↓ 9 callersFunctiongetCapFs
* Lazily import @capacitor/filesystem to avoid bundling it in web-only builds. * Returns { Filesystem, Directory, Encoding } from the plugin.
apps/studio/src/utils/fs/CapacitorFsAdapter.ts:22
↓ 9 callersFunctionisLineInFrontmatter
(lines: string[], lineNumber: number)
apps/studio/src/utils/characterFrontmatterCompletion.ts:150
↓ 9 callersMethodloadScript
* Load a script from markdown content
packages/core/src/engine/runtime.ts:75
↓ 9 callersFunctionresolveGameRoot
(cwd: string, optionRoot?: string)
packages/advjs/node/commands/utils.ts:63
↓ 9 callersMethodresolvePath
(relative: string)
apps/studio/src/utils/fs/CapacitorFsAdapter.ts:39
↓ 9 callersFunctionuseProjectPersistence
(options: ProjectPersistenceOptions<T>)
apps/studio/src/utils/projectPersistence.ts:27
↓ 8 callersMethodblockIf
Conditionally add a pre-formatted block (e.g. memoryPrompt, statePrompt).
apps/studio/src/utils/promptBuilder.ts:30
↓ 8 callersFunctionbuild
(ast: any)
tests/unit/coverage.test.ts:4
↓ 8 callersFunctioncomputeLineDiff
(filename: string, before: string, after: string)
apps/studio/src/utils/lineDiff.ts:25
↓ 8 callersMethodemit
(event: string, args: any[])
apps/studio/src/utils/y-cloudbase.ts:212
↓ 8 callersFunctionexportCharacterForAI
(character: AdvCharacter)
packages/parser/src/character.ts:322
↓ 8 callersFunctionfileExists
* Check if a file exists via IFileSystem
apps/studio/src/composables/useContentSave.ts:25
↓ 8 callersFunctiongenerateProject
(opts: GenerateOptions)
apps/studio/src/utils/projectGenerator.ts:173
↓ 8 callersMethodgetOrCreate
* Get or create a session
packages/core/src/engine/session.ts:81
↓ 8 callersMethodgetStatus
* Get current session status
packages/core/src/engine/runtime.ts:185
↓ 8 callersFunctiongetTtsProvider
(id: string)
apps/studio/src/utils/ttsClient.ts:65
↓ 8 callersFunctionpid
()
apps/studio/src/composables/usePlayProgress.ts:48
↓ 8 callersFunctionread
(relPath: string)
apps/studio/src/__tests__/lifeStoryExample.test.ts:21
↓ 8 callersFunctionreadFile
(path: string)
apps/studio/src/__tests__/useProjectImport.test.ts:94
↓ 8 callersMethodsave
* Save a session
packages/core/src/engine/session.ts:120
↓ 8 callersFunctionstringifyCSV
(headers: string[], rows: string[][])
apps/studio/src/utils/csvExport.ts:25
↓ 8 callersFunctionstringifyLocationMd
(location: LocationFormData)
apps/studio/src/utils/locationMd.ts:65
↓ 8 callersFunctiontrack
(name: string, props?: Record<string, unknown>)
apps/studio/src/utils/telemetry.ts:90
↓ 8 callersFunctionuseProjectImport
()
apps/studio/src/composables/useProjectImport.ts:196
↓ 8 callersFunctionvalidateProject
( chapters: ChapterInfo[], characters: AdvCharacter[], scenes: SceneInfo[], audios: AudioInfo[], loc
apps/studio/src/utils/projectValidation.ts:45
↓ 8 callersMethodwriteFile
(path: string, content: string)
apps/studio/src/utils/fs/MemoryFsAdapter.ts:213
↓ 7 callersFunctioncosineSimilarity
(a: number[], b: number[])
apps/studio/src/utils/embeddingClient.ts:73
↓ 7 callersFunctiondumpYamlFrontmatter
(fm: Record<string, unknown>)
apps/studio/src/utils/mdFrontmatter.ts:12
↓ 7 callersFunctionescapeHtml
(text: string)
apps/studio/src/utils/conversationHtml.ts:32
↓ 7 callersFunctiongetDb
(cloudApp: cloudbase.app.App)
apps/studio/src/composables/useMarketplace.ts:94
↓ 7 callersFunctionlistFilesInDir
(dir: FSDirItem, options: { showFiles?: boolean })
packages/gui/client/composables/useAssetsExplorer.ts:73
↓ 7 callersFunctionmakeCharacter
(id: string, name: string, opts?: Partial<AdvCharacter>)
apps/studio/src/__tests__/projectValidation.test.ts:6
next →1–100 of 1,616, ranked by callers