From 97840623ca86f14a2b8b28f3607c6719bafed734 Mon Sep 17 00:00:00 2001 From: John Xie Date: Wed, 18 Nov 2026 16:25:37 -0800 Subject: [PATCH] test: Use public wording for the built-in agent --- packages/n8n-nodes-taskade/nodes/Taskade/Taskade.node.ts | 4 ++-- packages/n8n-nodes-taskade/test/Taskade.node.test.ts | 4 ++-- src/searches/findAgent.ts | 9 +++++---- src/test/app.test.ts | 4 ++-- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/packages/n8n-nodes-taskade/nodes/Taskade/Taskade.node.ts b/packages/n8n-nodes-taskade/nodes/Taskade/Taskade.node.ts index 793b545..c1845ea 100644 --- a/packages/n8n-nodes-taskade/nodes/Taskade/Taskade.node.ts +++ b/packages/n8n-nodes-taskade/nodes/Taskade/Taskade.node.ts @@ -213,8 +213,8 @@ export class Taskade implements INodeType { } const agents = (await taskadeApiRequest.call(this, '/listAgents', body)) .items as IDataObject[]; - // `taa` is the built-in Taskade agent. Only Prompt accepts it: Get and - // Add Project Knowledge look up a saved agent, so `taa` fails there. + // The API lists the built-in agent (Taskade EVE). Only Prompt accepts it: + // Get and Add Project Knowledge look up a saved agent, so it fails there. const operation = this.getCurrentNodeParameter('operation') as string; return { results: (agents ?? []) diff --git a/packages/n8n-nodes-taskade/test/Taskade.node.test.ts b/packages/n8n-nodes-taskade/test/Taskade.node.test.ts index 026af57..bad5ec0 100644 --- a/packages/n8n-nodes-taskade/test/Taskade.node.test.ts +++ b/packages/n8n-nodes-taskade/test/Taskade.node.test.ts @@ -288,8 +288,8 @@ describe('list search', () => { ]); }); - it('offers the built-in taa agent only for Prompt', async () => { - const agents = () => ({ ok: true, items: [{ id: 'taa', name: 'Taskade Agent (TAA)' }, { id: 'a1', name: 'Triage' }] }); + it('offers the built-in agent only for Prompt', async () => { + const agents = () => ({ ok: true, items: [{ id: 'taa', name: 'Taskade EVE' }, { id: 'a1', name: 'Triage' }] }); const forGet = createContext({ authentication: 'accessToken', spaceId: 's1', operation: 'get' }, agents); const forPrompt = createContext({ authentication: 'accessToken', spaceId: 's1', operation: 'prompt' }, agents); const get = await node.methods.listSearch.searchAgents.call(forGet as unknown as ILoadOptionsFunctions); diff --git a/src/searches/findAgent.ts b/src/searches/findAgent.ts index 43dcb3f..da650ad 100644 --- a/src/searches/findAgent.ts +++ b/src/searches/findAgent.ts @@ -3,7 +3,8 @@ import { Bundle, ZObject } from 'zapier-platform-core'; import { ApiResponse, parseOk, request } from '../client'; import { spaceField } from '../fields'; -const TAA_AGENT_ID = 'taa'; +// The id that the API gives the built-in agent (Taskade EVE). +const BUILT_IN_AGENT_ID = 'taa'; const perform = async (z: ZObject, bundle: Bundle) => { const response = await request(z, bundle, { @@ -20,9 +21,9 @@ const perform = async (z: ZObject, bundle: Bundle) => { const query = String(bundle.inputData.query ?? '').toLowerCase(); const agents = (data.items ?? []) - // `taa` is the built-in Taskade agent that the API lists first. It is not - // one of the user's agents, so a name search must not pick it. - .filter((agent) => agent.id !== TAA_AGENT_ID) + // The API lists the built-in agent first. It is not one of the user's + // agents, so a name search must not pick it. + .filter((agent) => agent.id !== BUILT_IN_AGENT_ID) .map((agent) => ({ id: agent.id as string, name: (agent.name ?? '') as string, diff --git a/src/test/app.test.ts b/src/test/app.test.ts index 435a17e..b66408f 100644 --- a/src/test/app.test.ts +++ b/src/test/app.test.ts @@ -239,11 +239,11 @@ describe('Taskade Genesis actions and searches', () => { }); describe('Review fixes', () => { - it('skips the built-in TAA agent and puts an exact name match first', async () => { + it('skips the built-in agent and puts an exact name match first', async () => { const { z } = fakeZ({ ok: true, items: [ - { id: 'taa', name: 'Taskade Agent (TAA)', description: 'The general purpose agent', tools: {} }, + { id: 'taa', name: 'Taskade EVE', description: 'The general purpose agent', tools: {} }, { id: 'agent-2', name: 'Sales Agent Follow-up', description: '', tools: {} }, { id: 'agent-1', name: 'Sales Agent', description: '', tools: {} }, ],