chat-js 1.0.0-alpha.8 → 1.0.0-beta.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.
Files changed (84) hide show
  1. package/README.md +7 -5
  2. package/dist/index.js +7161 -6308
  3. package/package.json +2 -2
  4. package/templates/chat-app/agent/agent.ts +0 -2
  5. package/templates/chat-app/app/editor.css +0 -6
  6. package/templates/chat-app/app/layout.tsx +11 -18
  7. package/templates/chat-app/app/opengraph-image.png +0 -0
  8. package/templates/chat-app/chat.config.ts +0 -44
  9. package/templates/chat-app/chatjs/core/gateway/runtime.ts +0 -7
  10. package/templates/chat-app/chatjs/core/ui/slots.tsx +15 -5
  11. package/templates/chat-app/chatjs/generated/installed-chat-ui.ts +4 -0
  12. package/templates/chat-app/chatjs/generated/installed.ts +2 -0
  13. package/templates/chat-app/chatjs/plugins/guest-chat/signed-out.tsx +7 -4
  14. package/templates/chat-app/chatjs/plugins/mcp/routes/connectors-page.tsx +4 -1
  15. package/templates/chat-app/chatjs/plugins/mcp/ui/connectors-settings.tsx +1 -1
  16. package/templates/chat-app/chatjs/plugins/mcp/ui/mcp-connect-dialog.tsx +1 -1
  17. package/templates/chat-app/chatjs/plugins/mcp/ui/mcp-create-dialog.tsx +1 -1
  18. package/templates/chat-app/chatjs/plugins/model-preferences/model-row.tsx +3 -0
  19. package/templates/chat-app/chatjs/plugins/model-preferences/models-settings.tsx +1 -0
  20. package/templates/chat-app/chatjs/plugins/projects/routes/project-page.tsx +10 -1
  21. package/templates/chat-app/chatjs/plugins/projects/ui/delete-project-dialog.tsx +0 -3
  22. package/templates/chat-app/chatjs/plugins/projects/ui/project-icon-picker.tsx +1 -0
  23. package/templates/chat-app/chatjs/plugins/streamdown-math/chat-ui.ts +11 -0
  24. package/templates/chat-app/chatjs/plugins/streamdown-math/plugin.json +6 -0
  25. package/templates/chat-app/chatjs/plugins/streamdown-mermaid/chat-ui.ts +10 -0
  26. package/templates/chat-app/chatjs/plugins/streamdown-mermaid/plugin.json +6 -0
  27. package/templates/chat-app/chatjs/providers/gateway.ts +49 -55
  28. package/templates/chat-app/chatjs/tools/generate-image/tool.test.ts +3 -14
  29. package/templates/chat-app/components/ai-elements/response.tsx +16 -15
  30. package/templates/chat-app/components/auth-form-view.tsx +35 -43
  31. package/templates/chat-app/components/chat/chat-composer.tsx +55 -20
  32. package/templates/chat-app/components/chat/chat-sidebar.tsx +5 -3
  33. package/templates/chat-app/components/composer/prompt-form.tsx +7 -1
  34. package/templates/chat-app/components/eve/eve-chat-error.tsx +12 -2
  35. package/templates/chat-app/components/eve/eve-conversation.tsx +223 -154
  36. package/templates/chat-app/components/eve/eve-creation-recovery.tsx +32 -1
  37. package/templates/chat-app/components/eve/eve-history-list.tsx +1 -1
  38. package/templates/chat-app/components/model-selection-indicator.tsx +12 -10
  39. package/templates/chat-app/components/model-selector-view.tsx +211 -186
  40. package/templates/chat-app/components/new-chat-button.tsx +1 -1
  41. package/templates/chat-app/components/settings/settings-nav.tsx +1 -1
  42. package/templates/chat-app/components/settings/settings-navigation-link.tsx +1 -0
  43. package/templates/chat-app/components/sidebar-top-row.tsx +1 -1
  44. package/templates/chat-app/components/ui/sidebar.tsx +1 -1
  45. package/templates/chat-app/components/ui/trace.tsx +1 -1
  46. package/templates/chat-app/hooks/use-auto-focus.ts +12 -13
  47. package/templates/chat-app/lib/ai/active-gateway.ts +0 -9
  48. package/templates/chat-app/lib/ai/app-models.test.ts +0 -4
  49. package/templates/chat-app/lib/ai/app-models.ts +11 -6
  50. package/templates/chat-app/lib/ai/gateways/registry.ts +4 -31
  51. package/templates/chat-app/lib/ai/model-catalog.ts +50 -0
  52. package/templates/chat-app/lib/ai/models.ts +4 -39
  53. package/templates/chat-app/lib/ai/providers.ts +2 -16
  54. package/templates/chat-app/lib/config-schema.ts +0 -96
  55. package/templates/chat-app/lib/devtools-disabled.ts +1 -0
  56. package/templates/chat-app/lib/eve/model-selection.test.ts +47 -50
  57. package/templates/chat-app/lib/eve/model-selection.ts +5 -37
  58. package/templates/chat-app/lib/eve/tool-cost.test.ts +18 -6
  59. package/templates/chat-app/lib/eve/tool-cost.ts +10 -18
  60. package/templates/chat-app/oxfmt.config.ts +0 -2
  61. package/templates/chat-app/package.json +7 -9
  62. package/templates/chat-app/proxy.ts +2 -4
  63. package/templates/chat-app/scripts/build-eve.test.ts +56 -0
  64. package/templates/chat-app/scripts/build-eve.ts +12 -5
  65. package/templates/chat-app/scripts/check-env.ts +2 -17
  66. package/templates/chat-app/scripts/environment-validation-report.ts +1 -20
  67. package/templates/chat-app/trpc/react.tsx +2 -2
  68. package/templates/electron/forge.config.ts +1 -19
  69. package/templates/electron/scripts/write-branding.ts +1 -5
  70. package/templates/chat-app/app/privacy/page.tsx +0 -153
  71. package/templates/chat-app/app/terms/page.tsx +0 -270
  72. package/templates/chat-app/components/ai-elements/context-hover.radix.tsx +0 -15
  73. package/templates/chat-app/components/ai-elements/context-hover.tsx +0 -17
  74. package/templates/chat-app/components/ai-elements/context.tsx +0 -405
  75. package/templates/chat-app/components/composer/editor.css +0 -96
  76. package/templates/chat-app/components/lexical-chat-input.tsx +0 -276
  77. package/templates/chat-app/components/model-selection-indicator.radix.tsx +0 -17
  78. package/templates/chat-app/components/ui/resizable.tsx +0 -49
  79. package/templates/chat-app/lib/ai/gateways/fallback-models.ts +0 -29
  80. package/templates/chat-app/lib/ai/models.generated.ts +0 -4242
  81. package/templates/chat-app/lib/ai/usage-token-details.test.ts +0 -76
  82. package/templates/chat-app/lib/ai/usage-token-details.ts +0 -33
  83. package/templates/chat-app/scripts/fetch-models.ts +0 -30
  84. package/templates/chat-app/scripts/gateway-snapshot-warning.test.ts +0 -9
