@cubos/agent-sdk 0.0.1150539 → 0.0.1151293

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.
@@ -29,7 +29,7 @@ export declare function agentsApi(t: Transport, tenantSlug: string): {
29
29
  created_at: string;
30
30
  description: string;
31
31
  display_name: string;
32
- embedding_model: null | import("../generated/schema.js").components["schemas"]["AiProviderModel"];
32
+ embedding_model: import("../generated/schema.js").components["schemas"]["AiProviderModel"] | null;
33
33
  embedding_model_dimensions: number | null;
34
34
  error_fallback_message: string | null;
35
35
  feature_code_execution: boolean;
@@ -42,8 +42,9 @@ export declare function agentsApi(t: Transport, tenantSlug: string): {
42
42
  feature_user_notes: boolean;
43
43
  feature_web_search: boolean;
44
44
  feature_workspace?: boolean;
45
+ filesystem_shared_prefixes: string[];
45
46
  filesystem_ttl_turns: number | null;
46
- guardrail_model: null | import("../generated/schema.js").components["schemas"]["AiProviderModel"];
47
+ guardrail_model: import("../generated/schema.js").components["schemas"]["AiProviderModel"] | null;
47
48
  guardrail_prompt: string | null;
48
49
  guardrail_reasoning_level: string | null;
49
50
  id: string;
@@ -51,16 +52,16 @@ export declare function agentsApi(t: Transport, tenantSlug: string): {
51
52
  max_messages_per_turn: number;
52
53
  max_turns: number;
53
54
  model: import("../generated/schema.js").components["schemas"]["AiProviderModel"];
54
- nap_model: null | import("../generated/schema.js").components["schemas"]["AiProviderModel"];
55
+ nap_model: import("../generated/schema.js").components["schemas"]["AiProviderModel"] | null;
55
56
  nap_reasoning_level: string | null;
56
57
  onboarding_md: string;
57
58
  reasoning_level: string | null;
58
59
  slug: string;
59
60
  soul_md: string;
60
- stt_model: null | import("../generated/schema.js").components["schemas"]["AiProviderModel"];
61
+ stt_model: import("../generated/schema.js").components["schemas"]["AiProviderModel"] | null;
61
62
  updated_at: string;
62
- vision_model: null | import("../generated/schema.js").components["schemas"]["AiProviderModel"];
63
- websearch_model: null | import("../generated/schema.js").components["schemas"]["AiProviderModel"];
63
+ vision_model: import("../generated/schema.js").components["schemas"]["AiProviderModel"] | null;
64
+ websearch_model: import("../generated/schema.js").components["schemas"]["AiProviderModel"] | null;
64
65
  workspace_ttl_turns: number | null;
65
66
  }>;
66
67
  create: (input: Schemas["CreateAgentInput"]) => Promise<{
@@ -73,7 +74,7 @@ export declare function agentsApi(t: Transport, tenantSlug: string): {
73
74
  created_at: string;
74
75
  description: string;
75
76
  display_name: string;
76
- embedding_model: null | import("../generated/schema.js").components["schemas"]["AiProviderModel"];
77
+ embedding_model: import("../generated/schema.js").components["schemas"]["AiProviderModel"] | null;
77
78
  embedding_model_dimensions: number | null;
78
79
  error_fallback_message: string | null;
79
80
  feature_code_execution: boolean;
@@ -86,8 +87,9 @@ export declare function agentsApi(t: Transport, tenantSlug: string): {
86
87
  feature_user_notes: boolean;
87
88
  feature_web_search: boolean;
88
89
  feature_workspace?: boolean;
90
+ filesystem_shared_prefixes: string[];
89
91
  filesystem_ttl_turns: number | null;
90
- guardrail_model: null | import("../generated/schema.js").components["schemas"]["AiProviderModel"];
92
+ guardrail_model: import("../generated/schema.js").components["schemas"]["AiProviderModel"] | null;
91
93
  guardrail_prompt: string | null;
92
94
  guardrail_reasoning_level: string | null;
93
95
  id: string;
@@ -95,16 +97,16 @@ export declare function agentsApi(t: Transport, tenantSlug: string): {
95
97
  max_messages_per_turn: number;
96
98
  max_turns: number;
97
99
  model: import("../generated/schema.js").components["schemas"]["AiProviderModel"];
98
- nap_model: null | import("../generated/schema.js").components["schemas"]["AiProviderModel"];
100
+ nap_model: import("../generated/schema.js").components["schemas"]["AiProviderModel"] | null;
99
101
  nap_reasoning_level: string | null;
100
102
  onboarding_md: string;
101
103
  reasoning_level: string | null;
102
104
  slug: string;
103
105
  soul_md: string;
104
- stt_model: null | import("../generated/schema.js").components["schemas"]["AiProviderModel"];
106
+ stt_model: import("../generated/schema.js").components["schemas"]["AiProviderModel"] | null;
105
107
  updated_at: string;
106
- vision_model: null | import("../generated/schema.js").components["schemas"]["AiProviderModel"];
107
- websearch_model: null | import("../generated/schema.js").components["schemas"]["AiProviderModel"];
108
+ vision_model: import("../generated/schema.js").components["schemas"]["AiProviderModel"] | null;
109
+ websearch_model: import("../generated/schema.js").components["schemas"]["AiProviderModel"] | null;
108
110
  workspace_ttl_turns: number | null;
109
111
  }>;
110
112
  update: (currentSlug: string, input: Schemas["UpdateAgentInput"]) => Promise<{
@@ -117,7 +119,7 @@ export declare function agentsApi(t: Transport, tenantSlug: string): {
117
119
  created_at: string;
118
120
  description: string;
119
121
  display_name: string;
120
- embedding_model: null | import("../generated/schema.js").components["schemas"]["AiProviderModel"];
122
+ embedding_model: import("../generated/schema.js").components["schemas"]["AiProviderModel"] | null;
121
123
  embedding_model_dimensions: number | null;
122
124
  error_fallback_message: string | null;
123
125
  feature_code_execution: boolean;
@@ -130,8 +132,9 @@ export declare function agentsApi(t: Transport, tenantSlug: string): {
130
132
  feature_user_notes: boolean;
131
133
  feature_web_search: boolean;
132
134
  feature_workspace?: boolean;
135
+ filesystem_shared_prefixes: string[];
133
136
  filesystem_ttl_turns: number | null;
134
- guardrail_model: null | import("../generated/schema.js").components["schemas"]["AiProviderModel"];
137
+ guardrail_model: import("../generated/schema.js").components["schemas"]["AiProviderModel"] | null;
135
138
  guardrail_prompt: string | null;
136
139
  guardrail_reasoning_level: string | null;
137
140
  id: string;
@@ -139,21 +142,21 @@ export declare function agentsApi(t: Transport, tenantSlug: string): {
139
142
  max_messages_per_turn: number;
140
143
  max_turns: number;
141
144
  model: import("../generated/schema.js").components["schemas"]["AiProviderModel"];
142
- nap_model: null | import("../generated/schema.js").components["schemas"]["AiProviderModel"];
145
+ nap_model: import("../generated/schema.js").components["schemas"]["AiProviderModel"] | null;
143
146
  nap_reasoning_level: string | null;
144
147
  onboarding_md: string;
145
148
  reasoning_level: string | null;
146
149
  slug: string;
147
150
  soul_md: string;
148
- stt_model: null | import("../generated/schema.js").components["schemas"]["AiProviderModel"];
151
+ stt_model: import("../generated/schema.js").components["schemas"]["AiProviderModel"] | null;
149
152
  updated_at: string;
150
- vision_model: null | import("../generated/schema.js").components["schemas"]["AiProviderModel"];
151
- websearch_model: null | import("../generated/schema.js").components["schemas"]["AiProviderModel"];
153
+ vision_model: import("../generated/schema.js").components["schemas"]["AiProviderModel"] | null;
154
+ websearch_model: import("../generated/schema.js").components["schemas"]["AiProviderModel"] | null;
152
155
  workspace_ttl_turns: number | null;
153
156
  }>;
154
157
  delete: (slug: string) => Promise<void>;
155
158
  countTokens: (slug: string, input: Schemas["DraftAgentConfig"], signal?: AbortSignal) => Promise<{
156
- breakdown: null | import("../generated/schema.js").components["schemas"]["Breakdown"];
159
+ breakdown: import("../generated/schema.js").components["schemas"]["Breakdown"] | null;
157
160
  context_window_tokens: number | null;
158
161
  contributions: {
159
162
  [key: string]: number;
@@ -119,7 +119,7 @@ export declare function aiProvidersApi(t: Transport, tenantSlug: string): {
119
119
  [key: string]: number;
120
120
  };
121
121
  pricing_skus: import("../generated/schema.js").components["schemas"]["SkuDisplayDto"][];
122
- reasoning_options: null | import("../generated/schema.js").components["schemas"]["ReasoningOptions"];
122
+ reasoning_options: import("../generated/schema.js").components["schemas"]["ReasoningOptions"] | null;
123
123
  }[]>;
124
124
  /** Re-probes the upstream catalog. 409 while another reconcile is running. */
125
125
  refreshModels: (slug: string) => Promise<{
@@ -146,7 +146,7 @@ export declare function aiProvidersApi(t: Transport, tenantSlug: string): {
146
146
  [key: string]: number;
147
147
  };
148
148
  pricing_skus: import("../generated/schema.js").components["schemas"]["SkuDisplayDto"][];
149
- reasoning_options: null | import("../generated/schema.js").components["schemas"]["ReasoningOptions"];
149
+ reasoning_options: import("../generated/schema.js").components["schemas"]["ReasoningOptions"] | null;
150
150
  }[]>;
151
151
  updateModel: (slug: string, modelId: string, input: Schemas["UpdateProviderModelInput"]) => Promise<void>;
152
152
  };
@@ -22,7 +22,7 @@ export declare function clientToolsApi(t: Transport, tenantSlug: string): {
22
22
  idempotent_hint: boolean | null;
23
23
  input_schema: import("../generated/schema.js").components["schemas"]["Value"];
24
24
  name: string;
25
- output_schema: null | import("../generated/schema.js").components["schemas"]["Value"];
25
+ output_schema: import("../generated/schema.js").components["schemas"]["Value"] | null;
26
26
  read_only_hint: boolean | null;
27
27
  timeout_seconds: number;
28
28
  updated_at: string;
@@ -38,7 +38,7 @@ export declare function clientToolsApi(t: Transport, tenantSlug: string): {
38
38
  idempotent_hint: boolean | null;
39
39
  input_schema: import("../generated/schema.js").components["schemas"]["Value"];
40
40
  name: string;
41
- output_schema: null | import("../generated/schema.js").components["schemas"]["Value"];
41
+ output_schema: import("../generated/schema.js").components["schemas"]["Value"] | null;
42
42
  read_only_hint: boolean | null;
43
43
  timeout_seconds: number;
44
44
  updated_at: string;
@@ -15,9 +15,9 @@ export declare function conversationsAdminApi(t: Transport, tenantSlug: string):
15
15
  origin?: string;
16
16
  user_id?: string;
17
17
  }, signal?: AbortSignal) => Promise<{
18
- agent: null | import("../generated/schema.js").components["schemas"]["AgentRef"];
18
+ agent: import("../generated/schema.js").components["schemas"]["AgentRef"] | null;
19
19
  archived_at: string | null;
20
- channel: null | import("../generated/schema.js").components["schemas"]["ChannelRef"];
20
+ channel: import("../generated/schema.js").components["schemas"]["ChannelRef"] | null;
21
21
  created_at: string;
22
22
  generated_title: string | null;
23
23
  has_pending_turn: boolean;
@@ -29,19 +29,19 @@ export declare function conversationsAdminApi(t: Transport, tenantSlug: string):
29
29
  metadata: Record<string, unknown>;
30
30
  next_retry_at: string | null;
31
31
  origin: string;
32
- parent_conversation: null | import("../generated/schema.js").components["schemas"]["ConversationRef"];
32
+ parent_conversation: import("../generated/schema.js").components["schemas"]["ConversationRef"] | null;
33
33
  retry_count: number;
34
34
  title: string | null;
35
35
  total_cost_usd: number;
36
36
  updated_at: string;
37
- user: null | import("../generated/schema.js").components["schemas"]["UserRef"];
37
+ user: import("../generated/schema.js").components["schemas"]["UserRef"] | null;
38
38
  user_identifier: string | null;
39
39
  user_identifier_label: string | null;
40
40
  }[]>;
41
41
  get: (id: string, signal?: AbortSignal) => Promise<{
42
- agent: null | import("../generated/schema.js").components["schemas"]["AgentRef"];
42
+ agent: import("../generated/schema.js").components["schemas"]["AgentRef"] | null;
43
43
  archived_at: string | null;
44
- channel: null | import("../generated/schema.js").components["schemas"]["ChannelRef"];
44
+ channel: import("../generated/schema.js").components["schemas"]["ChannelRef"] | null;
45
45
  created_at: string;
46
46
  generated_title: string | null;
47
47
  has_pending_turn: boolean;
@@ -53,19 +53,19 @@ export declare function conversationsAdminApi(t: Transport, tenantSlug: string):
53
53
  metadata: Record<string, unknown>;
54
54
  next_retry_at: string | null;
55
55
  origin: string;
56
- parent_conversation: null | import("../generated/schema.js").components["schemas"]["ConversationRef"];
56
+ parent_conversation: import("../generated/schema.js").components["schemas"]["ConversationRef"] | null;
57
57
  retry_count: number;
58
58
  title: string | null;
59
59
  total_cost_usd: number;
60
60
  updated_at: string;
61
- user: null | import("../generated/schema.js").components["schemas"]["UserRef"];
61
+ user: import("../generated/schema.js").components["schemas"]["UserRef"] | null;
62
62
  user_identifier: string | null;
63
63
  user_identifier_label: string | null;
64
64
  }>;
65
65
  create: (input: Schemas["CreateConversationInput"]) => Promise<{
66
- agent: null | import("../generated/schema.js").components["schemas"]["AgentRef"];
66
+ agent: import("../generated/schema.js").components["schemas"]["AgentRef"] | null;
67
67
  archived_at: string | null;
68
- channel: null | import("../generated/schema.js").components["schemas"]["ChannelRef"];
68
+ channel: import("../generated/schema.js").components["schemas"]["ChannelRef"] | null;
69
69
  created_at: string;
70
70
  generated_title: string | null;
71
71
  has_pending_turn: boolean;
@@ -77,19 +77,19 @@ export declare function conversationsAdminApi(t: Transport, tenantSlug: string):
77
77
  metadata: Record<string, unknown>;
78
78
  next_retry_at: string | null;
79
79
  origin: string;
80
- parent_conversation: null | import("../generated/schema.js").components["schemas"]["ConversationRef"];
80
+ parent_conversation: import("../generated/schema.js").components["schemas"]["ConversationRef"] | null;
81
81
  retry_count: number;
82
82
  title: string | null;
83
83
  total_cost_usd: number;
84
84
  updated_at: string;
85
- user: null | import("../generated/schema.js").components["schemas"]["UserRef"];
85
+ user: import("../generated/schema.js").components["schemas"]["UserRef"] | null;
86
86
  user_identifier: string | null;
87
87
  user_identifier_label: string | null;
88
88
  }>;
89
89
  update: (id: string, input: Schemas["UpdateConversationInput"]) => Promise<{
90
- agent: null | import("../generated/schema.js").components["schemas"]["AgentRef"];
90
+ agent: import("../generated/schema.js").components["schemas"]["AgentRef"] | null;
91
91
  archived_at: string | null;
92
- channel: null | import("../generated/schema.js").components["schemas"]["ChannelRef"];
92
+ channel: import("../generated/schema.js").components["schemas"]["ChannelRef"] | null;
93
93
  created_at: string;
94
94
  generated_title: string | null;
95
95
  has_pending_turn: boolean;
@@ -101,19 +101,19 @@ export declare function conversationsAdminApi(t: Transport, tenantSlug: string):
101
101
  metadata: Record<string, unknown>;
102
102
  next_retry_at: string | null;
103
103
  origin: string;
104
- parent_conversation: null | import("../generated/schema.js").components["schemas"]["ConversationRef"];
104
+ parent_conversation: import("../generated/schema.js").components["schemas"]["ConversationRef"] | null;
105
105
  retry_count: number;
106
106
  title: string | null;
107
107
  total_cost_usd: number;
108
108
  updated_at: string;
109
- user: null | import("../generated/schema.js").components["schemas"]["UserRef"];
109
+ user: import("../generated/schema.js").components["schemas"]["UserRef"] | null;
110
110
  user_identifier: string | null;
111
111
  user_identifier_label: string | null;
112
112
  }>;
113
113
  archive: (id: string) => Promise<{
114
- agent: null | import("../generated/schema.js").components["schemas"]["AgentRef"];
114
+ agent: import("../generated/schema.js").components["schemas"]["AgentRef"] | null;
115
115
  archived_at: string | null;
116
- channel: null | import("../generated/schema.js").components["schemas"]["ChannelRef"];
116
+ channel: import("../generated/schema.js").components["schemas"]["ChannelRef"] | null;
117
117
  created_at: string;
118
118
  generated_title: string | null;
119
119
  has_pending_turn: boolean;
@@ -125,20 +125,20 @@ export declare function conversationsAdminApi(t: Transport, tenantSlug: string):
125
125
  metadata: Record<string, unknown>;
126
126
  next_retry_at: string | null;
127
127
  origin: string;
128
- parent_conversation: null | import("../generated/schema.js").components["schemas"]["ConversationRef"];
128
+ parent_conversation: import("../generated/schema.js").components["schemas"]["ConversationRef"] | null;
129
129
  retry_count: number;
130
130
  title: string | null;
131
131
  total_cost_usd: number;
132
132
  updated_at: string;
133
- user: null | import("../generated/schema.js").components["schemas"]["UserRef"];
133
+ user: import("../generated/schema.js").components["schemas"]["UserRef"] | null;
134
134
  user_identifier: string | null;
135
135
  user_identifier_label: string | null;
136
136
  }>;
137
137
  /** Clears the backoff and re-dispatches a conversation stuck after failures. */
138
138
  retryNow: (id: string) => Promise<{
139
- agent: null | import("../generated/schema.js").components["schemas"]["AgentRef"];
139
+ agent: import("../generated/schema.js").components["schemas"]["AgentRef"] | null;
140
140
  archived_at: string | null;
141
- channel: null | import("../generated/schema.js").components["schemas"]["ChannelRef"];
141
+ channel: import("../generated/schema.js").components["schemas"]["ChannelRef"] | null;
142
142
  created_at: string;
143
143
  generated_title: string | null;
144
144
  has_pending_turn: boolean;
@@ -150,12 +150,12 @@ export declare function conversationsAdminApi(t: Transport, tenantSlug: string):
150
150
  metadata: Record<string, unknown>;
151
151
  next_retry_at: string | null;
152
152
  origin: string;
153
- parent_conversation: null | import("../generated/schema.js").components["schemas"]["ConversationRef"];
153
+ parent_conversation: import("../generated/schema.js").components["schemas"]["ConversationRef"] | null;
154
154
  retry_count: number;
155
155
  title: string | null;
156
156
  total_cost_usd: number;
157
157
  updated_at: string;
158
- user: null | import("../generated/schema.js").components["schemas"]["UserRef"];
158
+ user: import("../generated/schema.js").components["schemas"]["UserRef"] | null;
159
159
  user_identifier: string | null;
160
160
  user_identifier_label: string | null;
161
161
  }>;
@@ -177,10 +177,10 @@ export declare function conversationsAdminApi(t: Transport, tenantSlug: string):
177
177
  error: string | null;
178
178
  id: string;
179
179
  injected_by_conversation_id: string | null;
180
- llm_call_data: null | import("../generated/schema.js").components["schemas"]["LlmCallData"];
180
+ llm_call_data: import("../generated/schema.js").components["schemas"]["LlmCallData"] | null;
181
181
  model: string | null;
182
182
  parent_tool_call_id: string | null;
183
- provider: null | import("../generated/schema.js").components["schemas"]["ProviderRef"];
183
+ provider: import("../generated/schema.js").components["schemas"]["ProviderRef"] | null;
184
184
  read_at: string | null;
185
185
  result?: unknown;
186
186
  seq: number;
@@ -208,10 +208,10 @@ export declare function conversationsAdminApi(t: Transport, tenantSlug: string):
208
208
  error: string | null;
209
209
  id: string;
210
210
  injected_by_conversation_id: string | null;
211
- llm_call_data: null | import("../generated/schema.js").components["schemas"]["LlmCallData"];
211
+ llm_call_data: import("../generated/schema.js").components["schemas"]["LlmCallData"] | null;
212
212
  model: string | null;
213
213
  parent_tool_call_id: string | null;
214
- provider: null | import("../generated/schema.js").components["schemas"]["ProviderRef"];
214
+ provider: import("../generated/schema.js").components["schemas"]["ProviderRef"] | null;
215
215
  read_at: string | null;
216
216
  result?: unknown;
217
217
  seq: number;
@@ -238,10 +238,10 @@ export declare function conversationsAdminApi(t: Transport, tenantSlug: string):
238
238
  error: string | null;
239
239
  id: string;
240
240
  injected_by_conversation_id: string | null;
241
- llm_call_data: null | import("../generated/schema.js").components["schemas"]["LlmCallData"];
241
+ llm_call_data: import("../generated/schema.js").components["schemas"]["LlmCallData"] | null;
242
242
  model: string | null;
243
243
  parent_tool_call_id: string | null;
244
- provider: null | import("../generated/schema.js").components["schemas"]["ProviderRef"];
244
+ provider: import("../generated/schema.js").components["schemas"]["ProviderRef"] | null;
245
245
  read_at: string | null;
246
246
  result?: unknown;
247
247
  seq: number;
@@ -273,10 +273,10 @@ export declare function conversationsAdminApi(t: Transport, tenantSlug: string):
273
273
  error: string | null;
274
274
  id: string;
275
275
  injected_by_conversation_id: string | null;
276
- llm_call_data: null | import("../generated/schema.js").components["schemas"]["LlmCallData"];
276
+ llm_call_data: import("../generated/schema.js").components["schemas"]["LlmCallData"] | null;
277
277
  model: string | null;
278
278
  parent_tool_call_id: string | null;
279
- provider: null | import("../generated/schema.js").components["schemas"]["ProviderRef"];
279
+ provider: import("../generated/schema.js").components["schemas"]["ProviderRef"] | null;
280
280
  read_at: string | null;
281
281
  result?: unknown;
282
282
  seq: number;
@@ -310,10 +310,10 @@ export declare function conversationsAdminApi(t: Transport, tenantSlug: string):
310
310
  error: string | null;
311
311
  id: string;
312
312
  injected_by_conversation_id: string | null;
313
- llm_call_data: null | import("../generated/schema.js").components["schemas"]["LlmCallData"];
313
+ llm_call_data: import("../generated/schema.js").components["schemas"]["LlmCallData"] | null;
314
314
  model: string | null;
315
315
  parent_tool_call_id: string | null;
316
- provider: null | import("../generated/schema.js").components["schemas"]["ProviderRef"];
316
+ provider: import("../generated/schema.js").components["schemas"]["ProviderRef"] | null;
317
317
  read_at: string | null;
318
318
  result?: unknown;
319
319
  seq: number;
@@ -339,10 +339,10 @@ export declare function conversationsAdminApi(t: Transport, tenantSlug: string):
339
339
  error: string | null;
340
340
  id: string;
341
341
  injected_by_conversation_id: string | null;
342
- llm_call_data: null | import("../generated/schema.js").components["schemas"]["LlmCallData"];
342
+ llm_call_data: import("../generated/schema.js").components["schemas"]["LlmCallData"] | null;
343
343
  model: string | null;
344
344
  parent_tool_call_id: string | null;
345
- provider: null | import("../generated/schema.js").components["schemas"]["ProviderRef"];
345
+ provider: import("../generated/schema.js").components["schemas"]["ProviderRef"] | null;
346
346
  read_at: string | null;
347
347
  result?: unknown;
348
348
  seq: number;
@@ -140,7 +140,7 @@ export declare function sharedProvidersApi(t: Transport): {
140
140
  [key: string]: number;
141
141
  };
142
142
  pricing_skus: import("../generated/schema.js").components["schemas"]["SkuDisplayDto"][];
143
- reasoning_options: null | import("../generated/schema.js").components["schemas"]["ReasoningOptions"];
143
+ reasoning_options: import("../generated/schema.js").components["schemas"]["ReasoningOptions"] | null;
144
144
  }[]>;
145
145
  updateModel: (slug: string, modelId: string, input: Schemas["UpdateProviderModelInput"]) => Promise<void>;
146
146
  };
@@ -20,7 +20,7 @@ export declare function knowledgeBasesApi(t: Transport, tenantSlug: string): {
20
20
  curate_requested: boolean;
21
21
  display_name: string;
22
22
  id: string;
23
- last_run: null | import("../generated/schema.js").components["schemas"]["CurationRun"];
23
+ last_run: import("../generated/schema.js").components["schemas"]["CurationRun"] | null;
24
24
  nap_agent_slug: string | null;
25
25
  nap_last_run_at: string | null;
26
26
  oldest_pending_at: string | null;
@@ -35,7 +35,7 @@ export declare function knowledgeBasesApi(t: Transport, tenantSlug: string): {
35
35
  curate_requested: boolean;
36
36
  display_name: string;
37
37
  id: string;
38
- last_run: null | import("../generated/schema.js").components["schemas"]["CurationRun"];
38
+ last_run: import("../generated/schema.js").components["schemas"]["CurationRun"] | null;
39
39
  nap_agent_slug: string | null;
40
40
  nap_last_run_at: string | null;
41
41
  oldest_pending_at: string | null;
@@ -50,7 +50,7 @@ export declare function knowledgeBasesApi(t: Transport, tenantSlug: string): {
50
50
  curate_requested: boolean;
51
51
  display_name: string;
52
52
  id: string;
53
- last_run: null | import("../generated/schema.js").components["schemas"]["CurationRun"];
53
+ last_run: import("../generated/schema.js").components["schemas"]["CurationRun"] | null;
54
54
  nap_agent_slug: string | null;
55
55
  nap_last_run_at: string | null;
56
56
  oldest_pending_at: string | null;
@@ -113,7 +113,7 @@ export declare function scheduledRunsApi(t: Transport, tenantSlug: string): {
113
113
  user_id?: string;
114
114
  enabled?: boolean;
115
115
  }, signal?: AbortSignal) => Promise<{
116
- agent: null | import("../generated/schema.js").components["schemas"]["AgentRef"];
116
+ agent: import("../generated/schema.js").components["schemas"]["AgentRef"] | null;
117
117
  allow_self_cancel: boolean;
118
118
  created_at: string;
119
119
  created_via: string;
@@ -124,14 +124,14 @@ export declare function scheduledRunsApi(t: Transport, tenantSlug: string): {
124
124
  max_runs: number | null;
125
125
  next_fire_at: string | null;
126
126
  run_count: number;
127
- task_template: null | import("../generated/schema.js").components["schemas"]["TaskTemplateRef"];
127
+ task_template: import("../generated/schema.js").components["schemas"]["TaskTemplateRef"] | null;
128
128
  timezone: string;
129
129
  until: string | null;
130
130
  updated_at: string;
131
131
  user: import("../generated/schema.js").components["schemas"]["UserRef"];
132
132
  }[]>;
133
133
  get: (id: string, signal?: AbortSignal) => Promise<{
134
- agent: null | import("../generated/schema.js").components["schemas"]["AgentRef"];
134
+ agent: import("../generated/schema.js").components["schemas"]["AgentRef"] | null;
135
135
  allow_self_cancel: boolean;
136
136
  bound_params: Record<string, unknown>;
137
137
  created_at: string;
@@ -146,7 +146,7 @@ export declare function scheduledRunsApi(t: Transport, tenantSlug: string): {
146
146
  prompt_template: string | null;
147
147
  rendered_prompt: string | null;
148
148
  run_count: number;
149
- task_template: null | import("../generated/schema.js").components["schemas"]["TaskTemplateRef"];
149
+ task_template: import("../generated/schema.js").components["schemas"]["TaskTemplateRef"] | null;
150
150
  tasks: import("../generated/schema.js").components["schemas"]["RunTask"][];
151
151
  timezone: string;
152
152
  until: string | null;
@@ -154,7 +154,7 @@ export declare function scheduledRunsApi(t: Transport, tenantSlug: string): {
154
154
  user: import("../generated/schema.js").components["schemas"]["UserRef"];
155
155
  }>;
156
156
  update: (id: string, input: Schemas["UpdateScheduledRunInput"]) => Promise<{
157
- agent: null | import("../generated/schema.js").components["schemas"]["AgentRef"];
157
+ agent: import("../generated/schema.js").components["schemas"]["AgentRef"] | null;
158
158
  allow_self_cancel: boolean;
159
159
  bound_params: Record<string, unknown>;
160
160
  created_at: string;
@@ -169,7 +169,7 @@ export declare function scheduledRunsApi(t: Transport, tenantSlug: string): {
169
169
  prompt_template: string | null;
170
170
  rendered_prompt: string | null;
171
171
  run_count: number;
172
- task_template: null | import("../generated/schema.js").components["schemas"]["TaskTemplateRef"];
172
+ task_template: import("../generated/schema.js").components["schemas"]["TaskTemplateRef"] | null;
173
173
  tasks: import("../generated/schema.js").components["schemas"]["RunTask"][];
174
174
  timezone: string;
175
175
  until: string | null;
@@ -145,7 +145,7 @@ export declare function usersApi(t: Transport, tenantSlug: string): {
145
145
  memory_id: string;
146
146
  metadata: Record<string, unknown>;
147
147
  recorded_at: string;
148
- source_conversation: null | import("../generated/schema.js").components["schemas"]["ConversationRef"];
148
+ source_conversation: import("../generated/schema.js").components["schemas"]["ConversationRef"] | null;
149
149
  }[]>;
150
150
  createMemoryObservation: (id: string, input: Schemas["CreateMemoryObservationInput"]) => Promise<{
151
151
  content: string;
@@ -153,7 +153,7 @@ export declare function usersApi(t: Transport, tenantSlug: string): {
153
153
  memory_id: string;
154
154
  metadata: Record<string, unknown>;
155
155
  recorded_at: string;
156
- source_conversation: null | import("../generated/schema.js").components["schemas"]["ConversationRef"];
156
+ source_conversation: import("../generated/schema.js").components["schemas"]["ConversationRef"] | null;
157
157
  }>;
158
158
  deleteMemoryObservation: (id: string, observationId: string) => Promise<void>;
159
159
  updateMemoryProfile: (id: string, input: Schemas["UpdateMemoryProfileInput"]) => Promise<{
@@ -11518,7 +11518,7 @@ export interface components {
11518
11518
  */
11519
11519
  description: string;
11520
11520
  display_name: string;
11521
- embedding_model: null | components["schemas"]["AiProviderModel"];
11521
+ embedding_model: components["schemas"]["AiProviderModel"] | null;
11522
11522
  /**
11523
11523
  * Format: int32
11524
11524
  * @description Which `memory_observation_embedding.embedding_dN` column the backfill worker writes for this
@@ -11573,6 +11573,14 @@ export interface components {
11573
11573
  * it; on write, the new field accepts this name too.
11574
11574
  */
11575
11575
  feature_workspace?: boolean;
11576
+ /**
11577
+ * @description Path prefixes of the filesystem shared by every conversation one user has with
11578
+ * this agent: what lives under them is the same in all of them, archived ones
11579
+ * included, and an edit in one is seen by the others. `/` shares the whole tree.
11580
+ * Empty (the default) shares nothing. Normalized on write: absolute, sorted, and a
11581
+ * prefix nested under another is dropped. Ignored while `feature_filesystem` is off.
11582
+ */
11583
+ filesystem_shared_prefixes: string[];
11576
11584
  /**
11577
11585
  * Format: int32
11578
11586
  * @description Turns without a file touch after which the conversation's filesystem expires
@@ -11582,7 +11590,7 @@ export interface components {
11582
11590
  * `feature_filesystem` is off.
11583
11591
  */
11584
11592
  filesystem_ttl_turns: number | null;
11585
- guardrail_model: null | components["schemas"]["AiProviderModel"];
11593
+ guardrail_model: components["schemas"]["AiProviderModel"] | null;
11586
11594
  /** @description Optional operator policy appended to the fixed guardrail verifier wrapper. */
11587
11595
  guardrail_prompt: string | null;
11588
11596
  /**
@@ -11607,7 +11615,7 @@ export interface components {
11607
11615
  * and flag a vanished model instead of rendering a bare UUID.
11608
11616
  */
11609
11617
  model: components["schemas"]["AiProviderModel"];
11610
- nap_model: null | components["schemas"]["AiProviderModel"];
11618
+ nap_model: components["schemas"]["AiProviderModel"] | null;
11611
11619
  /**
11612
11620
  * @description Reasoning / thinking-effort level passed to the nap's extractor and consolidator. `null`
11613
11621
  * ≡ use the nap model default.
@@ -11623,11 +11631,11 @@ export interface components {
11623
11631
  reasoning_level: string | null;
11624
11632
  slug: string;
11625
11633
  soul_md: string;
11626
- stt_model: null | components["schemas"]["AiProviderModel"];
11634
+ stt_model: components["schemas"]["AiProviderModel"] | null;
11627
11635
  /** Format: date-time */
11628
11636
  updated_at: string;
11629
- vision_model: null | components["schemas"]["AiProviderModel"];
11630
- websearch_model: null | components["schemas"]["AiProviderModel"];
11637
+ vision_model: components["schemas"]["AiProviderModel"] | null;
11638
+ websearch_model: components["schemas"]["AiProviderModel"] | null;
11631
11639
  /**
11632
11640
  * Format: int32
11633
11641
  * @deprecated
@@ -11815,7 +11823,7 @@ export interface components {
11815
11823
  * the right unit shown and the right ordering.
11816
11824
  */
11817
11825
  pricing_skus: components["schemas"]["SkuDisplayDto"][];
11818
- reasoning_options: null | components["schemas"]["ReasoningOptions"];
11826
+ reasoning_options: components["schemas"]["ReasoningOptions"] | null;
11819
11827
  };
11820
11828
  /** @description One provider type an operator can create a provider of right now. */
11821
11829
  AiProviderType: {
@@ -11951,12 +11959,19 @@ export interface components {
11951
11959
  kind: "archive_formats";
11952
11960
  /** @description MIME types it is opening — what it *won*. */
11953
11961
  mimes: string[];
11962
+ } | {
11963
+ /** @description Languages another plugin already held, as for `file_formats`. */
11964
+ conflicts?: components["schemas"]["Conflict"][];
11965
+ /** @enum {string} */
11966
+ kind: "code_runtimes";
11967
+ /** @description Language ids it is running, aliases included — what it *won*. */
11968
+ languages: string[];
11954
11969
  };
11955
11970
  /**
11956
11971
  * @description A kind of [`Capability`], without what it carries.
11957
11972
  * @enum {string}
11958
11973
  */
11959
- CapabilityKind: "file_formats" | "ai_providers" | "archive_formats";
11974
+ CapabilityKind: "file_formats" | "ai_providers" | "archive_formats" | "code_runtimes";
11960
11975
  Channel: (components["schemas"]["TelegramChannel"] & {
11961
11976
  /** @enum {string} */
11962
11977
  type: "telegram";
@@ -12010,7 +12025,7 @@ export interface components {
12010
12025
  input_schema: components["schemas"]["Value"];
12011
12026
  /** @description LLM-facing tool name, unique within the conversation. */
12012
12027
  name: string;
12013
- output_schema: null | components["schemas"]["Value"];
12028
+ output_schema: components["schemas"]["Value"] | null;
12014
12029
  read_only_hint: boolean | null;
12015
12030
  /** Format: int32 */
12016
12031
  timeout_seconds: number;
@@ -12042,8 +12057,8 @@ export interface components {
12042
12057
  description?: string;
12043
12058
  destructive_hint?: boolean | null;
12044
12059
  idempotent_hint?: boolean | null;
12045
- input_schema?: null | components["schemas"]["Value"];
12046
- output_schema?: null | components["schemas"]["Value"];
12060
+ input_schema?: components["schemas"]["Value"] | null;
12061
+ output_schema?: components["schemas"]["Value"] | null;
12047
12062
  /**
12048
12063
  * @description `true` promises the call mutates nothing, which exempts it from the
12049
12064
  * guardrail — the same contract an MCP `readOnlyHint` carries.
@@ -12055,6 +12070,16 @@ export interface components {
12055
12070
  */
12056
12071
  timeout_seconds?: number | null;
12057
12072
  };
12073
+ /**
12074
+ * @description The call the harness made of a reply the model gave as free text:
12075
+ * `send_message` in a chat, `notify_user` in a background run.
12076
+ */
12077
+ CoercedCall: {
12078
+ arguments: unknown;
12079
+ name: string;
12080
+ /** Format: uuid */
12081
+ tool_call_id: string;
12082
+ };
12058
12083
  ComponentInput: {
12059
12084
  description?: string;
12060
12085
  example_mdx?: string;
@@ -12101,20 +12126,20 @@ export interface components {
12101
12126
  * is the same on every replica.
12102
12127
  */
12103
12128
  held_by: string;
12104
- /** @description `mime`, `mime_prefix` or `extension`. */
12129
+ /** @description `mime`, `mime_prefix`, `extension` or `language`. */
12105
12130
  kind: string;
12106
- /** @description The MIME type, prefix or extension that was claimed twice. */
12131
+ /** @description The MIME type, prefix, extension or language that was claimed twice. */
12107
12132
  value: string;
12108
12133
  };
12109
12134
  Conversation: {
12110
- agent: null | components["schemas"]["AgentRef"];
12135
+ agent: components["schemas"]["AgentRef"] | null;
12111
12136
  /**
12112
12137
  * Format: date-time
12113
12138
  * @description Soft-archive marker. The API always returns archived rows; the
12114
12139
  * dashboard hides them at render time. Reversible by clearing.
12115
12140
  */
12116
12141
  archived_at: string | null;
12117
- channel: null | components["schemas"]["ChannelRef"];
12142
+ channel: components["schemas"]["ChannelRef"] | null;
12118
12143
  /** Format: date-time */
12119
12144
  created_at: string;
12120
12145
  /**
@@ -12168,7 +12193,7 @@ export interface components {
12168
12193
  * dashboard renders background tasks read-only and in their own view.
12169
12194
  */
12170
12195
  origin: string;
12171
- parent_conversation: null | components["schemas"]["ConversationRef"];
12196
+ parent_conversation: components["schemas"]["ConversationRef"] | null;
12172
12197
  /**
12173
12198
  * Format: int32
12174
12199
  * @description Consecutive failed turns since the last success. 0 when never
@@ -12190,7 +12215,7 @@ export interface components {
12190
12215
  total_cost_usd: number;
12191
12216
  /** Format: date-time */
12192
12217
  updated_at: string;
12193
- user: null | components["schemas"]["UserRef"];
12218
+ user: components["schemas"]["UserRef"] | null;
12194
12219
  /**
12195
12220
  * @description Channel-native identifier (e.g. Telegram numeric id, msisdn), read through
12196
12221
  * `user_identities` so it always reflects the canonical form. Null when the
@@ -12291,7 +12316,7 @@ export interface components {
12291
12316
  * authored it. The dashboard badges these as proactively delivered.
12292
12317
  */
12293
12318
  injected_by_conversation_id: string | null;
12294
- llm_call_data: null | components["schemas"]["LlmCallData"];
12319
+ llm_call_data: components["schemas"]["LlmCallData"] | null;
12295
12320
  model: string | null;
12296
12321
  /**
12297
12322
  * Format: uuid
@@ -12300,7 +12325,7 @@ export interface components {
12300
12325
  * this to nest the subcall bubbles under their parent eval card.
12301
12326
  */
12302
12327
  parent_tool_call_id: string | null;
12303
- provider: null | components["schemas"]["ProviderRef"];
12328
+ provider: components["schemas"]["ProviderRef"] | null;
12304
12329
  /**
12305
12330
  * Format: date-time
12306
12331
  * @description Recipient's read receipt for `agent_message` rows (the blue ✓✓). Only
@@ -12383,7 +12408,7 @@ export interface components {
12383
12408
  summary_text: string;
12384
12409
  };
12385
12410
  CountTokensResponse: {
12386
- breakdown: null | components["schemas"]["Breakdown"];
12411
+ breakdown: components["schemas"]["Breakdown"] | null;
12387
12412
  /**
12388
12413
  * Format: int32
12389
12414
  * @description The model's full context window — the exact value the harness
@@ -12485,6 +12510,11 @@ export interface components {
12485
12510
  feature_task_planning?: boolean | null;
12486
12511
  feature_user_notes?: boolean | null;
12487
12512
  feature_web_search?: boolean | null;
12513
+ /**
12514
+ * @description Path prefixes shared by every conversation one user has with this agent. Omit ⇒
12515
+ * none. Each must be absolute, without `.` or `..` segments; at most 32.
12516
+ */
12517
+ filesystem_shared_prefixes?: string[] | null;
12488
12518
  /**
12489
12519
  * Format: int32
12490
12520
  * @description Turns without a file touch after which the filesystem expires from the agent's
@@ -13057,7 +13087,7 @@ export interface components {
13057
13087
  display_name: string;
13058
13088
  /** Format: uuid */
13059
13089
  id: string;
13060
- last_run: null | components["schemas"]["CurationRun"];
13090
+ last_run: components["schemas"]["CurationRun"] | null;
13061
13091
  /**
13062
13092
  * @description Slug of the agent that curates this base's wiki, or null when nothing
13063
13093
  * curates it. Any agent of the tenant works — the harness forces the
@@ -13193,6 +13223,7 @@ export interface components {
13193
13223
  * exclusive in normal flow.
13194
13224
  */
13195
13225
  LlmCallData: {
13226
+ coerced_call: components["schemas"]["CoercedCall"] | null;
13196
13227
  /**
13197
13228
  * @description Transport-level error (DNS, TLS, HTTP 5xx, decode); set when
13198
13229
  * `response` is `None`.
@@ -13201,7 +13232,18 @@ export interface components {
13201
13232
  /** Format: int64 */
13202
13233
  latency_ms: number;
13203
13234
  request: components["schemas"]["LlmRequestSnapshot"];
13204
- response: null | components["schemas"]["LlmResponseSnapshot"];
13235
+ response: components["schemas"]["LlmResponseSnapshot"] | null;
13236
+ /**
13237
+ * Format: int64
13238
+ * @description Seq of the newest pending event (`user_message`, `task_prompt`,
13239
+ * `agent_directive`) the request was built from. Recovery closes a turn a
13240
+ * crash interrupted only if nothing newer has arrived, which the log alone
13241
+ * cannot tell: a message can land before this row and still be missing
13242
+ * from the request. `null` outside the turn loop and on rows written
13243
+ * before it was recorded (always serialized, like every other nullable
13244
+ * field of a response: the SDK types it as present).
13245
+ */
13246
+ seen_pending_seq: number | null;
13205
13247
  };
13206
13248
  LlmRequestSnapshot: {
13207
13249
  messages: components["schemas"]["Message"][];
@@ -13212,7 +13254,7 @@ export interface components {
13212
13254
  LlmResponseSnapshot: {
13213
13255
  /** Format: double */
13214
13256
  cost_usd?: number;
13215
- finish_error: null | components["schemas"]["FinishError"];
13257
+ finish_error: components["schemas"]["FinishError"] | null;
13216
13258
  messages: components["schemas"]["Message"][];
13217
13259
  token_usage: {
13218
13260
  [key: string]: number;
@@ -13380,7 +13422,7 @@ export interface components {
13380
13422
  metadata: Record<string, unknown>;
13381
13423
  /** Format: date-time */
13382
13424
  recorded_at: string;
13383
- source_conversation: null | components["schemas"]["ConversationRef"];
13425
+ source_conversation: components["schemas"]["ConversationRef"] | null;
13384
13426
  };
13385
13427
  MergeUserInput: {
13386
13428
  /**
@@ -13658,7 +13700,7 @@ export interface components {
13658
13700
  total_cost_usd: number;
13659
13701
  };
13660
13702
  ScheduledRun: {
13661
- agent: null | components["schemas"]["AgentRef"];
13703
+ agent: components["schemas"]["AgentRef"] | null;
13662
13704
  allow_self_cancel: boolean;
13663
13705
  /** Format: date-time */
13664
13706
  created_at: string;
@@ -13679,7 +13721,7 @@ export interface components {
13679
13721
  next_fire_at: string | null;
13680
13722
  /** Format: int32 */
13681
13723
  run_count: number;
13682
- task_template: null | components["schemas"]["TaskTemplateRef"];
13724
+ task_template: components["schemas"]["TaskTemplateRef"] | null;
13683
13725
  timezone: string;
13684
13726
  /** Format: date-time */
13685
13727
  until: string | null;
@@ -13692,7 +13734,7 @@ export interface components {
13692
13734
  * template, the rendered prompt each firing launches, and the tasks it spawned.
13693
13735
  */
13694
13736
  ScheduledRunDetail: {
13695
- agent: null | components["schemas"]["AgentRef"];
13737
+ agent: components["schemas"]["AgentRef"] | null;
13696
13738
  allow_self_cancel: boolean;
13697
13739
  bound_params: Record<string, unknown>;
13698
13740
  /** Format: date-time */
@@ -13716,7 +13758,7 @@ export interface components {
13716
13758
  rendered_prompt: string | null;
13717
13759
  /** Format: int32 */
13718
13760
  run_count: number;
13719
- task_template: null | components["schemas"]["TaskTemplateRef"];
13761
+ task_template: components["schemas"]["TaskTemplateRef"] | null;
13720
13762
  /** @description Background tasks this run has spawned, newest first. */
13721
13763
  tasks: components["schemas"]["RunTask"][];
13722
13764
  timezone: string;
@@ -13878,11 +13920,11 @@ export interface components {
13878
13920
  SubmitResultInput: {
13879
13921
  /** @description Required when someone holds the lease; must match the holder. */
13880
13922
  claimant?: string | null;
13881
- content?: null | components["schemas"]["Value"];
13923
+ content?: components["schemas"]["Value"] | null;
13882
13924
  /** @description Shorthand for a failure: the model reads it as a failed tool. */
13883
13925
  error?: string | null;
13884
13926
  is_error?: boolean;
13885
- result?: null | components["schemas"]["Value"];
13927
+ result?: components["schemas"]["Value"] | null;
13886
13928
  };
13887
13929
  TaskTemplate: {
13888
13930
  agent_slug: string;
@@ -14105,6 +14147,12 @@ export interface components {
14105
14147
  feature_task_planning?: boolean | null;
14106
14148
  feature_user_notes?: boolean | null;
14107
14149
  feature_web_search?: boolean | null;
14150
+ /**
14151
+ * @description Absent → leave alone; a list (possibly empty) replaces the shared prefixes. Adding
14152
+ * one merges that path out of every conversation of each user the next time any of
14153
+ * them is used; removing one leaves each conversation with its own copy.
14154
+ */
14155
+ filesystem_shared_prefixes?: string[] | null;
14108
14156
  /**
14109
14157
  * Format: int32
14110
14158
  * @description Tri-state: absent → leave alone; `null` → never expires; number → expire after
@@ -14375,7 +14423,7 @@ export interface components {
14375
14423
  /** @description When present, replaces the full set of declared parameters. */
14376
14424
  parameters?: components["schemas"]["TaskTemplateParam"][] | null;
14377
14425
  prompt_template?: string | null;
14378
- schedule_shape?: null | components["schemas"]["ScheduleShape"];
14426
+ schedule_shape?: components["schemas"]["ScheduleShape"] | null;
14379
14427
  slug?: string | null;
14380
14428
  tool_choose_cron?: boolean | null;
14381
14429
  /**
@@ -14394,7 +14442,7 @@ export interface components {
14394
14442
  tool_min_delay_seconds?: number | null;
14395
14443
  /** Format: int64 */
14396
14444
  tool_min_gap_seconds?: number | null;
14397
- trigger_source?: null | components["schemas"]["TriggerSource"];
14445
+ trigger_source?: components["schemas"]["TriggerSource"] | null;
14398
14446
  };
14399
14447
  UpdateTelegramChannelInput: {
14400
14448
  agent_slug?: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubos/agent-sdk",
3
- "version": "0.0.1150539",
3
+ "version": "0.0.1151293",
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",