Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THU-MAIC/OpenMAIC
/ functions
Functions
4,064 in github.com/THU-MAIC/OpenMAIC
⨍
Functions
4,064
◇
Types & classes
1,101
↓ 1 callers
Function
selectedVariants
()
eval/pbl-v2-planner/runner.ts:241
↓ 1 callers
Function
semanticPart
* Extract the semantic payload for each element type. * Used by elementFingerprint to detect content-only changes * (same id/position but different
lib/utils/element-fingerprint.ts:8
↓ 1 callers
Function
send
(event: AgentEvent)
app/api/agent/edit/route.ts:163
↓ 1 callers
Function
serializeInline
(node: Node)
packages/@openmaic/importer/src/import-pipeline/transformParsedToSlides.ts:1092
↓ 1 callers
Function
serializePart
(part: unknown, durationMs?: number)
lib/agent/client/serialize-thread.ts:93
↓ 1 callers
Function
serializeTextBody
(tb: TextBody | undefined)
packages/@openmaic/importer/src/export/serializePresentation.ts:80
↓ 1 callers
Function
serverProvidersBody
(providers: Record<string, { models?: string[] }>)
e2e/tests/managed-provider-620.spec.ts:19
↓ 1 callers
Function
setConcept
(next: string)
components/generation/outlines-editor.tsx:1134
↓ 1 callers
Function
setLocale
(newLocale: Locale)
lib/hooks/use-i18n.tsx:48
↓ 1 callers
Method
setMuted
* Set mute state (takes effect immediately on currently playing audio)
lib/utils/audio-player.ts:171
↓ 1 callers
Function
setNodeIndentMarkup
( tr: Transaction, pos: number, delta: number, indentKey: IndentKey, )
lib/prosemirror/commands/setTextIndent.ts:8
↓ 1 callers
Method
setPlaybackRate
* Set playback speed (takes effect immediately on currently playing audio)
lib/utils/audio-player.ts:191
↓ 1 callers
Function
setQuizQuestionType
(id: string, type: QuizQuestionType)
components/edit/surfaces/quiz/use-quiz-surface.ts:67
↓ 1 callers
Function
setTextAlign
(tr: Transaction, schema: Schema, alignment: string)
lib/prosemirror/commands/setTextAlign.ts:5
↓ 1 callers
Method
setVolume
* Set volume (0-1)
lib/utils/audio-player.ts:181
↓ 1 callers
Function
setWidgetType
(next: WidgetType)
components/generation/outlines-editor.tsx:1128
↓ 1 callers
Function
settleResolve
(resolve: () => void)
lib/audio/browser-tts-preview.ts:118
↓ 1 callers
Function
sha256
(blob: Blob)
lib/storage/client.ts:1
↓ 1 callers
Function
shallowEqual
* Shallow comparison function * Used to optimize re-renders in useSceneSelector
lib/contexts/scene-context.tsx:214
↓ 1 callers
Function
shapeArc
(cX, cY, rX, rY, stAng, endAng, isClose)
packages/@openmaic/importer/src1/shape.js:3
↓ 1 callers
Function
shapeGear
(h, points)
packages/@openmaic/importer/src1/shapePath.js:33
↓ 1 callers
Function
shapePie
(H, w, adj1, adj2, isClose)
packages/@openmaic/importer/src1/shapePath.js:6
↓ 1 callers
Function
shapeSnipRoundRect
(w, h, adj1, adj2, shapeType, adjType)
packages/@openmaic/importer/src1/shapePath.js:92
↓ 1 callers
Function
shouldPreserveRotatedTextFrame
( el: Element, autoFit: { type?: string; fontScale?: number } | undefined, )
packages/@openmaic/importer/src/import-pipeline/transformParsedToSlides.ts:357
↓ 1 callers
Function
shouldRewriteSearchQuery
( normalizedRequirement: string, normalizedPdfExcerpt: string, )
lib/server/search-query-builder.ts:34
↓ 1 callers
Function
shouldUseOpenAIResponsesApi
(providerId: ProviderId, modelId: string)
lib/ai/providers.ts:1391
↓ 1 callers
Function
simplifyLostLess
(children, parentAttributes = {})
packages/@openmaic/importer/src1/readXmlFile.js:5
↓ 1 callers
Method
skipDiscussion
User clicks "Skip" on ProactiveCard → consumed → processNext
lib/playback/engine.ts:286
↓ 1 callers
Function
sleep
(ms: number)
eval/pbl-v2-planner/runner.ts:836
↓ 1 callers
Function
slideBaseline
(content: SceneContent)
lib/agent/tools/regenerate-scene.ts:34
↓ 1 callers
Function
slideContent
()
tests/lib/agent/tools/read-scene-content.test.ts:12
↓ 1 callers
Function
slideContent
(extraElements: PPTElement[] = [])
tests/lib/agent/tools/regenerate-scene.test.ts:13
↓ 1 callers
Function
slideCtx
(id: string)
tests/lib/agent/tools/edit-interactive-html.test.ts:36
↓ 1 callers
Function
slideScene
( elements: Array<{ id: string; type: string; src?: string; mediaRef?: string }>, )
tests/server/classroom-media-generation.test.ts:5
↓ 1 callers
Function
slideToSlide
( presentation: PresentationData, slide: SlideData, files: PptxFiles, mediaMode: MediaMode = 'base64',
packages/@openmaic/importer/src/serializer/slideSerializer.ts:193
↓ 1 callers
Function
slideWithImage
()
tests/edit/round-trip/image-flip.test.ts:36
↓ 1 callers
Function
slimResult
(result: unknown)
lib/agent/client/serialize-thread.ts:51
↓ 1 callers
Function
spHasTextRuns
* True when an sp's txBody has at least one non-empty regular text run (`a:r > a:t`). * Used to tell "text box that happens to contain inline formula
packages/@openmaic/importer/src/model/Slide.ts:321
↓ 1 callers
Function
spHasVisibleFillOrLine
* True when an sp is a visible "box" — has an explicit fill or a visible border * (either directly in spPr or via a non-zero p:style fillRef/lnRef).
packages/@openmaic/importer/src/model/Slide.ts:340
↓ 1 callers
Function
speakingCharacter
SCENARIO ONLY. The character who speaks this turn. First showcase is * single-character, so the speaker is the (only) cast member; richer * multi-
lib/pbl/v2/agents/simulator.ts:69
↓ 1 callers
Function
splitHead
(str: string, sep: string)
lib/export/html-parser/format.ts:3
↓ 1 callers
Method
splitIntoChunks
* Split text into sentence-level chunks for sequential playback. * Chrome has a bug where utterances >~15s are silently cut off and onend * neve
lib/playback/engine.ts:622
↓ 1 callers
Function
splitLongSpeechText
(text: string, maxLength: number)
lib/audio/tts-utils.ts:21
↓ 1 callers
Function
splitSentences
Split into sentences across both Latin and CJK terminators, keeping order.
eval/orchestration/answer-content-runner.ts:231
↓ 1 callers
Function
start
(controller)
lib/pbl/v2/api/sse.ts:218
↓ 1 callers
Method
start
Start the tick loop. Idempotent — calling twice is safe.
lib/buffer/stream-buffer.ts:285
↓ 1 callers
Function
startEditName
()
app/page.tsx:949
↓ 1 callers
Function
startHeartbeat
()
app/api/chat/route.ts:105
↓ 1 callers
Function
startHeartbeat
()
app/api/generate/scene-outlines-stream/route.ts:398
↓ 1 callers
Function
startPlayback
()
lib/audio/browser-tts-preview.ts:141
↓ 1 callers
Function
startRename
(e: React.MouseEvent)
app/page.tsx:1242
↓ 1 callers
Function
statelessGenerate
( request: StatelessChatRequest, abortSignal: AbortSignal, languageModel: LanguageModel, thinkingConfi
lib/orchestration/stateless-generate.ts:317
↓ 1 callers
Function
staticTemplate
(data: EmbeddedData)
eval/pbl-v2-planner/compare-html.ts:237
↓ 1 callers
Function
statusFromError
(error: unknown, seen = new Set<unknown>())
lib/server/llm-error-response.ts:24
↓ 1 callers
Function
stopReferenceRecording
()
components/settings/tts-settings.tsx:786
↓ 1 callers
Function
storeImages
( images: Array<{ id: string; src: string; pageNumber?: number }>, )
lib/utils/image-storage.ts:49
↓ 1 callers
Function
storePdfBlob
(file: File)
lib/utils/image-storage.ts:152
↓ 1 callers
Method
stream
* Export the current Presentation to stream * @param {WriteBaseProps} props - output properties * @returns {Promise<string | ArrayBuffer | Blob |
packages/pptxgenjs/src/pptxgen.ts:573
↓ 1 callers
Method
streamGenerate
* Stream generate with text deltas * * Yields chunks of text as they arrive, then yields done with full content. * Uses streamLLM which goes
lib/orchestration/ai-sdk-adapter.ts:128
↓ 1 callers
Function
streamStatusForEvaluationKind
(kind: unknown)
components/scene-renderers/pbl/v2/workspace.tsx:70
↓ 1 callers
Function
streamStatusLabel
* Map the stream's coarse-grained phase to the small "X · 思考中" / * "X · 输入中…" line that floats above the streaming bubble. Per * PR 6 D3-B: keep eva
components/scene-renderers/pbl/v2/chat.tsx:1422
↓ 1 callers
Function
stringify
(buff, doc)
packages/mathml2omml/src/parse-stringify/stringify.js:16
↓ 1 callers
Function
stringifyDoc
(doc)
packages/mathml2omml/src/parse-stringify/stringify.js:35
↓ 1 callers
Function
stripAnsweringSection
* Remove the "# Responding to the User's Turn" section from an assembled agent * system prompt to build the pre-fix baseline. Bounded by the next sec
eval/orchestration/answer-content-runner.ts:206
↓ 1 callers
Function
stripBom
(content: string)
lib/edit/html-edit.ts:214
↓ 1 callers
Function
stripCodeFences
* Strip markdown code fences (```json ... ``` or ``` ... ```) from a response string.
lib/generation/action-parser.ts:23
↓ 1 callers
Function
stripCodeFences
(text: string)
lib/server/classroom-generation.ts:107
↓ 1 callers
Function
stripCodeFences
(text: string)
app/api/generate/agent-profiles/route.ts:35
↓ 1 callers
Function
stripFixRules
(template: string)
eval/orchestration/prompt-variants.ts:40
↓ 1 callers
Function
stripTailForDisplay
(text: string | undefined)
components/scene-renderers/pbl/v2/chat.tsx:1350
↓ 1 callers
Function
stripUnsupportedMathML
* Strip MathML elements unsupported by mathml2omml (e.g. `<mpadded>`), * replacing them with their inner content.
lib/export/latex-to-omml.ts:11
↓ 1 callers
Function
submissionReceiptText
(submission: PBLSubmission, language?: string)
components/scene-renderers/pbl/v2/submission.tsx:168
↓ 1 callers
Function
submitSeedanceTask
( config: VideoGenerationConfig, options: VideoGenerationOptions, )
lib/media/adapters/seedance-adapter.ts:134
↓ 1 callers
Function
submitTask
( baseUrl: string, token: string, model: string, options: VideoGenerationOptions, )
lib/media/adapters/kling-adapter.ts:156
↓ 1 callers
Function
submitTask
( config: VideoGenerationConfig, options: VideoGenerationOptions, )
lib/media/adapters/minimax-video-adapter.ts:50
↓ 1 callers
Function
submitVideoGeneration
( baseUrl: string, apiKey: string, model: string, options: VideoGenerationOptions, )
lib/media/adapters/veo-adapter.ts:86
↓ 1 callers
Function
submitVideoGeneration
( baseUrl: string, apiKey: string, model: string, options: VideoGenerationOptions, )
lib/media/adapters/grok-video-adapter.ts:115
↓ 1 callers
Function
summarizeAgentWhiteboardActions
* Summarize a single agent's whiteboard actions into a compact description.
lib/orchestration/director-prompt.ts:94
↓ 1 callers
Function
summarizeConversationPreFix
* Pre-#554 summarizeConversation: labels every role:'user' as [User] and * role:'assistant' as [Assistant], with no [senderName]: prefix stripping.
eval/orchestration/prompt-variants.ts:82
↓ 1 callers
Function
summarizeElement
(el: any)
lib/orchestration/summarizers/state-context.ts:17
↓ 1 callers
Function
summarizeWhiteboardForDirector
(ledger: WhiteboardActionRecord[])
lib/orchestration/director-prompt.ts:165
↓ 1 callers
Function
summaryTableLines
Summary table rows (one per variant) for a result subset.
eval/pbl-v2-planner/runner.ts:671
↓ 1 callers
Method
supportsRegistration
Whether registration is available for this provider given its options (e.g. backend kind).
lib/audio/voice-registration.ts:24
↓ 1 callers
Function
supportsRequest
(provider: DocumentExtractorProvider)
lib/document/extractors/registry.ts:23
↓ 1 callers
Function
surfaceStateEqual
* Field-by-field equality for the subset of SurfaceState that the chrome * reads. Surface hooks (e.g. `useSlideSurfaceState`) return a fresh object
components/edit/EditShell/EditShell.tsx:183
↓ 1 callers
Function
svgDashArrayForKind
(dashKind: string, strokeWidth: number)
packages/@openmaic/importer/src/serializer/shapeSerializer.ts:403
↓ 1 callers
Function
sync
()
components/scene-renderers/InteractiveIframeHost.tsx:43
↓ 1 callers
Function
table
(id: string, left: number, top: number, width: number, height: number)
tests/orchestration/whiteboard-conflicts.test.ts:15
↓ 1 callers
Function
taskDividerLabels
(language: string | undefined)
lib/pbl/v2/operations/progress.ts:611
↓ 1 callers
Function
testGrokImageConnectivity
( config: ImageGenerationConfig, )
lib/media/adapters/grok-image-adapter.ts:29
↓ 1 callers
Function
testGrokVideoConnectivity
( config: VideoGenerationConfig, )
lib/media/adapters/grok-video-adapter.ts:85
↓ 1 callers
Function
testHappyHorseConnectivity
( config: VideoGenerationConfig, )
lib/media/adapters/happyhorse-adapter.ts:191
↓ 1 callers
Function
testImageConnectivity
( config: ImageGenerationConfig, )
lib/media/image-providers.ts:138
↓ 1 callers
Function
testKlingConnectivity
( config: VideoGenerationConfig, )
lib/media/adapters/kling-adapter.ts:127
↓ 1 callers
Function
testMiniMaxImageConnectivity
( config: ImageGenerationConfig, )
lib/media/adapters/minimax-image-adapter.ts:86
↓ 1 callers
Function
testMiniMaxVideoConnectivity
( config: VideoGenerationConfig, )
lib/media/adapters/minimax-video-adapter.ts:202
↓ 1 callers
Function
testNanoBananaConnectivity
( config: ImageGenerationConfig, )
lib/media/adapters/nano-banana-adapter.ts:51
↓ 1 callers
Function
testQwenImageConnectivity
( config: ImageGenerationConfig, )
lib/media/adapters/qwen-image-adapter.ts:37
↓ 1 callers
Function
testSeedanceConnectivity
( config: VideoGenerationConfig, )
lib/media/adapters/seedance-adapter.ts:108
↓ 1 callers
Function
testSeedreamConnectivity
( config: ImageGenerationConfig, )
lib/media/adapters/seedream-adapter.ts:49
← previous
next →
2,601–2,700 of 4,064, ranked by callers