@@ -3,11 +3,16 @@
3
3
  "version": "0.2.1",
4
4
  "private": true,
5
5
  "license": "Apache-2.0",
6
+ "imports": {
7
+ "#query-devtools": {
8
+ "default": "./lib/devtools-disabled.ts"
9
+ }
10
+ },
6
11
  "scripts": {
7
12
  "prebuild": "bun run check-env",
8
13
  "dev": "bun run check-env && EVE_SANDBOX_IMAGE_TAG=${EVE_SANDBOX_IMAGE_TAG:-0.80.1} next dev",
9
14
  "dev:inspect": "bun run check-env && EVE_SANDBOX_IMAGE_TAG=${EVE_SANDBOX_IMAGE_TAG:-0.80.1} next dev --inspect",
10
- "build": "tsx lib/db/migrate.ts --deployment && bun run eve:build && EVE_SANDBOX_IMAGE_TAG=${EVE_SANDBOX_IMAGE_TAG:-0.80.1} next build",
15
+ "build": "tsx lib/db/migrate.ts --deployment && bun run eve:build --next-host && EVE_SANDBOX_IMAGE_TAG=${EVE_SANDBOX_IMAGE_TAG:-0.80.1} next build",
11
16
  "analyze": "next experimental-analyze",
12
17
  "start": "EVE_SANDBOX_IMAGE_TAG=${EVE_SANDBOX_IMAGE_TAG:-0.80.1} next start",
13
18
  "prod": "bun run build && bun run start",
@@ -33,8 +38,6 @@
33
38
  "test:unit": "vitest run",
34
39
  "test:types": "rm -rf .next/dev/types && next typegen . && tsc --noEmit",
35
40
  "test:worker-bundle": "node scripts/check-worker-typescript.ts",
36
- "ai:devtools": "bunx @ai-sdk/devtools",
37
- "fetch:models": "bun scripts/fetch-models.ts && bun format",
38
41
  "dev:neon": "bash scripts/with-db.sh bun dev",
39
42
  "db:migrate:neon": "bash scripts/with-db.sh bun db:migrate",
40
43
  "db:connect": "bun scripts/check-db.ts",
@@ -45,7 +48,6 @@
45
48
  "eve:check": "tsx scripts/eve-setup.ts --check"
46
49
  },
