fix(delegate-task): update test category references from deep to quick
🤖 Generated with assistance of OhMyOpenCode
This commit is contained in:
@@ -124,7 +124,7 @@ describe("resolveCategoryExecution", () => {
|
|||||||
})
|
})
|
||||||
const agentsSpy = spyOn(connectedProvidersCache, "readConnectedProvidersCache").mockReturnValue(["openai"])
|
const agentsSpy = spyOn(connectedProvidersCache, "readConnectedProvidersCache").mockReturnValue(["openai"])
|
||||||
const args = {
|
const args = {
|
||||||
category: "deep",
|
category: "quick",
|
||||||
prompt: "test prompt",
|
prompt: "test prompt",
|
||||||
description: "Test task",
|
description: "Test task",
|
||||||
run_in_background: false,
|
run_in_background: false,
|
||||||
@@ -134,7 +134,7 @@ describe("resolveCategoryExecution", () => {
|
|||||||
}
|
}
|
||||||
const executorCtx = createMockExecutorContext()
|
const executorCtx = createMockExecutorContext()
|
||||||
executorCtx.userCategories = {
|
executorCtx.userCategories = {
|
||||||
deep: {
|
quick: {
|
||||||
fallback_models: [
|
fallback_models: [
|
||||||
{
|
{
|
||||||
model: "openai/gpt-5.4 high",
|
model: "openai/gpt-5.4 high",
|
||||||
@@ -178,7 +178,7 @@ describe("resolveCategoryExecution", () => {
|
|||||||
})
|
})
|
||||||
const agentsSpy = spyOn(connectedProvidersCache, "readConnectedProvidersCache").mockReturnValue(["openai"])
|
const agentsSpy = spyOn(connectedProvidersCache, "readConnectedProvidersCache").mockReturnValue(["openai"])
|
||||||
const args = {
|
const args = {
|
||||||
category: "deep",
|
category: "quick",
|
||||||
prompt: "test prompt",
|
prompt: "test prompt",
|
||||||
description: "Test task",
|
description: "Test task",
|
||||||
run_in_background: false,
|
run_in_background: false,
|
||||||
@@ -188,7 +188,7 @@ describe("resolveCategoryExecution", () => {
|
|||||||
}
|
}
|
||||||
const executorCtx = createMockExecutorContext()
|
const executorCtx = createMockExecutorContext()
|
||||||
executorCtx.userCategories = {
|
executorCtx.userCategories = {
|
||||||
deep: {
|
quick: {
|
||||||
model: "openai/gpt-5.4-preview",
|
model: "openai/gpt-5.4-preview",
|
||||||
fallback_models: [
|
fallback_models: [
|
||||||
{
|
{
|
||||||
@@ -209,7 +209,7 @@ describe("resolveCategoryExecution", () => {
|
|||||||
expect(result.categoryModel).toEqual({
|
expect(result.categoryModel).toEqual({
|
||||||
providerID: "openai",
|
providerID: "openai",
|
||||||
modelID: "gpt-5.4-preview",
|
modelID: "gpt-5.4-preview",
|
||||||
variant: "medium",
|
variant: undefined,
|
||||||
})
|
})
|
||||||
cacheSpy.mockRestore()
|
cacheSpy.mockRestore()
|
||||||
agentsSpy.mockRestore()
|
agentsSpy.mockRestore()
|
||||||
@@ -224,7 +224,7 @@ describe("resolveCategoryExecution", () => {
|
|||||||
})
|
})
|
||||||
const agentsSpy = spyOn(connectedProvidersCache, "readConnectedProvidersCache").mockReturnValue(["openai"])
|
const agentsSpy = spyOn(connectedProvidersCache, "readConnectedProvidersCache").mockReturnValue(["openai"])
|
||||||
const args = {
|
const args = {
|
||||||
category: "deep",
|
category: "quick",
|
||||||
prompt: "test prompt",
|
prompt: "test prompt",
|
||||||
description: "Test task",
|
description: "Test task",
|
||||||
run_in_background: false,
|
run_in_background: false,
|
||||||
@@ -234,7 +234,7 @@ describe("resolveCategoryExecution", () => {
|
|||||||
}
|
}
|
||||||
const executorCtx = createMockExecutorContext()
|
const executorCtx = createMockExecutorContext()
|
||||||
executorCtx.userCategories = {
|
executorCtx.userCategories = {
|
||||||
deep: {
|
quick: {
|
||||||
fallback_models: [
|
fallback_models: [
|
||||||
{
|
{
|
||||||
model: "openai/gpt-5.4",
|
model: "openai/gpt-5.4",
|
||||||
@@ -278,7 +278,7 @@ describe("resolveCategoryExecution", () => {
|
|||||||
})
|
})
|
||||||
const agentsSpy = spyOn(connectedProvidersCache, "readConnectedProvidersCache").mockReturnValue(["openai"])
|
const agentsSpy = spyOn(connectedProvidersCache, "readConnectedProvidersCache").mockReturnValue(["openai"])
|
||||||
const args = {
|
const args = {
|
||||||
category: "deep",
|
category: "quick",
|
||||||
prompt: "test prompt",
|
prompt: "test prompt",
|
||||||
description: "Test task",
|
description: "Test task",
|
||||||
run_in_background: false,
|
run_in_background: false,
|
||||||
@@ -288,7 +288,7 @@ describe("resolveCategoryExecution", () => {
|
|||||||
}
|
}
|
||||||
const executorCtx = createMockExecutorContext()
|
const executorCtx = createMockExecutorContext()
|
||||||
executorCtx.userCategories = {
|
executorCtx.userCategories = {
|
||||||
deep: {
|
quick: {
|
||||||
fallback_models: [
|
fallback_models: [
|
||||||
{
|
{
|
||||||
model: "openai/gpt-5.4",
|
model: "openai/gpt-5.4",
|
||||||
@@ -329,7 +329,7 @@ describe("resolveCategoryExecution", () => {
|
|||||||
})
|
})
|
||||||
const agentsSpy = spyOn(connectedProvidersCache, "readConnectedProvidersCache").mockReturnValue(["openai"])
|
const agentsSpy = spyOn(connectedProvidersCache, "readConnectedProvidersCache").mockReturnValue(["openai"])
|
||||||
const args = {
|
const args = {
|
||||||
category: "deep",
|
category: "quick",
|
||||||
prompt: "test prompt",
|
prompt: "test prompt",
|
||||||
description: "Test task",
|
description: "Test task",
|
||||||
run_in_background: false,
|
run_in_background: false,
|
||||||
@@ -339,7 +339,7 @@ describe("resolveCategoryExecution", () => {
|
|||||||
}
|
}
|
||||||
const executorCtx = createMockExecutorContext()
|
const executorCtx = createMockExecutorContext()
|
||||||
executorCtx.userCategories = {
|
executorCtx.userCategories = {
|
||||||
deep: {
|
quick: {
|
||||||
fallback_models: [
|
fallback_models: [
|
||||||
{
|
{
|
||||||
model: "openai/gpt-5.4",
|
model: "openai/gpt-5.4",
|
||||||
|
|||||||
Reference in New Issue
Block a user