MCPcopy Create free account

hub / github.com/YunYouJun/advjs / functions

Functions1,616 in github.com/YunYouJun/advjs

↓ 7 callersFunctionmatchLocationByText
( text: string, locations: LocationInfo[], )
apps/studio/src/utils/locationMatch.ts:13
↓ 7 callersFunctionparseAiJson
( response: string, validate: (raw: any) => T, )
apps/studio/src/utils/chatUtils.ts:142
↓ 7 callersFunctionparseAudioMd
(content: string)
apps/studio/src/utils/audioMd.ts:29
↓ 7 callersFunctionparseCSVRows
(text: string, separator = ',')
apps/studio/src/utils/csvParser.ts:43
↓ 7 callersFunctionplanBulkWrites
( items: T[], resolve: (item: T) => { rel: string, content: string }, toAbsolutePath: (rel: string) => s
packages/mcp-server/src/index.ts:209
↓ 7 callersMethodreset
* Reset current session
packages/core/src/engine/runtime.ts:221
↓ 7 callersFunctionresolveCharacterAiConfig
( globalConfig: AiConfig, globalBaseURL: string, globalModel: string, override?: CharacterAiOverride,
apps/studio/src/utils/resolveAiConfig.ts:39
↓ 7 callersFunctionresolveFrontmatterPath
(lines: string[], lineNumber: number, cursorIndent: number)
apps/studio/src/utils/characterFrontmatterCompletion.ts:182
↓ 7 callersMethodresumeSession
* Load from an existing session
packages/core/src/engine/runtime.ts:97
↓ 7 callersFunctionsanitizeFilename
* Sanitize a user-provided filename to prevent path traversal. * Strips directory components and rejects names with '..' segments.
packages/mcp-server/src/index.ts:22
↓ 7 callersFunctionseparator
()
packages/gui/client/composables/useExplorerContextMenu.ts:8
↓ 6 callersFunctionbuild
(ast: any)
tests/unit/branches.test.ts:4
↓ 6 callersFunctionbuildAuthorization
* Build COS authorization header. * Implements a simplified COS XML API v5 signing scheme. * * @param config - COS configuration object. * @param
apps/studio/src/utils/cloudSync.ts:176
↓ 6 callersFunctionbuildOpts
(overrides?: { aiBridge?: AiBridge })
apps/studio/src/__tests__/projectGenerator.test.ts:111
↓ 6 callersFunctionbuildOutlinePrompt
(input: BuildOutlinePromptInput)
apps/studio/src/utils/aiAuthoring/prompts.ts:39
↓ 6 callersMethodchoose
* Make a choice at the current choices node
packages/core/src/engine/runtime.ts:127
↓ 6 callersFunctionclassifyCosError
* Classify COS errors for better user feedback.
apps/studio/src/utils/cloudSync.ts:131
↓ 6 callersMethodconnect
* Connect to CloudBase and start syncing.
apps/studio/src/utils/y-cloudbase.ts:134
↓ 6 callersFunctioncreateScriptedBridge
(responses: ScriptedResponse[])
apps/studio/src/__tests__/projectGenerator.test.ts:17
↓ 6 callersFunctionderiveDuration
(chapters: number)
apps/studio/src/utils/marketTaxonomy.ts:78
↓ 6 callersMethoddestroy
* Destroy the provider and clean up all resources.
apps/studio/src/utils/y-cloudbase.ts:195
↓ 6 callersFunctiongetCollection
(cloudApp: cloudbase.app.App)
apps/studio/src/composables/useFollow.ts:35
↓ 6 callersFunctiongetCosHost
(config: CosConfig)
apps/studio/src/utils/cloudSync.ts:205
↓ 6 callersMethodlist
* handle list for choice * - [x] xxx
packages/parser/src/Serialize.ts:136
↓ 6 callersMethodlistFiles
(subdir: string, ext: string)
apps/studio/src/utils/fs/MemoryFsAdapter.ts:268
↓ 6 callersFunctionlistTemplates
()
apps/studio/src/utils/templates/loadTemplate.ts:136
↓ 6 callersFunctionmakeSession
(overrides: Partial<PlaySession> = {})
tests/unit/engine-rollback.test.ts:10
↓ 6 callersFunctionpresetAdv
(options: Partial<PresetAdvOptions> = {})
packages/unocss/src/presets/index.ts:7
↓ 6 callersFunctionreadOptionalFile
(path: string)
packages/advjs/node/commands/utils.ts:12
↓ 6 callersFunctionreadmeContent
(projectName: string)
apps/studio/src/utils/projectTemplate.ts:21
↓ 6 callersFunctionrefreshDir
()
packages/gui/client/composables/useFileOperations.ts:95
↓ 6 callersFunctionregisterTtsProvider
(provider: TtsProvider)
apps/studio/src/utils/ttsClient.ts:61
↓ 6 callersFunctionresolveCharacterTtsSettings
( globalConfig: AiConfig, override?: CharacterAiOverride, )
apps/studio/src/utils/resolveAiConfig.ts:85
↓ 6 callersFunctionresolveImportPath
(importName: string, ensure = false)
packages/advjs/node/resolver.ts:32
↓ 6 callersFunctionresolveTitle
* Priority: frontmatter.title → body "# heading" → filename stem → first * short non-empty line → UNTITLED. Filename beats body-firstLine so that *
apps/studio/src/utils/sourceParser.ts:593
↓ 6 callersFunctionrunAiJsonExtraction
( options: AiExtractionOptions, validate: (raw: any) => T, retries = 0, )
apps/studio/src/utils/aiExtraction.ts:28
↓ 6 callersFunctionrunCheck
(options: CheckOptions & { cwd?: string })
packages/advjs/node/commands/check.ts:45
↓ 6 callersMethodsaveSlot
* Persist a named save slot for a session.
packages/core/src/engine/session.ts:217
↓ 6 callersFunctionstringifySceneMd
(scene: SceneFormData)
apps/studio/src/utils/sceneMd.ts:61
↓ 6 callersFunctionsuggestTemplate
(input: { title: string, body: string, metadata: Record<string, string | number> })
apps/studio/src/utils/sourceParser.ts:639
↓ 6 callersFunctiontracked
()
packages/core/test/engine/session.test.ts:14
↓ 6 callersFunctiontryReadFile
* Try to read a file from a directory handle, return empty string if not found
editor/core/app/stores/useProjectContextStore.ts:30
↓ 6 callersFunctionuseFeishuClient
()
editor/core/server/utils/feishu.ts:8
↓ 6 callersFunctionvalidateSceneFrontmatter
(content: string)
packages/parser/src/scene.ts:32
↓ 6 callersMethodwithStage
(output: T)
packages/core/src/engine/runtime.ts:440
↓ 5 callersMethodadvanceToNextDisplayable
* Internal: advance through nodes until finding a displayable one
packages/core/src/engine/runtime.ts:232
↓ 5 callersFunctionaggregateCoverage
(chapters: NamedCoverage[])
packages/core/src/engine/branches.ts:338
↓ 5 callersFunctionasArray
(v: unknown, path: string, min: number, itemValidator: (x: unknown, itemPath: string) => T)
apps/studio/src/utils/projectGenerator/schemas.ts:48
↓ 5 callersFunctionasOptionalStringArray
(v: unknown, path: string)
apps/studio/src/utils/projectGenerator/schemas.ts:40
↓ 5 callersFunctionbuildChapterContent
(params: ChapterCreateInput)
packages/mcp-server/src/index.ts:78
↓ 5 callersFunctionbuildParams
(extra?: Record<string, any>)
editor/core/app/composables/feishu/useFeishuBitable.ts:10
↓ 5 callersFunctioncharactersJson
()
apps/studio/src/__tests__/projectGenerator.test.ts:36
↓ 5 callersFunctiondefineAdvConfig
(config: Partial<AdvConfig>)
packages/advjs/node/config/index.ts:19
↓ 5 callersFunctionensureDir
(dir: string)
packages/advjs/node/utils/fs.ts:33
↓ 5 callersFunctionextractMarkdown
(text: string)
apps/studio/src/utils/chatUtils.ts:67
↓ 5 callersFunctiongenerateEmbeddings
(options: EmbeddingOptions)
apps/studio/src/utils/embeddingClient.ts:24
↓ 5 callersFunctiongetDb
* Get the database instance from CloudBase app.
apps/studio/src/composables/useCloudBinding.ts:60
↓ 5 callersFunctiongetValidAvatarUrl
(avatar?: string)
apps/studio/src/utils/chatUtils.ts:194
↓ 5 callersMethodisEnd
* Check if the game has ended
packages/core/src/engine/runtime.ts:174
↓ 5 callersMethoditems
Add multiple lines at once.
apps/studio/src/utils/promptBuilder.ts:38
↓ 5 callersFunctionmkdir
()
apps/studio/src/__tests__/useProjectImport.test.ts:91
↓ 5 callersFunctionnormalizeGenre
(value: unknown)
apps/studio/src/utils/marketTaxonomy.ts:87
↓ 5 callersFunctionnotConfiguredError
()
apps/studio/src/utils/aiAuthoring/result.ts:64
↓ 5 callersFunctionok
(data: T)
apps/studio/src/utils/aiAuthoring/result.ts:72
↓ 5 callersFunctionpackageExists
(name: string)
packages/advjs/node/resolver.ts:77
↓ 5 callersFunctionparseCSV
(text: string, separator = ',')
apps/studio/src/utils/csvParser.ts:16
↓ 5 callersFunctionparseChapterMd
(content: string, filename: string)
apps/studio/src/utils/chapterMd.ts:17
↓ 5 callersFunctionreportFor
(ast: any)
tests/unit/coverage.test.ts:169
↓ 5 callersMethodschedulePersist
Schedule a debounced persist to IndexedDB
apps/studio/src/utils/fs/MemoryFsAdapter.ts:80
↓ 5 callersMethodsection
Add a section with a header and content, separated by blank lines.
apps/studio/src/utils/promptBuilder.ts:16
↓ 5 callersMethodsectionIf
Conditionally add a section.
apps/studio/src/utils/promptBuilder.ts:22
↓ 5 callersMethodsplitPath
(path: string)
apps/studio/src/utils/fs/BrowserFsAdapter.ts:35
↓ 5 callersFunctiontestVisitAndDfs
(type: 'breadth' | 'depth', count: number)
packages/benchmarks/src/visit/index.ts:7
↓ 4 callersMethodbuild
Join all parts with newlines.
apps/studio/src/utils/promptBuilder.ts:44
↓ 4 callersFunctionbuildChapterDraftPrompt
(input: BuildChapterDraftPromptInput)
apps/studio/src/utils/aiAuthoring/prompts.ts:73
↓ 4 callersFunctionchapterJson
(i: number, phase: string)
apps/studio/src/__tests__/projectGenerator.test.ts:59
↓ 4 callersFunctioncommonOptions
(args: Argv)
packages/advjs/node/cli/utils.ts:34
↓ 4 callersFunctioncopyFileHandle
* Copy a file from source handle to target directory
packages/gui/client/composables/useFileOperations.ts:9
↓ 4 callersFunctioncreateFsForProject
(project: { dirHandle?: FileSystemDirectoryHandle projectId: string source?: 'local' | 'url' | 'cos' })
apps/studio/src/utils/fs/createFs.ts:82
↓ 4 callersFunctioncreateParentDir
(existing: string[] = [])
apps/studio/src/__tests__/useProjectImport.test.ts:112
↓ 4 callersFunctionensureDir
(dir: string)
scripts/utils/fs.ts:12
↓ 4 callersFunctionensureDirSync
(dir: string)
packages/advjs/node/utils/fs.ts:40
↓ 4 callersMethodensureParentDirs
(path: string)
apps/studio/src/utils/fs/MemoryFsAdapter.ts:125
↓ 4 callersFunctionensureProject
(projectId: string)
apps/studio/src/composables/usePlayProgress.ts:34
↓ 4 callersMethodexists
(path: string)
apps/studio/src/utils/fs/MemoryFsAdapter.ts:195
↓ 4 callersFunctionfetchImageAsBase64
( url: string, options: { timeout?: number maxSize?: number userAgent?: string } = {}, )
plugins/plugin-pominis/src/utils/image.ts:73
↓ 4 callersFunctionformatProjectCoverageText
(project: ProjectCoverage)
packages/core/src/engine/branches.ts:367
↓ 4 callersFunctiongenerateCameraAnimation
(name: 'alpha' | 'beta' | 'target' | 'radius', dataType: number, to: number | BABYLON.Vector3)
plugins/plugin-babylon/src/camera/animation.ts:14
↓ 4 callersFunctiongetMoodEmoji
(mood: string)
apps/studio/src/utils/chatUtils.ts:111
↓ 4 callersFunctiongetProjectName
()
packages/create-adv/src/cli.ts:35
↓ 4 callersFunctiongetState
(characterId: string)
apps/studio/src/stores/useCharacterStateStore.ts:82
↓ 4 callersFunctiongetUniqueName
* Generate a unique name to avoid conflicts
packages/gui/client/composables/useFileOperations.ts:64
↓ 4 callersFunctionisCosConfigured
* Check if COS is properly configured.
apps/studio/src/composables/useCloudSync.ts:47
↓ 4 callersFunctionisOnlineImageUrl
(url: string)
plugins/plugin-pominis/src/utils/image.ts:27
↓ 4 callersFunctionisPath
(name: string)
packages/advjs/node/options/utils.ts:24
↓ 4 callersFunctionknowledgeJson
()
apps/studio/src/__tests__/projectGenerator.test.ts:99
↓ 4 callersFunctionloadContestDemoFiles
(slug: string)
apps/studio/src/utils/contestDemos.ts:80
↓ 4 callersFunctionmakeSession
(overrides: Partial<PlaySession> = {})
tests/unit/play-back.test.ts:19
↓ 4 callersFunctionmakeStubCloudApp
* Build a minimal CloudBase app stub that records every database call so we * can assert side-effects without a network round-trip. * * The Pinia s
apps/studio/src/__tests__/useNotificationsStore.test.ts:38
↓ 4 callersFunctionnameExistsInDir
* Check if a name already exists in directory
packages/gui/client/composables/useFileOperations.ts:45
← previousnext →101–200 of 1,616, ranked by callers