MCPcopy Create free account

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

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

↓ 2 callersFunctionreadLocaleKeys
(filePath)
scripts/check-i18n-keys.mjs:47
↓ 2 callersFunctionreadMinerUJson
(res: Response, context: string)
lib/pdf/mineru-cloud.ts:73
↓ 2 callersFunctionreadPptxEntry
(blob: Blob, path: string)
tests/edit/round-trip/insert.test.ts:37
↓ 2 callersFunctionreadPptxEntry
(blob: Blob, path: string)
tests/edit/round-trip/geometry.test.ts:33
↓ 2 callersFunctionreadPptxEntry
(blob: Blob, path: string)
tests/edit/round-trip/text-content.test.ts:38
↓ 2 callersFunctionreadPrompt
(path: string)
tests/eval/pbl-v2-planner/judge-prompt-integrity.test.ts:10
↓ 2 callersFunctionreadSlideXml
(blob: Blob)
tests/edit/round-trip/image-flip.test.ts:29
↓ 2 callersFunctionreadSlideXml
(blob: Blob)
tests/edit/round-trip/z-order.test.ts:29
↓ 2 callersFunctionreadTTSApiError
(response: Response)
lib/audio/tts-providers.ts:542
↓ 2 callersFunctionregenerateSpeechAudio
( sceneOrder: number, action: { id?: string; text?: string }, language?: string, signal?: AbortSignal,
lib/audio/regenerate-speech-tts.ts:80
↓ 2 callersFunctionregisterActiveTextEditor
(elementId: string, run: Runner)
lib/prosemirror/active-editor-registry.ts:28
↓ 2 callersMethodregisterVoice
Register (or idempotently re-register) a reference clip under `voiceId`; returns the id.
lib/audio/voice-registration.ts:28
↓ 2 callersFunctionregisterVoxCPMVoice
( cfg: VoiceRegistrationConfig, params: { voiceId: string; referenceAudioBase64: string; mimeType?: string
lib/audio/voxcpm-registration.ts:73
↓ 2 callersFunctionremoveKeyPoint
(idx: number)
components/generation/outlines-editor.tsx:460
↓ 2 callersFunctionrenderContent
(b: PresentationBubbleModel)
components/roundtable/presentation-speech-overlay.tsx:420
↓ 2 callersFunctionrenderHeader
(h: ReportHeader)
eval/shared/markdown-report.ts:19
↓ 2 callersFunctionrenderImage
* Render an image element.
packages/@openmaic/importer/src/serializer/imageSerializer.ts:496
↓ 2 callersFunctionrenderSummaryTable
(headers: string[], rows: string[][])
eval/shared/markdown-report.ts:29
↓ 2 callersFunctionrenderVideo
* Render a video element.
packages/@openmaic/importer/src/serializer/imageSerializer.ts:347
↓ 2 callersFunctionreorderQuestions
(content: QuizContent, orderedIds: readonly string[])
components/edit/surfaces/quiz/quiz-edit-ops.ts:166
↓ 2 callersFunctionreorderQuizOptions
(id: string, from: number, to: number)
components/edit/surfaces/quiz/use-quiz-surface.ts:87
↓ 2 callersFunctionreplaceFileExtension
(fileName: string | undefined, extension: string)
lib/audio/voxcpm-voices.ts:60
↓ 2 callersFunctionreplaceImageSrc
(elementId: string, src: string)
components/edit/surfaces/slide/use-slide-surface.ts:145
↓ 2 callersFunctionreplaceMediaPlaceholders
(scenes: Scene[], mediaMap: Record<string, string>)
lib/server/classroom-media-generation.ts:176
↓ 2 callersFunctionreplaceThumbnails
(slides: Record<string, Slide>)
app/page.tsx:172
↓ 2 callersFunctionreportSceneRetry
( phase: 'content' | 'actions', event: { attempt: number; maxAttempts: number; reason: string },
lib/server/classroom-generation.ts:431
↓ 2 callersFunctionresolveBorderFromLnRef
(lnRef: SafeXmlNode, ctx: RenderContext)
packages/@openmaic/importer/src/serializer/tableSerializer.ts:281
↓ 2 callersFunctionresolveColorUncached
( colorNode: SafeXmlNode, ctx: RenderContext, placeholderColorNode?: SafeXmlNode, )
packages/@openmaic/importer/src/serializer/StyleResolver.ts:102
↓ 2 callersFunctionresolveGradient
* Parse a gradient fill into a CSS gradient string.
packages/@openmaic/importer/src/serializer/StyleResolver.ts:448
↓ 2 callersFunctionresolveGradientFillNode
( gradFill: SafeXmlNode, ctx: RenderContext, placeholderColorNode?: SafeXmlNode, )
packages/@openmaic/importer/src/serializer/StyleResolver.ts:668
↓ 2 callersFunctionresolveGradientForText
* Resolve a gradient fill node into a CSS linear-gradient string. * Used for text outline gradient effects.
packages/@openmaic/importer/src/serializer/textSerializer.ts:698
↓ 2 callersFunctionresolveLLMSelection
* Single shared LLM selection resolver (#580). Given a providers config and * the current (providerId, modelId), return the resolved selection that
lib/store/settings.ts:382
↓ 2 callersFunctionresolveMediaUrl
* Resolve a media blob URL from a relationship ID.
packages/@openmaic/importer/src/serializer/imageSerializer.ts:322
↓ 2 callersFunctionresolvePatternFill
* Resolve `<a:pattFill>` into a CSS background value using repeating gradients. * * OOXML defines 40+ pattern presets. We support the most common on
packages/@openmaic/importer/src/serializer/StyleResolver.ts:293
↓ 2 callersFunctionresolveSchemeColor
* Resolve a scheme color name through the master colorMap then theme colorScheme. * * OOXML scheme colors use logical names (e.g., "tx1", "bg1", "ac
packages/@openmaic/importer/src/serializer/StyleResolver.ts:63
↓ 2 callersFunctionresolveTTSModel
(providerId: string, clientModel?: string)
lib/server/provider-config.ts:454
↓ 2 callersMethodrestoreSavedLectureState
()
lib/playback/engine.ts:395
↓ 2 callersFunctionretryDelayMs
( attempt: number, baseDelayMs: number, maxDelayMs: number, random: () => number, )
lib/generation/generation-retry.ts:166
↓ 2 callersFunctionretryMediaTask
(elementId: string)
lib/media/media-orchestrator.ts:69
↓ 2 callersFunctionrevokeObjectUrl
(url: string | undefined)
lib/utils/stage-storage.ts:217
↓ 2 callersFunctionrevokeThumbnailSlideMediaUrls
(slides: Record<string, ThumbnailSlide>)
lib/utils/stage-storage.ts:223
↓ 2 callersFunctionrewindStack
(stack: StackItem[], newLength: number)
lib/export/html-parser/parser.ts:44
↓ 2 callersFunctionrewriteLine
(line: string)
lib/ai/reasoning-sse.ts:90
↓ 2 callersFunctionrotateOf
(c: SlideContent)
tests/edit/slide-edit-session.test.ts:21
↓ 2 callersFunctionrunAgentLoop
( request: AgentLoopRequest, callbacks: AgentLoopCallbacks, signal: AbortSignal, )
lib/chat/agent-loop.ts:109
↓ 2 callersFunctionrunDirectorNarratorPass
Run the director-narrator pass: a short, non-streamed system-voice * narration that sets / develops the scene. In the ACT model the director has *
lib/pbl/v2/agents/simulator.ts:251
↓ 2 callersFunctionrunFinalEvaluation
( args: RunFinalEvaluationArgs, )
lib/pbl/v2/agents/evaluator.ts:408
↓ 2 callersFunctionrunStylesToCssString
Maps TextRenderer run loop (element.style) to a single `style=""` string.
packages/@openmaic/importer/src/serializer/textSerializer.ts:1644
↓ 2 callersFunctionsafeReadJson
(path: string)
eval/pbl-v2-planner/compare-html.ts:31
↓ 2 callersFunctionsafeSet
(key: string, value: string)
lib/quiz/persistence.ts:43
↓ 2 callersFunctionsampleVariant
( scenario: AnsweringScenario, variant: Variant, systemPrompt: string, model: Awaited<ReturnType<typeo
eval/orchestration/answering-runner.ts:217
↓ 2 callersFunctionsampleVariant
( scenario: Scenario, variant: PromptVariant, systemPrompt: string, model: Awaited<ReturnType<typeof r
eval/orchestration/runner.ts:83
↓ 2 callersFunctionsampleVariant
( scenario: ContentScenario, variant: Variant, systemPrompt: string, openaiMessages: Array<{ role: 'sy
eval/orchestration/answer-content-runner.ts:263
↓ 2 callersFunctionsaveGeneratedAgents
( stageId: string, agents: Array<{ id: string; name: string; role: string; persona: string
lib/orchestration/registry/store.ts:376
↓ 2 callersFunctionscaleSvgPath
* Scale all coordinate values in an SVG path string by (sx, sy). * Handles M, L, C, Q, S, T, A, H, V, Z and their lowercase (relative) variants.
packages/@openmaic/importer/src/serializer/groupSerializer.ts:80
↓ 2 callersFunctionscanKeywords
(text: string)
lib/pbl/v2/operations/proficiency.ts:209
↓ 2 callersFunctionscenarioPblOutline
()
tests/generation/pbl-v2-scene-routing.test.ts:57
↓ 2 callersMethodscheduleEffectClear
Schedule auto-clear for fire-and-forget effects
lib/action/engine.ts:187
↓ 2 callersFunctionscoreScreenshot
( screenshotPath: string, modelString: string, )
eval/whiteboard-layout/scorer.ts:67
↓ 2 callersFunctionsearchWithBrave
(params: { query: string; apiKey?: string; maxResults?: number; baseUrl?: string; })
lib/web-search/brave.ts:173
↓ 2 callersFunctionseedQuiz
* #657 — Quiz content surface, full authoring → playback journey. * * Two tests: * A. Authoring — in Pro mode, add a question of every type, edit
e2e/tests/quiz-content-surface-657.spec.ts:24
↓ 2 callersFunctionserverProvidersBody
(providers: Record<string, { models?: string[] }>)
e2e/tests/model-invariant-580.spec.ts:26
↓ 2 callersFunctionsetBlankDragImage
(e: React.DragEvent)
components/edit/ActionsBar/ActionsBar.tsx:151
↓ 2 callersFunctionsetDiscussionOptionalById
* Set (or, for an empty value, clear) one of a discussion's optional fields by * id. `prompt` / `agentId` are optional, so an empty string drops the
components/edit/ActionsBar/actions-edit.ts:194
↓ 2 callersFunctionsetDoubaoCompoundKey
(appId: string, accessKey: string)
components/settings/tts-settings.tsx:137
↓ 2 callersFunctionsetIndent
( tr: Transaction, schema: Schema, delta: number, indentKey: IndentKey, )
lib/prosemirror/commands/setTextIndent.ts:36
↓ 2 callersFunctionsetProMode
(on: boolean)
e2e/tests/quiz-content-surface-657.spec.ts:201
↓ 2 callersFunctionsetSpeechTextById
(actions: Action[], id: string, text: string)
components/edit/ActionsBar/actions-edit.ts:103
↓ 2 callersFunctionshapeToElement
( node: ShapeNodeData, ctx: RenderContext, order: number, )
packages/@openmaic/importer/src/serializer/shapeSerializer.ts:1265
↓ 2 callersFunctionshapeXml
(spPrInner: string, styleInner = '')
packages/@openmaic/importer/test/shapeSerializer.grpFill.test.ts:11
↓ 2 callersFunctionsignalFromForceAdvance
()
lib/pbl/v2/operations/proficiency.ts:536
↓ 2 callersFunctionsizeScaleForChild
* 计算 group 缩放该 child 时实际使用的 (sw, sh)。 * * 普通元素直接用 group 的 (ws, hs)。但对于 line / straightConnector1 这类 * 单段线段:源 XML 常以 cy=0 或 cx=0 表示水平/垂直线,shapeSeria
packages/@openmaic/importer/src/serializer/groupSerializer.ts:225
↓ 2 callersFunctionslideOutline
(id: string, title: string)
tests/lib/agent/tools/read-scene-content.test.ts:8
↓ 2 callersFunctionslideOutline
(id: string)
tests/lib/agent/tools/regenerate-scene.test.ts:9
↓ 2 callersFunctionsplitByCategory
Split results into the two grading categories (normal / scenario), * dropping any category with no cases so reports stay clean.
eval/pbl-v2-planner/runner.ts:553
↓ 2 callersFunctionsplitFirstClosedContour
(path: string)
packages/@openmaic/importer/src/shapes/presets.ts:1479
↓ 2 callersFunctionsplitLastFencedJsonTail
(text: string)
lib/pbl/v2/operations/eval-tail-parser.ts:32
↓ 2 callersFunctionsplitLinesWithEndings
(content: string)
lib/edit/html-edit.ts:82
↓ 2 callersFunctionsplitLongSpeechActions
(actions: Action[], providerId: TTSProviderId)
lib/audio/tts-utils.ts:82
↓ 2 callersFunctionsseResponse
(fragments: string[])
tests/ai/reasoning-sse.test.ts:6
↓ 2 callersFunctionstatusCodeFrom
(value: unknown)
lib/generation/generation-retry.ts:87
↓ 2 callersFunctionstops
(g: CanvasGradient, extent: number)
packages/@openmaic/renderer/src/snapshot/index.ts:380
↓ 2 callersFunctionstreamCharacterLine
()
lib/pbl/v2/agents/simulator.ts:501
↓ 2 callersFunctionstripFinalMilestoneContinueGuidance
(text: string)
components/scene-renderers/pbl/v2/eval-cards/milestone-card.tsx:182
↓ 2 callersFunctionstripHtml
(html: string)
lib/orchestration/summarizers/whiteboard-conflicts.ts:36
↓ 2 callersFunctionstripHtml
* Strip HTML tags to extract plain text
lib/orchestration/summarizers/state-context.ts:9
↓ 2 callersFunctionstripLeakedToolJsonPreview
(text: string)
components/scene-renderers/pbl/v2/chat.tsx:1402
↓ 2 callersFunctionstripLegacyServerBaseUrl
* Strip the removed `serverBaseUrl` field from any persisted provider config. * * Managed providers no longer expose their base URL to the client (#
lib/store/settings.ts:726
↓ 2 callersFunctionstubAudio
(play: () => Promise<void>)
tests/audio/audio-player-leak.test.ts:19
↓ 2 callersFunctionstubObjectUrl
Stub URL.createObjectURL/revokeObjectURL while keeping `new URL(...)` working.
tests/audio/audio-player-leak.test.ts:10
↓ 2 callersFunctionstubSpeech
()
tests/audio/voxcpm-registered-voice.test.ts:8
↓ 2 callersFunctionsubmitHappyHorseTask
( config: VideoGenerationConfig, options: VideoGenerationOptions, )
lib/media/adapters/happyhorse-adapter.ts:95
↓ 2 callersFunctionsummarizeElements
(elements: any[])
lib/orchestration/summarizers/state-context.ts:84
↓ 2 callersFunctionsvg2Base64
(element: Element)
lib/export/svg2base64.ts:53
↓ 2 callersFunctionsyntheticPlatformOpener
Synthetic platform turn-opener for greeting / setup phases. * Localised so the LLM doesn't mistake an English imperative for a * request to respon
lib/pbl/v2/agents/instructor.ts:605
↓ 2 callersFunctiontableToElement
(node: TableNodeData, ctx: RenderContext, _order: number)
packages/@openmaic/importer/src/serializer/tableSerializer.ts:490
↓ 2 callersFunctiontaskEvaluationStatusForMicrotask
( project: PBLProjectV2, microtaskId: string, )
lib/pbl/v2/agents/instructor.ts:172
↓ 2 callersFunctiontestOpenAIImageConnectivity
( config: ImageGenerationConfig, )
lib/media/adapters/openai-image-adapter.ts:25
↓ 2 callersFunctionthread
()
tests/pbl/v2/simulator.test.ts:236
↓ 2 callersFunctiontoArray
(v: string | string[] | undefined)
lib/quiz/grading.ts:18
← previousnext →1,401–1,500 of 4,064, ranked by callers