@xpert-ai/contracts 3.32.0 → 3.33.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.32.0",
3
+ "version": "3.33.1",
4
4
  "license": "AGPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@octokit/types": "13.10.0",
23
23
  "@types/json-schema": "^7.0.15",
24
- "@xpert-ai/chatkit-types": "~0.20.0",
24
+ "@xpert-ai/chatkit-types": "~0.20.2",
25
25
  "zod-to-json-schema": "^3.25.2"
26
26
  },
27
27
  "peerDependencies": {
@@ -57,6 +57,28 @@ export interface IPluginUninstallResult {
57
57
  runtimeConvergence?: IPluginRuntimeConvergence;
58
58
  runtimeRequirements?: IRuntimePluginRequirement[];
59
59
  }
60
+ export type PluginInstallationMethod = 'archive' | 'workspace' | 'npm' | 'git' | 'url' | 'local' | 'unknown';
61
+ /** Safe installation provenance; never expose server paths or credential-bearing source config. */
62
+ export interface PluginInstallationInfo {
63
+ method: PluginInstallationMethod;
64
+ fileName?: string;
65
+ installedAt?: string;
66
+ }
67
+ export type PluginUpdateUnavailableReason = 'archive' | 'workspace' | 'unsupported_source' | 'scope' | 'pending_restart' | 'load_failed';
68
+ export interface PluginVersionCheckResult {
69
+ status: 'success' | 'failed';
70
+ checkedAt: string;
71
+ latestVersion?: string;
72
+ lastSuccessfulCheckAt?: string;
73
+ errorCode?: 'REGISTRY_UNAVAILABLE' | 'VERSION_NOT_FOUND';
74
+ }
75
+ export interface PluginInstallationSummary {
76
+ scopeKey?: string;
77
+ installation: PluginInstallationInfo;
78
+ installedVersion?: string;
79
+ runningVersion?: string;
80
+ pendingRestart?: boolean;
81
+ }
60
82
  export interface IPluginDescriptor {
61
83
  scopeKey?: string;
62
84
  organizationId?: string;
@@ -65,6 +87,10 @@ export interface IPluginDescriptor {
65
87
  packageName?: string;
66
88
  source?: PluginSource;
67
89
  currentVersion?: string;
90
+ runningVersion?: string;
91
+ installedVersion?: string;
92
+ installation?: PluginInstallationInfo;
93
+ updateUnavailableReason?: PluginUpdateUnavailableReason;
68
94
  latestVersion?: string;
69
95
  isGlobal: boolean;
70
96
  level: PluginLevel;
@@ -84,6 +110,8 @@ export interface IPluginDescriptor {
84
110
  componentSummary?: PluginComponentSummary;
85
111
  }
86
112
  export interface IPluginLatestVersionStatus {
113
+ scopeKey?: string;
114
+ check?: PluginVersionCheckResult;
87
115
  organizationId?: string;
88
116
  name: PluginName;
89
117
  packageName?: string;
package/src/plugin.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model';
2
+ import type { PluginInstallationSummary } from './plugin-management';
2
3
  import type { PluginMarketplaceAppConfig } from './plugin-application';
3
4
  import type { IXpert, XpertWorkspaceDataScope } from './ai/xpert.model';
4
5
  import type { TMcpStdioRuntimePolicy } from './ai/xpert-tool-mcp.model';
@@ -273,6 +274,10 @@ export interface PluginCodeSourceConfig {
273
274
  workspacePath?: string;
274
275
  }
275
276
  export interface PluginSourceConfig extends PluginCodeSourceConfig {
277
+ installationMethod?: 'archive' | 'workspace';
278
+ /** Written by the archive upload endpoint; retained for legacy installation provenance. */
279
+ uploadFileName?: string;
280
+ uploadInstalledAt?: string;
276
281
  /** Host-owned immutable installation directory; never supplied as an authorization grant. */
277
282
  runtimeName?: string;
278
283
  immutableRuntime?: boolean;
@@ -473,8 +478,10 @@ export interface PluginMarketplaceReadme {
473
478
  fileName?: string | null;
474
479
  content: string;
475
480
  source: PluginMarketplaceReadmeSource;
481
+ version?: string | null;
476
482
  }
477
483
  export interface PluginMarketplaceDetailItem extends PluginMarketplaceItem {
484
+ installations?: PluginInstallationSummary[];
478
485
  readme: PluginMarketplaceReadme;
479
486
  availableReadmeLocales?: string[];
480
487
  }