@cmdop/sdk 3.2.0 → 3.3.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/README.md CHANGED
@@ -24,8 +24,8 @@ its group (`box.fs.read({ path })`, `box.task.start({ command })`); `box.screens
24
24
  `code`; `deadline` and `signal` bound and cancel any call.
25
25
 
26
26
  The tools the server answers itself are methods of the client, with no machine: `cmdop.machines_list()`,
27
- `cmdop.tasks_list()`, `cmdop.history_search({ text })` and `cmdop.showtime_guide({ language })`, the guide for a
28
- short live demo of what your machines can do.
27
+ `cmdop.tasks_list()`, `cmdop.history_search({ text })`, `cmdop.docs_read({ path })` (the docs, contents first) and
28
+ `cmdop.showtime_guide({ language })`, the guide for a short live demo of what your machines can do.
29
29
 
30
30
  ## The same tools over MCP
31
31
 
@@ -1,4 +1,4 @@
1
- // Generated from cmdop/crates/tools/tools.schema.json (sha256 d9aba5e354666f95, cmdop 0.1.10) by exports/sdk/gen/gen.ts. Do not edit.
1
+ // Generated from cmdop/crates/tools/tools.schema.json (sha256 53ac9daa3bb73c83, cmdop 0.1.11) 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"];
4
4
  /** The size limits every carrier keeps. */
@@ -1,3 +1,13 @@
1
+ /** Arguments of `docs_read`. */
2
+ export type DocsReadArgs = {
3
+ /**
4
+ * The page: `guides/connect`, `/guides/connect`, its docs.cmdop.ai address or the `.md`
5
+ * link a page carries. Absent: the contents, every page with its path and title.
6
+ */
7
+ path?: string | null;
8
+ };
9
+ /** What `docs_read` returns. */
10
+ export type DocsReadOut = string;
1
11
  /** Arguments of `history_search`. */
2
12
  export type HistorySearchArgs = {
3
13
  /** Author or its start: `owner`, `agent:` (every agent), `agent:<name>`. */
@@ -252,6 +262,10 @@ export type ProcView = {
252
262
  export type TaskState = "running" | "starting" | "ended" | "failed" | "lost";
253
263
  /** Every tool the server answers itself: its arguments and its result. */
254
264
  export interface ServerToolMap {
265
+ docs_read: {
266
+ args: DocsReadArgs;
267
+ out: DocsReadOut;
268
+ };
255
269
  history_search: {
256
270
  args: HistorySearchArgs;
257
271
  out: HistorySearchOut;
@@ -272,31 +286,37 @@ export interface ServerToolMap {
272
286
  export type ServerToolName = keyof ServerToolMap;
273
287
  /** Title and description of every server tool, as the server lists them. */
274
288
  export declare const SERVER_TOOLS: {
289
+ readonly docs_read: {
290
+ readonly title: "Read the docs";
291
+ readonly 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.";
292
+ };
275
293
  readonly history_search: {
276
294
  readonly title: "Search history";
277
295
  readonly description: "Past tasks, tool calls and agent sessions by machine, author, task, time and text, newest first. Calls carry no arguments; journal_search on the machine has them.";
278
296
  };
279
297
  readonly machines_list: {
280
298
  readonly title: "List machines";
281
- readonly description: "The owner's machines: name, id, `state` (online; stale = linked, not answering; paused; offline), `last_seen`, `activity`, `tools`, build, `behind` (newer release out). Only online ones take calls.";
299
+ readonly description: "The owner's machines: name, id, `state` (online; stale = not answering; paused; offline), `last_seen`, `activity`, `tools` (screen and control are here), build, `behind`. Only online ones take calls.";
282
300
  };
283
301
  readonly showtime_guide: {
284
302
  readonly title: "Showtime guide";
285
- readonly description: "Call when the user asks to see what CMDOP can do (a demo or a show): returns a guide for a short live demonstration on their machines.";
303
+ readonly description: "Call when the user asks to see what CMDOP can do (a demo or a show), or offer it to a user new to CMDOP: returns a guide for a short live demonstration on their machines.";
286
304
  };
287
305
  readonly tasks_list: {
288
306
  readonly title: "List running work";
289
307
  readonly description: "Everything running now, by author. `tasks`: started through cmdop. `outside`: other processes per machine, by agent:claude-code, agent:codex or user. Ended ones: history_search.";
290
308
  };
291
309
  };
292
- export declare const SERVER_TOOL_NAMES: readonly ["history_search", "machines_list", "showtime_guide", "tasks_list"];
310
+ export declare const SERVER_TOOL_NAMES: readonly ["docs_read", "history_search", "machines_list", "showtime_guide", "tasks_list"];
293
311
  /** The server tools as client methods (`cmdop.showtime_guide()`): no machine, never sealed. */
294
312
  export interface ServerMethods<O> {
313
+ /** 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. */
314
+ docs_read(args?: DocsReadArgs, opts?: O): Promise<DocsReadOut>;
295
315
  /** Past tasks, tool calls and agent sessions by machine, author, task, time and text, newest first. Calls carry no arguments; journal_search on the machine has them. */
296
316
  history_search(args?: HistorySearchArgs, opts?: O): Promise<HistorySearchOut>;
297
- /** The owner's machines: name, id, `state` (online; stale = linked, not answering; paused; offline), `last_seen`, `activity`, `tools`, build, `behind` (newer release out). Only online ones take calls. */
317
+ /** The owner's machines: name, id, `state` (online; stale = not answering; paused; offline), `last_seen`, `activity`, `tools` (screen and control are here), build, `behind`. Only online ones take calls. */
298
318
  machines_list(args?: MachinesListArgs, opts?: O): Promise<MachinesListOut>;
299
- /** Call when the user asks to see what CMDOP can do (a demo or a show): returns a guide for a short live demonstration on their machines. */
319
+ /** Call when the user asks to see what CMDOP can do (a demo or a show), or offer it to a user new to CMDOP: returns a guide for a short live demonstration on their machines. */
300
320
  showtime_guide(args?: ShowtimeGuideArgs, opts?: O): Promise<ShowtimeGuideOut>;
301
321
  /** Everything running now, by author. `tasks`: started through cmdop. `outside`: other processes per machine, by agent:claude-code, agent:codex or user. Ended ones: history_search. */
302
322
  tasks_list(args?: TasksListArgs, opts?: O): Promise<TasksListOut>;
@@ -1,9 +1,10 @@
1
- // Generated from cmdop/crates/tools/tools.schema.json (sha256 d9aba5e354666f95, cmdop 0.1.10) by exports/sdk/gen/gen.ts. Do not edit.
1
+ // Generated from cmdop/crates/tools/tools.schema.json (sha256 53ac9daa3bb73c83, cmdop 0.1.11) 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
+ 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." },
4
5
  history_search: { title: "Search history", description: "Past tasks, tool calls and agent sessions by machine, author, task, time and text, newest first. Calls carry no arguments; journal_search on the machine has them." },
5
- machines_list: { title: "List machines", description: "The owner's machines: name, id, `state` (online; stale = linked, not answering; paused; offline), `last_seen`, `activity`, `tools`, build, `behind` (newer release out). Only online ones take calls." },
6
- showtime_guide: { title: "Showtime guide", description: "Call when the user asks to see what CMDOP can do (a demo or a show): returns a guide for a short live demonstration on their machines." },
6
+ machines_list: { title: "List machines", description: "The owner's machines: name, id, `state` (online; stale = not answering; paused; offline), `last_seen`, `activity`, `tools` (screen and control are here), build, `behind`. Only online ones take calls." },
7
+ showtime_guide: { title: "Showtime guide", description: "Call when the user asks to see what CMDOP can do (a demo or a show), or offer it to a user new to CMDOP: returns a guide for a short live demonstration on their machines." },
7
8
  tasks_list: { title: "List running work", description: "Everything running now, by author. `tasks`: started through cmdop. `outside`: other processes per machine, by agent:claude-code, agent:codex or user. Ended ones: history_search." },
8
9
  };
9
- export const SERVER_TOOL_NAMES = ["history_search", "machines_list", "showtime_guide", "tasks_list"];
10
+ export const SERVER_TOOL_NAMES = ["docs_read", "history_search", "machines_list", "showtime_guide", "tasks_list"];
@@ -1,4 +1,4 @@
1
- // Generated from cmdop/crates/tools/tools.schema.json (sha256 d9aba5e354666f95, cmdop 0.1.10) by exports/sdk/gen/gen.ts. Do not edit.
1
+ // Generated from cmdop/crates/tools/tools.schema.json (sha256 53ac9daa3bb73c83, cmdop 0.1.11) 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
  app: { open: "app_open" },
@@ -1,4 +1,4 @@
1
- // Generated from cmdop/crates/tools/tools.schema.json (sha256 d9aba5e354666f95, cmdop 0.1.10) by exports/sdk/gen/gen.ts. Do not edit.
1
+ // Generated from cmdop/crates/tools/tools.schema.json (sha256 53ac9daa3bb73c83, cmdop 0.1.11) 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
  app_open: { risk: "control", added: "0.0.2", timeoutSecs: 30, description: "Launch or focus an app, or open a file in it. The app has to be allowed for `control` on this machine. Opens in the background unless `background` is false." },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmdop/sdk",
3
- "version": "3.2.0",
3
+ "version": "3.3.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",