@xpert-ai/contracts 3.22.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 +5296 -368
- package/index.esm.js +5185 -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/chat-group.model.d.ts +7 -3
- 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/ai/xpert.model.d.ts +5 -0
- package/src/analytics-query.model.d.ts +180 -0
- package/src/artifact-presentation.model.d.ts +28 -0
- package/src/artifact.model.d.ts +15 -0
- package/src/assistant-sharing.model.d.ts +32 -0
- package/src/index.d.ts +4 -0
- package/src/plugin-application.d.ts +4 -1
- package/src/user-directory.model.d.ts +15 -0
- package/src/user-group.model.d.ts +1 -0
- package/src/view-extension/model.d.ts +16 -1
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { z } from 'zod/v3';
|
|
2
|
+
/** Admission controls for host-native LLM requests; provider-internal retries and currency are not hard quotas. */
|
|
3
|
+
export declare const projectPipelineNativeModelBudgetSchema: z.ZodEffects<z.ZodObject<{
|
|
4
|
+
maxCalls: z.ZodNumber;
|
|
5
|
+
maxTokens: z.ZodNumber;
|
|
6
|
+
reservationTokens: z.ZodNumber;
|
|
7
|
+
}, "strict", z.ZodTypeAny, {
|
|
8
|
+
maxCalls: number;
|
|
9
|
+
maxTokens: number;
|
|
10
|
+
reservationTokens: number;
|
|
11
|
+
}, {
|
|
12
|
+
maxCalls: number;
|
|
13
|
+
maxTokens: number;
|
|
14
|
+
reservationTokens: number;
|
|
15
|
+
}>, {
|
|
16
|
+
maxCalls: number;
|
|
17
|
+
maxTokens: number;
|
|
18
|
+
reservationTokens: number;
|
|
19
|
+
}, {
|
|
20
|
+
maxCalls: number;
|
|
21
|
+
maxTokens: number;
|
|
22
|
+
reservationTokens: number;
|
|
23
|
+
}>;
|
|
24
|
+
export type ProjectPipelineNativeModelBudget = z.output<typeof projectPipelineNativeModelBudgetSchema>;
|
|
25
|
+
export declare const projectPipelineNativeModelBudgetStatusSchema: z.ZodObject<{
|
|
26
|
+
scope: z.ZodLiteral<"instance_native_llm">;
|
|
27
|
+
policy: z.ZodEffects<z.ZodObject<{
|
|
28
|
+
maxCalls: z.ZodNumber;
|
|
29
|
+
maxTokens: z.ZodNumber;
|
|
30
|
+
reservationTokens: z.ZodNumber;
|
|
31
|
+
}, "strict", z.ZodTypeAny, {
|
|
32
|
+
maxCalls: number;
|
|
33
|
+
maxTokens: number;
|
|
34
|
+
reservationTokens: number;
|
|
35
|
+
}, {
|
|
36
|
+
maxCalls: number;
|
|
37
|
+
maxTokens: number;
|
|
38
|
+
reservationTokens: number;
|
|
39
|
+
}>, {
|
|
40
|
+
maxCalls: number;
|
|
41
|
+
maxTokens: number;
|
|
42
|
+
reservationTokens: number;
|
|
43
|
+
}, {
|
|
44
|
+
maxCalls: number;
|
|
45
|
+
maxTokens: number;
|
|
46
|
+
reservationTokens: number;
|
|
47
|
+
}>;
|
|
48
|
+
calls: z.ZodNumber;
|
|
49
|
+
heldCalls: z.ZodNumber;
|
|
50
|
+
actualTokens: z.ZodNumber;
|
|
51
|
+
chargedAndReservedTokens: z.ZodNumber;
|
|
52
|
+
admissionBlocked: z.ZodBoolean;
|
|
53
|
+
}, "strict", z.ZodTypeAny, {
|
|
54
|
+
scope: "instance_native_llm";
|
|
55
|
+
policy: {
|
|
56
|
+
maxCalls: number;
|
|
57
|
+
maxTokens: number;
|
|
58
|
+
reservationTokens: number;
|
|
59
|
+
};
|
|
60
|
+
calls: number;
|
|
61
|
+
heldCalls: number;
|
|
62
|
+
actualTokens: number;
|
|
63
|
+
chargedAndReservedTokens: number;
|
|
64
|
+
admissionBlocked: boolean;
|
|
65
|
+
}, {
|
|
66
|
+
scope: "instance_native_llm";
|
|
67
|
+
policy: {
|
|
68
|
+
maxCalls: number;
|
|
69
|
+
maxTokens: number;
|
|
70
|
+
reservationTokens: number;
|
|
71
|
+
};
|
|
72
|
+
calls: number;
|
|
73
|
+
heldCalls: number;
|
|
74
|
+
actualTokens: number;
|
|
75
|
+
chargedAndReservedTokens: number;
|
|
76
|
+
admissionBlocked: boolean;
|
|
77
|
+
}>;
|
|
78
|
+
export type ProjectPipelineNativeModelBudgetStatus = z.output<typeof projectPipelineNativeModelBudgetStatusSchema>;
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { z } from 'zod/v3';
|
|
2
|
+
export declare const projectPipelinePortDescriptorSchema: z.ZodObject<{
|
|
3
|
+
schemaRef: z.ZodString;
|
|
4
|
+
cardinality: z.ZodEnum<["one", "collection"]>;
|
|
5
|
+
}, "strict", z.ZodTypeAny, {
|
|
6
|
+
schemaRef: string;
|
|
7
|
+
cardinality: "collection" | "one";
|
|
8
|
+
}, {
|
|
9
|
+
schemaRef: string;
|
|
10
|
+
cardinality: "collection" | "one";
|
|
11
|
+
}>;
|
|
12
|
+
/** Declarations allow configuration checks. They never prove a runtime executor is currently available. */
|
|
13
|
+
export declare const projectPipelineExtensionDescriptorSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
14
|
+
kind: z.ZodLiteral<"schema">;
|
|
15
|
+
ref: z.ZodString;
|
|
16
|
+
}, "strict", z.ZodTypeAny, {
|
|
17
|
+
kind: "schema";
|
|
18
|
+
ref: string;
|
|
19
|
+
}, {
|
|
20
|
+
kind: "schema";
|
|
21
|
+
ref: string;
|
|
22
|
+
}>, z.ZodObject<{
|
|
23
|
+
kind: z.ZodLiteral<"resource">;
|
|
24
|
+
ref: z.ZodString;
|
|
25
|
+
}, "strict", z.ZodTypeAny, {
|
|
26
|
+
kind: "resource";
|
|
27
|
+
ref: string;
|
|
28
|
+
}, {
|
|
29
|
+
kind: "resource";
|
|
30
|
+
ref: string;
|
|
31
|
+
}>, z.ZodObject<{
|
|
32
|
+
kind: z.ZodLiteral<"subject">;
|
|
33
|
+
outputSchemaRef: z.ZodString;
|
|
34
|
+
ref: z.ZodString;
|
|
35
|
+
}, "strict", z.ZodTypeAny, {
|
|
36
|
+
kind: "subject";
|
|
37
|
+
outputSchemaRef: string;
|
|
38
|
+
ref: string;
|
|
39
|
+
}, {
|
|
40
|
+
kind: "subject";
|
|
41
|
+
outputSchemaRef: string;
|
|
42
|
+
ref: string;
|
|
43
|
+
}>, z.ZodObject<{
|
|
44
|
+
kind: z.ZodLiteral<"operation">;
|
|
45
|
+
effects: z.ZodEnum<["read_only", "isolated_write", "external_write"]>;
|
|
46
|
+
idempotency: z.ZodEnum<["read_only", "keyed_receipt"]>;
|
|
47
|
+
retry: z.ZodOptional<z.ZodEnum<["never", "after_confirmed_failure"]>>;
|
|
48
|
+
requiredCapabilities: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
49
|
+
inputs: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodObject<{
|
|
50
|
+
schemaRef: z.ZodString;
|
|
51
|
+
cardinality: z.ZodEnum<["one", "collection"]>;
|
|
52
|
+
}, "strict", z.ZodTypeAny, {
|
|
53
|
+
schemaRef: string;
|
|
54
|
+
cardinality: "collection" | "one";
|
|
55
|
+
}, {
|
|
56
|
+
schemaRef: string;
|
|
57
|
+
cardinality: "collection" | "one";
|
|
58
|
+
}>>;
|
|
59
|
+
outputs: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>;
|
|
60
|
+
ref: z.ZodString;
|
|
61
|
+
}, "strict", z.ZodTypeAny, {
|
|
62
|
+
kind: "operation";
|
|
63
|
+
requiredCapabilities: string[];
|
|
64
|
+
ref: string;
|
|
65
|
+
effects: "read_only" | "isolated_write" | "external_write";
|
|
66
|
+
idempotency: "read_only" | "keyed_receipt";
|
|
67
|
+
inputs: Record<string, {
|
|
68
|
+
schemaRef: string;
|
|
69
|
+
cardinality: "collection" | "one";
|
|
70
|
+
}>;
|
|
71
|
+
outputs: Record<string, string>;
|
|
72
|
+
retry?: "never" | "after_confirmed_failure" | undefined;
|
|
73
|
+
}, {
|
|
74
|
+
kind: "operation";
|
|
75
|
+
requiredCapabilities: string[];
|
|
76
|
+
ref: string;
|
|
77
|
+
effects: "read_only" | "isolated_write" | "external_write";
|
|
78
|
+
idempotency: "read_only" | "keyed_receipt";
|
|
79
|
+
inputs: Record<string, {
|
|
80
|
+
schemaRef: string;
|
|
81
|
+
cardinality: "collection" | "one";
|
|
82
|
+
}>;
|
|
83
|
+
outputs: Record<string, string>;
|
|
84
|
+
retry?: "never" | "after_confirmed_failure" | undefined;
|
|
85
|
+
}>, z.ZodObject<{
|
|
86
|
+
kind: z.ZodLiteral<"completion">;
|
|
87
|
+
ref: z.ZodString;
|
|
88
|
+
}, "strict", z.ZodTypeAny, {
|
|
89
|
+
kind: "completion";
|
|
90
|
+
ref: string;
|
|
91
|
+
}, {
|
|
92
|
+
kind: "completion";
|
|
93
|
+
ref: string;
|
|
94
|
+
}>, z.ZodObject<{
|
|
95
|
+
kind: z.ZodLiteral<"policy">;
|
|
96
|
+
outcomes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
97
|
+
ref: z.ZodString;
|
|
98
|
+
}, "strict", z.ZodTypeAny, {
|
|
99
|
+
kind: "policy";
|
|
100
|
+
outcomes: string[];
|
|
101
|
+
ref: string;
|
|
102
|
+
}, {
|
|
103
|
+
kind: "policy";
|
|
104
|
+
outcomes: string[];
|
|
105
|
+
ref: string;
|
|
106
|
+
}>, z.ZodObject<{
|
|
107
|
+
kind: z.ZodLiteral<"projection">;
|
|
108
|
+
ref: z.ZodString;
|
|
109
|
+
}, "strict", z.ZodTypeAny, {
|
|
110
|
+
kind: "projection";
|
|
111
|
+
ref: string;
|
|
112
|
+
}, {
|
|
113
|
+
kind: "projection";
|
|
114
|
+
ref: string;
|
|
115
|
+
}>, z.ZodObject<{
|
|
116
|
+
kind: z.ZodLiteral<"presentation">;
|
|
117
|
+
ref: z.ZodString;
|
|
118
|
+
}, "strict", z.ZodTypeAny, {
|
|
119
|
+
kind: "presentation";
|
|
120
|
+
ref: string;
|
|
121
|
+
}, {
|
|
122
|
+
kind: "presentation";
|
|
123
|
+
ref: string;
|
|
124
|
+
}>, z.ZodObject<{
|
|
125
|
+
kind: z.ZodLiteral<"action">;
|
|
126
|
+
ref: z.ZodString;
|
|
127
|
+
}, "strict", z.ZodTypeAny, {
|
|
128
|
+
kind: "action";
|
|
129
|
+
ref: string;
|
|
130
|
+
}, {
|
|
131
|
+
kind: "action";
|
|
132
|
+
ref: string;
|
|
133
|
+
}>, z.ZodObject<{
|
|
134
|
+
kind: z.ZodLiteral<"metric">;
|
|
135
|
+
ref: z.ZodString;
|
|
136
|
+
}, "strict", z.ZodTypeAny, {
|
|
137
|
+
kind: "metric";
|
|
138
|
+
ref: string;
|
|
139
|
+
}, {
|
|
140
|
+
kind: "metric";
|
|
141
|
+
ref: string;
|
|
142
|
+
}>, z.ZodObject<{
|
|
143
|
+
kind: z.ZodLiteral<"dimension">;
|
|
144
|
+
ref: z.ZodString;
|
|
145
|
+
}, "strict", z.ZodTypeAny, {
|
|
146
|
+
kind: "dimension";
|
|
147
|
+
ref: string;
|
|
148
|
+
}, {
|
|
149
|
+
kind: "dimension";
|
|
150
|
+
ref: string;
|
|
151
|
+
}>, z.ZodObject<{
|
|
152
|
+
kind: z.ZodLiteral<"trigger">;
|
|
153
|
+
ref: z.ZodString;
|
|
154
|
+
}, "strict", z.ZodTypeAny, {
|
|
155
|
+
kind: "trigger";
|
|
156
|
+
ref: string;
|
|
157
|
+
}, {
|
|
158
|
+
kind: "trigger";
|
|
159
|
+
ref: string;
|
|
160
|
+
}>, z.ZodObject<{
|
|
161
|
+
kind: z.ZodLiteral<"subscription">;
|
|
162
|
+
outputs: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>;
|
|
163
|
+
ref: z.ZodString;
|
|
164
|
+
}, "strict", z.ZodTypeAny, {
|
|
165
|
+
kind: "subscription";
|
|
166
|
+
ref: string;
|
|
167
|
+
outputs: Record<string, string>;
|
|
168
|
+
}, {
|
|
169
|
+
kind: "subscription";
|
|
170
|
+
ref: string;
|
|
171
|
+
outputs: Record<string, string>;
|
|
172
|
+
}>]>;
|
|
173
|
+
export type ProjectPipelineExtensionDescriptor = z.output<typeof projectPipelineExtensionDescriptorSchema>;
|
|
174
|
+
export type ProjectPipelineExtensionKind = ProjectPipelineExtensionDescriptor['kind'];
|
|
175
|
+
export interface ProjectPipelineConfigurationCheck {
|
|
176
|
+
valid: boolean;
|
|
177
|
+
/** Configuration checking never saves a binding, invokes a resolver or starts work. */
|
|
178
|
+
runtimeReadiness: 'not_checked';
|
|
179
|
+
issues: Array<{
|
|
180
|
+
code: string;
|
|
181
|
+
path: Array<string | number>;
|
|
182
|
+
ref?: string;
|
|
183
|
+
}>;
|
|
184
|
+
requiredCapabilities: Array<{
|
|
185
|
+
executorSlot: string;
|
|
186
|
+
capabilities: string[];
|
|
187
|
+
}>;
|
|
188
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ProjectPipelineConfiguration } from './configuration.schema';
|
|
2
|
+
import type { ProjectPipelineConfigurationCheck, ProjectPipelineExtensionDescriptor } from './catalog.schema';
|
|
3
|
+
/** Checks declared dependencies only. Participant authorization and live capabilities require runtime resolution. */
|
|
4
|
+
export declare function checkProjectPipelineConfiguration(configuration: ProjectPipelineConfiguration, descriptors: readonly ProjectPipelineExtensionDescriptor[]): ProjectPipelineConfigurationCheck;
|