@cmdop/sdk 3.9.1 → 3.10.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.
@@ -1,4 +1,4 @@
1
- // Generated from cmdop/crates/tools/tools.schema.json (sha256 ea2c4cf0e8fbfef6, cmdop 0.1.31) by exports/sdk/gen/gen.ts. Do not edit.
1
+ // Generated from cmdop/crates/tools/tools.schema.json (sha256 b3559937cabc371b, cmdop 0.1.31) 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. */
@@ -156,6 +156,12 @@ export type MachineRow = {
156
156
  label?: string | null;
157
157
  /** Unix seconds of the last message from the machine. */
158
158
  last_seen: number;
159
+ /**
160
+ * How good its link is, as the machine measured its keepalive round trips (machine presence
161
+ * P6). Left out while it is offline, before its first measurement on this link, when the last
162
+ * one is older than three minutes, and from a program that does not measure (before 0.1.32).
163
+ */
164
+ link?: LinkView | null;
159
165
  /** What to call it: the name its owner gave it on the page, else the machine's own. */
160
166
  name: string;
161
167
  /**
@@ -288,6 +294,22 @@ export type DockRunView = {
288
294
  /** Unix milliseconds. */
289
295
  started: number;
290
296
  };
297
+ /** One measurement of a machine's link, as the server last received it. */
298
+ export type LinkView = {
299
+ /** Unix seconds when the server received it. */
300
+ at: number;
301
+ /**
302
+ * `measuring`, `good`, `fair` or `poor`; the machine worsens it at once and improves it only
303
+ * after it held.
304
+ */
305
+ grade: Grade;
306
+ /** How much the round trip varies, milliseconds. */
307
+ jitter_ms: number;
308
+ /** Share of the machine's last 20 pings that got no answer in time, 0–100. */
309
+ loss_pct: number;
310
+ /** The smoothed round trip from the machine to this server and back, milliseconds. */
311
+ rtt_ms: number;
312
+ };
291
313
  /** The kind of computer a machine runs on. */
292
314
  export type MachineKind = ("laptop" | "desktop") | "container" | "vm" | "server";
293
315
  /**
@@ -329,6 +351,8 @@ export type ShareView = {
329
351
  export type TaskState = "running" | "starting" | "ended" | "failed" | "lost";
330
352
  /** Who may open a preview. */
331
353
  export type Visibility = "private" | "public";
354
+ /** The link in one word. `measuring` until the machine has enough round trips to say. */
355
+ export type Grade = ("measuring" | "good" | "fair" | "poor") | "unknown";
332
356
  /** Where a share link stands. */
333
357
  export type ShareState = "live" | "expired" | "revoked";
334
358
  /** Every tool the server answers itself: its arguments and its result. */
@@ -1,4 +1,4 @@
1
- // Generated from cmdop/crates/tools/tools.schema.json (sha256 ea2c4cf0e8fbfef6, cmdop 0.1.31) by exports/sdk/gen/gen.ts. Do not edit.
1
+ // Generated from cmdop/crates/tools/tools.schema.json (sha256 b3559937cabc371b, cmdop 0.1.31) 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 ea2c4cf0e8fbfef6, cmdop 0.1.31) by exports/sdk/gen/gen.ts. Do not edit.
1
+ // Generated from cmdop/crates/tools/tools.schema.json (sha256 b3559937cabc371b, cmdop 0.1.31) 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" },
@@ -1,4 +1,4 @@
1
- // Generated from cmdop/crates/tools/tools.schema.json (sha256 ea2c4cf0e8fbfef6, cmdop 0.1.31) by exports/sdk/gen/gen.ts. Do not edit.
1
+ // Generated from cmdop/crates/tools/tools.schema.json (sha256 b3559937cabc371b, cmdop 0.1.31) 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
@@ -3,4 +3,4 @@
3
3
  * record shows which SDK made a call. The release tool rewrites it together with `package.json`; a test keeps the two
4
4
  * equal.
5
5
  */
6
- export declare const VERSION = "3.9.1";
6
+ export declare const VERSION = "3.10.0";
package/dist/version.js CHANGED
@@ -3,4 +3,4 @@
3
3
  * record shows which SDK made a call. The release tool rewrites it together with `package.json`; a test keeps the two
4
4
  * equal.
5
5
  */
6
- export const VERSION = "3.9.1";
6
+ export const VERSION = "3.10.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmdop/sdk",
3
- "version": "3.9.1",
3
+ "version": "3.10.0",
4
4
  "description": "Your machines' tools from a program: the same tools agents use through MCP, typed from Rust.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://cmdop.ai",