chore: migrate to @typescript/native-preview (tsgo)

This commit is contained in:
Michael Bleigh
2026-04-12 18:42:13 -07:00
parent 0179726222
commit 9594a1822b
13 changed files with 151 additions and 27 deletions
+2 -2
View File
@@ -19,7 +19,7 @@
"format": "prettier --write .",
"test": "vitest run",
"test:ci": "vitest run --coverage",
"typecheck": "tsc --noEmit"
"typecheck": "tsgo --noEmit"
},
"files": [
"dist"
@@ -41,9 +41,9 @@
"@types/fs-extra": "^11.0.4",
"@types/supertest": "^6.0.3",
"@types/tar": "^6.1.13",
"@typescript/native-preview": "^7.0.0-dev.20260412.1",
"dotenv": "^16.4.5",
"supertest": "^7.1.4",
"typescript": "^5.3.3",
"vitest": "^3.1.1"
},
"engines": {
+6 -5
View File
@@ -12,6 +12,7 @@ import {
type ToolCallRequestInfo,
type GitService,
type CompletedToolCall,
type ServerGeminiStreamEvent,
} from '@google/gemini-cli-core';
import { createMockConfig } from '../utils/testing_utils.js';
import type { ExecutionEventBus, RequestContext } from '@a2a-js/sdk/server';
@@ -231,10 +232,10 @@ describe('Task', () => {
);
const event = {
type: 'content',
type: GeminiEventType.Content,
value: 'test',
traceId: 'test-trace-id',
};
} as const;
await task.acceptAgentMessage(event);
@@ -270,7 +271,7 @@ describe('Task', () => {
const citationEvent = {
type: GeminiEventType.Citation,
value: citationText,
};
} as const;
await task.acceptAgentMessage(citationEvent);
@@ -313,7 +314,7 @@ describe('Task', () => {
const modelInfoEvent = {
type: GeminiEventType.ModelInfo,
value: 'new-model-name',
};
} as const;
await task.acceptAgentMessage(modelInfoEvent);
@@ -368,7 +369,7 @@ describe('Task', () => {
const event = {
type: eventType,
};
} as unknown as ServerGeminiStreamEvent;
await task.acceptAgentMessage(event);