@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.
- 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 +1165 -805
- package/index.cjs.mjs +2 -0
- package/index.esm.js +1140 -801
- package/package.json +18 -2
- 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 +272 -308
- package/src/ai/assistant-template-overview.model.d.ts +0 -4
- 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 +13 -0
- package/src/ai/chat-message.model.d.ts +0 -11
- package/src/ai/chat.model.d.ts +3 -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 +26 -26
- package/src/ai/execution-observability.model.d.ts +160 -160
- package/src/ai/execution-source.model.d.ts +45 -0
- package/src/ai/index.d.ts +2 -0
- 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 +12 -12
- package/src/ai/project-configuration-view.model.d.ts +1 -0
- package/src/ai/project-pipeline/analytics.d.ts +288 -288
- package/src/ai/project-pipeline/budget.schema.d.ts +4 -4
- package/src/ai/project-pipeline/commands.schema.d.ts +519 -476
- package/src/ai/project-pipeline/configuration-declaration.schema.d.ts +3815 -0
- package/src/ai/project-pipeline/configuration-form.d.ts +1903 -1759
- package/src/ai/project-pipeline/configuration.schema.d.ts +425 -388
- package/src/ai/project-pipeline/contribution.schema.d.ts +764 -612
- package/src/ai/project-pipeline/definition.schema.d.ts +382 -338
- package/src/ai/project-pipeline/execution-statistics.d.ts +30 -30
- package/src/ai/project-pipeline/graph.model.d.ts +7 -2
- package/src/ai/project-pipeline/human-wait-statistics.d.ts +2 -2
- package/src/ai/project-pipeline/index.d.ts +1 -0
- package/src/ai/project-pipeline/model-usage-statistics.d.ts +6 -6
- package/src/ai/project-pipeline/node.schema.d.ts +57 -44
- package/src/ai/project-pipeline/operation.schema.d.ts +378 -378
- package/src/ai/project-pipeline/plugin-deployment.schema.d.ts +6 -6
- package/src/ai/project-pipeline/portfolio.schema.d.ts +684 -684
- package/src/ai/project-pipeline/primitives.schema.d.ts +4 -4
- package/src/ai/project-pipeline/projection.schema.d.ts +674 -637
- package/src/ai/project-pipeline/provider-actions.schema.d.ts +120 -120
- package/src/ai/project-pipeline/queue-statistics.d.ts +34 -34
- package/src/ai/project-pipeline/runtime.schema.d.ts +89 -89
- package/src/ai/project-pipeline/statistics.d.ts +142 -142
- package/src/ai/project-task-runtime.model.d.ts +265 -789
- package/src/ai/sandbox-execution-control.schema.d.ts +6 -6
- package/src/ai/template-installation.model.d.ts +13 -13
- package/src/ai/template-lifecycle.model.d.ts +4 -4
- package/src/ai/xpert-agent-execution.model.d.ts +33 -0
- package/src/ai/xpert-project.model.d.ts +2 -1
- package/src/ai/xpert-tool.model.d.ts +12 -0
- package/src/ai/xpert.model.d.ts +0 -34
- package/src/ai/xpert.utils.d.ts +0 -1
- package/src/always-on/agent-event.model.d.ts +121 -0
- package/src/always-on/agent-event.schema.d.ts +139 -0
- package/src/always-on/agent-output-reference.schema.d.ts +27 -0
- package/src/always-on/agent-output.model.d.ts +411 -0
- package/src/always-on/human-decision.model.d.ts +204 -0
- package/src/always-on/index.d.ts +3 -0
- package/src/always-on/output-workbench.schema.d.ts +154 -0
- 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 +14 -14
- 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} +4 -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} +7 -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/icon-definition.schema.d.ts +6 -10
- package/src/index.d.ts +5 -14
- package/src/secret-token.model.d.ts +4 -4
- package/src/user-notification.schema.d.ts +1300 -471
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xpert-ai/contracts",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.37.0",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,6 +9,22 @@
|
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/xpert-ai/xpert/issues"
|
|
11
11
|
},
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"module": "./index.esm.js",
|
|
15
|
+
"types": "./index.d.ts",
|
|
16
|
+
"import": "./index.cjs.mjs",
|
|
17
|
+
"default": "./index.cjs.js"
|
|
18
|
+
},
|
|
19
|
+
"./context-event": {
|
|
20
|
+
"module": "./context-event.esm.js",
|
|
21
|
+
"types": "./context-event.d.ts",
|
|
22
|
+
"import": "./context-event.cjs.mjs",
|
|
23
|
+
"default": "./context-event.cjs.js"
|
|
24
|
+
},
|
|
25
|
+
"./package.json": "./package.json",
|
|
26
|
+
"./*": "./*"
|
|
27
|
+
},
|
|
12
28
|
"publishConfig": {
|
|
13
29
|
"access": "public",
|
|
14
30
|
"directory": "dist"
|
|
@@ -21,7 +37,7 @@
|
|
|
21
37
|
"dependencies": {
|
|
22
38
|
"@octokit/types": "13.10.0",
|
|
23
39
|
"@types/json-schema": "^7.0.15",
|
|
24
|
-
"@xpert-ai/chatkit-types": "~0.
|
|
40
|
+
"@xpert-ai/chatkit-types": "~0.23.0",
|
|
25
41
|
"zod-to-json-schema": "^3.25.2"
|
|
26
42
|
},
|
|
27
43
|
"peerDependencies": {
|
package/src/agent-plugin.d.ts
CHANGED
|
@@ -207,45 +207,20 @@ export interface RuntimeResourceBindingInput {
|
|
|
207
207
|
workspaceIds: string[];
|
|
208
208
|
definition: RuntimeResourceDefinition;
|
|
209
209
|
}
|
|
210
|
-
/**
|
|
211
|
-
export interface
|
|
210
|
+
/** Installed package metadata visible in its organization or inherited from its tenant. */
|
|
211
|
+
export interface InstalledAgentPlugin {
|
|
212
212
|
id: string;
|
|
213
213
|
name: string;
|
|
214
214
|
description?: I18nText;
|
|
215
215
|
icon?: string;
|
|
216
216
|
version: string;
|
|
217
|
-
|
|
217
|
+
scope: 'tenant' | 'organization';
|
|
218
|
+
status: 'available' | 'configuration_required' | 'disabled';
|
|
218
219
|
components: Array<{
|
|
219
220
|
kind: 'skill' | 'mcp' | 'middleware' | 'external_xpert' | 'assistant_template';
|
|
220
221
|
name: string;
|
|
221
222
|
}>;
|
|
222
223
|
expertReferences: string[];
|
|
223
224
|
}
|
|
224
|
-
export interface WorkspaceAgentPluginOptions {
|
|
225
|
-
workspaces: Array<{
|
|
226
|
-
id: string;
|
|
227
|
-
name: string;
|
|
228
|
-
}>;
|
|
229
|
-
experts: Array<{
|
|
230
|
-
id: string;
|
|
231
|
-
name: string;
|
|
232
|
-
}>;
|
|
233
|
-
}
|
|
234
|
-
/** Add one imported package to one editable workspace without changing other workspaces or conversations. */
|
|
235
|
-
export interface WorkspaceAgentPluginAddInput {
|
|
236
|
-
packageId: string;
|
|
237
|
-
experts: {
|
|
238
|
-
[reference: string]: string;
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
export interface WorkspaceAgentPluginAddResult {
|
|
242
|
-
status: 'added' | 'already_added';
|
|
243
|
-
bindingId: string;
|
|
244
|
-
}
|
|
245
|
-
/** Read-only installation catalog, independent of authoring workspace membership. */
|
|
246
|
-
export interface InstalledAgentPlugin extends Omit<WorkspaceAgentPlugin, 'status'> {
|
|
247
|
-
scope: 'tenant' | 'organization';
|
|
248
|
-
status: 'available' | 'configuration_required' | 'disabled';
|
|
249
|
-
}
|
|
250
225
|
/** Storage faults are distinct from dependency compatibility and installation snapshot changes. */
|
|
251
226
|
export type AgentPluginStorageErrorCode = 'AGENT_PLUGIN_STORAGE_MISSING' | 'AGENT_PLUGIN_STORAGE_UNREADABLE' | 'AGENT_PLUGIN_STORAGE_CORRUPT';
|
|
@@ -2,30 +2,51 @@ import { z } from 'zod/v3';
|
|
|
2
2
|
export declare const AGENT_OUTPUT_MAX_PATHS = 128;
|
|
3
3
|
/** Relative file selections only. A declaration does not grant filesystem access. */
|
|
4
4
|
export declare const agentResultPathSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
5
|
-
/** Omission means no
|
|
5
|
+
/** Omission means no file delivery. A report file is optional and independent of artifact export mode. */
|
|
6
6
|
export declare const agentOutputDeliverySchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
7
7
|
mode: z.ZodLiteral<"none">;
|
|
8
|
+
reportPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
8
9
|
}, "strict", z.ZodTypeAny, {
|
|
9
10
|
mode: "none";
|
|
11
|
+
reportPath?: string | undefined;
|
|
10
12
|
}, {
|
|
11
13
|
mode: "none";
|
|
14
|
+
reportPath?: string | undefined;
|
|
12
15
|
}>, z.ZodObject<{
|
|
13
16
|
mode: z.ZodLiteral<"files">;
|
|
14
17
|
paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
|
|
18
|
+
reportPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
15
19
|
}, "strict", z.ZodTypeAny, {
|
|
16
20
|
mode: "files";
|
|
21
|
+
reportPath?: string | undefined;
|
|
17
22
|
paths?: string[] | undefined;
|
|
18
23
|
}, {
|
|
19
24
|
mode: "files";
|
|
25
|
+
reportPath?: string | undefined;
|
|
20
26
|
paths?: string[] | undefined;
|
|
21
27
|
}>, z.ZodObject<{
|
|
22
28
|
mode: z.ZodLiteral<"archive">;
|
|
23
29
|
paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
|
|
30
|
+
reportPath: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
24
31
|
}, "strict", z.ZodTypeAny, {
|
|
25
32
|
mode: "archive";
|
|
33
|
+
reportPath?: string | undefined;
|
|
26
34
|
paths?: string[] | undefined;
|
|
27
35
|
}, {
|
|
28
36
|
mode: "archive";
|
|
37
|
+
reportPath?: string | undefined;
|
|
29
38
|
paths?: string[] | undefined;
|
|
30
39
|
}>]>;
|
|
31
40
|
export type AgentOutputDelivery = z.output<typeof agentOutputDeliverySchema>;
|
|
41
|
+
/** A delivery retry cannot relaunch the executor or change its originally selected report. */
|
|
42
|
+
export declare const agentDeliveryRecoverySchema: z.ZodObject<{
|
|
43
|
+
expectedRevision: z.ZodNumber;
|
|
44
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
|
|
45
|
+
}, "strict", z.ZodTypeAny, {
|
|
46
|
+
expectedRevision: number;
|
|
47
|
+
paths?: string[] | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
expectedRevision: number;
|
|
50
|
+
paths?: string[] | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
export type AgentDeliveryRecovery = z.output<typeof agentDeliveryRecoverySchema>;
|
|
@@ -32,22 +32,22 @@ export declare const agentRuntimeProgressSchema: z.ZodObject<{
|
|
|
32
32
|
}, "strict", z.ZodTypeAny, {
|
|
33
33
|
source: "executor" | "host";
|
|
34
34
|
observedAt: string;
|
|
35
|
-
startedAt?: string | undefined;
|
|
36
|
-
summary?: string | undefined;
|
|
37
35
|
phase?: string | undefined;
|
|
36
|
+
startedAt?: string | undefined;
|
|
38
37
|
steps?: {
|
|
39
38
|
completed: number;
|
|
40
39
|
total: number;
|
|
41
40
|
} | undefined;
|
|
41
|
+
summary?: string | undefined;
|
|
42
42
|
}, {
|
|
43
43
|
source: "executor" | "host";
|
|
44
44
|
observedAt: string;
|
|
45
|
-
startedAt?: string | undefined;
|
|
46
|
-
summary?: string | undefined;
|
|
47
45
|
phase?: string | undefined;
|
|
46
|
+
startedAt?: string | undefined;
|
|
48
47
|
steps?: {
|
|
49
48
|
completed: number;
|
|
50
49
|
total: number;
|
|
51
50
|
} | undefined;
|
|
51
|
+
summary?: string | undefined;
|
|
52
52
|
}>;
|
|
53
53
|
export type AgentRuntimeProgress = z.output<typeof agentRuntimeProgressSchema>;
|