@chaaskit/server 0.1.1 → 0.1.2

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.
Files changed (69) hide show
  1. package/LICENSE +21 -0
  2. package/dist/api/admin.js +211 -0
  3. package/dist/api/admin.js.map +1 -1
  4. package/dist/api/auth.js +91 -6
  5. package/dist/api/auth.js.map +1 -1
  6. package/dist/api/chat.js +51 -3
  7. package/dist/api/chat.js.map +1 -1
  8. package/dist/api/config.js +25 -14
  9. package/dist/api/config.js.map +1 -1
  10. package/dist/api/credits.js +122 -0
  11. package/dist/api/credits.js.map +1 -0
  12. package/dist/api/payments.js +94 -11
  13. package/dist/api/payments.js.map +1 -1
  14. package/dist/api/user.js +3 -4
  15. package/dist/api/user.js.map +1 -1
  16. package/dist/app.js +15 -6
  17. package/dist/app.js.map +1 -1
  18. package/dist/config/loader.js +62 -2
  19. package/dist/config/loader.js.map +1 -1
  20. package/dist/extensions/loader.js +1 -0
  21. package/dist/extensions/loader.js.map +1 -1
  22. package/dist/index.js +2 -0
  23. package/dist/index.js.map +1 -1
  24. package/dist/middleware/apiKeyAuth.js +2 -1
  25. package/dist/middleware/apiKeyAuth.js.map +1 -1
  26. package/dist/middleware/auth.js +29 -5
  27. package/dist/middleware/auth.js.map +1 -1
  28. package/dist/queue/cli.js +0 -0
  29. package/dist/secrets/index.js +147 -0
  30. package/dist/secrets/index.js.map +1 -0
  31. package/dist/services/credits.js +206 -0
  32. package/dist/services/credits.js.map +1 -0
  33. package/dist/services/email/templates.js +116 -0
  34. package/dist/services/email/templates.js.map +1 -1
  35. package/dist/services/metering.js +24 -0
  36. package/dist/services/metering.js.map +1 -0
  37. package/dist/services/referrals.js +133 -0
  38. package/dist/services/referrals.js.map +1 -0
  39. package/dist/services/usage.js +42 -29
  40. package/dist/services/usage.js.map +1 -1
  41. package/dist/services/waitlist.js +142 -0
  42. package/dist/services/waitlist.js.map +1 -0
  43. package/package.json +26 -12
  44. package/dist/api/upload.js +0 -57
  45. package/dist/api/upload.js.map +0 -1
  46. package/dist/ssr/build.js +0 -90
  47. package/dist/ssr/build.js.map +0 -1
  48. package/dist/ssr/components/SSRMessageList.js +0 -120
  49. package/dist/ssr/components/SSRMessageList.js.map +0 -1
  50. package/dist/ssr/entry.client.js +0 -8
  51. package/dist/ssr/entry.client.js.map +0 -1
  52. package/dist/ssr/entry.server.js +0 -71
  53. package/dist/ssr/entry.server.js.map +0 -1
  54. package/dist/ssr/handler.js +0 -51
  55. package/dist/ssr/handler.js.map +0 -1
  56. package/dist/ssr/root.js +0 -184
  57. package/dist/ssr/root.js.map +0 -1
  58. package/dist/ssr/routes/login.js +0 -140
  59. package/dist/ssr/routes/login.js.map +0 -1
  60. package/dist/ssr/routes/pricing.js +0 -195
  61. package/dist/ssr/routes/pricing.js.map +0 -1
  62. package/dist/ssr/routes/privacy.js +0 -39
  63. package/dist/ssr/routes/privacy.js.map +0 -1
  64. package/dist/ssr/routes/register.js +0 -148
  65. package/dist/ssr/routes/register.js.map +0 -1
  66. package/dist/ssr/routes/shared.$shareId.js +0 -153
  67. package/dist/ssr/routes/shared.$shareId.js.map +0 -1
  68. package/dist/ssr/routes/terms.js +0 -39
  69. package/dist/ssr/routes/terms.js.map +0 -1
