@xpert-ai/contracts 3.18.6 → 3.20.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.
Files changed (69) hide show
  1. package/index.cjs.js +1390 -222
  2. package/index.esm.js +1317 -223
  3. package/package.json +6 -3
  4. package/src/agent/ai-model.d.ts +1 -0
  5. package/src/agent/token.d.ts +4 -0
  6. package/src/agent-plugin.d.ts +192 -0
  7. package/src/ai/agent-output-delivery.model.d.ts +31 -0
  8. package/src/ai/agent-runtime.model.d.ts +53 -0
  9. package/src/ai/ai-model.model.d.ts +3 -0
  10. package/src/ai/assistant-binding.model.d.ts +3 -0
  11. package/src/ai/assistant-configuration.model.d.ts +76 -0
  12. package/src/ai/assistant-order.d.ts +5 -0
  13. package/src/ai/assistant-trigger.model.d.ts +56 -0
  14. package/src/ai/bosi.model.d.ts +73 -0
  15. package/src/ai/chat-activity.model.d.ts +14 -0
  16. package/src/ai/chat-message-envelope.model.d.ts +55 -0
  17. package/src/ai/chat-message.model.d.ts +14 -1
  18. package/src/ai/chat-task-summary.model.d.ts +4 -3
  19. package/src/ai/chat.model.d.ts +110 -13
  20. package/src/ai/clawxpert-conversation-scope.model.d.ts +2 -0
  21. package/src/ai/evolution/baseline.d.ts +40 -0
  22. package/src/ai/evolution/change.d.ts +53 -0
  23. package/src/ai/evolution/index.d.ts +1 -0
  24. package/src/ai/evolution/persistence.d.ts +2 -0
  25. package/src/ai/evolution/provider.d.ts +1 -1
  26. package/src/ai/execution-activity.model.d.ts +547 -0
  27. package/src/ai/index.d.ts +17 -0
  28. package/src/ai/knowledge-keyword-analyzer.model.d.ts +18 -0
  29. package/src/ai/knowledgebase.model.d.ts +5 -0
  30. package/src/ai/mcp-capability.model.d.ts +5 -1
  31. package/src/ai/mcp-publication.model.d.ts +1 -1
  32. package/src/ai/membership.model.d.ts +5 -0
  33. package/src/ai/middleware.model.d.ts +1 -0
  34. package/src/ai/mobile.model.d.ts +5 -0
  35. package/src/ai/model-execution.model.d.ts +265 -0
  36. package/src/ai/model-gateway.model.d.ts +15 -3
  37. package/src/ai/model-usage.model.d.ts +19 -0
  38. package/src/ai/project-selection.model.d.ts +9 -0
  39. package/src/ai/project-task-graph.model.d.ts +70 -0
  40. package/src/ai/project-task-runtime.model.d.ts +1106 -0
  41. package/src/ai/project-task-schedule.d.ts +24 -0
  42. package/src/ai/project-task-type.model.d.ts +13 -0
  43. package/src/ai/prompt-workflow-capabilities.model.d.ts +15 -0
  44. package/src/ai/prompt-workflow.model.d.ts +17 -0
  45. package/src/ai/realtime-voice.model.d.ts +90 -0
  46. package/src/ai/realtime-voice.transport.d.ts +54 -0
  47. package/src/ai/resource-card.d.ts +2 -0
  48. package/src/ai/sandbox-file-output.model.d.ts +9 -0
  49. package/src/ai/thread-activity.model.d.ts +14 -0
  50. package/src/ai/xpert-agent-execution.model.d.ts +37 -0
  51. package/src/ai/xpert-chat.model.d.ts +2 -0
  52. package/src/ai/xpert-marketplace.model.d.ts +5 -0
  53. package/src/ai/xpert-project-type.model.d.ts +56 -0
  54. package/src/ai/xpert-project.model.d.ts +46 -1
  55. package/src/ai/xpert-template.model.d.ts +48 -0
  56. package/src/ai/xpert-tool-mcp.model.d.ts +21 -1
  57. package/src/ai/xpert-workflow.model.d.ts +15 -1
  58. package/src/ai/xpert.model.d.ts +20 -1
  59. package/src/desktop-shell.model.d.ts +159 -0
  60. package/src/i18n.model.d.ts +1 -0
  61. package/src/index.d.ts +7 -0
  62. package/src/integration.model.d.ts +19 -0
  63. package/src/plugin.d.ts +26 -7
  64. package/src/tag-entity.model.d.ts +1 -1
  65. package/src/types.d.ts +4 -0
  66. package/src/view-extension/index.d.ts +2 -0
  67. package/src/view-extension/model.d.ts +41 -1
  68. package/src/view-extension/workbench-open.d.ts +10 -0
  69. package/src/view-extension/workbench.d.ts +6 -0
