@next-bricks/ai-portal 0.65.0 → 0.65.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.
- package/dist/bricks.json +32 -32
- package/dist/chunks/{2742.670f78d2.js → 2742.19b8cbd2.js} +2 -2
- package/dist/chunks/2742.19b8cbd2.js.map +1 -0
- package/dist/chunks/4208.9304234a.js +2 -0
- package/dist/chunks/4208.9304234a.js.map +1 -0
- package/dist/chunks/7139.80d52ac3.js +2 -0
- package/dist/chunks/7139.80d52ac3.js.map +1 -0
- package/dist/chunks/7159.2fdda135.js +2 -0
- package/dist/chunks/7159.2fdda135.js.map +1 -0
- package/dist/chunks/chat-panel.ca430fc7.js +2 -0
- package/dist/chunks/chat-panel.ca430fc7.js.map +1 -0
- package/dist/chunks/{main.97d00f7b.js → main.d8edfa91.js} +2 -2
- package/dist/chunks/{main.97d00f7b.js.map → main.d8edfa91.js.map} +1 -1
- package/dist/examples.json +18 -18
- package/dist/index.90d9f9da.js +2 -0
- package/dist/{index.01059b82.js.map → index.90d9f9da.js.map} +1 -1
- package/dist/manifest.json +229 -229
- package/dist/types.json +997 -997
- package/dist-types/chat-stream/useConversationStream.d.ts +1 -0
- package/dist-types/shared/ActivityPlan/getStateIcon.d.ts +6 -0
- package/dist-types/shared/TaskContext.d.ts +4 -1
- package/dist-types/shared/getFlatChunks.d.ts +3 -1
- package/dist-types/shared/getOrderedNodes.d.ts +1 -4
- package/dist-types/shared/getTaskTree.d.ts +1 -1
- package/dist-types/shared/interfaces.d.ts +1 -1
- package/package.json +2 -2
- package/dist/chunks/2742.670f78d2.js.map +0 -1
- package/dist/chunks/4208.694d7deb.js +0 -2
- package/dist/chunks/4208.694d7deb.js.map +0 -1
- package/dist/chunks/7139.4195ba95.js +0 -2
- package/dist/chunks/7139.4195ba95.js.map +0 -1
- package/dist/chunks/7712.06a445a6.js +0 -2
- package/dist/chunks/7712.06a445a6.js.map +0 -1
- package/dist/chunks/chat-panel.313d3906.js +0 -2
- package/dist/chunks/chat-panel.313d3906.js.map +0 -1
- package/dist/index.01059b82.js +0 -2
|
@@ -3,6 +3,7 @@ import type { ActiveDetail, ActivityWithFlow, ConversationError, ConversationSta
|
|
|
3
3
|
export declare function useConversationStream(conversationAvailable: boolean, state: ConversationState | TaskState | undefined, tasks: Task[], errors: ConversationError[], flowMap?: Map<string, ServiceFlowRun>, activityMap?: Map<string, ActivityWithFlow>, options?: {
|
|
4
4
|
showHumanActions?: boolean;
|
|
5
5
|
skipActivitySubTasks?: boolean;
|
|
6
|
+
rootTaskId?: string;
|
|
6
7
|
}): {
|
|
7
8
|
messages: never[];
|
|
8
9
|
lastDetail: null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { GeneralIconProps } from "@next-bricks/icons/general-icon";
|
|
2
|
+
import type { ConversationState, JobState, TaskState } from "../interfaces";
|
|
3
|
+
export declare function getStateIcon(state: TaskState | JobState | ConversationState | undefined, isFirstLevel?: boolean): {
|
|
4
|
+
icon: GeneralIconProps;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { type Dispatch } from "react";
|
|
2
2
|
import type { FeedbackDetail } from "../cruise-canvas/interfaces";
|
|
3
|
-
import type { ActiveDetail, ActiveImages, ConversationError, ConversationState, ExampleProject, ExtraChatPayload, FileInfo, GeneratedView, Job, ShowCaseType, Task, UploadOptions } from "./interfaces";
|
|
3
|
+
import type { ActiveDetail, ActiveImages, ActivityWithFlow, ConversationError, ConversationState, ExampleProject, ExtraChatPayload, FileInfo, GeneratedView, Job, ServiceFlowRun, ShowCaseType, Task, UploadOptions } from "./interfaces";
|
|
4
4
|
import type { AIEmployee, Command } from "./ChatCompletions/useChatCompletions";
|
|
5
5
|
export interface TaskContextValue {
|
|
6
6
|
conversationId?: string;
|
|
7
7
|
conversationState?: ConversationState;
|
|
8
8
|
tasks: Task[];
|
|
9
9
|
errors: ConversationError[];
|
|
10
|
+
jobMap?: Map<string, Job>;
|
|
11
|
+
flowMap?: Map<string, ServiceFlowRun>;
|
|
12
|
+
activityMap?: Map<string, ActivityWithFlow>;
|
|
10
13
|
workspace?: string;
|
|
11
14
|
previewUrlTemplate?: string;
|
|
12
15
|
replay?: boolean;
|
|
@@ -1,6 +1,8 @@
|
|
|
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, enablePlan?: boolean): {
|
|
3
|
+
export declare function getFlatChunks(tasks: Task[], errors: ConversationError[], flowMap?: Map<string, ServiceFlowRun>, activityMap?: Map<string, ActivityWithFlow>, skipActivitySubTasks?: boolean, enablePlan?: boolean, rootTaskId?: string): {
|
|
4
|
+
/** Message chunks, excluding those from skipped subtasks */
|
|
4
5
|
chunks: MessageChunk[];
|
|
6
|
+
/** All jobs including those nested within subtasks */
|
|
5
7
|
jobMap: Map<string, Job>;
|
|
6
8
|
};
|
|
@@ -4,11 +4,8 @@ export interface GeneralNode {
|
|
|
4
4
|
parent?: string;
|
|
5
5
|
hidden?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare function getOrderedNodes<T extends GeneralNode>(nodes: T[]): {
|
|
7
|
+
export declare function getOrderedNodes<T extends GeneralNode>(nodes: T[], rootId?: string): {
|
|
8
8
|
list: string[];
|
|
9
9
|
map: Map<string, T>;
|
|
10
|
-
roots: string[];
|
|
11
|
-
leaves: string[];
|
|
12
10
|
childMap: Map<string, string>;
|
|
13
|
-
downstreamMap: Map<string, string[]>;
|
|
14
11
|
};
|
|
@@ -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" | "reasoning";
|
|
34
|
+
type?: "default" | "subTask" | "serviceFlow" | "reasoning" | "askUser";
|
|
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.65.
|
|
3
|
+
"version": "0.65.1",
|
|
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": "
|
|
52
|
+
"gitHead": "43934dd0c5822b5f43a54e7ba5a16183127375e1"
|
|
53
53
|
}
|