@next-bricks/ai-portal 0.64.9 → 0.65.0

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.
Files changed (59) hide show
  1. package/dist/bricks.json +16 -20
  2. package/dist/chunks/2742.670f78d2.js +2 -0
  3. package/dist/chunks/2742.670f78d2.js.map +1 -0
  4. package/dist/chunks/3186.5c0ff6ad.js +2 -0
  5. package/dist/chunks/3186.5c0ff6ad.js.map +1 -0
  6. package/dist/chunks/4208.694d7deb.js +2 -0
  7. package/dist/chunks/4208.694d7deb.js.map +1 -0
  8. package/dist/chunks/5452.a5594a29.js +2 -0
  9. package/dist/chunks/5452.a5594a29.js.map +1 -0
  10. package/dist/chunks/7139.4195ba95.js +2 -0
  11. package/dist/chunks/7139.4195ba95.js.map +1 -0
  12. package/dist/chunks/7712.06a445a6.js +2 -0
  13. package/dist/chunks/7712.06a445a6.js.map +1 -0
  14. package/dist/chunks/{chat-panel.abf4cbf4.js → chat-panel.313d3906.js} +2 -2
  15. package/dist/chunks/{chat-panel.abf4cbf4.js.map → chat-panel.313d3906.js.map} +1 -1
  16. package/dist/chunks/{chat-stream.c13cfc3f.js → chat-stream.90aa7647.js} +2 -2
  17. package/dist/chunks/{chat-stream.c13cfc3f.js.map → chat-stream.90aa7647.js.map} +1 -1
  18. package/dist/chunks/{elevo-sidebar.4aa42ab3.js → elevo-sidebar.fba49f67.js} +3 -3
  19. package/dist/chunks/elevo-sidebar.fba49f67.js.map +1 -0
  20. package/dist/chunks/main.97d00f7b.js +2 -0
  21. package/dist/chunks/{main.33e078cf.js.map → main.97d00f7b.js.map} +1 -1
  22. package/dist/examples.json +10 -13
  23. package/dist/images/d5f57ce1.png +0 -0
  24. package/dist/index.01059b82.js +2 -0
  25. package/dist/index.01059b82.js.map +1 -0
  26. package/dist/manifest.json +137 -169
  27. package/dist/types.json +96 -237
  28. package/dist-types/bootstrap.d.ts +0 -1
  29. package/dist-types/chat-stream/NodeChunk/NodeReasoning.d.ts +6 -0
  30. package/dist-types/chat-stream/i18n.d.ts +3 -1
  31. package/dist-types/chat-stream/interfaces.d.ts +6 -1
  32. package/dist-types/shared/ActivityPlan/ActivityPlan.d.ts +11 -0
  33. package/dist-types/shared/{PlanProgress → ActivityPlan}/i18n.d.ts +3 -2
  34. package/dist-types/shared/ChatBox/i18n.d.ts +3 -1
  35. package/dist-types/shared/constants.d.ts +1 -0
  36. package/dist-types/shared/getFlatChunks.d.ts +1 -1
  37. package/dist-types/shared/interfaces.d.ts +1 -1
  38. package/package.json +2 -2
  39. package/dist/chunks/1447.32e6384d.js +0 -2
  40. package/dist/chunks/1447.32e6384d.js.map +0 -1
  41. package/dist/chunks/3186.7220c09a.js +0 -2
  42. package/dist/chunks/3186.7220c09a.js.map +0 -1
  43. package/dist/chunks/4208.54a5a7dd.js +0 -2
  44. package/dist/chunks/4208.54a5a7dd.js.map +0 -1
  45. package/dist/chunks/4820.51e9c918.js +0 -2
  46. package/dist/chunks/4820.51e9c918.js.map +0 -1
  47. package/dist/chunks/778.1a43bbd5.js +0 -2
  48. package/dist/chunks/778.1a43bbd5.js.map +0 -1
  49. package/dist/chunks/9273.760f5efc.js +0 -2
  50. package/dist/chunks/9273.760f5efc.js.map +0 -1
  51. package/dist/chunks/elevo-sidebar.4aa42ab3.js.map +0 -1
  52. package/dist/chunks/gantt-chart.6c8b41fd.js +0 -2
  53. package/dist/chunks/gantt-chart.6c8b41fd.js.map +0 -1
  54. package/dist/chunks/main.33e078cf.js +0 -2
  55. package/dist/index.a6348301.js +0 -2
  56. package/dist/index.a6348301.js.map +0 -1
  57. package/dist-types/shared/PlanProgress/PlanProgress.d.ts +0 -15
  58. package/docs/gantt-chart.md +0 -37
  59. /package/dist/chunks/{elevo-sidebar.4aa42ab3.js.LICENSE.txt → elevo-sidebar.fba49f67.js.LICENSE.txt} +0 -0
