MCPcopy Create free account

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

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

↓ 3 callersFunctionresolveAgent
* Look up an agent config: request-scoped overrides first, then global registry. * This keeps the server stateless — generated agent configs travel w
lib/orchestration/director-graph.ts:85
↓ 3 callersFunctionresolveBorderFromLn
(ln: SafeXmlNode, ctx: RenderContext)
packages/@openmaic/importer/src/serializer/tableSerializer.ts:265
↓ 3 callersFunctionresolveColorWithPlaceholder
( colorNode: SafeXmlNode, ctx: RenderContext, placeholderColorNode?: SafeXmlNode, )
packages/@openmaic/importer/src/serializer/StyleResolver.ts:216
↓ 3 callersFunctionresolveLanguage
(project: PBLProjectV2)
lib/pbl/v2/operations/eval-prompts.ts:38
↓ 3 callersFunctionresolveLineStyle
( ln: SafeXmlNode, ctx: RenderContext, lnRef?: SafeXmlNode, )
packages/@openmaic/importer/src/serializer/StyleResolver.ts:532
↓ 3 callersFunctionresolvePDFApiKey
(providerId: string, clientKey?: string)
lib/server/provider-config.ts:486
↓ 3 callersFunctionresolveProxy
(providerId: string)
lib/server/provider-config.ts:413
↓ 3 callersFunctionresolveTTSApiKey
(providerId: string, clientKey?: string)
lib/server/provider-config.ts:435
↓ 3 callersFunctionresolveTTSBaseUrl
(providerId: string, clientBaseUrl?: string)
lib/server/provider-config.ts:444
↓ 3 callersFunctionresolveThemeFont
* Resolve theme font placeholder references like "+mj-lt" or "+mn-lt". * For the EA (East Asian) slot we fall back to the theme's Hans script row *
packages/@openmaic/importer/src/serializer/textSerializer.ts:648
↓ 3 callersFunctionresolveVideoApiKey
(providerId: string, clientKey?: string)
lib/server/provider-config.ts:529
↓ 3 callersFunctionrgbToHex
(r: number, g: number, b: number)
packages/pptxgenjs/src/gen-utils.ts:119
↓ 3 callersFunctionrgbaToPngDataUrl
( rgba: Uint8Array | Uint8ClampedArray, width: number, height: number, )
packages/@openmaic/importer/src/utils/rgbaToPng.ts:5
↓ 3 callersFunctionrunActiveTextCommand
(elementId: string, payload: TextCommandPayload)
lib/prosemirror/active-editor-registry.ts:39
↓ 3 callersFunctionrunMilestoneEvaluation
( args: RunMilestoneEvaluationArgs, )
lib/pbl/v2/agents/evaluator.ts:376
↓ 3 callersFunctionrunShared
(args: RunSharedArgs)
lib/pbl/v2/agents/evaluator.ts:131
↓ 3 callersFunctionrunTurn
(model: MockLanguageModelV3, userMessage: string)
tests/pbl/v2/instructor-empty-output.test.ts:101
↓ 3 callersFunctionsanitizeAutoVoicePromptPart
(value?: string)
lib/audio/voxcpm.ts:100
↓ 3 callersFunctionscriptedModel
(text: string)
tests/pbl/v2/evaluator.test.ts:56
↓ 3 callersFunctionscriptedModel
(steps: StreamPart[][])
tests/pbl/v2/instructor-empty-output.test.ts:49
↓ 3 callersFunctionsearchWithBaidu
(params: { query: string; apiKey: string; maxResults?: number; baseUrl?: string; subSources?: Partia
lib/web-search/baidu.ts:177
↓ 3 callersFunctionseedVideoThumbnailStage
({ page, stageId = TEST_STAGE_ID, courseName = 'Video Thumbnail Course', slideMediaRef = VIDEO_MEDIA_R
e2e/tests/recent-video-thumbnail.spec.ts:15
↓ 3 callersFunctionsetAudioId
(actions: Action[], index: number, audioId: string)
components/edit/ActionsBar/actions-edit.ts:165
↓ 3 callersFunctionsetElementId
(actions: Action[], index: number, elementId: string)
components/edit/ActionsBar/actions-edit.ts:150
↓ 3 callersFunctionsetElementIdById
(actions: Action[], id: string, elementId: string)
components/edit/ActionsBar/actions-edit.ts:159
↓ 3 callersFunctionsetEvaluationStatus
(patch: Partial<SubmissionEvaluationStatus>)
components/scene-renderers/pbl/v2/submission.tsx:398
↓ 3 callersFunctionsetPendingTaskCompletion
( project: PBLProjectV2, args: { microtaskId: string; milestoneId: string; reason: string;
lib/pbl/v2/operations/task-completion.ts:47
↓ 3 callersFunctionsetSpeechText
(actions: Action[], index: number, text: string)
components/edit/ActionsBar/actions-edit.ts:94
↓ 3 callersFunctionshouldHoldSetupFollowupPreview
( rawText: string, cleaned: { text: string; changed: boolean }, )
lib/pbl/v2/agents/instructor.ts:1063
↓ 3 callersFunctionsidebarDefaultExpandedMilestoneIds
(project: PBLProjectV2)
components/scene-renderers/pbl/v2/sidebar.tsx:411
↓ 3 callersFunctionslide
(id: string, order: number)
tests/classroom/complete-summary.test.ts:5
↓ 3 callersFunctionslideObjectRelationsToXml
* Transforms slide relations to XML string. * Extra relations that are not dynamic can be passed using the 2nd arg (e.g. theme relation in master fil
packages/pptxgenjs/src/gen-xml.ts:819
↓ 3 callersFunctionslideObjectToXml
* Transforms a slide or slideLayout to resulting XML string - Creates `ppt/slide*.xml` * @param {PresSlide|SlideLayout} slideObject - slide object cr
packages/pptxgenjs/src/gen-xml.ts:85
↓ 3 callersFunctionstartGeneration
(sessionOverride?: GenerationSessionState)
app/generation-preview/page.tsx:224
↓ 3 callersFunctionstatusLabel
(status: string)
lib/pbl/v2/agents/instructor.ts:324
↓ 3 callersMethodstop
* Stop playback
lib/utils/audio-player.ts:109
↓ 3 callersFunctionstopRecordingStream
()
components/settings/tts-settings.tsx:712
↓ 3 callersFunctionstopRecordingTimer
()
components/settings/tts-settings.tsx:705
↓ 3 callersFunctionstreamLLM
( params: T, source: string, thinking?: ThinkingConfig, // eslint-disable-next-line @typescript-eslint
lib/ai/llm.ts:340
↓ 3 callersFunctionstreamingMessagePreview
(text: string)
components/scene-renderers/pbl/v2/chat.tsx:1398
↓ 3 callersFunctionstripHtml
(value: string)
lib/web-search/brave.ts:45
↓ 3 callersFunctionstripHtml
(html: string)
lib/agent/tools/read-scene-content.ts:36
↓ 3 callersFunctionstripLeakedToolJson
(text: string)
lib/pbl/v2/agents/instructor.ts:981
↓ 3 callersFunctionstripTemplatePlaceholders
(text: string)
lib/pbl/v2/operations/eval-tail-parser.ts:244
↓ 3 callersFunctionstripThinkBlocks
(text: string)
lib/agent/client/to-pi-parts.ts:28
↓ 3 callersFunctionsumField
( project: PBLProjectV2, field: 'errorCount' | 'learnerTurnCount' | 'durationSeconds', )
lib/pbl/v2/operations/completion-stats.ts:404
↓ 3 callersFunctionsummarizeLatestSubmissionForMicrotask
( project: PBLProjectV2, microtaskId: string, maxChars = 4000, )
lib/pbl/v2/operations/submission.ts:75
↓ 3 callersFunctionsymbolFontCharToUnicode
(char: string, fontName: string)
packages/@openmaic/importer/src/serializer/textSerializer.ts:118
↓ 3 callersFunctionsync
()
components/scene-renderers/pbl-renderer.tsx:247
↓ 3 callersFunctiontaskEvaluationCanComplete
(evaluation: PBLEvaluation | undefined)
lib/pbl/v2/operations/task-completion.ts:14
↓ 3 callersFunctiontestLemonadeImageConnectivity
( config: ImageGenerationConfig, )
lib/media/adapters/lemonade-image-adapter.ts:29
↓ 3 callersFunctiontickTurn
(current: PBLProficiencyAssessment)
lib/pbl/v2/operations/proficiency.ts:729
↓ 3 callersFunctiontoModelMessages
(messages: PiMessage[])
lib/agent/runtime/stream-fn.ts:269
↓ 3 callersFunctiontoPptxtojsonFormat
( presentation: PresentationData, files: PptxFiles, mediaMode: MediaMode = 'base64', )
packages/@openmaic/importer/src/adapter/toPptxtojson.ts:49
↓ 3 callersFunctiontriangleArrowPath
* Build a filled-triangle arrowhead path at `tip` pointing in `dir`. * Returns SVG sub-path string (M...L...L...Z).
packages/@openmaic/importer/src/serializer/shapeSerializer.ts:141
↓ 3 callersFunctiontryParseJson
(jsonStr: string)
lib/generation/json-repair.ts:130
↓ 3 callersFunctionundoQuiz
(history: QuizEditHistory)
components/edit/surfaces/quiz/quiz-edit-ops.ts:50
↓ 3 callersFunctionupdateClassroomGenerationJob
( jobId: string, patch: Partial<ClassroomGenerationJob>, )
lib/server/classroom-job-store.ts:137
↓ 3 callersFunctionupdateScene
(id: string, patch: { actions: unknown })
tests/lib/agent/client/use-agent-runtime.test.ts:84
↓ 3 callersFunctionuseCarouselApi
()
components/ai-elements/inline-citation.tsx:70
↓ 3 callersFunctionuseClipImage
(element: PPTImageElement)
components/slide-renderer/components/element/ImageElement/useClipImage.ts:9
↓ 3 callersFunctionuseDraftCache
({ key, debounceMs = 500, }: UseDraftCacheOptions)
lib/hooks/use-draft-cache.ts:16
↓ 3 callersFunctionuseMediaStageId
()
lib/contexts/media-stage-context.tsx:16
↓ 3 callersFunctionuseTTSPreview
()
lib/audio/use-tts-preview.ts:28
↓ 3 callersFunctionuseTheme
()
lib/hooks/use-theme.tsx:65
↓ 3 callersFunctionuseWebPreview
()
components/ai-elements/web-preview.tsx:21
↓ 3 callersFunctionv1
(baseUrl: string)
lib/audio/voxcpm-registration.ts:21
↓ 3 callersFunctionvalidateSceneId
(scenes: Scene[], sceneId: string)
lib/api/stage-api-defaults.ts:31
↓ 3 callersFunctionvoxCPMBackendSupportsReferenceAudio
(backend: VoxCPMBackendType)
lib/audio/voxcpm.ts:79
↓ 3 callersFunctionvoxCPMVoiceExists
( cfg: VoiceRegistrationConfig, voiceId: string, )
lib/audio/voxcpm-registration.ts:59
↓ 3 callersMethodwaitForEditor
()
e2e/pages/generation-preview.page.ts:50
↓ 3 callersFunctionwithThinkingConfig
(body: T)
app/generation-preview/page.tsx:199
↓ 3 callersFunctionworkspaceActiveMilestoneIndex
(project: PBLProjectV2)
components/scene-renderers/pbl/v2/workspace.tsx:553
↓ 3 callersFunctionwriteReport
(runDir: string, report: EvalReport)
eval/orchestration/reporter.ts:18
↓ 2 callersFunctionaddShapeDefinition
(target: PresSlide, shapeName: SHAPE_NAME, opts: ShapeProps)
packages/pptxgenjs/src/gen-objects.ts:695
↓ 2 callersFunctionaggregate
(samples: SampleResult[])
eval/orchestration/answer-content-runner.ts:307
↓ 2 callersFunctionanimate
(timestamp: number)
lib/hooks/use-streaming-text.ts:92
↓ 2 callersFunctionapiHeaders
Common headers for all Veo API calls
lib/media/adapters/veo-adapter.ts:58
↓ 2 callersFunctionappendTaskCompletionReadyMessage
( project: PBLProjectV2, microtaskId: string, options: { afterTs?: string } = {}, )
lib/pbl/v2/operations/task-completion.ts:106
↓ 2 callersFunctionapplyCuePreview
(preview: CuePreview)
components/edit/ActionsBar/cue-preview.ts:51
↓ 2 callersFunctionapplyEditsToNormalizedContent
( normalizedContent: string, edits: Edit[], path: string, )
lib/edit/html-edit.ts:274
↓ 2 callersFunctionapplyOperationToContent
( content: SlideContent, operation: SlideEditOperation, )
lib/edit/slide-ops.ts:151
↓ 2 callersFunctionapplyReplacements
(content: string, replacements: TextReplacement[], offset = 0)
lib/edit/html-edit.ts:122
↓ 2 callersFunctionapplyTint
(rgbStr, tintValue, isAlpha)
packages/@openmaic/importer/src1/color.js:49
↓ 2 callersFunctionasStrictBool
Accept only a real boolean or the exact strings "true"/"false" (case-insensitive). * Anything else (e.g. a stray string, number, undefined) returns n
eval/orchestration/answer-content-judge.ts:23
↓ 2 callersFunctionassignBakedRotFlip
把 baked transform 的 rotate/flip 字段写到 scaled 对象上(仅当 child 本身有该字段)。
packages/@openmaic/importer/src/serializer/groupSerializer.ts:236
↓ 2 callersFunctionatTarget
(on: boolean)
e2e/tests/quiz-content-surface-657.spec.ts:193
↓ 2 callersFunctionauthHeaders
(apiKey?: string)
lib/media/adapters/lemonade-image-adapter.ts:20
↓ 2 callersFunctionbakeGroupTransform
* 在 group 局部坐标系内,把 group 的 flip/rotation 烘焙到子元素的 transform, * 让输出不再依赖 group 包裹层的变换。无变换时返回 null。 * * flipH+flipV 同时出现等价于绕中心旋转 180°,这里直接折算为 +180° 旋转而
packages/@openmaic/importer/src/serializer/groupSerializer.ts:175
↓ 2 callersFunctionbase64ArrayBuffer
(arrayBuffer)
packages/@openmaic/importer/src1/utils.js:1
↓ 2 callersFunctionbaseConfig
()
components/generation/outlines-editor.tsx:1213
↓ 2 callersFunctionbaseOptions
(lang?: string)
packages/docs/lib/layout.shared.tsx:5
↓ 2 callersFunctionbboxToPosition
( bbox?: DocumentBlock['bbox'], )
lib/document/pdf-compat.ts:19
↓ 2 callersFunctionbudgetOnlyCapability
( requestAdapter: ThinkingRequestAdapter, range: { min: number; max: number; step?: number; allowDynamic?:
lib/ai/model-metadata.ts:79
↓ 2 callersFunctionbuildArrowPath
( type: string, tip: Vec2, dir: Vec2, strokeW: number, w?: string, len?: string, )
packages/@openmaic/importer/src/serializer/shapeSerializer.ts:216
↓ 2 callersFunctionbuildCircularArrowPath
( w: number, h: number, adjustments?: Map<string, number>, _mirrorX: boolean = false, variant: 'circ
packages/@openmaic/importer/src/shapes/presets.ts:1694
↓ 2 callersFunctionbuildCompareHtml
(runDir: string)
eval/pbl-v2-planner/compare-html.ts:248
↓ 2 callersFunctionbuildCompletionReportViewModel
(project: PBLProjectV2)
components/scene-renderers/pbl/v2/completion.tsx:79
↓ 2 callersFunctionbuildCurvedArrowMultiPath
( shapeName: 'curvedRightArrow' | 'curvedLeftArrow', w: number, h: number, adjustments?: Map<string, n
packages/@openmaic/importer/src/shapes/presets.ts:1489
↓ 2 callersFunctionbuildCurvedVerticalArrowMultiPath
( shapeName: 'curvedUpArrow' | 'curvedDownArrow', w: number, h: number, adjustments?: Map<string, numb
packages/@openmaic/importer/src/shapes/presets.ts:1514
← previousnext →1,001–1,100 of 4,064, ranked by callers