MCPcopy Create free account

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

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

↓ 11 callersFunctionstripOrphanTrailingQuestion
(text: string)
lib/pbl/v2/agents/instructor.ts:1133
↓ 11 callersFunctionupdateQuestion
( content: QuizContent, id: string, patch: Partial< Pick<QuizQuestion, 'question' | 'analysis' | 'co
components/edit/surfaces/quiz/quiz-edit-ops.ts:182
↓ 11 callersFunctionuseCanvasOperations
()
lib/hooks/use-canvas-operations.ts:49
↓ 11 callersMethodversion
()
packages/pptxgenjs/src/pptxgen.ts:138
↓ 10 callersFunction_abGuides
(w: number, h: number)
packages/@openmaic/importer/src/shapes/presets.ts:4501
↓ 10 callersMethodadvanceNonText
* 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 callersFunctionaiCall
(systemPrompt, userPrompt, _images)
lib/server/classroom-generation.ts:209
↓ 10 callersFunctionalignElementToCanvas
(command: ElementAlignCommands)
lib/hooks/use-canvas-operations.ts:283
↓ 10 callersFunctionanalyzeQuizAccuracy
(results: PriorQuizResult[])
lib/pbl/v2/operations/proficiency.ts:452
↓ 10 callersFunctionavg
(nums: number[])
eval/pbl-v2-planner/runner.ts:535
↓ 10 callersFunctionbuildPptxBlob
( slides: Slide[], slideScenes: Scene[], viewportRatio: number, viewportSize: number, ratioPx2Inch:
lib/export/use-export-pptx.ts:362
↓ 10 callersFunctionbuildTimeline
( messages: PBLChatMessage[], evaluations: PBLEvaluation[], roleplayHistory: PBLChatMessage[] = [], )
components/scene-renderers/pbl/v2/chat.tsx:1323
↓ 10 callersFunctionclamp
(x: number, lo: number, hi: number)
lib/pbl/v2/operations/proficiency.ts:145
↓ 10 callersFunctioncreateAssetFetcher
(options?: InlineOptions)
lib/export/inline-assets.ts:63
↓ 10 callersFunctioncreateReasoningContentRewriter
()
lib/ai/reasoning-sse.ts:31
↓ 10 callersFunctionensureRegisteredVoice
( providerId: string, params: { voiceDesign?: VoiceDesign; language?: string }, request: VoiceRegistrati
lib/audio/voice-registration-client.ts:70
↓ 10 callersFunctiongenerateTTS
( config: TTSModelConfig, text: string, )
lib/audio/tts-providers.ts:144
↓ 10 callersFunctiongetBorder
(node, elType, warpObj)
packages/@openmaic/importer/src1/border.js:5
↓ 10 callersFunctiongetFillType
(node)
packages/@openmaic/importer/src1/fill.js:23
↓ 10 callersFunctiongetServerTTSProviders
()
lib/server/provider-config.ts:427
↓ 10 callersFunctionisAbortError
(error: unknown)
lib/generation/generation-retry.ts:63
↓ 10 callersFunctionmakeInteractiveContent
( overrides: Partial<LegacyInteractiveContent> = {}, )
tests/edit/slide-schema.test.ts:50
↓ 10 callersFunctionmakeProject
()
tests/pbl/v2/apply-instructor-event.test.ts:7
↓ 10 callersFunctionmigrateInteractiveContent
(content: InteractiveContent)
lib/edit/slide-schema.ts:50
↓ 10 callersFunctionmkProject
()
tests/pbl/v2/submission.test.ts:18
↓ 10 callersFunctionparseJsonResponse
(response: string)
lib/generation/json-repair.ts:35
↓ 10 callersFunctionpat
(gradient: string)
packages/@openmaic/importer/src/serializer/StyleResolver.ts:318
↓ 10 callersFunctionq
(overrides: Partial<QuizQuestion>)
tests/quiz/grading.test.ts:5
↓ 10 callersFunctionresolveEvalModel
(envVar: string, fallback?: string)
eval/shared/resolve-model.ts:10
↓ 10 callersFunctionresolveMediaToUrl
( mediaPath: string, data: Uint8Array | ArrayBuffer, mode: 'base64' | 'blob', cache: Map<string, strin
packages/@openmaic/importer/src/utils/mediaWebConvert.ts:203
↓ 10 callersFunctionresolvePresent
The working content: in-memory session present, else the canonical scene, else empty.
components/edit/surfaces/quiz/use-quiz-surface.ts:40
↓ 10 callersFunctionresolveRelTarget
(basePath: string, target: string)
packages/@openmaic/importer/src/parser/RelParser.ts:60
↓ 10 callersFunctionstepFontSize
(current: string, delta: number)
components/edit/surfaces/slide/text-format-bar.tsx:316
↓ 10 callersFunctiontierGuidanceBlock
(proficiency: PBLProficiency)
lib/pbl/v2/agents/tier-guidance.ts:98
↓ 10 callersFunctiontranscribeAudio
( config: ASRModelConfig, audioBuffer: Buffer | Blob, )
lib/audio/asr-providers.ts:164
↓ 10 callersFunctionupdateConfig
(updates: Partial<typeof config>)
components/generation/outlines-editor.tsx:1001
↓ 10 callersFunctionwithGenerationRetry
( operation: (attempt: number) => Promise<T>, options: GenerationRetryOptions<T>, )
lib/generation/generation-retry.ts:177
↓ 9 callersFunctionagent
(partial: Partial<AgentConfig>)
tests/audio/agent-voice.test.ts:14
↓ 9 callersFunctionapplySignal
( current: PBLProficiencyAssessment, signal: ProficiencySignal, )
lib/pbl/v2/operations/proficiency.ts:710
↓ 9 callersFunctionbaseOutline
(overrides: Partial<SceneOutline> = {})
tests/generation/scene-generator-language-directive.test.ts:45
↓ 9 callersFunctioncomputeFitScale
(args: { containerWidth: number; containerHeight: number; contentWidth: number; contentHeight: number;
components/scene-renderers/pbl/v2/fit-scale.ts:18
↓ 9 callersFunctioncomputeInitialAssessment
(input: { outline: SceneOutline; priorScenes: SceneOutline[]; userBio?: string; userRequirement?: stri
lib/pbl/v2/operations/proficiency.ts:672
↓ 9 callersFunctioncreateSlideEditHistory
(initial: SlideContent)
lib/edit/slide-ops.ts:90
↓ 9 callersFunctionderiveSlideEditOperations
( prev: SlideContent, next: SlideContent, )
lib/edit/scene-edit-bridge.ts:48
↓ 9 callersFunctiongetDeterministicVoiceId
( design: VoiceDesign, opts: { providerId?: string; model?: string } = {}, )
lib/audio/voice-design.ts:68
↓ 9 callersFunctiongetNewRelId
(target: PresSlide)
packages/pptxgenjs/src/gen-utils.ts:221
↓ 9 callersFunctiongetServerProviders
()
lib/server/provider-config.ts:392
↓ 9 callersFunctionmigrateScene
(scene: Scene)
lib/edit/slide-schema.ts:79
↓ 9 callersFunctionmigrateSlideContent
(content: SlideContent)
lib/edit/slide-schema.ts:20
↓ 9 callersFunctionminimalCtx
(overrides: Partial<RenderContext> = {})
packages/@openmaic/importer/test/helpers.ts:35
↓ 9 callersFunctionnormalizeScore
(raw: unknown)
lib/pbl/v2/operations/eval-tail-parser.ts:198
↓ 9 callersMethodonThinking
(data: { stage: string; agentId?: string } | null)
lib/buffer/stream-buffer.ts:118
↓ 9 callersFunctionparseBaseProps
(spNode: SafeXmlNode)
packages/@openmaic/importer/src/model/nodes/BaseNode.ts:144
↓ 9 callersFunctionpatchHtmlForIframe
(html: string)
lib/utils/iframe.ts:110
↓ 9 callersFunctionplanRegenerateApply
( details: RegenerateDetails, scene: Pick<Scene, 'content' | 'actions'> | null, toolName?: string, )
lib/agent/client/apply-regenerate.ts:93
↓ 9 callersFunctionpostProxy
(body: Record<string, unknown>)
tests/api/proxy-media.test.ts:15
↓ 9 callersFunctionpushPoint
(x: number, y: number)
packages/@openmaic/importer/src/openmaic/utils/svgPathParser.ts:40
↓ 9 callersFunctionrenderTxBodyHtml
( innerXml: string, placeholder?: PlaceholderInfo, options?: RenderTextBodyOptions, )
packages/@openmaic/importer/test/helpers.ts:73
↓ 9 callersFunctionscenarioProject
()
tests/pbl/v2/instructor.test.ts:845
↓ 9 callersFunctionscenarioProject
(overrides?: Partial<PBLProjectV2>)
tests/pbl/v2/planner.test.ts:308
↓ 9 callersFunctionsetNoProxy
(value: string | undefined)
tests/server/proxy-fetch.test.ts:9
↓ 9 callersFunctionsettleReject
(reject: (reason?: unknown) => void, reason: unknown)
lib/audio/browser-tts-preview.ts:128
↓ 9 callersFunctionshouldShowStreamingDraft
({ streaming, instructorStreaming, draftAssistant, streamCommittedOutput, hasExternalDraft = false,
components/scene-renderers/pbl/v2/chat.tsx:1359
↓ 9 callersFunctionstartMicrotask
(project: PBLProjectV2, microtaskId: string)
lib/pbl/v2/operations/progress.ts:343
↓ 9 callersFunctionthread
(text: string)
tests/lib/agent/client/agent-thread-store.test.ts:4
↓ 9 callersFunctionuseHistorySnapshot
()
lib/hooks/use-history-snapshot.ts:19
↓ 8 callersFunctionaddMark
( editorView: EditorView, mark: Mark, selection?: { from: number; to: number }, )
lib/prosemirror/utils.ts:15
↓ 8 callersFunctionaddX
(x: number)
packages/@openmaic/renderer/src/elements/shape/BaseShapeElement.tsx:31
↓ 8 callersFunctionaddY
(y: number)
packages/@openmaic/renderer/src/elements/shape/BaseShapeElement.tsx:35
↓ 8 callersFunctionagent
(voiceConfig?: AgentConfig['voiceConfig'])
tests/audio/voice-resolver-enablement.test.ts:18
↓ 8 callersFunctionalignedAdsorption
(currentX: number | null, currentY: number | null)
components/slide-renderer/Editor/Canvas/hooks/useScaleElement.ts:259
↓ 8 callersFunctionbraceArcPoly
* 把一段圆/椭圆弧采样成折线(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 callersFunctionbuildOutlinePrompt
( flags: { hasSourceImages?: boolean; imageEnabled?: boolean; videoEnabled?: boolean; }, pro
tests/prompts/media-conditional.test.ts:5
↓ 8 callersFunctionbuildQuizHints
( content: QuizContent, t: (k: string, o?: Record<string, unknown>) => string, )
components/edit/surfaces/quiz/use-quiz-surface.ts:117
↓ 8 callersFunctionbuildScenarioDesignBlock
( pblConfig: NonNullable<PBLPlannerV2Input['outline']['pblConfig']>, scenarioRoleplay: boolean, )
lib/pbl/v2/agents/planner.ts:345
↓ 8 callersFunctionbuildSimulatorSystemPrompt
( project: PBLProjectV2, milestone: PBLMilestone, microtask: PBLMicrotask | undefined, )
lib/pbl/v2/agents/simulator.ts:123
↓ 8 callersFunctionbuildTaskEvalPrompt
( project: PBLProjectV2, milestone: PBLMilestone, task: PBLMicrotask, opts: { recentChatSummary?: stri
lib/pbl/v2/operations/eval-prompts.ts:61
↓ 8 callersFunctioncontentOf
(c: Chunk)
tests/ai/reasoning-sse.test.ts:31
↓ 8 callersFunctioncontinueAfterHandover
(project: PBLProjectV2)
lib/pbl/v2/operations/progress.ts:553
↓ 8 callersFunctioncreatePartMapper
( partial: AssistantMessage, push: (event: AssistantMessageEvent) => void, )
lib/agent/runtime/stream-fn.ts:127
↓ 8 callersFunctioncreateRunDir
(baseDir: string, model: string)
eval/shared/run-dir.ts:10
↓ 8 callersFunctiondefaultModeForCapability
(thinking: ThinkingCapability)
lib/ai/thinking-config.ts:99
↓ 8 callersFunctionderiveEditFailed
(args: { running: boolean; stopped: boolean; isError: boolean; result?: EditInteractiveHtmlResult | nu
components/edit/AgentPanel/edit-tool-state.ts:40
↓ 8 callersFunctionenc
(s: string)
tests/export/inline-assets-importmap.test.ts:4
↓ 8 callersFunctionev
(id: string, createdAt: string, kind: PBLEvaluation['kind'] = 'task')
tests/pbl/v2/chat-timeline.test.ts:32
↓ 8 callersFunctionfindStyleAtLevel
* 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 callersFunctiongenerateWithLemonadeImage
( config: ImageGenerationConfig, options: ImageGenerationOptions, )
lib/media/adapters/lemonade-image-adapter.ts:50
↓ 8 callersFunctiongradeChoiceQuestions
( questions: QuizQuestion[], answers: Record<string, string | string[]>, )
lib/quiz/grading.ts:34
↓ 8 callersFunctionhasStartedProject
(project: PBLProjectV2)
lib/pbl/v2/operations/progress.ts:139
↓ 8 callersFunctionhumanMsg
(content: string)
tests/orchestration/conversation-summary.test.ts:15
↓ 8 callersFunctionisCustomASRProvider
(id: string)
lib/audio/types.ts:197
↓ 8 callersFunctionisMaicEditorEnabled
()
lib/config/feature-flags.ts:20
↓ 8 callersFunctionmakeProject
()
tests/pbl/v2/advance-patch.test.ts:11
↓ 8 callersFunctionmakeRegenerateSceneActionsTool
( deps: RegenerateActionsDeps, )
lib/agent/tools/regenerate-scene-actions.ts:163
↓ 8 callersFunctionmakeSlideScene
(id: string, order: number, stageId = 'stage-1')
tests/store/stage-insert-scene-after.test.ts:26
↓ 8 callersFunctionmatchesVoiceQuery
(value: string | undefined, query: string)
components/agent/agent-bar.tsx:31
↓ 8 callersFunctionmicrotaskEngagement
( project: PBLProjectV2, microtaskId: string, )
lib/pbl/v2/operations/engagement.ts:67
↓ 8 callersFunctionmove
(actions: Action[], from: number, to: number)
components/edit/ActionsBar/actions-edit.ts:83
↓ 8 callersFunctionmoveByIdDir
(actions: Action[], id: string, dir: number)
components/edit/ActionsBar/actions-edit.ts:140
↓ 8 callersFunctionnewId
(prefix: string)
lib/pbl/v2/agents/planner.ts:419
← previousnext →201–300 of 4,064, ranked by callers