@yourgpt/copilot-sdk 0.1.0 → 1.0.0
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/README.md +25 -23
- package/dist/ThreadManager-BCVt-_k_.d.cts +863 -0
- package/dist/ThreadManager-BjC15mh8.d.ts +863 -0
- package/dist/{chunk-2ZCWVAAK.cjs → chunk-42YQ4ATO.cjs} +889 -2
- package/dist/chunk-42YQ4ATO.cjs.map +1 -0
- package/dist/{chunk-W6KQT7YZ.cjs → chunk-BN75ZW24.cjs} +482 -46
- package/dist/chunk-BN75ZW24.cjs.map +1 -0
- package/dist/{chunk-N4OA2J32.js → chunk-QSEGNATZ.js} +882 -3
- package/dist/chunk-QSEGNATZ.js.map +1 -0
- package/dist/{chunk-QUGTRQSS.js → chunk-XAVZZVUL.js} +455 -24
- package/dist/chunk-XAVZZVUL.js.map +1 -0
- package/dist/core/index.cjs +99 -71
- package/dist/core/index.d.cts +13 -4
- package/dist/core/index.d.ts +13 -4
- package/dist/core/index.js +1 -1
- package/dist/react/index.cjs +66 -34
- package/dist/react/index.d.cts +395 -7
- package/dist/react/index.d.ts +395 -7
- package/dist/react/index.js +2 -2
- package/dist/{thread-C2FjuGLb.d.cts → types-BtAaOV07.d.cts} +214 -478
- package/dist/{thread-C2FjuGLb.d.ts → types-BtAaOV07.d.ts} +214 -478
- package/dist/ui/index.cjs +1710 -384
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +399 -42
- package/dist/ui/index.d.ts +399 -42
- package/dist/ui/index.js +1706 -384
- package/dist/ui/index.js.map +1 -1
- package/package.json +9 -8
- package/dist/chunk-2ZCWVAAK.cjs.map +0 -1
- package/dist/chunk-N4OA2J32.js.map +0 -1
- package/dist/chunk-QUGTRQSS.js.map +0 -1
- package/dist/chunk-W6KQT7YZ.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -1,30 +1,40 @@
|
|
|
1
1
|
# @yourgpt/copilot-sdk
|
|
2
2
|
|
|
3
|
-
Build AI
|
|
3
|
+
Build AI Copilots for Your Product.
|
|
4
|
+
|
|
5
|
+
Production-ready AI Copilots for any product. Connect any LLM, deploy on your infrastructure, own your data.
|
|
4
6
|
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
|
-
npm install @yourgpt/copilot-sdk
|
|
10
|
+
npm install @yourgpt/copilot-sdk @yourgpt/llm-sdk
|
|
9
11
|
```
|
|
10
12
|
|
|
11
|
-
##
|
|
13
|
+
## Quick Start
|
|
12
14
|
|
|
13
15
|
```tsx
|
|
14
|
-
|
|
15
|
-
import {
|
|
16
|
-
CopilotProvider,
|
|
17
|
-
useTools,
|
|
18
|
-
useAIContext,
|
|
19
|
-
} from "@yourgpt/copilot-sdk/react";
|
|
20
|
-
|
|
21
|
-
// UI components
|
|
16
|
+
import { CopilotProvider } from "@yourgpt/copilot-sdk/react";
|
|
22
17
|
import { CopilotChat } from "@yourgpt/copilot-sdk/ui";
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
import "@yourgpt/copilot-sdk/ui/styles.css";
|
|
19
|
+
|
|
20
|
+
function App() {
|
|
21
|
+
return (
|
|
22
|
+
<CopilotProvider runtimeUrl="/api/chat">
|
|
23
|
+
<YourApp />
|
|
24
|
+
<CopilotChat />
|
|
25
|
+
</CopilotProvider>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
26
28
|
```
|
|
27
29
|
|
|
30
|
+
## Subpath Exports
|
|
31
|
+
|
|
32
|
+
| Subpath | Description |
|
|
33
|
+
| -------- | ------------------------------ |
|
|
34
|
+
| `/react` | React hooks and provider |
|
|
35
|
+
| `/ui` | Pre-built UI components |
|
|
36
|
+
| `/core` | Types, utilities, tool helpers |
|
|
37
|
+
|
|
28
38
|
## Styling (Tailwind CSS v4)
|
|
29
39
|
|
|
30
40
|
Add the SDK source to your Tailwind config:
|
|
@@ -44,17 +54,9 @@ For theming, optionally import the default CSS variables:
|
|
|
44
54
|
@import "@yourgpt/copilot-sdk/ui/styles.css";
|
|
45
55
|
```
|
|
46
56
|
|
|
47
|
-
## Subpath Exports
|
|
48
|
-
|
|
49
|
-
| Subpath | Description |
|
|
50
|
-
| -------- | ------------------------------ |
|
|
51
|
-
| `/core` | Types, utilities, tool helpers |
|
|
52
|
-
| `/react` | React hooks and provider |
|
|
53
|
-
| `/ui` | Pre-built UI components |
|
|
54
|
-
|
|
55
57
|
## Documentation
|
|
56
58
|
|
|
57
|
-
Visit [
|
|
59
|
+
Visit [copilot-sdk.yourgpt.ai](https://copilot-sdk.yourgpt.ai)
|
|
58
60
|
|
|
59
61
|
## License
|
|
60
62
|
|