@@ -0,0 +1,547 @@
1
+ import { z } from 'zod/v3';
2
+ export declare const codingExecutionViewKey = "platform.coding-execution__execution";
3
+ export declare const executionActivityCapabilitiesSchema: z.ZodObject<{
4
+ version: z.ZodLiteral<1>;
5
+ presentation: z.ZodLiteral<"coding">;
6
+ }, "strict", z.ZodTypeAny, {
7
+ version?: 1;
8
+ presentation?: "coding";
9
+ }, {
10
+ version?: 1;
11
+ presentation?: "coding";
12
+ }>;
13
+ export type ExecutionActivityCapabilities = z.infer<typeof executionActivityCapabilitiesSchema>;
14
+ export declare const executionActivityItemSchema: z.ZodObject<{
15
+ id: z.ZodString;
16
+ occurredAt: z.ZodOptional<z.ZodString>;
17
+ content: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
18
+ kind: z.ZodLiteral<"message">;
19
+ text: z.ZodString;
20
+ }, "strict", z.ZodTypeAny, {
21
+ text?: string;
22
+ kind?: "message";
23
+ }, {
24
+ text?: string;
25
+ kind?: "message";
26
+ }>, z.ZodObject<{
27
+ kind: z.ZodLiteral<"tool">;
28
+ name: z.ZodOptional<z.ZodString>;
29
+ status: z.ZodEnum<["running", "succeeded", "failed", "unknown"]>;
30
+ input: z.ZodOptional<z.ZodString>;
31
+ output: z.ZodOptional<z.ZodString>;
32
+ truncated: z.ZodOptional<z.ZodBoolean>;
33
+ outputRef: z.ZodOptional<z.ZodObject<{
34
+ key: z.ZodString;
35
+ length: z.ZodNumber;
36
+ }, "strict", z.ZodTypeAny, {
37
+ length?: number;
38
+ key?: string;
39
+ }, {
40
+ length?: number;
41
+ key?: string;
42
+ }>>;
43
+ detail: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
44
+ type: z.ZodLiteral<"command">;
45
+ command: z.ZodString;
46
+ cwd: z.ZodOptional<z.ZodString>;
47
+ exitCode: z.ZodOptional<z.ZodNumber>;
48
+ outputMode: z.ZodLiteral<"merged">;
49
+ }, "strict", z.ZodTypeAny, {
50
+ type?: "command";
51
+ command?: string;
52
+ cwd?: string;
53
+ exitCode?: number;
54
+ outputMode?: "merged";
55
+ }, {
56
+ type?: "command";
57
+ command?: string;
58
+ cwd?: string;
59
+ exitCode?: number;
60
+ outputMode?: "merged";
61
+ }>, z.ZodObject<{
62
+ type: z.ZodLiteral<"file_change">;
63
+ files: z.ZodArray<z.ZodObject<{
64
+ path: z.ZodString;
65
+ change: z.ZodEnum<["created", "modified", "deleted", "reported"]>;
66
+ patch: z.ZodOptional<z.ZodString>;
67
+ }, "strict", z.ZodTypeAny, {
68
+ path?: string;
69
+ patch?: string;
70
+ change?: "created" | "deleted" | "modified" | "reported";
71
+ }, {
72
+ path?: string;
73
+ patch?: string;
74
+ change?: "created" | "deleted" | "modified" | "reported";
75
+ }>, "many">;
76
+ }, "strict", z.ZodTypeAny, {
77
+ type?: "file_change";
78
+ files?: {
79
+ path?: string;
80
+ patch?: string;
81
+ change?: "created" | "deleted" | "modified" | "reported";
82
+ }[];
83
+ }, {
84
+ type?: "file_change";
85
+ files?: {
86
+ path?: string;
87
+ patch?: string;
88
+ change?: "created" | "deleted" | "modified" | "reported";
89
+ }[];
90
+ }>]>>;
91
+ }, "strict", z.ZodTypeAny, {
92
+ status?: "succeeded" | "failed" | "running" | "unknown";
93
+ name?: string;
94
+ input?: string;
95
+ output?: string;
96
+ kind?: "tool";
97
+ detail?: {
98
+ type?: "command";
99
+ command?: string;
100
+ cwd?: string;
101
+ exitCode?: number;
102
+ outputMode?: "merged";
103
+ } | {
104
+ type?: "file_change";
105
+ files?: {
106
+ path?: string;
107
+ patch?: string;
108
+ change?: "created" | "deleted" | "modified" | "reported";
109
+ }[];
110
+ };
111
+ truncated?: boolean;
112
+ outputRef?: {
113
+ length?: number;
114
+ key?: string;
115
+ };
116
+ }, {
117
+ status?: "succeeded" | "failed" | "running" | "unknown";
118
+ name?: string;
119
+ input?: string;
120
+ output?: string;
121
+ kind?: "tool";
122
+ detail?: {
123
+ type?: "command";
124
+ command?: string;
125
+ cwd?: string;
126
+ exitCode?: number;
127
+ outputMode?: "merged";
128
+ } | {
129
+ type?: "file_change";
130
+ files?: {
131
+ path?: string;
132
+ patch?: string;
133
+ change?: "created" | "deleted" | "modified" | "reported";
134
+ }[];
135
+ };
136
+ truncated?: boolean;
137
+ outputRef?: {
138
+ length?: number;
139
+ key?: string;
140
+ };
141
+ }>, z.ZodObject<{
142
+ kind: z.ZodLiteral<"diagnostic">;
143
+ code: z.ZodString;
144
+ text: z.ZodString;
145
+ }, "strict", z.ZodTypeAny, {
146
+ code?: string;
147
+ text?: string;
148
+ kind?: "diagnostic";
149
+ }, {
150
+ code?: string;
151
+ text?: string;
152
+ kind?: "diagnostic";
153
+ }>]>;
154
+ }, "strict", z.ZodTypeAny, {
155
+ id?: string;
156
+ content?: {
157
+ text?: string;
158
+ kind?: "message";
159
+ } | {
160
+ status?: "succeeded" | "failed" | "running" | "unknown";
161
+ name?: string;
162
+ input?: string;
163
+ output?: string;
164
+ kind?: "tool";
165
+ detail?: {
166
+ type?: "command";
167
+ command?: string;
168
+ cwd?: string;
169
+ exitCode?: number;
170
+ outputMode?: "merged";
171
+ } | {
172
+ type?: "file_change";
173
+ files?: {
174
+ path?: string;
175
+ patch?: string;
176
+ change?: "created" | "deleted" | "modified" | "reported";
177
+ }[];
178
+ };
179
+ truncated?: boolean;
180
+ outputRef?: {
181
+ length?: number;
182
+ key?: string;
183
+ };
184
+ } | {
185
+ code?: string;
186
+ text?: string;
187
+ kind?: "diagnostic";
188
+ };
189
+ occurredAt?: string;
190
+ }, {
191
+ id?: string;
192
+ content?: {
193
+ text?: string;
194
+ kind?: "message";
195
+ } | {
196
+ status?: "succeeded" | "failed" | "running" | "unknown";
197
+ name?: string;
198
+ input?: string;
199
+ output?: string;
200
+ kind?: "tool";
201
+ detail?: {
202
+ type?: "command";
203
+ command?: string;
204
+ cwd?: string;
205
+ exitCode?: number;
206
+ outputMode?: "merged";
207
+ } | {
208
+ type?: "file_change";
209
+ files?: {
210
+ path?: string;
211
+ patch?: string;
212
+ change?: "created" | "deleted" | "modified" | "reported";
213
+ }[];
214
+ };
215
+ truncated?: boolean;
216
+ outputRef?: {
217
+ length?: number;
218
+ key?: string;
219
+ };
220
+ } | {
221
+ code?: string;
222
+ text?: string;
223
+ kind?: "diagnostic";
224
+ };
225
+ occurredAt?: string;
226
+ }>;
227
+ export type ExecutionActivityItem = z.infer<typeof executionActivityItemSchema>;
228
+ export declare const executionActivityBatchSchema: z.ZodObject<{
229
+ items: z.ZodArray<z.ZodObject<{
230
+ id: z.ZodString;
231
+ occurredAt: z.ZodOptional<z.ZodString>;
232
+ content: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
233
+ kind: z.ZodLiteral<"message">;
234
+ text: z.ZodString;
235
+ }, "strict", z.ZodTypeAny, {
236
+ text?: string;
237
+ kind?: "message";
238
+ }, {
239
+ text?: string;
240
+ kind?: "message";
241
+ }>, z.ZodObject<{
242
+ kind: z.ZodLiteral<"tool">;
243
+ name: z.ZodOptional<z.ZodString>;
244
+ status: z.ZodEnum<["running", "succeeded", "failed", "unknown"]>;
245
+ input: z.ZodOptional<z.ZodString>;
246
+ output: z.ZodOptional<z.ZodString>;
247
+ truncated: z.ZodOptional<z.ZodBoolean>;
248
+ outputRef: z.ZodOptional<z.ZodObject<{
249
+ key: z.ZodString;
250
+ length: z.ZodNumber;
251
+ }, "strict", z.ZodTypeAny, {
252
+ length?: number;
253
+ key?: string;
254
+ }, {
255
+ length?: number;
256
+ key?: string;
257
+ }>>;
258
+ detail: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
259
+ type: z.ZodLiteral<"command">;
260
+ command: z.ZodString;
261
+ cwd: z.ZodOptional<z.ZodString>;
262
+ exitCode: z.ZodOptional<z.ZodNumber>;
263
+ outputMode: z.ZodLiteral<"merged">;
264
+ }, "strict", z.ZodTypeAny, {
265
+ type?: "command";
266
+ command?: string;
267
+ cwd?: string;
268
+ exitCode?: number;
269
+ outputMode?: "merged";
270
+ }, {
271
+ type?: "command";
272
+ command?: string;
273
+ cwd?: string;
274
+ exitCode?: number;
275
+ outputMode?: "merged";
276
+ }>, z.ZodObject<{
277
+ type: z.ZodLiteral<"file_change">;
278
+ files: z.ZodArray<z.ZodObject<{
279
+ path: z.ZodString;
280
+ change: z.ZodEnum<["created", "modified", "deleted", "reported"]>;
281
+ patch: z.ZodOptional<z.ZodString>;
282
+ }, "strict", z.ZodTypeAny, {
283
+ path?: string;
284
+ patch?: string;
285
+ change?: "created" | "deleted" | "modified" | "reported";
286
+ }, {
287
+ path?: string;
288
+ patch?: string;
289
+ change?: "created" | "deleted" | "modified" | "reported";
290
+ }>, "many">;
291
+ }, "strict", z.ZodTypeAny, {
292
+ type?: "file_change";
293
+ files?: {
294
+ path?: string;
295
+ patch?: string;
296
+ change?: "created" | "deleted" | "modified" | "reported";
297
+ }[];
298
+ }, {
299
+ type?: "file_change";
300
+ files?: {
301
+ path?: string;
302
+ patch?: string;
303
+ change?: "created" | "deleted" | "modified" | "reported";
304
+ }[];
305
+ }>]>>;
306
+ }, "strict", z.ZodTypeAny, {
307
+ status?: "succeeded" | "failed" | "running" | "unknown";
308
+ name?: string;
309
+ input?: string;
310
+ output?: string;
311
+ kind?: "tool";
312
+ detail?: {
313
+ type?: "command";
314
+ command?: string;
315
+ cwd?: string;
316
+ exitCode?: number;
317
+ outputMode?: "merged";
318
+ } | {
319
+ type?: "file_change";
320
+ files?: {
321
+ path?: string;
322
+ patch?: string;
323
+ change?: "created" | "deleted" | "modified" | "reported";
324
+ }[];
325
+ };
326
+ truncated?: boolean;
327
+ outputRef?: {
328
+ length?: number;
329
+ key?: string;
330
+ };
331
+ }, {
332
+ status?: "succeeded" | "failed" | "running" | "unknown";
333
+ name?: string;
334
+ input?: string;
335
+ output?: string;
336
+ kind?: "tool";
337
+ detail?: {
338
+ type?: "command";
339
+ command?: string;
340
+ cwd?: string;
341
+ exitCode?: number;
342
+ outputMode?: "merged";
343
+ } | {
344
+ type?: "file_change";
345
+ files?: {
346
+ path?: string;
347
+ patch?: string;
348
+ change?: "created" | "deleted" | "modified" | "reported";
349
+ }[];
350
+ };
351
+ truncated?: boolean;
352
+ outputRef?: {
353
+ length?: number;
354
+ key?: string;
355
+ };
356
+ }>, z.ZodObject<{
357
+ kind: z.ZodLiteral<"diagnostic">;
358
+ code: z.ZodString;
359
+ text: z.ZodString;
360
+ }, "strict", z.ZodTypeAny, {
361
+ code?: string;
362
+ text?: string;
363
+ kind?: "diagnostic";
364
+ }, {
365
+ code?: string;
366
+ text?: string;
367
+ kind?: "diagnostic";
368
+ }>]>;
369
+ }, "strict", z.ZodTypeAny, {
370
+ id?: string;
371
+ content?: {
372
+ text?: string;
373
+ kind?: "message";
374
+ } | {
375
+ status?: "succeeded" | "failed" | "running" | "unknown";
376
+ name?: string;
377
+ input?: string;
378
+ output?: string;
379
+ kind?: "tool";
380
+ detail?: {
381
+ type?: "command";
382
+ command?: string;
383
+ cwd?: string;
384
+ exitCode?: number;
385
+ outputMode?: "merged";
386
+ } | {
387
+ type?: "file_change";
388
+ files?: {
389
+ path?: string;
390
+ patch?: string;
391
+ change?: "created" | "deleted" | "modified" | "reported";
392
+ }[];
393
+ };
394
+ truncated?: boolean;
395
+ outputRef?: {
396
+ length?: number;
397
+ key?: string;
398
+ };
399
+ } | {
400
+ code?: string;
401
+ text?: string;
402
+ kind?: "diagnostic";
403
+ };
404
+ occurredAt?: string;
405
+ }, {
406
+ id?: string;
407
+ content?: {
408
+ text?: string;
409
+ kind?: "message";
410
+ } | {
411
+ status?: "succeeded" | "failed" | "running" | "unknown";
412
+ name?: string;
413
+ input?: string;
414
+ output?: string;
415
+ kind?: "tool";
416
+ detail?: {
417
+ type?: "command";
418
+ command?: string;
419
+ cwd?: string;
420
+ exitCode?: number;
421
+ outputMode?: "merged";
422
+ } | {
423
+ type?: "file_change";
424
+ files?: {
425
+ path?: string;
426
+ patch?: string;
427
+ change?: "created" | "deleted" | "modified" | "reported";
428
+ }[];
429
+ };
430
+ truncated?: boolean;
431
+ outputRef?: {
432
+ length?: number;
433
+ key?: string;
434
+ };
435
+ } | {
436
+ code?: string;
437
+ text?: string;
438
+ kind?: "diagnostic";
439
+ };
440
+ occurredAt?: string;
441
+ }>, "many">;
442
+ sourceCursor: z.ZodOptional<z.ZodString>;
443
+ expectedSourceCursor: z.ZodOptional<z.ZodString>;
444
+ complete: z.ZodOptional<z.ZodBoolean>;
445
+ gaps: z.ZodOptional<z.ZodArray<z.ZodEnum<["source_truncated", "storage_unavailable", "capture_limit", "interrupted", "source_lost"]>, "many">>;
446
+ }, "strict", z.ZodTypeAny, {
447
+ complete?: boolean;
448
+ items?: {
449
+ id?: string;
450
+ content?: {
451
+ text?: string;
452
+ kind?: "message";
453
+ } | {
454
+ status?: "succeeded" | "failed" | "running" | "unknown";
455
+ name?: string;
456
+ input?: string;
457
+ output?: string;
458
+ kind?: "tool";
459
+ detail?: {
460
+ type?: "command";
461
+ command?: string;
462
+ cwd?: string;
463
+ exitCode?: number;
464
+ outputMode?: "merged";
465
+ } | {
466
+ type?: "file_change";
467
+ files?: {
468
+ path?: string;
469
+ patch?: string;
470
+ change?: "created" | "deleted" | "modified" | "reported";
471
+ }[];
472
+ };
473
+ truncated?: boolean;
474
+ outputRef?: {
475
+ length?: number;
476
+ key?: string;
477
+ };
478
+ } | {
479
+ code?: string;
480
+ text?: string;
481
+ kind?: "diagnostic";
482
+ };
483
+ occurredAt?: string;
484
+ }[];
485
+ sourceCursor?: string;
486
+ expectedSourceCursor?: string;
487
+ gaps?: ("interrupted" | "source_truncated" | "storage_unavailable" | "capture_limit" | "source_lost")[];
488
+ }, {
489
+ complete?: boolean;
490
+ items?: {
491
+ id?: string;
492
+ content?: {
493
+ text?: string;
494
+ kind?: "message";
495
+ } | {
496
+ status?: "succeeded" | "failed" | "running" | "unknown";
497
+ name?: string;
498
+ input?: string;
499
+ output?: string;
500
+ kind?: "tool";
501
+ detail?: {
502
+ type?: "command";
503
+ command?: string;
504
+ cwd?: string;
505
+ exitCode?: number;
506
+ outputMode?: "merged";
507
+ } | {
508
+ type?: "file_change";
509
+ files?: {
510
+ path?: string;
511
+ patch?: string;
512
+ change?: "created" | "deleted" | "modified" | "reported";
513
+ }[];
514
+ };
515
+ truncated?: boolean;
516
+ outputRef?: {
517
+ length?: number;
518
+ key?: string;
519
+ };
520
+ } | {
521
+ code?: string;
522
+ text?: string;
523
+ kind?: "diagnostic";
524
+ };
525
+ occurredAt?: string;
526
+ }[];
527
+ sourceCursor?: string;
528
+ expectedSourceCursor?: string;
529
+ gaps?: ("interrupted" | "source_truncated" | "storage_unavailable" | "capture_limit" | "source_lost")[];
530
+ }>;
531
+ export type ExecutionActivityBatch = z.infer<typeof executionActivityBatchSchema>;
532
+ export type ExecutionActivityGap = NonNullable<ExecutionActivityBatch['gaps']>[number];
533
+ export interface ExecutionActivityCheckpoint {
534
+ sourceCursor?: string;
535
+ seq: number;
536
+ }
537
+ export interface ExecutionActivityPage {
538
+ items: Array<ExecutionActivityItem & {
539
+ seq: number;
540
+ firstSeq: number;
541
+ observedAt: string;
542
+ }>;
543
+ nextCursor: number;
544
+ hasMore: boolean;
545
+ state: 'not_recorded' | 'recording' | 'closed' | 'expired';
546
+ gaps: ExecutionActivityGap[];
547
+ }
package/src/ai/index.d.ts CHANGED
@@ -1,15 +1,21 @@
1
1
  export declare const STATE_VARIABLE_HUMAN = "human";
