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
↓ 11 callers
Function
stripOrphanTrailingQuestion
(text: string)
lib/pbl/v2/agents/instructor.ts:1133
↓ 11 callers
Function
updateQuestion
( content: QuizContent, id: string, patch: Partial< Pick<QuizQuestion, 'question' | 'analysis' | 'co
components/edit/surfaces/quiz/quiz-edit-ops.ts:182
↓ 11 callers
Function
useCanvasOperations
()
lib/hooks/use-canvas-operations.ts:49
↓ 11 callers
Method
version
()
packages/pptxgenjs/src/pptxgen.ts:138
↓ 10 callers
Function
_abGuides
(w: number, h: number)
packages/@openmaic/importer/src/shapes/presets.ts:4501
↓ 10 callers
Method
advanceNonText
* After processing a non-text item, keep advancing through consecutive * non-text items in the same tick. Stop when we hit a text item or * the
lib/buffer/stream-buffer.ts:620
↓ 10 callers
Function
aiCall
(systemPrompt, userPrompt, _images)
lib/server/classroom-generation.ts:209
↓ 10 callers
Function
alignElementToCanvas
(command: ElementAlignCommands)
lib/hooks/use-canvas-operations.ts:283
↓ 10 callers
Function
analyzeQuizAccuracy
(results: PriorQuizResult[])
lib/pbl/v2/operations/proficiency.ts:452
↓ 10 callers
Function
avg
(nums: number[])
eval/pbl-v2-planner/runner.ts:535
↓ 10 callers
Function
buildPptxBlob
( slides: Slide[], slideScenes: Scene[], viewportRatio: number, viewportSize: number, ratioPx2Inch:
lib/export/use-export-pptx.ts:362
↓ 10 callers
Function
buildTimeline
( messages: PBLChatMessage[], evaluations: PBLEvaluation[], roleplayHistory: PBLChatMessage[] = [], )
components/scene-renderers/pbl/v2/chat.tsx:1323
↓ 10 callers
Function
clamp
(x: number, lo: number, hi: number)
lib/pbl/v2/operations/proficiency.ts:145
↓ 10 callers
Function
createAssetFetcher
(options?: InlineOptions)
lib/export/inline-assets.ts:63
↓ 10 callers
Function
createReasoningContentRewriter
()
lib/ai/reasoning-sse.ts:31
↓ 10 callers
Function
ensureRegisteredVoice
( providerId: string, params: { voiceDesign?: VoiceDesign; language?: string }, request: VoiceRegistrati
lib/audio/voice-registration-client.ts:70
↓ 10 callers
Function
generateTTS
( config: TTSModelConfig, text: string, )
lib/audio/tts-providers.ts:144
↓ 10 callers
Function
getBorder
(node, elType, warpObj)
packages/@openmaic/importer/src1/border.js:5
↓ 10 callers
Function
getFillType
(node)
packages/@openmaic/importer/src1/fill.js:23
↓ 10 callers
Function
getServerTTSProviders
()
lib/server/provider-config.ts:427
↓ 10 callers
Function
isAbortError
(error: unknown)
lib/generation/generation-retry.ts:63
↓ 10 callers
Function
makeInteractiveContent
( overrides: Partial<LegacyInteractiveContent> = {}, )
tests/edit/slide-schema.test.ts:50
↓ 10 callers
Function
makeProject
()
tests/pbl/v2/apply-instructor-event.test.ts:7
↓ 10 callers
Function
migrateInteractiveContent
(content: InteractiveContent)
lib/edit/slide-schema.ts:50
↓ 10 callers
Function
mkProject
()
tests/pbl/v2/submission.test.ts:18
↓ 10 callers
Function
parseJsonResponse
(response: string)
lib/generation/json-repair.ts:35
↓ 10 callers
Function
pat
(gradient: string)
packages/@openmaic/importer/src/serializer/StyleResolver.ts:318
↓ 10 callers
Function
q
(overrides: Partial<QuizQuestion>)
tests/quiz/grading.test.ts:5
↓ 10 callers
Function
resolveEvalModel
(envVar: string, fallback?: string)
eval/shared/resolve-model.ts:10
↓ 10 callers
Function
resolveMediaToUrl
( mediaPath: string, data: Uint8Array | ArrayBuffer, mode: 'base64' | 'blob', cache: Map<string, strin
packages/@openmaic/importer/src/utils/mediaWebConvert.ts:203
↓ 10 callers
Function
resolvePresent
The working content: in-memory session present, else the canonical scene, else empty.
components/edit/surfaces/quiz/use-quiz-surface.ts:40
↓ 10 callers
Function
resolveRelTarget
(basePath: string, target: string)
packages/@openmaic/importer/src/parser/RelParser.ts:60
↓ 10 callers
Function
stepFontSize
(current: string, delta: number)
components/edit/surfaces/slide/text-format-bar.tsx:316
↓ 10 callers
Function
tierGuidanceBlock
(proficiency: PBLProficiency)
lib/pbl/v2/agents/tier-guidance.ts:98
↓ 10 callers
Function
transcribeAudio
( config: ASRModelConfig, audioBuffer: Buffer | Blob, )
lib/audio/asr-providers.ts:164
↓ 10 callers
Function
updateConfig
(updates: Partial<typeof config>)
components/generation/outlines-editor.tsx:1001
↓ 10 callers
Function
withGenerationRetry
( operation: (attempt: number) => Promise<T>, options: GenerationRetryOptions<T>, )
lib/generation/generation-retry.ts:177
↓ 9 callers
Function
agent
(partial: Partial<AgentConfig>)
tests/audio/agent-voice.test.ts:14
↓ 9 callers
Function
applySignal
( current: PBLProficiencyAssessment, signal: ProficiencySignal, )
lib/pbl/v2/operations/proficiency.ts:710
↓ 9 callers
Function
baseOutline
(overrides: Partial<SceneOutline> = {})
tests/generation/scene-generator-language-directive.test.ts:45
↓ 9 callers
Function
computeFitScale
(args: { containerWidth: number; containerHeight: number; contentWidth: number; contentHeight: number;
components/scene-renderers/pbl/v2/fit-scale.ts:18
↓ 9 callers
Function
computeInitialAssessment
(input: { outline: SceneOutline; priorScenes: SceneOutline[]; userBio?: string; userRequirement?: stri
lib/pbl/v2/operations/proficiency.ts:672
↓ 9 callers
Function
createSlideEditHistory
(initial: SlideContent)
lib/edit/slide-ops.ts:90
↓ 9 callers
Function
deriveSlideEditOperations
( prev: SlideContent, next: SlideContent, )
lib/edit/scene-edit-bridge.ts:48
↓ 9 callers
Function
getDeterministicVoiceId
( design: VoiceDesign, opts: { providerId?: string; model?: string } = {}, )
lib/audio/voice-design.ts:68
↓ 9 callers
Function
getNewRelId
(target: PresSlide)
packages/pptxgenjs/src/gen-utils.ts:221
↓ 9 callers
Function
getServerProviders
()
lib/server/provider-config.ts:392
↓ 9 callers
Function
migrateScene
(scene: Scene)
lib/edit/slide-schema.ts:79
↓ 9 callers
Function
migrateSlideContent
(content: SlideContent)
lib/edit/slide-schema.ts:20
↓ 9 callers
Function
minimalCtx
(overrides: Partial<RenderContext> = {})
packages/@openmaic/importer/test/helpers.ts:35
↓ 9 callers
Function
normalizeScore
(raw: unknown)
lib/pbl/v2/operations/eval-tail-parser.ts:198
↓ 9 callers
Method
onThinking
(data: { stage: string; agentId?: string } | null)
lib/buffer/stream-buffer.ts:118
↓ 9 callers
Function
parseBaseProps
(spNode: SafeXmlNode)
packages/@openmaic/importer/src/model/nodes/BaseNode.ts:144
↓ 9 callers
Function
patchHtmlForIframe
(html: string)
lib/utils/iframe.ts:110
↓ 9 callers
Function
planRegenerateApply
( details: RegenerateDetails, scene: Pick<Scene, 'content' | 'actions'> | null, toolName?: string, )
lib/agent/client/apply-regenerate.ts:93
↓ 9 callers
Function
postProxy
(body: Record<string, unknown>)
tests/api/proxy-media.test.ts:15
↓ 9 callers
Function
pushPoint
(x: number, y: number)
packages/@openmaic/importer/src/openmaic/utils/svgPathParser.ts:40
↓ 9 callers
Function
renderTxBodyHtml
( innerXml: string, placeholder?: PlaceholderInfo, options?: RenderTextBodyOptions, )
packages/@openmaic/importer/test/helpers.ts:73
↓ 9 callers
Function
scenarioProject
()
tests/pbl/v2/instructor.test.ts:845
↓ 9 callers
Function
scenarioProject
(overrides?: Partial<PBLProjectV2>)
tests/pbl/v2/planner.test.ts:308
↓ 9 callers
Function
setNoProxy
(value: string | undefined)
tests/server/proxy-fetch.test.ts:9
↓ 9 callers
Function
settleReject
(reject: (reason?: unknown) => void, reason: unknown)
lib/audio/browser-tts-preview.ts:128
↓ 9 callers
Function
shouldShowStreamingDraft
({ streaming, instructorStreaming, draftAssistant, streamCommittedOutput, hasExternalDraft = false,
components/scene-renderers/pbl/v2/chat.tsx:1359
↓ 9 callers
Function
startMicrotask
(project: PBLProjectV2, microtaskId: string)
lib/pbl/v2/operations/progress.ts:343
↓ 9 callers
Function
thread
(text: string)
tests/lib/agent/client/agent-thread-store.test.ts:4
↓ 9 callers
Function
useHistorySnapshot
()
lib/hooks/use-history-snapshot.ts:19
↓ 8 callers
Function
addMark
( editorView: EditorView, mark: Mark, selection?: { from: number; to: number }, )
lib/prosemirror/utils.ts:15
↓ 8 callers
Function
addX
(x: number)
packages/@openmaic/renderer/src/elements/shape/BaseShapeElement.tsx:31
↓ 8 callers
Function
addY
(y: number)
packages/@openmaic/renderer/src/elements/shape/BaseShapeElement.tsx:35
↓ 8 callers
Function
agent
(voiceConfig?: AgentConfig['voiceConfig'])
tests/audio/voice-resolver-enablement.test.ts:18
↓ 8 callers
Function
alignedAdsorption
(currentX: number | null, currentY: number | null)
components/slide-renderer/Editor/Canvas/hooks/useScaleElement.ts:259
↓ 8 callers
Function
braceArcPoly
* 把一段圆/椭圆弧采样成折线(degree-by-degree),用 L 命令续接到当前路径。 * brace(leftBrace/rightBrace)的曲臂半径极扁(rx≫ry,例如 rx≈8、ry≈1.3), * 单条 SVG `A` 椭圆弧命令在这种近退化椭圆下渲染会失真/不对称(括号
packages/@openmaic/importer/src/shapes/presets.ts:3841
↓ 8 callers
Function
buildOutlinePrompt
( flags: { hasSourceImages?: boolean; imageEnabled?: boolean; videoEnabled?: boolean; }, pro
tests/prompts/media-conditional.test.ts:5
↓ 8 callers
Function
buildQuizHints
( content: QuizContent, t: (k: string, o?: Record<string, unknown>) => string, )
components/edit/surfaces/quiz/use-quiz-surface.ts:117
↓ 8 callers
Function
buildScenarioDesignBlock
( pblConfig: NonNullable<PBLPlannerV2Input['outline']['pblConfig']>, scenarioRoleplay: boolean, )
lib/pbl/v2/agents/planner.ts:345
↓ 8 callers
Function
buildSimulatorSystemPrompt
( project: PBLProjectV2, milestone: PBLMilestone, microtask: PBLMicrotask | undefined, )
lib/pbl/v2/agents/simulator.ts:123
↓ 8 callers
Function
buildTaskEvalPrompt
( project: PBLProjectV2, milestone: PBLMilestone, task: PBLMicrotask, opts: { recentChatSummary?: stri
lib/pbl/v2/operations/eval-prompts.ts:61
↓ 8 callers
Function
contentOf
(c: Chunk)
tests/ai/reasoning-sse.test.ts:31
↓ 8 callers
Function
continueAfterHandover
(project: PBLProjectV2)
lib/pbl/v2/operations/progress.ts:553
↓ 8 callers
Function
createPartMapper
( partial: AssistantMessage, push: (event: AssistantMessageEvent) => void, )
lib/agent/runtime/stream-fn.ts:127
↓ 8 callers
Function
createRunDir
(baseDir: string, model: string)
eval/shared/run-dir.ts:10
↓ 8 callers
Function
defaultModeForCapability
(thinking: ThinkingCapability)
lib/ai/thinking-config.ts:99
↓ 8 callers
Function
deriveEditFailed
(args: { running: boolean; stopped: boolean; isError: boolean; result?: EditInteractiveHtmlResult | nu
components/edit/AgentPanel/edit-tool-state.ts:40
↓ 8 callers
Function
enc
(s: string)
tests/export/inline-assets-importmap.test.ts:4
↓ 8 callers
Function
ev
(id: string, createdAt: string, kind: PBLEvaluation['kind'] = 'task')
tests/pbl/v2/chat-timeline.test.ts:32
↓ 8 callers
Function
findStyleAtLevel
* Find paragraph properties at a specific indent level from a list style node. * Tries lvl{n}pPr (where n = level + 1), then falls back to defPPr.
packages/@openmaic/importer/src/serializer/textSerializer.ts:142
↓ 8 callers
Function
generateWithLemonadeImage
( config: ImageGenerationConfig, options: ImageGenerationOptions, )
lib/media/adapters/lemonade-image-adapter.ts:50
↓ 8 callers
Function
gradeChoiceQuestions
( questions: QuizQuestion[], answers: Record<string, string | string[]>, )
lib/quiz/grading.ts:34
↓ 8 callers
Function
hasStartedProject
(project: PBLProjectV2)
lib/pbl/v2/operations/progress.ts:139
↓ 8 callers
Function
humanMsg
(content: string)
tests/orchestration/conversation-summary.test.ts:15
↓ 8 callers
Function
isCustomASRProvider
(id: string)
lib/audio/types.ts:197
↓ 8 callers
Function
isMaicEditorEnabled
()
lib/config/feature-flags.ts:20
↓ 8 callers
Function
makeProject
()
tests/pbl/v2/advance-patch.test.ts:11
↓ 8 callers
Function
makeRegenerateSceneActionsTool
( deps: RegenerateActionsDeps, )
lib/agent/tools/regenerate-scene-actions.ts:163
↓ 8 callers
Function
makeSlideScene
(id: string, order: number, stageId = 'stage-1')
tests/store/stage-insert-scene-after.test.ts:26
↓ 8 callers
Function
matchesVoiceQuery
(value: string | undefined, query: string)
components/agent/agent-bar.tsx:31
↓ 8 callers
Function
microtaskEngagement
( project: PBLProjectV2, microtaskId: string, )
lib/pbl/v2/operations/engagement.ts:67
↓ 8 callers
Function
move
(actions: Action[], from: number, to: number)
components/edit/ActionsBar/actions-edit.ts:83
↓ 8 callers
Function
moveByIdDir
(actions: Action[], id: string, dir: number)
components/edit/ActionsBar/actions-edit.ts:140
↓ 8 callers
Function
newId
(prefix: string)
lib/pbl/v2/agents/planner.ts:419
← previous
next →
201–300 of 4,064, ranked by callers