MCPcopy Create free account

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

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

↓ 2 callersFunctionbuildDiagramGroup
* Build a GroupNodeData from a diagram drawing XML string. * Diagram drawings use dsp: namespace (drawingml 2008); structure is dsp:drawing > dsp:spT
packages/@openmaic/importer/src/model/Slide.ts:239
↓ 2 callersFunctionbuildHistoryMessagesForInstructor
( thread: { messages: PBLChatMessage[]; earlierSummary?: string } | undefined, )
lib/pbl/v2/agents/instructor.ts:882
↓ 2 callersFunctionbuildMergedParagraphStyle
( textBody: TextBody, paragraph: TextParagraph, category: 'title' | 'body' | 'other', placeholder: Pla
packages/@openmaic/importer/src/serializer/textSerializer.ts:252
↓ 2 callersFunctionbuildPlannerSystemPrompt
( input: PBLPlannerV2Input, proficiency: PBLProficiency, contentLanguage: string, scenarioRoleplay: bo
lib/pbl/v2/agents/planner.ts:300
↓ 2 callersFunctionbuildPromptFromTemplate
* Mirrors lib/orchestration/director-prompt.ts `buildDirectorPrompt()` shape * but lets us inject a pre-stripped template. Kept in sync with that fil
eval/orchestration/prompt-variants.ts:106
↓ 2 callersFunctionbuildPromptFromTemplate
( template: string, scenario: AnsweringScenario, conversationSummary: string, )
eval/orchestration/answering-runner.ts:121
↓ 2 callersFunctionbuildQianfanUrl
(path: string, baseUrl?: string)
lib/web-search/baidu.ts:31
↓ 2 callersFunctionbuildQuizInsertItems
(t: (k: string) => string)
components/edit/surfaces/quiz/use-quiz-surface.ts:94
↓ 2 callersFunctionbuildSearchQuery
( requirement: string, pdfText: string | undefined, aiCall?: AICallFn, )
lib/server/search-query-builder.ts:41
↓ 2 callersFunctionbuildSystemPrompt
(args: { project: PBLProjectV2; milestone: PBLMilestone; microtask: PBLMicrotask; instructor?: PBLRole
lib/pbl/v2/agents/instructor.ts:803
↓ 2 callersFunctionbuildSystemPrompt
(scene?: { id: string; title: string })
lib/agent/runtime/build-agent.ts:63
↓ 2 callersFunctionbuildThinkingProviderOptions
* Map a unified ThinkingConfig to provider-specific providerOptions.
lib/ai/llm.ts:138
↓ 2 callersFunctionbuildToolset
(deps: ToolsetDeps)
lib/agent/tools/registry.ts:28
↓ 2 callersFunctioncalcSlideTabH
()
packages/pptxgenjs/src/gen-tables.ts:194
↓ 2 callersFunctioncallModel
(prompt: string)
lib/pbl/v2/agents/planner-single-call.ts:508
↓ 2 callersMethodcancelBrowserTTS
Cancel any active browser-native TTS
lib/playback/engine.ts:753
↓ 2 callersFunctioncapHistory
(past: SlideContent[])
lib/edit/slide-ops.ts:306
↓ 2 callersFunctionchangedKeys
(prev: AnyRecord, next: AnyRecord, skip: ReadonlySet<string>)
lib/edit/scene-edit-bridge.ts:25
↓ 2 callersFunctionchartNode
()
packages/@openmaic/importer/test/chartSerializer.test.ts:11
↓ 2 callersFunctionclamp
(value: number, min: number, max: number)
components/scene-renderers/pbl/v2/workspace.tsx:621
↓ 2 callersFunctioncleanOpts
(itemOpts: ObjectOptions)
packages/pptxgenjs/src/gen-objects.ts:1034
↓ 2 callersFunctionclearAllForScene
(sceneId: string)
lib/quiz/persistence.ts:122
↓ 2 callersFunctionclearSubmitted
(sceneId: string)
lib/quiz/persistence.ts:116
↓ 2 callersFunctioncloseLineWrapper
()
packages/@openmaic/importer/src/serializer/textSerializer.ts:1411
↓ 2 callersFunctioncollectRunData
(runDir: string)
eval/pbl-v2-planner/compare-html.ts:40
↓ 2 callersFunctioncolorToCssLocal
* Convert resolved color + alpha to CSS color string.
packages/@openmaic/importer/src/serializer/textSerializer.ts:687
↓ 2 callersFunctioncommitRename
()
app/page.tsx:1248
↓ 2 callersFunctioncommitTierSwitch
( current: PBLProficiencyAssessment, newTier: PBLProficiency, reason: string, )
lib/pbl/v2/operations/proficiency.ts:765
↓ 2 callersFunctioncompositeOnWhiteToHex
Same formula as BackgroundRenderer.compositeOnWhite → opaque hex for JSON.
packages/@openmaic/importer/src/serializer/backgroundSerializer.ts:19
↓ 2 callersFunctioncomputeRates
(samples: SampleResult[])
eval/orchestration/answering-runner.ts:197
↓ 2 callersFunctionconceptTokens
Tokenize text into latin words (len ≥ 2) + CJK bigrams for a cheap, * language-agnostic relevance overlap. Deterministic.
lib/pbl/v2/agents/planner.ts:1176
↓ 2 callersMethodconvertMessages
* Convert LangChain messages to AI SDK message format
lib/orchestration/ai-sdk-adapter.ts:64
↓ 2 callersFunctioncountErrors
(samples: { error?: string }[])
eval/orchestration/reporter.ts:10
↓ 2 callersFunctioncountSubmissions
(project: PBLProjectV2, microtaskId: string)
lib/pbl/v2/agents/instructor.ts:328
↓ 2 callersFunctioncreateAccessToken
(accessCode: string)
lib/server/access-token.ts:4
↓ 2 callersFunctioncreateDefaultContent
(type: SceneType)
lib/api/stage-api-defaults.ts:112
↓ 2 callersFunctioncreateDefaultShapeElement
(id: string, spec?: ShapeSpec)
lib/edit/slide-edit-elements.ts:40
↓ 2 callersFunctioncreateDocument
(content: string)
lib/prosemirror/index.ts:12
↓ 2 callersFunctioncreateId
()
lib/audio/voxcpm-voices.ts:32
↓ 2 callersFunctioncreateMockImportContext
(overrides: Partial<ImportContext> = {})
packages/@openmaic/importer/src/import-pipeline/mockContext.ts:6
↓ 2 callersFunctioncreateParserState
()
lib/orchestration/stateless-generate.ts:58
↓ 2 callersFunctioncreateProceduralSkillOutline
()
tests/generation/procedural-skill-content-gates.test.ts:28
↓ 2 callersFunctioncreateProceduralSkillOutline
()
tests/generation/procedural-skill-routing.test.ts:80
↓ 2 callersFunctioncreateSceneWithActions
( outline: SceneOutline, content: | GeneratedSlideContent | GeneratedQuizContent | GeneratedIn
lib/generation/scene-generator.ts:1646
↓ 2 callersFunctioncreateSelectors
(_store: S)
lib/utils/create-selectors.ts:7
↓ 2 callersFunctioncreateSvgPngPreview
* Create SVG preview image * @param {ISlideRelMedia} rel - slide rel * @return {Promise} promise
packages/pptxgenjs/src/gen-media.ts:162
↓ 2 callersFunctioncurrentQuizContent
(sceneId: string)
components/edit/surfaces/quiz/use-quiz-surface.ts:34
↓ 2 callersFunctiondataUrlMimeType
(src: string)
lib/document/pdf-compat.ts:26
↓ 2 callersFunctiondecodeAudioBlob
(blob: Blob)
lib/audio/voxcpm-voices.ts:109
↓ 2 callersFunctiondecodeHtml
(value: string)
lib/web-search/brave.ts:33
↓ 2 callersFunctiondedupeAdjacentRepeatedSentences
(text: string)
lib/pbl/v2/agents/instructor.ts:955
↓ 2 callersFunctiondefaultEffortForCapability
(thinking: ThinkingCapability)
lib/ai/thinking-config.ts:103
↓ 2 callersFunctiondefaultLevelForCapability
(thinking: ThinkingCapability)
lib/ai/thinking-config.ts:107
↓ 2 callersFunctiondegradeToPlainProject
()
lib/pbl/v2/operations/progress.ts:286
↓ 2 callersFunctiondeleteQuestion
(content: QuizContent, id: string)
components/edit/surfaces/quiz/quiz-edit-ops.ts:161
↓ 2 callersFunctiondeleteSlideElement
(elementId: string)
components/edit/surfaces/slide/use-slide-surface.ts:120
↓ 2 callersMethoddispose
Clean up timers when the engine is no longer needed
lib/action/engine.ts:104
↓ 2 callersFunctiondownloadToBuffer
(url: string)
lib/server/classroom-media-generation.ts:52
↓ 2 callersFunctioneffectiveVoiceDesign
* The descriptor used to bootstrap an agent's voice: the real `voiceDesign` * when present (generated agents), otherwise the persona as a fallback se
lib/audio/agent-voice.ts:63
↓ 2 callersFunctionelementFingerprint
(els: PPTElement[])
lib/utils/element-fingerprint.ts:65
↓ 2 callersFunctionelementLabel
(el: any)
lib/orchestration/summarizers/whiteboard-conflicts.ts:41
↓ 2 callersFunctionemuToPt
(emu: number)
packages/@openmaic/importer/src/parser/units.ts:18
↓ 2 callersFunctionencode
Convert string to Uint8Array
middleware.ts:4
↓ 2 callersFunctionendRate
(samples: { isEnd: boolean; error?: string }[])
eval/orchestration/judge.ts:30
↓ 2 callersFunctionendsWithQuestion
(s: string)
lib/pbl/v2/agents/instructor.ts:1134
↓ 2 callersFunctionensureBuiltInImageProviders
* Ensure imageProvidersConfig includes all built-in image providers. * Called on every rehydrate so newly added image providers appear automatically.
lib/store/settings.ts:662
↓ 2 callersFunctionensureBuiltInProviders
* Ensure providersConfig includes all built-in providers and their latest models. * Called on every rehydrate (not just version migrations) so new pr
lib/store/settings.ts:611
↓ 2 callersFunctionensureBuiltInVideoProviders
* Ensure videoProvidersConfig includes all built-in video providers. * Called on every rehydrate so newly added video providers appear automatically.
lib/store/settings.ts:677
↓ 2 callersFunctionensureDir
(dir: string)
lib/server/classroom-media-generation.ts:45
↓ 2 callersFunctionensureValidProviderSelections
* Validate all persisted provider IDs against their registries. * Reset any stale / removed ID back to its default value. * Called during both migra
lib/store/settings.ts:527
↓ 2 callersFunctionensureVoicesLoaded
()
lib/audio/browser-tts-preview.ts:31
↓ 2 callersFunctioneqToPlain
(code: string, pos: number)
packages/@openmaic/importer/src/utils/eqFieldParser.ts:466
↓ 2 callersFunctionescapeHtml
(text)
packages/@openmaic/importer/src1/utils.js:72
↓ 2 callersFunctionescapeText
(s: string)
packages/@openmaic/importer/src/import-pipeline/transformParsedToSlides.ts:1058
↓ 2 callersMethodexecuteWbOpen
()
lib/action/engine.ts:335
↓ 2 callersFunctionexpandIPv6
Expand an IPv6 address into 8 numeric hextets. Returns null for invalid input.
lib/server/ssrf-guard.ts:76
↓ 2 callersFunctionexpectPng
(path: string)
tests/pbl/v2/assets.test.ts:4
↓ 2 callersFunctionexplicitAssessment
( tier: PBLProficiency, source: ProficiencyAssessmentSource, )
lib/pbl/v2/operations/proficiency.ts:394
↓ 2 callersFunctionexportSlideContent
(content: SlideContent, scene: Scene)
tests/edit/round-trip/image-flip.test.ts:18
↓ 2 callersFunctionexportSlideContent
* Round-trip gate: tests element.add on default text and image elements. * * (a) Text element: verifies default content survives PPTX export. * (b)
tests/edit/round-trip/insert.test.ts:26
↓ 2 callersFunctionexportSlideContent
* Per-op round-trip for the `element.update` geometry op (PR1's only * editing op). Asserts the moved/resized/rotated geometry survives the * export
tests/edit/round-trip/geometry.test.ts:22
↓ 2 callersFunctionexportSlideContent
(content: SlideContent, scene: Scene)
tests/edit/round-trip/z-order.test.ts:18
↓ 2 callersFunctionexportSlideContent
* Round-trip harness — apply ops to a fixture SlideContent, run the * existing export pipeline (`buildPptxBlob`), and inspect the resulting * PPTX b
tests/edit/round-trip/text-content.test.ts:27
↓ 2 callersFunctionextOf
(path: string)
packages/@openmaic/importer/src/utils/mediaWebConvert.ts:61
↓ 2 callersFunctionextractSandboxValues
Extract all `sandbox="..."` attribute values from a source file.
tests/security/iframe-sandbox.test.ts:18
↓ 2 callersFunctionextractSpecifiers
(code: string)
lib/export/inline-assets-importmap.ts:7
↓ 2 callersFunctionextractText
(message: AppendMessage)
lib/agent/client/use-agent-runtime.ts:50
↓ 2 callersFunctionextractTopPercentages
(html: string)
packages/@openmaic/importer/test/shapeSerializer.groupLocal.test.ts:137
↓ 2 callersFunctionextractTrailingBalancedObjectRange
Find the last well-balanced `{...}` substring in text. Naive but * enough for our case: evaluator narratives never contain a nested * brace in the
lib/pbl/v2/operations/eval-tail-parser.ts:84
↓ 2 callersFunctionfetchAsBlob
(url: string)
lib/media/media-orchestrator.ts:263
↓ 2 callersFunctionfetchContent
(outline: SceneOutline)
lib/hooks/use-scene-generator.ts:461
↓ 2 callersFunctionfinalizeParser
(state: ParserState)
lib/orchestration/stateless-generate.ts:265
↓ 2 callersFunctionfindElementGeometry
( elements: PPTElement[], elementId: string, viewportSize: number = 1000, )
packages/@openmaic/renderer/src/utils/geometry.ts:42
↓ 2 callersFunctionfindElementGeometry
( // eslint-disable-next-line @typescript-eslint/no-explicit-any -- scene can be old or new format with diff
lib/utils/geometry.ts:55
↓ 2 callersFunctionfindMicrotask
( project: PBLProjectV2, microtaskId: string, )
lib/pbl/v2/operations/progress.ts:197
↓ 2 callersFunctionfindMilestoneIdForMicrotask
( project: PBLProjectV2, microtaskId: string, )
components/scene-renderers/pbl/v2/use-instructor-stream.ts:386
↓ 2 callersFunctionfindParentNode
(predicate: (node: Node) => boolean)
lib/prosemirror/utils.ts:106
↓ 2 callersFunctionfindRelByType
* Find a rels entry by type substring match.
packages/@openmaic/importer/src/model/Presentation.ts:83
↓ 2 callersFunctionfirstVoice
()
lib/hooks/use-discussion-tts.ts:116
↓ 2 callersFunctionflipGroupElements
(elements: BaseElement[], axis: 'x' | 'y')
packages/@openmaic/importer/src/import-pipeline/transformParsedToSlides.ts:302
← previousnext →1,101–1,200 of 4,064, ranked by callers