47
50
  "dependencies": {
48
- "@ai-sdk/devtools": "1.0.75",
49
51
  "@ai-sdk/gateway": "4.0.145",
50
52
  "@ai-sdk/mcp": "2.0.99",
51
53
  "@ai-sdk/provider": "4.0.38",
@@ -54,7 +56,6 @@
54
56
  "@better-auth/core": "1.6.2",
55
57
  "@better-auth/electron": "1.6.2",
56
58
  "@hookform/resolvers": "^5.2.1",
57
- "@lexical/react": "^0.32.1",
58
59
  "@modelcontextprotocol/sdk": "^1.24.3",
59
60
  "@shadcn/react": "0.3.1",
60
61
  "@streamdown/code": "^1.1.1",
@@ -63,7 +64,6 @@
63
64
  "@supabase/storage-js": "2.117.2",
64
65
  "@t3-oss/env-nextjs": "^0.13.8",
65
66
  "@tanstack/react-query": "^5.104.1",
66
- "@tanstack/react-query-devtools": "^5.80.3",
67
67
  "@trpc/client": "^11.1.2",
68
68
  "@trpc/server": "^11.1.2",
69
69
  "@trpc/tanstack-react-query": "^11.1.2",
@@ -87,7 +87,7 @@
87
87
  "fast-deep-equal": "^3.1.3",
88
88
  "files-sdk": "2.5.0",
89
89
  "guarded-fetch": "^0.1.4",
90
- "lexical": "^0.32.1",
90
+ "katex": "0.16.45",
91
91
  "lucide-react": "0.553.0",
92
92
  "motion": "^12.23.24",
93
93
  "nanoid": "^5.0.8",
@@ -100,7 +100,6 @@
100
100
  "react-dom": "19.2.3",
101
101
  "react-hook-form": "^7.62.0",
102
102
  "react-markdown": "^10.1.0",
103
- "react-resizable-panels": "^4.15.0",
104
103
  "server-only": "^0.0.1",
105
104
  "shadcn": "^4.22.1",
106
105
  "shiki": "^3.19.0",
@@ -108,7 +107,6 @@
108
107
  "streamdown": "^2.5.0",
109
108
  "superjson": "^2.2.2",
110
109
  "tailwind-merge": "^3.3.1",
111
- "tokenlens": "^1.3.1",
112
110
  "typescript": "6.0.2",
113
111
  "usehooks-ts": "^3.1.0",
114
112
  "uuid": "^11.1.0",
@@ -28,9 +28,7 @@ const isPublicPage = (pathname: string): boolean => {
28
28
  return (
29
29
  pathname.startsWith("/models") ||
30
30
  pathname.startsWith("/compare") ||
31
- pathname.startsWith("/share/") ||
32
- pathname.startsWith("/privacy") ||
33
- pathname.startsWith("/terms")
31
+ pathname.startsWith("/share/")
34
32
  );
35
33
  };
36
34
 
@@ -123,6 +121,6 @@ export const config = {
123
121
  * - compare
124
122
  * - docs (Blume documentation)
125
123
  */
126
- "/((?!api|docs|_next/static|_next/image|favicon.ico|opengraph-image|manifest|models|compare|privacy|terms|.*[.](?:svg|png|jpg|jpeg|gif|webp|ico|json|webmanifest)$).*)",
124
+ "/((?!api|docs|_next/static|_next/image|favicon.ico|opengraph-image|manifest|models|compare|.*[.](?:svg|png|jpg|jpeg|gif|webp|ico|json|webmanifest)$).*)",
127
125
  ],
128
126
  };
