@next-bricks/ai-portal 0.39.7 → 0.40.1

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 (100) hide show
  1. package/dist/bricks.json +39 -26
  2. package/dist/chunks/3506.da6e43af.js +2 -0
  3. package/dist/chunks/3506.da6e43af.js.map +1 -0
  4. package/dist/chunks/3554.65e56ba5.js +2 -0
  5. package/dist/chunks/3554.65e56ba5.js.map +1 -0
  6. package/dist/chunks/{382.673901e0.js → 382.d2e3f46f.js} +2 -2
  7. package/dist/chunks/382.d2e3f46f.js.map +1 -0
  8. package/dist/chunks/453.e0c39d75.js +2 -0
  9. package/dist/chunks/453.e0c39d75.js.map +1 -0
  10. package/dist/chunks/{4837.ef36f6e2.js → 4837.e8c87fc9.js} +2 -2
  11. package/dist/chunks/{4837.ef36f6e2.js.map → 4837.e8c87fc9.js.map} +1 -1
  12. package/dist/chunks/6862.32630cc8.js +3 -0
  13. package/dist/chunks/6862.32630cc8.js.map +1 -0
  14. package/dist/chunks/7493.b181babb.js +2 -0
  15. package/dist/chunks/7493.b181babb.js.map +1 -0
  16. package/dist/chunks/7774.505f9191.js +2 -0
  17. package/dist/chunks/7774.505f9191.js.map +1 -0
  18. package/dist/chunks/8176.0dd744df.js +2 -0
  19. package/dist/chunks/8176.0dd744df.js.map +1 -0
  20. package/dist/chunks/9535.ff0f82a1.js +3 -0
  21. package/dist/chunks/9535.ff0f82a1.js.map +1 -0
  22. package/dist/chunks/{7218.13c19b72.js → 9599.ffd509c6.js} +2 -2
  23. package/dist/chunks/{7218.13c19b72.js.map → 9599.ffd509c6.js.map} +1 -1
  24. package/dist/chunks/activity-timeline.a7da73e9.js +2 -0
  25. package/dist/chunks/activity-timeline.a7da73e9.js.map +1 -0
  26. package/dist/chunks/chat-box.6ae456b3.js +2 -0
  27. package/dist/chunks/chat-box.6ae456b3.js.map +1 -0
  28. package/dist/chunks/chat-input.11a041ff.js +3 -0
  29. package/dist/chunks/chat-input.11a041ff.js.map +1 -0
  30. package/dist/chunks/goal-card-list.9866674c.js +3 -0
  31. package/dist/chunks/goal-card-list.9866674c.js.map +1 -0
  32. package/dist/chunks/main.41cfca3c.js +2 -0
  33. package/dist/chunks/{main.a10d6485.js.map → main.41cfca3c.js.map} +1 -1
  34. package/dist/chunks/preview-container.fa54ae91.js +2 -0
  35. package/dist/chunks/preview-container.fa54ae91.js.map +1 -0
  36. package/dist/chunks/project-conversations.d4771579.js +3 -0
  37. package/dist/chunks/project-conversations.d4771579.js.LICENSE.txt +5 -0
  38. package/dist/chunks/project-conversations.d4771579.js.map +1 -0
  39. package/dist/examples.json +20 -14
  40. package/dist/index.624ef877.js +2 -0
  41. package/dist/index.624ef877.js.map +1 -0
  42. package/dist/manifest.json +253 -186
  43. package/dist/types.json +1383 -333
  44. package/dist-types/activity-timeline/i18n.d.ts +25 -0
  45. package/dist-types/activity-timeline/index.d.ts +16 -0
  46. package/dist-types/activity-timeline/index.spec.d.ts +1 -0
  47. package/dist-types/activity-timeline/interfaces.d.ts +85 -0
  48. package/dist-types/bootstrap.d.ts +2 -0
  49. package/dist-types/chat-box/index.d.ts +1 -5
  50. package/dist-types/chat-input/i18n.d.ts +15 -0
  51. package/dist-types/chat-input/index.d.ts +30 -0
  52. package/dist-types/chat-input/index.spec.d.ts +1 -0
  53. package/dist-types/chat-stream/useConversationStream.d.ts +0 -2
  54. package/dist-types/chat-stream/useTaskStream.d.ts +0 -1
  55. package/dist-types/cruise-canvas/NodeJob/NodeJob.d.ts +2 -1
  56. package/dist-types/cruise-canvas/interfaces.d.ts +3 -1
  57. package/dist-types/cruise-canvas/useConversationDetail.d.ts +1 -1
  58. package/dist-types/cruise-canvas/useTaskDetail.d.ts +1 -1
  59. package/dist-types/project-conversations/index.d.ts +7 -1
  60. package/dist-types/shared/ChatBox/ChatBox.d.ts +1 -2
  61. package/dist-types/shared/ChatBox/i18n.d.ts +2 -6
  62. package/dist-types/shared/RequestHumanAction/RequestHumanAction.d.ts +4 -0
  63. package/dist-types/shared/TaskContext.d.ts +1 -1
  64. package/dist-types/shared/bricks.d.ts +2 -0
  65. package/dist-types/shared/interfaces.d.ts +3 -3
  66. package/docs/activity-timeline.md +54 -0
  67. package/docs/chat-input.md +9 -0
  68. package/package.json +2 -2
  69. package/dist/chunks/1967.118ab1ff.js +0 -2
  70. package/dist/chunks/1967.118ab1ff.js.map +0 -1
  71. package/dist/chunks/3554.d27ba6a7.js +0 -2
  72. package/dist/chunks/3554.d27ba6a7.js.map +0 -1
  73. package/dist/chunks/382.673901e0.js.map +0 -1
  74. package/dist/chunks/453.bb828a7c.js +0 -2
  75. package/dist/chunks/453.bb828a7c.js.map +0 -1
  76. package/dist/chunks/4994.58c51a7a.js +0 -2
  77. package/dist/chunks/4994.58c51a7a.js.map +0 -1
  78. package/dist/chunks/6977.3f6d97bc.js +0 -3
  79. package/dist/chunks/6977.3f6d97bc.js.map +0 -1
  80. package/dist/chunks/71.41081144.js +0 -2
  81. package/dist/chunks/71.41081144.js.map +0 -1
  82. package/dist/chunks/7774.4418c30b.js +0 -2
  83. package/dist/chunks/7774.4418c30b.js.map +0 -1
  84. package/dist/chunks/8794.dc43f083.js +0 -3
  85. package/dist/chunks/8794.dc43f083.js.map +0 -1
  86. package/dist/chunks/chat-box.95d5030b.js +0 -2
  87. package/dist/chunks/chat-box.95d5030b.js.map +0 -1
  88. package/dist/chunks/goal-card-list.4fdfa5cb.js +0 -3
  89. package/dist/chunks/goal-card-list.4fdfa5cb.js.map +0 -1
  90. package/dist/chunks/main.a10d6485.js +0 -2
  91. package/dist/chunks/preview-container.260a045a.js +0 -2
  92. package/dist/chunks/preview-container.260a045a.js.map +0 -1
  93. package/dist/chunks/project-conversations.972403a2.js +0 -3
  94. package/dist/chunks/project-conversations.972403a2.js.map +0 -1
  95. package/dist/index.6133ae77.js +0 -2
  96. package/dist/index.6133ae77.js.map +0 -1
  97. /package/dist/chunks/{6977.3f6d97bc.js.LICENSE.txt → 6862.32630cc8.js.LICENSE.txt} +0 -0
  98. /package/dist/chunks/{8794.dc43f083.js.LICENSE.txt → 9535.ff0f82a1.js.LICENSE.txt} +0 -0
  99. /package/dist/chunks/{goal-card-list.4fdfa5cb.js.LICENSE.txt → chat-input.11a041ff.js.LICENSE.txt} +0 -0
  100. /package/dist/chunks/{project-conversations.972403a2.js.LICENSE.txt → goal-card-list.9866674c.js.LICENSE.txt} +0 -0
