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
↓ 8 callers
Function
parseShapeNode
(spNode: SafeXmlNode)
packages/@openmaic/importer/src/model/nodes/ShapeNode.ts:247
↓ 8 callers
Function
pct
(rate: number)
eval/orchestration/reporter.ts:6
↓ 8 callers
Function
persistSession
(nextSession: GenerationSessionState)
app/generation-preview/page.tsx:94
↓ 8 callers
Function
proxyFetch
(input: string | URL, init?: RequestInit)
lib/server/proxy-fetch.ts:114
↓ 8 callers
Function
pxToPt
(px: number)
packages/@openmaic/importer/src/serializer/groupSerializer.ts:27
↓ 8 callers
Function
readSubmittedState
(sceneId: string)
lib/quiz/persistence.ts:62
↓ 8 callers
Method
removeItem
(k: string)
tests/edit/edit-mode-lock.test.ts:24
↓ 8 callers
Function
resolveAgentVoiceOptions
( agent: AgentConfig | undefined, opts: AgentVoiceResolveOptions, )
lib/audio/agent-voice.ts:75
↓ 8 callers
Function
resolveApiKey
(providerId: string, clientKey?: string)
lib/server/provider-config.ts:403
↓ 8 callers
Function
resolveImageSrc
( elementInfo: PPTImageElement, stageId: string | undefined, task: MediaTask | undefined, )
components/slide-renderer/components/element/ImageElement/useResolvedImageSrc.ts:33
↓ 8 callers
Function
selectElement
(id: string)
lib/hooks/use-canvas-operations.ts:269
↓ 8 callers
Function
serializeThread
( messages: ThreadMessageLike[], /** Final reasoning durations: (messageId, reasoningOrdinal) → ms. Lets t
lib/agent/client/serialize-thread.ts:118
↓ 8 callers
Method
setupGenerationMocks
Set up API mocks for the generation flow. Note: server-providers is already mocked by the base fixture.
e2e/fixtures/mock-api.ts:81
↓ 8 callers
Function
signalFromObservation
( kind: 'error' | 'concept_unlocked' | 'struggle' | 'question', opts: { repeat?: boolean; note?: string }
lib/pbl/v2/operations/proficiency.ts:483
↓ 8 callers
Function
sizeMultiplier
Size multiplier: sm=0.5, med=1, lg=1.5
packages/@openmaic/importer/src/serializer/shapeSerializer.ts:131
↓ 8 callers
Function
stepProficiency
(tier: PBLProficiency, direction: 'up' | 'down')
lib/pbl/v2/operations/proficiency.ts:375
↓ 8 callers
Function
useContextValue
()
components/ai-elements/context.tsx:28
↓ 8 callers
Function
useElementShadow
(shadow?: PPTElementShadow)
components/slide-renderer/components/element/hooks/useElementShadow.ts:9
↓ 8 callers
Method
waitForLoaded
()
e2e/pages/classroom.page.ts:18
↓ 8 callers
Method
waitForRedirectToClassroom
()
e2e/pages/generation-preview.page.ts:37
↓ 8 callers
Function
writeSubmittedAnswers
(sceneId: string, answers: QuizAnswers)
lib/quiz/persistence.ts:106
↓ 7 callers
Function
addQuestion
( content: QuizContent, type: QuizQuestionType, id?: string, )
components/edit/surfaces/quiz/quiz-edit-ops.ts:153
↓ 7 callers
Function
aiCall
(system, user)
tests/generation/media-prompt-wiring.test.ts:10
↓ 7 callers
Function
applyHtmlEdits
(html: string, edits: Edit[], label = 'the page')
lib/edit/html-edit.ts:342
↓ 7 callers
Function
applyOutlineFallbacks
( outline: SceneOutline, hasLanguageModel: boolean, options: { allowProceduralSkill?: boolean } = {}, )
lib/generation/outline-generator.ts:204
↓ 7 callers
Function
buildFallback
( config: Record< string, { isServerConfigured?: boolean;
lib/store/settings.ts:1424
↓ 7 callers
Function
buildInlinedImportmap
( originalImports: Record<string, string>, moduleScriptBodies: string[], fetchAsset: (url: string) => Pr
lib/export/inline-assets-importmap.ts:28
↓ 7 callers
Function
buildInsertItems
( t: (k: string) => string, // The currently-armed creating type, or undefined when nothing is armed. The
components/edit/surfaces/slide/use-slide-surface.ts:25
↓ 7 callers
Function
buildPriorSubmissionsBlock
( project: PBLProjectV2, activeMicrotaskId: string, opts?: { maxChars?: number; perSnippetChars?: number
lib/pbl/v2/agents/instructor.ts:250
↓ 7 callers
Function
buildProceduralSkillPrompt
()
tests/prompts/procedural-skill-content-quality-contract.test.ts:13
↓ 7 callers
Function
cleanInstructorCommitText
( text: string, opts: { nextMicrotaskTitle?: string; nextMilestoneTitle?: string; stripFinalRe
lib/pbl/v2/agents/instructor.ts:997
↓ 7 callers
Function
clearOutlineReviewTimer
()
app/generation-preview/page.tsx:99
↓ 7 callers
Function
collectModifiers
* Collect OOXML color modifier children from a color node. * Modifiers are child elements like alpha, lumMod, lumOff, tint, shade, satMod, hueMod.
packages/@openmaic/importer/src/serializer/StyleResolver.ts:44
↓ 7 callers
Function
completeRoleplayAct
( project: PBLProjectV2, reason: string, )
lib/pbl/v2/operations/progress.ts:479
↓ 7 callers
Function
compressIfNeeded
(thread: PBLAgentThread)
lib/pbl/v2/agents/instructor-memory.ts:36
↓ 7 callers
Function
computeCompletionStats
(project: PBLProjectV2)
lib/pbl/v2/operations/completion-stats.ts:123
↓ 7 callers
Function
content
(...questions: QuizQuestion[])
tests/edit/surfaces/quiz/hints.test.ts:8
↓ 7 callers
Function
convertRotationDegrees
(d: number)
packages/pptxgenjs/src/gen-utils.ts:97
↓ 7 callers
Function
createShadowElement
* Creates `a:innerShdw` or `a:outerShdw` depending on pass options `opts`. * @param {Object} opts optional shadow properties * @param {Object} defau
packages/pptxgenjs/src/gen-charts.ts:1986
↓ 7 callers
Function
defaultFill
()
packages/@openmaic/importer/src/serializer/backgroundSerializer.ts:14
↓ 7 callers
Function
duplicateSlideScene
(source: Scene, copySuffix: string, order: number)
lib/edit/slide-defaults.ts:67
↓ 7 callers
Function
editLockKey
(courseId: string)
lib/edit/edit-mode-lock.ts:33
↓ 7 callers
Function
effortCapability
( requestAdapter: ThinkingRequestAdapter, effortValues: ThinkingEffort[], defaultEffort: ThinkingEffort,
lib/ai/model-metadata.ts:14
↓ 7 callers
Function
emit
Append the engagement event and build the SSE patches for a * signal-driven update. Pure-ish: mutates `project` via the * engagement ledger (match
lib/pbl/v2/operations/dynamic-signals.ts:57
↓ 7 callers
Function
emptyPartial
()
tests/lib/agent/runtime/stream-fn.test.ts:14
↓ 7 callers
Function
fetchFromMap
(map: Record<string, { body: string; ct: string }>)
tests/export/inline-assets.test.ts:347
↓ 7 callers
Function
formatDuration
(ms: number)
eval/pbl-v2-planner/runner.ts:530
↓ 7 callers
Function
getModel
(config: ModelConfig)
lib/ai/providers.ts:1410
↓ 7 callers
Function
getPatternFill
(node, warpObj)
packages/@openmaic/importer/src1/fill.js:208
↓ 7 callers
Function
getThinkingMode
( config?: ThinkingConfig, )
lib/ai/thinking-config.ts:31
↓ 7 callers
Function
handleToggleInput
()
components/roundtable/index.tsx:369
↓ 7 callers
Function
hslToRgb
(h: number, s: number, l: number)
packages/@openmaic/importer/src/utils/color.ts:73
↓ 7 callers
Function
instructorIntroText
( role?: Pick<PBLRole, 'description'> | null, )
components/scene-renderers/pbl/v2/instructor-intro.ts:11
↓ 7 callers
Function
isActiveMark
(marks: readonly Mark[], markType: string)
lib/prosemirror/utils.ts:152
↓ 7 callers
Function
isChoice
(type: QuizQuestionType)
components/edit/surfaces/quiz/quiz-edit-ops.ts:107
↓ 7 callers
Function
isPBLProjectV2
(value: unknown)
lib/pbl/v2/types.ts:912
↓ 7 callers
Function
isStale
()
lib/audio/use-tts-preview.ts:67
↓ 7 callers
Function
isToleratedReactionStreamError
( streamStatus: StreamStatus, event: PBLSSEEvent, )
components/scene-renderers/pbl/v2/use-instructor-stream.ts:377
↓ 7 callers
Function
isWavBlob
(blob: Blob, fileName?: string)
lib/audio/wav-utils.ts:45
↓ 7 callers
Function
jumpPosition
(state: State, end: number)
lib/export/html-parser/lexer.ts:10
↓ 7 callers
Function
loadEnvSection
( envMap: Record<string, string>, yamlSection: Record<string, Partial<ServerProviderEntry>> | undefined,
lib/server/provider-config.ts:164
↓ 7 callers
Function
makeReadSceneContentTool
( deps: ReadSceneContentDeps, )
lib/agent/tools/read-scene-content.ts:184
↓ 7 callers
Function
makeRegenerateSceneTool
( deps: RegenerateActionsDeps, )
lib/agent/tools/regenerate-scene.ts:143
↓ 7 callers
Function
makeSlideContent
(overrides: Partial<SlideContent> = {})
tests/edit/slide-schema.test.ts:34
↓ 7 callers
Function
minimalPlannerProject
(overrides?: Partial<PBLProjectV2>)
tests/pbl/v2/planner.test.ts:137
↓ 7 callers
Function
modF
(x: number, y: number, z: number)
packages/@openmaic/importer/src/shapes/presets.ts:1718
↓ 7 callers
Function
normalizeOrder
(outlines: SceneOutline[])
components/generation/outlines-editor.tsx:86
↓ 7 callers
Function
normalizeVoiceDesign
(raw: unknown)
lib/audio/voice-design.ts:44
↓ 7 callers
Function
normalizeVoxCPMBackend
(value: unknown)
lib/audio/voxcpm.ts:69
↓ 7 callers
Function
ooxCos
(val: number, ang: number)
packages/@openmaic/importer/src/shapes/presets.ts:1713
↓ 7 callers
Function
ooxSin
(val: number, ang: number)
packages/@openmaic/importer/src/shapes/presets.ts:1712
↓ 7 callers
Method
open
()
components/edit/surfaces/slide/ColorPicker.tsx:25
↓ 7 callers
Function
pickNarratorAgent
(agents: AgentConfig[])
lib/audio/agent-voice.ts:49
↓ 7 callers
Method
processNext
* Core processing loop: consume the next action.
lib/playback/engine.ts:427
↓ 7 callers
Function
processNodesInSlide
(nodeKey, nodeValue, warpObj, source, groupHierarchy = [])
packages/@openmaic/importer/src1/pptxtojson.js:554
↓ 7 callers
Function
refresh
()
lib/agent/client/use-agent-runtime.ts:298
↓ 7 callers
Function
reorderSlideElement
(elementId: string, edge: 'front' | 'back')
components/edit/surfaces/slide/use-slide-surface.ts:129
↓ 7 callers
Function
resolveSectionApiKey
( section: ProviderSection, providerId: string, clientKey?: string, )
lib/server/provider-config.ts:363
↓ 7 callers
Function
resolveSectionBaseUrl
( section: ProviderSection, providerId: string, clientBaseUrl?: string, )
lib/server/provider-config.ts:373
↓ 7 callers
Function
resolveVocationalActive
( requirements?: { taskEngineMode?: boolean } | null, )
lib/config/feature-flags.ts:33
↓ 7 callers
Function
resolveWebSearchApiKey
(providerIdOrClientKey?: string, clientKey?: string)
lib/server/provider-config.ts:558
↓ 7 callers
Function
searchWeb
(params: { providerId: WebSearchProviderId; query: string; apiKey?: string; maxResults?: number; bas
lib/web-search/index.ts:11
↓ 7 callers
Function
searchWithMiniMax
(params: { query: string; apiKey: string; maxResults?: number; baseUrl?: string; })
lib/web-search/minimax.ts:61
↓ 7 callers
Function
send
( res: import('node:http').ServerResponse, code: number, type: string, body: string, )
eval/pbl-v2-planner/serve.ts:101
↓ 7 callers
Function
shouldRetier
(assessment: PBLProficiencyAssessment)
lib/pbl/v2/operations/proficiency.ts:742
↓ 7 callers
Function
signalFromSubmissionScore
(score: number)
lib/pbl/v2/operations/proficiency.ts:569
↓ 7 callers
Function
signalFromTaskSpeed
(learnerTurns: number)
lib/pbl/v2/operations/proficiency.ts:550
↓ 7 callers
Function
stageSynthesisOwed
( project: PBLProjectV2, milestone: PBLMilestone, microtask: PBLMicrotask, )
lib/pbl/v2/agents/instructor.ts:366
↓ 7 callers
Function
task
(over: Partial<MediaTask>)
tests/slide-renderer/use-resolved-image-src.test.ts:26
↓ 7 callers
Function
throwZipLimitExceeded
(reason: string)
packages/@openmaic/importer/src/parser/ZipParser.ts:43
↓ 7 callers
Function
toggleBudgetCapability
( requestAdapter: ThinkingRequestAdapter, range: { min: number; max: number; step?: number; allowDynamic?:
lib/ai/model-metadata.ts:61
↓ 7 callers
Function
toggleCorrect
(content: QuizContent, id: string, index: number)
components/edit/surfaces/quiz/quiz-edit-ops.ts:289
↓ 7 callers
Function
truncateForPrompt
(text: string | undefined, max = 260)
lib/pbl/v2/agents/instructor.ts:190
↓ 7 callers
Function
updateElement
* Update a whiteboard element * * @param element - Element object * @param whiteboardId - Whiteboard ID * @returns Whether success
lib/api/stage-api-whiteboard.ts:215
↓ 7 callers
Function
updateProjectAssessment
( project: PBLProjectV2, signal: ProficiencySignal, )
lib/pbl/v2/operations/proficiency.ts:862
↓ 7 callers
Function
wavBuffer
()
tests/audio/lemonade-asr.test.ts:7
↓ 6 callers
Function
add
* Add an element to a Slide * * @param sceneId - Scene ID * @param element - Element parameters (must include type, left, top, width, h
lib/api/stage-api-element.ts:28
↓ 6 callers
Function
addEvaluation
( project: PBLProjectV2, args: { kind: PBLEvaluationKind; microtaskId?: string; milestoneId?:
lib/pbl/v2/operations/evaluation.ts:19
↓ 6 callers
Method
addImage
* Add image to Slide * @param {ImageProps} options - image options * @return {Slide} this Slide
packages/pptxgenjs/src/slide.ts:182
↓ 6 callers
Function
agent
(id: string, voiceConfig?: AgentConfig['voiceConfig'])
tests/audio/voice-resolver-overrides.test.ts:10
← previous
next →
301–400 of 4,064, ranked by callers