Skip to content

Commit 81cce59

Browse files
lint
1 parent c98c406 commit 81cce59

File tree

9 files changed

+35
-349
lines changed

9 files changed

+35
-349
lines changed

apps/playground-web/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@
2727
"posthog-js": "1.256.1",
2828
"prettier": "3.6.2",
2929
"react": "19.1.0",
30+
"react-children-utilities": "^2.10.0",
3031
"react-dom": "19.1.0",
3132
"react-hook-form": "7.55.0",
33+
"react-markdown": "10.1.0",
3234
"react-pick-color": "^2.0.0",
3335
"server-only": "^0.0.1",
3436
"shiki": "1.27.0",

apps/playground-web/src/app/ai/api/chat.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export type NebulaContext = {
99
sessionId: string | null;
1010
};
1111

12-
export type NebulaSwapData = {
12+
type NebulaSwapData = {
1313
action: string;
1414
transaction: {
1515
chainId: number;
@@ -43,7 +43,6 @@ export type NebulaSwapData = {
4343

4444
export async function promptNebula(params: {
4545
message: NebulaUserMessage;
46-
authToken: string;
4746
handleStream: (res: ChatStreamedResponse) => void;
4847
abortController: AbortController;
4948
context: undefined | NebulaContext;
@@ -65,9 +64,6 @@ export async function promptNebula(params: {
6564
body: JSON.stringify(body),
6665
headers: {
6766
"x-client-id": process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID!,
68-
// FIXME REMOVE
69-
"x-secret-key":
70-
"7NFrTzBN9Y2Eca6Rl60uxT3Dwew4D9YaYHjoD_3Y2GDvkaejLFiodFDcuzGJqu0mc8PVCAi9M4Y3j6Ql_ZVRyQ",
7167
"Content-Type": "application/json",
7268
},
7369
method: "POST",

apps/playground-web/src/app/ai/api/fetchWithAuthToken.ts

Lines changed: 0 additions & 50 deletions
This file was deleted.

apps/playground-web/src/app/ai/api/session.ts

Lines changed: 0 additions & 121 deletions
This file was deleted.

apps/playground-web/src/app/ai/api/types.ts

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type NebulaUserMessageContentItem =
1919
chain_id: number;
2020
};
2121

22-
export type NebulaUserMessageContent = NebulaUserMessageContentItem[];
22+
type NebulaUserMessageContent = NebulaUserMessageContentItem[];
2323

2424
export type NebulaUserMessage = {
2525
role: "user";
@@ -37,41 +37,6 @@ export type NebulaSessionHistoryMessage =
3737
content: NebulaUserMessageContent | string;
3838
};
3939

40-
export type SessionInfo = {
41-
id: string;
42-
account_id: string;
43-
modal_name: string;
44-
archive_at: string | null;
45-
can_execute: boolean;
46-
created_at: string;
47-
deleted_at: string | null;
48-
history: Array<NebulaSessionHistoryMessage> | null;
49-
updated_at: string;
50-
archived_at: string | null;
51-
title: string | null;
52-
is_public: boolean | null;
53-
context: SessionContextFilter | null;
54-
};
55-
56-
export type UpdatedSessionInfo = {
57-
title: string;
58-
modal_name: string;
59-
account_id: string;
60-
context: SessionContextFilter | null;
61-
};
62-
63-
export type DeletedSessionInfo = {
64-
id: string;
65-
deleted_at: string;
66-
};
67-
68-
export type TruncatedSessionInfo = {
69-
created_at: string;
70-
id: string;
71-
updated_at: string;
72-
title: string | null;
73-
};
74-
7540
export type NebulaTxData = {
7641
chainId: number;
7742
data: `0x${string}`;

apps/playground-web/src/app/ai/chat/page.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,10 @@ import { THIRDWEB_CLIENT } from "../../../lib/client";
33
import { ChatPageContent } from "../components/ChatPageContent";
44

55
export default function ChatPage() {
6-
// Mock auth data - in a real app, you'd get this from your auth system
7-
const mockAuthToken = "mock-auth-token";
8-
const mockAccountAddress = "0x1234567890123456789012345678901234567890";
9-
106
return (
117
<div className="min-h-screen">
128
<ThirdwebProvider>
13-
<ChatPageContent
14-
accountAddress={mockAccountAddress}
15-
authToken={mockAuthToken}
16-
client={THIRDWEB_CLIENT}
17-
initialParams={undefined}
18-
session={undefined}
19-
type="new-chat"
20-
/>
9+
<ChatPageContent client={THIRDWEB_CLIENT} type="new-chat" />
2110
</ThirdwebProvider>
2211
</div>
2312
);

0 commit comments

Comments
 (0)