@xpert-ai/contracts 3.35.0 → 3.37.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 (105) hide show
  1. package/context-event.cjs.default.js +1 -0
  2. package/context-event.cjs.js +26 -0
  3. package/context-event.cjs.mjs +2 -0
  4. package/context-event.d.ts +1 -0
  5. package/context-event.esm.js +24 -0
  6. package/index.cjs.default.js +1 -0
  7. package/index.cjs.js +1165 -805
  8. package/index.cjs.mjs +2 -0
  9. package/index.esm.js +1140 -801
  10. package/package.json +18 -2
  11. package/src/agent-plugin.d.ts +4 -29
  12. package/src/ai/agent-output-delivery.model.d.ts +22 -1
  13. package/src/ai/agent-runtime.model.d.ts +4 -4
  14. package/src/ai/assistant-capability.model.d.ts +0 -1
  15. package/src/ai/assistant-template-manifest.model.d.ts +272 -308
  16. package/src/ai/assistant-template-overview.model.d.ts +0 -4
  17. package/src/ai/assistant-template.model.d.ts +0 -4
  18. package/src/ai/bosi.model.d.ts +1 -1
  19. package/src/ai/chat-activity.model.d.ts +13 -0
  20. package/src/ai/chat-message.model.d.ts +0 -11
  21. package/src/ai/chat.model.d.ts +3 -0
  22. package/src/ai/cli-execution.model.d.ts +88 -0
  23. package/src/ai/conversation-trail.model.d.ts +274 -274
  24. package/src/ai/copilot-store.model.d.ts +0 -13
  25. package/src/ai/evolution/entities.d.ts +164 -0
  26. package/src/ai/evolution/evaluation.d.ts +7 -0
  27. package/src/ai/evolution/execution-review.d.ts +68 -0
  28. package/src/ai/evolution/index.d.ts +2 -0
  29. package/src/ai/evolution/provider.d.ts +1 -0
  30. package/src/ai/evolution/target.d.ts +5 -0
  31. package/src/ai/execution-activity.model.d.ts +362 -362
  32. package/src/ai/execution-control-evidence.schema.d.ts +26 -26
  33. package/src/ai/execution-observability.model.d.ts +160 -160
  34. package/src/ai/execution-source.model.d.ts +45 -0
  35. package/src/ai/index.d.ts +2 -0
  36. package/src/ai/middleware.model.d.ts +1 -0
  37. package/src/ai/model-execution.model.d.ts +5 -108
  38. package/src/ai/model-replacement.model.d.ts +12 -12
  39. package/src/ai/project-configuration-view.model.d.ts +1 -0
  40. package/src/ai/project-pipeline/analytics.d.ts +288 -288
  41. package/src/ai/project-pipeline/budget.schema.d.ts +4 -4
  42. package/src/ai/project-pipeline/commands.schema.d.ts +519 -476
  43. package/src/ai/project-pipeline/configuration-declaration.schema.d.ts +3815 -0
  44. package/src/ai/project-pipeline/configuration-form.d.ts +1903 -1759
  45. package/src/ai/project-pipeline/configuration.schema.d.ts +425 -388
  46. package/src/ai/project-pipeline/contribution.schema.d.ts +764 -612
  47. package/src/ai/project-pipeline/definition.schema.d.ts +382 -338
  48. package/src/ai/project-pipeline/execution-statistics.d.ts +30 -30
  49. package/src/ai/project-pipeline/graph.model.d.ts +7 -2
  50. package/src/ai/project-pipeline/human-wait-statistics.d.ts +2 -2
  51. package/src/ai/project-pipeline/index.d.ts +1 -0
  52. package/src/ai/project-pipeline/model-usage-statistics.d.ts +6 -6
  53. package/src/ai/project-pipeline/node.schema.d.ts +57 -44
  54. package/src/ai/project-pipeline/operation.schema.d.ts +378 -378
  55. package/src/ai/project-pipeline/plugin-deployment.schema.d.ts +6 -6
  56. package/src/ai/project-pipeline/portfolio.schema.d.ts +684 -684
  57. package/src/ai/project-pipeline/primitives.schema.d.ts +4 -4
  58. package/src/ai/project-pipeline/projection.schema.d.ts +674 -637
  59. package/src/ai/project-pipeline/provider-actions.schema.d.ts +120 -120
  60. package/src/ai/project-pipeline/queue-statistics.d.ts +34 -34
  61. package/src/ai/project-pipeline/runtime.schema.d.ts +89 -89
  62. package/src/ai/project-pipeline/statistics.d.ts +142 -142
  63. package/src/ai/project-task-runtime.model.d.ts +265 -789
  64. package/src/ai/sandbox-execution-control.schema.d.ts +6 -6
  65. package/src/ai/template-installation.model.d.ts +13 -13
  66. package/src/ai/template-lifecycle.model.d.ts +4 -4
  67. package/src/ai/xpert-agent-execution.model.d.ts +33 -0
  68. package/src/ai/xpert-project.model.d.ts +2 -1
  69. package/src/ai/xpert-tool.model.d.ts +12 -0
  70. package/src/ai/xpert.model.d.ts +0 -34
  71. package/src/ai/xpert.utils.d.ts +0 -1
  72. package/src/always-on/agent-event.model.d.ts +121 -0
  73. package/src/always-on/agent-event.schema.d.ts +139 -0
  74. package/src/always-on/agent-output-reference.schema.d.ts +27 -0
  75. package/src/always-on/agent-output.model.d.ts +411 -0
  76. package/src/always-on/human-decision.model.d.ts +204 -0
  77. package/src/always-on/index.d.ts +3 -0
  78. package/src/always-on/output-workbench.schema.d.ts +154 -0
  79. package/src/analytics/analysis-evidence.model.d.ts +29 -0
  80. package/src/analytics/analytics-certification.model.d.ts +17 -0
  81. package/src/{analytics-definition.model.d.ts → analytics/analytics-definition.model.d.ts} +1 -1
  82. package/src/{analytics-diagnostic.d.ts → analytics/analytics-diagnostic.d.ts} +8 -8
  83. package/src/{analytics-query.model.d.ts → analytics/analytics-query.model.d.ts} +9 -1
  84. package/src/analytics/index.d.ts +7 -0
  85. package/src/{resource-analysis.model.d.ts → analytics/resource-analysis.model.d.ts} +6 -1
  86. package/src/app-platform.d.ts +14 -14
  87. package/src/{artifact-group-reference.model.d.ts → artifacts/artifact-group-reference.model.d.ts} +1 -1
  88. package/src/{artifact-presentation.model.d.ts → artifacts/artifact-presentation.model.d.ts} +1 -1
  89. package/src/{artifact-use-grant-command.d.ts → artifacts/artifact-use-grant-command.d.ts} +1 -1
  90. package/src/{artifact-use-grant.model.d.ts → artifacts/artifact-use-grant.model.d.ts} +2 -2
  91. package/src/{artifact.model.d.ts → artifacts/artifact.model.d.ts} +4 -2
  92. package/src/artifacts/index.d.ts +5 -0
  93. package/src/collaboration.model.d.ts +31 -11
  94. package/src/{content-document.model.d.ts → content/content-document.model.d.ts} +2 -0
  95. package/src/{content-resource.model.d.ts → content/content-resource.model.d.ts} +7 -3
  96. package/src/content/content-transfer.model.d.ts +21 -0
  97. package/src/content/index.d.ts +4 -0
  98. package/src/execution-control-admission.schema.d.ts +2 -2
  99. package/src/icon-definition.schema.d.ts +6 -10
  100. package/src/index.d.ts +5 -14
  101. package/src/secret-token.model.d.ts +4 -4
  102. package/src/user-notification.schema.d.ts +1300 -471
  103. package/src/view-extension/client-commands.d.ts +24 -0
  104. /package/src/{analytics-source.model.d.ts → analytics/analytics-source.model.d.ts} +0 -0
  105. /package/src/{content-reference.model.d.ts → content/content-reference.model.d.ts} +0 -0