@@ -0,0 +1,56 @@
1
+ import { afterEach, expect, it, vi } from "vitest";
2
+
3
+ const spawn = vi.hoisted(() => vi.fn());
4
+ vi.mock("node:child_process", () => ({ spawnSync: spawn }));
5
+
6
+ const originalArgs = process.argv;
7
+ const check = ["x", "tsx", "scripts/check-workflow-backend.ts"];
8
+ const compile = ["x", "eve", "build"];
9
+
10
+ afterEach(() => {
11
+ process.argv = originalArgs;
12
+ vi.unstubAllEnvs();
13
+ vi.resetModules();
14
+ spawn.mockReset();
15
+ });
16
+
17
+ it.each([
18
+ {
19
+ target: "Vercel Next host",
20
+ vercel: "1",
21
+ args: ["--next-host"],
22
+ commands: [check],
23
+ },
24
+ {
25
+ target: "explicit Vercel worker",
26
+ vercel: "1",
27
+ args: [],
28
+ commands: [check, compile],
29
+ },
30
+ {
31
+ target: "self-hosted Next app",
32
+ vercel: undefined,
33
+ args: ["--next-host"],
34
+ commands: [check, compile],
35
+ },
36
+ ])(
37
+ "runs the required build steps for the $target",
38
+ async ({ vercel, args, commands }) => {
39
+ vi.stubEnv("VERCEL", vercel);
40
+ process.argv = ["node", "build-eve.ts", ...args];
41
+ spawn.mockReturnValue({ status: 0 });
42
+ await import("./build-eve");
43
+ expect(spawn.mock.calls).toEqual(
44
+ commands.map((command) => ["bun", command, { stdio: "inherit" }])
45
+ );
46
+ }
47
+ );
48
+
49
+ it("stops before compiling when backend validation fails", async () => {
50
+ process.argv = ["node", "build-eve.ts"];
51
+ spawn.mockReturnValue({ status: 1 });
52
+ await expect(import("./build-eve")).rejects.toThrow(
53
+ "backend compatibility check failed"
54
+ );
55
+ expect(spawn.mock.calls).toEqual([["bun", check, { stdio: "inherit" }]]);
56
+ });
@@ -20,9 +20,16 @@ if (backendCheck.status !== PROCESS_SUCCESS_STATUS) {
20
20
  );
21
21
  }
22
22
 
