MCPcopy Create free account

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

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

↓ 1 callersFunctionclearProviderEnv
()
tests/server/provider-config.test.ts:55
↓ 1 callersFunctioncloneElement
(element: PPTElement)
lib/edit/slide-ops.ts:302
↓ 1 callersFunctioncloneSlideContent
(content: SlideContent)
lib/edit/slide-ops.ts:298
↓ 1 callersFunctioncloseCapture
()
eval/whiteboard-layout/capture.ts:60
↓ 1 callersFunctioncodeRule
()
lib/prosemirror/plugins/inputrules.ts:23
↓ 1 callersFunctioncodeToLines
Convert raw code string to CodeLine array with unique IDs
lib/action/engine.ts:59
↓ 1 callersFunctioncollectAudioFiles
(scenes: Scene[])
lib/export/classroom-zip-utils.ts:20
↓ 1 callersFunctioncollectDisabledTTS
* Collect TTS provider IDs the operator force-disabled, from YAML * (`tts.<id>.enabled: false`) and env (`TTS_<PREFIX>_ENABLED=false`). An * explici
lib/server/provider-config.ts:240
↓ 1 callersFunctioncollectLeafKeys
(value, fileName, keyPath = '', keys = new Set())
scripts/check-i18n-keys.mjs:15
↓ 1 callersFunctioncollectMathPlainText
Concatenate all `m:t` text inside an OMML node (plain-text fallback).
packages/@openmaic/importer/src/model/nodes/ShapeNode.ts:91
↓ 1 callersFunctioncollectMediaFiles
(stageId: string)
lib/export/classroom-zip-utils.ts:40
↓ 1 callersFunctioncollectOmml
Collect every OMML string from a slide's top-level nodes (standalone math * elements + inline math runs inside text shapes). Group children are raw
packages/@openmaic/importer/src/adapter/toPptxtojson.ts:36
↓ 1 callersFunctioncollectOmmlNodes
* Collect every top-level OMML node (one per paragraph's formula). Stops * descending once it hits an oMathPara/oMath so a paragraph's container is
packages/@openmaic/importer/src/model/nodes/MathNode.ts:56
↓ 1 callersFunctioncollectUniqueConcepts
(project: PBLProjectV2)
lib/pbl/v2/operations/completion-stats.ts:370
↓ 1 callersFunctioncombined
(prompt: { system: string; user: string } | null)
tests/prompts/procedural-skill-content-quality-contract.test.ts:7
↓ 1 callersFunctioncommitName
()
components/user-profile.tsx:53
↓ 1 callersFunctioncommitName
()
app/page.tsx:955
↓ 1 callersFunctioncommittedMessages
(events: PBLSSEEvent[])
tests/pbl/v2/instructor-empty-output.test.ts:114
↓ 1 callersFunctioncompactSummary
(summary: string)
lib/pbl/v2/agents/instructor-memory.ts:131
↓ 1 callersFunctioncompatInstructorAgent
(name: string)
lib/pbl/v2/compat.ts:160
↓ 1 callersFunctioncompletabilityJudgeTemplate
()
eval/pbl-v2-planner/runner.ts:378
↓ 1 callersFunctioncomputeArcCenter
* Compute the center of an SVG arc given endpoints and radii. * Simplified: works well for circular arcs and reasonable ellipses.
packages/@openmaic/importer/src/serializer/shapeSerializer.ts:306
↓ 1 callersFunctioncomputeAutoFit
(textBody: TextBody | undefined)
packages/@openmaic/importer/src/serializer/shapeSerializer.ts:701
↓ 1 callersFunctioncomputePlaybackView
(raw: PlaybackRawState)
lib/playback/derived-state.ts:77
↓ 1 callersFunctioncomputeRevealSteps
(content: string)
packages/@openmaic/renderer/src/elements/code/BaseCodeElement.tsx:92
↓ 1 callersFunctioncomputeRevealSteps
(content: string)
components/slide-renderer/components/element/CodeElement/BaseCodeElement.tsx:97
↓ 1 callersFunctioncomputeScenarioStats
SCENARIO ONLY. Roll up role-play skill metrics: act counts + turns/time from * the engagement caches, the cast + caption, and the per-act goal cover
lib/pbl/v2/operations/completion-stats.ts:296
↓ 1 callersFunctioncomputeStandardStats
(project: PBLProjectV2)
lib/pbl/v2/operations/completion-stats.ts:131
↓ 1 callersFunctioncondition
(a)
packages/@openmaic/importer/src1/shapePath.js:73
↓ 1 callersFunctionconfirmDelete
(id: string)
app/page.tsx:241
↓ 1 callersMethodconfirmDiscussion
User clicks "Join" on ProactiveCard → save cursor → live
lib/playback/engine.ts:256
↓ 1 callersFunctioncontextmenus
()
components/slide-renderer/Editor/Canvas/EditableElement.tsx:85
↓ 1 callersFunctioncontextmenus
()
components/slide-renderer/Editor/Canvas/index.tsx:176
↓ 1 callersMethodcontinuePlayback
idle → playing (continue from current position, e.g. after discussion end)
lib/playback/engine.ts:138
↓ 1 callersFunctionconvertBlobUrlToDataUrl
(url: string)
components/ai-elements/prompt-input.tsx:648
↓ 1 callersFunctionconvertInteractiveConfigToWidget
* Convert legacy interactiveConfig to unified widget fields * For backward compatibility with old classrooms
lib/generation/scene-generator.ts:207
↓ 1 callersFunctionconvertLatexDelimiters
* Convert LaTeX delimiters while protecting <script> tags. * * - Protects script blocks from modification * - Converts $$...$$ to \[...\] (display
lib/generation/interactive-post-processor.ts:36
↓ 1 callersFunctioncopyElement
()
lib/hooks/use-canvas-operations.ts:182
↓ 1 callersFunctioncountEvidenceEvents
Count concept_unlocked events vs. closing_check + stage_synthesis_check * events so we can compute the independence rate.
lib/pbl/v2/operations/completion-stats.ts:384
↓ 1 callersFunctioncountOccurrences
(content: string, oldText: string)
lib/edit/html-edit.ts:220
↓ 1 callersFunctioncreateAudioPlayer
()
lib/utils/audio-player.ts:210
↓ 1 callersFunctioncreateCallLlmStreamFn
(opts: CallLlmStreamFnOptions)
lib/agent/runtime/stream-fn.ts:209
↓ 1 callersFunctioncreateCanvasAPI
(store: StageStore)
lib/api/stage-api-canvas.ts:21
↓ 1 callersFunctioncreateClassroomGenerationJob
( jobId: string, input: GenerateClassroomInput, )
lib/server/classroom-job-store.ts:100
↓ 1 callersFunctioncreateConcurrencyLimiter
(limit: number)
packages/@openmaic/importer/src/import-pipeline/transformParsedToSlides.ts:44
↓ 1 callersFunctioncreateDefaultInteractiveContent
()
lib/api/stage-api-defaults.ts:87
↓ 1 callersFunctioncreateDefaultPBLContent
()
lib/api/stage-api-defaults.ts:97
↓ 1 callersFunctioncreateDefaultQuizContent
()
lib/api/stage-api-defaults.ts:77
↓ 1 callersFunctioncreateDefaultSlideContent
()
lib/api/stage-api-defaults.ts:45
↓ 1 callersFunctioncreateElementAPI
(store: StageStore)
lib/api/stage-api-element.ts:19
↓ 1 callersFunctioncreateElementIdMap
(elements: PPTElement[])
lib/utils/element.ts:193
↓ 1 callersFunctioncreateGlowElement
(options: TextGlowProps, defaults: TextGlowProps)
packages/pptxgenjs/src/gen-utils.ts:169
↓ 1 callersFunctioncreateInMemoryStore
(stage: Stage)
lib/server/classroom-generation.ts:80
↓ 1 callersMethodcreateIssue
(params: { title: string; description: string; person_in_charge: string; participants?: string
lib/pbl/mcp/issueboard-mcp.ts:53
↓ 1 callersMethodcreateIssueboard
()
lib/pbl/mcp/issueboard-mcp.ts:27
↓ 1 callersFunctioncreateJudgeModel
Judge model. Defaults to the generation model unless EVAL_PBL_JUDGE_MODEL * is set (recommended: a strong, independent model so a weak generator doe
eval/pbl-v2-planner/runner.ts:216
↓ 1 callersFunctioncreateMockSceneActionsResponse
(stageId: string)
e2e/fixtures/test-data/scene-actions.ts:4
↓ 1 callersFunctioncreateModeAPI
(store: StageStore)
lib/api/stage-api-mode.ts:16
↓ 1 callersFunctioncreateModel
()
eval/pbl-v2-planner/runner.ts:202
↓ 1 callersFunctioncreateNavigationAPI
(store: StageStore)
lib/api/stage-api-navigation.ts:18
↓ 1 callersFunctioncreateOrchestrationGraph
()
lib/orchestration/director-graph.ts:484
↓ 1 callersFunctioncreatePdfBackedDocumentExtractor
(id: PDFProviderId)
lib/document/extractors/pdf.ts:30
↓ 1 callersFunctioncreateRenderContext
( presentation: PresentationData, slide: SlideData, mediaUrlCache?: Map<string, string>, mediaMode: Me
packages/@openmaic/importer/src/serializer/RenderContext.ts:41
↓ 1 callersFunctioncreateSceneAPI
(store: StageStore)
lib/api/stage-api-scene.ts:17
↓ 1 callersFunctioncreateSelection
(e: React.MouseEvent)
components/slide-renderer/Editor/Canvas/ElementCreateSelection.tsx:28
↓ 1 callersFunctioncreateSemaphore
A FIFO counting semaphore: at most `size` `run()` callbacks execute at once.
lib/utils/concurrency.ts:2
↓ 1 callersFunctioncreateStageMetaAPI
(store: StageStore)
lib/api/stage-api-mode.ts:54
↓ 1 callersFunctioncreateThinkingConfig
()
eval/pbl-v2-planner/runner.ts:229
↓ 1 callersFunctioncreateWhiteboardAPI
(store: StageStore)
lib/api/stage-api-whiteboard.ts:19
↓ 1 callersFunctioncurrent
* Get the current scene * * @returns Current scene
lib/api/stage-api-navigation.ts:101
↓ 1 callersFunctioncurrentMicrotaskId
(project: PBLProjectV2)
components/scene-renderers/pbl/v2/chat.tsx:99
↓ 1 callersFunctioncustomShapeXml
(spPrInner: string)
packages/@openmaic/importer/test/shapeSerializer.grpFill.test.ts:24
↓ 1 callersFunctiondashArrayForKind
(dashKind: string, strokeWidthPx: number)
packages/@openmaic/importer/src/serializer/borderMapper.ts:16
↓ 1 callersFunctiondashKindToBorderType
(dashKind: string)
packages/@openmaic/importer/src/serializer/tableSerializer.ts:37
↓ 1 callersFunctiondashKindToBorderType
* Map OOXML dash kind to types.Border.borderType.
packages/@openmaic/importer/src/serializer/borderMapper.ts:43
↓ 1 callersFunctiondataUrlToBlob
(dataUrl: string)
packages/@openmaic/importer/src/import-pipeline/index.ts:118
↓ 1 callersFunctiondeg2rot
(deg: number)
tests/edit/round-trip/geometry.test.ts:42
↓ 1 callersFunctiondelay
(ms: number)
components/scene-renderers/pbl/v2/submission.tsx:160
↓ 1 callersFunctiondelay
(ms: number)
lib/media/adapters/veo-adapter.ts:36
↓ 1 callersFunctiondelay
(ms: number)
lib/media/adapters/happyhorse-adapter.ts:58
↓ 1 callersFunctiondelay
(ms: number)
lib/media/adapters/grok-video-adapter.ts:29
↓ 1 callersFunctiondeleteChatSessions
(stageId: string)
lib/utils/chat-storage.ts:79
↓ 1 callersFunctiondeleteElement
* Delete a whiteboard element * * @param elementId - Element ID * @param whiteboardId - Whiteboard ID * @returns Whether successfu
lib/api/stage-api-whiteboard.ts:187
↓ 1 callersMethoddeleteIssue
(issueId: string)
lib/pbl/mcp/issueboard-mcp.ts:185
↓ 1 callersFunctiondeleteQuizOption
(id: string, index: number)
components/edit/surfaces/quiz/use-quiz-surface.ts:79
↓ 1 callersFunctiondeleteQuizQuestion
(id: string)
components/edit/surfaces/quiz/use-quiz-surface.ts:61
↓ 1 callersFunctiondeleteStageData
(stageId: string)
lib/utils/stage-storage.ts:122
↓ 1 callersFunctiondescribeAssessment
(assessment: PBLProficiencyAssessment)
lib/pbl/v2/operations/proficiency.ts:877
↓ 1 callersFunctiondetectArrowsFromPath
(path: string)
packages/@openmaic/importer/src/import-pipeline/transformParsedToSlides.ts:170
↓ 1 callersFunctiondetectLegacyLanguage
(config: PBLProjectConfig)
lib/pbl/v2/compat.ts:270
↓ 1 callersFunctiondetectLineEnding
(content: string)
lib/edit/html-edit.ts:43
↓ 1 callersFunctiondetectLineOrientation
* 解析 SVG path 中的所有 (x,y) 坐标,判定该 path 是水平直线、垂直直线还是其它。 * 仅用于识别 line / straightConnector1 这类单段线段。
packages/@openmaic/importer/src/serializer/groupSerializer.ts:39
↓ 1 callersFunctiondetectUnit
(value: number)
packages/@openmaic/importer/src/parser/units.ts:46
↓ 1 callersFunctiondetectWavBuffer
(buffer: Buffer)
lib/audio/asr-providers.ts:273
↓ 1 callersFunctiondetectWavBytes
(bytes: Uint8Array)
lib/audio/asr-providers.ts:281
↓ 1 callersFunctiondetectWps
* Detect WPS (Kingsoft Office / WPS Office) by checking for known markers * in the presentation XML string.
packages/@openmaic/importer/src/model/Presentation.ts:70
↓ 1 callersFunctiondiamondArrowPath
* Build a diamond arrowhead at `tip`.
packages/@openmaic/importer/src/serializer/shapeSerializer.ts:185
↓ 1 callersFunctiondifficultyAdjustAck
* Neutral, TIER-AGNOSTIC acknowledgment committed when the learner asked to * change difficulty (the model called `adjust_difficulty`) but wrote no t
lib/pbl/v2/agents/instructor.ts:1259
↓ 1 callersFunctiondigestOlderHalf
Produce a structural digest from the older half of the thread.
lib/pbl/v2/agents/instructor-memory.ts:66
↓ 1 callersFunctiondiscardSpeechAudio
( sceneOrder: number, action: { id?: string; audioId?: string }, )
lib/audio/regenerate-speech-tts.ts:65
← previousnext →1,701–1,800 of 4,064, ranked by callers