@@ -9,10 +9,6 @@ export interface AssistantTemplateOverview {
9
9
  publisher: string;
10
10
  version?: string;
11
11
  instructions: string;
12
- memories: {
13
- title: string;
14
- content?: string;
15
- }[];
16
12
  skills: AssistantCapabilitySummary['skills'];
17
13
  agents: AssistantCapabilitySummary['agents'];
18
14
  onboarding?: Required<NonNullable<AssistantTemplateManifest['onboarding']>>;
@@ -9,8 +9,4 @@ export interface AssistantTemplateMetadata {
9
9
  }
10
10
  export type AssistantTemplateDefinition = TXpertTeamDraft & {
11
11
  template?: AssistantTemplateMetadata;
12
- memories?: {
13
- prefix: string;
14
- value: unknown;
15
- }[];
16
12
  };
@@ -47,7 +47,7 @@ export type BosiOnboardingChoice = {
47
47
  selected: boolean;
48
48
  };
49
49
  /** Optional bootstrap capabilities; these keys match the existing template capability registry. */
50
- export type BosiCapability = 'cloud-computer' | 'desktop-shell';
50
+ export type BosiCapability = 'cloud-computer' | 'desktop-shell' | 'desktop-computer-use';
51
51
  /** Authorized setup snapshot; access/query errors must not be represented as an empty binding. */
52
52
  export type BosiSetup = {
53
53
  assistantId: string | null;
@@ -3,6 +3,19 @@ export interface IChatConversationUnreadXpertSummary {
3
3
  xpertId: string;
4
4
  /** Includes running conversations other than the most recently updated one. */
5
5
  hasActiveRuns?: boolean;
6
+ /** Private threads available to open, including active branches of an idle conversation. */
7
+ runningThreads?: {
8
+ threadId: string;
9
+ title: string | null;
10
+ }[];
11
+ /** Total private threads waiting for a human response, including those outside the preview. */
12
+ pendingThreadCount?: number;
13
+ /** Pending threads in the bounded preview. Rank is one-based across the requested Assistants, newest first. */
14
+ pendingThreads?: {
15
+ threadId: string;
16
+ kind: 'question' | 'approval';
17
+ rank?: number;
18
+ }[];
6
19
  unreadMessages: number;
7
20
  unreadConversations: number;
8
21
  latestUnreadAt?: Date | string | null;
@@ -2,17 +2,10 @@ import { MessageType } from '@langchain/core/messages';
2
2
  import type { ChatKitReference, ChatKitReferenceBase, TChatMessageStep, TChatTaskSummaryContribution, TMessageContent, TMessageContentReasoning } from '@xpert-ai/chatkit-types';
3
3
  import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
4
4
  import { IChatConversation, TChatInputCheckpoint, TChatOutputCheckpoint, TChatMessageBranching } from './chat.model';
5
- import { LongTermMemoryTypeEnum } from './xpert.model';
6
5
  import { IXpertAgentExecution, XpertAgentExecutionStatusEnum } from './xpert-agent-execution.model';
7
6
  import { JSONValue } from '../core.model';
8
7
  import { IStorageFile } from '../storage-file.model';
9
8
  import type { TChatMessageEnvelope } from './chat-message-envelope.model';
10
- export type TSummaryJob = Record<LongTermMemoryTypeEnum, {
11
- jobId: number | string;
12
- status: string;
13
- progress?: number;
14
- memoryKey?: string;
15
- }>;
16
9
  export type TChatElementAttribute = {
17
10
  name: string;
18
11
  value: string;
@@ -97,10 +90,6 @@ export interface IChatMessage extends IBasePerTenantAndOrganizationEntityModel,
97
90
  references?: TChatReference[];
98
91
  /** Compact contribution used to rebuild the thread task summary. */
99
92
  taskSummary?: TChatTaskSummaryContribution;
100
- /**
101
- * Job of summary
102
- */
103
- summaryJob?: TSummaryJob;
104
93
  /**
105
94
  * the third-party platform's message
106
95
  */
@@ -305,6 +305,9 @@ export interface IChatConversationMarkReadRequest {
305
305
  }
306
306
  export interface IChatConversationUnreadXpertsRequest {
307
307
  xpertIds: string[];
308
+ includePending?: boolean;
309
+ /** Include the user's accessible running threads for desktop navigation. */
310
+ includeRunning?: boolean;
308
311
  }
309
312
  export type ChatMessage = {
310
313
  conversationId: string;
@@ -0,0 +1,88 @@
1
+ import type { ExecutionSourceContext } from './execution-source.model';
2
+ /** CLI tool approvals inside the already authorized Computer environment. */
3
+ export type CliPermissionMode = 'allow' | 'restricted';
4
+ export type CliSessionStatus = 'starting' | 'running' | 'stopping' | 'exited' | 'unknown';
5
+ /** Connection choice contains no credentials. Running executions retain this snapshot. */
6
+ export type ComputerCliConnection = {
7
+ mode: 'platform';
8
+ revision: number;
9
+ } | {
10
+ mode: 'native';
11
+ revision: number;
12
+ };
13
+ /** Persistent preference; auto is resolved once for each new execution, never mid-run. */
14
+ export type ComputerCliConnectionPreference = {
15
+ mode: 'auto' | 'platform' | 'native';
16
+ revision: number;
17
+ };
18
+ export type ComputerCliAuthentication = 'authenticated' | 'configured' | 'authentication_required' | 'unknown';
19
+ /** Process ownership is independent of the model payer and provider. */
20
+ export type CliExecutionSourceContext = ExecutionSourceContext;
21
+ /** Guest executable/version probe result; unknown means the installation could not be confirmed. */
22
+ export type ComputerCliInstallation = 'installed' | 'missing' | 'version_mismatch' | 'unknown';
23
+ /** Authorized Computer tool inventory; installation, model support and managed execution are independent. */
24
+ export interface ComputerCliToolsView {
25
+ /** A conversation is required to resolve the Assistant's available models. */
26
+ state: 'ready' | 'conversation_required';
27
+ tools: Array<{
28
+ /** Policy-approved executable identifier and pinned version. */
29
+ id: string;
30
+ version: string;
31
+ /** Installed at the required version and compatible with the selected model. */
32
+ available: boolean;
33
+ /** Probe of the current container; unknown must not be treated as installed. */
34
+ installation: ComputerCliInstallation;
35
+ /** The Assistant's selected model supports this tool's approved protocol. */
36
+ modelCompatible: boolean;
37
+ /** A registered background runtime supports this tool, version and Computer environment. */
38
+ managed: boolean;
39
+ preference?: ComputerCliConnectionPreference;
40
+ connection?: ComputerCliConnection;
41
+ nativeSupported?: boolean;
42
+ nativeAllowed?: boolean;
43
+ authentication?: ComputerCliAuthentication;
44
+ }>;
45
+ /** Current launch defaults; existing sessions retain their own issuance snapshot. */
46
+ launch?: {
47
+ assistant: string;
48
+ model: string;
49
+ /** Server-resolved path inside the mounted Computer workspace. */
50
+ workingDirectory: string;
51
+ /** Maximum token budget for a newly issued session. */
52
+ tokenBudget?: number;
53
+ };
54
+ }
55
+ /** Owned interactive CLI session summary; excludes execution credentials and Docker connection details. */
56
+ export interface CliSessionView {
57
+ connection?: ComputerCliConnection;
58
+ /** Session identity, distinct from a model call or desktop control ticket. */
59
+ id: string;
60
+ /** Immutable conversation and Assistant bindings. */
61
+ conversationId: string;
62
+ xpertId: string;
63
+ /** Policy-approved tool/version recorded at creation. */
64
+ tool: {
65
+ id: string;
66
+ version: string;
67
+ };
68
+ /** Host-observed lifecycle; unknown never implies completion or permission to relaunch. */
69
+ status: CliSessionStatus;
70
+ /** Platform model identifier captured at issuance; empty if no grant was issued. */
71
+ defaultModelId: string;
72
+ /** Original Assistant display snapshot; historical records may fall back to its ID. */
73
+ assistantName: string;
74
+ /** Original default model name; empty if no grant was issued. */
75
+ model: string;
76
+ /** Server-resolved session workspace path inside Computer. */
77
+ workingDirectory: string;
78
+ /** Explicit session budget; omitted when none is configured. */
79
+ tokenBudget?: number;
80
+ /** Recorded actual tokens across this grant's attempts, excluding estimates. */
81
+ usedTokens: number;
82
+ /** Tokens still reserved for attempts whose usage is not confirmed. */
83
+ reservedTokens: number;
84
+ /** ISO absolute execution deadline, not the renewable lease expiry; creation time without a grant. */
85
+ expiresAt: string;
86
+ /** Supervisor exit code when observed; null or absent if not known. */
87
+ exitCode?: number | null;
88
+ }