@xpert-ai/plugin-sdk 3.30.1 → 3.30.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xpert-ai/plugin-sdk",
|
|
3
|
-
"version": "3.30.
|
|
3
|
+
"version": "3.30.2",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@langchain/openai": "0.6.9",
|
|
77
|
-
"@xpert-ai/contracts": "3.30.
|
|
77
|
+
"@xpert-ai/contracts": "3.30.2",
|
|
78
78
|
"express": "^4.22.1",
|
|
79
79
|
"js-tiktoken": "^1.0.21"
|
|
80
80
|
},
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { TWorkflowTriggerConnectionStatus, TWorkflowTriggerMeta, TXpertTeamNode } from '@xpert-ai/contracts';
|
|
2
2
|
export type TWorkflowTriggerBootstrapMode = 'replay_publish' | 'skip';
|
|
3
|
+
/**
|
|
4
|
+
* Lifecycle policy for recovering published triggers during system bootstrap.
|
|
5
|
+
* Declares recovery participation and criticality independently of normal publication.
|
|
6
|
+
*/
|
|
3
7
|
export type TWorkflowTriggerBootstrapConfig = {
|
|
4
8
|
mode: TWorkflowTriggerBootstrapMode;
|
|
5
9
|
critical?: boolean;
|
|
@@ -10,7 +14,14 @@ export type TWorkflowTriggerParams<T> = {
|
|
|
10
14
|
scope?: {
|
|
11
15
|
tenantId: string;
|
|
12
16
|
organizationId: string | null;
|
|
17
|
+
userId?: string;
|
|
18
|
+
workspaceId?: string;
|
|
13
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* Supplementary instructions scoped to trigger-initiated runs.
|
|
22
|
+
* Additive to existing task instructions; preserves the Assistant's instruction definition.
|
|
23
|
+
*/
|
|
24
|
+
additionalInstructions?: string;
|
|
14
25
|
agentKey?: string;
|
|
15
26
|
node?: TXpertTeamNode;
|
|
16
27
|
config: T;
|
|
@@ -25,8 +36,30 @@ export interface IWorkflowTriggerStrategy<T> {
|
|
|
25
36
|
* - critical: false
|
|
26
37
|
*/
|
|
27
38
|
bootstrap?: TWorkflowTriggerBootstrapConfig;
|
|
39
|
+
/**
|
|
40
|
+
* Assesses configuration validity within the supplied trigger context.
|
|
41
|
+
* Reports validation findings without activating the trigger.
|
|
42
|
+
*/
|
|
28
43
|
validate(payload: TWorkflowTriggerParams<T>): Promise<any[]>;
|
|
44
|
+
/**
|
|
45
|
+
* Read-only snapshot of the connection represented by the trigger configuration.
|
|
46
|
+
* Connection state is distinct from configuration validity and individual run outcomes.
|
|
47
|
+
*/
|
|
29
48
|
connectionStatus?(config: T): Promise<Pick<TWorkflowTriggerConnectionStatus, 'connected' | 'state'>>;
|
|
49
|
+
/**
|
|
50
|
+
* Read-only snapshot of trigger availability, connectivity and activity within an Assistant scope.
|
|
51
|
+
* Describes the trigger's operational state independently of the Assistant's execution state.
|
|
52
|
+
*/
|
|
53
|
+
assistantStatus?(params: TWorkflowTriggerParams<T>): Promise<{
|
|
54
|
+
/** Availability within the supplied Assistant and actor scope. */
|
|
55
|
+
available: boolean;
|
|
56
|
+
/** Connection state, independent of individual run outcomes. */
|
|
57
|
+
connection: TWorkflowTriggerConnectionStatus['state'];
|
|
58
|
+
/** Latest trigger activity time (ISO 8601), or null if none. */
|
|
59
|
+
lastActivityAt: string | null;
|
|
60
|
+
/** Latest run initiation time (ISO 8601), distinct from completion; null if none. */
|
|
61
|
+
lastRunAt: string | null;
|
|
62
|
+
}>;
|
|
30
63
|
/**
|
|
31
64
|
* Initialize the trigger when publish xpert workflow
|
|
32
65
|
*
|