Skip to content

The Open Standard for Generative UI

frontend-sdk to js

abhishek1511a9d3fb6f
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 4f9ef73ae..cfad8c7e1 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
- working-directory: frontend-sdk
+ working-directory: js
steps:
- uses: actions/checkout@v4
with:
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index bc90d2b81..ab1f1be0e 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -32,7 +32,7 @@ jobs:
- name: Install dependencies of sdk
run: pnpm install --frozen-lockfile
- working-directory: frontend-sdk
+ working-directory: js
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build website
diff --git a/README.md b/README.md
index 5194bda81..456a94579 100644
--- a/README.md
+++ b/README.md
@@ -46,5 +46,5 @@ export default function App() {
## Packages
-- [react-core](./frontend-sdk/packages/react-core): Core framework and hooks for managing state and agents
-- [react-ui](./frontend-sdk/packages/react-ui): Modular UI components for use with Crayon
+- [react-core](./js/packages/react-core): Core framework and hooks for managing state and agents
+- [react-ui](./js/packages/react-ui): Modular UI components for use with Crayon
diff --git a/docs/docs/reference/js/react-core/functions/ChatProvider.md b/docs/docs/reference/js/react-core/functions/ChatProvider.md
index cb9046015..d9a075b26 100644
--- a/docs/docs/reference/js/react-core/functions/ChatProvider.md
+++ b/docs/docs/reference/js/react-core/functions/ChatProvider.md
@@ -57,4 +57,4 @@ It serves as the top-level provider for thread and thread list management functi
## Defined in
-[packages/react-core/src/ChatProvider.tsx:30](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/ChatProvider.tsx#L30)
+[packages/react-core/src/ChatProvider.tsx:30](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/ChatProvider.tsx#L30)
diff --git a/docs/docs/reference/js/react-core/functions/useThreadActions.md b/docs/docs/reference/js/react-core/functions/useThreadActions.md
index 24798e27c..58f180151 100644
--- a/docs/docs/reference/js/react-core/functions/useThreadActions.md
+++ b/docs/docs/reference/js/react-core/functions/useThreadActions.md
@@ -12,4 +12,4 @@ useThreadActions
## Defined in
-[packages/react-core/src/hooks/useThreadActions.ts:11](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/hooks/useThreadActions.ts#L11)
+[packages/react-core/src/hooks/useThreadActions.ts:11](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/hooks/useThreadActions.ts#L11)
diff --git a/docs/docs/reference/js/react-core/functions/useThreadListActions.md b/docs/docs/reference/js/react-core/functions/useThreadListActions.md
index 68fe45b70..ef70f633d 100644
--- a/docs/docs/reference/js/react-core/functions/useThreadListActions.md
+++ b/docs/docs/reference/js/react-core/functions/useThreadListActions.md
@@ -12,4 +12,4 @@ useThreadListActions
## Defined in
-[packages/react-core/src/hooks/useThreadListActions.ts:11](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/hooks/useThreadListActions.ts#L11)
+[packages/react-core/src/hooks/useThreadListActions.ts:11](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/hooks/useThreadListActions.ts#L11)
diff --git a/docs/docs/reference/js/react-core/functions/useThreadListManager.md b/docs/docs/reference/js/react-core/functions/useThreadListManager.md
index c2d619271..f5f78d17e 100644
--- a/docs/docs/reference/js/react-core/functions/useThreadListManager.md
+++ b/docs/docs/reference/js/react-core/functions/useThreadListManager.md
@@ -33,4 +33,4 @@ function useThreadListManager(props: Props): ThreadListManager
## Defined in
-[packages/react-core/src/useThreadListManager.ts:16](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/useThreadListManager.ts#L16)
+[packages/react-core/src/useThreadListManager.ts:16](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/useThreadListManager.ts#L16)
diff --git a/docs/docs/reference/js/react-core/functions/useThreadListState.md b/docs/docs/reference/js/react-core/functions/useThreadListState.md
index fe47fa004..0f0112366 100644
--- a/docs/docs/reference/js/react-core/functions/useThreadListState.md
+++ b/docs/docs/reference/js/react-core/functions/useThreadListState.md
@@ -12,4 +12,4 @@ useThreadListState
## Defined in
-[packages/react-core/src/hooks/useThreadListState.ts:11](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/hooks/useThreadListState.ts#L11)
+[packages/react-core/src/hooks/useThreadListState.ts:11](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/hooks/useThreadListState.ts#L11)
diff --git a/docs/docs/reference/js/react-core/functions/useThreadManager.md b/docs/docs/reference/js/react-core/functions/useThreadManager.md
index a9172c488..2248c4929 100644
--- a/docs/docs/reference/js/react-core/functions/useThreadManager.md
+++ b/docs/docs/reference/js/react-core/functions/useThreadManager.md
@@ -33,4 +33,4 @@ function useThreadManager(props: Props): ThreadManager
## Defined in
-[packages/react-core/src/useThreadManager.ts:16](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/useThreadManager.ts#L16)
+[packages/react-core/src/useThreadManager.ts:16](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/useThreadManager.ts#L16)
diff --git a/docs/docs/reference/js/react-core/functions/useThreadManagerSelector.md b/docs/docs/reference/js/react-core/functions/useThreadManagerSelector.md
index 890eca3fb..c2cd151de 100644
--- a/docs/docs/reference/js/react-core/functions/useThreadManagerSelector.md
+++ b/docs/docs/reference/js/react-core/functions/useThreadManagerSelector.md
@@ -56,4 +56,4 @@ useThreadManager
## Defined in
-[packages/react-core/src/hooks/useThreadManagerSelector.ts:13](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/hooks/useThreadManagerSelector.ts#L13)
+[packages/react-core/src/hooks/useThreadManagerSelector.ts:13](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/hooks/useThreadManagerSelector.ts#L13)
diff --git a/docs/docs/reference/js/react-core/functions/useThreadState.md b/docs/docs/reference/js/react-core/functions/useThreadState.md
index 463279785..6b582b634 100644
--- a/docs/docs/reference/js/react-core/functions/useThreadState.md
+++ b/docs/docs/reference/js/react-core/functions/useThreadState.md
@@ -12,4 +12,4 @@ useThreadState
## Defined in
-[packages/react-core/src/hooks/useThreadState.ts:11](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/hooks/useThreadState.ts#L11)
+[packages/react-core/src/hooks/useThreadState.ts:11](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/hooks/useThreadState.ts#L11)
diff --git a/docs/docs/reference/js/react-core/interfaces/ResponseTemplate.md b/docs/docs/reference/js/react-core/interfaces/ResponseTemplate.md
index 19124ea4d..1673c46d8 100644
--- a/docs/docs/reference/js/react-core/interfaces/ResponseTemplate.md
+++ b/docs/docs/reference/js/react-core/interfaces/ResponseTemplate.md
@@ -2,6 +2,6 @@
| Property | Type | Defined in |
| ------ | ------ | ------ |
-| `Component` | `ComponentType`\<\{\}\> | [packages/react-core/src/types/responseTemplate.ts:3](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/responseTemplate.ts#L3) |
-| `name` | `string` | [packages/react-core/src/types/responseTemplate.ts:2](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/responseTemplate.ts#L2) |
-| `renderWithoutMessageContainer?` | `boolean` | [packages/react-core/src/types/responseTemplate.ts:4](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/responseTemplate.ts#L4) |
+| `Component` | `ComponentType`\<\{\}\> | [packages/react-core/src/types/responseTemplate.ts:3](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/responseTemplate.ts#L3) |
+| `name` | `string` | [packages/react-core/src/types/responseTemplate.ts:2](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/responseTemplate.ts#L2) |
+| `renderWithoutMessageContainer?` | `boolean` | [packages/react-core/src/types/responseTemplate.ts:4](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/responseTemplate.ts#L4) |
diff --git a/docs/docs/reference/js/react-core/type-aliases/AssistantMessage.md b/docs/docs/reference/js/react-core/type-aliases/AssistantMessage.md
index 6a44f3fe0..d474997a0 100644
--- a/docs/docs/reference/js/react-core/type-aliases/AssistantMessage.md
+++ b/docs/docs/reference/js/react-core/type-aliases/AssistantMessage.md
@@ -38,7 +38,7 @@ type AssistantMessage = common & {
</td>
<td>
-[packages/react-core/src/types/message.ts:25](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/message.ts#L25)
+[packages/react-core/src/types/message.ts:25](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/message.ts#L25)
</td>
</tr>
@@ -55,7 +55,7 @@ type AssistantMessage = common & {
</td>
<td>
-[packages/react-core/src/types/message.ts:28](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/message.ts#L28)
+[packages/react-core/src/types/message.ts:28](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/message.ts#L28)
</td>
</tr>
@@ -75,7 +75,7 @@ type AssistantMessage = common & {
</td>
<td>
-[packages/react-core/src/types/message.ts:29](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/message.ts#L29)
+[packages/react-core/src/types/message.ts:29](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/message.ts#L29)
</td>
</tr>
@@ -92,7 +92,7 @@ type AssistantMessage = common & {
</td>
<td>
-[packages/react-core/src/types/message.ts:24](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/message.ts#L24)
+[packages/react-core/src/types/message.ts:24](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/message.ts#L24)
</td>
</tr>
@@ -101,4 +101,4 @@ type AssistantMessage = common & {
## Defined in
-[packages/react-core/src/types/message.ts:23](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/message.ts#L23)
+[packages/react-core/src/types/message.ts:23](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/message.ts#L23)
diff --git a/docs/docs/reference/js/react-core/type-aliases/ChatManager.md b/docs/docs/reference/js/react-core/type-aliases/ChatManager.md
index 7214b9615..826f9d17e 100644
--- a/docs/docs/reference/js/react-core/type-aliases/ChatManager.md
+++ b/docs/docs/reference/js/react-core/type-aliases/ChatManager.md
@@ -31,7 +31,7 @@ Main chat manager combining thread and thread list management
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:81](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L81)
+[packages/react-core/src/types/chatManager.ts:81](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L81)
</td>
</tr>
@@ -48,7 +48,7 @@ Main chat manager combining thread and thread list management
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:82](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L82)
+[packages/react-core/src/types/chatManager.ts:82](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L82)
</td>
</tr>
@@ -57,4 +57,4 @@ Main chat manager combining thread and thread list management
## Defined in
-[packages/react-core/src/types/chatManager.ts:80](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L80)
+[packages/react-core/src/types/chatManager.ts:80](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L80)
diff --git a/docs/docs/reference/js/react-core/type-aliases/CreateMessage.md b/docs/docs/reference/js/react-core/type-aliases/CreateMessage.md
index c30251a64..a696b216a 100644
--- a/docs/docs/reference/js/react-core/type-aliases/CreateMessage.md
+++ b/docs/docs/reference/js/react-core/type-aliases/CreateMessage.md
@@ -6,4 +6,4 @@ Represents a message being created, with an optional ID
## Defined in
-[packages/react-core/src/types/message.ts:41](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/message.ts#L41)
+[packages/react-core/src/types/message.ts:41](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/message.ts#L41)
diff --git a/docs/docs/reference/js/react-core/type-aliases/Message.md b/docs/docs/reference/js/react-core/type-aliases/Message.md
index 5c7e3dedd..bc5bd8bb8 100644
--- a/docs/docs/reference/js/react-core/type-aliases/Message.md
+++ b/docs/docs/reference/js/react-core/type-aliases/Message.md
@@ -6,4 +6,4 @@ type Message =
## Defined in
-[packages/react-core/src/types/message.ts:35](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/message.ts#L35)
+[packages/react-core/src/types/message.ts:35](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/message.ts#L35)
diff --git a/docs/docs/reference/js/react-core/type-aliases/Thread.md b/docs/docs/reference/js/react-core/type-aliases/Thread.md
index 162ac6cf1..15f607dde 100644
--- a/docs/docs/reference/js/react-core/type-aliases/Thread.md
+++ b/docs/docs/reference/js/react-core/type-aliases/Thread.md
@@ -39,7 +39,7 @@ Creation timestamp
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:13](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L13)
+[packages/react-core/src/types/chatManager.ts:13](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L13)
</td>
</tr>
@@ -61,7 +61,7 @@ Indicates if the thread is currently processing
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:15](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L15)
+[packages/react-core/src/types/chatManager.ts:15](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L15)
</td>
</tr>
@@ -83,7 +83,7 @@ Unique identifier for the thread
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:9](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L9)
+[packages/react-core/src/types/chatManager.ts:9](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L9)
</td>
</tr>
@@ -105,7 +105,7 @@ Title of the thread
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:11](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L11)
+[packages/react-core/src/types/chatManager.ts:11](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L11)
</td>
</tr>
@@ -114,4 +114,4 @@ Title of the thread
## Defined in
-[packages/react-core/src/types/chatManager.ts:7](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L7)
+[packages/react-core/src/types/chatManager.ts:7](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L7)
diff --git a/docs/docs/reference/js/react-core/type-aliases/ThreadActions.md b/docs/docs/reference/js/react-core/type-aliases/ThreadActions.md
index a9e727c6c..9561713b4 100644
--- a/docs/docs/reference/js/react-core/type-aliases/ThreadActions.md
+++ b/docs/docs/reference/js/react-core/type-aliases/ThreadActions.md
@@ -34,7 +34,7 @@ Actions available for managing a thread
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:24](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L24)
+[packages/react-core/src/types/chatManager.ts:24](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L24)
</td>
</tr>
@@ -51,7 +51,7 @@ Actions available for managing a thread
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:26](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L26)
+[packages/react-core/src/types/chatManager.ts:26](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L26)
</td>
</tr>
@@ -68,7 +68,7 @@ Actions available for managing a thread
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:23](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L23)
+[packages/react-core/src/types/chatManager.ts:23](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L23)
</td>
</tr>
@@ -85,7 +85,7 @@ Actions available for managing a thread
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:27](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L27)
+[packages/react-core/src/types/chatManager.ts:27](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L27)
</td>
</tr>
@@ -102,7 +102,7 @@ Actions available for managing a thread
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:25](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L25)
+[packages/react-core/src/types/chatManager.ts:25](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L25)
</td>
</tr>
@@ -115,4 +115,4 @@ The message type used in the thread
## Defined in
-[packages/react-core/src/types/chatManager.ts:22](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L22)
+[packages/react-core/src/types/chatManager.ts:22](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L22)
diff --git a/docs/docs/reference/js/react-core/type-aliases/ThreadListActions.md b/docs/docs/reference/js/react-core/type-aliases/ThreadListActions.md
index 7ee87f58d..c8c6b1c88 100644
--- a/docs/docs/reference/js/react-core/type-aliases/ThreadListActions.md
+++ b/docs/docs/reference/js/react-core/type-aliases/ThreadListActions.md
@@ -35,7 +35,7 @@ Actions available for managing the thread list
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:69](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L69)
+[packages/react-core/src/types/chatManager.ts:69](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L69)
</td>
</tr>
@@ -52,7 +52,7 @@ Actions available for managing the thread list
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:63](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L63)
+[packages/react-core/src/types/chatManager.ts:63](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L63)
</td>
</tr>
@@ -69,7 +69,7 @@ Actions available for managing the thread list
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:65](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L65)
+[packages/react-core/src/types/chatManager.ts:65](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L65)
</td>
</tr>
@@ -86,7 +86,7 @@ Actions available for managing the thread list
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:67](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L67)
+[packages/react-core/src/types/chatManager.ts:67](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L67)
</td>
</tr>
@@ -103,7 +103,7 @@ Actions available for managing the thread list
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:66](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L66)
+[packages/react-core/src/types/chatManager.ts:66](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L66)
</td>
</tr>
@@ -120,7 +120,7 @@ Actions available for managing the thread list
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:68](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L68)
+[packages/react-core/src/types/chatManager.ts:68](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L68)
</td>
</tr>
@@ -129,4 +129,4 @@ Actions available for managing the thread list
## Defined in
-[packages/react-core/src/types/chatManager.ts:62](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L62)
+[packages/react-core/src/types/chatManager.ts:62](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L62)
diff --git a/docs/docs/reference/js/react-core/type-aliases/ThreadListManager.md b/docs/docs/reference/js/react-core/type-aliases/ThreadListManager.md
index 1255e759f..a54a57ef9 100644
--- a/docs/docs/reference/js/react-core/type-aliases/ThreadListManager.md
+++ b/docs/docs/reference/js/react-core/type-aliases/ThreadListManager.md
@@ -6,4 +6,4 @@ Combines thread list state and actions
## Defined in
-[packages/react-core/src/types/chatManager.ts:75](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L75)
+[packages/react-core/src/types/chatManager.ts:75](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L75)
diff --git a/docs/docs/reference/js/react-core/type-aliases/ThreadListState.md b/docs/docs/reference/js/react-core/type-aliases/ThreadListState.md
index a20bde1b2..48c6e699c 100644
--- a/docs/docs/reference/js/react-core/type-aliases/ThreadListState.md
+++ b/docs/docs/reference/js/react-core/type-aliases/ThreadListState.md
@@ -33,7 +33,7 @@ Represents the state of the thread list
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:55](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L55)
+[packages/react-core/src/types/chatManager.ts:55](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L55)
</td>
</tr>
@@ -50,7 +50,7 @@ Represents the state of the thread list
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:54](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L54)
+[packages/react-core/src/types/chatManager.ts:54](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L54)
</td>
</tr>
@@ -67,7 +67,7 @@ Represents the state of the thread list
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:56](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L56)
+[packages/react-core/src/types/chatManager.ts:56](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L56)
</td>
</tr>
@@ -84,7 +84,7 @@ Represents the state of the thread list
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:53](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L53)
+[packages/react-core/src/types/chatManager.ts:53](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L53)
</td>
</tr>
@@ -93,4 +93,4 @@ Represents the state of the thread list
## Defined in
-[packages/react-core/src/types/chatManager.ts:52](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L52)
+[packages/react-core/src/types/chatManager.ts:52](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L52)
diff --git a/docs/docs/reference/js/react-core/type-aliases/ThreadManager.md b/docs/docs/reference/js/react-core/type-aliases/ThreadManager.md
index 676aa60a5..d40cf7806 100644
--- a/docs/docs/reference/js/react-core/type-aliases/ThreadManager.md
+++ b/docs/docs/reference/js/react-core/type-aliases/ThreadManager.md
@@ -10,4 +10,4 @@ The message type used in the thread
## Defined in
-[packages/react-core/src/types/chatManager.ts:47](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L47)
+[packages/react-core/src/types/chatManager.ts:47](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L47)
diff --git a/docs/docs/reference/js/react-core/type-aliases/ThreadState.md b/docs/docs/reference/js/react-core/type-aliases/ThreadState.md
index 65fd20867..6c0e0d1a3 100644
--- a/docs/docs/reference/js/react-core/type-aliases/ThreadState.md
+++ b/docs/docs/reference/js/react-core/type-aliases/ThreadState.md
@@ -39,7 +39,7 @@ Represents the state of a thread
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:37](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L37)
+[packages/react-core/src/types/chatManager.ts:37](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L37)
</td>
</tr>
@@ -61,7 +61,7 @@ Indicates if the thread is currently processing and controls should be disabled
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:35](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L35)
+[packages/react-core/src/types/chatManager.ts:35](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L35)
</td>
</tr>
@@ -83,7 +83,7 @@ Indicates if the thread is currently processing and controls should be disabled
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:36](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L36)
+[packages/react-core/src/types/chatManager.ts:36](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L36)
</td>
</tr>
@@ -105,7 +105,7 @@ Indicates if the thread is currently processing and controls should be disabled
</td>
<td>
-[packages/react-core/src/types/chatManager.ts:38](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L38)
+[packages/react-core/src/types/chatManager.ts:38](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L38)
</td>
</tr>
@@ -114,4 +114,4 @@ Indicates if the thread is currently processing and controls should be disabled
## Defined in
-[packages/react-core/src/types/chatManager.ts:33](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/chatManager.ts#L33)
+[packages/react-core/src/types/chatManager.ts:33](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/chatManager.ts#L33)
diff --git a/docs/docs/reference/js/react-core/type-aliases/UserMessage.md b/docs/docs/reference/js/react-core/type-aliases/UserMessage.md
index 5051c85a2..d3eb582b9 100644
--- a/docs/docs/reference/js/react-core/type-aliases/UserMessage.md
+++ b/docs/docs/reference/js/react-core/type-aliases/UserMessage.md
@@ -40,7 +40,7 @@ type UserMessage = common & {
</td>
<td>
-[packages/react-core/src/types/message.ts:7](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/message.ts#L7)
+[packages/react-core/src/types/message.ts:7](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/message.ts#L7)
</td>
</tr>
@@ -49,4 +49,4 @@ type UserMessage = common & {
## Defined in
-[packages/react-core/src/types/message.ts:6](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/frontend-sdk/packages/react-core/src/types/message.ts#L6)
+[packages/react-core/src/types/message.ts:6](https://github.com/thesysdev/crayonai/blob/868f459d859250eef3283635b1127c3c68c35546/js/packages/react-core/src/types/message.ts#L6)
diff --git a/docs/docusaurus.config.ts b/docs/docusaurus.config.ts
index 7813e3446..6e5477d64 100644
--- a/docs/docusaurus.config.ts
+++ b/docs/docusaurus.config.ts
@@ -164,8 +164,8 @@ const config: Config = {
"docusaurus-plugin-typedoc",
{
id: "react-core",
- entryPoints: ["../frontend-sdk/packages/react-core/src/index.ts"],
- tsconfig: "../frontend-sdk/tsconfig.json",
+ entryPoints: ["../js/packages/react-core/src/index.ts"],
+ tsconfig: "../js/tsconfig.json",
out: "./docs/reference/js/react-core",
...typeDocConfig,
},
@@ -175,8 +175,8 @@ const config: Config = {
// "docusaurus-plugin-typedoc",
// {
// id: "react-ui",
- // entryPoints: ["../frontend-sdk/packages/react-ui/src/index.ts"],
- // tsconfig: "../frontend-sdk/tsconfig.json",
+ // entryPoints: ["../js/packages/react-ui/src/index.ts"],
+ // tsconfig: "../js/tsconfig.json",
// out: "./docs/reference/js/react-ui",
// ...typeDocConfig,
// },
diff --git a/docs/package.json b/docs/package.json
index 294760b6d..2c75a4a70 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -5,7 +5,7 @@
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start -p 3003",
- "build": "cd ../frontend-sdk/packages/react-ui && pnpm run build:storybook && cd ../../../docs && docusaurus build",
+ "build": "cd ../js/packages/react-ui && pnpm run build:storybook && cd ../../../docs && docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
@@ -22,8 +22,8 @@
"prism-react-renderer": "^2.3.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
- "@crayonai/react-core": "file:../frontend-sdk/packages/react-core",
- "@crayonai/react-ui": "file:../frontend-sdk/packages/react-ui"
+ "@crayonai/react-core": "file:../js/packages/react-core",
+ "@crayonai/react-ui": "file:../js/packages/react-ui"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.6.3",
diff --git a/docs/pnpm-lock.yaml b/docs/pnpm-lock.yaml
index 588c6bc9a..fbc09a9a5 100644
--- a/docs/pnpm-lock.yaml
+++ b/docs/pnpm-lock.yaml
@@ -9,11 +9,11 @@ importers:
.:
dependencies:
'@crayonai/react-core':
- specifier: file:../frontend-sdk/packages/react-core
+ specifier: file:../js/packages/react-core
'@crayonai/react-ui':
- specifier: file:../frontend-sdk/packages/react-ui
+ specifier: file:../js/packages/react-ui
'@docusaurus/core':
specifier: 3.6.3
@@ -795,8 +795,8 @@ packages:
resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==}
engines: {node: '>=0.1.90'}
- '@crayonai/react-core@file:../frontend-sdk/packages/react-core':
- resolution: {directory: ../frontend-sdk/packages/react-core, type: directory}
+ '@crayonai/react-core@file:../js/packages/react-core':
+ resolution: {directory: ../js/packages/react-core, type: directory}
peerDependencies:
ai: ^4.0.3
react: 19.0.0-rc-66855b96-20241106
@@ -806,8 +806,8 @@ packages:
tiny-invariant: ^1.3.3
zustand: ^5.0.2
- '@crayonai/react-ui@file:../frontend-sdk/packages/react-ui':
- resolution: {directory: ../frontend-sdk/packages/react-ui, type: directory}
+ '@crayonai/react-ui@file:../js/packages/react-ui':
+ resolution: {directory: ../js/packages/react-ui, type: directory}
peerDependencies:
'@crayonai/react-core': workspace:*
react: 19.0.0-rc-66855b96-20241106
@@ -7261,7 +7261,7 @@ snapshots:
'@colors/[email protected]':
optional: true
dependencies:
react: 18.3.1
@@ -7272,9 +7272,9 @@ snapshots:
zod: 3.24.1
dependencies:
'@floating-ui/react-dom': 2.1.2([email protected]([email protected]))([email protected])
'@radix-ui/react-accordion': 1.2.2(@types/[email protected])([email protected]([email protected]))([email protected])
'@radix-ui/react-aspect-ratio': 1.1.1(@types/[email protected])([email protected]([email protected]))([email protected])
diff --git a/js/package.json b/js/package.json
index e6bc67b8f..655b1e2ca 100644
--- a/js/package.json
+++ b/js/package.json
@@ -1,5 +1,5 @@
{
- "name": "frontend-sdk",
+ "name": "js",
"version": "1.0.0",
"description": "",
"main": "index.js",