@onkernel/cua-agent 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/agent.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Agent, type AgentOptions, type AgentTool, type AgentEvent, type AgentMessage } from "@earendil-works/pi-agent-core";
2
2
  import { type ImageContent, type Api, type Model, type CuaModelRef } from "@onkernel/cua-ai";
3
3
  import type Kernel from "@onkernel/sdk";
4
- import type { KernelBrowser } from "./translator/translator.js";
4
+ import type { KernelBrowser } from "./translator/translator";
5
5
  type CuaAgentInitialState = Omit<NonNullable<AgentOptions["initialState"]>, "model" | "tools"> & {
6
6
  model: CuaModelRef | Model<Api>;
7
7
  tools?: AgentTool[];
package/dist/agent.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Agent, } from "@earendil-works/pi-agent-core";
2
2
  import { getCuaEnvApiKey, resolveCuaRuntimeSpec, streamSimple, } from "@onkernel/cua-ai";
3
- import { createCuaComputerTools } from "./tools.js";
3
+ import { createCuaComputerTools } from "./tools";
4
4
  export class CuaAgent extends Agent {
5
5
  constructor(options) {
6
6
  const { browser, client, initialState, onPayload, streamFn, ...agentOptions } = options;
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  export * from "@earendil-works/pi-agent-core";
2
- export type { KernelBrowser } from "./translator/translator.js";
3
- export { createCuaComputerTools } from "./tools.js";
4
- export type { BatchDetails, ComputerToolOptions, CuaExecutorTool, NavigationDetails, SupportedCuaExecutorToolName, } from "./tools.js";
5
- export { SUPPORTED_CUA_EXECUTOR_TOOL_NAMES } from "./tools.js";
6
- export { CuaAgent, CuaHarness } from "./agent.js";
7
- export type { CuaAgentOptions, CuaHarnessOptions } from "./agent.js";
2
+ export type { KernelBrowser } from "./translator/translator";
3
+ export { createCuaComputerTools } from "./tools";
4
+ export type { BatchDetails, ComputerToolOptions, CuaExecutorTool, NavigationDetails, SupportedCuaExecutorToolName, } from "./tools";
5
+ export { SUPPORTED_CUA_EXECUTOR_TOOL_NAMES } from "./tools";
6
+ export { CuaAgent, CuaHarness } from "./agent";
7
+ export type { CuaAgentOptions, CuaHarnessOptions } from "./agent";
8
8
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "@earendil-works/pi-agent-core";
2
- export { createCuaComputerTools } from "./tools.js";
3
- export { SUPPORTED_CUA_EXECUTOR_TOOL_NAMES } from "./tools.js";
4
- export { CuaAgent, CuaHarness } from "./agent.js";
2
+ export { createCuaComputerTools } from "./tools";
3
+ export { SUPPORTED_CUA_EXECUTOR_TOOL_NAMES } from "./tools";
4
+ export { CuaAgent, CuaHarness } from "./agent";
5
5
  //# sourceMappingURL=index.js.map
package/dist/tools.d.ts CHANGED
@@ -2,7 +2,7 @@ import type Kernel from "@onkernel/sdk";
2
2
  import type { AgentTool } from "@earendil-works/pi-agent-core";
3
3
  import type { Tool } from "@earendil-works/pi-ai";
4
4
  import { CuaBatchSchema, CuaNavigationSchema } from "@onkernel/cua-ai";
5
- import { type KernelBrowser } from "./translator/translator.js";
5
+ import { type KernelBrowser } from "./translator/translator";
6
6
  export interface ComputerToolOptions {
7
7
  browser: KernelBrowser;
8
8
  client: Kernel;
package/dist/tools.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { CUA_BATCH_TOOL_NAME, CUA_NAVIGATION_TOOL_NAME, CuaBatchSchema, CuaNavigationSchema, } from "@onkernel/cua-ai";
2
- import { InternalComputerTranslator } from "./translator/translator.js";
2
+ import { InternalComputerTranslator } from "./translator/translator";
3
3
  export const SUPPORTED_CUA_EXECUTOR_TOOL_NAMES = [CUA_BATCH_TOOL_NAME, CUA_NAVIGATION_TOOL_NAME];
4
4
  export function createCuaComputerTools(args) {
5
5
  const translator = new InternalComputerTranslator(args);
@@ -1,6 +1,6 @@
1
1
  import type Kernel from "@onkernel/sdk";
2
2
  import type { BrowserCreateResponse, BrowserRetrieveResponse } from "@onkernel/sdk/resources/browsers";
3
- import type { BatchExecutionResult, ModelAction } from "./types.js";
3
+ import type { BatchExecutionResult, ModelAction } from "./types";
4
4
  export type KernelBrowser = BrowserCreateResponse | BrowserRetrieveResponse;
5
5
  export interface InternalComputerTranslatorOptions {
6
6
  browser: KernelBrowser;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onkernel/cua-agent",
3
- "version": "0.0.1",
3
+ "version": "0.1.0",
4
4
  "description": "Kernel browser computer-use Agent and AgentHarness classes built on pi-agent-core",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@earendil-works/pi-agent-core": "^0.74.0",
43
43
  "@earendil-works/pi-ai": "^0.74.0",
44
- "@onkernel/cua-ai": "0.0.1",
44
+ "@onkernel/cua-ai": "0.1.0",
45
45
  "@onkernel/sdk": "0.49.0"
46
46
  },
47
47
  "devDependencies": {