@xpert-ai/plugin-sdk 3.9.5 → 3.9.9
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 +15 -0
- package/index.cjs.js +12 -0
- package/index.esm.js +12 -0
- package/package.json +1 -1
- package/src/lib/agent/handoff/agent-chat.contract.d.ts +5 -0
- package/src/lib/core/file-system.d.ts +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @xpert-ai/plugin-sdk
|
|
2
2
|
|
|
3
|
+
## 3.9.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [2acc11a]
|
|
8
|
+
- @xpert-ai/contracts@3.9.9
|
|
9
|
+
|
|
10
|
+
## 3.9.8
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 2558760: updates
|
|
15
|
+
- Updated dependencies [2558760]
|
|
16
|
+
- @xpert-ai/contracts@3.9.8
|
|
17
|
+
|
|
3
18
|
## 3.9.5
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/index.cjs.js
CHANGED
|
@@ -971,6 +971,18 @@ BuiltinToolset.provider = '';
|
|
|
971
971
|
*/ fullPath(filePath) {
|
|
972
972
|
return path.join(this.basePath, filePath);
|
|
973
973
|
}
|
|
974
|
+
/**
|
|
975
|
+
* Convert an absolute path under this file-system root back to a relative path.
|
|
976
|
+
*/ relativePath(filePath) {
|
|
977
|
+
const relative = path.relative(this.basePath, path.resolve(filePath)).replace(/\\/g, '/');
|
|
978
|
+
if (!relative || relative === '.') {
|
|
979
|
+
return '';
|
|
980
|
+
}
|
|
981
|
+
if (relative.startsWith('..') || path.isAbsolute(relative)) {
|
|
982
|
+
return null;
|
|
983
|
+
}
|
|
984
|
+
return relative;
|
|
985
|
+
}
|
|
974
986
|
/**
|
|
975
987
|
* Get web url for a given file path in the file system.
|
|
976
988
|
*
|
package/index.esm.js
CHANGED
|
@@ -950,6 +950,18 @@ BuiltinToolset.provider = '';
|
|
|
950
950
|
*/ fullPath(filePath) {
|
|
951
951
|
return path__default.join(this.basePath, filePath);
|
|
952
952
|
}
|
|
953
|
+
/**
|
|
954
|
+
* Convert an absolute path under this file-system root back to a relative path.
|
|
955
|
+
*/ relativePath(filePath) {
|
|
956
|
+
const relative = path__default.relative(this.basePath, path__default.resolve(filePath)).replace(/\\/g, '/');
|
|
957
|
+
if (!relative || relative === '.') {
|
|
958
|
+
return '';
|
|
959
|
+
}
|
|
960
|
+
if (relative.startsWith('..') || path__default.isAbsolute(relative)) {
|
|
961
|
+
return null;
|
|
962
|
+
}
|
|
963
|
+
return relative;
|
|
964
|
+
}
|
|
953
965
|
/**
|
|
954
966
|
* Get web url for a given file path in the file system.
|
|
955
967
|
*
|
package/package.json
CHANGED
|
@@ -21,6 +21,11 @@ export interface AgentChatDispatchPayload extends Record<string, unknown> {
|
|
|
21
21
|
execution?: {
|
|
22
22
|
id: string;
|
|
23
23
|
};
|
|
24
|
+
streamPersistence?: {
|
|
25
|
+
transport: 'redis-stream';
|
|
26
|
+
threadId?: string | null;
|
|
27
|
+
runId?: string | null;
|
|
28
|
+
};
|
|
24
29
|
};
|
|
25
30
|
callback: AgentChatCallbackTarget;
|
|
26
31
|
executionId?: string;
|
|
@@ -23,6 +23,10 @@ export declare class XpFileSystem {
|
|
|
23
23
|
* @returns Absolute file path
|
|
24
24
|
*/
|
|
25
25
|
fullPath(filePath: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* Convert an absolute path under this file-system root back to a relative path.
|
|
28
|
+
*/
|
|
29
|
+
relativePath(filePath: string): string | null;
|
|
26
30
|
/**
|
|
27
31
|
* Get web url for a given file path in the file system.
|
|
28
32
|
*
|