@cmdop/sdk 3.7.0 → 3.7.5
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 +34 -7
- 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 2da8acbfcb79ee4f, cmdop 0.1.21) 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 2da8acbfcb79ee4f, cmdop 0.1.21) 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 2da8acbfcb79ee4f, cmdop 0.1.21) 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;
|
|
@@ -103,7 +105,7 @@ export type DiskCleanArgs = {
|
|
|
103
105
|
* age.
|
|
104
106
|
*/
|
|
105
107
|
older_than_days?: number | null;
|
|
106
|
-
/** As in `disk_usage`: `agent:<id>` or `
|
|
108
|
+
/** As in `disk_usage`: `agent:<id>`, `cache:<id>` or `worktrees:<id>`. Absent: every one known. */
|
|
107
109
|
targets?: string[] | null;
|
|
108
110
|
};
|
|
109
111
|
/** What `disk_clean` returns. */
|
|
@@ -124,7 +126,8 @@ export type DiskUsageArgs = {
|
|
|
124
126
|
older_than_days?: number | null;
|
|
125
127
|
/**
|
|
126
128
|
* `agent:<id>` for one agent's own files (`agent:claude-code`), `cache:<id>` for a developer
|
|
127
|
-
* cache no agent owns (`cache:cargo`, `cache:npm`, `cache:pnpm`)
|
|
129
|
+
* cache no agent owns (`cache:cargo`, `cache:npm`, `cache:pnpm`), `worktrees:<id>` for the git
|
|
130
|
+
* worktrees an agent left in its projects (`worktrees:claude-code`). Absent: every one known.
|
|
128
131
|
*/
|
|
129
132
|
targets?: string[] | null;
|
|
130
133
|
};
|
|
@@ -786,7 +789,14 @@ export type SysInfoArgs = Record<string, never>;
|
|
|
786
789
|
export type SysInfoOut = {
|
|
787
790
|
/** `aarch64`, `x86_64`. */
|
|
788
791
|
arch: string;
|
|
792
|
+
/**
|
|
793
|
+
* The commit that program was built from, 12 hex digits. Absent from an older program and
|
|
794
|
+
* from a build made outside git.
|
|
795
|
+
*/
|
|
796
|
+
commit?: string | null;
|
|
789
797
|
cpus: number;
|
|
798
|
+
/** That build had changes not in `commit` (a developer's build). */
|
|
799
|
+
dirty?: boolean;
|
|
790
800
|
/** Mounted file systems with their space, in bytes. */
|
|
791
801
|
disks: Disk[];
|
|
792
802
|
home?: string | null;
|
|
@@ -798,6 +808,8 @@ export type SysInfoOut = {
|
|
|
798
808
|
os: string;
|
|
799
809
|
/** OS release, for example `15.5` or `Ubuntu 24.04`. */
|
|
800
810
|
os_version?: string | null;
|
|
811
|
+
/** The version of the cmdop program that answered, `0.1.18`. Absent from an older program. */
|
|
812
|
+
program?: string | null;
|
|
801
813
|
/** Seconds since boot. */
|
|
802
814
|
uptime: number;
|
|
803
815
|
/** The user the machine program runs as. */
|
|
@@ -968,6 +980,8 @@ export type AgentRow = {
|
|
|
968
980
|
protocol: Protocol;
|
|
969
981
|
/** A run can be continued by passing back its `session`. */
|
|
970
982
|
resume: boolean;
|
|
983
|
+
/** Its sign-in as the last run of it showed. */
|
|
984
|
+
sign_in?: SignIn;
|
|
971
985
|
/** The most a prompt to it may do here. */
|
|
972
986
|
tier: Tier;
|
|
973
987
|
};
|
|
@@ -1004,14 +1018,20 @@ export type Disk = {
|
|
|
1004
1018
|
total: number;
|
|
1005
1019
|
};
|
|
1006
1020
|
export type DiskCleaned = {
|
|
1007
|
-
/** Files removed: caches deleted, sessions moved to the Trash. */
|
|
1021
|
+
/** Files removed: caches deleted, sessions moved to the Trash, the files of removed worktrees. */
|
|
1008
1022
|
files: number;
|
|
1009
1023
|
freed_bytes: number;
|
|
1010
|
-
/**
|
|
1024
|
+
/**
|
|
1025
|
+
* Why the whole target was left, when it was: its program is running, or the open files
|
|
1026
|
+
* could not be checked.
|
|
1027
|
+
*/
|
|
1011
1028
|
left?: string | null;
|
|
1012
|
-
/**
|
|
1029
|
+
/**
|
|
1030
|
+
* Files left because they changed since the count, a program holds them open, or they could
|
|
1031
|
+
* not be removed; a worktree git refused to remove counts as one.
|
|
1032
|
+
*/
|
|
1013
1033
|
skipped: number;
|
|
1014
|
-
/** `agent:<id>` or `
|
|
1034
|
+
/** `agent:<id>`, `cache:<id>` or `worktrees:<id>`. */
|
|
1015
1035
|
target: string;
|
|
1016
1036
|
};
|
|
1017
1037
|
export type DiskTarget = {
|
|
@@ -1021,7 +1041,7 @@ export type DiskTarget = {
|
|
|
1021
1041
|
items: DiskItem[];
|
|
1022
1042
|
/** The agent's or the tool's name. */
|
|
1023
1043
|
label: string;
|
|
1024
|
-
/** `agent:<id>` or `
|
|
1044
|
+
/** `agent:<id>`, `cache:<id>` or `worktrees:<id>`. */
|
|
1025
1045
|
target: string;
|
|
1026
1046
|
};
|
|
1027
1047
|
export type DisplayInfo = {
|
|
@@ -1046,6 +1066,11 @@ export type Entry = {
|
|
|
1046
1066
|
size: number;
|
|
1047
1067
|
};
|
|
1048
1068
|
export type EntryKind = "file" | "dir" | "symlink" | "other";
|
|
1069
|
+
/**
|
|
1070
|
+
* Why a `failed` run has no answer, when the agent program said so in a field of its own
|
|
1071
|
+
* output rather than only in words.
|
|
1072
|
+
*/
|
|
1073
|
+
export type FailReason = "signed_out";
|
|
1049
1074
|
/**
|
|
1050
1075
|
* How an image's pixels map to the screen. Coordinates an agent sends are pixels of the image
|
|
1051
1076
|
* of the same `display`.
|
|
@@ -1177,6 +1202,8 @@ export type DiskItem = {
|
|
|
1177
1202
|
};
|
|
1178
1203
|
/** How the machine talks to an agent program (the manifest's `bridge.protocol`). */
|
|
1179
1204
|
export type Protocol = "headless_json" | "acp" | "pty_only";
|
|
1205
|
+
/** The agent's sign-in as this machine last saw a run of it end. */
|
|
1206
|
+
export type SignIn = "ok" | "signed_out" | "unknown";
|
|
1180
1207
|
/** What removing an item costs. */
|
|
1181
1208
|
export type DiskClass = "cache" | "regenerable" | "feature" | "user-data" | "secret";
|
|
1182
1209
|
/** 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 2da8acbfcb79ee4f, cmdop 0.1.21) 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