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
↓ 2 callers
Function
buildDiagramGroup
* 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 callers
Function
buildHistoryMessagesForInstructor
( thread: { messages: PBLChatMessage[]; earlierSummary?: string } | undefined, )
lib/pbl/v2/agents/instructor.ts:882
↓ 2 callers
Function
buildMergedParagraphStyle
( textBody: TextBody, paragraph: TextParagraph, category: 'title' | 'body' | 'other', placeholder: Pla
packages/@openmaic/importer/src/serializer/textSerializer.ts:252
↓ 2 callers
Function
buildPlannerSystemPrompt
( input: PBLPlannerV2Input, proficiency: PBLProficiency, contentLanguage: string, scenarioRoleplay: bo
lib/pbl/v2/agents/planner.ts:300
↓ 2 callers
Function
buildPromptFromTemplate
* 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 callers
Function
buildPromptFromTemplate
( template: string, scenario: AnsweringScenario, conversationSummary: string, )
eval/orchestration/answering-runner.ts:121
↓ 2 callers
Function
buildQianfanUrl
(path: string, baseUrl?: string)
lib/web-search/baidu.ts:31
↓ 2 callers
Function
buildQuizInsertItems
(t: (k: string) => string)
components/edit/surfaces/quiz/use-quiz-surface.ts:94
↓ 2 callers
Function
buildSearchQuery
( requirement: string, pdfText: string | undefined, aiCall?: AICallFn, )
lib/server/search-query-builder.ts:41
↓ 2 callers
Function
buildSystemPrompt
(args: { project: PBLProjectV2; milestone: PBLMilestone; microtask: PBLMicrotask; instructor?: PBLRole
lib/pbl/v2/agents/instructor.ts:803
↓ 2 callers
Function
buildSystemPrompt
(scene?: { id: string; title: string })
lib/agent/runtime/build-agent.ts:63
↓ 2 callers
Function
buildThinkingProviderOptions
* Map a unified ThinkingConfig to provider-specific providerOptions.
lib/ai/llm.ts:138
↓ 2 callers
Function
buildToolset
(deps: ToolsetDeps)
lib/agent/tools/registry.ts:28
↓ 2 callers
Function
calcSlideTabH
()
packages/pptxgenjs/src/gen-tables.ts:194
↓ 2 callers
Function
callModel
(prompt: string)
lib/pbl/v2/agents/planner-single-call.ts:508
↓ 2 callers
Method
cancelBrowserTTS
Cancel any active browser-native TTS
lib/playback/engine.ts:753
↓ 2 callers
Function
capHistory
(past: SlideContent[])
lib/edit/slide-ops.ts:306
↓ 2 callers
Function
changedKeys
(prev: AnyRecord, next: AnyRecord, skip: ReadonlySet<string>)
lib/edit/scene-edit-bridge.ts:25
↓ 2 callers
Function
chartNode
()
packages/@openmaic/importer/test/chartSerializer.test.ts:11
↓ 2 callers
Function
clamp
(value: number, min: number, max: number)
components/scene-renderers/pbl/v2/workspace.tsx:621
↓ 2 callers
Function
cleanOpts
(itemOpts: ObjectOptions)
packages/pptxgenjs/src/gen-objects.ts:1034
↓ 2 callers
Function
clearAllForScene
(sceneId: string)
lib/quiz/persistence.ts:122
↓ 2 callers
Function
clearSubmitted
(sceneId: string)
lib/quiz/persistence.ts:116
↓ 2 callers
Function
closeLineWrapper
()
packages/@openmaic/importer/src/serializer/textSerializer.ts:1411
↓ 2 callers
Function
collectRunData
(runDir: string)
eval/pbl-v2-planner/compare-html.ts:40
↓ 2 callers
Function
colorToCssLocal
* Convert resolved color + alpha to CSS color string.
packages/@openmaic/importer/src/serializer/textSerializer.ts:687
↓ 2 callers
Function
commitRename
()
app/page.tsx:1248
↓ 2 callers
Function
commitTierSwitch
( current: PBLProficiencyAssessment, newTier: PBLProficiency, reason: string, )
lib/pbl/v2/operations/proficiency.ts:765
↓ 2 callers
Function
compositeOnWhiteToHex
Same formula as BackgroundRenderer.compositeOnWhite → opaque hex for JSON.
packages/@openmaic/importer/src/serializer/backgroundSerializer.ts:19
↓ 2 callers
Function
computeRates
(samples: SampleResult[])
eval/orchestration/answering-runner.ts:197
↓ 2 callers
Function
conceptTokens
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 callers
Method
convertMessages
* Convert LangChain messages to AI SDK message format
lib/orchestration/ai-sdk-adapter.ts:64
↓ 2 callers
Function
countErrors
(samples: { error?: string }[])
eval/orchestration/reporter.ts:10
↓ 2 callers
Function
countSubmissions
(project: PBLProjectV2, microtaskId: string)
lib/pbl/v2/agents/instructor.ts:328
↓ 2 callers
Function
createAccessToken
(accessCode: string)
lib/server/access-token.ts:4
↓ 2 callers
Function
createDefaultContent
(type: SceneType)
lib/api/stage-api-defaults.ts:112
↓ 2 callers
Function
createDefaultShapeElement
(id: string, spec?: ShapeSpec)
lib/edit/slide-edit-elements.ts:40
↓ 2 callers
Function
createDocument
(content: string)
lib/prosemirror/index.ts:12
↓ 2 callers
Function
createId
()
lib/audio/voxcpm-voices.ts:32
↓ 2 callers
Function
createMockImportContext
(overrides: Partial<ImportContext> = {})
packages/@openmaic/importer/src/import-pipeline/mockContext.ts:6
↓ 2 callers
Function
createParserState
()
lib/orchestration/stateless-generate.ts:58
↓ 2 callers
Function
createProceduralSkillOutline
()
tests/generation/procedural-skill-content-gates.test.ts:28
↓ 2 callers
Function
createProceduralSkillOutline
()
tests/generation/procedural-skill-routing.test.ts:80
↓ 2 callers
Function
createSceneWithActions
( outline: SceneOutline, content: | GeneratedSlideContent | GeneratedQuizContent | GeneratedIn
lib/generation/scene-generator.ts:1646
↓ 2 callers
Function
createSelectors
(_store: S)
lib/utils/create-selectors.ts:7
↓ 2 callers
Function
createSvgPngPreview
* Create SVG preview image * @param {ISlideRelMedia} rel - slide rel * @return {Promise} promise
packages/pptxgenjs/src/gen-media.ts:162
↓ 2 callers
Function
currentQuizContent
(sceneId: string)
components/edit/surfaces/quiz/use-quiz-surface.ts:34
↓ 2 callers
Function
dataUrlMimeType
(src: string)
lib/document/pdf-compat.ts:26
↓ 2 callers
Function
decodeAudioBlob
(blob: Blob)
lib/audio/voxcpm-voices.ts:109
↓ 2 callers
Function
decodeHtml
(value: string)
lib/web-search/brave.ts:33
↓ 2 callers
Function
dedupeAdjacentRepeatedSentences
(text: string)
lib/pbl/v2/agents/instructor.ts:955
↓ 2 callers
Function
defaultEffortForCapability
(thinking: ThinkingCapability)
lib/ai/thinking-config.ts:103
↓ 2 callers
Function
defaultLevelForCapability
(thinking: ThinkingCapability)
lib/ai/thinking-config.ts:107
↓ 2 callers
Function
degradeToPlainProject
()
lib/pbl/v2/operations/progress.ts:286
↓ 2 callers
Function
deleteQuestion
(content: QuizContent, id: string)
components/edit/surfaces/quiz/quiz-edit-ops.ts:161
↓ 2 callers
Function
deleteSlideElement
(elementId: string)
components/edit/surfaces/slide/use-slide-surface.ts:120
↓ 2 callers
Method
dispose
Clean up timers when the engine is no longer needed
lib/action/engine.ts:104
↓ 2 callers
Function
downloadToBuffer
(url: string)
lib/server/classroom-media-generation.ts:52
↓ 2 callers
Function
effectiveVoiceDesign
* 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 callers
Function
elementFingerprint
(els: PPTElement[])
lib/utils/element-fingerprint.ts:65
↓ 2 callers
Function
elementLabel
(el: any)
lib/orchestration/summarizers/whiteboard-conflicts.ts:41
↓ 2 callers
Function
emuToPt
(emu: number)
packages/@openmaic/importer/src/parser/units.ts:18
↓ 2 callers
Function
encode
Convert string to Uint8Array
middleware.ts:4
↓ 2 callers
Function
endRate
(samples: { isEnd: boolean; error?: string }[])
eval/orchestration/judge.ts:30
↓ 2 callers
Function
endsWithQuestion
(s: string)
lib/pbl/v2/agents/instructor.ts:1134
↓ 2 callers
Function
ensureBuiltInImageProviders
* 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 callers
Function
ensureBuiltInProviders
* 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 callers
Function
ensureBuiltInVideoProviders
* 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 callers
Function
ensureDir
(dir: string)
lib/server/classroom-media-generation.ts:45
↓ 2 callers
Function
ensureValidProviderSelections
* 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 callers
Function
ensureVoicesLoaded
()
lib/audio/browser-tts-preview.ts:31
↓ 2 callers
Function
eqToPlain
(code: string, pos: number)
packages/@openmaic/importer/src/utils/eqFieldParser.ts:466
↓ 2 callers
Function
escapeHtml
(text)
packages/@openmaic/importer/src1/utils.js:72
↓ 2 callers
Function
escapeText
(s: string)
packages/@openmaic/importer/src/import-pipeline/transformParsedToSlides.ts:1058
↓ 2 callers
Method
executeWbOpen
()
lib/action/engine.ts:335
↓ 2 callers
Function
expandIPv6
Expand an IPv6 address into 8 numeric hextets. Returns null for invalid input.
lib/server/ssrf-guard.ts:76
↓ 2 callers
Function
expectPng
(path: string)
tests/pbl/v2/assets.test.ts:4
↓ 2 callers
Function
explicitAssessment
( tier: PBLProficiency, source: ProficiencyAssessmentSource, )
lib/pbl/v2/operations/proficiency.ts:394
↓ 2 callers
Function
exportSlideContent
(content: SlideContent, scene: Scene)
tests/edit/round-trip/image-flip.test.ts:18
↓ 2 callers
Function
exportSlideContent
* 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 callers
Function
exportSlideContent
* 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 callers
Function
exportSlideContent
(content: SlideContent, scene: Scene)
tests/edit/round-trip/z-order.test.ts:18
↓ 2 callers
Function
exportSlideContent
* 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 callers
Function
extOf
(path: string)
packages/@openmaic/importer/src/utils/mediaWebConvert.ts:61
↓ 2 callers
Function
extractSandboxValues
Extract all `sandbox="..."` attribute values from a source file.
tests/security/iframe-sandbox.test.ts:18
↓ 2 callers
Function
extractSpecifiers
(code: string)
lib/export/inline-assets-importmap.ts:7
↓ 2 callers
Function
extractText
(message: AppendMessage)
lib/agent/client/use-agent-runtime.ts:50
↓ 2 callers
Function
extractTopPercentages
(html: string)
packages/@openmaic/importer/test/shapeSerializer.groupLocal.test.ts:137
↓ 2 callers
Function
extractTrailingBalancedObjectRange
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 callers
Function
fetchAsBlob
(url: string)
lib/media/media-orchestrator.ts:263
↓ 2 callers
Function
fetchContent
(outline: SceneOutline)
lib/hooks/use-scene-generator.ts:461
↓ 2 callers
Function
finalizeParser
(state: ParserState)
lib/orchestration/stateless-generate.ts:265
↓ 2 callers
Function
findElementGeometry
( elements: PPTElement[], elementId: string, viewportSize: number = 1000, )
packages/@openmaic/renderer/src/utils/geometry.ts:42
↓ 2 callers
Function
findElementGeometry
( // eslint-disable-next-line @typescript-eslint/no-explicit-any -- scene can be old or new format with diff
lib/utils/geometry.ts:55
↓ 2 callers
Function
findMicrotask
( project: PBLProjectV2, microtaskId: string, )
lib/pbl/v2/operations/progress.ts:197
↓ 2 callers
Function
findMilestoneIdForMicrotask
( project: PBLProjectV2, microtaskId: string, )
components/scene-renderers/pbl/v2/use-instructor-stream.ts:386
↓ 2 callers
Function
findParentNode
(predicate: (node: Node) => boolean)
lib/prosemirror/utils.ts:106
↓ 2 callers
Function
findRelByType
* Find a rels entry by type substring match.
packages/@openmaic/importer/src/model/Presentation.ts:83
↓ 2 callers
Function
firstVoice
()
lib/hooks/use-discussion-tts.ts:116
↓ 2 callers
Function
flipGroupElements
(elements: BaseElement[], axis: 'x' | 'y')
packages/@openmaic/importer/src/import-pipeline/transformParsedToSlides.ts:302
← previous
next →
1,101–1,200 of 4,064, ranked by callers