@xpert-ai/contracts 3.21.2 → 3.21.3
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 +569 -96
- package/index.esm.js +553 -97
- package/package.json +1 -1
- package/src/agent-plugin.d.ts +17 -4
- package/src/ai/assistant-capability.model.d.ts +24 -0
- package/src/ai/assistant-template-dependencies.model.d.ts +51 -0
- package/src/ai/assistant-template-manifest.model.d.ts +1826 -0
- package/src/ai/assistant-template-overview.model.d.ts +44 -0
- package/src/ai/assistant-template-setup.model.d.ts +193 -0
- package/src/ai/assistant-template.model.d.ts +16 -0
- package/src/ai/assistant-user-preference.model.d.ts +4 -0
- package/src/ai/index.d.ts +9 -0
- package/src/ai/project-task-runtime.model.d.ts +29 -29
- package/src/ai/template-activity.model.d.ts +24 -0
- package/src/ai/template-installation.model.d.ts +131 -0
- package/src/ai/template-lifecycle.model.d.ts +89 -0
- package/src/ai/template-manifest.model.d.ts +3 -0
- package/src/ai/xpert-template.model.d.ts +12 -8
- package/src/ai/xpert.model.d.ts +8 -0
- package/src/api-key.model.d.ts +12 -5
- package/src/index.d.ts +2 -0
- package/src/personal-api-key.model.d.ts +21 -0
- package/src/plugin-application.d.ts +8 -0
- package/src/plugin.d.ts +2 -37
- package/src/role-permission-modules.d.ts +3 -0
package/package.json
CHANGED
package/src/agent-plugin.d.ts
CHANGED
|
@@ -78,10 +78,23 @@ export interface RuntimeResourceCatalog {
|
|
|
78
78
|
*/
|
|
79
79
|
export interface AgentPluginXpertExtension {
|
|
80
80
|
/** Extension schema version, independent of the Agent Plugins spec version. */
|
|
81
|
-
version: 1;
|
|
81
|
+
version: 1 | 2;
|
|
82
|
+
/** Version 2: package-contained Assistant DSL; runtime state is never packaged. */
|
|
83
|
+
templates?: Array<{
|
|
84
|
+
key: string;
|
|
85
|
+
path: string;
|
|
86
|
+
/** Marketplace category identifier for this Assistant template. Defaults to assistant. */
|
|
87
|
+
category?: string;
|
|
88
|
+
/** Localized catalog copy; does not change the packaged DSL or skill content. */
|
|
89
|
+
presentation?: {
|
|
90
|
+
title?: I18nText;
|
|
91
|
+
description?: I18nText;
|
|
92
|
+
pluginDisplayName?: I18nText;
|
|
93
|
+
};
|
|
94
|
+
}>;
|
|
82
95
|
interface?: {
|
|
83
|
-
displayName?:
|
|
84
|
-
description?:
|
|
96
|
+
displayName?: I18nText;
|
|
97
|
+
description?: I18nText;
|
|
85
98
|
icon?: string;
|
|
86
99
|
};
|
|
87
100
|
/** Presets for already installed middleware providers. */
|
|
@@ -166,7 +179,7 @@ export interface WorkspaceAgentPlugin {
|
|
|
166
179
|
version: string;
|
|
167
180
|
status: 'available' | 'not_published' | 'disabled';
|
|
168
181
|
components: Array<{
|
|
169
|
-
kind: 'skill' | 'mcp' | 'middleware' | 'external_xpert';
|
|
182
|
+
kind: 'skill' | 'mcp' | 'middleware' | 'external_xpert' | 'assistant_template';
|
|
170
183
|
name: string;
|
|
171
184
|
}>;
|
|
172
185
|
expertReferences: string[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface AssistantCapabilityDeclaration {
|
|
2
|
+
key: string;
|
|
3
|
+
/** Required capabilities cannot be disabled; optional capabilities default to off. */
|
|
4
|
+
required?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/** Structural template preview, never an authorization decision for a running user. */
|
|
7
|
+
export interface AssistantCapabilitySummary {
|
|
8
|
+
agents: {
|
|
9
|
+
key: string;
|
|
10
|
+
label: string;
|
|
11
|
+
middleware: {
|
|
12
|
+
provider: string;
|
|
13
|
+
toolNames: string[];
|
|
14
|
+
}[];
|
|
15
|
+
}[];
|
|
16
|
+
skills: {
|
|
17
|
+
pluginName: string;
|
|
18
|
+
source?: import('./assistant-template-dependencies.model').AgentPluginTemplateDependencySource;
|
|
19
|
+
componentKey: string;
|
|
20
|
+
targetAgentKey?: string;
|
|
21
|
+
}[];
|
|
22
|
+
seedMemoryCount: number;
|
|
23
|
+
sandbox: boolean;
|
|
24
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { PluginName, XpertPluginMcpServerPolicy } from '../plugin';
|
|
2
|
+
/** Portable package identity. The installer pins an omitted digest before writing an Assistant. */
|
|
3
|
+
export interface AgentPluginTemplateDependencySource {
|
|
4
|
+
kind: 'agent-plugin';
|
|
5
|
+
name: string;
|
|
6
|
+
digest?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface AssistantTemplateSkillDependency {
|
|
9
|
+
pluginName?: PluginName;
|
|
10
|
+
source?: AgentPluginTemplateDependencySource;
|
|
11
|
+
componentKey: string;
|
|
12
|
+
targetAgentKey?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface AssistantTemplateMcpServerDependency {
|
|
15
|
+
pluginName?: PluginName;
|
|
16
|
+
source?: AgentPluginTemplateDependencySource;
|
|
17
|
+
componentKey: string;
|
|
18
|
+
targetAgentKey?: string;
|
|
19
|
+
policyOverrides?: XpertPluginMcpServerPolicy;
|
|
20
|
+
}
|
|
21
|
+
export interface AssistantTemplateHookDependency {
|
|
22
|
+
pluginName?: PluginName;
|
|
23
|
+
componentKey: string;
|
|
24
|
+
targetAgentKey?: string;
|
|
25
|
+
events?: string[];
|
|
26
|
+
}
|
|
27
|
+
export interface AssistantTemplateAppDependency {
|
|
28
|
+
pluginName?: PluginName;
|
|
29
|
+
componentKey: string;
|
|
30
|
+
auth?: 'on_install' | 'on_first_use';
|
|
31
|
+
}
|
|
32
|
+
export interface AssistantTemplateToolsetDependency {
|
|
33
|
+
pluginName?: PluginName;
|
|
34
|
+
provider: string;
|
|
35
|
+
templateNodeKey: string;
|
|
36
|
+
targetAgentKey?: string;
|
|
37
|
+
instanceName?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface AssistantTemplateDependencies {
|
|
40
|
+
/** Exact compatible versions; the active version is pinned at installation. */
|
|
41
|
+
versions?: {
|
|
42
|
+
pluginName: PluginName;
|
|
43
|
+
version: string;
|
|
44
|
+
}[];
|
|
45
|
+
plugins?: PluginName[];
|
|
46
|
+
skills?: AssistantTemplateSkillDependency[];
|
|
47
|
+
mcpServers?: AssistantTemplateMcpServerDependency[];
|
|
48
|
+
hooks?: AssistantTemplateHookDependency[];
|
|
49
|
+
apps?: AssistantTemplateAppDependency[];
|
|
50
|
+
toolsets?: AssistantTemplateToolsetDependency[];
|
|
51
|
+
}
|