@onkernel/cua-ai 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/api-keys.d.ts +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/providers/anthropic/index.d.ts +2 -2
- package/dist/providers/anthropic/index.js +1 -1
- package/dist/providers/gemini/index.d.ts +2 -2
- package/dist/providers/gemini/index.js +1 -1
- package/dist/providers/tzafon/index.d.ts +3 -3
- package/dist/providers/tzafon/index.js +2 -2
- package/dist/providers/yutori/index.d.ts +3 -3
- package/dist/providers/yutori/index.js +2 -2
- package/dist/providers/yutori/provider.js +1 -1
- package/dist/providers.d.ts +2 -2
- package/dist/providers.js +2 -2
- package/dist/runtime-spec.d.ts +1 -1
- package/package.json +1 -1
package/dist/api-keys.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Api, Model } from "@earendil-works/pi-ai";
|
|
2
|
-
import { type CuaModelRef } from "./models
|
|
2
|
+
import { type CuaModelRef } from "./models";
|
|
3
3
|
export declare function cuaApiKeyEnvVarsForProvider(provider: string): readonly string[];
|
|
4
4
|
export declare function getCuaEnvApiKey(provider: string): string | undefined;
|
|
5
5
|
export declare function requireCuaEnvApiKey(provider: string): string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export * from "@earendil-works/pi-ai";
|
|
2
|
-
export * from "./models
|
|
3
|
-
export * from "./api-keys
|
|
4
|
-
export * from "./runtime-spec
|
|
5
|
-
export * from "./providers/common
|
|
6
|
-
export * as anthropic from "./providers/anthropic/index
|
|
7
|
-
export * as gemini from "./providers/gemini/index
|
|
8
|
-
export * as openai from "./providers/openai/index
|
|
9
|
-
export * as tzafon from "./providers/tzafon/index
|
|
10
|
-
export * as yutori from "./providers/yutori/index
|
|
2
|
+
export * from "./models";
|
|
3
|
+
export * from "./api-keys";
|
|
4
|
+
export * from "./runtime-spec";
|
|
5
|
+
export * from "./providers/common";
|
|
6
|
+
export * as anthropic from "./providers/anthropic/index";
|
|
7
|
+
export * as gemini from "./providers/gemini/index";
|
|
8
|
+
export * as openai from "./providers/openai/index";
|
|
9
|
+
export * as tzafon from "./providers/tzafon/index";
|
|
10
|
+
export * as yutori from "./providers/yutori/index";
|
|
11
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CUA_ACTION_TYPES as ANTHROPIC_CUA_ACTION_TYPES, CUA_BATCH_TOOL_DESCRIPTION as ANTHROPIC_BATCH_DESCRIPTION, CUA_BATCH_TOOL_NAME as ANTHROPIC_BATCH_TOOL_NAME, createComputerToolDefinitions, createCuaActionSchema as createActionSchema, createCuaBatchSchema as createBatchSchema, CuaBatchSchema as AnthropicBatchSchema, } from "../common
|
|
2
|
-
export type { CuaAction as AnthropicAction, CreateComputerToolDefinitionsOptions, CuaBatchInput as AnthropicBatchInput, } from "../common
|
|
1
|
+
export { CUA_ACTION_TYPES as ANTHROPIC_CUA_ACTION_TYPES, CUA_BATCH_TOOL_DESCRIPTION as ANTHROPIC_BATCH_DESCRIPTION, CUA_BATCH_TOOL_NAME as ANTHROPIC_BATCH_TOOL_NAME, createComputerToolDefinitions, createCuaActionSchema as createActionSchema, createCuaBatchSchema as createBatchSchema, CuaBatchSchema as AnthropicBatchSchema, } from "../common";
|
|
2
|
+
export type { CuaAction as AnthropicAction, CreateComputerToolDefinitionsOptions, CuaBatchInput as AnthropicBatchInput, } from "../common";
|
|
3
3
|
export declare const COMPUTER_TOOL_COORDINATES: {
|
|
4
4
|
readonly type: "pixel";
|
|
5
5
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CUA_ACTION_TYPES as ANTHROPIC_CUA_ACTION_TYPES, CUA_BATCH_TOOL_DESCRIPTION as ANTHROPIC_BATCH_DESCRIPTION, CUA_BATCH_TOOL_NAME as ANTHROPIC_BATCH_TOOL_NAME, createComputerToolDefinitions, createCuaActionSchema as createActionSchema, createCuaBatchSchema as createBatchSchema, CuaBatchSchema as AnthropicBatchSchema, } from "../common
|
|
1
|
+
export { CUA_ACTION_TYPES as ANTHROPIC_CUA_ACTION_TYPES, CUA_BATCH_TOOL_DESCRIPTION as ANTHROPIC_BATCH_DESCRIPTION, CUA_BATCH_TOOL_NAME as ANTHROPIC_BATCH_TOOL_NAME, createComputerToolDefinitions, createCuaActionSchema as createActionSchema, createCuaBatchSchema as createBatchSchema, CuaBatchSchema as AnthropicBatchSchema, } from "../common";
|
|
2
2
|
// Provider-native action vocabulary emitted on `tool_use.input.action`. Latest
|
|
3
3
|
// tool version is `computer_20251124`, which extends earlier dated versions:
|
|
4
4
|
// computer_20241022: key, type, mouse_move, left_click, left_click_drag,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CUA_ACTION_TYPES as GEMINI_CUA_ACTION_TYPES, CUA_BATCH_TOOL_DESCRIPTION as GEMINI_BATCH_DESCRIPTION, CUA_BATCH_TOOL_NAME as GEMINI_BATCH_TOOL_NAME, createComputerToolDefinitions, createCuaActionSchema as createActionSchema, createCuaBatchSchema as createBatchSchema, CuaBatchSchema as GeminiBatchSchema, } from "../common
|
|
2
|
-
export type { CuaAction as GeminiAction, CreateComputerToolDefinitionsOptions, CuaBatchInput as GeminiBatchInput, } from "../common
|
|
1
|
+
export { CUA_ACTION_TYPES as GEMINI_CUA_ACTION_TYPES, CUA_BATCH_TOOL_DESCRIPTION as GEMINI_BATCH_DESCRIPTION, CUA_BATCH_TOOL_NAME as GEMINI_BATCH_TOOL_NAME, createComputerToolDefinitions, createCuaActionSchema as createActionSchema, createCuaBatchSchema as createBatchSchema, CuaBatchSchema as GeminiBatchSchema, } from "../common";
|
|
2
|
+
export type { CuaAction as GeminiAction, CreateComputerToolDefinitionsOptions, CuaBatchInput as GeminiBatchInput, } from "../common";
|
|
3
3
|
export declare const COMPUTER_TOOL_COORDINATES: {
|
|
4
4
|
readonly type: "normalized";
|
|
5
5
|
readonly range: readonly [0, 999];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CUA_ACTION_TYPES as GEMINI_CUA_ACTION_TYPES, CUA_BATCH_TOOL_DESCRIPTION as GEMINI_BATCH_DESCRIPTION, CUA_BATCH_TOOL_NAME as GEMINI_BATCH_TOOL_NAME, createComputerToolDefinitions, createCuaActionSchema as createActionSchema, createCuaBatchSchema as createBatchSchema, CuaBatchSchema as GeminiBatchSchema, } from "../common
|
|
1
|
+
export { CUA_ACTION_TYPES as GEMINI_CUA_ACTION_TYPES, CUA_BATCH_TOOL_DESCRIPTION as GEMINI_BATCH_DESCRIPTION, CUA_BATCH_TOOL_NAME as GEMINI_BATCH_TOOL_NAME, createComputerToolDefinitions, createCuaActionSchema as createActionSchema, createCuaBatchSchema as createBatchSchema, CuaBatchSchema as GeminiBatchSchema, } from "../common";
|
|
2
2
|
// Provider-native function names emitted on `functionCall.name` (PREDEFINED_COMPUTER_USE_FUNCTIONS):
|
|
3
3
|
// open_web_browser, click_at, hover_at, type_text_at, scroll_document,
|
|
4
4
|
// scroll_at, wait_5_seconds, go_back, go_forward, search, navigate,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { CUA_ACTION_TYPES as TZAFON_ACTION_TYPES, CUA_BATCH_TOOL_DESCRIPTION as TZAFON_BATCH_DESCRIPTION, CUA_BATCH_TOOL_NAME as TZAFON_BATCH_TOOL_NAME, createComputerToolDefinitions, createCuaActionSchema as createActionSchema, createCuaBatchSchema as createBatchSchema, CuaBatchSchema as TzafonBatchSchema, } from "../common
|
|
2
|
-
export type { CuaAction as TzafonAction, CreateComputerToolDefinitionsOptions, CuaBatchInput as TzafonBatchInput, } from "../common
|
|
3
|
-
export { TZAFON_RESPONSES_API, streamSimpleTzafonResponses, streamTzafonResponses, } from "./provider
|
|
1
|
+
export { CUA_ACTION_TYPES as TZAFON_ACTION_TYPES, CUA_BATCH_TOOL_DESCRIPTION as TZAFON_BATCH_DESCRIPTION, CUA_BATCH_TOOL_NAME as TZAFON_BATCH_TOOL_NAME, createComputerToolDefinitions, createCuaActionSchema as createActionSchema, createCuaBatchSchema as createBatchSchema, CuaBatchSchema as TzafonBatchSchema, } from "../common";
|
|
2
|
+
export type { CuaAction as TzafonAction, CreateComputerToolDefinitionsOptions, CuaBatchInput as TzafonBatchInput, } from "../common";
|
|
3
|
+
export { TZAFON_RESPONSES_API, streamSimpleTzafonResponses, streamTzafonResponses, } from "./provider";
|
|
4
4
|
export declare const COMPUTER_TOOL_COORDINATES: {
|
|
5
5
|
readonly type: "normalized";
|
|
6
6
|
readonly range: readonly [0, 999];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CUA_ACTION_TYPES as TZAFON_ACTION_TYPES, CUA_BATCH_TOOL_DESCRIPTION as TZAFON_BATCH_DESCRIPTION, CUA_BATCH_TOOL_NAME as TZAFON_BATCH_TOOL_NAME, createComputerToolDefinitions, createCuaActionSchema as createActionSchema, createCuaBatchSchema as createBatchSchema, CuaBatchSchema as TzafonBatchSchema, } from "../common
|
|
2
|
-
export { TZAFON_RESPONSES_API, streamSimpleTzafonResponses, streamTzafonResponses, } from "./provider
|
|
1
|
+
export { CUA_ACTION_TYPES as TZAFON_ACTION_TYPES, CUA_BATCH_TOOL_DESCRIPTION as TZAFON_BATCH_DESCRIPTION, CUA_BATCH_TOOL_NAME as TZAFON_BATCH_TOOL_NAME, createComputerToolDefinitions, createCuaActionSchema as createActionSchema, createCuaBatchSchema as createBatchSchema, CuaBatchSchema as TzafonBatchSchema, } from "../common";
|
|
2
|
+
export { TZAFON_RESPONSES_API, streamSimpleTzafonResponses, streamTzafonResponses, } from "./provider";
|
|
3
3
|
// Provider-native action vocabulary. The model card lists supported actions;
|
|
4
4
|
// the Responses API loop dispatches on `action.type` and adds terminal control
|
|
5
5
|
// types (`answer`, `done`).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { CUA_ACTION_TYPES as YUTORI_ACTION_TYPES, CUA_BATCH_TOOL_DESCRIPTION as YUTORI_BATCH_DESCRIPTION, CUA_BATCH_TOOL_NAME as YUTORI_BATCH_TOOL_NAME, createComputerToolDefinitions, createCuaActionSchema as createActionSchema, createCuaBatchSchema as createBatchSchema, CuaBatchSchema as YutoriBatchSchema, } from "../common
|
|
2
|
-
export type { CuaAction as YutoriAction, CreateComputerToolDefinitionsOptions, CuaBatchInput as YutoriBatchInput, } from "../common
|
|
3
|
-
export { YUTORI_CHAT_COMPLETIONS_API, streamSimpleYutori, streamYutori, yutoriBuiltinToolsOnPayload, } from "./provider
|
|
1
|
+
export { CUA_ACTION_TYPES as YUTORI_ACTION_TYPES, CUA_BATCH_TOOL_DESCRIPTION as YUTORI_BATCH_DESCRIPTION, CUA_BATCH_TOOL_NAME as YUTORI_BATCH_TOOL_NAME, createComputerToolDefinitions, createCuaActionSchema as createActionSchema, createCuaBatchSchema as createBatchSchema, CuaBatchSchema as YutoriBatchSchema, } from "../common";
|
|
2
|
+
export type { CuaAction as YutoriAction, CreateComputerToolDefinitionsOptions, CuaBatchInput as YutoriBatchInput, } from "../common";
|
|
3
|
+
export { YUTORI_CHAT_COMPLETIONS_API, streamSimpleYutori, streamYutori, yutoriBuiltinToolsOnPayload, } from "./provider";
|
|
4
4
|
export declare const COMPUTER_TOOL_COORDINATES: {
|
|
5
5
|
readonly type: "normalized";
|
|
6
6
|
readonly range: readonly [0, 1000];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { CUA_ACTION_TYPES as YUTORI_ACTION_TYPES, CUA_BATCH_TOOL_DESCRIPTION as YUTORI_BATCH_DESCRIPTION, CUA_BATCH_TOOL_NAME as YUTORI_BATCH_TOOL_NAME, createComputerToolDefinitions, createCuaActionSchema as createActionSchema, createCuaBatchSchema as createBatchSchema, CuaBatchSchema as YutoriBatchSchema, } from "../common
|
|
2
|
-
export { YUTORI_CHAT_COMPLETIONS_API, streamSimpleYutori, streamYutori, yutoriBuiltinToolsOnPayload, } from "./provider
|
|
1
|
+
export { CUA_ACTION_TYPES as YUTORI_ACTION_TYPES, CUA_BATCH_TOOL_DESCRIPTION as YUTORI_BATCH_DESCRIPTION, CUA_BATCH_TOOL_NAME as YUTORI_BATCH_TOOL_NAME, createComputerToolDefinitions, createCuaActionSchema as createActionSchema, createCuaBatchSchema as createBatchSchema, CuaBatchSchema as YutoriBatchSchema, } from "../common";
|
|
2
|
+
export { YUTORI_CHAT_COMPLETIONS_API, streamSimpleYutori, streamYutori, yutoriBuiltinToolsOnPayload, } from "./provider";
|
|
3
3
|
// Provider-native action vocabulary differs between Navigator versions:
|
|
4
4
|
// n1 (fixed tool set):
|
|
5
5
|
// left_click, double_click, right_click, triple_click, type, key_press,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import OpenAI from "openai";
|
|
2
2
|
import { createAssistantMessageEventStream, } from "@earendil-works/pi-ai";
|
|
3
|
-
import { CUA_ACTION_TYPES, CUA_BATCH_TOOL_NAME } from "../common
|
|
3
|
+
import { CUA_ACTION_TYPES, CUA_BATCH_TOOL_NAME } from "../common";
|
|
4
4
|
export const YUTORI_CHAT_COMPLETIONS_API = "yutori-chat-completions";
|
|
5
5
|
const YUTORI_BUILTIN_TOOL_NAMES = new Set(CUA_ACTION_TYPES);
|
|
6
6
|
export const streamYutori = (model, context, options) => {
|
package/dist/providers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { streamSimpleTzafonResponses, streamTzafonResponses, TZAFON_RESPONSES_API } from "./providers/tzafon/provider
|
|
2
|
-
import { streamSimpleYutori, streamYutori, YUTORI_CHAT_COMPLETIONS_API } from "./providers/yutori/provider
|
|
1
|
+
import { streamSimpleTzafonResponses, streamTzafonResponses, TZAFON_RESPONSES_API } from "./providers/tzafon/provider";
|
|
2
|
+
import { streamSimpleYutori, streamYutori, YUTORI_CHAT_COMPLETIONS_API } from "./providers/yutori/provider";
|
|
3
3
|
export declare function registerCuaProviders(): void;
|
|
4
4
|
export { TZAFON_RESPONSES_API, streamSimpleTzafonResponses, streamTzafonResponses };
|
|
5
5
|
export { YUTORI_CHAT_COMPLETIONS_API, streamSimpleYutori, streamYutori };
|
package/dist/providers.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { registerApiProvider } from "@earendil-works/pi-ai";
|
|
2
|
-
import { streamSimpleTzafonResponses, streamTzafonResponses, TZAFON_RESPONSES_API } from "./providers/tzafon/provider
|
|
3
|
-
import { streamSimpleYutori, streamYutori, YUTORI_CHAT_COMPLETIONS_API } from "./providers/yutori/provider
|
|
2
|
+
import { streamSimpleTzafonResponses, streamTzafonResponses, TZAFON_RESPONSES_API } from "./providers/tzafon/provider";
|
|
3
|
+
import { streamSimpleYutori, streamYutori, YUTORI_CHAT_COMPLETIONS_API } from "./providers/yutori/provider";
|
|
4
4
|
let registered = false;
|
|
5
5
|
// pi-ai eagerly registers openai-responses, anthropic-messages, and
|
|
6
6
|
// google-generative-ai when its index module loads (see
|
package/dist/runtime-spec.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Api, Model, SimpleStreamOptions, Tool } from "@earendil-works/pi-ai";
|
|
2
|
-
import { type CuaModelRef, type CuaProvider } from "./models
|
|
2
|
+
import { type CuaModelRef, type CuaProvider } from "./models";
|
|
3
3
|
/**
|
|
4
4
|
* Provider-resolved runtime defaults for CUA execution.
|
|
5
5
|
*
|