MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / applyComposerModeSettings

Function applyComposerModeSettings

desktop/runtime/composer-service.ts:111–121  ·  view source on GitHub ↗
(runtime: PiRuntime, request: ComposerStateRequest)

Source from the content-addressed store, hash-verified

109}
110
111async function applyComposerModeSettings(runtime: PiRuntime, request: ComposerStateRequest) {
112 const selectedModel = (await selectRequestedComposerModel(runtime, request)) ?? null
113 if (selectedModel && selectedModel !== runtime.session.model)
114 await runtime.session.setModel(selectedModel)
115 const thinkingLevel = await getRequestedComposerThinkingLevel(runtime, request)
116 if (thinkingLevel) {
117 runtime.session.setThinkingLevel(
118 clampThinkingLevel(thinkingLevel, getAvailableThinkingLevelsForModel(selectedModel ?? null)),
119 )
120 }
121}
122async function promptAndReturnAfterPreflight({
123 runtime,
124 message,

Callers 3

getComposerStateFunction · 0.70
sendComposerPromptFunction · 0.70
openThreadRuntimeFunction · 0.70

Tested by

no test coverage detected