@xpert-ai/contracts 3.35.0 → 3.36.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.
- package/context-event.cjs.default.js +1 -0
- package/context-event.cjs.js +26 -0
- package/context-event.cjs.mjs +2 -0
- package/context-event.d.ts +1 -0
- package/context-event.esm.js +24 -0
- package/index.cjs.default.js +1 -0
- package/index.cjs.js +291 -299
- package/index.cjs.mjs +2 -0
- package/index.esm.js +280 -296
- package/package.json +18 -2
- package/src/agent-event.model.d.ts +88 -0
- package/src/agent-event.schema.d.ts +120 -0
- package/src/agent-plugin.d.ts +4 -29
- package/src/ai/agent-output-delivery.model.d.ts +22 -1
- package/src/ai/agent-runtime.model.d.ts +4 -4
- package/src/ai/assistant-capability.model.d.ts +0 -1
- package/src/ai/assistant-template-manifest.model.d.ts +316 -352
- package/src/ai/assistant-template-overview.model.d.ts +0 -4
- package/src/ai/assistant-template-setup.model.d.ts +8 -8
- package/src/ai/assistant-template.model.d.ts +0 -4
- package/src/ai/bosi.model.d.ts +1 -1
- package/src/ai/chat-activity.model.d.ts +8 -0
- package/src/ai/chat-message.model.d.ts +0 -11
- package/src/ai/chat.model.d.ts +1 -0
- package/src/ai/cli-execution.model.d.ts +88 -0
- package/src/ai/conversation-trail.model.d.ts +274 -274
- package/src/ai/copilot-store.model.d.ts +0 -13
- package/src/ai/evolution/entities.d.ts +164 -0
- package/src/ai/evolution/evaluation.d.ts +7 -0
- package/src/ai/evolution/execution-review.d.ts +68 -0
- package/src/ai/evolution/index.d.ts +2 -0
- package/src/ai/evolution/provider.d.ts +1 -0
- package/src/ai/evolution/target.d.ts +5 -0
- package/src/ai/execution-activity.model.d.ts +362 -362
- package/src/ai/execution-control-evidence.schema.d.ts +18 -18
- package/src/ai/execution-observability.model.d.ts +196 -196
- package/src/ai/execution-source.model.d.ts +45 -0
- package/src/ai/index.d.ts +2 -0
- package/src/ai/mcp-execution-control.schema.d.ts +2 -2
- package/src/ai/middleware.model.d.ts +1 -0
- package/src/ai/model-execution.model.d.ts +5 -108
- package/src/ai/model-replacement.model.d.ts +18 -18
- package/src/ai/project-configuration-view.model.d.ts +1 -0
- package/src/ai/project-pipeline/analytics.d.ts +192 -192
- package/src/ai/project-pipeline/commands.schema.d.ts +533 -490
- package/src/ai/project-pipeline/configuration-form.d.ts +1976 -1832
- package/src/ai/project-pipeline/configuration.schema.d.ts +450 -413
- package/src/ai/project-pipeline/contribution.schema.d.ts +688 -639
- package/src/ai/project-pipeline/definition.schema.d.ts +400 -356
- package/src/ai/project-pipeline/execution-statistics.d.ts +18 -18
- package/src/ai/project-pipeline/graph.model.d.ts +5 -0
- package/src/ai/project-pipeline/human-wait-statistics.d.ts +2 -2
- package/src/ai/project-pipeline/model-usage-statistics.d.ts +4 -4
- package/src/ai/project-pipeline/node.schema.d.ts +57 -44
- package/src/ai/project-pipeline/operation.schema.d.ts +298 -298
- package/src/ai/project-pipeline/plugin-deployment.schema.d.ts +6 -6
- package/src/ai/project-pipeline/portfolio.schema.d.ts +468 -468
- package/src/ai/project-pipeline/primitives.schema.d.ts +6 -6
- package/src/ai/project-pipeline/projection.schema.d.ts +609 -572
- package/src/ai/project-pipeline/provider-actions.schema.d.ts +100 -100
- package/src/ai/project-pipeline/queue-statistics.d.ts +10 -10
- package/src/ai/project-pipeline/runtime.schema.d.ts +60 -60
- package/src/ai/project-pipeline/statistics.d.ts +100 -100
- package/src/ai/project-task-runtime.model.d.ts +256 -780
- package/src/ai/sandbox-execution-control.schema.d.ts +6 -6
- package/src/ai/template-installation.model.d.ts +18 -18
- package/src/ai/template-lifecycle.model.d.ts +6 -6
- package/src/ai/thread-control-view.schema.d.ts +4 -4
- package/src/ai/xpert-agent-execution.model.d.ts +4 -0
- package/src/ai/xpert-project.model.d.ts +2 -1
- package/src/ai/xpert.model.d.ts +0 -34
- package/src/ai/xpert.utils.d.ts +0 -1
- package/src/analytics/analysis-evidence.model.d.ts +29 -0
- package/src/analytics/analytics-certification.model.d.ts +17 -0
- package/src/{analytics-definition.model.d.ts → analytics/analytics-definition.model.d.ts} +1 -1
- package/src/{analytics-diagnostic.d.ts → analytics/analytics-diagnostic.d.ts} +8 -8
- package/src/{analytics-query.model.d.ts → analytics/analytics-query.model.d.ts} +9 -1
- package/src/analytics/index.d.ts +7 -0
- package/src/{resource-analysis.model.d.ts → analytics/resource-analysis.model.d.ts} +6 -1
- package/src/app-platform.d.ts +16 -16
- package/src/{artifact-group-reference.model.d.ts → artifacts/artifact-group-reference.model.d.ts} +1 -1
- package/src/{artifact-presentation.model.d.ts → artifacts/artifact-presentation.model.d.ts} +1 -1
- package/src/{artifact-use-grant-command.d.ts → artifacts/artifact-use-grant-command.d.ts} +1 -1
- package/src/{artifact-use-grant.model.d.ts → artifacts/artifact-use-grant.model.d.ts} +2 -2
- package/src/{artifact.model.d.ts → artifacts/artifact.model.d.ts} +2 -2
- package/src/artifacts/index.d.ts +5 -0
- package/src/collaboration.model.d.ts +31 -11
- package/src/{content-document.model.d.ts → content/content-document.model.d.ts} +2 -0
- package/src/{content-resource.model.d.ts → content/content-resource.model.d.ts} +6 -3
- package/src/content/content-transfer.model.d.ts +21 -0
- package/src/content/index.d.ts +4 -0
- package/src/execution-control-admission.schema.d.ts +2 -2
- package/src/index.d.ts +5 -14
- package/src/user-notification.schema.d.ts +46 -28
- package/src/view-extension/client-commands.d.ts +24 -0
- /package/src/{analytics-source.model.d.ts → analytics/analytics-source.model.d.ts} +0 -0
- /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']>>;
|
|
@@ -23,6 +23,7 @@ export declare const assistantTemplateSetupStateSchema: z.ZodObject<{
|
|
|
23
23
|
choice?: "skip";
|
|
24
24
|
}>]>>;
|
|
25
25
|
}, "strict", z.ZodTypeAny, {
|
|
26
|
+
revision?: number;
|
|
26
27
|
preferences?: Record<string, string>;
|
|
27
28
|
connectors?: Record<string, {
|
|
28
29
|
bindingId?: string;
|
|
@@ -31,9 +32,9 @@ export declare const assistantTemplateSetupStateSchema: z.ZodObject<{
|
|
|
31
32
|
choice?: "skip";
|
|
32
33
|
}>;
|
|
33
34
|
completedAt?: string;
|
|
34
|
-
revision?: number;
|
|
35
35
|
firstResult?: string;
|
|
36
36
|
}, {
|
|
37
|
+
revision?: number;
|
|
37
38
|
preferences?: Record<string, string>;
|
|
38
39
|
connectors?: Record<string, {
|
|
39
40
|
bindingId?: string;
|
|
@@ -42,7 +43,6 @@ export declare const assistantTemplateSetupStateSchema: z.ZodObject<{
|
|
|
42
43
|
choice?: "skip";
|
|
43
44
|
}>;
|
|
44
45
|
completedAt?: string;
|
|
45
|
-
revision?: number;
|
|
46
46
|
firstResult?: string;
|
|
47
47
|
}>;
|
|
48
48
|
export type AssistantTemplateSetupState = z.output<typeof assistantTemplateSetupStateSchema>;
|
|
@@ -69,46 +69,46 @@ export declare const templateSetupUpdateSchema: z.ZodObject<{
|
|
|
69
69
|
choice?: "skip";
|
|
70
70
|
}>]>;
|
|
71
71
|
}, "strict", z.ZodTypeAny, {
|
|
72
|
+
key?: string;
|
|
72
73
|
selection?: {
|
|
73
74
|
bindingId?: string;
|
|
74
75
|
choice?: "binding";
|
|
75
76
|
} | {
|
|
76
77
|
choice?: "skip";
|
|
77
78
|
};
|
|
78
|
-
key?: string;
|
|
79
79
|
}, {
|
|
80
|
+
key?: string;
|
|
80
81
|
selection?: {
|
|
81
82
|
bindingId?: string;
|
|
82
83
|
choice?: "binding";
|
|
83
84
|
} | {
|
|
84
85
|
choice?: "skip";
|
|
85
86
|
};
|
|
86
|
-
key?: string;
|
|
87
87
|
}>>;
|
|
88
88
|
}, "strict", z.ZodTypeAny, {
|
|
89
|
-
preferences?: Record<string, string>;
|
|
90
89
|
revision?: number;
|
|
90
|
+
preferences?: Record<string, string>;
|
|
91
91
|
connector?: {
|
|
92
|
+
key?: string;
|
|
92
93
|
selection?: {
|
|
93
94
|
bindingId?: string;
|
|
94
95
|
choice?: "binding";
|
|
95
96
|
} | {
|
|
96
97
|
choice?: "skip";
|
|
97
98
|
};
|
|
98
|
-
key?: string;
|
|
99
99
|
};
|
|
100
100
|
firstResult?: string;
|
|
101
101
|
}, {
|
|
102
|
-
preferences?: Record<string, string>;
|
|
103
102
|
revision?: number;
|
|
103
|
+
preferences?: Record<string, string>;
|
|
104
104
|
connector?: {
|
|
105
|
+
key?: string;
|
|
105
106
|
selection?: {
|
|
106
107
|
bindingId?: string;
|
|
107
108
|
choice?: "binding";
|
|
108
109
|
} | {
|
|
109
110
|
choice?: "skip";
|
|
110
111
|
};
|
|
111
|
-
key?: string;
|
|
112
112
|
};
|
|
113
113
|
firstResult?: string;
|
|
114
114
|
}>;
|
package/src/ai/bosi.model.d.ts
CHANGED
|
@@ -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,14 @@ export interface IChatConversationUnreadXpertSummary {
|
|
|
3
3
|
xpertId: string;
|
|
4
4
|
/** Includes running conversations other than the most recently updated one. */
|
|
5
5
|
hasActiveRuns?: boolean;
|
|
6
|
+
/** Total private threads waiting for a human response, including those outside the preview. */
|
|
7
|
+
pendingThreadCount?: number;
|
|
8
|
+
/** Pending threads in the bounded preview. Rank is one-based across the requested Assistants, newest first. */
|
|
9
|
+
pendingThreads?: {
|
|
10
|
+
threadId: string;
|
|
11
|
+
kind: 'question' | 'approval';
|
|
12
|
+
rank?: number;
|
|
13
|
+
}[];
|
|
6
14
|
unreadMessages: number;
|
|
7
15
|
unreadConversations: number;
|
|
8
16
|
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
|
*/
|
package/src/ai/chat.model.d.ts
CHANGED
|
@@ -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
|
+
}
|