@@ -0,0 +1,25 @@
1
+ export declare enum K {
2
+ STARTED_A_CHAT = "STARTED_A_CHAT",
3
+ CREATED_THIS_GOAL = "CREATED_THIS_GOAL",
4
+ CHANGED_THE_GOAL_TITLE = "CHANGED_THE_GOAL_TITLE",
5
+ DELETED_THIS_GOAL = "DELETED_THIS_GOAL",
6
+ DECOMPOSED_THIS_GOAL = "DECOMPOSED_THIS_GOAL",
7
+ SET_OWNER = "SET_OWNER",
8
+ REMOVED_GOAL_MEMBERS = "REMOVED_GOAL_MEMBERS",
9
+ ADDED_GOAL_MEMBERS = "ADDED_GOAL_MEMBERS",
10
+ COMMENTED = "COMMENTED",
11
+ COMMA = "COMMA",
12
+ SEMICOLON = "SEMICOLON"
13
+ }
14
+ export declare const NS = "bricks/ai-portal/activity-timeline";
15
+ export declare const locales: {
16
+ en: Locale;
17
+ zh: Locale;
18
+ };
19
+ export declare const t: any;
20
+ type Locale = {
21
+ [k in K]: string;
22
+ } & {
23
+ [k in K as `${k}_plural`]?: string;
24
+ };
25
+ export {};
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { ReactNextElement } from "@next-core/react-element";
3
+ import "@next-core/theme";
4
+ import type { Activity } from "./interfaces.js";
5
+ export interface ActivityTimelineProps {
6
+ list?: Activity[];
7
+ chatUrlTemplate?: string;
8
+ }
9
+ /**
10
+ * 构件 `ai-portal.activity-timeline`
11
+ */
12
+ export declare class ActivityTimeline extends ReactNextElement implements ActivityTimelineProps {
13
+ accessor list: Activity[] | undefined;
14
+ accessor chatUrlTemplate: string | undefined;
15
+ render(): React.JSX.Element;
16
+ }
@@ -0,0 +1 @@
1
+ import "./";
@@ -0,0 +1,85 @@
1
+ export interface ActivityBase {
2
+ user_id: string;
3
+ user_name: string;
4
+ time: number;
5
+ action_type: "create_goal" | "edit_goal" | "delete_goal" | "decompose_goals" | "alter_owner" | "alter_user" | "add_comment" | "start_conversation";
6
+ metadata: unknown;
7
+ }
8
+ export type Activity = ActivityOfCreateGoal | ActivityOfEditGoal | ActivityOfDeleteGoal | ActivityOfDecomposeGoals | ActivityOfAlterOwner | ActivityOfAlterUser | ActivityOfAddComment | ActivityOfStartConversation;
9
+ export interface ActivityOfCreateGoal extends ActivityBase {
10
+ action_type: "create_goal";
11
+ metadata: {
12
+ goal_title: string;
13
+ goal_description?: string;
14
+ };
15
+ }
16
+ export interface ActivityOfEditGoal extends ActivityBase {
17
+ action_type: "edit_goal";
18
+ metadata: {
19
+ before: {
20
+ title: string;
21
+ description: string;
22
+ };
23
+ after: {
24
+ title: string;
25
+ description: string;
26
+ };
27
+ };
28
+ }
29
+ export interface ActivityOfDeleteGoal extends ActivityBase {
30
+ action_type: "delete_goal";
31
+ metadata: {
32
+ goal_title: string;
33
+ goal_description?: string;
34
+ };
35
+ }
36
+ export interface ActivityOfDecomposeGoals extends ActivityBase {
37
+ action_type: "decompose_goals";
38
+ metadata: {
39
+ sub_goals_count: number;
40
+ sub_goals: Array<{
41
+ sub_goal_id: string;
42
+ title: string;
43
+ }>;
44
+ };
45
+ }
46
+ export interface ActivityOfAlterOwner extends ActivityBase {
47
+ action_type: "alter_owner";
48
+ metadata: {
49
+ before: {
50
+ user_id: string;
51
+ user_name: string;
52
+ };
53
+ after: {
54
+ user_id: string;
55
+ user_name: string;
56
+ };
57
+ };
58
+ }
59
+ export interface ActivityOfAlterUser extends ActivityBase {
60
+ action_type: "alter_user";
61
+ metadata: {
62
+ before: Array<{
63
+ user_id: string;
64
+ user_name: string;
65
+ }>;
66
+ after: Array<{
67
+ user_id: string;
68
+ user_name: string;
69
+ }>;
70
+ };
71
+ }
72
+ export interface ActivityOfAddComment extends ActivityBase {
73
+ action_type: "add_comment";
74
+ metadata: {
75
+ comment_content: string;
76
+ };
77
+ }
78
+ export interface ActivityOfStartConversation extends ActivityBase {
79
+ action_type: "start_conversation";
80
+ metadata: {
81
+ conversation_id: string;
82
+ conversation_title: string;
83
+ conversation_description?: string;
84
+ };
85
+ }
@@ -21,3 +21,5 @@ import "./action-buttons/index.js";
21
21
  import "./goal-card-list/index.js";
