@cubos/agent-sdk 0.0.1143127 → 0.0.1143463

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.
@@ -23,6 +23,8 @@ export declare function mcpsApi(t: Transport, tenantSlug: string): {
23
23
  created_at: string;
24
24
  display_name: string;
25
25
  dynamic_tools: boolean;
26
+ graphql_eligible?: boolean;
27
+ graphql_enabled: boolean;
26
28
  has_headers: boolean;
27
29
  header_names: string[] | null;
28
30
  id: string;
@@ -39,6 +41,8 @@ export declare function mcpsApi(t: Transport, tenantSlug: string): {
39
41
  created_at: string;
40
42
  display_name: string;
41
43
  dynamic_tools: boolean;
44
+ graphql_eligible?: boolean;
45
+ graphql_enabled: boolean;
42
46
  has_headers: boolean;
43
47
  header_names: string[] | null;
44
48
  id: string;
@@ -55,6 +59,8 @@ export declare function mcpsApi(t: Transport, tenantSlug: string): {
55
59
  created_at: string;
56
60
  display_name: string;
57
61
  dynamic_tools: boolean;
62
+ graphql_eligible?: boolean;
63
+ graphql_enabled: boolean;
58
64
  has_headers: boolean;
59
65
  header_names: string[] | null;
60
66
  id: string;
@@ -73,6 +79,8 @@ export declare function mcpsApi(t: Transport, tenantSlug: string): {
73
79
  created_at: string;
74
80
  display_name: string;
75
81
  dynamic_tools: boolean;
82
+ graphql_eligible?: boolean;
83
+ graphql_enabled: boolean;
76
84
  has_headers: boolean;
77
85
  header_names: string[] | null;
78
86
  id: string;
@@ -5195,7 +5195,7 @@ export interface paths {
5195
5195
  };
5196
5196
  /**
5197
5197
  * List a filesystem directory
5198
- * @description Lists one directory of the conversation's virtual filesystem — a single level, never recursive. The filesystem is a content-addressed tree projected from the event log; every file mutation is a browsable snapshot. Pass `at_seq` to view the tree as it stood at a given event (the latest snapshot at or before it), which reaches history the agent can no longer see. Without `at_seq` you get the live tree — exactly what the agent would be shown on its next turn, so it comes back empty once the filesystem has expired after enough idle turns, which is also the tree a write would start from. `path` defaults to the root `/`. An empty list with null `root_event_id` means no files exist there.
5198
+ * @description Lists one directory of the conversation's virtual filesystem — a single level, never recursive. The filesystem is a content-addressed tree projected from the event log; every file mutation is a browsable snapshot. Pass `at_seq` to view the tree as it stood at a given event (the latest snapshot at or before it), which reaches history the agent can no longer see. Without `at_seq` you get the live tree — exactly what the agent would be shown on its next turn, so it comes back empty once the filesystem has expired after enough idle turns, which is also the tree a write would start from. `path` defaults to the root `/`. An empty list with null `root_event_id` means no files exist there. 410 when the directory is in the tree but its listing was reclaimed from the blob store (bucket lifecycle) — permanent, not a retry.
5199
5199
  */
5200
5200
  get: {
5201
5201
  parameters: {
@@ -5248,6 +5248,12 @@ export interface paths {
5248
5248
  };
5249
5249
  content?: never;
5250
5250
  };
5251
+ 410: {
5252
+ headers: {
5253
+ [name: string]: unknown;
5254
+ };
5255
+ content?: never;
5256
+ };
5251
5257
  };
5252
5258
  };
5253
5259
  put?: never;
@@ -5267,7 +5273,7 @@ export interface paths {
5267
5273
  };
5268
5274
  /**
5269
5275
  * Download a filesystem file
5270
- * @description Streams the bytes of one file from the conversation's virtual filesystem as an attachment. Pass `at_seq` to download the file as it stood at a given event, which reaches history the agent can no longer see; without it you read the live tree, which 404s once the filesystem has expired after enough idle turns. `Content-Type` is the stored mime (inferred from the extension for entries that predate it); the `Content-Disposition` filename is the entry name.
5276
+ * @description Streams the bytes of one file from the conversation's virtual filesystem as an attachment. Pass `at_seq` to download the file as it stood at a given event, which reaches history the agent can no longer see; without it you read the live tree, which 404s once the filesystem has expired after enough idle turns. 410 when the file is still in the tree but its bytes were reclaimed from the blob store (bucket lifecycle) — permanent, not a retry. `Content-Type` is the stored mime (inferred from the extension for entries that predate it); the `Content-Disposition` filename is the entry name.
5271
5277
  */
5272
5278
  get: {
5273
5279
  parameters: {
@@ -5319,6 +5325,12 @@ export interface paths {
5319
5325
  };
5320
5326
  content?: never;
5321
5327
  };
5328
+ 410: {
5329
+ headers: {
5330
+ [name: string]: unknown;
5331
+ };
5332
+ content?: never;
5333
+ };
5322
5334
  };
5323
5335
  };
5324
5336
  /**
@@ -6405,6 +6417,12 @@ export interface paths {
6405
6417
  };
6406
6418
  content?: never;
6407
6419
  };
6420
+ 410: {
6421
+ headers: {
6422
+ [name: string]: unknown;
6423
+ };
6424
+ content?: never;
6425
+ };
6408
6426
  };
6409
6427
  };
6410
6428
  put?: never;
@@ -6476,6 +6494,12 @@ export interface paths {
6476
6494
  };
6477
6495
  content?: never;
6478
6496
  };
6497
+ 410: {
6498
+ headers: {
6499
+ [name: string]: unknown;
6500
+ };
6501
+ content?: never;
6502
+ };
6479
6503
  };
6480
6504
  };
6481
6505
  /**
@@ -7984,7 +8008,9 @@ export interface paths {
7984
8008
  headers: {
7985
8009
  [name: string]: unknown;
7986
8010
  };
7987
- content?: never;
8011
+ content: {
8012
+ "application/json": components["schemas"]["McpCreateError"];
8013
+ };
7988
8014
  };
7989
8015
  401: {
7990
8016
  headers: {
@@ -12236,6 +12262,12 @@ export interface components {
12236
12262
  CreateMcpInput: {
12237
12263
  display_name: string;
12238
12264
  dynamic_tools?: boolean;
12265
+ /**
12266
+ * @description Rejected with `400` unless the probe leaves the MCP `graphql_eligible`:
12267
+ * enabled read-only tools with output schemas, at least one of which
12268
+ * takes an id another one returns.
12269
+ */
12270
+ graphql_enabled?: boolean;
12239
12271
  /**
12240
12272
  * @description Extra HTTP headers sent on every request to this MCP server, as a JSON
12241
12273
  * object **encoded in a string** — NOT raw `Name: value` header lines.
@@ -12460,6 +12492,14 @@ export interface components {
12460
12492
  feature_task_planning: boolean;
12461
12493
  feature_user_notes: boolean;
12462
12494
  feature_web_search: boolean;
12495
+ /**
12496
+ * Format: int32
12497
+ * @description Mirrors `agents.filesystem_ttl_turns`. Only the file tools' description
12498
+ * depends on it — the note says whether the tree persists or after how
12499
+ * many idle turns it resets — so the preview counts the same sentence the
12500
+ * agent would be shown.
12501
+ */
12502
+ filesystem_ttl_turns?: number | null;
12463
12503
  identity_md?: string | null;
12464
12504
  /**
12465
12505
  * Format: uuid
@@ -12756,6 +12796,21 @@ export interface components {
12756
12796
  * turn instead of relying on the cached `mcp_tools` snapshot.
12757
12797
  */
12758
12798
  dynamic_tools: boolean;
12799
+ /**
12800
+ * @description Computed, never stored: whether the enabled tools would give that
12801
+ * schema at least one traversal — some read-only tool's result carries
12802
+ * the named id another read-only tool takes. Without one a query is the
12803
+ * direct call with the whole schema as prompt overhead, so the flag is
12804
+ * refused. Recomputed on every read because a refresh can change it.
12805
+ * Defaulted so the CLI can decode responses from pre-field servers.
12806
+ */
12807
+ graphql_eligible?: boolean;
12808
+ /**
12809
+ * @description When true, the agent also gets a synthesized `{slug}__graphql` tool that
12810
+ * queries this MCP's read-only tools through one GraphQL schema derived
12811
+ * from their output schemas. Can only be turned on while `graphql_eligible`.
12812
+ */
12813
+ graphql_enabled: boolean;
12759
12814
  /** @description Whether the headers field has a value (plaintext is never returned). */
12760
12815
  has_headers: boolean;
12761
12816
  /**
@@ -13674,6 +13729,11 @@ export interface components {
13674
13729
  UpdateMcpInput: {
13675
13730
  display_name?: string | null;
13676
13731
  dynamic_tools?: boolean | null;
13732
+ /**
13733
+ * @description Turning this on is rejected with `400` unless the MCP currently has at
13734
+ * least one enabled read-only tool that advertises an output schema.
13735
+ */
13736
+ graphql_enabled?: boolean | null;
13677
13737
  /**
13678
13738
  * @description A JSON object encoded in a string (same wire format as on create) that
13679
13739
  * PATCHes the stored header set: a string value replaces that header, a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubos/agent-sdk",
3
- "version": "0.0.1143127",
3
+ "version": "0.0.1143463",
4
4
  "type": "module",
5
5
  "description": "Client for the Cubos Agent conversation API. Runs anywhere fetch does.",
6
6
  "license": "SEE LICENSE IN LICENSE",