Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YunYouJun/advjs
/ functions
Functions
1,616 in github.com/YunYouJun/advjs
⨍
Functions
1,616
◇
Types & classes
521
↓ 291 callers
Function
t
(key: string, ...args: (string | number)[])
packages/advjs/node/cli/i18n/index.ts:59
↓ 163 callers
Method
get
* Get a session by ID
packages/core/src/engine/session.ts:111
↓ 50 callers
Method
parse
* 解析
packages/parser/src/Serialize.ts:14
↓ 41 callers
Function
test
()
plugins/plugin-playwright/scripts/test.ts:4
↓ 37 callers
Method
delete
* Delete a session
packages/core/src/engine/session.ts:155
↓ 36 callers
Function
parseCharacterMd
(content: string)
packages/parser/src/character.ts:77
↓ 33 callers
Method
text
* 处理文本 * 更多的扩展语法在此实现(从普通的段落文本中进行解析)
packages/parser/src/Serialize.ts:128
↓ 31 callers
Function
pushAttributeLine
( lines: string[], excluded: Set<string>, path: string, label: string, value: unknown, )
packages/parser/src/character.ts:237
↓ 27 callers
Method
line
Add a single line (or empty line when called with no argument).
apps/studio/src/utils/promptBuilder.ts:10
↓ 25 callers
Function
getCurrentProjectId
()
apps/studio/src/utils/projectScope.ts:17
↓ 23 callers
Function
parseSource
( input: SourceParseInput, opts: SourceParseOptions = {}, )
apps/studio/src/utils/sourceParser.ts:61
↓ 22 callers
Function
readOptionalFile
(path: string)
packages/mcp-server/src/index.ts:30
↓ 21 callers
Function
log
(type: LogItem['type'], message: string, data?: any)
editor/core/app/stores/useConsoleStore.ts:17
↓ 20 callers
Function
stringifyCharacterMd
(character: AdvCharacter)
packages/parser/src/character.ts:132
↓ 19 callers
Function
analyzeBranches
(ast: AdvAst.Root)
packages/core/src/engine/branches.ts:90
↓ 19 callers
Function
chunkByHeadings
(text: string, opts: ChunkOptions)
apps/studio/src/utils/sourceChunk.ts:54
↓ 19 callers
Method
next
* Advance to the next node
packages/core/src/engine/runtime.ts:110
↓ 19 callers
Method
readFile
(path: string)
apps/studio/src/utils/fs/MemoryFsAdapter.ts:141
↓ 18 callers
Function
emit
(e: GenerateProgressEvent)
apps/studio/src/utils/projectGenerator.ts:181
↓ 18 callers
Function
estimateTokens
(text: string)
apps/studio/src/utils/tokenEstimate.ts:18
↓ 17 callers
Function
asString
(v: unknown, path: string)
apps/studio/src/utils/projectGenerator/schemas.ts:26
↓ 17 callers
Function
downloadFromCloud
( config: CosConfig, key: string, )
apps/studio/src/utils/cloudSync.ts:274
↓ 17 callers
Function
textContent
For tool/prompt callbacks: { content: [...] }
packages/mcp-server/src/index.ts:37
↓ 16 callers
Function
assert
(cond: unknown, msg: string)
apps/studio/src/utils/projectGenerator/schemas.ts:21
↓ 15 callers
Function
classifyError
(err: unknown)
apps/studio/src/utils/aiAuthoring/result.ts:38
↓ 15 callers
Function
flush
()
apps/studio/src/utils/telemetry.ts:141
↓ 15 callers
Function
getText
(val: any)
editor/core/server/utils/feishu-fields.ts:10
↓ 15 callers
Method
on
(event: string, fn: (...args: any[]) => void)
apps/studio/src/utils/y-cloudbase.ts:202
↓ 15 callers
Function
resourceTextContent
For resource callbacks: { contents: [{ uri, text }] }
packages/mcp-server/src/index.ts:232
↓ 15 callers
Function
scanFiles
(dir: string, ext: string)
packages/advjs/node/commands/utils.ts:21
↓ 14 callers
Function
Toast
(options: ToastOptions)
packages/gui/client/composables/useToast.ts:14
↓ 14 callers
Function
asOptionalString
(v: unknown, path: string)
apps/studio/src/utils/projectGenerator/schemas.ts:33
↓ 14 callers
Method
importSnapshot
* Import a portable snapshot. Optionally restore it under a new session ID.
packages/core/src/engine/session.ts:142
↓ 14 callers
Method
init
* Load file system state from IndexedDB. * Call once after construction.
apps/studio/src/utils/fs/MemoryFsAdapter.ts:56
↓ 14 callers
Method
load
(alias: string)
packages/client/pixi/system/scene.ts:31
↓ 13 callers
Function
toAtFS
(path: string)
packages/advjs/node/resolver.ts:16
↓ 13 callers
Function
writeFile
* 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 callers
Function
contentHash
(text: string)
apps/studio/src/utils/embeddingClient.ts:117
↓ 12 callers
Function
fail
(error: AiAuthoringError)
apps/studio/src/utils/aiAuthoring/result.ts:76
↓ 12 callers
Function
formatNode
(node: AstChild)
packages/core/src/engine/formatter.ts:40
↓ 12 callers
Method
getSessionManager
* Get the session manager for external session operations
packages/core/src/engine/runtime.ts:214
↓ 12 callers
Function
makeGlobalConfig
(overrides: Partial<AiConfig> = {})
apps/studio/src/__tests__/resolveAiConfig.test.ts:5
↓ 12 callers
Method
normalizePath
(path: string)
apps/studio/src/utils/fs/MemoryFsAdapter.ts:121
↓ 12 callers
Function
parseAst
(content: string)
packages/parser/src/core.ts:65
↓ 12 callers
Method
resolveSubdir
( dir: FileSystemDirectoryHandle, parts: string[], create = false, )
apps/studio/src/utils/fs/BrowserFsAdapter.ts:23
↓ 12 callers
Method
rollback
* 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 callers
Function
setMeta
(property: string, content: string)
apps/studio/src/utils/ogMeta.ts:21
↓ 12 callers
Function
toSlug
(name: string)
apps/studio/src/utils/slug.ts:10
↓ 11 callers
Function
analyzeCoverage
(graph: BranchGraph)
packages/core/src/engine/branches.ts:247
↓ 11 callers
Function
classifySyncCandidates
(opts: { localPaths: Map<string, number> cloudPaths: Map<string, number> baselineMs: number | undefined
apps/studio/src/utils/cloudSync.ts:73
↓ 11 callers
Function
fail
(message)
apps/studio/cloudbase/functions/marketStats/index.js:39
↓ 11 callers
Function
formatAsText
(output: FormattedOutput)
packages/core/src/engine/formatter.ts:120
↓ 11 callers
Function
getConversation
(characterId: string)
apps/studio/src/stores/useCharacterChatStore.ts:258
↓ 11 callers
Function
getEngine
(opts?: { sessionDir?: string, root?: string })
packages/advjs/node/cli/play.ts:47
↓ 11 callers
Function
getRoom
(roomId: string)
apps/studio/src/stores/useGroupChatStore.ts:265
↓ 11 callers
Function
makeNotification
(overrides: Partial<NotificationRecord> = {})
apps/studio/src/__tests__/useNotificationsStore.test.ts:18
↓ 11 callers
Function
parseFrontmatterAndBody
(content: string)
apps/studio/src/utils/mdFrontmatter.ts:26
↓ 10 callers
Function
buildSceneMd
(params: SceneCreateInput)
packages/mcp-server/src/index.ts:124
↓ 10 callers
Function
buildStreamOptions
( messages: ChatMessage[], aiConfig: AiConfig, effectiveBaseURL: string, effectiveModel: string, sig
apps/studio/src/utils/aiClient.ts:255
↓ 10 callers
Function
getFieldsForPath
(path: string)
apps/studio/src/utils/characterFrontmatterCompletion.ts:218
↓ 10 callers
Function
getTemplate
(id: string)
apps/studio/src/utils/templates/loadTemplate.ts:129
↓ 10 callers
Method
init
* Lazily initialize fs-backed storage in Node.js environment
packages/core/src/engine/session.ts:50
↓ 10 callers
Function
loadI18n
()
packages/advjs/node/cli/i18n/__test__/i18n.test.ts:19
↓ 10 callers
Function
maps
(local: Record<string, number>, cloud: Record<string, number>)
apps/studio/src/__tests__/cloudSyncClassify.test.ts:13
↓ 10 callers
Function
parseLocationMd
(content: string)
apps/studio/src/utils/locationMd.ts:38
↓ 10 callers
Function
parseSceneMd
(content: string)
apps/studio/src/utils/sceneMd.ts:33
↓ 10 callers
Function
streamChat
(options: StreamChatOptions)
apps/studio/src/utils/aiClient.ts:32
↓ 9 callers
Function
createEngine
()
packages/core/test/engine/runtime.test.ts:51
↓ 9 callers
Function
getCapFs
* 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 callers
Function
isLineInFrontmatter
(lines: string[], lineNumber: number)
apps/studio/src/utils/characterFrontmatterCompletion.ts:150
↓ 9 callers
Method
loadScript
* Load a script from markdown content
packages/core/src/engine/runtime.ts:75
↓ 9 callers
Function
resolveGameRoot
(cwd: string, optionRoot?: string)
packages/advjs/node/commands/utils.ts:63
↓ 9 callers
Method
resolvePath
(relative: string)
apps/studio/src/utils/fs/CapacitorFsAdapter.ts:39
↓ 9 callers
Function
useProjectPersistence
(options: ProjectPersistenceOptions<T>)
apps/studio/src/utils/projectPersistence.ts:27
↓ 8 callers
Method
blockIf
Conditionally add a pre-formatted block (e.g. memoryPrompt, statePrompt).
apps/studio/src/utils/promptBuilder.ts:30
↓ 8 callers
Function
build
(ast: any)
tests/unit/coverage.test.ts:4
↓ 8 callers
Function
computeLineDiff
(filename: string, before: string, after: string)
apps/studio/src/utils/lineDiff.ts:25
↓ 8 callers
Method
emit
(event: string, args: any[])
apps/studio/src/utils/y-cloudbase.ts:212
↓ 8 callers
Function
exportCharacterForAI
(character: AdvCharacter)
packages/parser/src/character.ts:322
↓ 8 callers
Function
fileExists
* Check if a file exists via IFileSystem
apps/studio/src/composables/useContentSave.ts:25
↓ 8 callers
Function
generateProject
(opts: GenerateOptions)
apps/studio/src/utils/projectGenerator.ts:173
↓ 8 callers
Method
getOrCreate
* Get or create a session
packages/core/src/engine/session.ts:81
↓ 8 callers
Method
getStatus
* Get current session status
packages/core/src/engine/runtime.ts:185
↓ 8 callers
Function
getTtsProvider
(id: string)
apps/studio/src/utils/ttsClient.ts:65
↓ 8 callers
Function
pid
()
apps/studio/src/composables/usePlayProgress.ts:48
↓ 8 callers
Function
read
(relPath: string)
apps/studio/src/__tests__/lifeStoryExample.test.ts:21
↓ 8 callers
Function
readFile
(path: string)
apps/studio/src/__tests__/useProjectImport.test.ts:94
↓ 8 callers
Method
save
* Save a session
packages/core/src/engine/session.ts:120
↓ 8 callers
Function
stringifyCSV
(headers: string[], rows: string[][])
apps/studio/src/utils/csvExport.ts:25
↓ 8 callers
Function
stringifyLocationMd
(location: LocationFormData)
apps/studio/src/utils/locationMd.ts:65
↓ 8 callers
Function
track
(name: string, props?: Record<string, unknown>)
apps/studio/src/utils/telemetry.ts:90
↓ 8 callers
Function
useProjectImport
()
apps/studio/src/composables/useProjectImport.ts:196
↓ 8 callers
Function
validateProject
( chapters: ChapterInfo[], characters: AdvCharacter[], scenes: SceneInfo[], audios: AudioInfo[], loc
apps/studio/src/utils/projectValidation.ts:45
↓ 8 callers
Method
writeFile
(path: string, content: string)
apps/studio/src/utils/fs/MemoryFsAdapter.ts:213
↓ 7 callers
Function
cosineSimilarity
(a: number[], b: number[])
apps/studio/src/utils/embeddingClient.ts:73
↓ 7 callers
Function
dumpYamlFrontmatter
(fm: Record<string, unknown>)
apps/studio/src/utils/mdFrontmatter.ts:12
↓ 7 callers
Function
escapeHtml
(text: string)
apps/studio/src/utils/conversationHtml.ts:32
↓ 7 callers
Function
getDb
(cloudApp: cloudbase.app.App)
apps/studio/src/composables/useMarketplace.ts:94
↓ 7 callers
Function
listFilesInDir
(dir: FSDirItem, options: { showFiles?: boolean })
packages/gui/client/composables/useAssetsExplorer.ts:73
↓ 7 callers
Function
makeCharacter
(id: string, name: string, opts?: Partial<AdvCharacter>)
apps/studio/src/__tests__/projectValidation.test.ts:6
next →
1–100 of 1,616, ranked by callers