From 6539baf0c53ca07305d61b2af40fb3d34816c208 Mon Sep 17 00:00:00 2001 From: Morgan Dean Date: Thu, 21 Aug 2025 15:01:48 +0100 Subject: [PATCH] Fix type bugs, remove extensions, update tsdown config with comment --- libs/typescript/agent/src/client.ts | 2 +- libs/typescript/agent/src/index.ts | 4 ++-- libs/typescript/agent/src/types.ts | 2 +- libs/typescript/agent/tsdown.config.ts | 2 ++ 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libs/typescript/agent/src/client.ts b/libs/typescript/agent/src/client.ts index 5ea073db..02b3d191 100644 --- a/libs/typescript/agent/src/client.ts +++ b/libs/typescript/agent/src/client.ts @@ -4,7 +4,7 @@ import type { AgentResponse, ConnectionType, AgentClientOptions, -} from "./types.js"; +} from "./types"; export class AgentClient { private url: string; diff --git a/libs/typescript/agent/src/index.ts b/libs/typescript/agent/src/index.ts index 32d2a28a..78257ee5 100644 --- a/libs/typescript/agent/src/index.ts +++ b/libs/typescript/agent/src/index.ts @@ -20,10 +20,10 @@ export type { ComputerAction, ClickAction, TypeAction, - KeyAction, + KeyPressAction, ScrollAction, WaitAction, Usage, ConnectionType, AgentClientOptions, -} from './types.js'; +} from './types'; diff --git a/libs/typescript/agent/src/types.ts b/libs/typescript/agent/src/types.ts index 9d5a7b8d..01481d29 100644 --- a/libs/typescript/agent/src/types.ts +++ b/libs/typescript/agent/src/types.ts @@ -48,7 +48,7 @@ export type AgentMessage = | ReasoningMessage | ComputerCallMessage | ComputerCallOutputMessage - | FunctionCallMesssage + | FunctionCallMessage | FunctionCallOutputMessage; // Input message export interface UserMessage { diff --git a/libs/typescript/agent/tsdown.config.ts b/libs/typescript/agent/tsdown.config.ts index 2310390c..b837b6ee 100644 --- a/libs/typescript/agent/tsdown.config.ts +++ b/libs/typescript/agent/tsdown.config.ts @@ -6,5 +6,7 @@ export default defineConfig({ platform: "browser", dts: true, clean: true, + // Remove if we don't need to support including the library via '