langwatch 0.0.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/.eslintrc.cjs +37 -0
- package/README.md +3 -0
- package/dist/chunk-GOA2HL4A.mjs +269 -0
- package/dist/chunk-GOA2HL4A.mjs.map +1 -0
- package/dist/index.d.mts +82 -0
- package/dist/index.d.ts +82 -0
- package/dist/index.js +940 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +666 -0
- package/dist/index.mjs.map +1 -0
- package/dist/utils-s3gGR6vj.d.mts +209 -0
- package/dist/utils-s3gGR6vj.d.ts +209 -0
- package/dist/utils.d.mts +3 -0
- package/dist/utils.d.ts +3 -0
- package/dist/utils.js +263 -0
- package/dist/utils.js.map +1 -0
- package/dist/utils.mjs +7 -0
- package/dist/utils.mjs.map +1 -0
- package/example/.env.example +12 -0
- package/example/.eslintrc.json +26 -0
- package/example/LICENSE +13 -0
- package/example/README.md +10 -0
- package/example/app/(chat)/chat/[id]/page.tsx +60 -0
- package/example/app/(chat)/layout.tsx +14 -0
- package/example/app/(chat)/page.tsx +22 -0
- package/example/app/actions.ts +156 -0
- package/example/app/globals.css +76 -0
- package/example/app/layout.tsx +64 -0
- package/example/app/login/actions.ts +71 -0
- package/example/app/login/page.tsx +18 -0
- package/example/app/new/page.tsx +5 -0
- package/example/app/opengraph-image.png +0 -0
- package/example/app/share/[id]/page.tsx +58 -0
- package/example/app/signup/actions.ts +111 -0
- package/example/app/signup/page.tsx +18 -0
- package/example/app/twitter-image.png +0 -0
- package/example/auth.config.ts +42 -0
- package/example/auth.ts +45 -0
- package/example/components/button-scroll-to-bottom.tsx +36 -0
- package/example/components/chat-history.tsx +49 -0
- package/example/components/chat-list.tsx +52 -0
- package/example/components/chat-message-actions.tsx +40 -0
- package/example/components/chat-message.tsx +80 -0
- package/example/components/chat-panel.tsx +139 -0
- package/example/components/chat-share-dialog.tsx +95 -0
- package/example/components/chat.tsx +84 -0
- package/example/components/clear-history.tsx +75 -0
- package/example/components/empty-screen.tsx +38 -0
- package/example/components/external-link.tsx +29 -0
- package/example/components/footer.tsx +19 -0
- package/example/components/header.tsx +80 -0
- package/example/components/login-button.tsx +42 -0
- package/example/components/login-form.tsx +97 -0
- package/example/components/markdown.tsx +9 -0
- package/example/components/prompt-form.tsx +115 -0
- package/example/components/providers.tsx +17 -0
- package/example/components/sidebar-actions.tsx +125 -0
- package/example/components/sidebar-desktop.tsx +19 -0
- package/example/components/sidebar-footer.tsx +16 -0
- package/example/components/sidebar-item.tsx +124 -0
- package/example/components/sidebar-items.tsx +42 -0
- package/example/components/sidebar-list.tsx +38 -0
- package/example/components/sidebar-mobile.tsx +31 -0
- package/example/components/sidebar-toggle.tsx +24 -0
- package/example/components/sidebar.tsx +21 -0
- package/example/components/signup-form.tsx +95 -0
- package/example/components/stocks/events-skeleton.tsx +31 -0
- package/example/components/stocks/events.tsx +30 -0
- package/example/components/stocks/index.tsx +36 -0
- package/example/components/stocks/message.tsx +134 -0
- package/example/components/stocks/spinner.tsx +16 -0
- package/example/components/stocks/stock-purchase.tsx +146 -0
- package/example/components/stocks/stock-skeleton.tsx +22 -0
- package/example/components/stocks/stock.tsx +210 -0
- package/example/components/stocks/stocks-skeleton.tsx +9 -0
- package/example/components/stocks/stocks.tsx +67 -0
- package/example/components/tailwind-indicator.tsx +14 -0
- package/example/components/theme-toggle.tsx +31 -0
- package/example/components/ui/alert-dialog.tsx +141 -0
- package/example/components/ui/badge.tsx +36 -0
- package/example/components/ui/button.tsx +57 -0
- package/example/components/ui/codeblock.tsx +148 -0
- package/example/components/ui/dialog.tsx +122 -0
- package/example/components/ui/dropdown-menu.tsx +205 -0
- package/example/components/ui/icons.tsx +507 -0
- package/example/components/ui/input.tsx +25 -0
- package/example/components/ui/label.tsx +26 -0
- package/example/components/ui/select.tsx +164 -0
- package/example/components/ui/separator.tsx +31 -0
- package/example/components/ui/sheet.tsx +140 -0
- package/example/components/ui/sonner.tsx +31 -0
- package/example/components/ui/switch.tsx +29 -0
- package/example/components/ui/textarea.tsx +24 -0
- package/example/components/ui/tooltip.tsx +30 -0
- package/example/components/user-menu.tsx +53 -0
- package/example/components.json +17 -0
- package/example/lib/chat/actions.tsx +606 -0
- package/example/lib/hooks/use-copy-to-clipboard.tsx +33 -0
- package/example/lib/hooks/use-enter-submit.tsx +23 -0
- package/example/lib/hooks/use-local-storage.ts +24 -0
- package/example/lib/hooks/use-scroll-anchor.tsx +86 -0
- package/example/lib/hooks/use-sidebar.tsx +60 -0
- package/example/lib/hooks/use-streamable-text.ts +25 -0
- package/example/lib/types.ts +41 -0
- package/example/lib/utils.ts +89 -0
- package/example/middleware.ts +8 -0
- package/example/next-env.d.ts +5 -0
- package/example/next.config.js +13 -0
- package/example/package-lock.json +9249 -0
- package/example/package.json +77 -0
- package/example/pnpm-lock.yaml +5712 -0
- package/example/postcss.config.js +6 -0
- package/example/prettier.config.cjs +34 -0
- package/example/public/apple-touch-icon.png +0 -0
- package/example/public/favicon-16x16.png +0 -0
- package/example/public/favicon.ico +0 -0
- package/example/public/next.svg +1 -0
- package/example/public/thirteen.svg +1 -0
- package/example/public/vercel.svg +1 -0
- package/example/tailwind.config.ts +81 -0
- package/example/tsconfig.json +35 -0
- package/package.json +45 -0
- package/src/helpers.ts +64 -0
- package/src/index.test.ts +255 -0
- package/src/index.ts +397 -0
- package/src/server/types/.gitkeep +0 -0
- package/src/types.ts +69 -0
- package/src/utils.ts +134 -0
- package/ts-to-zod.config.js +18 -0
- package/tsconfig.json +32 -0
- package/tsup.config.ts +10 -0
- package/vitest.config.ts +8 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"scripts": {
|
|
4
|
+
"dev": "next dev",
|
|
5
|
+
"build": "next build",
|
|
6
|
+
"start": "next start",
|
|
7
|
+
"lint": "next lint",
|
|
8
|
+
"lint:fix": "next lint --fix",
|
|
9
|
+
"preview": "next build && next start",
|
|
10
|
+
"seed": "node -r dotenv/config ./scripts/seed.mjs",
|
|
11
|
+
"type-check": "tsc --noEmit",
|
|
12
|
+
"format:write": "prettier --write \"{app,lib,components}/**/*.{ts,tsx,mdx}\" --cache",
|
|
13
|
+
"format:check": "prettier --check \"{app,lib,components}**/*.{ts,tsx,mdx}\" --cache"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@ai-sdk/openai": "^0.0.9",
|
|
17
|
+
"@radix-ui/react-alert-dialog": "^1.0.5",
|
|
18
|
+
"@radix-ui/react-dialog": "^1.0.5",
|
|
19
|
+
"@radix-ui/react-dropdown-menu": "^2.0.6",
|
|
20
|
+
"@radix-ui/react-icons": "^1.3.0",
|
|
21
|
+
"@radix-ui/react-label": "^2.0.2",
|
|
22
|
+
"@radix-ui/react-select": "^2.0.0",
|
|
23
|
+
"@radix-ui/react-separator": "^1.0.3",
|
|
24
|
+
"@radix-ui/react-slot": "^1.0.2",
|
|
25
|
+
"@radix-ui/react-switch": "^1.0.3",
|
|
26
|
+
"@radix-ui/react-tooltip": "^1.0.7",
|
|
27
|
+
"@vercel/analytics": "^1.1.2",
|
|
28
|
+
"@vercel/kv": "^1.0.1",
|
|
29
|
+
"@vercel/og": "^0.6.2",
|
|
30
|
+
"ai": "^3.1.5",
|
|
31
|
+
"class-variance-authority": "^0.7.0",
|
|
32
|
+
"clsx": "^2.1.0",
|
|
33
|
+
"d3-scale": "^4.0.2",
|
|
34
|
+
"date-fns": "^3.3.1",
|
|
35
|
+
"focus-trap-react": "^10.2.3",
|
|
36
|
+
"framer-motion": "^10.18.0",
|
|
37
|
+
"geist": "^1.2.1",
|
|
38
|
+
"langwatch": "file:..",
|
|
39
|
+
"nanoid": "^5.0.4",
|
|
40
|
+
"next": "14.2.3",
|
|
41
|
+
"next-auth": "5.0.0-beta.4",
|
|
42
|
+
"next-themes": "^0.2.1",
|
|
43
|
+
"openai": "^4.24.7",
|
|
44
|
+
"react": "^18.2.0",
|
|
45
|
+
"react-dom": "^18.2.0",
|
|
46
|
+
"react-intersection-observer": "^9.5.3",
|
|
47
|
+
"react-markdown": "^8.0.7",
|
|
48
|
+
"react-syntax-highlighter": "^15.5.0",
|
|
49
|
+
"react-textarea-autosize": "^8.5.3",
|
|
50
|
+
"remark-gfm": "^3.0.1",
|
|
51
|
+
"remark-math": "^5.1.1",
|
|
52
|
+
"sonner": "^1.4.3",
|
|
53
|
+
"usehooks-ts": "^2.16.0",
|
|
54
|
+
"zod": "^3.22.4"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@tailwindcss/typography": "^0.5.10",
|
|
58
|
+
"@types/d3-scale": "^4.0.8",
|
|
59
|
+
"@types/node": "^20.11.5",
|
|
60
|
+
"@types/react": "^18.2.48",
|
|
61
|
+
"@types/react-dom": "^18.2.18",
|
|
62
|
+
"@types/react-syntax-highlighter": "^15.5.11",
|
|
63
|
+
"@typescript-eslint/parser": "^6.19.0",
|
|
64
|
+
"autoprefixer": "^10.4.17",
|
|
65
|
+
"dotenv": "^16.4.5",
|
|
66
|
+
"eslint": "^8.56.0",
|
|
67
|
+
"eslint-config-next": "14.1.0",
|
|
68
|
+
"eslint-config-prettier": "^9.1.0",
|
|
69
|
+
"eslint-plugin-tailwindcss": "^3.14.0",
|
|
70
|
+
"postcss": "^8.4.33",
|
|
71
|
+
"prettier": "^3.2.4",
|
|
72
|
+
"tailwind-merge": "^2.2.0",
|
|
73
|
+
"tailwindcss": "^3.4.1",
|
|
74
|
+
"tailwindcss-animate": "^1.0.7",
|
|
75
|
+
"typescript": "^5.3.3"
|
|
76
|
+
}
|
|
77
|
+
}
|