MCPcopy Create free account

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

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

↓ 17 callersFunctionisProviderUsable
(cfg: ProviderCfgLike | undefined)
lib/store/settings-validation.ts:25
↓ 17 callersFunctionisTTSProviderConfigured
( providerId: TTSProviderId, config: TTSEnablementConfig | undefined, )
lib/audio/provider-enablement.ts:59
↓ 17 callersMethodpause
* Pause playback
lib/utils/audio-player.ts:100
↓ 17 callersFunctionplannerCompletionGaps
( project: PBLProjectV2, opts?: { scenarioRoleplay?: boolean }, )
lib/pbl/v2/agents/planner.ts:1028
↓ 17 callersFunctionreadXmlFile
(zip, filename)
packages/@openmaic/importer/src1/readXmlFile.js:39
↓ 17 callersFunctiontryAcquireEditLock
( courseId: string, ownTabId: string, now: number = Date.now(), )
lib/edit/edit-mode-lock.ts:75
↓ 16 callersFunctioncommit
()
components/edit/ActionsBar/ActionsBar.tsx:423
↓ 16 callersFunctiondelay
(ms: number)
lib/action/engine.ts:54
↓ 16 callersMethodgetCurrentMode
()
lib/pbl/mcp/mode-mcp.ts:32
↓ 16 callersFunctionmkOutline
(overrides: Partial<SceneOutline> = {})
tests/pbl/v2/proficiency.test.ts:47
↓ 16 callersFunctionsupportsConfigurableThinking
( thinking?: ThinkingCapability, )
lib/ai/thinking-config.ts:13
↓ 15 callersFunctioncfg
(overrides: Partial<ProviderCfgLike> = {})
tests/store/settings-validation.test.ts:69
↓ 15 callersFunctionextractChartData
(serNode)
packages/@openmaic/importer/src1/chart.js:28
↓ 15 callersFunctionfetchAsset
(url: string)
tests/export/inline-assets.test.ts:175
↓ 15 callersFunctionisServerConfiguredProvider
(section: ProviderSection, providerId: string)
lib/server/provider-config.ts:359
↓ 15 callersFunctionnormalizeThinkingConfig
( thinking: ThinkingCapability | undefined, config: ThinkingConfig | undefined, )
lib/ai/thinking-config.ts:143
↓ 15 callersFunctionnumberToFixed
(num, fractionDigits = 4)
packages/@openmaic/importer/src1/utils.js:165
↓ 15 callersMethodobserve
Fold an observation for one block; no-op if state is unchanged.
lib/agent/client/thinking-timers.ts:42
↓ 15 callersFunctionplannerInput
(overrides?: Partial<PBLPlannerV2Input>)
tests/pbl/v2/planner-single-call.test.ts:61
↓ 15 callersFunctionthrowIfTtsRateLimited
(provider: string, status: number)
lib/audio/tts-providers.ts:135
↓ 15 callersFunctionvalidateProvider
( currentId: T | '', configMap: Partial<Record<T, ProviderCfgLike>>, fallbackOrder: T[], defaultId?: T
lib/store/settings-validation.ts:41
↓ 14 callersFunctionapplyInstructorEvent
( event: PBLSSEEvent, project: PBLProjectV2, setDraft: (fn: (prev: string) => string) => void, )
components/scene-renderers/pbl/v2/apply-instructor-event.ts:29
↓ 14 callersFunctionchangeOutlineType
(outline: SceneOutline, newType: SceneType)
lib/generation/outline-type.ts:23
↓ 14 callersFunctionchunk
(delta: Record<string, unknown>, finish_reason: string | null = null)
tests/ai/reasoning-sse.test.ts:28
↓ 14 callersFunctionextractChartColors
(serNode, warpObj)
packages/@openmaic/importer/src1/chart.js:4
↓ 14 callersFunctiongetConfig
()
lib/server/provider-config.ts:333
↓ 14 callersFunctiongetCurrentModelConfig
()
lib/utils/model-config.ts:11
↓ 14 callersFunctiongetDefaultThinkingConfig
( thinking?: ThinkingCapability, )
lib/ai/thinking-config.ts:111
↓ 14 callersFunctiongetProvider
(providerId: ProviderId)
lib/ai/providers.ts:1679
↓ 14 callersFunctioninlineHtmlAssets
( html: string, options?: InlineOptions, )
lib/export/inline-assets.ts:282
↓ 14 callersFunctionisCustomTTSProvider
(id: string)
lib/audio/types.ts:192
↓ 14 callersFunctionisRetryableGenerationError
(error: unknown, seen = new Set<unknown>())
lib/generation/generation-retry.ts:129
↓ 14 callersFunctionmilestone
( id: string, order: number, status: PBLMilestone['status'], scenarioStage?: PBLMilestone['scenarioSta
tests/pbl/v2/scenario-briefing-gate.test.ts:27
↓ 14 callersFunctionmkProject
(overrides: Partial<PBLProjectV2> = {})
tests/pbl/v2/dynamic-signals.test.ts:25
↓ 14 callersFunctionnormalizeActGoals
( raw: unknown, project: PBLProjectV2, )
lib/pbl/v2/operations/completion-stats.ts:210
↓ 14 callersFunctionpush
(kind: AssetRefKind, url: string)
lib/export/inline-assets.ts:24
↓ 14 callersFunctionreadEditLock
(courseId: string)
lib/edit/edit-mode-lock.ts:37
↓ 14 callersFunctionresolveSelectedModel
( currentModelId: string, availableModels: Array<{ id: string }>, )
lib/store/settings-validation.ts:79
↓ 14 callersFunctionsummarizeConversation
( messages: OpenAIMessage[], maxMessages = 10, maxContentLength = 200, )
lib/orchestration/summarizers/conversation-summary.ts:35
↓ 14 callersFunctiontoFixed
(n: number)
packages/@openmaic/importer/src/serializer/groupSerializer.ts:31
↓ 13 callersFunctionadvanceMicrotask
( project: PBLProjectV2, microtaskId: string, reason: string, assessment: PBLInternalAssessment, )
lib/pbl/v2/operations/progress.ts:365
↓ 13 callersFunctionapplyColorModifiers
( hex: string, modifiers: ColorModifier[], )
packages/@openmaic/importer/src/utils/color.ts:255
↓ 13 callersFunctionarcSeg
( curX: number, curY: number, wR: number, hR: number, stDeg: number, swDeg: number,
packages/@openmaic/importer/src/shapes/presets.ts:4868
↓ 13 callersFunctionarcTo
( curX: number, curY: number, wR: number, hR: number, stAng60k: number, swAng60k: numb
packages/@openmaic/importer/src/shapes/presets.ts:2478
↓ 13 callersFunctionclone
(content: SlideContent)
tests/edit/scene-edit-bridge.test.ts:34
↓ 13 callersFunctioncombined
(prompt: { system: string; user: string } | null)
tests/prompts/media-conditional.test.ts:52
↓ 13 callersFunctiongenXmlColorSelection
(props: Color | ShapeFillProps | ShapeLineProps)
packages/pptxgenjs/src/gen-utils.ts:188
↓ 13 callersFunctionisMediaPlaceholder
(src: string)
lib/store/media-generation.ts:67
↓ 13 callersFunctionloadPBLV2Prompt
(name: string, variables: Record<string, unknown> = {})
lib/pbl/v2/prompts/loader.ts:40
↓ 13 callersFunctionmakeContent
()
tests/edit/slide-edit-session.test.ts:23
↓ 13 callersFunctionmakeStage
()
tests/store/stage-generation-complete.test.ts:27
↓ 13 callersFunctionnormalizeScenario
(project: PBLProjectV2)
lib/pbl/v2/operations/progress.ts:247
↓ 13 callersFunctionparseEvaluationTail
(text: string)
lib/pbl/v2/operations/eval-tail-parser.ts:56
↓ 13 callersFunctionreadParenArgs
* Read a parenthesized argument list: (arg1,arg2,...). * Handles nested parentheses and EQ sub-commands. * Uses full-width comma (,) as separator in
packages/@openmaic/importer/src/utils/eqFieldParser.ts:281
↓ 13 callersFunctionresolveModelFromRequest
( req: NextRequest, body: unknown, stage?: LlmStage, )
lib/server/resolve-model.ts:165
↓ 13 callersFunctionrun
(fn: () => Promise<R>)
lib/utils/concurrency.ts:16
↓ 13 callersFunctionscenarioProject
()
tests/pbl/v2/simulator.test.ts:38
↓ 13 callersMethodsetMode
(mode: EngineMode)
lib/playback/engine.ts:389
↓ 13 callersFunctionvalidOutput
A valid, on-topic project JSON the LLM might emit.
tests/pbl/v2/planner-single-call.test.ts:77
↓ 13 callersFunctionwrite
(chunk: StatelessEvent)
lib/orchestration/director-graph.ts:108
↓ 12 callersFunctionanalyzeBio
(bio: string | undefined | null)
lib/pbl/v2/operations/proficiency.ts:296
↓ 12 callersFunctionarc
( cx: number, cy: number, rx: number, ry: number, startDeg: number, endDeg: number,
packages/@openmaic/importer/src/shapes/presets.ts:1438
↓ 12 callersFunctionautoSelectAll
(view: EditorView)
lib/prosemirror/utils.ts:10
↓ 12 callersFunctioncollectAssetRefs
(html: string)
lib/export/inline-assets.ts:22
↓ 12 callersFunctioncolorToCss
* Convert a resolved color + alpha into a CSS rgba() string.
packages/@openmaic/importer/src/serializer/StyleResolver.ts:207
↓ 12 callersFunctioncreateSettingsStorage
(overrides: Record<string, unknown> = {})
e2e/fixtures/test-data/settings.ts:2
↓ 12 callersFunctiongenerateSceneActions
( outline: SceneOutline, content: | GeneratedSlideContent | GeneratedQuizContent | GeneratedIn
lib/generation/scene-generator.ts:1334
↓ 12 callersFunctiongetScene
(scenes: Scene[], sceneId: string)
lib/api/stage-api-defaults.ts:38
↓ 12 callersFunctioninlineCssUrls
( css: string, cssUrl: string, fetchAsset: FetchAsset, )
lib/export/inline-assets.ts:158
↓ 12 callersFunctionisValidTextFile
(file: File)
lib/pbl/v2/operations/file-validation.ts:85
↓ 12 callersFunctionmakeContent
* The slide renderer commits geometry edits by handing the surface a whole * post-edit SlideContent (via the scene-context bridge). `deriveSlideEditO
tests/edit/scene-edit-bridge.test.ts:28
↓ 12 callersFunctionmergeAssistantParts
({ turns, toolResults, error }: MergeInput)
lib/agent/client/merge-assistant-parts.ts:39
↓ 12 callersFunctionms
(id: string, order: number, extra: Partial<PBLMilestone> = {})
tests/pbl/v2/planner.test.ts:535
↓ 12 callersFunctionmsg
(id: string, ts: string, content = 'x')
tests/pbl/v2/chat-timeline.test.ts:23
↓ 12 callersMethodonLiveSpeech
* Unified speech feed for the Roundtable bubble. * Reports only the CURRENT segment text (resets on action / agent switch). * Called with (null,
lib/buffer/stream-buffer.ts:111
↓ 12 callersMethodplay
* Play audio (from URL or IndexedDB pre-generated cache) * @param audioId Audio ID * @param audioUrl Optional server-generated audio URL (takes
lib/utils/audio-player.ts:30
↓ 12 callersFunctionpxToPt
(px: number)
packages/@openmaic/importer/src/serializer/shapeSerializer.ts:37
↓ 12 callersFunctionrestoreAgentSelection
(params: { persisted: AgentSelection; persistedIsUserSet: boolean; generatedAgentIds: string[]; stageA
lib/orchestration/registry/agent-selection.ts:27
↓ 12 callersFunctionrgbToHex
(r: number, g: number, b: number)
packages/@openmaic/importer/src/utils/color.ts:33
↓ 12 callersFunctionuseSceneSelector
(selector: (data: T) => R)
lib/contexts/scene-context.tsx:170
↓ 12 callersMethodwrite
* Export the current Presentation as JSZip content with the selected type * @param {WriteProps} props output properties * @returns {Promise<string
packages/pptxgenjs/src/pptxgen.ts:585
↓ 11 callersFunctionbuildScaffoldStateLine
( summary: PBLEngagementSummary, opts: { tier: PBLProficiency; submissionCount: number; suppressVerdict?:
lib/pbl/v2/agents/instructor.ts:455
↓ 11 callersFunctionbuildScenarioAwarenessBlock
(args: { project: PBLProjectV2; milestone: PBLMilestone; phase: InstructorPhase; })
lib/pbl/v2/agents/instructor.ts:683
↓ 11 callersFunctionconvertArg
Recursively convert a sub-expression that may itself contain EQ commands.
packages/@openmaic/importer/src/utils/eqFieldParser.ts:323
↓ 11 callersFunctioncreateDefaultImageElement
(id: string, src: string)
lib/edit/slide-edit-elements.ts:83
↓ 11 callersFunctioncurrentMicrotask
( project: PBLProjectV2, )
lib/pbl/v2/operations/progress.ts:49
↓ 11 callersFunctionfile
(name: string, type = '')
tests/pbl/v2/file-validation.test.ts:9
↓ 11 callersFunctiongetStageRoute
(stage?: string)
lib/server/model-routes.ts:201
↓ 11 callersFunctionhasUsableLLMProvider
( providersConfig: Record<string, LLMProviderCfgLike> | undefined | null, )
lib/store/settings-validation.ts:124
↓ 11 callersFunctionmakeSlideFixture
()
tests/edit/round-trip/fixtures.ts:10
↓ 11 callersFunctionmergeRunProps
(target: MergedRunStyle, rPr: SafeXmlNode, ctx: RenderContext)
packages/@openmaic/importer/src/serializer/textSerializer.ts:500
↓ 11 callersFunctionnormalizeOptionalString
(raw: unknown)
lib/pbl/v2/operations/eval-tail-parser.ts:238
↓ 11 callersFunctionnormalizeStringList
(raw: unknown, max = 8)
lib/pbl/v2/operations/eval-tail-parser.ts:223
↓ 11 callersFunctiononError
(message: string)
components/chat/use-chat-sessions.ts:398
↓ 11 callersFunctionpromptText
(value: unknown, maxLength = 700)
lib/pbl/v2/operations/eval-prompts.ts:317
↓ 11 callersFunctionresolveColorToCss
(node: SafeXmlNode, ctx: RenderContext)
packages/@openmaic/importer/src/serializer/StyleResolver.ts:199
↓ 11 callersFunctionrpProjectWithGoals
()
tests/pbl/v2/completion-stats.test.ts:689
↓ 11 callersFunctionstandardStats
Compute stats and assert the STANDARD variant, returning it narrowed so the * knowledge-project tests below can read standard-only fields directly.
tests/pbl/v2/completion-stats.test.ts:33
↓ 11 callersMethodstart
()
components/ai-elements/prompt-input.tsx:986
↓ 11 callersFunctionstripEvaluationTail
(text: string)
lib/pbl/v2/operations/eval-tail-parser.ts:114
← previousnext →101–200 of 4,064, ranked by callers