@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/contracts",
3
- "version": "3.21.2",
3
+ "version": "3.21.3",
4
4
  "license": "AGPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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?: string;
84
- description?: string;
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
+ }