MCPcopy Create free account

hub / github.com/THU-MAIC/OpenMAIC / functions

Functions4,064 in github.com/THU-MAIC/OpenMAIC

↓ 1 callersFunctionselectedVariants
()
eval/pbl-v2-planner/runner.ts:241
↓ 1 callersFunctionsemanticPart
* 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 callersFunctionsend
(event: AgentEvent)
app/api/agent/edit/route.ts:163
↓ 1 callersFunctionserializeInline
(node: Node)
packages/@openmaic/importer/src/import-pipeline/transformParsedToSlides.ts:1092
↓ 1 callersFunctionserializePart
(part: unknown, durationMs?: number)
lib/agent/client/serialize-thread.ts:93
↓ 1 callersFunctionserializeTextBody
(tb: TextBody | undefined)
packages/@openmaic/importer/src/export/serializePresentation.ts:80
↓ 1 callersFunctionserverProvidersBody
(providers: Record<string, { models?: string[] }>)
e2e/tests/managed-provider-620.spec.ts:19
↓ 1 callersFunctionsetConcept
(next: string)
components/generation/outlines-editor.tsx:1134
↓ 1 callersFunctionsetLocale
(newLocale: Locale)
lib/hooks/use-i18n.tsx:48
↓ 1 callersMethodsetMuted
* Set mute state (takes effect immediately on currently playing audio)
lib/utils/audio-player.ts:171
↓ 1 callersFunctionsetNodeIndentMarkup
( tr: Transaction, pos: number, delta: number, indentKey: IndentKey, )
lib/prosemirror/commands/setTextIndent.ts:8
↓ 1 callersMethodsetPlaybackRate
* Set playback speed (takes effect immediately on currently playing audio)
lib/utils/audio-player.ts:191
↓ 1 callersFunctionsetQuizQuestionType
(id: string, type: QuizQuestionType)
components/edit/surfaces/quiz/use-quiz-surface.ts:67
↓ 1 callersFunctionsetTextAlign
(tr: Transaction, schema: Schema, alignment: string)
lib/prosemirror/commands/setTextAlign.ts:5
↓ 1 callersMethodsetVolume
* Set volume (0-1)
lib/utils/audio-player.ts:181
↓ 1 callersFunctionsetWidgetType
(next: WidgetType)
components/generation/outlines-editor.tsx:1128
↓ 1 callersFunctionsettleResolve
(resolve: () => void)
lib/audio/browser-tts-preview.ts:118
↓ 1 callersFunctionsha256
(blob: Blob)
lib/storage/client.ts:1
↓ 1 callersFunctionshallowEqual
* Shallow comparison function * Used to optimize re-renders in useSceneSelector
lib/contexts/scene-context.tsx:214
↓ 1 callersFunctionshapeArc
(cX, cY, rX, rY, stAng, endAng, isClose)
packages/@openmaic/importer/src1/shape.js:3
↓ 1 callersFunctionshapeGear
(h, points)
packages/@openmaic/importer/src1/shapePath.js:33
↓ 1 callersFunctionshapePie
(H, w, adj1, adj2, isClose)
packages/@openmaic/importer/src1/shapePath.js:6
↓ 1 callersFunctionshapeSnipRoundRect
(w, h, adj1, adj2, shapeType, adjType)
packages/@openmaic/importer/src1/shapePath.js:92
↓ 1 callersFunctionshouldPreserveRotatedTextFrame
( el: Element, autoFit: { type?: string; fontScale?: number } | undefined, )
packages/@openmaic/importer/src/import-pipeline/transformParsedToSlides.ts:357
↓ 1 callersFunctionshouldRewriteSearchQuery
( normalizedRequirement: string, normalizedPdfExcerpt: string, )
lib/server/search-query-builder.ts:34
↓ 1 callersFunctionshouldUseOpenAIResponsesApi
(providerId: ProviderId, modelId: string)
lib/ai/providers.ts:1391
↓ 1 callersFunctionsimplifyLostLess
(children, parentAttributes = {})
packages/@openmaic/importer/src1/readXmlFile.js:5
↓ 1 callersMethodskipDiscussion
User clicks "Skip" on ProactiveCard → consumed → processNext
lib/playback/engine.ts:286
↓ 1 callersFunctionsleep
(ms: number)
eval/pbl-v2-planner/runner.ts:836
↓ 1 callersFunctionslideBaseline
(content: SceneContent)
lib/agent/tools/regenerate-scene.ts:34
↓ 1 callersFunctionslideContent
()
tests/lib/agent/tools/read-scene-content.test.ts:12
↓ 1 callersFunctionslideContent
(extraElements: PPTElement[] = [])
tests/lib/agent/tools/regenerate-scene.test.ts:13
↓ 1 callersFunctionslideCtx
(id: string)
tests/lib/agent/tools/edit-interactive-html.test.ts:36
↓ 1 callersFunctionslideScene
( elements: Array<{ id: string; type: string; src?: string; mediaRef?: string }>, )
tests/server/classroom-media-generation.test.ts:5
↓ 1 callersFunctionslideToSlide
( presentation: PresentationData, slide: SlideData, files: PptxFiles, mediaMode: MediaMode = 'base64',
packages/@openmaic/importer/src/serializer/slideSerializer.ts:193
↓ 1 callersFunctionslideWithImage
()
tests/edit/round-trip/image-flip.test.ts:36
↓ 1 callersFunctionslimResult
(result: unknown)
lib/agent/client/serialize-thread.ts:51
↓ 1 callersFunctionspHasTextRuns
* 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 callersFunctionspHasVisibleFillOrLine
* 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 callersFunctionspeakingCharacter
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 callersFunctionsplitHead
(str: string, sep: string)
lib/export/html-parser/format.ts:3
↓ 1 callersMethodsplitIntoChunks
* 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 callersFunctionsplitLongSpeechText
(text: string, maxLength: number)
lib/audio/tts-utils.ts:21
↓ 1 callersFunctionsplitSentences
Split into sentences across both Latin and CJK terminators, keeping order.
eval/orchestration/answer-content-runner.ts:231
↓ 1 callersFunctionstart
(controller)
lib/pbl/v2/api/sse.ts:218
↓ 1 callersMethodstart
Start the tick loop. Idempotent — calling twice is safe.
lib/buffer/stream-buffer.ts:285
↓ 1 callersFunctionstartEditName
()
app/page.tsx:949
↓ 1 callersFunctionstartHeartbeat
()
app/api/chat/route.ts:105
↓ 1 callersFunctionstartHeartbeat
()
app/api/generate/scene-outlines-stream/route.ts:398
↓ 1 callersFunctionstartPlayback
()
lib/audio/browser-tts-preview.ts:141
↓ 1 callersFunctionstartRename
(e: React.MouseEvent)
app/page.tsx:1242
↓ 1 callersFunctionstatelessGenerate
( request: StatelessChatRequest, abortSignal: AbortSignal, languageModel: LanguageModel, thinkingConfi
lib/orchestration/stateless-generate.ts:317
↓ 1 callersFunctionstaticTemplate
(data: EmbeddedData)
eval/pbl-v2-planner/compare-html.ts:237
↓ 1 callersFunctionstatusFromError
(error: unknown, seen = new Set<unknown>())
lib/server/llm-error-response.ts:24
↓ 1 callersFunctionstopReferenceRecording
()
components/settings/tts-settings.tsx:786
↓ 1 callersFunctionstoreImages
( images: Array<{ id: string; src: string; pageNumber?: number }>, )
lib/utils/image-storage.ts:49
↓ 1 callersFunctionstorePdfBlob
(file: File)
lib/utils/image-storage.ts:152
↓ 1 callersMethodstream
* Export the current Presentation to stream * @param {WriteBaseProps} props - output properties * @returns {Promise<string | ArrayBuffer | Blob |
packages/pptxgenjs/src/pptxgen.ts:573
↓ 1 callersMethodstreamGenerate
* 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 callersFunctionstreamStatusForEvaluationKind
(kind: unknown)
components/scene-renderers/pbl/v2/workspace.tsx:70
↓ 1 callersFunctionstreamStatusLabel
* 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 callersFunctionstringify
(buff, doc)
packages/mathml2omml/src/parse-stringify/stringify.js:16
↓ 1 callersFunctionstringifyDoc
(doc)
packages/mathml2omml/src/parse-stringify/stringify.js:35
↓ 1 callersFunctionstripAnsweringSection
* 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 callersFunctionstripBom
(content: string)
lib/edit/html-edit.ts:214
↓ 1 callersFunctionstripCodeFences
* Strip markdown code fences (```json ... ``` or ``` ... ```) from a response string.
lib/generation/action-parser.ts:23
↓ 1 callersFunctionstripCodeFences
(text: string)
lib/server/classroom-generation.ts:107
↓ 1 callersFunctionstripCodeFences
(text: string)
app/api/generate/agent-profiles/route.ts:35
↓ 1 callersFunctionstripFixRules
(template: string)
eval/orchestration/prompt-variants.ts:40
↓ 1 callersFunctionstripTailForDisplay
(text: string | undefined)
components/scene-renderers/pbl/v2/chat.tsx:1350
↓ 1 callersFunctionstripUnsupportedMathML
* Strip MathML elements unsupported by mathml2omml (e.g. `<mpadded>`), * replacing them with their inner content.
lib/export/latex-to-omml.ts:11
↓ 1 callersFunctionsubmissionReceiptText
(submission: PBLSubmission, language?: string)
components/scene-renderers/pbl/v2/submission.tsx:168
↓ 1 callersFunctionsubmitSeedanceTask
( config: VideoGenerationConfig, options: VideoGenerationOptions, )
lib/media/adapters/seedance-adapter.ts:134
↓ 1 callersFunctionsubmitTask
( baseUrl: string, token: string, model: string, options: VideoGenerationOptions, )
lib/media/adapters/kling-adapter.ts:156
↓ 1 callersFunctionsubmitTask
( config: VideoGenerationConfig, options: VideoGenerationOptions, )
lib/media/adapters/minimax-video-adapter.ts:50
↓ 1 callersFunctionsubmitVideoGeneration
( baseUrl: string, apiKey: string, model: string, options: VideoGenerationOptions, )
lib/media/adapters/veo-adapter.ts:86
↓ 1 callersFunctionsubmitVideoGeneration
( baseUrl: string, apiKey: string, model: string, options: VideoGenerationOptions, )
lib/media/adapters/grok-video-adapter.ts:115
↓ 1 callersFunctionsummarizeAgentWhiteboardActions
* Summarize a single agent's whiteboard actions into a compact description.
lib/orchestration/director-prompt.ts:94
↓ 1 callersFunctionsummarizeConversationPreFix
* 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 callersFunctionsummarizeElement
(el: any)
lib/orchestration/summarizers/state-context.ts:17
↓ 1 callersFunctionsummarizeWhiteboardForDirector
(ledger: WhiteboardActionRecord[])
lib/orchestration/director-prompt.ts:165
↓ 1 callersFunctionsummaryTableLines
Summary table rows (one per variant) for a result subset.
eval/pbl-v2-planner/runner.ts:671
↓ 1 callersMethodsupportsRegistration
Whether registration is available for this provider given its options (e.g. backend kind).
lib/audio/voice-registration.ts:24
↓ 1 callersFunctionsupportsRequest
(provider: DocumentExtractorProvider)
lib/document/extractors/registry.ts:23
↓ 1 callersFunctionsurfaceStateEqual
* 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 callersFunctionsvgDashArrayForKind
(dashKind: string, strokeWidth: number)
packages/@openmaic/importer/src/serializer/shapeSerializer.ts:403
↓ 1 callersFunctionsync
()
components/scene-renderers/InteractiveIframeHost.tsx:43
↓ 1 callersFunctiontable
(id: string, left: number, top: number, width: number, height: number)
tests/orchestration/whiteboard-conflicts.test.ts:15
↓ 1 callersFunctiontaskDividerLabels
(language: string | undefined)
lib/pbl/v2/operations/progress.ts:611
↓ 1 callersFunctiontestGrokImageConnectivity
( config: ImageGenerationConfig, )
lib/media/adapters/grok-image-adapter.ts:29
↓ 1 callersFunctiontestGrokVideoConnectivity
( config: VideoGenerationConfig, )
lib/media/adapters/grok-video-adapter.ts:85
↓ 1 callersFunctiontestHappyHorseConnectivity
( config: VideoGenerationConfig, )
lib/media/adapters/happyhorse-adapter.ts:191
↓ 1 callersFunctiontestImageConnectivity
( config: ImageGenerationConfig, )
lib/media/image-providers.ts:138
↓ 1 callersFunctiontestKlingConnectivity
( config: VideoGenerationConfig, )
lib/media/adapters/kling-adapter.ts:127
↓ 1 callersFunctiontestMiniMaxImageConnectivity
( config: ImageGenerationConfig, )
lib/media/adapters/minimax-image-adapter.ts:86
↓ 1 callersFunctiontestMiniMaxVideoConnectivity
( config: VideoGenerationConfig, )
lib/media/adapters/minimax-video-adapter.ts:202
↓ 1 callersFunctiontestNanoBananaConnectivity
( config: ImageGenerationConfig, )
lib/media/adapters/nano-banana-adapter.ts:51
↓ 1 callersFunctiontestQwenImageConnectivity
( config: ImageGenerationConfig, )
lib/media/adapters/qwen-image-adapter.ts:37
↓ 1 callersFunctiontestSeedanceConnectivity
( config: VideoGenerationConfig, )
lib/media/adapters/seedance-adapter.ts:108
↓ 1 callersFunctiontestSeedreamConnectivity
( config: ImageGenerationConfig, )
lib/media/adapters/seedream-adapter.ts:49
← previousnext →2,601–2,700 of 4,064, ranked by callers