@cubos/agent-sdk 0.0.1159880 → 0.0.1161182
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.
|
@@ -40,6 +40,7 @@ export declare function conversationsAdminApi(t: Transport, tenantSlug: string):
|
|
|
40
40
|
user: import("../generated/schema.js").components["schemas"]["UserRef"] | null;
|
|
41
41
|
user_identifier: string | null;
|
|
42
42
|
user_identifier_label: string | null;
|
|
43
|
+
waiting_on_mcp: import("../generated/schema.js").components["schemas"]["WaitingOnMcp"] | null;
|
|
43
44
|
}[]>;
|
|
44
45
|
/** Every tag the tenant's conversations carry, with how many carry each —
|
|
45
46
|
* most used first. Tags have no registry: this is the vocabulary in use. */
|
|
@@ -71,6 +72,7 @@ export declare function conversationsAdminApi(t: Transport, tenantSlug: string):
|
|
|
71
72
|
user: import("../generated/schema.js").components["schemas"]["UserRef"] | null;
|
|
72
73
|
user_identifier: string | null;
|
|
73
74
|
user_identifier_label: string | null;
|
|
75
|
+
waiting_on_mcp: import("../generated/schema.js").components["schemas"]["WaitingOnMcp"] | null;
|
|
74
76
|
}>;
|
|
75
77
|
create: (input: Schemas["CreateConversationInput"]) => Promise<{
|
|
76
78
|
agent: import("../generated/schema.js").components["schemas"]["AgentRef"] | null;
|
|
@@ -96,6 +98,7 @@ export declare function conversationsAdminApi(t: Transport, tenantSlug: string):
|
|
|
96
98
|
user: import("../generated/schema.js").components["schemas"]["UserRef"] | null;
|
|
97
99
|
user_identifier: string | null;
|
|
98
100
|
user_identifier_label: string | null;
|
|
101
|
+
waiting_on_mcp: import("../generated/schema.js").components["schemas"]["WaitingOnMcp"] | null;
|
|
99
102
|
}>;
|
|
100
103
|
update: (id: string, input: Schemas["UpdateConversationInput"]) => Promise<{
|
|
101
104
|
agent: import("../generated/schema.js").components["schemas"]["AgentRef"] | null;
|
|
@@ -121,6 +124,7 @@ export declare function conversationsAdminApi(t: Transport, tenantSlug: string):
|
|
|
121
124
|
user: import("../generated/schema.js").components["schemas"]["UserRef"] | null;
|
|
122
125
|
user_identifier: string | null;
|
|
123
126
|
user_identifier_label: string | null;
|
|
127
|
+
waiting_on_mcp: import("../generated/schema.js").components["schemas"]["WaitingOnMcp"] | null;
|
|
124
128
|
}>;
|
|
125
129
|
archive: (id: string) => Promise<{
|
|
126
130
|
agent: import("../generated/schema.js").components["schemas"]["AgentRef"] | null;
|
|
@@ -146,6 +150,7 @@ export declare function conversationsAdminApi(t: Transport, tenantSlug: string):
|
|
|
146
150
|
user: import("../generated/schema.js").components["schemas"]["UserRef"] | null;
|
|
147
151
|
user_identifier: string | null;
|
|
148
152
|
user_identifier_label: string | null;
|
|
153
|
+
waiting_on_mcp: import("../generated/schema.js").components["schemas"]["WaitingOnMcp"] | null;
|
|
149
154
|
}>;
|
|
150
155
|
/** Clears the backoff and re-dispatches a conversation stuck after failures. */
|
|
151
156
|
retryNow: (id: string) => Promise<{
|
|
@@ -172,6 +177,7 @@ export declare function conversationsAdminApi(t: Transport, tenantSlug: string):
|
|
|
172
177
|
user: import("../generated/schema.js").components["schemas"]["UserRef"] | null;
|
|
173
178
|
user_identifier: string | null;
|
|
174
179
|
user_identifier_label: string | null;
|
|
180
|
+
waiting_on_mcp: import("../generated/schema.js").components["schemas"]["WaitingOnMcp"] | null;
|
|
175
181
|
}>;
|
|
176
182
|
listEvents: (id: string, query?: {
|
|
177
183
|
before?: number;
|
package/dist/admin/mcps.d.ts
CHANGED
|
@@ -8,11 +8,13 @@ import type { Schemas } from "../schemas.js";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare function mcpsApi(t: Transport, tenantSlug: string): {
|
|
10
10
|
list: (signal?: AbortSignal) => Promise<{
|
|
11
|
+
blocking?: boolean;
|
|
11
12
|
created_at: string;
|
|
12
13
|
display_name: string;
|
|
13
14
|
id: string;
|
|
14
15
|
last_error: string | null;
|
|
15
16
|
last_refreshed_at: string | null;
|
|
17
|
+
outage: import("../generated/schema.js").components["schemas"]["McpOutage"] | null;
|
|
16
18
|
slug: string;
|
|
17
19
|
tool_count: number;
|
|
18
20
|
transport: import("../generated/schema.js").components["schemas"]["McpTransport"];
|
|
@@ -20,6 +22,7 @@ export declare function mcpsApi(t: Transport, tenantSlug: string): {
|
|
|
20
22
|
url: string;
|
|
21
23
|
}[]>;
|
|
22
24
|
get: (slug: string, signal?: AbortSignal) => Promise<{
|
|
25
|
+
blocking?: boolean;
|
|
23
26
|
created_at: string;
|
|
24
27
|
display_name: string;
|
|
25
28
|
dynamic_tools: boolean;
|
|
@@ -30,6 +33,7 @@ export declare function mcpsApi(t: Transport, tenantSlug: string): {
|
|
|
30
33
|
id: string;
|
|
31
34
|
last_error: string | null;
|
|
32
35
|
last_refreshed_at: string | null;
|
|
36
|
+
outage: import("../generated/schema.js").components["schemas"]["McpOutage"] | null;
|
|
33
37
|
skills: import("../generated/schema.js").components["schemas"]["McpSkillSummary"][];
|
|
34
38
|
slug: string;
|
|
35
39
|
tools: import("../generated/schema.js").components["schemas"]["McpTool"][];
|
|
@@ -38,6 +42,7 @@ export declare function mcpsApi(t: Transport, tenantSlug: string): {
|
|
|
38
42
|
url: string;
|
|
39
43
|
}>;
|
|
40
44
|
create: (input: Schemas["CreateMcpInput"]) => Promise<{
|
|
45
|
+
blocking?: boolean;
|
|
41
46
|
created_at: string;
|
|
42
47
|
display_name: string;
|
|
43
48
|
dynamic_tools: boolean;
|
|
@@ -48,6 +53,7 @@ export declare function mcpsApi(t: Transport, tenantSlug: string): {
|
|
|
48
53
|
id: string;
|
|
49
54
|
last_error: string | null;
|
|
50
55
|
last_refreshed_at: string | null;
|
|
56
|
+
outage: import("../generated/schema.js").components["schemas"]["McpOutage"] | null;
|
|
51
57
|
skills: import("../generated/schema.js").components["schemas"]["McpSkillSummary"][];
|
|
52
58
|
slug: string;
|
|
53
59
|
tools: import("../generated/schema.js").components["schemas"]["McpTool"][];
|
|
@@ -56,6 +62,7 @@ export declare function mcpsApi(t: Transport, tenantSlug: string): {
|
|
|
56
62
|
url: string;
|
|
57
63
|
}>;
|
|
58
64
|
update: (currentSlug: string, input: Schemas["UpdateMcpInput"]) => Promise<{
|
|
65
|
+
blocking?: boolean;
|
|
59
66
|
created_at: string;
|
|
60
67
|
display_name: string;
|
|
61
68
|
dynamic_tools: boolean;
|
|
@@ -66,6 +73,7 @@ export declare function mcpsApi(t: Transport, tenantSlug: string): {
|
|
|
66
73
|
id: string;
|
|
67
74
|
last_error: string | null;
|
|
68
75
|
last_refreshed_at: string | null;
|
|
76
|
+
outage: import("../generated/schema.js").components["schemas"]["McpOutage"] | null;
|
|
69
77
|
skills: import("../generated/schema.js").components["schemas"]["McpSkillSummary"][];
|
|
70
78
|
slug: string;
|
|
71
79
|
tools: import("../generated/schema.js").components["schemas"]["McpTool"][];
|
|
@@ -76,6 +84,7 @@ export declare function mcpsApi(t: Transport, tenantSlug: string): {
|
|
|
76
84
|
delete: (slug: string) => Promise<void>;
|
|
77
85
|
/** Re-handshakes the server and re-reads its tool list. */
|
|
78
86
|
refresh: (slug: string) => Promise<{
|
|
87
|
+
blocking?: boolean;
|
|
79
88
|
created_at: string;
|
|
80
89
|
display_name: string;
|
|
81
90
|
dynamic_tools: boolean;
|
|
@@ -86,6 +95,7 @@ export declare function mcpsApi(t: Transport, tenantSlug: string): {
|
|
|
86
95
|
id: string;
|
|
87
96
|
last_error: string | null;
|
|
88
97
|
last_refreshed_at: string | null;
|
|
98
|
+
outage: import("../generated/schema.js").components["schemas"]["McpOutage"] | null;
|
|
89
99
|
skills: import("../generated/schema.js").components["schemas"]["McpSkillSummary"][];
|
|
90
100
|
slug: string;
|
|
91
101
|
tools: import("../generated/schema.js").components["schemas"]["McpTool"][];
|
|
@@ -316,7 +316,7 @@ export interface paths {
|
|
|
316
316
|
};
|
|
317
317
|
content?: never;
|
|
318
318
|
};
|
|
319
|
-
/** @description
|
|
319
|
+
/** @description A later refresh or sweep of this provider started while this one ran; its result stands and this one's was dropped. */
|
|
320
320
|
409: {
|
|
321
321
|
headers: {
|
|
322
322
|
[name: string]: unknown;
|
|
@@ -3411,7 +3411,7 @@ export interface paths {
|
|
|
3411
3411
|
put?: never;
|
|
3412
3412
|
/**
|
|
3413
3413
|
* Refresh models
|
|
3414
|
-
* @description Re-fetches the provider upstream and reconciles the cached `provider_models` catalog: new rows are inserted, vanished rows are soft-deleted via `disappeared_at`, and capability probes re-run. Returns the reconciled catalog.
|
|
3414
|
+
* @description Re-fetches the provider upstream and reconciles the cached `provider_models` catalog: new rows are inserted, vanished rows are soft-deleted via `disappeared_at`, and capability probes re-run. Returns the reconciled catalog. When passes overlap, one that started earlier writes nothing once a later one has started: it stops and returns 409, and the later pass's catalog and health are the ones that stand. Only ever touches a provider owned by `tenant_slug` itself — a shared provider is refreshed through `POST /ai-providers/shared/{slug}/models/refresh` instead.
|
|
3415
3415
|
*/
|
|
3416
3416
|
post: {
|
|
3417
3417
|
parameters: {
|
|
@@ -3453,7 +3453,7 @@ export interface paths {
|
|
|
3453
3453
|
};
|
|
3454
3454
|
content?: never;
|
|
3455
3455
|
};
|
|
3456
|
-
/** @description
|
|
3456
|
+
/** @description A later refresh or sweep of this provider started while this one ran; its result stands and this one's was dropped. */
|
|
3457
3457
|
409: {
|
|
3458
3458
|
headers: {
|
|
3459
3459
|
[name: string]: unknown;
|
|
@@ -9024,7 +9024,7 @@ export interface paths {
|
|
|
9024
9024
|
put?: never;
|
|
9025
9025
|
/**
|
|
9026
9026
|
* Refresh MCP tool catalog
|
|
9027
|
-
* @description Calls `tools/list` on the MCP server, upserts the catalog, flags tools absent upstream as disappeared, and runs per-provider tool validation into `provider_incompatibilities`. Probe failures land in `last_error`; the refreshed MCP is always returned.
|
|
9027
|
+
* @description Calls `tools/list` on the MCP server, upserts the catalog, flags tools absent upstream as disappeared, and runs per-provider tool validation into `provider_incompatibilities`. Probe failures, and a listing that cannot be stored, land in `last_error`; the refreshed MCP is always returned.
|
|
9028
9028
|
*/
|
|
9029
9029
|
post: {
|
|
9030
9030
|
parameters: {
|
|
@@ -12665,7 +12665,9 @@ export interface components {
|
|
|
12665
12665
|
/**
|
|
12666
12666
|
* Format: int32
|
|
12667
12667
|
* @description Per-agent CPU-time cap (seconds) for the `eval` built-in tool; time the script
|
|
12668
|
-
* spends waiting on tool calls, fetches or a sleep does not count.
|
|
12668
|
+
* spends waiting on tool calls, fetches or a sleep does not count. A script stuck
|
|
12669
|
+
* waiting is stopped by a fixed wall-clock ceiling instead: 10 minutes, or twice
|
|
12670
|
+
* this cap when that is longer.
|
|
12669
12671
|
*/
|
|
12670
12672
|
code_execution_timeout_seconds: number;
|
|
12671
12673
|
/**
|
|
@@ -13480,6 +13482,7 @@ export interface components {
|
|
|
13480
13482
|
* the contact without fetching the full user per row. Null when unlabeled or unbound.
|
|
13481
13483
|
*/
|
|
13482
13484
|
user_identifier_label: string | null;
|
|
13485
|
+
waiting_on_mcp: components["schemas"]["WaitingOnMcp"] | null;
|
|
13483
13486
|
};
|
|
13484
13487
|
ConversationContext: {
|
|
13485
13488
|
/** @description The context currently set, or null when the client has set none. */
|
|
@@ -13853,7 +13856,9 @@ export interface components {
|
|
|
13853
13856
|
/**
|
|
13854
13857
|
* Format: int32
|
|
13855
13858
|
* @description Per-agent CPU-time cap (seconds) for the `eval` built-in tool; time the script
|
|
13856
|
-
* spends waiting on tool calls, fetches or a sleep does not count.
|
|
13859
|
+
* spends waiting on tool calls, fetches or a sleep does not count. A script stuck
|
|
13860
|
+
* waiting is stopped by a fixed wall-clock ceiling instead: 10 minutes, or twice
|
|
13861
|
+
* this cap when that is longer. Omit ⇒ default 30.
|
|
13857
13862
|
*/
|
|
13858
13863
|
code_execution_timeout_seconds?: number | null;
|
|
13859
13864
|
/**
|
|
@@ -14097,6 +14102,8 @@ export interface components {
|
|
|
14097
14102
|
slug: string;
|
|
14098
14103
|
};
|
|
14099
14104
|
CreateMcpInput: {
|
|
14105
|
+
/** @description See [`Mcp::blocking`]. Defaults to true. */
|
|
14106
|
+
blocking?: boolean;
|
|
14100
14107
|
display_name: string;
|
|
14101
14108
|
dynamic_tools?: boolean;
|
|
14102
14109
|
/**
|
|
@@ -14422,7 +14429,7 @@ export interface components {
|
|
|
14422
14429
|
slug: string | null;
|
|
14423
14430
|
};
|
|
14424
14431
|
/** @enum {string} */
|
|
14425
|
-
EventType: "user_message" | "task_prompt" | "agent_directive" | "agent_message" | "agent_file" | "llm_call" | "tool_result" | "turn_done" | "todo_update" | "memory_lookup" | "media_transcription" | "sub_conversation_started" | "sub_conversation_finished" | "eval_subcall_request" | "eval_subcall_result" | "compaction_done" | "filesystem_root" | "harness_error" | "guardrail_verdict" | "client_tool_call" | "title_generated" | "context_update" | "time_notice";
|
|
14432
|
+
EventType: "user_message" | "task_prompt" | "agent_directive" | "agent_message" | "agent_file" | "llm_call" | "tool_result" | "turn_done" | "todo_update" | "memory_lookup" | "media_transcription" | "sub_conversation_started" | "sub_conversation_finished" | "eval_subcall_request" | "eval_subcall_result" | "compaction_done" | "filesystem_root" | "harness_error" | "guardrail_verdict" | "scheduled_runs_update" | "auto_call_update" | "client_tool_call" | "title_generated" | "context_update" | "time_notice";
|
|
14426
14433
|
ExternalChannel: {
|
|
14427
14434
|
agent: components["schemas"]["AgentRef"];
|
|
14428
14435
|
connection_secret_hint: string;
|
|
@@ -14745,6 +14752,15 @@ export interface components {
|
|
|
14745
14752
|
tokens?: components["schemas"]["TokenCounts"];
|
|
14746
14753
|
};
|
|
14747
14754
|
Mcp: {
|
|
14755
|
+
/**
|
|
14756
|
+
* @description While this MCP is unreachable, every conversation whose agent reaches
|
|
14757
|
+
* it waits — no model call, nothing sent to the user — and resumes when
|
|
14758
|
+
* it answers again, re-running the calls that failed when that is safe:
|
|
14759
|
+
* a call that certainly was not sent, or one to a tool marked read-only
|
|
14760
|
+
* or idempotent. When false, a failure is a tool error the model reads
|
|
14761
|
+
* and works around.
|
|
14762
|
+
*/
|
|
14763
|
+
blocking?: boolean;
|
|
14748
14764
|
/** Format: date-time */
|
|
14749
14765
|
created_at: string;
|
|
14750
14766
|
display_name: string;
|
|
@@ -14782,6 +14798,7 @@ export interface components {
|
|
|
14782
14798
|
last_error: string | null;
|
|
14783
14799
|
/** Format: date-time */
|
|
14784
14800
|
last_refreshed_at: string | null;
|
|
14801
|
+
outage: components["schemas"]["McpOutage"] | null;
|
|
14785
14802
|
/**
|
|
14786
14803
|
* @description Skills shipped with this MCP. An agent that enables the MCP inherits
|
|
14787
14804
|
* them, and a skill can gate a subset of the MCP's tools.
|
|
@@ -14799,6 +14816,8 @@ export interface components {
|
|
|
14799
14816
|
error: string;
|
|
14800
14817
|
};
|
|
14801
14818
|
McpListItem: {
|
|
14819
|
+
/** @description See [`Mcp::blocking`]. */
|
|
14820
|
+
blocking?: boolean;
|
|
14802
14821
|
/** Format: date-time */
|
|
14803
14822
|
created_at: string;
|
|
14804
14823
|
display_name: string;
|
|
@@ -14807,6 +14826,7 @@ export interface components {
|
|
|
14807
14826
|
last_error: string | null;
|
|
14808
14827
|
/** Format: date-time */
|
|
14809
14828
|
last_refreshed_at: string | null;
|
|
14829
|
+
outage: components["schemas"]["McpOutage"] | null;
|
|
14810
14830
|
slug: string;
|
|
14811
14831
|
/** Format: int64 */
|
|
14812
14832
|
tool_count: number;
|
|
@@ -14815,6 +14835,35 @@ export interface components {
|
|
|
14815
14835
|
updated_at: string;
|
|
14816
14836
|
url: string;
|
|
14817
14837
|
};
|
|
14838
|
+
/**
|
|
14839
|
+
* @description An MCP that stopped answering: a request to it failed in transport (no
|
|
14840
|
+
* connection, no answer in time, a 502/503/504), and nothing has answered
|
|
14841
|
+
* since. Cleared by the first answer — a turn's call or a probe.
|
|
14842
|
+
*/
|
|
14843
|
+
McpOutage: {
|
|
14844
|
+
/**
|
|
14845
|
+
* Format: int32
|
|
14846
|
+
* @description Failures in a row: the one that opened the outage plus every probe
|
|
14847
|
+
* that failed since (and, when a probe answered but the calls kept
|
|
14848
|
+
* failing, the outages before it).
|
|
14849
|
+
*/
|
|
14850
|
+
consecutive_failures: number;
|
|
14851
|
+
/** @description The newest transport failure, with its causes. */
|
|
14852
|
+
last_error: string | null;
|
|
14853
|
+
/** Format: date-time */
|
|
14854
|
+
last_error_at: string | null;
|
|
14855
|
+
/**
|
|
14856
|
+
* Format: date-time
|
|
14857
|
+
* @description When the server is tried next. Probes back off from 15 s to once a
|
|
14858
|
+
* minute.
|
|
14859
|
+
*/
|
|
14860
|
+
next_probe_at: string;
|
|
14861
|
+
/**
|
|
14862
|
+
* Format: date-time
|
|
14863
|
+
* @description When the first failure of this outage was seen.
|
|
14864
|
+
*/
|
|
14865
|
+
since: string;
|
|
14866
|
+
};
|
|
14818
14867
|
/** @description Reduced MCP reference embedded into agent MCP listings in place of a bare `mcp_id`. */
|
|
14819
14868
|
McpRef: {
|
|
14820
14869
|
display_name: string;
|
|
@@ -15971,7 +16020,9 @@ export interface components {
|
|
|
15971
16020
|
/**
|
|
15972
16021
|
* Format: int32
|
|
15973
16022
|
* @description Per-agent CPU-time cap (seconds) for the `eval` built-in tool; time the script
|
|
15974
|
-
* spends waiting on tool calls, fetches or a sleep does not count.
|
|
16023
|
+
* spends waiting on tool calls, fetches or a sleep does not count. A script stuck
|
|
16024
|
+
* waiting is stopped by a fixed wall-clock ceiling instead: 10 minutes, or twice
|
|
16025
|
+
* this cap when that is longer.
|
|
15975
16026
|
*/
|
|
15976
16027
|
code_execution_timeout_seconds?: number | null;
|
|
15977
16028
|
/**
|
|
@@ -16157,6 +16208,11 @@ export interface components {
|
|
|
16157
16208
|
slug?: string | null;
|
|
16158
16209
|
};
|
|
16159
16210
|
UpdateMcpInput: {
|
|
16211
|
+
/**
|
|
16212
|
+
* @description See [`Mcp::blocking`]. Turning it off while the MCP is down releases
|
|
16213
|
+
* the conversations waiting on it at once.
|
|
16214
|
+
*/
|
|
16215
|
+
blocking?: boolean | null;
|
|
16160
16216
|
display_name?: string | null;
|
|
16161
16217
|
dynamic_tools?: boolean | null;
|
|
16162
16218
|
/**
|
|
@@ -16467,6 +16523,16 @@ export interface components {
|
|
|
16467
16523
|
token: string;
|
|
16468
16524
|
};
|
|
16469
16525
|
Value: unknown;
|
|
16526
|
+
/** @description See [`Conversation::waiting_on_mcp`]. */
|
|
16527
|
+
WaitingOnMcp: {
|
|
16528
|
+
display_name: string;
|
|
16529
|
+
/**
|
|
16530
|
+
* Format: date-time
|
|
16531
|
+
* @description When the MCP's outage began.
|
|
16532
|
+
*/
|
|
16533
|
+
since: string;
|
|
16534
|
+
slug: string;
|
|
16535
|
+
};
|
|
16470
16536
|
WhatsappChannel: {
|
|
16471
16537
|
agent: components["schemas"]["AgentRef"];
|
|
16472
16538
|
/**
|