2
+ export * from './prompt-workflow-capabilities.model';
2
3
  export { ChatMessageEventTypeEnum, ChatMessageStepCategory, ChatMessageTypeEnum } from './ai.model';
3
4
  export type * from '@xpert-ai/chatkit-types';
4
5
  export type { IconDefinition, IconType } from '../types';
5
6
  export type { TChatRequest } from './xpert-chat.model';
7
+ export type { ProjectSelection } from './project-selection.model';
6
8
  export { CHAT_EVENT_TYPE_FOLLOW_UP_CONSUMED } from './chat-event.model';
7
9
  export * from './assistant-binding.model';
10
+ export * from './bosi.model';
11
+ export * from './assistant-order';
8
12
  export * from './assistant-model.model';
9
13
  export * from './assistant-user-preference.model';
10
14
  export * from './ai-model.model';
11
15
  export * from './ai.model';
12
16
  export * from './chat-event.model';
17
+ export { createResourceCardContent, isResourceCardContent, parseResourceCard, parseResourceCardContent, resourceCardId, upsertResourceCardContent } from './resource-card';
18
+ export type { ConversationResourceCard, ResourceCardImage, ResourceCardOpenTarget, ResourceCardScalar, TMessageContentResourceCard } from './resource-card';
13
19
  export * from './thread-goal.model';
