fix: comment out gitlab for now

This commit is contained in:
Aiden Cline
2026-03-24 15:35:30 -05:00
parent 6701b651d9
commit b85c0b8625

View File

@@ -180,31 +180,32 @@ export namespace LLM {
// Wire up toolExecutor for DWS workflow models so that tool calls
// from the workflow service are executed via opencode's tool system
// and results sent back over the WebSocket.
if (language instanceof GitLabWorkflowLanguageModel) {
const workflowModel = language
workflowModel.systemPrompt = system.join("\n")
workflowModel.toolExecutor = async (toolName, argsJson, _requestID) => {
const t = tools[toolName]
if (!t || !t.execute) {
return { result: "", error: `Unknown tool: ${toolName}` }
}
try {
const result = await t.execute!(JSON.parse(argsJson), {
toolCallId: _requestID,
messages: input.messages,
abortSignal: input.abort,
})
const output = typeof result === "string" ? result : (result?.output ?? JSON.stringify(result))
return {
result: output,
metadata: typeof result === "object" ? result?.metadata : undefined,
title: typeof result === "object" ? result?.title : undefined,
}
} catch (e: any) {
return { result: "", error: e.message ?? String(e) }
}
}
}
// TODO: fix this once v6 is ready
// if (language instanceof GitLabWorkflowLanguageModel) {
// const workflowModel = language
// workflowModel.systemPrompt = system.join("\n")
// workflowModel.toolExecutor = async (toolName, argsJson, _requestID) => {
// const t = tools[toolName]
// if (!t || !t.execute) {
// return { result: "", error: `Unknown tool: ${toolName}` }
// }
// try {
// const result = await t.execute!(JSON.parse(argsJson), {
// toolCallId: _requestID,
// messages: input.messages,
// abortSignal: input.abort,
// })
// const output = typeof result === "string" ? result : (result?.output ?? JSON.stringify(result))
// return {
// result: output,
// metadata: typeof result === "object" ? result?.metadata : undefined,
// title: typeof result === "object" ? result?.title : undefined,
// }
// } catch (e: any) {
// return { result: "", error: e.message ?? String(e) }
// }
// }
// }
return streamText({
onError(error) {