@@ -1,153 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { json } from '@remix-run/node';
3
- import { useLoaderData, Link, useOutletContext } from '@remix-run/react';
4
- import { db } from '@chaaskit/db';
5
- import { SSRMessageList } from '../components/SSRMessageList.js';
6
- export const meta = ({ data }) => {
7
- if (!data) {
8
- return [
9
- { title: 'Thread Not Found' },
10
- { name: 'description', content: 'This shared thread could not be found.' },
11
- ];
12
- }
13
- const title = data.thread.title || 'Shared Conversation';
14
- const messageCount = data.thread.messages.length;
15
- const description = `A shared conversation with ${messageCount} messages`;
16
- return [
17
- { title },
18
- { name: 'description', content: description },
19
- // Open Graph
20
- { property: 'og:title', content: title },
21
- { property: 'og:description', content: description },
22
- { property: 'og:type', content: 'article' },
23
- // Twitter
24
- { name: 'twitter:card', content: 'summary' },
25
- { name: 'twitter:title', content: title },
26
- { name: 'twitter:description', content: description },
27
- ];
28
- };
29
- export async function loader({ params }) {
30
- const { shareId } = params;
31
- if (!shareId) {
32
- throw new Response('Share ID required', { status: 400 });
33
- }
34
- const shared = await db.sharedThread.findUnique({
35
- where: { shareId },
36
- include: {
37
- thread: {
38
- include: {
39
- messages: {
40
- orderBy: { createdAt: 'asc' },
41
- select: {
42
- id: true,
43
- role: true,
44
- content: true,
45
- createdAt: true,
46
- },
47
- },
48
- },
49
- },
50
- },
51
- });
52
- if (!shared) {
53
- throw new Response('Shared thread not found', { status: 404 });
54
- }
55
- // Check expiration
56
- if (shared.expiresAt && shared.expiresAt < new Date()) {
57
- throw new Response('Share link has expired', { status: 410 });
58
- }
59
- return json({
60
- thread: {
61
- id: shared.thread.id,
62
- title: shared.thread.title,
63
- messages: shared.thread.messages.map((m) => ({
64
- id: m.id,
65
- role: m.role,
66
- content: m.content,
67
- createdAt: m.createdAt.toISOString(),
68
- })),
69
- createdAt: shared.thread.createdAt.toISOString(),
70
- },
71
- });
72
- }
73
- export default function SharedThreadPage() {
74
- const { thread } = useLoaderData();
75
- const { config } = useOutletContext();
76
- // Convert messages to the format expected by SSRMessageList
77
- const messages = thread.messages.map((m) => ({
78
- id: m.id,
79
- role: m.role,
80
- content: m.content,
81
- createdAt: new Date(m.createdAt),
82
- threadId: thread.id,
83
- }));
84
- return (_jsxs("div", { className: "min-h-screen bg-background", style: {
85
- minHeight: '100vh',
86
- backgroundColor: 'rgb(var(--color-background))',
87
- }, children: [_jsx("header", { className: "border-b border-border bg-background-secondary", style: {
88
- borderBottom: '1px solid rgb(var(--color-border))',
89
- backgroundColor: 'rgb(var(--color-background-secondary))',
90
- }, children: _jsx("div", { className: "mx-auto max-w-3xl px-4 py-4", style: {
91
- maxWidth: '48rem',
92
- marginLeft: 'auto',
93
- marginRight: 'auto',
94
- padding: '1rem',
95
- }, children: _jsxs("div", { className: "flex items-center justify-between", style: {
96
- display: 'flex',
97
- alignItems: 'center',
98
- justifyContent: 'space-between',
99
- }, children: [_jsxs("div", { children: [_jsx("h1", { className: "text-lg font-semibold text-text-primary", style: {
100
- fontSize: '1.125rem',
101
- fontWeight: 600,
102
- color: 'rgb(var(--color-text-primary))',
103
- margin: 0,
104
- }, children: thread.title }), _jsxs("p", { className: "text-sm text-text-muted", style: {
105
- fontSize: '0.875rem',
106
- color: 'rgb(var(--color-text-muted))',
107
- margin: '0.25rem 0 0 0',
108
- }, children: ["Shared conversation from ", config.app.name] })] }), _jsxs(Link, { to: "/", className: "rounded-lg bg-primary px-4 py-2 text-sm text-white hover:bg-primary-hover", style: {
109
- backgroundColor: 'rgb(var(--color-primary))',
110
- color: 'white',
111
- padding: '0.5rem 1rem',
112
- borderRadius: '0.5rem',
113
- fontSize: '0.875rem',
114
- textDecoration: 'none',
115
- }, children: ["Try ", config.app.name] })] }) }) }), _jsx("main", { className: "pb-8", style: { paddingBottom: '2rem' }, children: _jsx(SSRMessageList, { messages: messages, appName: config.app.name }) }), _jsx("footer", { className: "border-t border-border bg-background-secondary py-4", style: {
116
- borderTop: '1px solid rgb(var(--color-border))',
117
- backgroundColor: 'rgb(var(--color-background-secondary))',
118
- padding: '1rem',
119
- }, children: _jsxs("p", { className: "text-center text-sm text-text-muted", style: {
120
- textAlign: 'center',
121
- fontSize: '0.875rem',
122
- color: 'rgb(var(--color-text-muted))',
123
- margin: 0,
124
- }, children: ["Powered by ", config.app.name] }) })] }));
125
- }
126
- // Error boundary for this route
127
- export function ErrorBoundary() {
128
- return (_jsx("div", { style: {
129
- display: 'flex',
130
- flexDirection: 'column',
131
- alignItems: 'center',
132
- justifyContent: 'center',
133
- minHeight: '100vh',
134
- padding: '1rem',
135
- backgroundColor: 'rgb(var(--color-background))',
136
- }, children: _jsxs("div", { style: { textAlign: 'center' }, children: [_jsx("h1", { style: {
137
- fontSize: '1.5rem',
138
- fontWeight: 'bold',
139
- color: 'rgb(var(--color-text-primary))',
140
- marginBottom: '0.5rem',
141
- }, children: "Conversation not available" }), _jsx("p", { style: {
142
- color: 'rgb(var(--color-text-secondary))',
143
- marginBottom: '1.5rem',
144
- }, children: "This shared conversation was not found or has expired." }), _jsx(Link, { to: "/", style: {
145
- backgroundColor: 'rgb(var(--color-primary))',
146
- color: 'white',
147
- padding: '0.5rem 1rem',
148
- borderRadius: '0.5rem',
149
- textDecoration: 'none',
150
- display: 'inline-block',
151
- }, children: "Go to Home" })] }) }));
152
- }
153
- //# sourceMappingURL=shared.$shareId.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"shared.$shareId.js","sourceRoot":"","sources":["../../../src/ssr/routes/shared.$shareId.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAiBjE,MAAM,CAAC,MAAM,IAAI,GAAgC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE;IAC5D,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,OAAO;YACL,EAAE,KAAK,EAAE,kBAAkB,EAAE;YAC7B,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,wCAAwC,EAAE;SAC3E,CAAC;IACJ,CAAC;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,qBAAqB,CAAC;IACzD,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;IACjD,MAAM,WAAW,GAAG,8BAA8B,YAAY,WAAW,CAAC;IAE1E,OAAO;QACL,EAAE,KAAK,EAAE;QACT,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO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AAE,cAAc;qBACxB,2BAGI,IACH,GACF,CACP,CAAC;AACJ,CAAC"}
@@ -1,39 +0,0 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
- import { Link, useOutletContext } from '@remix-run/react';
3
- export const meta = ({ matches }) => {
4
- const parentData = matches.find((m) => m.id === 'root')?.data;
5
- const appName = parentData?.config?.app?.name || 'AI Chat';
6
- return [
7
- { title: `Terms of Service - ${appName}` },
8
- { name: 'description', content: `Terms of Service for ${appName}` },
9
- ];
10
- };
11
- export default function TermsPage() {
12
- const { config } = useOutletContext();
13
- return (_jsx("div", { style: {
14
- minHeight: '100vh',
15
- backgroundColor: 'rgb(var(--color-background))',
16
- padding: '2rem 1rem',
17
- }, children: _jsxs("div", { style: {
18
- maxWidth: '48rem',
19
- marginLeft: 'auto',
20
- marginRight: 'auto',
21
- }, children: [_jsx("div", { style: { marginBottom: '2rem' }, children: _jsxs(Link, { to: "/", style: {
22
- fontSize: '0.875rem',
23
- color: 'rgb(var(--color-primary))',
24
- textDecoration: 'none',
25
- }, children: ["\u2190 Back to ", config.app.name] }) }), _jsxs("article", { children: [_jsx("h1", { style: {
26
- fontSize: '2rem',
27
- fontWeight: 'bold',
28
- color: 'rgb(var(--color-text-primary))',
29
- marginBottom: '1.5rem',
30
- }, children: "Terms of Service" }), _jsxs("p", { style: {
31
- color: 'rgb(var(--color-text-muted))',
32
- marginBottom: '2rem',
33
- fontSize: '0.875rem',
34
- }, children: ["Last updated: ", new Date().toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' })] }), _jsxs("div", { className: "markdown-content", style: {
35
- color: 'rgb(var(--color-text-secondary))',
36
- lineHeight: 1.7,
37
- }, children: [_jsx("h2", { style: { fontSize: '1.25rem', fontWeight: 600, marginTop: '2rem', marginBottom: '1rem', color: 'rgb(var(--color-text-primary))' }, children: "Agreement to Terms" }), _jsxs("p", { style: { marginBottom: '1rem' }, children: ["By accessing or using ", config.app.name, ", you agree to be bound by these Terms of Service. If you disagree with any part of the terms, you may not access the service."] }), _jsx("h2", { style: { fontSize: '1.25rem', fontWeight: 600, marginTop: '2rem', marginBottom: '1rem', color: 'rgb(var(--color-text-primary))' }, children: "Use of Service" }), _jsxs("p", { style: { marginBottom: '1rem' }, children: ["You agree to use ", config.app.name, " only for lawful purposes and in accordance with these Terms. You agree not to:"] }), _jsxs("ul", { style: { marginBottom: '1rem', paddingLeft: '1.5rem', listStyleType: 'disc' }, children: [_jsx("li", { style: { marginBottom: '0.5rem' }, children: "Use the service for any illegal purpose" }), _jsx("li", { style: { marginBottom: '0.5rem' }, children: "Attempt to gain unauthorized access to the service" }), _jsx("li", { style: { marginBottom: '0.5rem' }, children: "Interfere with or disrupt the service" }), _jsx("li", { style: { marginBottom: '0.5rem' }, children: "Use the service to send spam or unsolicited messages" })] }), _jsx("h2", { style: { fontSize: '1.25rem', fontWeight: 600, marginTop: '2rem', marginBottom: '1rem', color: 'rgb(var(--color-text-primary))' }, children: "User Accounts" }), _jsx("p", { style: { marginBottom: '1rem' }, children: "When you create an account, you must provide accurate and complete information. You are responsible for maintaining the security of your account and password." }), _jsx("h2", { style: { fontSize: '1.25rem', fontWeight: 600, marginTop: '2rem', marginBottom: '1rem', color: 'rgb(var(--color-text-primary))' }, children: "AI-Generated Content" }), _jsxs("p", { style: { marginBottom: '1rem' }, children: [config.app.name, " uses AI to generate responses. While we strive for accuracy, AI-generated content may contain errors or inaccuracies. You should verify important information independently."] }), _jsx("h2", { style: { fontSize: '1.25rem', fontWeight: 600, marginTop: '2rem', marginBottom: '1rem', color: 'rgb(var(--color-text-primary))' }, children: "Intellectual Property" }), _jsx("p", { style: { marginBottom: '1rem' }, children: "The service and its original content, features, and functionality are owned by us and are protected by international copyright, trademark, and other intellectual property laws." }), _jsx("h2", { style: { fontSize: '1.25rem', fontWeight: 600, marginTop: '2rem', marginBottom: '1rem', color: 'rgb(var(--color-text-primary))' }, children: "Limitation of Liability" }), _jsx("p", { style: { marginBottom: '1rem' }, children: "In no event shall we be liable for any indirect, incidental, special, consequential, or punitive damages arising out of or relating to your use of the service." }), _jsx("h2", { style: { fontSize: '1.25rem', fontWeight: 600, marginTop: '2rem', marginBottom: '1rem', color: 'rgb(var(--color-text-primary))' }, children: "Changes to Terms" }), _jsx("p", { style: { marginBottom: '1rem' }, children: "We reserve the right to modify these terms at any time. We will notify users of any material changes by posting the new Terms of Service on this page." }), _jsx("h2", { style: { fontSize: '1.25rem', fontWeight: 600, marginTop: '2rem', marginBottom: '1rem', color: 'rgb(var(--color-text-primary))' }, children: "Contact Us" }), _jsx("p", { style: { marginBottom: '1rem' }, children: "If you have any questions about these Terms of Service, please contact us." })] })] })] }) }));
38
- }
39
- //# sourceMappingURL=terms.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"terms.js","sourceRoot":"","sources":["../../../src/ssr/routes/terms.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAG1D,MAAM,CAAC,MAAM,IAAI,GAAiB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE;IAChD,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,IAA4D,CAAC;IACtH,MAAM,OAAO,GAAG,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,IAAI,SAAS,CAAC;IAE3D,OAAO;QACL,EAAE,KAAK,EAAE,sBAAsB,OAAO,EAAE,EAAE;QAC1C,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,wBAAwB,OAAO,EAAE,EAAE;KACpE,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,SAAS;IAC/B,MAAM,EAAE,MAAM,EAAE,GAAG,gBAAgB,EAAoB,CAAC;IAExD,OAAO,CACL,cACE,KAAK,EAAE;YACL,SAAS,EAAE,OAAO;YAClB,eAA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