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
↓ 3 callers
Function
formatProjectEngagementRollup
(project: PBLProjectV2)
lib/pbl/v2/operations/eval-prompts.ts:223
↓ 3 callers
Function
formatRunTextForHtml
* Preserve consecutive spaces (same intent as TextRenderer innerHTML / textContent handling).
packages/@openmaic/importer/src/serializer/textSerializer.ts:784
↓ 3 callers
Function
getActionsForRole
(role: string)
lib/orchestration/registry/types.ts:93
↓ 3 callers
Function
getApiHeaders
()
app/generation-preview/page.tsx:172
↓ 3 callers
Function
getAudioResponseFormat
(contentType: string)
lib/audio/tts-providers.ts:356
↓ 3 callers
Function
getDefaultPDFConfig
()
lib/store/settings.ts:446
↓ 3 callers
Function
getDefaultProvidersConfig
()
lib/store/settings.ts:349
↓ 3 callers
Function
getEnabledProvidersWithVoices
( ttsProvidersConfig: Record< string, TTSEnablementConfig & { modelId?: string; provider
lib/audio/voice-resolver.ts:139
↓ 3 callers
Function
getGradientFill
(node, warpObj)
packages/@openmaic/importer/src1/fill.js:181
↓ 3 callers
Function
getHyperlinkFromCNvPr
(cNvPr, warpObj)
packages/@openmaic/importer/src1/pptxtojson.js:365
↓ 3 callers
Function
getLineElementPath
(element: PPTLineElement)
lib/utils/element.ts:222
↓ 3 callers
Function
getMimeType
(path: string)
packages/@openmaic/importer/src/utils/media.ts:9
↓ 3 callers
Function
getMimeType
(imgFileExt)
packages/@openmaic/importer/src1/utils.js:83
↓ 3 callers
Function
getPoint
(e: React.MouseEvent | MouseEvent, custom = false)
components/slide-renderer/Editor/Canvas/ShapeCreateCanvas.tsx:100
↓ 3 callers
Function
getSchemeColorFromTheme
(schemeClr, warpObj, clrMap, phClr)
packages/@openmaic/importer/src1/schemeColor.js:3
↓ 3 callers
Function
getShadowOption
(shadow: PPTElementShadow, ratioPx2Pt: number)
lib/export/use-export-pptx.ts:249
↓ 3 callers
Method
getSnapshot
Export a serializable playback snapshot
lib/playback/engine.ts:108
↓ 3 callers
Function
getThinkingDisplayValue
( thinking: ThinkingCapability | undefined, config: ThinkingConfig | undefined, )
lib/ai/thinking-config.ts:190
↓ 3 callers
Function
handleClick
()
components/audio/speech-button.tsx:74
↓ 3 callers
Function
handleSelectElement
(e: React.MouseEvent | React.TouchEvent, canMove = true)
components/slide-renderer/components/element/ShapeElement/index.tsx:43
↓ 3 callers
Function
handleSelectElement
(e: React.MouseEvent | React.TouchEvent, canMove = true)
components/slide-renderer/components/element/TextElement/index.tsx:38
↓ 3 callers
Function
handoverForMilestoneEvaluation
( evaluation: PBLEvaluation, handover: PBLProjectV2['pendingHandover'], )
components/scene-renderers/pbl/v2/chat.tsx:1382
↓ 3 callers
Function
hasAnyEnabledTTSProvider
(config: ConfigMap)
lib/audio/provider-enablement.ts:115
↓ 3 callers
Function
hasEmptyOutputError
(events: PBLSSEEvent[])
tests/pbl/v2/instructor-difficulty-ack.test.ts:143
↓ 3 callers
Function
hex
(value: string | undefined, fallback: string)
components/scene-renderers/pbl/v2/scene-stage/scene-types.ts:32
↓ 3 callers
Function
hexToRgbInternal
* Minimal hex-to-rgb parser for inline use.
packages/@openmaic/importer/src/serializer/textSerializer.ts:673
↓ 3 callers
Function
htmlForWidget
(type: string)
tests/generation/scene-content-route-vocational-gate.test.ts:131
↓ 3 callers
Function
hueToRgb
(p: number, q: number, t: number)
packages/@openmaic/importer/src/utils/color.ts:83
↓ 3 callers
Function
hueToRgb
(t1, t2, hue)
packages/@openmaic/importer/src1/color.js:3
↓ 3 callers
Function
instructorThread
(p: PBLProjectV2)
tests/pbl/v2/apply-instructor-event.test.ts:55
↓ 3 callers
Function
interactiveCtx
(id: string, html?: string)
tests/lib/agent/tools/edit-interactive-html.test.ts:22
↓ 3 callers
Function
isAllowedExternalUrl
(url: string)
packages/@openmaic/importer/src/utils/urlSafety.ts:10
↓ 3 callers
Function
isCoreMilestoneFinalMicrotask
( milestone: PBLMilestone, microtaskId: string, )
lib/pbl/v2/operations/task-completion.ts:31
↓ 3 callers
Function
isGeneratedImageId
* Check if a string looks like a generated image/video ID (e.g., "gen_img_1", "gen_img_xK8f2mQ") * These are placeholders for AI-generated media, not
lib/generation/scene-generator.ts:401
↓ 3 callers
Function
isGeneratedMediaRef
(value: unknown)
lib/utils/stage-storage.ts:190
↓ 3 callers
Function
isQuizContent
( content: T, )
packages/@openmaic/dsl/src/stage.ts:225
↓ 3 callers
Function
isStoppedResult
(result: unknown)
components/edit/AgentPanel/tool-card.tsx:26
↓ 3 callers
Function
isSymbolFont
(fontName: string | undefined)
packages/@openmaic/importer/src/serializer/textSerializer.ts:23
↓ 3 callers
Function
judgeEnabled
()
eval/pbl-v2-planner/runner.ts:251
↓ 3 callers
Function
latestSubmission
(project: PBLProjectV2, microtaskId: string)
lib/pbl/v2/agents/instructor.ts:162
↓ 3 callers
Function
latestSubmissionForMicrotask
( project: PBLProjectV2, microtaskId: string, )
lib/pbl/v2/operations/submission.ts:59
↓ 3 callers
Function
latestTaskEvaluation
(project: PBLProjectV2, microtaskId: string)
lib/pbl/v2/agents/instructor.ts:166
↓ 3 callers
Function
levelCapability
( levelValues: ThinkingLevel[], defaultLevel: ThinkingLevel, )
lib/ai/model-metadata.ts:31
↓ 3 callers
Function
lightMicrotask
(id: string, title: string)
tests/pbl/v2/planner.test.ts:302
↓ 3 callers
Function
loadClassrooms
()
app/page.tsx:191
↓ 3 callers
Function
loadSnippet
(snippetId: SnippetId)
lib/prompts/loader.ts:28
↓ 3 callers
Function
makeCatAxis
* Create Category axis * @param {IChartOptsLib} opts - chart options * @param {string} axisId - value * @param {string} valAxisId - value * @retur
packages/pptxgenjs/src/gen-charts.ts:1636
↓ 3 callers
Function
makeLegacyConfig
()
tests/pbl/v2/compat.test.ts:70
↓ 3 callers
Function
makeQuotaHook
(source: QuotaSource)
lib/agent/runtime/quota.ts:8
↓ 3 callers
Function
makeScenarioProject
()
tests/pbl/v2/apply-instructor-event.test.ts:45
↓ 3 callers
Function
makeSlideContent
(title: string, elId: string)
e2e/tests/classroom-interaction.spec.ts:48
↓ 3 callers
Function
makeSlideScene
(overrides: Partial<Scene> = {})
tests/edit/slide-schema.test.ts:38
↓ 3 callers
Function
makeValAxis
* Create Value Axis (Used by `bar3D`) * @param {IChartOptsLib} opts - chart options * @param {string} valAxisId - value * @return {string} XML
packages/pptxgenjs/src/gen-charts.ts:1748
↓ 3 callers
Function
manifestRoundTrip
Mirror the manifest's JSON serialize → deserialize boundary.
tests/edit/round-trip/quiz.test.ts:25
↓ 3 callers
Function
markInlined
(url: string)
lib/export/inline-assets.ts:299
↓ 3 callers
Function
mean
(nums: number[])
eval/whiteboard-layout/reporter.ts:5
↓ 3 callers
Function
mediaServingUrl
(baseUrl: string, classroomId: string, subPath: string)
lib/server/classroom-media-generation.ts:62
↓ 3 callers
Function
mockRequest
(outline: SceneOutline, requirements?: { taskEngineMode?: boolean })
tests/generation/scene-content-route-vocational-gate.test.ts:98
↓ 3 callers
Function
moveById
(actions: Action[], id: string, to: number)
components/edit/ActionsBar/actions-edit.ts:134
↓ 3 callers
Function
normalizeBaseUrl
(baseUrl?: string)
lib/media/adapters/happyhorse-adapter.ts:54
↓ 3 callers
Function
normalizeMathCharToUnicode
(cp: number)
packages/@openmaic/importer/src/serializer/mathSerializer.ts:106
↓ 3 callers
Function
normalizeToLF
(text: string)
lib/edit/html-edit.ts:51
↓ 3 callers
Function
notifyVoiceProfilesChanged
()
lib/audio/voxcpm-voices.ts:28
↓ 3 callers
Function
okFetch
()
tests/audio/voice-registration-client.test.ts:15
↓ 3 callers
Function
omath
(inner: string)
packages/@openmaic/importer/test/mathSerializer.test.ts:5
↓ 3 callers
Method
onActionReady
Fired when tick reaches an action item. Callers should execute the effect + add badge.
lib/buffer/stream-buffer.ts:105
↓ 3 callers
Method
onAgentEnd
(data: AgentEndItem)
lib/buffer/stream-buffer.ts:95
↓ 3 callers
Method
onAgentStart
(data: AgentStartItem)
lib/buffer/stream-buffer.ts:94
↓ 3 callers
Method
onCueUser
(fromAgentId?: string, prompt?: string)
lib/buffer/stream-buffer.ts:119
↓ 3 callers
Method
onDone
(data: { totalActions: number; totalAgents: number; agentHadContent?: boolean; directorState?:
lib/buffer/stream-buffer.ts:120
↓ 3 callers
Function
optionLetter
(index: number)
components/edit/surfaces/quiz/quiz-edit-ops.ts:84
↓ 3 callers
Function
parseDirectorDecision
(content: string)
lib/orchestration/director-prompt.ts:216
↓ 3 callers
Function
parseGroupNode
(grpNode: SafeXmlNode)
packages/@openmaic/importer/src/model/nodes/GroupNode.ts:33
↓ 3 callers
Function
parsePicNode
(picNode: SafeXmlNode)
packages/@openmaic/importer/src/model/nodes/PicNode.ts:35
↓ 3 callers
Function
parseStructuredChunk
(chunk: string, state: ParserState)
lib/orchestration/stateless-generate.ts:136
↓ 3 callers
Function
parseTextBody
(txBody: SafeXmlNode)
packages/@openmaic/importer/src/model/nodes/ShapeNode.ts:186
↓ 3 callers
Function
parseZip
( buffer: ArrayBuffer, limits: ZipParseLimits = {}, )
packages/@openmaic/importer/src/parser/ZipParser.ts:76
↓ 3 callers
Function
parsedPdfToDocumentArtifact
( parsed: ParsedPdfContent, input: DocumentExtractorInput, )
lib/document/pdf-compat.ts:54
↓ 3 callers
Function
pat2
(g1: string, g2: string)
packages/@openmaic/importer/src/serializer/StyleResolver.ts:319
↓ 3 callers
Function
pblOutline
(overrides?: Partial<SceneOutline>)
tests/pbl/v2/planner.test.ts:106
↓ 3 callers
Function
pick
(value: unknown)
lib/audio/voice-design.ts:47
↓ 3 callers
Function
pickThinkingEffort
( thinking: ThinkingCapability, config: ThinkingConfig, )
lib/ai/thinking-config.ts:41
↓ 3 callers
Function
playBrowserTTSPreview
(options: PlayBrowserTTSPreviewOptions)
lib/audio/browser-tts-preview.ts:99
↓ 3 callers
Function
pollHappyHorseTask
( config: VideoGenerationConfig, taskId: string, )
lib/media/adapters/happyhorse-adapter.ts:136
↓ 3 callers
Function
prepareWorkspaceLaunchProject
( project: PBLProjectV2, priorQuizResults: PriorQuizResult[], )
lib/pbl/v2/operations/workspace-launch.ts:9
↓ 3 callers
Function
processGroupSpNode
(node, warpObj, source, parentGroupHierarchy = [])
packages/@openmaic/importer/src1/pptxtojson.js:621
↓ 3 callers
Function
projectV2ToLegacyProjectConfig
(project: PBLProjectV2)
lib/pbl/v2/compat.ts:12
↓ 3 callers
Function
readBoolean
* Feature flags. Public flags come from `NEXT_PUBLIC_*` env vars, which * Next.js inlines at build time so they are safe to read from client * compo
lib/config/feature-flags.ts:10
↓ 3 callers
Function
readBracketChar
(code: string, pos: number)
packages/@openmaic/importer/src/utils/eqFieldParser.ts:172
↓ 3 callers
Function
readClassroomGenerationJob
( jobId: string, )
lib/server/classroom-job-store.ts:122
↓ 3 callers
Function
readJsonResponse
(response: Response)
lib/hooks/use-scene-generator.ts:84
↓ 3 callers
Function
redirectHtml
(target)
packages/docs/scripts/postexport.mjs:18
↓ 3 callers
Function
redoQuiz
(history: QuizEditHistory)
components/edit/surfaces/quiz/quiz-edit-ops.ts:60
↓ 3 callers
Function
redoSlideEditOperation
(history: SlideEditHistory)
lib/edit/slide-ops.ts:140
↓ 3 callers
Function
refreshEditLock
( courseId: string, ownTabId: string, now: number = Date.now(), )
lib/edit/edit-mode-lock.ts:90
↓ 3 callers
Function
relsPathFor
* For a given XML file path, find its corresponding .rels file path. * E.g., "ppt/slides/slide1.xml" → "ppt/slides/_rels/slide1.xml.rels"
packages/@openmaic/importer/src/model/Presentation.ts:46
↓ 3 callers
Function
removeAt
(actions: Action[], index: number)
components/edit/ActionsBar/actions-edit.ts:74
↓ 3 callers
Function
removeGeneratingOutline
(outlineId: string)
lib/hooks/use-scene-generator.ts:386
↓ 3 callers
Function
renderTextBody
( textBody: TextBody | undefined, placeholder: PlaceholderInfo | undefined, ctx: RenderContext, option
packages/@openmaic/importer/src/serializer/textSerializer.ts:972
↓ 3 callers
Function
replace
(history: QuizEditHistory)
components/edit/surfaces/quiz/quiz-edit-session.ts:59
← previous
next →
901–1,000 of 4,064, ranked by callers