@blueking/chat-helper 0.0.12-beta.12 → 0.0.12-beta.13
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/README.md +2 -8
- package/dist/agent/type.d.ts +0 -69
- package/dist/agent/type.ts.js +1 -1
- package/dist/agent/use-agent.d.ts +7 -165
- package/dist/agent/use-agent.ts.js +11 -50
- package/dist/event/ag-ui.d.ts +0 -2
- package/dist/event/ag-ui.ts.js +3 -35
- package/dist/event/type.d.ts +2 -13
- package/dist/event/type.ts.js +0 -2
- package/dist/http/index.d.ts +0 -2
- package/dist/http/module/agent.d.ts +0 -2
- package/dist/http/module/agent.ts.js +2 -19
- package/dist/http/module/index.d.ts +0 -2
- package/dist/http/module/message.ts.js +2 -2
- package/dist/http/module/session.d.ts +1 -2
- package/dist/http/module/session.ts.js +0 -19
- package/dist/http/transform/agent.d.ts +1 -9
- package/dist/http/transform/agent.ts.js +0 -27
- package/dist/http/transform/message.d.ts +0 -6
- package/dist/http/transform/message.ts.js +0 -56
- package/dist/index.d.ts +6 -791
- package/dist/message/type.d.ts +3 -18
- package/dist/message/type.ts.js +0 -2
- package/dist/message/use-message.d.ts +0 -208
- package/dist/session/type.d.ts +0 -14
- package/dist/session/use-session.d.ts +1 -418
- package/dist/session/use-session.ts.js +0 -5
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IMediatorModule } from '../mediator';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ISession, ISessionFeedback, ISessionListParams } from './type';
|
|
3
3
|
/**
|
|
4
4
|
* 使用会话模块,主要做业务的组合
|
|
5
5
|
* @param mediator - 中介者模块,用于获取其他模块的引用
|
|
@@ -25,17 +25,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
25
25
|
content: ({
|
|
26
26
|
activityType: import("..").ActivityType;
|
|
27
27
|
content: {
|
|
28
|
-
artifacts: {
|
|
29
|
-
name: string;
|
|
30
|
-
outputId: string;
|
|
31
|
-
size: number;
|
|
32
|
-
type: string;
|
|
33
|
-
previewUrl?: string;
|
|
34
|
-
url?: string;
|
|
35
|
-
}[];
|
|
36
|
-
runId: string;
|
|
37
|
-
status: "complete" | "empty";
|
|
38
|
-
} | {
|
|
39
28
|
nodes: Record<string, import("..").IFlowAgentNode>;
|
|
40
29
|
task_id: string;
|
|
41
30
|
task_name: string;
|
|
@@ -53,31 +42,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
53
42
|
originFileUrl?: string;
|
|
54
43
|
url: string;
|
|
55
44
|
}[];
|
|
56
|
-
property?: {
|
|
57
|
-
[x: string]: unknown;
|
|
58
|
-
artifacts?: {
|
|
59
|
-
name: string;
|
|
60
|
-
outputId: string;
|
|
61
|
-
size: number;
|
|
62
|
-
type: string;
|
|
63
|
-
previewUrl?: string;
|
|
64
|
-
url?: string;
|
|
65
|
-
}[];
|
|
66
|
-
extra?: {
|
|
67
|
-
[x: string]: unknown;
|
|
68
|
-
cite?: string | {
|
|
69
|
-
data: {
|
|
70
|
-
key: string;
|
|
71
|
-
value: string;
|
|
72
|
-
}[];
|
|
73
|
-
title: string;
|
|
74
|
-
type: string;
|
|
75
|
-
};
|
|
76
|
-
command?: string;
|
|
77
|
-
context?: Array<Record<string, unknown>>;
|
|
78
|
-
resources?: Array<Record<string, unknown>>;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
45
|
role: import("..").MessageRole.Activity;
|
|
82
46
|
id?: string;
|
|
83
47
|
messageId?: string;
|
|
@@ -88,14 +52,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
88
52
|
content?: string;
|
|
89
53
|
property?: {
|
|
90
54
|
[x: string]: unknown;
|
|
91
|
-
artifacts?: {
|
|
92
|
-
name: string;
|
|
93
|
-
outputId: string;
|
|
94
|
-
size: number;
|
|
95
|
-
type: string;
|
|
96
|
-
previewUrl?: string;
|
|
97
|
-
url?: string;
|
|
98
|
-
}[];
|
|
99
55
|
extra?: {
|
|
100
56
|
[x: string]: unknown;
|
|
101
57
|
cite?: string | {
|
|
@@ -919,14 +875,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
919
875
|
})[];
|
|
920
876
|
property?: {
|
|
921
877
|
[x: string]: unknown;
|
|
922
|
-
artifacts?: {
|
|
923
|
-
name: string;
|
|
924
|
-
outputId: string;
|
|
925
|
-
size: number;
|
|
926
|
-
type: string;
|
|
927
|
-
previewUrl?: string;
|
|
928
|
-
url?: string;
|
|
929
|
-
}[];
|
|
930
878
|
extra?: {
|
|
931
879
|
[x: string]: unknown;
|
|
932
880
|
cite?: string | {
|
|
@@ -954,17 +902,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
954
902
|
value: string | ({
|
|
955
903
|
activityType: import("..").ActivityType;
|
|
956
904
|
content: {
|
|
957
|
-
artifacts: {
|
|
958
|
-
name: string;
|
|
959
|
-
outputId: string;
|
|
960
|
-
size: number;
|
|
961
|
-
type: string;
|
|
962
|
-
previewUrl?: string;
|
|
963
|
-
url?: string;
|
|
964
|
-
}[];
|
|
965
|
-
runId: string;
|
|
966
|
-
status: "complete" | "empty";
|
|
967
|
-
} | {
|
|
968
905
|
nodes: Record<string, import("..").IFlowAgentNode>;
|
|
969
906
|
task_id: string;
|
|
970
907
|
task_name: string;
|
|
@@ -982,31 +919,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
982
919
|
originFileUrl?: string;
|
|
983
920
|
url: string;
|
|
984
921
|
}[];
|
|
985
|
-
property?: {
|
|
986
|
-
[x: string]: unknown;
|
|
987
|
-
artifacts?: {
|
|
988
|
-
name: string;
|
|
989
|
-
outputId: string;
|
|
990
|
-
size: number;
|
|
991
|
-
type: string;
|
|
992
|
-
previewUrl?: string;
|
|
993
|
-
url?: string;
|
|
994
|
-
}[];
|
|
995
|
-
extra?: {
|
|
996
|
-
[x: string]: unknown;
|
|
997
|
-
cite?: string | {
|
|
998
|
-
data: {
|
|
999
|
-
key: string;
|
|
1000
|
-
value: string;
|
|
1001
|
-
}[];
|
|
1002
|
-
title: string;
|
|
1003
|
-
type: string;
|
|
1004
|
-
};
|
|
1005
|
-
command?: string;
|
|
1006
|
-
context?: Array<Record<string, unknown>>;
|
|
1007
|
-
resources?: Array<Record<string, unknown>>;
|
|
1008
|
-
};
|
|
1009
|
-
};
|
|
1010
922
|
role: import("..").MessageRole.Activity;
|
|
1011
923
|
id?: string;
|
|
1012
924
|
messageId?: string;
|
|
@@ -1017,14 +929,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
1017
929
|
content?: string;
|
|
1018
930
|
property?: {
|
|
1019
931
|
[x: string]: unknown;
|
|
1020
|
-
artifacts?: {
|
|
1021
|
-
name: string;
|
|
1022
|
-
outputId: string;
|
|
1023
|
-
size: number;
|
|
1024
|
-
type: string;
|
|
1025
|
-
previewUrl?: string;
|
|
1026
|
-
url?: string;
|
|
1027
|
-
}[];
|
|
1028
932
|
extra?: {
|
|
1029
933
|
[x: string]: unknown;
|
|
1030
934
|
cite?: string | {
|
|
@@ -1848,14 +1752,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
1848
1752
|
})[];
|
|
1849
1753
|
property?: {
|
|
1850
1754
|
[x: string]: unknown;
|
|
1851
|
-
artifacts?: {
|
|
1852
|
-
name: string;
|
|
1853
|
-
outputId: string;
|
|
1854
|
-
size: number;
|
|
1855
|
-
type: string;
|
|
1856
|
-
previewUrl?: string;
|
|
1857
|
-
url?: string;
|
|
1858
|
-
}[];
|
|
1859
1755
|
extra?: {
|
|
1860
1756
|
[x: string]: unknown;
|
|
1861
1757
|
cite?: string | {
|
|
@@ -1904,17 +1800,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
1904
1800
|
content: ({
|
|
1905
1801
|
activityType: import("..").ActivityType;
|
|
1906
1802
|
content: {
|
|
1907
|
-
artifacts: {
|
|
1908
|
-
name: string;
|
|
1909
|
-
outputId: string;
|
|
1910
|
-
size: number;
|
|
1911
|
-
type: string;
|
|
1912
|
-
previewUrl?: string;
|
|
1913
|
-
url?: string;
|
|
1914
|
-
}[];
|
|
1915
|
-
runId: string;
|
|
1916
|
-
status: "complete" | "empty";
|
|
1917
|
-
} | {
|
|
1918
1803
|
nodes: Record<string, import("..").IFlowAgentNode>;
|
|
1919
1804
|
task_id: string;
|
|
1920
1805
|
task_name: string;
|
|
@@ -1932,31 +1817,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
1932
1817
|
originFileUrl?: string;
|
|
1933
1818
|
url: string;
|
|
1934
1819
|
}[];
|
|
1935
|
-
property?: {
|
|
1936
|
-
[x: string]: unknown;
|
|
1937
|
-
artifacts?: {
|
|
1938
|
-
name: string;
|
|
1939
|
-
outputId: string;
|
|
1940
|
-
size: number;
|
|
1941
|
-
type: string;
|
|
1942
|
-
previewUrl?: string;
|
|
1943
|
-
url?: string;
|
|
1944
|
-
}[];
|
|
1945
|
-
extra?: {
|
|
1946
|
-
[x: string]: unknown;
|
|
1947
|
-
cite?: string | {
|
|
1948
|
-
data: {
|
|
1949
|
-
key: string;
|
|
1950
|
-
value: string;
|
|
1951
|
-
}[];
|
|
1952
|
-
title: string;
|
|
1953
|
-
type: string;
|
|
1954
|
-
};
|
|
1955
|
-
command?: string;
|
|
1956
|
-
context?: Array<Record<string, unknown>>;
|
|
1957
|
-
resources?: Array<Record<string, unknown>>;
|
|
1958
|
-
};
|
|
1959
|
-
};
|
|
1960
1820
|
role: import("..").MessageRole.Activity;
|
|
1961
1821
|
id?: string;
|
|
1962
1822
|
messageId?: string;
|
|
@@ -1967,14 +1827,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
1967
1827
|
content?: string;
|
|
1968
1828
|
property?: {
|
|
1969
1829
|
[x: string]: unknown;
|
|
1970
|
-
artifacts?: {
|
|
1971
|
-
name: string;
|
|
1972
|
-
outputId: string;
|
|
1973
|
-
size: number;
|
|
1974
|
-
type: string;
|
|
1975
|
-
previewUrl?: string;
|
|
1976
|
-
url?: string;
|
|
1977
|
-
}[];
|
|
1978
1830
|
extra?: {
|
|
1979
1831
|
[x: string]: unknown;
|
|
1980
1832
|
cite?: string | {
|
|
@@ -2798,14 +2650,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
2798
2650
|
})[];
|
|
2799
2651
|
property?: {
|
|
2800
2652
|
[x: string]: unknown;
|
|
2801
|
-
artifacts?: {
|
|
2802
|
-
name: string;
|
|
2803
|
-
outputId: string;
|
|
2804
|
-
size: number;
|
|
2805
|
-
type: string;
|
|
2806
|
-
previewUrl?: string;
|
|
2807
|
-
url?: string;
|
|
2808
|
-
}[];
|
|
2809
2653
|
extra?: {
|
|
2810
2654
|
[x: string]: unknown;
|
|
2811
2655
|
cite?: string | {
|
|
@@ -2833,17 +2677,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
2833
2677
|
value: string | ({
|
|
2834
2678
|
activityType: import("..").ActivityType;
|
|
2835
2679
|
content: {
|
|
2836
|
-
artifacts: {
|
|
2837
|
-
name: string;
|
|
2838
|
-
outputId: string;
|
|
2839
|
-
size: number;
|
|
2840
|
-
type: string;
|
|
2841
|
-
previewUrl?: string;
|
|
2842
|
-
url?: string;
|
|
2843
|
-
}[];
|
|
2844
|
-
runId: string;
|
|
2845
|
-
status: "complete" | "empty";
|
|
2846
|
-
} | {
|
|
2847
2680
|
nodes: Record<string, import("..").IFlowAgentNode>;
|
|
2848
2681
|
task_id: string;
|
|
2849
2682
|
task_name: string;
|
|
@@ -2861,31 +2694,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
2861
2694
|
originFileUrl?: string;
|
|
2862
2695
|
url: string;
|
|
2863
2696
|
}[];
|
|
2864
|
-
property?: {
|
|
2865
|
-
[x: string]: unknown;
|
|
2866
|
-
artifacts?: {
|
|
2867
|
-
name: string;
|
|
2868
|
-
outputId: string;
|
|
2869
|
-
size: number;
|
|
2870
|
-
type: string;
|
|
2871
|
-
previewUrl?: string;
|
|
2872
|
-
url?: string;
|
|
2873
|
-
}[];
|
|
2874
|
-
extra?: {
|
|
2875
|
-
[x: string]: unknown;
|
|
2876
|
-
cite?: string | {
|
|
2877
|
-
data: {
|
|
2878
|
-
key: string;
|
|
2879
|
-
value: string;
|
|
2880
|
-
}[];
|
|
2881
|
-
title: string;
|
|
2882
|
-
type: string;
|
|
2883
|
-
};
|
|
2884
|
-
command?: string;
|
|
2885
|
-
context?: Array<Record<string, unknown>>;
|
|
2886
|
-
resources?: Array<Record<string, unknown>>;
|
|
2887
|
-
};
|
|
2888
|
-
};
|
|
2889
2697
|
role: import("..").MessageRole.Activity;
|
|
2890
2698
|
id?: string;
|
|
2891
2699
|
messageId?: string;
|
|
@@ -2896,14 +2704,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
2896
2704
|
content?: string;
|
|
2897
2705
|
property?: {
|
|
2898
2706
|
[x: string]: unknown;
|
|
2899
|
-
artifacts?: {
|
|
2900
|
-
name: string;
|
|
2901
|
-
outputId: string;
|
|
2902
|
-
size: number;
|
|
2903
|
-
type: string;
|
|
2904
|
-
previewUrl?: string;
|
|
2905
|
-
url?: string;
|
|
2906
|
-
}[];
|
|
2907
2707
|
extra?: {
|
|
2908
2708
|
[x: string]: unknown;
|
|
2909
2709
|
cite?: string | {
|
|
@@ -3727,14 +3527,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
3727
3527
|
})[];
|
|
3728
3528
|
property?: {
|
|
3729
3529
|
[x: string]: unknown;
|
|
3730
|
-
artifacts?: {
|
|
3731
|
-
name: string;
|
|
3732
|
-
outputId: string;
|
|
3733
|
-
size: number;
|
|
3734
|
-
type: string;
|
|
3735
|
-
previewUrl?: string;
|
|
3736
|
-
url?: string;
|
|
3737
|
-
}[];
|
|
3738
3530
|
extra?: {
|
|
3739
3531
|
[x: string]: unknown;
|
|
3740
3532
|
cite?: string | {
|
|
@@ -3784,17 +3576,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
3784
3576
|
content: ({
|
|
3785
3577
|
activityType: import("..").ActivityType;
|
|
3786
3578
|
content: {
|
|
3787
|
-
artifacts: {
|
|
3788
|
-
name: string;
|
|
3789
|
-
outputId: string;
|
|
3790
|
-
size: number;
|
|
3791
|
-
type: string;
|
|
3792
|
-
previewUrl?: string;
|
|
3793
|
-
url?: string;
|
|
3794
|
-
}[];
|
|
3795
|
-
runId: string;
|
|
3796
|
-
status: "complete" | "empty";
|
|
3797
|
-
} | {
|
|
3798
3579
|
nodes: Record<string, import("..").IFlowAgentNode>;
|
|
3799
3580
|
task_id: string;
|
|
3800
3581
|
task_name: string;
|
|
@@ -3812,31 +3593,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
3812
3593
|
originFileUrl?: string;
|
|
3813
3594
|
url: string;
|
|
3814
3595
|
}[];
|
|
3815
|
-
property?: {
|
|
3816
|
-
[x: string]: unknown;
|
|
3817
|
-
artifacts?: {
|
|
3818
|
-
name: string;
|
|
3819
|
-
outputId: string;
|
|
3820
|
-
size: number;
|
|
3821
|
-
type: string;
|
|
3822
|
-
previewUrl?: string;
|
|
3823
|
-
url?: string;
|
|
3824
|
-
}[];
|
|
3825
|
-
extra?: {
|
|
3826
|
-
[x: string]: unknown;
|
|
3827
|
-
cite?: string | {
|
|
3828
|
-
data: {
|
|
3829
|
-
key: string;
|
|
3830
|
-
value: string;
|
|
3831
|
-
}[];
|
|
3832
|
-
title: string;
|
|
3833
|
-
type: string;
|
|
3834
|
-
};
|
|
3835
|
-
command?: string;
|
|
3836
|
-
context?: Array<Record<string, unknown>>;
|
|
3837
|
-
resources?: Array<Record<string, unknown>>;
|
|
3838
|
-
};
|
|
3839
|
-
};
|
|
3840
3596
|
role: import("..").MessageRole.Activity;
|
|
3841
3597
|
id?: string;
|
|
3842
3598
|
messageId?: string;
|
|
@@ -3847,14 +3603,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
3847
3603
|
content?: string;
|
|
3848
3604
|
property?: {
|
|
3849
3605
|
[x: string]: unknown;
|
|
3850
|
-
artifacts?: {
|
|
3851
|
-
name: string;
|
|
3852
|
-
outputId: string;
|
|
3853
|
-
size: number;
|
|
3854
|
-
type: string;
|
|
3855
|
-
previewUrl?: string;
|
|
3856
|
-
url?: string;
|
|
3857
|
-
}[];
|
|
3858
3606
|
extra?: {
|
|
3859
3607
|
[x: string]: unknown;
|
|
3860
3608
|
cite?: string | {
|
|
@@ -4678,14 +4426,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
4678
4426
|
})[];
|
|
4679
4427
|
property?: {
|
|
4680
4428
|
[x: string]: unknown;
|
|
4681
|
-
artifacts?: {
|
|
4682
|
-
name: string;
|
|
4683
|
-
outputId: string;
|
|
4684
|
-
size: number;
|
|
4685
|
-
type: string;
|
|
4686
|
-
previewUrl?: string;
|
|
4687
|
-
url?: string;
|
|
4688
|
-
}[];
|
|
4689
4429
|
extra?: {
|
|
4690
4430
|
[x: string]: unknown;
|
|
4691
4431
|
cite?: string | {
|
|
@@ -4713,17 +4453,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
4713
4453
|
value: string | ({
|
|
4714
4454
|
activityType: import("..").ActivityType;
|
|
4715
4455
|
content: {
|
|
4716
|
-
artifacts: {
|
|
4717
|
-
name: string;
|
|
4718
|
-
outputId: string;
|
|
4719
|
-
size: number;
|
|
4720
|
-
type: string;
|
|
4721
|
-
previewUrl?: string;
|
|
4722
|
-
url?: string;
|
|
4723
|
-
}[];
|
|
4724
|
-
runId: string;
|
|
4725
|
-
status: "complete" | "empty";
|
|
4726
|
-
} | {
|
|
4727
4456
|
nodes: Record<string, import("..").IFlowAgentNode>;
|
|
4728
4457
|
task_id: string;
|
|
4729
4458
|
task_name: string;
|
|
@@ -4741,31 +4470,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
4741
4470
|
originFileUrl?: string;
|
|
4742
4471
|
url: string;
|
|
4743
4472
|
}[];
|
|
4744
|
-
property?: {
|
|
4745
|
-
[x: string]: unknown;
|
|
4746
|
-
artifacts?: {
|
|
4747
|
-
name: string;
|
|
4748
|
-
outputId: string;
|
|
4749
|
-
size: number;
|
|
4750
|
-
type: string;
|
|
4751
|
-
previewUrl?: string;
|
|
4752
|
-
url?: string;
|
|
4753
|
-
}[];
|
|
4754
|
-
extra?: {
|
|
4755
|
-
[x: string]: unknown;
|
|
4756
|
-
cite?: string | {
|
|
4757
|
-
data: {
|
|
4758
|
-
key: string;
|
|
4759
|
-
value: string;
|
|
4760
|
-
}[];
|
|
4761
|
-
title: string;
|
|
4762
|
-
type: string;
|
|
4763
|
-
};
|
|
4764
|
-
command?: string;
|
|
4765
|
-
context?: Array<Record<string, unknown>>;
|
|
4766
|
-
resources?: Array<Record<string, unknown>>;
|
|
4767
|
-
};
|
|
4768
|
-
};
|
|
4769
4473
|
role: import("..").MessageRole.Activity;
|
|
4770
4474
|
id?: string;
|
|
4771
4475
|
messageId?: string;
|
|
@@ -4776,14 +4480,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
4776
4480
|
content?: string;
|
|
4777
4481
|
property?: {
|
|
4778
4482
|
[x: string]: unknown;
|
|
4779
|
-
artifacts?: {
|
|
4780
|
-
name: string;
|
|
4781
|
-
outputId: string;
|
|
4782
|
-
size: number;
|
|
4783
|
-
type: string;
|
|
4784
|
-
previewUrl?: string;
|
|
4785
|
-
url?: string;
|
|
4786
|
-
}[];
|
|
4787
4483
|
extra?: {
|
|
4788
4484
|
[x: string]: unknown;
|
|
4789
4485
|
cite?: string | {
|
|
@@ -5607,14 +5303,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
5607
5303
|
})[];
|
|
5608
5304
|
property?: {
|
|
5609
5305
|
[x: string]: unknown;
|
|
5610
|
-
artifacts?: {
|
|
5611
|
-
name: string;
|
|
5612
|
-
outputId: string;
|
|
5613
|
-
size: number;
|
|
5614
|
-
type: string;
|
|
5615
|
-
previewUrl?: string;
|
|
5616
|
-
url?: string;
|
|
5617
|
-
}[];
|
|
5618
5306
|
extra?: {
|
|
5619
5307
|
[x: string]: unknown;
|
|
5620
5308
|
cite?: string | {
|
|
@@ -5663,17 +5351,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
5663
5351
|
content: ({
|
|
5664
5352
|
activityType: import("..").ActivityType;
|
|
5665
5353
|
content: {
|
|
5666
|
-
artifacts: {
|
|
5667
|
-
name: string;
|
|
5668
|
-
outputId: string;
|
|
5669
|
-
size: number;
|
|
5670
|
-
type: string;
|
|
5671
|
-
previewUrl?: string;
|
|
5672
|
-
url?: string;
|
|
5673
|
-
}[];
|
|
5674
|
-
runId: string;
|
|
5675
|
-
status: "complete" | "empty";
|
|
5676
|
-
} | {
|
|
5677
5354
|
nodes: Record<string, import("..").IFlowAgentNode>;
|
|
5678
5355
|
task_id: string;
|
|
5679
5356
|
task_name: string;
|
|
@@ -5691,31 +5368,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
5691
5368
|
originFileUrl?: string;
|
|
5692
5369
|
url: string;
|
|
5693
5370
|
}[];
|
|
5694
|
-
property?: {
|
|
5695
|
-
[x: string]: unknown;
|
|
5696
|
-
artifacts?: {
|
|
5697
|
-
name: string;
|
|
5698
|
-
outputId: string;
|
|
5699
|
-
size: number;
|
|
5700
|
-
type: string;
|
|
5701
|
-
previewUrl?: string;
|
|
5702
|
-
url?: string;
|
|
5703
|
-
}[];
|
|
5704
|
-
extra?: {
|
|
5705
|
-
[x: string]: unknown;
|
|
5706
|
-
cite?: string | {
|
|
5707
|
-
data: {
|
|
5708
|
-
key: string;
|
|
5709
|
-
value: string;
|
|
5710
|
-
}[];
|
|
5711
|
-
title: string;
|
|
5712
|
-
type: string;
|
|
5713
|
-
};
|
|
5714
|
-
command?: string;
|
|
5715
|
-
context?: Array<Record<string, unknown>>;
|
|
5716
|
-
resources?: Array<Record<string, unknown>>;
|
|
5717
|
-
};
|
|
5718
|
-
};
|
|
5719
5371
|
role: import("..").MessageRole.Activity;
|
|
5720
5372
|
id?: string;
|
|
5721
5373
|
messageId?: string;
|
|
@@ -5726,14 +5378,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
5726
5378
|
content?: string;
|
|
5727
5379
|
property?: {
|
|
5728
5380
|
[x: string]: unknown;
|
|
5729
|
-
artifacts?: {
|
|
5730
|
-
name: string;
|
|
5731
|
-
outputId: string;
|
|
5732
|
-
size: number;
|
|
5733
|
-
type: string;
|
|
5734
|
-
previewUrl?: string;
|
|
5735
|
-
url?: string;
|
|
5736
|
-
}[];
|
|
5737
5381
|
extra?: {
|
|
5738
5382
|
[x: string]: unknown;
|
|
5739
5383
|
cite?: string | {
|
|
@@ -6557,14 +6201,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
6557
6201
|
})[];
|
|
6558
6202
|
property?: {
|
|
6559
6203
|
[x: string]: unknown;
|
|
6560
|
-
artifacts?: {
|
|
6561
|
-
name: string;
|
|
6562
|
-
outputId: string;
|
|
6563
|
-
size: number;
|
|
6564
|
-
type: string;
|
|
6565
|
-
previewUrl?: string;
|
|
6566
|
-
url?: string;
|
|
6567
|
-
}[];
|
|
6568
6204
|
extra?: {
|
|
6569
6205
|
[x: string]: unknown;
|
|
6570
6206
|
cite?: string | {
|
|
@@ -6592,17 +6228,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
6592
6228
|
value: string | ({
|
|
6593
6229
|
activityType: import("..").ActivityType;
|
|
6594
6230
|
content: {
|
|
6595
|
-
artifacts: {
|
|
6596
|
-
name: string;
|
|
6597
|
-
outputId: string;
|
|
6598
|
-
size: number;
|
|
6599
|
-
type: string;
|
|
6600
|
-
previewUrl?: string;
|
|
6601
|
-
url?: string;
|
|
6602
|
-
}[];
|
|
6603
|
-
runId: string;
|
|
6604
|
-
status: "complete" | "empty";
|
|
6605
|
-
} | {
|
|
6606
6231
|
nodes: Record<string, import("..").IFlowAgentNode>;
|
|
6607
6232
|
task_id: string;
|
|
6608
6233
|
task_name: string;
|
|
@@ -6620,31 +6245,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
6620
6245
|
originFileUrl?: string;
|
|
6621
6246
|
url: string;
|
|
6622
6247
|
}[];
|
|
6623
|
-
property?: {
|
|
6624
|
-
[x: string]: unknown;
|
|
6625
|
-
artifacts?: {
|
|
6626
|
-
name: string;
|
|
6627
|
-
outputId: string;
|
|
6628
|
-
size: number;
|
|
6629
|
-
type: string;
|
|
6630
|
-
previewUrl?: string;
|
|
6631
|
-
url?: string;
|
|
6632
|
-
}[];
|
|
6633
|
-
extra?: {
|
|
6634
|
-
[x: string]: unknown;
|
|
6635
|
-
cite?: string | {
|
|
6636
|
-
data: {
|
|
6637
|
-
key: string;
|
|
6638
|
-
value: string;
|
|
6639
|
-
}[];
|
|
6640
|
-
title: string;
|
|
6641
|
-
type: string;
|
|
6642
|
-
};
|
|
6643
|
-
command?: string;
|
|
6644
|
-
context?: Array<Record<string, unknown>>;
|
|
6645
|
-
resources?: Array<Record<string, unknown>>;
|
|
6646
|
-
};
|
|
6647
|
-
};
|
|
6648
6248
|
role: import("..").MessageRole.Activity;
|
|
6649
6249
|
id?: string;
|
|
6650
6250
|
messageId?: string;
|
|
@@ -6655,14 +6255,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
6655
6255
|
content?: string;
|
|
6656
6256
|
property?: {
|
|
6657
6257
|
[x: string]: unknown;
|
|
6658
|
-
artifacts?: {
|
|
6659
|
-
name: string;
|
|
6660
|
-
outputId: string;
|
|
6661
|
-
size: number;
|
|
6662
|
-
type: string;
|
|
6663
|
-
previewUrl?: string;
|
|
6664
|
-
url?: string;
|
|
6665
|
-
}[];
|
|
6666
6258
|
extra?: {
|
|
6667
6259
|
[x: string]: unknown;
|
|
6668
6260
|
cite?: string | {
|
|
@@ -7486,14 +7078,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
7486
7078
|
})[];
|
|
7487
7079
|
property?: {
|
|
7488
7080
|
[x: string]: unknown;
|
|
7489
|
-
artifacts?: {
|
|
7490
|
-
name: string;
|
|
7491
|
-
outputId: string;
|
|
7492
|
-
size: number;
|
|
7493
|
-
type: string;
|
|
7494
|
-
previewUrl?: string;
|
|
7495
|
-
url?: string;
|
|
7496
|
-
}[];
|
|
7497
7081
|
extra?: {
|
|
7498
7082
|
[x: string]: unknown;
|
|
7499
7083
|
cite?: string | {
|
|
@@ -7559,7 +7143,6 @@ export declare const useSession: (mediator: IMediatorModule) => {
|
|
|
7559
7143
|
uploadFile: (sessionCode: string, file: File) => Promise<{
|
|
7560
7144
|
download_url?: string;
|
|
7561
7145
|
}>;
|
|
7562
|
-
getPvFileDownloadUrl: (sessionCode: string, path: string, options?: GetPvFileDownloadUrlOptions) => Promise<import("./type").IPvFileDownloadUrlResult>;
|
|
7563
7146
|
reset: () => void;
|
|
7564
7147
|
};
|
|
7565
7148
|
export type ISessionModule = ReturnType<typeof useSession>;
|
|
@@ -330,10 +330,6 @@ import { computed, ref } from 'vue';
|
|
|
330
330
|
var _mediator_http;
|
|
331
331
|
return (_mediator_http = mediator.http) === null || _mediator_http === void 0 ? void 0 : _mediator_http.session.uploadFile(sessionCode, file);
|
|
332
332
|
};
|
|
333
|
-
const getPvFileDownloadUrl = (sessionCode, path, options)=>{
|
|
334
|
-
var _mediator_http;
|
|
335
|
-
return (_mediator_http = mediator.http) === null || _mediator_http === void 0 ? void 0 : _mediator_http.session.getPvFileDownloadUrl(sessionCode, path, options);
|
|
336
|
-
};
|
|
337
333
|
/**
|
|
338
334
|
* 重置 session 模块状态
|
|
339
335
|
*/ const reset = ()=>{
|
|
@@ -377,7 +373,6 @@ import { computed, ref } from 'vue';
|
|
|
377
373
|
getSessionFeedbackReasons,
|
|
378
374
|
renameSession,
|
|
379
375
|
uploadFile,
|
|
380
|
-
getPvFileDownloadUrl,
|
|
381
376
|
reset
|
|
382
377
|
};
|
|
383
378
|
};
|