@xpert-ai/contracts 3.23.0 → 3.25.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/index.cjs.js +5295 -368
- package/index.esm.js +5184 -369
- package/package.json +2 -2
- package/src/ai/agent-output-delivery.model.d.ts +10 -10
- package/src/ai/agent-runtime.model.d.ts +24 -24
- package/src/ai/assistant-model.model.d.ts +8 -0
- package/src/ai/assistant-template-dependencies.model.d.ts +1 -1
- package/src/ai/index.d.ts +2 -0
- package/src/ai/mcp-publication.model.d.ts +20 -0
- package/src/ai/model-discovery.model.d.ts +2 -0
- package/src/ai/project-pipeline/analytics.d.ts +1685 -0
- package/src/ai/project-pipeline/budget.schema.d.ts +78 -0
- package/src/ai/project-pipeline/catalog.schema.d.ts +188 -0
- package/src/ai/project-pipeline/catalog.validation.d.ts +4 -0
- package/src/ai/project-pipeline/commands.schema.d.ts +4381 -0
- package/src/ai/project-pipeline/compatibility.d.ts +5 -0
- package/src/ai/project-pipeline/compatibility.schema.d.ts +29 -0
- package/src/ai/project-pipeline/configuration-form.d.ts +17374 -0
- package/src/ai/project-pipeline/configuration.schema.d.ts +3774 -0
- package/src/ai/project-pipeline/contribution.schema.d.ts +6721 -0
- package/src/ai/project-pipeline/dataflow.validation.d.ts +6 -0
- package/src/ai/project-pipeline/definition.schema.d.ts +3808 -0
- package/src/ai/project-pipeline/definition.validation.d.ts +7 -0
- package/src/ai/project-pipeline/execution-statistics.d.ts +267 -0
- package/src/ai/project-pipeline/graph.model.d.ts +89 -0
- package/src/ai/project-pipeline/human-wait-statistics.d.ts +70 -0
- package/src/ai/project-pipeline/human-wait.schema.d.ts +26 -0
- package/src/ai/project-pipeline/index.d.ts +28 -0
- package/src/ai/project-pipeline/model-usage-statistics.d.ts +143 -0
- package/src/ai/project-pipeline/native-source.schema.d.ts +40 -0
- package/src/ai/project-pipeline/node.schema.d.ts +839 -0
- package/src/ai/project-pipeline/operation.schema.d.ts +800 -0
- package/src/ai/project-pipeline/portfolio.schema.d.ts +3817 -0
- package/src/ai/project-pipeline/primitives.schema.d.ts +138 -0
- package/src/ai/project-pipeline/projection.schema.d.ts +4715 -0
- package/src/ai/project-pipeline/provider-actions.schema.d.ts +2030 -0
- package/src/ai/project-pipeline/queue-statistics.d.ts +326 -0
- package/src/ai/project-pipeline/resources.schema.d.ts +73 -0
- package/src/ai/project-pipeline/runtime.schema.d.ts +934 -0
- package/src/ai/project-pipeline/statistics.d.ts +811 -0
- package/src/ai/project-task-graph.model.d.ts +18 -2
- package/src/ai/project-task-runtime.model.d.ts +924 -924
- package/src/ai/provider-credential-validation.model.d.ts +63 -0
- package/src/ai/template-installation.model.d.ts +27 -0
- package/src/ai/types.d.ts +6 -4
- package/src/ai/xpert-project-type.model.d.ts +15 -4
- package/src/ai/xpert-project.model.d.ts +9 -2
- package/src/analytics-query.model.d.ts +5 -0
- package/src/artifact-presentation.model.d.ts +28 -0
- package/src/index.d.ts +1 -0
- package/src/view-extension/model.d.ts +10 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xpert-ai/contracts",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.25.0",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@octokit/types": "13.10.0",
|
|
23
23
|
"@types/json-schema": "^7.0.15",
|
|
24
|
-
"@xpert-ai/chatkit-types": "0.16.0",
|
|
24
|
+
"@xpert-ai/chatkit-types": "~0.16.0",
|
|
25
25
|
"zod-to-json-schema": "^3.25.2"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
@@ -6,26 +6,26 @@ export declare const agentResultPathSchema: z.ZodEffects<z.ZodString, string, st
|
|
|
6
6
|
export declare const agentOutputDeliverySchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
7
7
|
mode: z.ZodLiteral<"none">;
|
|
8
8
|
}, "strict", z.ZodTypeAny, {
|
|
9
|
-
mode
|
|
9
|
+
mode: "none";
|
|
10
10
|
}, {
|
|
11
|
-
mode
|
|
11
|
+
mode: "none";
|
|
12
12
|
}>, z.ZodObject<{
|
|
13
13
|
mode: z.ZodLiteral<"files">;
|
|
14
14
|
paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
|
|
15
15
|
}, "strict", z.ZodTypeAny, {
|
|
16
|
-
mode
|
|
17
|
-
paths?: string[];
|
|
16
|
+
mode: "files";
|
|
17
|
+
paths?: string[] | undefined;
|
|
18
18
|
}, {
|
|
19
|
-
mode
|
|
20
|
-
paths?: string[];
|
|
19
|
+
mode: "files";
|
|
20
|
+
paths?: string[] | undefined;
|
|
21
21
|
}>, z.ZodObject<{
|
|
22
22
|
mode: z.ZodLiteral<"archive">;
|
|
23
23
|
paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
|
|
24
24
|
}, "strict", z.ZodTypeAny, {
|
|
25
|
-
mode
|
|
26
|
-
paths?: string[];
|
|
25
|
+
mode: "archive";
|
|
26
|
+
paths?: string[] | undefined;
|
|
27
27
|
}, {
|
|
28
|
-
mode
|
|
29
|
-
paths?: string[];
|
|
28
|
+
mode: "archive";
|
|
29
|
+
paths?: string[] | undefined;
|
|
30
30
|
}>]>;
|
|
31
31
|
export type AgentOutputDelivery = z.output<typeof agentOutputDeliverySchema>;
|
|
@@ -17,37 +17,37 @@ export declare const agentRuntimeProgressSchema: z.ZodObject<{
|
|
|
17
17
|
completed: z.ZodNumber;
|
|
18
18
|
total: z.ZodNumber;
|
|
19
19
|
}, "strict", z.ZodTypeAny, {
|
|
20
|
-
completed
|
|
21
|
-
total
|
|
20
|
+
completed: number;
|
|
21
|
+
total: number;
|
|
22
22
|
}, {
|
|
23
|
-
completed
|
|
24
|
-
total
|
|
23
|
+
completed: number;
|
|
24
|
+
total: number;
|
|
25
25
|
}>, {
|
|
26
|
-
completed
|
|
27
|
-
total
|
|
26
|
+
completed: number;
|
|
27
|
+
total: number;
|
|
28
28
|
}, {
|
|
29
|
-
completed
|
|
30
|
-
total
|
|
29
|
+
completed: number;
|
|
30
|
+
total: number;
|
|
31
31
|
}>>;
|
|
32
32
|
}, "strict", z.ZodTypeAny, {
|
|
33
|
-
source
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
source: "executor" | "host";
|
|
34
|
+
observedAt: string;
|
|
35
|
+
startedAt?: string | undefined;
|
|
36
|
+
summary?: string | undefined;
|
|
37
|
+
phase?: string | undefined;
|
|
36
38
|
steps?: {
|
|
37
|
-
completed
|
|
38
|
-
total
|
|
39
|
-
};
|
|
40
|
-
observedAt?: string;
|
|
41
|
-
phase?: string;
|
|
39
|
+
completed: number;
|
|
40
|
+
total: number;
|
|
41
|
+
} | undefined;
|
|
42
42
|
}, {
|
|
43
|
-
source
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
source: "executor" | "host";
|
|
44
|
+
observedAt: string;
|
|
45
|
+
startedAt?: string | undefined;
|
|
46
|
+
summary?: string | undefined;
|
|
47
|
+
phase?: string | undefined;
|
|
46
48
|
steps?: {
|
|
47
|
-
completed
|
|
48
|
-
total
|
|
49
|
-
};
|
|
50
|
-
observedAt?: string;
|
|
51
|
-
phase?: string;
|
|
49
|
+
completed: number;
|
|
50
|
+
total: number;
|
|
51
|
+
} | undefined;
|
|
52
52
|
}>;
|
|
53
53
|
export type AgentRuntimeProgress = z.output<typeof agentRuntimeProgressSchema>;
|
|
@@ -21,6 +21,14 @@ export type TAssistantModelsResponse = {
|
|
|
21
21
|
export type TAssistantModelPreferenceInput = {
|
|
22
22
|
model_id: string | null;
|
|
23
23
|
};
|
|
24
|
+
/** HTTP 400 admission/preference error; clients refresh choices without bypassing model access. */
|
|
25
|
+
export type TAssistantModelSelectionError = {
|
|
26
|
+
statusCode: 400;
|
|
27
|
+
error: 'Bad Request';
|
|
28
|
+
code: 'ASSISTANT_MODEL_NOT_ALLOWED' | 'ASSISTANT_MODEL_UNAVAILABLE';
|
|
29
|
+
modelId: string;
|
|
30
|
+
message: string;
|
|
31
|
+
};
|
|
24
32
|
export type TAssistantPrimaryModelSelectionSource = 'explicit' | 'preference' | 'default' | 'retry' | 'fallback';
|
|
25
33
|
export type TAssistantPrimaryModelSelection = {
|
|
26
34
|
id: string;
|
|
@@ -37,7 +37,7 @@ export interface AssistantTemplateToolsetDependency {
|
|
|
37
37
|
instanceName?: string;
|
|
38
38
|
}
|
|
39
39
|
export interface AssistantTemplateDependencies {
|
|
40
|
-
/**
|
|
40
|
+
/** Explicit exact runtime requirements. Omit for dependencies that support compatible upgrades. */
|
|
41
41
|
versions?: {
|
|
42
42
|
pluginName: PluginName;
|
|
43
43
|
version: string;
|
package/src/ai/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './assistant-model.model';
|
|
|
14
14
|
export * from './assistant-user-preference.model';
|
|
15
15
|
export * from './ai-model.model';
|
|
16
16
|
export * from './model-discovery.model';
|
|
17
|
+
export * from './provider-credential-validation.model';
|
|
17
18
|
export * from './ai.model';
|
|
18
19
|
export * from './chat-event.model';
|
|
19
20
|
export { createResourceCardContent, isResourceCardContent, parseResourceCard, parseResourceCardContent, resourceCardId, upsertResourceCardContent } from './resource-card';
|
|
@@ -104,6 +105,7 @@ export * from './model-execution.model';
|
|
|
104
105
|
export * from './agent-runtime.model';
|
|
105
106
|
export * from './assistant-task-context.model';
|
|
106
107
|
export * from './project-task-runtime.model';
|
|
108
|
+
export * from './project-pipeline';
|
|
107
109
|
export * from './realtime-voice.model';
|
|
108
110
|
export * from './chat-group.model';
|
|
109
111
|
export * from './chat-group-entity.model';
|
|
@@ -2,6 +2,26 @@ import type { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.mo
|
|
|
2
2
|
import type { JSONValue } from '../core.model';
|
|
3
3
|
import type { McpApiKeySubjectType } from './mcp-auth.model';
|
|
4
4
|
import type { McpCapabilityDescriptor, McpCapabilityType } from './mcp-capability.model';
|
|
5
|
+
import type { I18nObject } from '../types';
|
|
6
|
+
import type { JsonSchemaObjectType } from './types';
|
|
7
|
+
export interface McpPublicationPluginSource {
|
|
8
|
+
toolsetId: string;
|
|
9
|
+
name: string;
|
|
10
|
+
provider: string;
|
|
11
|
+
pluginName: string;
|
|
12
|
+
}
|
|
13
|
+
/** A configuration tab edits the existing bound source; it never creates a toolset. */
|
|
14
|
+
export interface McpPublicationConfigurationTab extends McpPublicationPluginSource {
|
|
15
|
+
title: I18nObject;
|
|
16
|
+
schema: JsonSchemaObjectType;
|
|
17
|
+
canEdit: boolean;
|
|
18
|
+
}
|
|
19
|
+
/** Opaque form placeholder. Array secrets append a source reference; clients must return it unchanged. */
|
|
20
|
+
export declare const MCP_CONFIGURATION_SECRET_MASK = "__xpert_mcp_secret_unchanged__";
|
|
21
|
+
export interface McpPublicationConfiguration {
|
|
22
|
+
values: Record<string, JSONValue>;
|
|
23
|
+
revision: string;
|
|
24
|
+
}
|
|
5
25
|
export declare const MCP_PROTOCOL_VERSION: "2026-07-28";
|
|
6
26
|
export declare const MCP_TASK_EXTENSION_ID: "io.modelcontextprotocol/tasks";
|
|
7
27
|
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"];
|
|
@@ -100,6 +100,8 @@ export declare function isDiscoverableModelType(value: unknown): value is Discov
|
|
|
100
100
|
export declare function readModelConfiguration(properties?: {
|
|
101
101
|
model_configuration?: unknown;
|
|
102
102
|
} | null): ModelConfiguration | undefined;
|
|
103
|
+
/** Legacy fallback only; explicit model_configuration.features remains authoritative. */
|
|
104
|
+
export declare function legacyModelFeatures(properties?: Record<string, unknown> | null): ModelFeature[];
|
|
103
105
|
export interface DiscoveredModel {
|
|
104
106
|
/** Exact ID returned by the upstream discovery endpoint. */
|
|
105
107
|
model: string;
|