@xpert-ai/plugin-sdk 3.15.1 → 3.15.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @xpert-ai/plugin-sdk
2
2
 
3
+ ## 3.15.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 481ffba: file understanding & vector store
8
+ - Updated dependencies [481ffba]
9
+ - @xpert-ai/contracts@3.15.3
10
+
3
11
  ## 3.15.1
4
12
 
5
13
  ### Patch Changes
package/index.cjs.js CHANGED
@@ -2768,7 +2768,7 @@ const KnowledgebaseDocumentsRuntimeCapability = createRuntimeCapability('platfor
2768
2768
  });
2769
2769
 
2770
2770
  const WorkspaceFilesRuntimeCapability = createRuntimeCapability('platform.workspace.files', {
2771
- description: 'Upload, read, and delete raw files in Xpert workspace volumes.'
2771
+ description: 'Upload, understand, read, and delete raw files in Xpert workspace volumes.'
2772
2772
  });
2773
2773
 
2774
2774
  const SKILL_SOURCE_PROVIDER = 'SKILL_SOURCE_PROVIDER';
package/index.esm.js CHANGED
@@ -2748,7 +2748,7 @@ const KnowledgebaseDocumentsRuntimeCapability = createRuntimeCapability('platfor
2748
2748
  });
2749
2749
 
2750
2750
  const WorkspaceFilesRuntimeCapability = createRuntimeCapability('platform.workspace.files', {
2751
- description: 'Upload, read, and delete raw files in Xpert workspace volumes.'
2751
+ description: 'Upload, understand, read, and delete raw files in Xpert workspace volumes.'
2752
2752
  });
2753
2753
 
2754
2754
  const SKILL_SOURCE_PROVIDER = 'SKILL_SOURCE_PROVIDER';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/plugin-sdk",
3
- "version": "3.15.1",
3
+ "version": "3.15.2",
4
4
  "license": "AGPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,8 +37,37 @@ export type WorkspaceFile = {
37
37
  export type WorkspaceFileBuffer = WorkspaceFile & {
38
38
  buffer: Buffer;
39
39
  };
40
+ export type WorkspaceUnderstandFileInput = WorkspaceFileReference & {
41
+ originalName?: string | null;
42
+ mimeType?: string | null;
43
+ size?: number | null;
44
+ fileUrl?: string | null;
45
+ url?: string | null;
46
+ purpose?: 'chat_attachment' | 'workspace' | 'knowledge';
47
+ parseMode?: 'auto' | 'fast' | 'deep' | 'none';
48
+ conversationId?: string | null;
49
+ threadId?: string | null;
50
+ projectId?: string | null;
51
+ xpertId?: string | null;
52
+ metadata?: Record<string, unknown>;
53
+ runInline?: boolean | null;
54
+ };
55
+ export type WorkspaceUnderstoodFile = WorkspaceFile & {
56
+ id: string;
57
+ fileId: string;
58
+ fileAssetId: string;
59
+ storageFileId?: string;
60
+ originalName?: string;
61
+ status: string;
62
+ parseStatus: string;
63
+ purpose?: string;
64
+ parseMode?: string;
65
+ capabilities?: string[];
66
+ summary?: string;
67
+ };
40
68
  export interface WorkspaceFilesApi {
41
69
  uploadBuffer(input: WorkspaceUploadBufferInput): Promise<WorkspaceFile>;
70
+ understandFile(input: WorkspaceUnderstandFileInput): Promise<WorkspaceUnderstoodFile>;
42
71
  readBuffer(input: WorkspaceFileReference): Promise<WorkspaceFileBuffer>;
43
72
  deleteFile(input: WorkspaceFileReference): Promise<void>;
44
73
  }