23
- const result = spawnSync("bun", ["x", "eve", "build"], {
24
- stdio: "inherit",
25
- });
26
- if (result.status !== PROCESS_SUCCESS_STATUS) {
27
- throw new Error("EVE build failed", { cause: result.error });
23
+ // withEve registers a separate Vercel service that builds and prewarms the
24
+ // worker. Local next start and explicit eve:build still need the worker here.
25
+ const vercelBuildsWorker =
26
+ process.env.VERCEL === "1" && process.argv.includes("--next-host");
27
+
28
+ if (!vercelBuildsWorker) {
29
+ const result = spawnSync("bun", ["x", "eve", "build"], {
30
+ stdio: "inherit",
31
+ });
32
+ if (result.status !== PROCESS_SUCCESS_STATUS) {
33
+ throw new Error("EVE build failed", { cause: result.error });
34
+ }
28
35
  }
@@ -9,11 +9,7 @@ import {
9
9
  getMissingRequirement,
10
10
  isRequirementSatisfied,
11
11
  } from "@/lib/config-requirements";
12
- import {
13
- formatGatewaySnapshotWarning,
14
- reportEnvironmentFailure,
15
- reportEnvironmentSuccess,
16
- } from "./environment-validation-report";
12
+ import { reportEnvironmentFailure } from "./environment-validation-report";
17
13
  import {
18
14
  storageEnvRequirements,
19
15
  storageId,
@@ -23,7 +19,6 @@ import { config } from "@/lib/config";
23
19
  import { databaseEnvOptions } from "@/lib/db/connection";
24
20
  import fs from "node:fs/promises";
25
21
  import { gatewayEnvRequirements } from "@/chatjs/providers/gateway-defaults";
26
- import { generatedForGateway } from "@/lib/ai/models.generated";
27
22
  import { getEveRuntimeEnvOptions } from "@/lib/env-schema";
28
23
  import { isPlaywrightTestEnvironment } from "@/lib/playwright-test-environment";
29
24
  import { config as loadEnvConfig } from "dotenv";
@@ -235,14 +230,6 @@ const validateBaseUrl = (
235
230
  };
236
231
  };
237
232
 
238
- const checkGatewaySnapshot = (): string | null => {
239
- const configuredGateway: string = config.ai.gateway;
240
- if (configuredGateway !== generatedForGateway) {
241
- return formatGatewaySnapshotWarning(generatedForGateway, configuredGateway);
242
- }
243
- return null;
244
- };
245
-
246
233
  const validateDatabaseEnvironment = (
247
234
  env: Readonly<NodeJS.ProcessEnv>
248
235
  ): ValidationError[] => {
@@ -306,8 +293,6 @@ const checkEnv = async (): Promise<void> => {
306
293
  console.log(
307
294
  "✅ Skipping optional environment validation in Playwright test mode"
308
295
  );
309
- // Playwright CI only exercises anonymous flows, so optional feature checks
310
- // and the gateway snapshot warning stay enforced in non-Playwright builds.
311
296
  return;
312
297
  }
313
298
 
@@ -335,7 +320,7 @@ const checkEnv = async (): Promise<void> => {
335
320
  if (reportEnvironmentFailure(errors)) {
336
321
  process.exit(VALIDATION_FAILURE_EXIT_STATUS);
337
322
  }
338
- reportEnvironmentSuccess(checkGatewaySnapshot());
323
+ console.log("✅ Environment validation passed");
339
324
  };
340
325
 
341
326
  try {
@@ -1,12 +1,6 @@
1
1
  const EMPTY_DIAGNOSTIC_COUNT = 0;
2
2
 
3
- const formatGatewaySnapshotWarning = (
4
- generatedForGateway: string,
5
- configuredGateway: string
6
- ): string =>
7
- `models.generated.ts was built for "${generatedForGateway}" but config uses "${configuredGateway}". Run \`bun fetch:models\` to update the fallback snapshot.`;
8
-
9
- const reportEnvironmentFailure = (
3
+ export const reportEnvironmentFailure = (
10
4
  errors: readonly {
11
5
  readonly feature: string;
12
6
  readonly missing: readonly string[];
@@ -31,16 +25,3 @@ const reportEnvironmentFailure = (
31
25
 
32
26
  return false;
33
27
  };
34
-
35
- const reportEnvironmentSuccess = (snapshotWarning: string | null): void => {
36
- if (snapshotWarning !== null) {
37
- console.warn(`⚠️ ${snapshotWarning}`);
38
- }
39
-
40
- console.log("✅ Environment validation passed");
41
- };
42
- export {
43
- formatGatewaySnapshotWarning,
44
- reportEnvironmentFailure,
45
- reportEnvironmentSuccess,
46
- };
@@ -4,7 +4,7 @@ import { QueryClientProvider, environmentManager } from "@tanstack/react-query";
4
4
  import React, { useMemo } from "react";
5
5
  import type { AppRouter } from "@/trpc/routers/_app";
6
6
  import type { QueryClient } from "@tanstack/react-query";
7
- import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
7
+ import { ReactQueryDevtools } from "#query-devtools";
8
8
  import { createTRPCClient, httpBatchLink, loggerLink } from "@trpc/client";
9
9
  import type { ReadonlyReactNode } from "@/lib/readonly-react-node";
10
10
  import { TRPCProvider } from "./context";
@@ -89,7 +89,7 @@ const TRPCReactProvider = (props: {
89
89
  </TRPCProvider>
90
90
  {process.env.NODE_ENV === "development" &&
91
91
  env.NEXT_PUBLIC_REACT_QUERY_DEVTOOLS === "1" ? (
92
- <ReactQueryDevtools initialIsOpen={false} />
92
+ <ReactQueryDevtools />
93
93
  ) : null}
94
94
  </QueryClientProvider>
95
95
  );
@@ -13,8 +13,6 @@ interface Branding {
13
13
  appName: string;
14
14
  appPrefix: string;
15
15
  appUrl: string;
16
- orgName?: string;
17
- orgEmail?: string;
18
16
  }
19
17
 
20
18
  const SUCCESS_EXIT_CODE = 0;
@@ -99,20 +97,12 @@ const loadBranding = (): Branding => {
99
97
  appName: branding.appName,
100
98
  appPrefix: branding.appPrefix,
101
99
  appUrl: branding.appUrl,
102
- orgEmail:
103
- "orgEmail" in branding && typeof branding.orgEmail === "string"
104
- ? branding.orgEmail
105
- : undefined,
106
- orgName:
107
- "orgName" in branding && typeof branding.orgName === "string"
108
- ? branding.orgName
109
- : undefined,
110
100
  };
111
101
  };
112
102
 
113
103
  const createForgeConfig = (): ForgeConfig => {
114
104
  const branding = loadBranding();
115
- const { appName, appPrefix, orgName, orgEmail } = branding;
105
+ const { appName, appPrefix } = branding;
116
106
 
117
107
  return {
118
108
  hooks: {
@@ -139,7 +129,6 @@ const createForgeConfig = (): ForgeConfig => {
139
129
  ),
140
130
  new MakerSquirrel(
141
131
  {
142
- authors: orgName ?? appName,
143
132
  description: `${appName} desktop application`,
144
133
  name: appPrefix,
145
134
  setupExe: `${appName}-windows.exe`,
@@ -153,13 +142,6 @@ const createForgeConfig = (): ForgeConfig => {
153
142
  categories: ["Utility"],
154
143
  homepage: branding.appUrl,
155
144
  icon: "./build/icon.png",
156
- maintainer:
157
- typeof orgName === "string" &&
158
- orgName !== "" &&
159
- typeof orgEmail === "string" &&
160
- orgEmail !== ""
161
- ? `${orgName} <${orgEmail}>`
162
- : (orgName ?? orgEmail ?? appName),
163
145
  },
164
146
  },
165
147
  ["linux"]
@@ -6,9 +6,7 @@ import {
6
6
  } from "../../chatjs/plugins/desktop/protocol";
7
7
  import { writeFile } from "node:fs/promises";
8
8
 
9
- const { appName, appPrefix, appUrl, organization } = config;
10
- const orgEmail =
11
- organization.contact?.privacyEmail || organization.contact?.legalEmail;
9
+ const { appName, appPrefix, appUrl } = config;
12
10
 
13
11
  const JSON_INDENTATION_SPACES = 2;
14
12
  const FAILURE_EXIT_CODE = 1;
@@ -18,8 +16,6 @@ const brandingJson = JSON.stringify(
18
16
  appName,
19
17
  appPrefix,
20
18
  appUrl,
21
- orgEmail,
22
- orgName: organization.name,
23
19
  auth: {
24
20
  callbackPath: ELECTRON_AUTH_CALLBACK_PATH,
25
21
  clientId: ELECTRON_AUTH_CLIENT_ID,
@@ -1,153 +0,0 @@
1
- import React from "react";
2
-
3
- import { config } from "@/lib/config";
4
-
5
- const PrivacyPage = (): React.JSX.Element => (
6
- <main className="prose dark:prose-invert container mx-auto max-w-3xl py-10">
7
- <h1>{config.policies.privacy.title}</h1>
8
- {(config.policies.privacy.lastUpdated ?? "").length > 0 ? (
9
- <p>
10
- <strong>Last updated:</strong> {config.policies.privacy.lastUpdated}
11
- </p>
12
- ) : null}
13
-
14
- <p>
15
- At {config.organization.name}, we respect your privacy and are committed
16
- to protecting your personal data. This Privacy Policy explains how we
17
- collect, use, and safeguard your information when you use our service.
18
- </p>
19
-
20
- <h2>Information We Collect</h2>
21
- <p>We may collect the following types of information:</p>
22
- <ul>
23
- <li>
24
- <strong>Search Queries</strong>: The questions and searches you submit
25
- to our service.
26
- </li>
27
- <li>
28
- <strong>Usage Data</strong>: Information about how you interact with our
29
- service, including features used and time spent on the platform.
30
- </li>
31
- <li>
32
- <strong>Device Information</strong>: Information about your device,
33
- browser type, IP address, and operating system.
34
- </li>
35
- <li>
36
- <strong>Account Information</strong>: Email address and profile
37
- information when you create an account.
38
- </li>
39
- <li>
40
- <strong>Subscription Data</strong>: Information about your subscription
41
- status and billing history (but not payment details).
42
- </li>
43
- <li>
44
- <strong>Cookies and Similar Technologies</strong>: We use cookies and
45
- similar tracking technologies to enhance your experience and collect
46
- usage information.
47
- </li>
48
- </ul>
49
- <p>
50
- <strong>Important Note on Payment Data</strong>:{" "}
51
- {config.organization.name} does not collect, store, or process any payment
52
- card details, bank information, or other sensitive payment data. All
53
- payment information is handled directly by our payment processors (
54
- {config.services.paymentProcessors.join(", ")}) and is subject to their
55
- respective privacy policies and security standards.
56
- </p>
57
-
58
- <h2>How We Use Your Information</h2>
59
- <ul>
60
- <li>To provide and improve our service</li>
61
- <li>To understand how users interact with our platform</li>
62
- <li>To personalize and enhance your experience</li>
63
- <li>To monitor and analyze usage patterns and trends</li>
64
- <li>To detect, prevent, and address technical issues</li>
65
- </ul>
66
-
67
- <h2>Data Sharing and Disclosure</h2>
68
- <p>We may share your information in the following circumstances:</p>
69
- <ul>
70
- <li>
71
- <strong>Service Providers</strong>: With third-party service providers
72
- who help us operate, improve, and analyze our service.
73
- </li>
74
- <li>
75
- <strong>Hosting</strong>: {config.services.hosting} hosts our
76
- infrastructure.
77
- </li>
78
- <li>
79
- <strong>AI Processing Partners</strong>: We utilize services from
80
- companies including {config.services.aiProviders.join(", ")} to process
81
- queries and provide results.
82
- </li>
83
- <li>
84
- <strong>Payment Processors</strong>: We use{" "}
85
- {config.services.paymentProcessors.join(", ")} to process payments and
86
- manage subscriptions. These providers handle all payment data directly
87
- and have their own privacy policies governing payment information.
88
- </li>
89
- <li>
90
- <strong>Compliance with Laws</strong>: When required by applicable law,
91
- regulation, legal process, or governmental request.
92
- </li>
93
- <li>
94
- <strong>Business Transfers</strong>: In connection with a merger,
95
- acquisition, or sale of assets.
96
- </li>
97
- </ul>
98
- <p>
99
- <strong>Payment Data</strong>: When you make a payment, your payment
100
- information is transmitted directly to our payment processors and is not
101
- stored on our servers. We only receive confirmation of successful payments
102
- and subscription status updates.
103
- </p>
104
-
105
- <h2>Data Security</h2>
106
- <p>
107
- We implement appropriate technical and organizational measures to protect
108
- your personal information. However, no method of transmission over the
109
- Internet or electronic storage is 100% secure, and we cannot guarantee
110
- absolute security.
111
- </p>
112
-
113
- <h2>Your Rights</h2>
114
- <p>Depending on your location, you may have the right to:</p>
115
- <ul>
116
- <li>Access the personal information we hold about you</li>
117
- <li>Request correction or deletion of your personal information</li>
118
- <li>Object to or restrict certain processing activities</li>
119
- <li>Data portability</li>
120
- <li>Withdraw consent where applicable</li>
121
- </ul>
122
-
123
- <h2>Children&apos;s Privacy</h2>
124
- <p>
125
- Our service is not directed to children under the age of
126
- {` ${config.legal.minimumAge}`}. We do not knowingly collect personal
127
- information from children under
128
- {` ${config.legal.minimumAge}`}. If you are a parent or guardian and
129
- believe your child has provided us with personal information, please
130
- contact us.
131
- </p>
132
-
133
- <h2>Changes to This Privacy Policy</h2>
134
- <p>
135
- We may update our Privacy Policy from time to time. We will notify you of
136
- any changes by posting the new Privacy Policy on this page and updating
137
- the &quot;Last updated&quot; date.
138
- </p>
139
-
140
- <h2>Contact Us</h2>
141
- <p>
142
- If you have any questions about this Privacy Policy, please contact us at:{" "}
143
- {config.organization.contact.privacyEmail}
144
- </p>
145
-
146
- <p>
147
- By using {config.appName}, you agree to our Privacy Policy and our Terms
148
- of Service.
149
- </p>
150
- </main>
151
- );
152
-
153
- export default PrivacyPage;