@cmdop/sdk 3.7.0 → 3.7.3
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/generated/call.gen.js +1 -1
- package/dist/generated/server.gen.js +1 -1
- package/dist/generated/surface.gen.js +1 -1
- package/dist/generated/tools.gen.d.ts +20 -0
- package/dist/generated/tools.gen.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from cmdop/crates/tools/tools.schema.json (sha256
|
|
1
|
+
// Generated from cmdop/crates/tools/tools.schema.json (sha256 292222b7ac86de94, cmdop 0.1.18) by exports/sdk/gen/gen.ts. Do not edit.
|
|
2
2
|
/** Every error code, in the order Rust declares them. */
|
|
3
3
|
export const ERROR_CODES = ["other", "denied", "unknown_tool", "bad_args", "not_found", "busy", "permission_missing", "screen_locked", "stale_capture", "element_gone", "app_not_allowed", "lease_paused", "paused", "offline", "rate_limited", "quota_exceeded", "not_dispatched", "display_gone", "timed_out", "cancelled", "too_large", "hash_required", "failed", "needs_presence", "unauthorized", "tool_refused", "sandbox_unavailable"];
|
|
4
4
|
/** The size limits every carrier keeps. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from cmdop/crates/tools/tools.schema.json (sha256
|
|
1
|
+
// Generated from cmdop/crates/tools/tools.schema.json (sha256 292222b7ac86de94, cmdop 0.1.18) by exports/sdk/gen/gen.ts. Do not edit.
|
|
2
2
|
/** Title and description of every server tool, as the server lists them. */
|
|
3
3
|
export const SERVER_TOOLS = {
|
|
4
4
|
docs_read: { title: "Read the docs", description: "Call before answering how CMDOP works, is set up or is priced: no `path` lists every page of docs.cmdop.ai (path and title); a `path` returns that page as Markdown." },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from cmdop/crates/tools/tools.schema.json (sha256
|
|
1
|
+
// Generated from cmdop/crates/tools/tools.schema.json (sha256 292222b7ac86de94, cmdop 0.1.18) by exports/sdk/gen/gen.ts. Do not edit.
|
|
2
2
|
/** Group, then method, then the tool it calls. */
|
|
3
3
|
export const GROUPS = {
|
|
4
4
|
agent: { cancel: "agent_cancel", list: "agent_list", prompt: "agent_prompt", sessions: "agent_sessions" },
|
|
@@ -45,6 +45,8 @@ export type AgentPromptOut = {
|
|
|
45
45
|
agent: string;
|
|
46
46
|
/** Why there is no answer, when `state` is `failed`. */
|
|
47
47
|
error?: string | null;
|
|
48
|
+
/** The kind of failure, when the agent's own output names one. */
|
|
49
|
+
reason?: FailReason | null;
|
|
48
50
|
/** Pass it back as `session` to continue. */
|
|
49
51
|
session?: string | null;
|
|
50
52
|
state: RunState;
|
|
@@ -786,7 +788,14 @@ export type SysInfoArgs = Record<string, never>;
|
|
|
786
788
|
export type SysInfoOut = {
|
|
787
789
|
/** `aarch64`, `x86_64`. */
|
|
788
790
|
arch: string;
|
|
791
|
+
/**
|
|
792
|
+
* The commit that program was built from, 12 hex digits. Absent from an older program and
|
|
793
|
+
* from a build made outside git.
|
|
794
|
+
*/
|
|
795
|
+
commit?: string | null;
|
|
789
796
|
cpus: number;
|
|
797
|
+
/** That build had changes not in `commit` (a developer's build). */
|
|
798
|
+
dirty?: boolean;
|
|
790
799
|
/** Mounted file systems with their space, in bytes. */
|
|
791
800
|
disks: Disk[];
|
|
792
801
|
home?: string | null;
|
|
@@ -798,6 +807,8 @@ export type SysInfoOut = {
|
|
|
798
807
|
os: string;
|
|
799
808
|
/** OS release, for example `15.5` or `Ubuntu 24.04`. */
|
|
800
809
|
os_version?: string | null;
|
|
810
|
+
/** The version of the cmdop program that answered, `0.1.18`. Absent from an older program. */
|
|
811
|
+
program?: string | null;
|
|
801
812
|
/** Seconds since boot. */
|
|
802
813
|
uptime: number;
|
|
803
814
|
/** The user the machine program runs as. */
|
|
@@ -968,6 +979,8 @@ export type AgentRow = {
|
|
|
968
979
|
protocol: Protocol;
|
|
969
980
|
/** A run can be continued by passing back its `session`. */
|
|
970
981
|
resume: boolean;
|
|
982
|
+
/** Its sign-in as the last run of it showed. */
|
|
983
|
+
sign_in?: SignIn;
|
|
971
984
|
/** The most a prompt to it may do here. */
|
|
972
985
|
tier: Tier;
|
|
973
986
|
};
|
|
@@ -1046,6 +1059,11 @@ export type Entry = {
|
|
|
1046
1059
|
size: number;
|
|
1047
1060
|
};
|
|
1048
1061
|
export type EntryKind = "file" | "dir" | "symlink" | "other";
|
|
1062
|
+
/**
|
|
1063
|
+
* Why a `failed` run has no answer, when the agent program said so in a field of its own
|
|
1064
|
+
* output rather than only in words.
|
|
1065
|
+
*/
|
|
1066
|
+
export type FailReason = "signed_out";
|
|
1049
1067
|
/**
|
|
1050
1068
|
* How an image's pixels map to the screen. Coordinates an agent sends are pixels of the image
|
|
1051
1069
|
* of the same `display`.
|
|
@@ -1177,6 +1195,8 @@ export type DiskItem = {
|
|
|
1177
1195
|
};
|
|
1178
1196
|
/** How the machine talks to an agent program (the manifest's `bridge.protocol`). */
|
|
1179
1197
|
export type Protocol = "headless_json" | "acp" | "pty_only";
|
|
1198
|
+
/** The agent's sign-in as this machine last saw a run of it end. */
|
|
1199
|
+
export type SignIn = "ok" | "signed_out" | "unknown";
|
|
1180
1200
|
/** What removing an item costs. */
|
|
1181
1201
|
export type DiskClass = "cache" | "regenerable" | "feature" | "user-data" | "secret";
|
|
1182
1202
|
/** Every machine tool: its arguments and its result. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from cmdop/crates/tools/tools.schema.json (sha256
|
|
1
|
+
// Generated from cmdop/crates/tools/tools.schema.json (sha256 292222b7ac86de94, cmdop 0.1.18) by exports/sdk/gen/gen.ts. Do not edit.
|
|
2
2
|
/** Risk class, version and description of every tool, as the server lists them. */
|
|
3
3
|
export const TOOLS = {
|
|
4
4
|
agent_cancel: { risk: "agent", added: "0.1.13", timeoutSecs: 15, description: "Stops a running agent_prompt by its task. What the agent did until then stays done." },
|
package/dist/index.d.ts
CHANGED
|
@@ -9,3 +9,4 @@ export { SERVER_TOOLS, SERVER_TOOL_NAMES, type ServerToolMap, type ServerToolNam
|
|
|
9
9
|
export { decodeImage, toScreenshot, type DecodedImage, type Screenshot } from "./screen.ts";
|
|
10
10
|
export { anthropicToCalls, openaiToCalls, performCalls, UnsupportedAction, type Step, type VendorOptions } from "./vendor.ts";
|
|
11
11
|
export { uploadFile, UploadError, type UploadOptions, type UploadProgress } from "./upload.ts";
|
|
12
|
+
export { VERSION } from "./version.ts";
|
package/dist/index.js
CHANGED
|
@@ -9,3 +9,4 @@ export { SERVER_TOOLS, SERVER_TOOL_NAMES } from "./generated/server.gen.js";
|
|
|
9
9
|
export { decodeImage, toScreenshot } from "./screen.js";
|
|
10
10
|
export { anthropicToCalls, openaiToCalls, performCalls, UnsupportedAction } from "./vendor.js";
|
|
11
11
|
export { uploadFile, UploadError } from "./upload.js";
|
|
12
|
+
export { VERSION } from "./version.js";
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED