@fencyai/react 0.1.111 → 0.1.112
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/{chat → agent-task}/AgentTaskProgress.d.ts +2 -3
- package/dist/agent-task/AgentTaskProgressSimple.d.ts +5 -0
- package/dist/agent-task/AgentTaskProgressVerbose.d.ts +9 -0
- package/dist/agent-task/ProgressViewItem.d.ts +9 -0
- package/dist/agent-task/data-types/GenericAgentTaskExecution.d.ts +11 -0
- package/dist/agent-task/data-types/GenericAgentTaskFinalResponse.d.ts +13 -0
- package/dist/agent-task/data-types/GenericAgentTaskReasoning.d.ts +11 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.d.ts +7 -6
- package/dist/index.js +670 -746
- package/dist/types/{StreamingAgentTask.d.ts → AgentTask.d.ts} +6 -4
- package/dist/types/{StreamingAgentTaskData.d.ts → AgentTaskData.d.ts} +1 -1
- package/dist/types/AgentTaskEventData.d.ts +11 -0
- package/dist/types/StreamData.d.ts +2 -4
- package/dist/types/UseAgentTasks.d.ts +3 -3
- package/dist/types/index.d.ts +2 -2
- package/package.json +4 -4
- package/dist/chat/ChatResponse.d.ts +0 -22
- package/dist/chat/ChatResponseComplete.d.ts +0 -10
- package/dist/chat/ChatResponseLoading.d.ts +0 -8
- package/dist/chat/ChatResponseThinking.d.ts +0 -8
- package/dist/chat/EditableContent.d.ts +0 -11
- package/dist/chat/GhostWrapper.d.ts +0 -10
- /package/dist/{chat → agent-task}/ShimmeringText.d.ts +0 -0
- /package/dist/{chat → agent-task}/hooks/useContentEditable.d.ts +0 -0
- /package/dist/{chat → agent-task}/hooks/useMentionParser.d.ts +0 -0
- /package/dist/{chat → agent-task}/hooks/useMentionRenderer.d.ts +0 -0
- /package/dist/{chat → agent-task}/hooks/useMentionState.d.ts +0 -0
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { ApiError } from '@fencyai/js';
|
|
2
2
|
import { CreateAgentTaskParams } from './CreateAgentTaskParams';
|
|
3
3
|
import { AgentTaskProgressItemUpdated } from './StreamData';
|
|
4
|
-
|
|
5
|
-
export interface StreamingAgentTask {
|
|
4
|
+
export interface AgentTask {
|
|
6
5
|
streamId: string;
|
|
7
6
|
triggeredAt: string;
|
|
8
|
-
data: StreamingAgentTaskData | null;
|
|
9
7
|
error: ApiError | null;
|
|
10
|
-
|
|
8
|
+
params: CreateAgentTaskParams;
|
|
11
9
|
progressItems: AgentTaskProgressItemUpdated[];
|
|
12
10
|
loading: boolean;
|
|
13
11
|
doneStreaming: boolean;
|
|
12
|
+
confirmedData: {
|
|
13
|
+
taskId: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
} | null;
|
|
14
16
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AgentTaskEventData } from './AgentTaskEventData';
|
|
2
2
|
export type NewChatCompletionStreamChunk = {
|
|
3
3
|
type: 'NewChatCompletionStreamChunk';
|
|
4
4
|
streamId: string;
|
|
@@ -61,10 +61,8 @@ export type AgentTaskProgressItemUpdated = {
|
|
|
61
61
|
streamId: string;
|
|
62
62
|
agentTaskId: string;
|
|
63
63
|
progressItemId: string;
|
|
64
|
-
title: string;
|
|
65
64
|
timestamp: string;
|
|
66
65
|
createdAt: string;
|
|
67
|
-
|
|
68
|
-
progressItemType: AgentTaskProgressItemType;
|
|
66
|
+
data: AgentTaskEventData;
|
|
69
67
|
};
|
|
70
68
|
export type StreamData = NewChatCompletionStreamChunk | ChatCompletionStreamCompleted | StreamTimeout | StreamNotFound | FileUploadCompleted | FileTextContentReady | WebsiteHtmlContentReady | WebsiteTextContentReady | FileSearchIndexReady | AgentTaskProgressItemUpdated;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CreateAgentTaskParams } from './CreateAgentTaskParams';
|
|
2
2
|
import { CreateAgentTaskResponse } from './CreateAgentTaskResponse';
|
|
3
|
-
import {
|
|
3
|
+
import { AgentTask } from './AgentTask';
|
|
4
4
|
export interface UseAgentTasks {
|
|
5
|
-
agentTasks:
|
|
5
|
+
agentTasks: AgentTask[];
|
|
6
6
|
createAgentTask: (params: CreateAgentTaskParams) => Promise<CreateAgentTaskResponse>;
|
|
7
|
-
latest?:
|
|
7
|
+
latest?: AgentTask;
|
|
8
8
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export * from './UseStream';
|
|
|
6
6
|
export * from './UseStreamProps';
|
|
7
7
|
export * from './CreateAgentTaskParams';
|
|
8
8
|
export * from './CreateAgentTaskResponse';
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
9
|
+
export * from './AgentTask';
|
|
10
|
+
export * from './AgentTaskData';
|
|
11
11
|
export * from './UseAgentTasks';
|
|
12
12
|
export * from './UseAgentTasksProps';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fencyai/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.112",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "staklau <steinaageklaussen@gmail.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@microsoft/fetch-event-source": "^2.0.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@fencyai/js": "^0.1.
|
|
38
|
+
"@fencyai/js": "^0.1.112",
|
|
39
39
|
"@testing-library/react": "^16.3.2",
|
|
40
40
|
"@types/jest": "^29.5.11",
|
|
41
41
|
"@types/node": "^20.10.5",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@emotion/is-prop-valid": "^1.3.0",
|
|
55
|
-
"@fencyai/js": "^0.1.
|
|
55
|
+
"@fencyai/js": "^0.1.112",
|
|
56
56
|
"@radix-ui/react-popover": "^1.1.15",
|
|
57
57
|
"motion": "^11.15.0",
|
|
58
58
|
"react": ">=16.8.0",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"optional": false
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "ec810f984fd9010de0c81701cfb60547ab7584b8"
|
|
71
71
|
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AgentTaskProgressItemType } from '@fencyai/js';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
export type ChatResponseState = 'thinking' | 'loading' | 'complete';
|
|
4
|
-
export type ChatResponseMessage = {
|
|
5
|
-
id: string;
|
|
6
|
-
title: string;
|
|
7
|
-
markdown: string;
|
|
8
|
-
state: AgentTaskProgressItemType;
|
|
9
|
-
completed: boolean;
|
|
10
|
-
startedAt?: string;
|
|
11
|
-
completedAt?: string;
|
|
12
|
-
durationSeconds?: number;
|
|
13
|
-
};
|
|
14
|
-
export interface ChatResponseProps {
|
|
15
|
-
message: ChatResponseMessage;
|
|
16
|
-
isLatest?: boolean;
|
|
17
|
-
streamToken: string;
|
|
18
|
-
fetchClientToken: () => Promise<{
|
|
19
|
-
clientToken: string;
|
|
20
|
-
}>;
|
|
21
|
-
}
|
|
22
|
-
export declare const ChatResponse: React.FC<ChatResponseProps>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface ChatResponseCompleteProps {
|
|
3
|
-
markdown: string;
|
|
4
|
-
streamToken: string;
|
|
5
|
-
fetchClientToken: () => Promise<{
|
|
6
|
-
clientToken: string;
|
|
7
|
-
}>;
|
|
8
|
-
durationSeconds?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const ChatResponseComplete: React.FC<ChatResponseCompleteProps>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface EditableContentProps {
|
|
3
|
-
editableRef: React.RefObject<HTMLDivElement>;
|
|
4
|
-
onInput: () => void;
|
|
5
|
-
onKeyDown: (e: React.KeyboardEvent<HTMLDivElement>) => void;
|
|
6
|
-
isComposingRef: React.MutableRefObject<boolean>;
|
|
7
|
-
handleInput: () => void;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const EditableContent: React.FC<EditableContentProps>;
|
|
11
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface GhostWrapperProps {
|
|
3
|
-
ghostRef: React.RefObject<HTMLDivElement>;
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
value: string;
|
|
6
|
-
atPosition: number;
|
|
7
|
-
caretPos: number;
|
|
8
|
-
}
|
|
9
|
-
export declare const GhostWrapper: React.FC<GhostWrapperProps>;
|
|
10
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|