fix(instance-ai): resolve lint errors in template telemetry and pairwise compare

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Mutasem Aldmour 2026-05-12 15:40:19 +02:00
parent 80396fd5d4
commit a18513dc85
No known key found for this signature in database
GPG Key ID: 3DFA8122BB7FD6B8
3 changed files with 6 additions and 4 deletions

View File

@ -686,8 +686,10 @@ function summarizeToolCallArgs(toolName: string, args: unknown): string {
}
case 'mastra_workspace_grep':
return trunc(`${str(a.pattern)}${a.path ? ` in ${str(a.path)}` : ''}`);
case 'mastra_workspace_lsp_inspect':
return trunc(`${str(a.path)}:${a.line ?? '?'} ${str(a.match)}`);
case 'mastra_workspace_lsp_inspect': {
const line = typeof a.line === 'number' ? String(a.line) : '?';
return trunc(`${str(a.path)}:${line} ${str(a.match)}`);
}
case 'mastra_workspace_mkdir':
return trunc(str(a.path));
case 'submit-workflow':

View File

@ -1,5 +1,5 @@
import type { InstanceAiEvent } from '@n8n/api-types';
import type { Agent } from '@mastra/core/agent';
import type { InstanceAiEvent } from '@n8n/api-types';
import type { InstanceAiEventBus } from '../event-bus/event-bus.interface';
import type { Logger } from '../logger';

View File

@ -13,8 +13,8 @@
* (a per-Workspace WeakMap binding). `runInSandbox` looks the session up and
* calls `observe()` after each command no caller-side threading required.
*/
import type { InstanceAiEvent } from '@n8n/api-types';
import type { Workspace } from '@mastra/core/workspace';
import type { InstanceAiEvent } from '@n8n/api-types';
import type { OrchestrationContext } from '../types';