14
20
  export * from './chat.model';
15
21
  export * from './chat-message.model';
@@ -61,6 +67,7 @@ export * from './xpert-workflow.model';
61
67
  export * from './xpert-workflow-task.prompt';
62
68
  export * from './xpert-tool-mcp.model';
63
69
  export * from './xpert-project.model';
70
+ export * from './xpert-project-type.model';
64
71
  export * from './environment.model';
65
72
  export * from './knowledgebase-task.model';
66
73
  export * from './knowledge-pipeline';
@@ -76,6 +83,7 @@ export * from './middleware.model';
76
83
  export * from './context-compression.model';
77
84
  export * from './sandbox';
78
85
  export * from './message-content.utils';
86
+ export * from './sandbox-file-output.model';
79
87
  export * from './mobile.model';
80
88
  export * from './evolution';
81
89
  export * from './mcp-capability.model';
@@ -86,3 +94,12 @@ export * from './knowledge-wiki-organization.model';
86
94
  export * from './knowledge-question.model';
87
95
  export * from './knowledge-tag.model';
88
96
  export * from './knowledge-parser-selection';
97
+ export * from './clawxpert-conversation-scope.model';
98
+ export * from './knowledge-keyword-analyzer.model';
99
+ export * from './assistant-configuration.model';
100
+ export * from './assistant-trigger.model';
101
+ export * from './model-execution.model';
102
+ export * from './agent-runtime.model';
103
+ export * from './project-task-runtime.model';
104
+ export * from './realtime-voice.model';
105
+ export type { ThreadActivitySnapshot } from './thread-activity.model';
@@ -0,0 +1,18 @@
1
+ export declare const DEFAULT_KNOWLEDGE_KEYWORD_ANALYZER = "basic";
2
+ /** Persisted analysis identity. A revision covers algorithm, normalization and dictionaries. */
3
+ export interface KnowledgeKeywordAnalyzer {
4
+ provider: string;
5
+ revision: string;
6
+ source: {
7
+ kind: 'builtin';
8
+ } | {
9
+ kind: 'plugin';
10
+ pluginName: string;
11
+ scopeKey: string;
12
+ };
13
+ }
14
+ export interface KnowledgeKeywordAnalyzerOption {
15
+ label: string;
16
+ languages: string[];
17
+ analyzer: KnowledgeKeywordAnalyzer;
18
+ }
@@ -2,6 +2,7 @@ import type { KnowledgeAutomaticTaggingConfig } from './knowledge-tag.model';
2
2
  import type { KnowledgeChunkLanguageHint } from './knowledge-chunking.model';
