Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Fix type bugs, remove extensions, update tsdown config with comment

Morgan Dean6539baf0c53c
diff --git a/libs/typescript/agent/src/client.ts b/libs/typescript/agent/src/client.ts
index 5ea073db5a..02b3d191ad 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 32d2a28ab9..78257ee539 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 9d5a7b8d9e..01481d2936 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 2310390c65..b837b6ee98 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 '<script/>' tags.
+ // noExternal bundles this list of libraries within the final 'dist'
noExternal: ['peerjs']
});