@xpert-ai/plugin-sdk 3.15.1 → 3.15.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @xpert-ai/plugin-sdk
|
|
2
2
|
|
|
3
|
+
## 3.15.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- bdcb73b: handoff messages
|
|
8
|
+
- Updated dependencies [bdcb73b]
|
|
9
|
+
- @xpert-ai/contracts@3.15.4
|
|
10
|
+
|
|
11
|
+
## 3.15.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 481ffba: file understanding & vector store
|
|
16
|
+
- Updated dependencies [481ffba]
|
|
17
|
+
- @xpert-ai/contracts@3.15.3
|
|
18
|
+
|
|
3
19
|
## 3.15.1
|
|
4
20
|
|
|
5
21
|
### 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
|
@@ -79,6 +79,8 @@ export interface HandoffMessageHeaders extends Record<string, string> {
|
|
|
79
79
|
source?: RunSource;
|
|
80
80
|
requestedLane?: LaneName;
|
|
81
81
|
integrationId?: string;
|
|
82
|
+
policyTimeoutMs?: string;
|
|
83
|
+
policyIdleTimeoutMs?: string;
|
|
82
84
|
}
|
|
83
85
|
/**
|
|
84
86
|
* Processor execution policy: declared by the Processor, executed uniformly by the Dispatcher.
|
|
@@ -86,11 +88,14 @@ export interface HandoffMessageHeaders extends Record<string, string> {
|
|
|
86
88
|
export interface ProcessorPolicy {
|
|
87
89
|
lane: LaneName;
|
|
88
90
|
timeoutMs?: number;
|
|
91
|
+
idleTimeoutMs?: number;
|
|
89
92
|
}
|
|
90
93
|
export interface ProcessContext {
|
|
91
94
|
runId: string;
|
|
92
95
|
traceId: string;
|
|
93
96
|
abortSignal: AbortSignal;
|
|
97
|
+
heartbeat?: (reason?: string) => void;
|
|
98
|
+
getAbortReason?: () => string | undefined;
|
|
94
99
|
/**
|
|
95
100
|
* Optional local-process event channel for queue waiters (e.g. SSE connection awaiting this message).
|
|
96
101
|
* This is intentionally process-local and best-effort.
|
|
@@ -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
|
}
|