3
3
  import type { KnowledgeQuestionGenerationConfig } from './knowledge-question.model';
4
4
  import type { TKBRetrievalSettings } from './xpert.model';
5
+ import type { KnowledgeKeywordAnalyzer } from './knowledge-keyword-analyzer.model';
5
6
  import { VectorTypeEnum } from './rag';
6
7
  import { ICopilotModel } from './copilot-model.model';
7
8
  import { I18nObject, TAvatar } from '../types';
@@ -203,6 +204,10 @@ export type TKnowledgebase = {
203
204
  */
204
205
  parserId?: string;
205
206
  parserConfig?: KnowledgebaseParserConfig;
207
+ /** Null retains the legacy PostgreSQL simple/trigram retrieval path. */
208
+ keywordAnalyzer?: KnowledgeKeywordAnalyzer | null;
209
+ /** Set by the server when the first document is inserted. */
210
+ keywordAnalyzerLocked?: boolean;
206
211
  /**
207
212
  * Index structure determines how the knowledge base organizes and indexes your document content.
208
213
  * @deprecated
@@ -1,4 +1,6 @@
1
1
  import type { McpCapabilityApprovalMode } from './mcp-publication.model';
2
+ import type { I18nObject } from '../types';
3
+ import type { TMcpAppRefresh } from './xpert-tool-mcp.model';
2
4
  import type { JSONValue } from '../core.model';
3
5
  export declare const MCP_CAPABILITY_DESCRIPTOR_VERSION: 1;
4
6
  export declare const MCP_CAPABILITY_TYPES: readonly ["tool", "resource", "resource_template", "prompt", "app"];
@@ -82,7 +84,9 @@ export interface McpPromptCapabilityDescriptor extends McpCapabilityDescriptorBa
82
84
  argumentSchema: McpJsonSchema;
83
85
  supportsCompletion?: boolean;
84
86
  }
85
- export interface McpAppCapabilityDescriptor extends McpCapabilityDescriptorBase {
87
+ export interface McpAppCapabilityDescriptor extends Omit<McpCapabilityDescriptorBase, 'title'> {
88
+ title?: string | I18nObject;
89
+ refresh?: TMcpAppRefresh;
86
90
  capabilityType: 'app';
87
91
  entry: string;
88
92
  csp?: {
@@ -5,7 +5,7 @@ import type { McpCapabilityDescriptor, McpCapabilityType } from './mcp-capabilit
5
5
  export declare const MCP_PROTOCOL_VERSION: "2026-07-28";
6
6
  export declare const MCP_TASK_EXTENSION_ID: "io.modelcontextprotocol/tasks";
7
7
  export declare const MCP_HTTP_CORS_REQUEST_HEADERS: readonly ["MCP-Protocol-Version", "Mcp-Session-Id", "Mcp-Method", "Mcp-Name", "Traceparent", "Tracestate", "Baggage", "X-Request-Id"];
8
- export declare const MCP_HTTP_CORS_EXPOSED_HEADERS: readonly ["WWW-Authenticate", "MCP-Protocol-Version", "Mcp-Session-Id", "X-Request-Id"];
8
+ export declare const MCP_HTTP_CORS_EXPOSED_HEADERS: readonly ["Content-Location", "WWW-Authenticate", "MCP-Protocol-Version", "Mcp-Session-Id", "X-Request-Id"];
9
9
  export declare const MCP_PUBLICATION_STATUSES: readonly ["draft", "active", "disabled"];
10
10
  export type McpPublicationStatus = (typeof MCP_PUBLICATION_STATUSES)[number];
11
11
  export declare const MCP_PUBLICATION_REVIEW_STATUSES: readonly ["current", "required"];
@@ -1,3 +1,4 @@
1
+ import type { ModelExecutionUsageContext } from './model-execution.model';
1
2
  import { IBasePerTenantAndOrganizationEntityModel, IBasePerTenantEntityModel } from '../base-entity.model';
2
3
  import { IUser } from '../user.model';
3
4
  import { AiModelTypeEnum } from '../agent';
@@ -170,6 +171,8 @@ export interface IMembershipPointLedger extends IBasePerTenantEntityModel {
170
171
  reason?: string | null;
171
172
  accessSource?: ModelAccessSourceEnum | null;
172
173
  modelGrantId?: string | null;
174
+ /** Execution attribution for this points entry; absent for non-execution or historical records. */
175
+ executionContext?: ModelExecutionUsageContext | null;
173
176
  usageChannel?: ModelGatewayUsageChannelEnum | null;
174
177
  gatewayRequestId?: string | null;
175
178
  gatewayApiKeyId?: string | null;
@@ -212,6 +215,8 @@ export interface IMembershipPointLedger extends IBasePerTenantEntityModel {
212
215
  exchangeRate?: number | null;
213
216
  }
214
217
  export interface IMembershipMe {
218
+ /** Model consumption in the current cycle, including unbilled/unlimited use. Independent of quota deductions. */
219
+ consumedPoints?: number;
215
220
  membership: IUserMembership;
216
221
  plan: IMembershipPlan;
217
222
  personalPointsOnly: boolean;