22
22
  import "./project-conversations/index.js";
23
23
  import "./project-knowledges/index.js";
24
+ import "./activity-timeline/index.js";
25
+ import "./chat-input/index.js";
@@ -7,10 +7,6 @@ export interface ChatBoxProps {
7
7
  placeholder?: string;
8
8
  autoFocus?: boolean;
9
9
  }
10
- export interface Suggestion {
11
- title: string;
12
- content: string;
13
- }
14
10
  export interface ChatBoxRef {
15
11
  setValue: (value: string) => void;
16
12
  getValue: () => string;
@@ -29,7 +25,7 @@ export declare class ChatBox extends ReactNextElement implements ChatBoxProps {
29
25
  render(): React.JSX.Element;
30
26
  }
31
27
  export interface ChatBoxComponentProps extends ChatBoxProps {
32
- onSubmit?: (value: string) => void;
28
+ onSubmit: (value: string) => void;
33
29
  ref?: React.Ref<ChatBoxRef>;
34
30
  }
35
31
  export declare function LegacyChatBoxComponent({ disabled, placeholder, autoFocus, onSubmit }: ChatBoxComponentProps, ref: React.Ref<ChatBoxRef>): React.JSX.Element;
@@ -0,0 +1,15 @@
1
+ export declare enum K {
2
+ TERMINATE_THE_TASK = "TERMINATE_THE_TASK"
3
+ }
4
+ export declare const NS = "bricks/ai-portal/chat-input";
5
+ export declare const locales: {
6
+ en: Locale;
7
+ zh: Locale;
8
+ };
9
+ export declare const t: any;
10
+ type Locale = {
11
+ [k in K]: string;
12
+ } & {
13
+ [k in K as `${k}_plural`]?: string;
14
+ };
15
+ export {};
@@ -0,0 +1,30 @@
1
+ import React from "react";
2
+ import { ReactNextElement } from "@next-core/react-element";
3
+ import "@next-core/theme";
4
+ export interface ChatInputProps {
5
+ placeholder?: string;
6
+ autoFocus?: boolean;
7
+ submitDisabled?: boolean;
8
+ supportsTerminate?: boolean;
9
+ terminating?: boolean;
10
+ }
11
+ export interface ChatInputEvents {
12
+ "message.submit": CustomEvent<string>;
13
+ terminate: Event;
14
+ }
15
+ export interface ChatInputMapEvents {
16
+ onMessageSubmit: "message.submit";
17
+ onTerminate: "terminate";
18
+ }
19
+ /**
20
+ * 构件 `ai-portal.chat-input`
21
+ */
22
+ export declare class ChatInput extends ReactNextElement implements ChatInputProps {
23
+ #private;
24
+ accessor placeholder: string | undefined;
25
+ accessor autoFocus: boolean | undefined;
26
+ accessor submitDisabled: boolean | undefined;
27
+ accessor supportsTerminate: boolean | undefined;
28
+ accessor terminating: boolean | undefined;
29
+ render(): React.JSX.Element;
30
+ }
@@ -0,0 +1 @@
1
+ import "./";
@@ -2,12 +2,10 @@ import type { ChatMessage } from "./interfaces.js";
2
2
  import type { ConversationBaseDetail, Task } from "../shared/interfaces.js";
3
3
  export declare function useConversationStream(conversation: ConversationBaseDetail | null | undefined, tasks: Task[], error: string | null | undefined): {
4
4
  messages: never[];
5
- inputRequiredJobId: null;
6
5
  lastToolCallJobId: null;
7
6
  jobMap?: undefined;
8
7
  } | {
9
8
  messages: ChatMessage[];
10
9
  jobMap: Map<string, import("../shared/interfaces.js").Job>;
11
10
  lastToolCallJobId: string | null;
12
- inputRequiredJobId?: undefined;
13
11
  };
@@ -2,6 +2,5 @@ import type { Job, TaskBaseDetail } from "../cruise-canvas/interfaces.js";
2
2
  import type { ChatMessage } from "./interfaces.js";
3
3
  export declare function useTaskStream(task: TaskBaseDetail | null | undefined, jobs: Job[] | null | undefined): {
4
4
  messages: ChatMessage[];
5
- inputRequiredJobId: string | null;
6
5
  lastToolCallJobId: string | null;
7
6
  };
@@ -3,5 +3,6 @@ export interface NodeJobProps {
3
3
  job: Job;
4
4
  state?: JobState;
5
5
  active?: boolean;
6
+ isLeaf?: boolean;
6
7
  }
7
- export declare function NodeJob({ job, state, active }: NodeJobProps): JSX.Element;
8
+ export declare function NodeJob({ job, state, active, isLeaf, }: NodeJobProps): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import type { JSONSchema } from "./json-schema";
2
- import type { GeneratedView } from "../shared/interfaces";
2
+ import type { GeneratedView, HumanAction } from "../shared/interfaces";
3
3
  export type RangeTuple = [min: number, max: number];
4
4
  export type SizeTuple = [width: number, height: number];
5
5
  export interface NodePosition {
@@ -93,6 +93,8 @@ export interface Job {
93
93
  endTime?: number;
94
94
  generatedView?: GeneratedView;
95
95
  level?: number;
96
+ requestHumanAction?: HumanAction;
97
+ humanAction?: string;
96
98
  }
97
99
  export interface TaskPatch extends Omit<Partial<Task>, "jobs"> {
98
100
  jobs?: JobPatch[];
@@ -3,7 +3,7 @@ export declare function useConversationDetail(conversationId: string, initialReq
3
3
  conversation: import("../shared/interfaces").ConversationBaseDetail | null;
4
4
  tasks: import("../shared/interfaces").Task[];
5
5
  error: string | null;
6
- humanInputRef: React.MutableRefObject<((jobId: string, input: string) => void) | undefined>;
6
+ humanInputRef: React.MutableRefObject<((jobId: string, input: string | null, action?: string) => void) | undefined>;
7
7
  skipToResults: () => void;
8
8
  watchAgain: () => Promise<void>;
9
9
  };
@@ -2,7 +2,7 @@ export declare function useTaskDetail(taskId: string | undefined, replay?: boole
2
2
  task: import("./interfaces").TaskBaseDetail | null;
3
3
  jobs: import("./interfaces").Job[];
4
4
  error: string | null;
5
- humanInputRef: React.MutableRefObject<((jobId: string, input: string) => void) | undefined>;
5
+ humanInputRef: React.MutableRefObject<((jobId: string, input: string | null) => void) | undefined>;
6
6
  resumedRef: React.MutableRefObject<(() => void) | undefined>;
7
7
  skipToResults: () => void;
8
8
  watchAgain: () => Promise<void>;
@@ -6,19 +6,24 @@ export interface ProjectConversationsProps {
6
6
  list?: Conversation[];
7
7
  urlTemplate?: string;
8
8
  actions?: ActionType[];
9
+ goals?: Goal[];
9
10
  }
10
11
  export interface Conversation {
11
12
  conversationId: string;
12
13
  title: string;
13
14
  startTime: number;
14
15
  description?: string;
15
- goal?: string;
16
+ goalInstanceId?: string;
16
17
  username?: string;
17
18
  }
18
19
  export interface ActionClickDetail {
19
20
  action: SimpleActionType;
20
21
  item: Conversation;
21
22
  }
23
+ export interface Goal {
24
+ instanceId: string;
25
+ title: string;
26
+ }
22
27
  /**
23
28
  * 构件 `ai-portal.project-conversations`
24
29
  */
@@ -27,5 +32,6 @@ export declare class ProjectConversations extends ReactNextElement implements Pr
27
32
  accessor list: Conversation[] | undefined;
28
33
  accessor urlTemplate: string | undefined;
29
34
  accessor actions: ActionType[] | undefined;
35
+ accessor goals: Goal[] | undefined;
30
36
  render(): React.JSX.Element;
31
37
  }
@@ -3,6 +3,5 @@ import type { ConversationState } from "../interfaces";
3
3
  export interface ChatBoxProps {
4
4
  state: TaskState | ConversationState | undefined;
5
5
  canChat: boolean;
6
- inputRequiredJobId?: string | null;
7
6
  }
8
- export declare function ChatBox({ state, canChat, inputRequiredJobId, }: ChatBoxProps): JSX.Element;
7
+ export declare function ChatBox({ state, canChat }: ChatBoxProps): JSX.Element;
@@ -1,10 +1,6 @@
1
1
  export declare enum K {
2
- PAUSE_THE_TASK = "PAUSE_THE_TASK",
3
- RESUME_THE_TASK = "RESUME_THE_TASK",
4
- TERMINATE_THE_TASK = "TERMINATE_THE_TASK",
5
- CONFIRM_TO_TERMINATE_THE_TASK_TITLE = "CONFIRM_TO_TERMINATE_THE_TASK_TITLE",
6
- CONFIRM_TO_TERMINATE_THE_TASK_CONTENT = "CONFIRM_TO_TERMINATE_THE_TASK_CONTENT",
7
- SEND_MESSAGE = "SEND_MESSAGE"
2
+ SEND_MESSAGE = "SEND_MESSAGE",
3
+ CONFIRM_TO_TERMINATE_THE_TASK_TITLE = "CONFIRM_TO_TERMINATE_THE_TASK_TITLE"
8
4
  }
9
5
  export declare const NS = "bricks/ai-portal/ChatBox";
10
6
  export declare const locales: {
@@ -0,0 +1,4 @@
1
+ import type { HumanAction } from "../interfaces";
2
+ export declare function RequestHumanAction({ action, }: {
3
+ action: HumanAction;
4
+ }): JSX.Element | null;
@@ -4,7 +4,7 @@ import type { GeneratedView } from "./interfaces";
4
4
  export interface TaskContextValue {
5
5
  workspace?: string;
6
6
  previewUrlTemplate?: string;
7
- humanInput: (jobId: string, input: string) => void;
7
+ humanInput: (jobId: string, input: string | null, action?: string) => void;
8
8
  onShare: () => void;
9
9
  onTerminate: () => void;
10
10
  supports?: Record<string, boolean>;
@@ -7,6 +7,7 @@ import type { Drawer, DrawerProps, DrawerEvents, DrawerMapEvents } from "@next-b
7
7
  import { PopoverProps, Popover } from "@next-bricks/basic/popover";
8
8
  import { EoNextTable, NextTableProps } from "@next-bricks/advanced/next-table";
9
9
  import type { IconButton, IconButtonProps } from "../icon-button";
10
+ import type { ChatInput, ChatInputEvents, ChatInputMapEvents, ChatInputProps } from "../chat-input";
10
11
  export declare const WrappedIcon: import("@next-core/react-element").WrappedBrick<GeneralIcon, GeneralIconProps>;
11
12
  export declare const WrappedButton: import("@next-core/react-element").WrappedBrick<Button, ButtonProps>;
12
13
  export declare const WrappedLink: import("@next-core/react-element").WrappedBrick<Link, LinkProps>;
@@ -16,6 +17,7 @@ export declare const WrappedDrawer: import("@next-core/react-element").WrappedBr
16
17
  keyboard?: boolean;
17
18
  }, DrawerEvents, DrawerMapEvents>;
18
19
  export declare const WrappedIconButton: import("@next-core/react-element").WrappedBrick<IconButton, IconButtonProps>;
20
+ export declare const WrappedChatInput: import("@next-core/react-element").WrappedBrickWithEventsMap<ChatInput, ChatInputProps, ChatInputEvents, ChatInputMapEvents>;
19
21
  export declare const showDialog: (options: import("@next-bricks/basic/data-providers/show-dialog/show-dialog").DialogOptions) => Promise<void>;
20
22
  export declare const copyToClipboard: (text: string) => Promise<void>;
21
23
  export declare const AsyncWrappedTable: React.LazyExoticComponent<import("@next-core/react-element").WrappedBrick<EoNextTable, NextTableProps>>;
@@ -36,9 +36,9 @@ export interface Job {
36
36
  requestHumanAction?: HumanAction;
37
37
  humanAction?: string;
38
38
  }
39
- export type HumanAction = HumanActionConfirmPlan | HumanActionSelect;
40
- export interface HumanActionConfirmPlan {
41
- type: "confirm-plan";
39
+ export type HumanAction = HumanActionConfirm | HumanActionSelect;
40
+ export interface HumanActionConfirm {
41
+ type: "confirm";
42
42
  confirmText: string;
43
43
  }
44
44
  export interface HumanActionSelect {
@@ -0,0 +1,54 @@
1
+ 构件 `ai-portal.activity-timeline`
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ brick: ai-portal.activity-timeline
9
+ properties:
10
+ list:
11
+ - user_id: u001
12
+ user_name: Tom
13
+ action_type: create_goal
14
+ time: 1757853597
15
+ - user_id: u001
16
+ user_name: Tom
17
+ action_type: alter_owner
18
+ time: 1757863597
19
+ metadata:
20
+ after:
21
+ user_name: Lucy
22
+ - user_id: u002
23
+ user_name: Lucy
24
+ action_type: start_conversation
25
+ time: 1757904096
26
+ metadata:
27
+ conversation_id: c001
28
+ conversation_title: 项目规划
29
+ - user_id: u002
30
+ user_name: Lucy
31
+ action_type: decompose_goals
32
+ time: 1757904096
33
+ metadata:
34
+ sub_goals_count: 2
35
+ sub_goals:
36
+ - title: "先计划"
37
+ - title: "再执行"
38
+ - user_id: u002
39
+ user_name: Lucy
40
+ action_type: alter_user
41
+ time: 1757904096
42
+ metadata:
43
+ before:
44
+ - user_name: Jim
45
+ after:
46
+ - user_name: Joy
47
+ - user_name: Green
48
+ - user_id: u001
49
+ user_name: Tom
50
+ action_type: add_comment
51
+ time: 1757904096
52
+ metadata:
53
+ comment_content: Good!
54
+ ```
@@ -0,0 +1,9 @@
1
+ 构件 `ai-portal.chat-input`
2
+
3
+ ## Examples
4
+
5
+ ### Basic
6
+
7
+ ```yaml preview
8
+ brick: ai-portal.chat-input
9
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/ai-portal",
3
- "version": "0.39.7",
3
+ "version": "0.40.1",
4
4
  "homepage": "https://github.com/easyops-cn/next-advanced-bricks/tree/master/bricks/ai-portal",
5
5
  "repository": {
6
6
  "type": "git",
@@ -48,5 +48,5 @@
48
48
  "@next-bricks/presentational": "*",
49
49
  "@next-bricks/vs": "*"
50
50
  },
51
- "gitHead": "d971cee915881ad2e5ffa7d0ee47bd84b1373d79"
51
+ "gitHead": "0e7f234ee24672c2d11decb86d68d408fbf45b4a"
52
52
  }