package/dist/types.json CHANGED
@@ -2161,20 +2161,20 @@
2161
2161
  "events": [],
2162
2162
  "methods": []
2163
2163
  },
2164
- "ai-portal.sticky-container": {
2164
+ "ai-portal.blank-state": {
2165
2165
  "properties": [
2166
2166
  {
2167
- "name": "variant",
2167
+ "name": "illustration",
2168
2168
  "annotation": {
2169
2169
  "type": "reference",
2170
2170
  "typeName": {
2171
2171
  "type": "identifier",
2172
- "name": "StickyContainerVariant"
2172
+ "name": "BlankStateIllustration"
2173
2173
  }
2174
2174
  }
2175
2175
  },
2176
2176
  {
2177
- "name": "textContent",
2177
+ "name": "description",
2178
2178
  "annotation": {
2179
2179
  "type": "keyword",
2180
2180
  "value": "string"
@@ -2186,37 +2186,45 @@
2186
2186
  "types": [
2187
2187
  {
2188
2188
  "type": "typeAlias",
2189
- "name": "StickyContainerVariant",
2189
+ "name": "BlankStateIllustration",
2190
2190
  "annotation": {
2191
2191
  "type": "union",
2192
2192
  "types": [
2193
2193
  {
2194
2194
  "type": "jsLiteral",
2195
- "value": "default"
2195
+ "value": "goals"
2196
2196
  },
2197
2197
  {
2198
2198
  "type": "jsLiteral",
2199
- "value": "home"
2199
+ "value": "activities"
2200
+ },
2201
+ {
2202
+ "type": "jsLiteral",
2203
+ "value": "collaboration-spaces"
2204
+ },
2205
+ {
2206
+ "type": "jsLiteral",
2207
+ "value": "serviceflows"
2200
2208
  }
2201
2209
  ]
2202
2210
  }
2203
2211
  }
2204
2212
  ]
2205
2213
  },
2206
- "ai-portal.blank-state": {
2214
+ "ai-portal.sticky-container": {
2207
2215
  "properties": [
2208
2216
  {
2209
- "name": "illustration",
2217
+ "name": "variant",
2210
2218
  "annotation": {
2211
2219
  "type": "reference",
2212
2220
  "typeName": {
2213
2221
  "type": "identifier",
2214
- "name": "BlankStateIllustration"
2222
+ "name": "StickyContainerVariant"
2215
2223
  }
2216
2224
  }
2217
2225
  },
2218
2226
  {
2219
- "name": "description",
2227
+ "name": "textContent",
2220
2228
  "annotation": {
2221
2229
  "type": "keyword",
2222
2230
  "value": "string"
@@ -2228,25 +2236,17 @@
2228
2236
  "types": [
2229
2237
  {
2230
2238
  "type": "typeAlias",
2231
- "name": "BlankStateIllustration",
2239
+ "name": "StickyContainerVariant",
2232
2240
  "annotation": {
2233
2241
  "type": "union",
2234
2242
  "types": [
2235
2243
  {
2236
2244
  "type": "jsLiteral",
2237
- "value": "goals"
2238
- },
2239
- {
2240
- "type": "jsLiteral",
2241
- "value": "activities"
2242
- },
2243
- {
2244
- "type": "jsLiteral",
2245
- "value": "collaboration-spaces"
2245
+ "value": "default"
2246
2246
  },
2247
2247
  {
2248
2248
  "type": "jsLiteral",
2249
- "value": "serviceflows"
2249
+ "value": "home"
2250
2250
  }
2251
2251
  ]
2252
2252
  }
@@ -5561,7 +5561,7 @@
5561
5561
  }
5562
5562
  ]
5563
5563
  },
5564
- "ai-portal.notice-dropdown": {
5564
+ "ai-portal.notice-list": {
5565
5565
  "properties": [
5566
5566
  {
5567
5567
  "name": "dataSource",
@@ -5576,16 +5576,6 @@
5576
5576
  }
5577
5577
  }
5578
5578
  },
5579
- {
5580
- "name": "popoverPlacement",
5581
- "annotation": {
5582
- "type": "reference",
5583
- "typeName": {
5584
- "type": "identifier",
5585
- "name": "Placement"
5586
- }
5587
- }
5588
- },
5589
5579
  {
5590
5580
  "name": "emptyText",
5591
5581
  "annotation": {
@@ -5593,13 +5583,6 @@
5593
5583
  "value": "string"
5594
5584
  }
5595
5585
  },
5596
- {
5597
- "name": "notifyCenterUrl",
5598
- "annotation": {
5599
- "type": "keyword",
5600
- "value": "string"
5601
- }
5602
- },
5603
5586
  {
5604
5587
  "name": "urlTemplate",
5605
5588
  "annotation": {
@@ -5618,44 +5601,14 @@
5618
5601
  }
5619
5602
  },
5620
5603
  {
5621
- "name": "dropdownMaxWidth",
5622
- "annotation": {
5623
- "type": "union",
5624
- "types": [
5625
- {
5626
- "type": "keyword",
5627
- "value": "string"
5628
- },
5629
- {
5630
- "type": "keyword",
5631
- "value": "number"
5632
- }
5633
- ]
5634
- }
5635
- },
5636
- {
5637
- "name": "dropdownContentStyle",
5604
+ "name": "selectedIds",
5638
5605
  "annotation": {
5639
- "type": "reference",
5640
- "typeName": {
5641
- "type": "qualifiedName",
5642
- "left": {
5643
- "type": "identifier",
5644
- "name": "React"
5645
- },
5646
- "right": {
5647
- "type": "identifier",
5648
- "name": "CSSProperties"
5649
- }
5606
+ "type": "array",
5607
+ "elementType": {
5608
+ "type": "keyword",
5609
+ "value": "string"
5650
5610
  }
5651
5611
  }
5652
- },
5653
- {
5654
- "name": "hideNotifyCenterButton",
5655
- "annotation": {
5656
- "type": "keyword",
5657
- "value": "boolean"
5658
- }
5659
5612
  }
5660
5613
  ],
5661
5614
  "events": [
@@ -5671,6 +5624,21 @@
5671
5624
  }
5672
5625
  }
5673
5626
  },
5627
+ {
5628
+ "name": "mark.items.read",
5629
+ "detail": {
5630
+ "annotation": {
5631
+ "type": "array",
5632
+ "elementType": {
5633
+ "type": "reference",
5634
+ "typeName": {
5635
+ "type": "identifier",
5636
+ "name": "NoticeItem"
5637
+ }
5638
+ }
5639
+ }
5640
+ }
5641
+ },
5674
5642
  {
5675
5643
  "name": "mark.all.read",
5676
5644
  "detail": {
@@ -5778,7 +5746,7 @@
5778
5746
  }
5779
5747
  ]
5780
5748
  },
5781
- "ai-portal.notice-list": {
5749
+ "ai-portal.notice-dropdown": {
5782
5750
  "properties": [
5783
5751
  {
5784
5752
  "name": "dataSource",
@@ -5793,6 +5761,16 @@
5793
5761
  }
5794
5762
  }
5795
5763
  },
5764
+ {
5765
+ "name": "popoverPlacement",
5766
+ "annotation": {
5767
+ "type": "reference",
5768
+ "typeName": {
5769
+ "type": "identifier",
5770
+ "name": "Placement"
5771
+ }
5772
+ }
5773
+ },
5796
5774
  {
5797
5775
  "name": "emptyText",
5798
5776
  "annotation": {
@@ -5800,6 +5778,13 @@
5800
5778
  "value": "string"
5801
5779
  }
5802
5780
  },
5781
+ {
5782
+ "name": "notifyCenterUrl",
5783
+ "annotation": {
5784
+ "type": "keyword",
5785
+ "value": "string"
5786
+ }
5787
+ },
5803
5788
  {
5804
5789
  "name": "urlTemplate",
5805
5790
  "annotation": {
@@ -5818,14 +5803,44 @@
5818
5803
  }
5819
5804
  },
5820
5805
  {
5821
- "name": "selectedIds",
5806
+ "name": "dropdownMaxWidth",
5822
5807
  "annotation": {
5823
- "type": "array",
5824
- "elementType": {
5825
- "type": "keyword",
5826
- "value": "string"
5808
+ "type": "union",
5809
+ "types": [
5810
+ {
5811
+ "type": "keyword",
5812
+ "value": "string"
5813
+ },
5814
+ {
5815
+ "type": "keyword",
5816
+ "value": "number"
5817
+ }
5818
+ ]
5819
+ }
5820
+ },
5821
+ {
5822
+ "name": "dropdownContentStyle",
5823
+ "annotation": {
5824
+ "type": "reference",
5825
+ "typeName": {
5826
+ "type": "qualifiedName",
5827
+ "left": {
5828
+ "type": "identifier",
5829
+ "name": "React"
5830
+ },
5831
+ "right": {
5832
+ "type": "identifier",
5833
+ "name": "CSSProperties"
5834
+ }
5827
5835
  }
5828
5836
  }
5837
+ },
5838
+ {
5839
+ "name": "hideNotifyCenterButton",
5840
+ "annotation": {
5841
+ "type": "keyword",
5842
+ "value": "boolean"
5843
+ }
5829
5844
  }
5830
5845
  ],
5831
5846
  "events": [
@@ -5841,21 +5856,6 @@
5841
5856
  }
5842
5857
  }
5843
5858
  },
5844
- {
5845
- "name": "mark.items.read",
5846
- "detail": {
5847
- "annotation": {
5848
- "type": "array",
5849
- "elementType": {
5850
- "type": "reference",
5851
- "typeName": {
5852
- "type": "identifier",
5853
- "name": "NoticeItem"
5854
- }
5855
- }
5856
- }
5857
- }
5858
- },
5859
5859
  {
5860
5860
  "name": "mark.all.read",
5861
5861
  "detail": {
@@ -5963,147 +5963,6 @@
5963
5963
  }
5964
5964
  ]
5965
5965
  },
5966
- "ai-portal.gantt-chart": {
5967
- "properties": [
5968
- {
5969
- "name": "chartTitle",
5970
- "annotation": {
5971
- "type": "keyword",
5972
- "value": "string"
5973
- }
5974
- },
5975
- {
5976
- "name": "nodes",
5977
- "annotation": {
5978
- "type": "array",
5979
- "elementType": {
5980
- "type": "reference",
5981
- "typeName": {
5982
- "type": "identifier",
5983
- "name": "GanttNode"
5984
- }
5985
- }
5986
- }
5987
- }
5988
- ],
5989
- "events": [
5990
- {
5991
- "name": "node.click",
5992
- "detail": {
5993
- "annotation": {
5994
- "type": "reference",
5995
- "typeName": {
5996
- "type": "identifier",
5997
- "name": "GanttNode"
5998
- }
5999
- }
6000
- }
6001
- },
6002
- {
6003
- "name": "fullscreen.click",
6004
- "detail": {
6005
- "annotation": {
6006
- "type": "keyword",
6007
- "value": "void"
6008
- }
6009
- }
6010
- }
6011
- ],
6012
- "methods": [],
6013
- "types": [
6014
- {
6015
- "type": "interface",
6016
- "name": "GanttNode",
6017
- "body": [
6018
- {
6019
- "type": "propertySignature",
6020
- "key": {
6021
- "type": "identifier",
6022
- "name": "name"
6023
- },
6024
- "annotation": {
6025
- "type": "keyword",
6026
- "value": "string"
6027
- },
6028
- "computed": false
6029
- },
6030
- {
6031
- "type": "propertySignature",
6032
- "key": {
6033
- "type": "identifier",
6034
- "name": "state"
6035
- },
6036
- "annotation": {
6037
- "type": "union",
6038
- "types": [
6039
- {
6040
- "type": "reference",
6041
- "typeName": {
6042
- "type": "identifier",
6043
- "name": "TaskState"
6044
- }
6045
- },
6046
- {
6047
- "type": "reference",
6048
- "typeName": {
6049
- "type": "identifier",
6050
- "name": "JobState"
6051
- }
6052
- }
6053
- ]
6054
- },
6055
- "optional": true,
6056
- "computed": false
6057
- },
6058
- {
6059
- "type": "propertySignature",
6060
- "key": {
6061
- "type": "identifier",
6062
- "name": "startTime"
6063
- },
6064
- "annotation": {
6065
- "type": "keyword",
6066
- "value": "number"
6067
- },
6068
- "optional": true,
6069
- "computed": false
6070
- },
6071
- {
6072
- "type": "propertySignature",
6073
- "key": {
6074
- "type": "identifier",
6075
- "name": "endTime"
6076
- },
6077
- "annotation": {
6078
- "type": "keyword",
6079
- "value": "number"
6080
- },
6081
- "optional": true,
6082
- "computed": false
6083
- },
6084
- {
6085
- "type": "propertySignature",
6086
- "key": {
6087
- "type": "identifier",
6088
- "name": "children"
6089
- },
6090
- "annotation": {
6091
- "type": "array",
6092
- "elementType": {
6093
- "type": "reference",
6094
- "typeName": {
6095
- "type": "identifier",
6096
- "name": "GanttNode"
6097
- }
6098
- }
6099
- },
6100
- "optional": true,
6101
- "computed": false
6102
- }
6103
- ]
6104
- }
6105
- ]
6106
- },
6107
5966
  "ai-portal.goal-card-list": {
6108
5967
  "properties": [
6109
5968
  {
@@ -32,5 +32,4 @@ import "./data-providers/set-chat-command.js";
32
32
  import "./running-flow/index.js";
33
33
  import "./notice-dropdown/index.js";
34
34
  import "./notice-list/index.js";
35
- import "./gantt-chart/index.js";
36
35
  import "./chat-panel/index.js";
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import type { Job } from "../../shared/interfaces.js";
3
+ export interface NodeReasoningProps {
4
+ job: Job;
5
+ }
6
+ export declare function NodeReasoning({ job }: NodeReasoningProps): React.JSX.Element;
@@ -2,7 +2,9 @@ export declare enum K {
2
2
  SWITCH_TO_CANVAS = "SWITCH_TO_CANVAS",
3
3
  INITIATING_SERVICE_FLOW = "INITIATING_SERVICE_FLOW",
4
4
  STARTING_SERVICE_FLOW_ACTIVITY = "STARTING_SERVICE_FLOW_ACTIVITY",
5
- HIL_TIPS = "HIL_TIPS"
5
+ HIL_TIPS = "HIL_TIPS",
6
+ THINKING = "THINKING",
7
+ SHOW_THINKING = "SHOW_THINKING"
6
8
  }
7
9
  export declare const NS = "bricks/ai-portal/chat-stream";
8
10
  export declare const locales: {
@@ -12,13 +12,18 @@ export interface MessageFromAssistant {
12
12
  role: "assistant";
13
13
  chunks: MessageChunk[];
14
14
  }
15
- export type MessageChunk = MessageChunkOfJob | MessageChunkOfFlow | MessageChunkOfActivity | MessageChunkOfError;
15
+ export type MessageChunk = MessageChunkOfJob | MessageChunkOfPlan | MessageChunkOfFlow | MessageChunkOfActivity | MessageChunkOfError;
16
16
  export interface MessageChunkOfJob {
17
17
  type: "job";
18
18
  job: Job;
19
19
  level: number;
20
20
  fromSkippedSubTask?: boolean;
21
21
  }
22
+ export interface MessageChunkOfPlan {
23
+ type: "plan";
24
+ job: Job;
25
+ task: Task;
26
+ }
22
27
  export interface MessageChunkOfFlow {
23
28
  type: "flow";
24
29
  flow: ServiceFlowRun;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import type { PlanStep, Task } from "../interfaces";
3
+ export interface ActivityPlanProps {
4
+ task: Task;
5
+ }
6
+ export declare function ActivityPlan({ task }: ActivityPlanProps): React.JSX.Element;
7
+ export interface PlanStepNodeProps {
8
+ step: PlanStep;
9
+ level: number;
10
+ isLast: boolean;
11
+ }
@@ -1,7 +1,8 @@
1
1
  export declare enum K {
2
- PLAN_COMPLETED = "PLAN_COMPLETED"
2
+ ACTIVITY_PLAN = "ACTIVITY_PLAN",
3
+ SHOW_PROCESS = "SHOW_PROCESS"
3
4
  }
4
- export declare const NS = "bricks/ai-portal/PlanProgress";
5
+ export declare const NS = "bricks/ai-portal/ActivityPlan";
5
6
  export declare const locales: {
6
7
  en: Locale;
7
8
  zh: Locale;
@@ -1,6 +1,8 @@
1
1
  export declare enum K {
2
2
  SEND_MESSAGE = "SEND_MESSAGE",
3
- CONFIRM_TO_TERMINATE_THE_TASK_TITLE = "CONFIRM_TO_TERMINATE_THE_TASK_TITLE"
3
+ CONFIRM_TO_TERMINATE_THE_TASK_TITLE = "CONFIRM_TO_TERMINATE_THE_TASK_TITLE",
4
+ CONFIRM_TO_TERMINATE_THE_TASK_DESCRIPTION = "CONFIRM_TO_TERMINATE_THE_TASK_DESCRIPTION",
5
+ TERMINATE_THE_TASK = "TERMINATE_THE_TASK"
4
6
  }
5
7
  export declare const NS = "bricks/ai-portal/ChatBox";
6
8
  export declare const locales: {
@@ -11,3 +11,4 @@ export declare const ICON_FEEDBACK: GeneralIconProps;
11
11
  export declare const ICON_EXTERNAL_LINK: GeneralIconProps;
12
12
  export declare const ICON_UP: GeneralIconProps;
13
13
  export declare const ICON_DOWNLOAD: GeneralIconProps;
14
+ export declare const ICON_STOP: GeneralIconProps;
@@ -1,6 +1,6 @@
1
1
  import type { MessageChunk } from "../chat-stream/interfaces";
2
2
  import type { Task, ServiceFlowRun, ActivityWithFlow, ConversationError, Job } from "../shared/interfaces";
3
- export declare function getFlatChunks(tasks: Task[], errors: ConversationError[], flowMap?: Map<string, ServiceFlowRun>, activityMap?: Map<string, ActivityWithFlow>, skipActivitySubTasks?: boolean): {
3
+ export declare function getFlatChunks(tasks: Task[], errors: ConversationError[], flowMap?: Map<string, ServiceFlowRun>, activityMap?: Map<string, ActivityWithFlow>, skipActivitySubTasks?: boolean, enablePlan?: boolean): {
4
4
  chunks: MessageChunk[];
5
5
  jobMap: Map<string, Job>;
6
6
  };
@@ -31,7 +31,7 @@ export type TaskState = "working" | "input-required" | "completed" | "failed";
31
31
  export type JobState = "submitted" | "working" | "input-required" | "completed" | "canceled" | "failed" | "skipped" | "unknown";
32
32
  export interface Job {
33
33
  id: string;
34
- type?: "default" | "subTask" | "serviceFlow";
34
+ type?: "default" | "subTask" | "serviceFlow" | "reasoning";
35
35
  upstream?: string[];
36
36
  parent?: string;
37
37
  instruction?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/ai-portal",
3
- "version": "0.64.9",
3
+ "version": "0.65.0",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
5
5
  "repository": {
6
6
  "type": "git",
@@ -49,5 +49,5 @@
49
49
  "@next-bricks/presentational": "*",
50
50
  "@next-bricks/vs": "*"
51
51
  },
52
- "gitHead": "2d920f2758293b59a685e60030889a239e1f30e5"
52
+ "gitHead": "deab75085b27f4290f3ceec54b4ac33509d60dd1"
53
53
  }