@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 +8 -0
- package/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
- package/src/lib/runtime/capabilities/workspace-files.d.ts +29 -0
package/CHANGELOG.md
CHANGED
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
|
@@ -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
|
}
|