@cmdop/sdk 3.7.3 → 3.8.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/generated/call.gen.js +1 -1
- package/dist/generated/server.gen.d.ts +7 -0
- package/dist/generated/server.gen.js +1 -1
- package/dist/generated/surface.gen.js +1 -1
- package/dist/generated/tools.gen.d.ts +14 -7
- package/dist/generated/tools.gen.js +1 -1
- 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 74d267a7b8e73b08, cmdop 0.1.23) 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. */
|
|
@@ -128,6 +128,11 @@ export type MachineRow = {
|
|
|
128
128
|
dirty: boolean;
|
|
129
129
|
epoch: number;
|
|
130
130
|
id: string;
|
|
131
|
+
/**
|
|
132
|
+
* What kind of computer it is (`container`, `vm`, `laptop`, `desktop`, `server`), as it said
|
|
133
|
+
* on its last link. Left out when it did not say: an older program, or it could not tell.
|
|
134
|
+
*/
|
|
135
|
+
kind?: MachineKind | null;
|
|
131
136
|
/** The name its owner gave it on the page; null when none, and `name` is `own_name`. */
|
|
132
137
|
label?: string | null;
|
|
133
138
|
/** Unix seconds of the last message from the machine. */
|
|
@@ -241,6 +246,8 @@ export type DockRunView = {
|
|
|
241
246
|
/** Unix milliseconds. */
|
|
242
247
|
started: number;
|
|
243
248
|
};
|
|
249
|
+
/** The kind of computer a machine runs on. */
|
|
250
|
+
export type MachineKind = ("laptop" | "desktop") | "container" | "vm" | "server";
|
|
244
251
|
/**
|
|
245
252
|
* Whether a machine can take a call now, the one answer the page, the app, MCP, the SDK and the
|
|
246
253
|
* refusals give (machine-presence V1). It is derived from the time of the machine's last
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from cmdop/crates/tools/tools.schema.json (sha256
|
|
1
|
+
// Generated from cmdop/crates/tools/tools.schema.json (sha256 74d267a7b8e73b08, cmdop 0.1.23) 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 74d267a7b8e73b08, cmdop 0.1.23) 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" },
|
|
@@ -105,7 +105,7 @@ export type DiskCleanArgs = {
|
|
|
105
105
|
* age.
|
|
106
106
|
*/
|
|
107
107
|
older_than_days?: number | null;
|
|
108
|
-
/** As in `disk_usage`: `agent:<id>` or `
|
|
108
|
+
/** As in `disk_usage`: `agent:<id>`, `cache:<id>` or `worktrees:<id>`. Absent: every one known. */
|
|
109
109
|
targets?: string[] | null;
|
|
110
110
|
};
|
|
111
111
|
/** What `disk_clean` returns. */
|
|
@@ -126,7 +126,8 @@ export type DiskUsageArgs = {
|
|
|
126
126
|
older_than_days?: number | null;
|
|
127
127
|
/**
|
|
128
128
|
* `agent:<id>` for one agent's own files (`agent:claude-code`), `cache:<id>` for a developer
|
|
129
|
-
* 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.
|
|
130
131
|
*/
|
|
131
132
|
targets?: string[] | null;
|
|
132
133
|
};
|
|
@@ -1017,14 +1018,20 @@ export type Disk = {
|
|
|
1017
1018
|
total: number;
|
|
1018
1019
|
};
|
|
1019
1020
|
export type DiskCleaned = {
|
|
1020
|
-
/** Files removed: caches deleted, sessions moved to the Trash. */
|
|
1021
|
+
/** Files removed: caches deleted, sessions moved to the Trash, the files of removed worktrees. */
|
|
1021
1022
|
files: number;
|
|
1022
1023
|
freed_bytes: number;
|
|
1023
|
-
/**
|
|
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
|
+
*/
|
|
1024
1028
|
left?: string | null;
|
|
1025
|
-
/**
|
|
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
|
+
*/
|
|
1026
1033
|
skipped: number;
|
|
1027
|
-
/** `agent:<id>` or `
|
|
1034
|
+
/** `agent:<id>`, `cache:<id>` or `worktrees:<id>`. */
|
|
1028
1035
|
target: string;
|
|
1029
1036
|
};
|
|
1030
1037
|
export type DiskTarget = {
|
|
@@ -1034,7 +1041,7 @@ export type DiskTarget = {
|
|
|
1034
1041
|
items: DiskItem[];
|
|
1035
1042
|
/** The agent's or the tool's name. */
|
|
1036
1043
|
label: string;
|
|
1037
|
-
/** `agent:<id>` or `
|
|
1044
|
+
/** `agent:<id>`, `cache:<id>` or `worktrees:<id>`. */
|
|
1038
1045
|
target: string;
|
|
1039
1046
|
};
|
|
1040
1047
|
export type DisplayInfo = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Generated from cmdop/crates/tools/tools.schema.json (sha256
|
|
1
|
+
// Generated from cmdop/crates/tools/tools.schema.json (sha256 74d267a7b8e73b08, cmdop 0.1.23) 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/version.d.ts
CHANGED
package/dist/version.js
CHANGED