@xpert-ai/contracts 3.10.0 → 3.10.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xpert-ai/contracts",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.1",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"module": "./index.esm.js",
|
|
20
20
|
"main": "./index.cjs.js",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@xpert-ai/chatkit-types": "~0.3.
|
|
22
|
+
"@xpert-ai/chatkit-types": "~0.3.12"
|
|
23
23
|
},
|
|
24
24
|
"types": "./index.d.ts"
|
|
25
25
|
}
|
|
@@ -22,6 +22,7 @@ export type KnowledgeGraphItemOrigin = 'extracted' | 'manual' | 'curated';
|
|
|
22
22
|
export type KnowledgeGraphVisibility = 'active' | 'hidden';
|
|
23
23
|
export type GraphRagConfig = {
|
|
24
24
|
enabled?: boolean;
|
|
25
|
+
mode?: GraphRagRetrievalMode;
|
|
25
26
|
entityTopK?: number;
|
|
26
27
|
neighborHops?: number;
|
|
27
28
|
communityTopK?: number;
|
|
@@ -146,6 +146,10 @@ export type TXpertAgentOptions = {
|
|
|
146
146
|
* Attachment config of agent
|
|
147
147
|
*/
|
|
148
148
|
attachment?: TXpertAgentAttachment;
|
|
149
|
+
/**
|
|
150
|
+
* Built-in file understanding tools config of agent
|
|
151
|
+
*/
|
|
152
|
+
fileUnderstanding?: TXpertAgentFileUnderstanding;
|
|
149
153
|
/**
|
|
150
154
|
* Config of middlewares for agent
|
|
151
155
|
*/
|
|
@@ -170,6 +174,12 @@ export type TXpertAgentAttachment = TXpertAgentVision & {
|
|
|
170
174
|
*/
|
|
171
175
|
maxNum?: number;
|
|
172
176
|
};
|
|
177
|
+
export type TXpertAgentFileUnderstanding = {
|
|
178
|
+
/**
|
|
179
|
+
* Enable built-in tools for understanding conversation files. Default: true
|
|
180
|
+
*/
|
|
181
|
+
enabled?: boolean;
|
|
182
|
+
};
|
|
173
183
|
export type TAgentPromptTemplate = {
|
|
174
184
|
id: string;
|
|
175
185
|
role: 'ai' | 'human';
|
package/src/plugin.d.ts
CHANGED
|
@@ -34,6 +34,47 @@ export type PluginConfigurationStatus = (typeof PLUGIN_CONFIGURATION_STATUS)[key
|
|
|
34
34
|
export type PluginLoadStatus = (typeof PLUGIN_LOAD_STATUS)[keyof typeof PLUGIN_LOAD_STATUS];
|
|
35
35
|
export type PluginScopeRelation = 'none' | 'overrides-global' | 'shadowed-by-organization';
|
|
36
36
|
export type PluginTargetApp = 'xpert' | 'data-xpert' | (string & {});
|
|
37
|
+
export type PluginSdkCompatibilityWarningCode = 'plugin-sdk-peer-dependency-missing' | 'plugin-sdk-peer-range-invalid' | 'plugin-sdk-peer-range-incompatible' | 'plugin-sdk-peer-range-spans-major';
|
|
38
|
+
export type PluginMarketplaceContributionType = 'app' | 'view' | 'feature' | 'tool' | 'assistant-template' | (string & {});
|
|
39
|
+
export type PluginMarketplaceOperationAccess = 'read' | 'write' | 'admin' | (string & {});
|
|
40
|
+
export interface PluginMarketplaceOperation {
|
|
41
|
+
name: string;
|
|
42
|
+
displayName?: string | I18nObject;
|
|
43
|
+
description?: string | I18nObject;
|
|
44
|
+
access?: PluginMarketplaceOperationAccess;
|
|
45
|
+
tags?: string[];
|
|
46
|
+
}
|
|
47
|
+
export interface PluginMarketplaceContribution {
|
|
48
|
+
id?: string;
|
|
49
|
+
type: PluginMarketplaceContributionType;
|
|
50
|
+
name: string;
|
|
51
|
+
displayName?: string | I18nObject;
|
|
52
|
+
description?: string | I18nObject;
|
|
53
|
+
icon?: IconDefinition;
|
|
54
|
+
operations?: PluginMarketplaceOperation[];
|
|
55
|
+
tags?: string[];
|
|
56
|
+
metadata?: Record<string, unknown>;
|
|
57
|
+
}
|
|
58
|
+
export interface PluginTargetAppMarketplaceMetadata {
|
|
59
|
+
contents?: PluginMarketplaceContribution[];
|
|
60
|
+
featured?: boolean;
|
|
61
|
+
screenshots?: string[];
|
|
62
|
+
readme?: string;
|
|
63
|
+
updatedAt?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface PluginTargetAppRuntimeMetadata {
|
|
66
|
+
middlewareProviders?: string[];
|
|
67
|
+
viewProviders?: string[];
|
|
68
|
+
templateProviders?: string[];
|
|
69
|
+
[key: string]: unknown;
|
|
70
|
+
}
|
|
71
|
+
export interface PluginSdkCompatibilityWarning {
|
|
72
|
+
code: PluginSdkCompatibilityWarningCode;
|
|
73
|
+
packageName: PluginName;
|
|
74
|
+
hostVersion: string;
|
|
75
|
+
peerRange?: string | null;
|
|
76
|
+
message: string;
|
|
77
|
+
}
|
|
37
78
|
export interface PluginTargetAppMetadata {
|
|
38
79
|
/**
|
|
39
80
|
* App-owned classification values. Each target app owns the vocabulary for its own entry.
|
|
@@ -44,6 +85,8 @@ export interface PluginTargetAppMetadata {
|
|
|
44
85
|
*/
|
|
45
86
|
minAppVersion?: string;
|
|
46
87
|
capabilities?: string[];
|
|
88
|
+
marketplace?: PluginTargetAppMarketplaceMetadata;
|
|
89
|
+
runtime?: PluginTargetAppRuntimeMetadata;
|
|
47
90
|
[key: string]: unknown;
|
|
48
91
|
}
|
|
49
92
|
export type PluginTargetAppMeta = Record<string, PluginTargetAppMetadata | undefined>;
|
|
@@ -134,6 +177,7 @@ export interface IPluginDescriptor {
|
|
|
134
177
|
configSchema?: JsonSchemaObjectType;
|
|
135
178
|
configurationStatus?: PluginConfigurationStatus | null;
|
|
136
179
|
configurationError?: string | null;
|
|
180
|
+
sdkCompatibilityWarnings?: PluginSdkCompatibilityWarning[];
|
|
137
181
|
loadStatus?: PluginLoadStatus | null;
|
|
138
182
|
loadError?: string | null;
|
|
139
183
|
effectiveInCurrentScope: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { I18nObject } from '../types';
|
|
1
|
+
import type { I18nObject, IconDefinition } from '../types';
|
|
2
2
|
import type { JsonSchemaObjectType } from '../ai/types';
|
|
3
3
|
export type XpertViewHostType = 'integration' | 'knowledgebase' | 'agent' | 'project' | 'sandbox' | string;
|
|
4
4
|
export type XpertViewSlotMode = 'tabs' | 'sections' | 'widgets' | 'sidebar';
|
|
@@ -61,7 +61,7 @@ export interface XpertWorkbenchViewOptions {
|
|
|
61
61
|
enabled?: boolean;
|
|
62
62
|
label?: string | I18nObject;
|
|
63
63
|
order?: number;
|
|
64
|
-
icon?:
|
|
64
|
+
icon?: IconDefinition;
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
export interface XpertViewCachePolicy {
|
|
@@ -246,7 +246,7 @@ export interface XpertExtensionViewManifest {
|
|
|
246
246
|
key: string;
|
|
247
247
|
title: I18nObject;
|
|
248
248
|
description?: I18nObject;
|
|
249
|
-
icon?:
|
|
249
|
+
icon?: IconDefinition;
|
|
250
250
|
hostType: XpertViewHostType;
|
|
251
251
|
slot: string;
|
|
252
252
|
order?: number;
|