chat-js 1.0.0-alpha.7 → 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 (305) hide show
  1. package/README.md +8 -6
  2. package/dist/index.js +7487 -6859
  3. package/package.json +2 -2
  4. package/templates/chat-app/AGENTS.md +1 -1
  5. package/templates/chat-app/agent/agent.ts +0 -2
  6. package/templates/chat-app/agent/hooks/followup-suggestions.ts +1 -1
  7. package/templates/chat-app/agent/hooks/projects.ts +1 -1
  8. package/templates/chat-app/agent/hooks/search.ts +1 -1
  9. package/templates/chat-app/agent/instructions/projects.ts +1 -1
  10. package/templates/chat-app/agent/tools/mcp.ts +1 -1
  11. package/templates/chat-app/app/(auth)/device-login/page.tsx +1 -1
  12. package/templates/chat-app/app/(chat)/api/files/upload/route.ts +1 -1
  13. package/templates/chat-app/app/(chat)/chat/{[id] → [chatId]}/page.tsx +4 -4
  14. package/templates/chat-app/app/(chat)/project/[projectId]/chat/[chatId]/page.tsx +1 -1
  15. package/templates/chat-app/app/(chat)/project/[projectId]/page.tsx +1 -1
  16. package/templates/chat-app/app/(chat)/settings/connectors/[connectorId]/page.tsx +1 -1
  17. package/templates/chat-app/app/(chat)/settings/connectors/page.tsx +1 -1
  18. package/templates/chat-app/app/(chat)/settings/models/page.tsx +1 -1
  19. package/templates/chat-app/app/(chat)/share/[id]/page.tsx +1 -1
  20. package/templates/chat-app/app/api/agent-conversations/route.test.ts +5 -5
  21. package/templates/chat-app/app/api/agent-conversations/route.ts +2 -2
  22. package/templates/chat-app/app/api/agent-response-groups/route.test.ts +5 -5
  23. package/templates/chat-app/app/api/agent-response-groups/route.ts +1 -1
  24. package/templates/chat-app/app/api/eve/[...path]/route.test.ts +133 -4
  25. package/templates/chat-app/app/api/eve/[...path]/route.ts +175 -49
  26. package/templates/chat-app/app/api/eve-guest/route.ts +1 -1
  27. package/templates/chat-app/app/api/mcp/oauth/callback/route.ts +1 -1
  28. package/templates/chat-app/app/editor.css +0 -6
  29. package/templates/chat-app/app/layout.tsx +11 -18
  30. package/templates/chat-app/app/opengraph-image.png +0 -0
  31. package/templates/chat-app/chat.config.ts +0 -44
  32. package/templates/chat-app/chatjs/core/chat/compose.ts +4 -4
  33. package/templates/chat-app/chatjs/core/chat/contracts.ts +6 -6
  34. package/templates/chat-app/chatjs/core/gateway/runtime.ts +0 -7
  35. package/templates/chat-app/chatjs/core/installation/contracts.ts +0 -7
  36. package/templates/chat-app/chatjs/core/ui/slots.tsx +15 -5
  37. package/templates/chat-app/chatjs/generated/installed-auth-ui.ts +2 -2
  38. package/templates/chat-app/chatjs/generated/installed-auth.ts +4 -2
  39. package/templates/chat-app/chatjs/generated/installed-billing.ts +2 -2
  40. package/templates/chat-app/chatjs/generated/installed-chat-ui.ts +28 -24
  41. package/templates/chat-app/chatjs/generated/installed-chat.ts +12 -12
  42. package/templates/chat-app/chatjs/generated/installed-cleanup.ts +4 -4
  43. package/templates/chat-app/chatjs/generated/installed-instrumentation.ts +8 -2
  44. package/templates/chat-app/chatjs/generated/installed-layout.ts +2 -2
  45. package/templates/chat-app/chatjs/generated/installed-model-visibility.ts +2 -2
  46. package/templates/chat-app/chatjs/generated/installed-navigation.ts +2 -2
  47. package/templates/chat-app/chatjs/generated/installed-routers.ts +18 -19
  48. package/templates/chat-app/chatjs/generated/installed-session-profiles.ts +5 -3
  49. package/templates/chat-app/chatjs/generated/installed-sign-out.ts +2 -2
  50. package/templates/chat-app/chatjs/generated/installed-signed-out.ts +2 -2
  51. package/templates/chat-app/chatjs/generated/installed-uploads.ts +2 -2
  52. package/templates/chat-app/chatjs/generated/installed.ts +2 -0
  53. package/templates/chat-app/chatjs/plugins/ai-titles/{chat.ts → chat-server.ts} +3 -1
  54. package/templates/chat-app/chatjs/plugins/ai-titles/generate-title.ts +7 -9
  55. package/templates/chat-app/chatjs/plugins/ai-titles/{chatjs.json → plugin.json} +3 -4
  56. package/templates/chat-app/chatjs/plugins/ai-titles/title-queries.ts +4 -4
  57. package/templates/chat-app/chatjs/plugins/attachment-uploads/{client-plugin.ts → chat-ui.ts} +1 -3
  58. package/templates/chat-app/chatjs/plugins/attachment-uploads/plugin.json +16 -0
  59. package/templates/chat-app/chatjs/plugins/credits/billing.ts +3 -1
  60. package/templates/chat-app/chatjs/plugins/credits/{client-plugin.ts → chat-ui.ts} +1 -1
  61. package/templates/chat-app/chatjs/plugins/credits/{chatjs.json → plugin.json} +4 -13
  62. package/templates/chat-app/chatjs/plugins/credits/router.ts +4 -2
  63. package/templates/chat-app/chatjs/plugins/desktop/auth-form.tsx +3 -1
  64. package/templates/chat-app/chatjs/plugins/desktop/auth-server.ts +3 -1
  65. package/templates/chat-app/chatjs/plugins/desktop/{client-plugin.ts → layout-ui.ts} +1 -1
  66. package/templates/chat-app/chatjs/plugins/desktop/navigation.ts +3 -1
  67. package/templates/chat-app/chatjs/plugins/desktop/{chatjs.json → plugin.json} +4 -16
  68. package/templates/chat-app/chatjs/plugins/desktop/sign-out.ts +3 -1
  69. package/templates/chat-app/chatjs/plugins/feedback/chat-server.ts +13 -0
  70. package/templates/chat-app/chatjs/plugins/feedback/{client-plugin.ts → chat-ui.ts} +1 -1
  71. package/templates/chat-app/chatjs/plugins/feedback/feedback-actions.tsx +4 -4
  72. package/templates/chat-app/chatjs/plugins/feedback/feedback-queries.ts +11 -11
  73. package/templates/chat-app/chatjs/plugins/feedback/feedback-schema.ts +2 -2
  74. package/templates/chat-app/chatjs/plugins/feedback/{chatjs.json → plugin.json} +5 -14
  75. package/templates/chat-app/chatjs/plugins/feedback/router.ts +9 -7
  76. package/templates/chat-app/chatjs/plugins/feedback/vote-message.ts +3 -6
  77. package/templates/chat-app/chatjs/plugins/followup-suggestions/{chat.ts → chat-server.ts} +3 -1
  78. package/templates/chat-app/chatjs/plugins/followup-suggestions/{client-plugin.ts → chat-ui.ts} +1 -1
  79. package/templates/chat-app/chatjs/plugins/followup-suggestions/followup-queries.ts +2 -2
  80. package/templates/chat-app/chatjs/plugins/followup-suggestions/{chatjs.json → plugin.json} +5 -17
  81. package/templates/chat-app/chatjs/plugins/followup-suggestions/router.ts +8 -9
  82. package/templates/chat-app/chatjs/plugins/followup-suggestions/suggestions.tsx +2 -7
  83. package/templates/chat-app/chatjs/plugins/followup-suggestions/use-followups.ts +2 -2
  84. package/templates/chat-app/chatjs/plugins/guest-chat/cleanup.ts +1 -7
  85. package/templates/chat-app/chatjs/plugins/guest-chat/guest-auth.ts +1 -0
  86. package/templates/chat-app/chatjs/plugins/guest-chat/instrumentation.ts +6 -0
  87. package/templates/chat-app/chatjs/plugins/guest-chat/{chatjs.json → plugin.json} +6 -12
  88. package/templates/chat-app/chatjs/plugins/guest-chat/session-profile.ts +3 -1
  89. package/templates/chat-app/chatjs/plugins/guest-chat/signed-out.tsx +53 -24
  90. package/templates/chat-app/chatjs/plugins/image-viewer/{client-plugin.ts → chat-ui.ts} +1 -1
  91. package/templates/chat-app/chatjs/plugins/image-viewer/plugin.json +11 -0
  92. package/templates/chat-app/chatjs/plugins/mcp/{client-plugin.ts → chat-ui.ts} +1 -1
  93. package/templates/chat-app/chatjs/plugins/mcp/db/encrypted-text.ts +1 -1
  94. package/templates/chat-app/chatjs/plugins/mcp/{chatjs.json → plugin.json} +5 -13
  95. package/templates/chat-app/chatjs/plugins/mcp/router.ts +4 -2
  96. package/templates/chat-app/chatjs/plugins/mcp/routes/connectors-page.tsx +4 -1
  97. package/templates/chat-app/chatjs/plugins/mcp/setup.ts +2 -2
  98. package/templates/chat-app/chatjs/plugins/mcp/ui/connectors-settings.tsx +1 -1
  99. package/templates/chat-app/chatjs/plugins/mcp/ui/mcp-connect-dialog.tsx +1 -1
  100. package/templates/chat-app/chatjs/plugins/mcp/ui/mcp-create-dialog.tsx +1 -1
  101. package/templates/chat-app/chatjs/plugins/mcp/{mcp-env.ts → validate-env.ts} +2 -1
  102. package/templates/chat-app/chatjs/plugins/model-preferences/{client-plugin.ts → chat-ui.ts} +1 -3
  103. package/templates/chat-app/chatjs/plugins/model-preferences/model-row.tsx +3 -0
  104. package/templates/chat-app/chatjs/plugins/model-preferences/{use-model-preferences.ts → model-visibility.ts} +1 -1
  105. package/templates/chat-app/chatjs/plugins/model-preferences/models-settings.tsx +1 -0
  106. package/templates/chat-app/chatjs/plugins/model-preferences/{chatjs.json → plugin.json} +5 -13
  107. package/templates/chat-app/chatjs/plugins/model-preferences/router.ts +5 -1
  108. package/templates/chat-app/chatjs/plugins/projects/{chat.ts → chat-server.ts} +3 -1
  109. package/templates/chat-app/chatjs/plugins/projects/{client-plugin.ts → chat-ui.ts} +1 -1
  110. package/templates/chat-app/chatjs/plugins/projects/conversation-hook.ts +1 -1
  111. package/templates/chat-app/chatjs/plugins/projects/db/project-queries.ts +2 -2
  112. package/templates/chat-app/chatjs/plugins/projects/{chatjs.json → plugin.json} +5 -14
  113. package/templates/chat-app/chatjs/plugins/projects/router.ts +7 -7
  114. package/templates/chat-app/chatjs/plugins/projects/routes/project-page.tsx +10 -1
  115. package/templates/chat-app/chatjs/plugins/projects/ui/chat-contributions.tsx +3 -3
  116. package/templates/chat-app/chatjs/plugins/projects/ui/delete-project-dialog.tsx +0 -3
  117. package/templates/chat-app/chatjs/plugins/projects/ui/eve-move-project-dialog.tsx +1 -1
  118. package/templates/chat-app/chatjs/plugins/projects/ui/project-icon-picker.tsx +1 -0
  119. package/templates/chat-app/chatjs/plugins/projects/ui/sidebar-projects.tsx +12 -11
  120. package/templates/chat-app/chatjs/plugins/search/{chat.ts → chat-server.ts} +8 -6
  121. package/templates/chat-app/chatjs/plugins/search/{client-plugin.ts → chat-ui.ts} +1 -1
  122. package/templates/chat-app/chatjs/plugins/search/{chatjs.json → plugin.json} +5 -14
  123. package/templates/chat-app/chatjs/plugins/search/router.ts +4 -2
  124. package/templates/chat-app/chatjs/plugins/search/search-backfill.ts +4 -4
  125. package/templates/chat-app/chatjs/plugins/search/search-chats.tsx +1 -1
  126. package/templates/chat-app/chatjs/plugins/search/search-hook.ts +2 -2
  127. package/templates/chat-app/chatjs/plugins/search/search-queries.ts +13 -13
  128. package/templates/chat-app/chatjs/plugins/search/search-results-view.tsx +2 -2
  129. package/templates/chat-app/chatjs/plugins/search/search-schema.ts +3 -3
  130. package/templates/chat-app/chatjs/plugins/sharing/{chat.ts → chat-server.ts} +3 -1
  131. package/templates/chat-app/chatjs/plugins/sharing/{client-plugin.ts → chat-ui.ts} +1 -1
  132. package/templates/chat-app/chatjs/plugins/sharing/{chatjs.json → plugin.json} +5 -14
  133. package/templates/chat-app/chatjs/plugins/sharing/router.ts +4 -2
  134. package/templates/chat-app/chatjs/plugins/sharing/ui/chat-contributions.tsx +9 -11
  135. package/templates/chat-app/chatjs/plugins/sharing/ui/share-button.tsx +6 -6
  136. package/templates/chat-app/chatjs/plugins/sharing/ui/share-dialog.tsx +9 -9
  137. package/templates/chat-app/chatjs/plugins/spreadsheet-viewer/{client-plugin.ts → chat-ui.ts} +1 -1
  138. package/templates/chat-app/chatjs/plugins/spreadsheet-viewer/plugin.json +12 -0
  139. package/templates/chat-app/chatjs/plugins/streamdown-math/chat-ui.ts +11 -0
  140. package/templates/chat-app/chatjs/plugins/streamdown-math/plugin.json +6 -0
  141. package/templates/chat-app/chatjs/plugins/streamdown-mermaid/chat-ui.ts +10 -0
  142. package/templates/chat-app/chatjs/plugins/streamdown-mermaid/plugin.json +6 -0
  143. package/templates/chat-app/chatjs/plugins/video-viewer/{client-plugin.ts → chat-ui.ts} +1 -1
  144. package/templates/chat-app/chatjs/plugins/video-viewer/plugin.json +10 -0
  145. package/templates/chat-app/chatjs/providers/gateway.ts +49 -55
  146. package/templates/chat-app/chatjs/tools/attach-workspace-file/tool.ts +2 -2
  147. package/templates/chat-app/chatjs/tools/generate-image/tool.test.ts +3 -14
  148. package/templates/chat-app/components/ai-elements/response.tsx +16 -15
  149. package/templates/chat-app/components/auth-form-view.tsx +35 -43
  150. package/templates/chat-app/components/chat/chat-composer.tsx +90 -27
  151. package/templates/chat-app/components/chat/chat-conversation-screen.tsx +3 -3
  152. package/templates/chat-app/components/chat/chat-navigation.tsx +11 -1
  153. package/templates/chat-app/components/chat/chat-sidebar.tsx +8 -9
  154. package/templates/chat-app/components/chat/chat-transcript.tsx +52 -23
  155. package/templates/chat-app/components/chat-slots.tsx +1 -1
  156. package/templates/chat-app/components/composer/composer-menu.tsx +5 -4
  157. package/templates/chat-app/components/composer/prompt-form.tsx +7 -1
  158. package/templates/chat-app/components/eve/eve-chat-error.tsx +12 -2
  159. package/templates/chat-app/components/eve/eve-chat-header.tsx +5 -7
  160. package/templates/chat-app/components/eve/eve-chat-page.tsx +9 -9
  161. package/templates/chat-app/components/eve/eve-composer.tsx +16 -5
  162. package/templates/chat-app/components/eve/eve-conversation.tsx +342 -209
  163. package/templates/chat-app/components/eve/eve-creation-recovery.tsx +53 -3
  164. package/templates/chat-app/components/eve/eve-deletion-provider.tsx +10 -12
  165. package/templates/chat-app/components/eve/eve-history-list.tsx +4 -9
  166. package/templates/chat-app/components/eve/eve-logical-context.tsx +1 -0
  167. package/templates/chat-app/components/eve/eve-logical-navigation.tsx +3 -3
  168. package/templates/chat-app/components/eve/eve-message-content.tsx +252 -0
  169. package/templates/chat-app/components/eve/eve-message-part.tsx +13 -58
  170. package/templates/chat-app/components/eve/eve-pending-input.tsx +82 -5
  171. package/templates/chat-app/components/eve/eve-runtime-provider.tsx +74 -15
  172. package/templates/chat-app/components/eve/use-eve-composer-draft.ts +64 -26
  173. package/templates/chat-app/components/eve/use-eve-fork.ts +14 -16
  174. package/templates/chat-app/components/eve/use-logical-commands.ts +3 -3
  175. package/templates/chat-app/components/eve/use-new-eve-conversation.tsx +42 -7
  176. package/templates/chat-app/components/model-selection-indicator.tsx +12 -10
  177. package/templates/chat-app/components/model-selector-view.tsx +211 -186
  178. package/templates/chat-app/components/new-chat-button.tsx +1 -1
  179. package/templates/chat-app/components/parallel-responses/model-picker.tsx +5 -1
  180. package/templates/chat-app/components/parallel-responses/responses.tsx +2 -2
  181. package/templates/chat-app/components/settings/settings-nav.tsx +1 -1
  182. package/templates/chat-app/components/settings/settings-navigation-link.tsx +1 -0
  183. package/templates/chat-app/components/sidebar-top-row.tsx +1 -1
  184. package/templates/chat-app/components/ui/sidebar.tsx +1 -1
  185. package/templates/chat-app/components/ui/trace.tsx +1 -1
  186. package/templates/chat-app/hooks/use-auto-focus.ts +12 -13
  187. package/templates/chat-app/integrations/routers.ts +1 -1
  188. package/templates/chat-app/lib/ai/active-gateway.ts +0 -9
  189. package/templates/chat-app/lib/ai/app-models.test.ts +0 -4
  190. package/templates/chat-app/lib/ai/app-models.ts +11 -6
  191. package/templates/chat-app/lib/ai/gateways/registry.ts +4 -31
  192. package/templates/chat-app/lib/ai/model-catalog.ts +50 -0
  193. package/templates/chat-app/lib/ai/models.ts +4 -39
  194. package/templates/chat-app/lib/ai/providers.ts +2 -16
  195. package/templates/chat-app/lib/chat-after-create.test.ts +1 -1
  196. package/templates/chat-app/lib/chat-after-create.ts +1 -1
  197. package/templates/chat-app/lib/config-schema.ts +0 -96
  198. package/templates/chat-app/lib/db/eve-creation-failure.ts +3 -3
  199. package/templates/chat-app/lib/db/eve-current-copy.ts +11 -11
  200. package/templates/chat-app/lib/db/eve-deletion.ts +19 -19
  201. package/templates/chat-app/lib/db/eve-dispatch.ts +115 -18
  202. package/templates/chat-app/lib/db/eve-file-purge.ts +4 -4
  203. package/templates/chat-app/lib/db/eve-files.ts +13 -13
  204. package/templates/chat-app/lib/db/eve-queries.ts +28 -43
  205. package/templates/chat-app/lib/db/eve-response-groups.ts +30 -112
  206. package/templates/chat-app/lib/db/eve-subagents.ts +8 -8
  207. package/templates/chat-app/lib/db/eve-title.ts +2 -2
  208. package/templates/chat-app/lib/db/eve-workspace-deletion.ts +3 -3
  209. package/templates/chat-app/lib/db/eve-workspace-turns.ts +37 -5
  210. package/templates/chat-app/lib/db/eve-workspaces.ts +3 -3
  211. package/templates/chat-app/lib/db/migrations/0029_branch_identifiers.sql +23 -0
  212. package/templates/chat-app/lib/db/migrations/meta/0029_snapshot.json +2547 -0
  213. package/templates/chat-app/lib/db/migrations/meta/_journal.json +7 -0
  214. package/templates/chat-app/lib/db/schema.ts +19 -25
  215. package/templates/chat-app/lib/devtools-disabled.ts +1 -0
  216. package/templates/chat-app/lib/eve/completed-copy-source.test.ts +12 -2
  217. package/templates/chat-app/lib/eve/completed-copy-source.ts +5 -2
  218. package/templates/chat-app/lib/eve/contracts.test.ts +5 -5
  219. package/templates/chat-app/lib/eve/contracts.ts +1 -1
  220. package/templates/chat-app/lib/eve/conversation-scope.test.ts +2 -2
  221. package/templates/chat-app/lib/eve/conversation-scope.ts +4 -4
  222. package/templates/chat-app/lib/eve/create-conversation-operation.test.ts +1 -1
  223. package/templates/chat-app/lib/eve/create-response-group.test.ts +3 -3
  224. package/templates/chat-app/lib/eve/delete-local-conversation.ts +3 -3
  225. package/templates/chat-app/lib/eve/generated-files.test.ts +1 -1
  226. package/templates/chat-app/lib/eve/generated-files.ts +2 -2
  227. package/templates/chat-app/lib/eve/logical-chat.test.ts +17 -17
  228. package/templates/chat-app/lib/eve/logical-chat.ts +27 -31
  229. package/templates/chat-app/lib/eve/logical-response-slots.ts +4 -7
  230. package/templates/chat-app/lib/eve/message-delivery.ts +1 -0
  231. package/templates/chat-app/lib/eve/model-selection.test.ts +47 -50
  232. package/templates/chat-app/lib/eve/model-selection.ts +5 -37
  233. package/templates/chat-app/lib/eve/pending-create.test.ts +46 -7
  234. package/templates/chat-app/lib/eve/pending-create.ts +36 -4
  235. package/templates/chat-app/lib/eve/persisted-wire-order.test.ts +2 -2
  236. package/templates/chat-app/lib/eve/prepare-deletion.ts +3 -3
  237. package/templates/chat-app/lib/eve/purge-local-resources.ts +3 -3
  238. package/templates/chat-app/lib/eve/reconcile-workspace-turn.ts +2 -2
  239. package/templates/chat-app/lib/eve/request-policy.ts +1 -0
  240. package/templates/chat-app/lib/eve/resolve-creation-request.ts +1 -1
  241. package/templates/chat-app/lib/eve/response-group-contracts.ts +1 -1
  242. package/templates/chat-app/lib/eve/response-group-lineage.test.ts +12 -12
  243. package/templates/chat-app/lib/eve/response-group-lineage.ts +21 -24
  244. package/templates/chat-app/lib/eve/response-group.test.ts +2 -2
  245. package/templates/chat-app/lib/eve/response-group.ts +1 -1
  246. package/templates/chat-app/lib/eve/response-model.ts +11 -1
  247. package/templates/chat-app/lib/eve/restore-message-attachments.test.ts +1 -1
  248. package/templates/chat-app/lib/eve/restore-message-attachments.ts +3 -3
  249. package/templates/chat-app/lib/eve/retire-session.ts +3 -3
  250. package/templates/chat-app/lib/eve/steer-rejected.ts +7 -0
  251. package/templates/chat-app/lib/eve/tool-cost.test.ts +18 -6
  252. package/templates/chat-app/lib/eve/tool-cost.ts +10 -18
  253. package/templates/chat-app/lib/eve/workspace-turn-evidence.test.ts +27 -0
  254. package/templates/chat-app/lib/eve/workspace-turn-evidence.ts +20 -13
  255. package/templates/chat-app/oxfmt.config.ts +0 -2
  256. package/templates/chat-app/package.json +7 -9
  257. package/templates/chat-app/playwright.config.ts +5 -1
  258. package/templates/chat-app/proxy.ts +2 -4
  259. package/templates/chat-app/scripts/agent-status.ts +6 -19
  260. package/templates/chat-app/scripts/build-eve.test.ts +56 -0
  261. package/templates/chat-app/scripts/build-eve.ts +12 -5
  262. package/templates/chat-app/scripts/check-env.ts +77 -73
  263. package/templates/chat-app/scripts/environment-validation-report.ts +1 -20
  264. package/templates/chat-app/scripts/installed-environment-validation.ts +14 -15
  265. package/templates/chat-app/trpc/init.ts +2 -0
  266. package/templates/chat-app/trpc/react.tsx +2 -2
  267. package/templates/chat-app/trpc/routers/_app.test.ts +56 -0
  268. package/templates/chat-app/trpc/routers/_app.ts +12 -11
  269. package/templates/chat-app/trpc/routers/eve.router.ts +2 -2
  270. package/templates/electron/forge.config.ts +1 -19
  271. package/templates/electron/scripts/write-branding.ts +1 -5
  272. package/templates/chat-app/app/privacy/page.tsx +0 -153
  273. package/templates/chat-app/app/terms/page.tsx +0 -270
  274. package/templates/chat-app/chatjs/core/installation/plugin.ts +0 -13
  275. package/templates/chat-app/chatjs/plugins/attachment-uploads/chatjs.json +0 -22
  276. package/templates/chat-app/chatjs/plugins/credits/server-plugin.ts +0 -5
  277. package/templates/chat-app/chatjs/plugins/feedback/chat.ts +0 -13
  278. package/templates/chat-app/chatjs/plugins/feedback/server-plugin.ts +0 -8
  279. package/templates/chat-app/chatjs/plugins/followup-suggestions/server-plugin.ts +0 -8
  280. package/templates/chat-app/chatjs/plugins/guest-chat/server-plugin.ts +0 -12
  281. package/templates/chat-app/chatjs/plugins/image-viewer/chatjs.json +0 -17
  282. package/templates/chat-app/chatjs/plugins/mcp/server-plugin.ts +0 -5
  283. package/templates/chat-app/chatjs/plugins/model-preferences/server-plugin.ts +0 -8
  284. package/templates/chat-app/chatjs/plugins/projects/server-plugin.ts +0 -8
  285. package/templates/chat-app/chatjs/plugins/search/server-plugin.ts +0 -5
  286. package/templates/chat-app/chatjs/plugins/sharing/server-plugin.ts +0 -5
  287. package/templates/chat-app/chatjs/plugins/spreadsheet-viewer/chatjs.json +0 -18
  288. package/templates/chat-app/chatjs/plugins/video-viewer/chatjs.json +0 -16
  289. package/templates/chat-app/components/ai-elements/context-hover.radix.tsx +0 -15
  290. package/templates/chat-app/components/ai-elements/context-hover.tsx +0 -17
  291. package/templates/chat-app/components/ai-elements/context.tsx +0 -405
  292. package/templates/chat-app/components/composer/editor.css +0 -96
  293. package/templates/chat-app/components/lexical-chat-input.tsx +0 -276
  294. package/templates/chat-app/components/model-selection-indicator.radix.tsx +0 -17
  295. package/templates/chat-app/components/ui/resizable.tsx +0 -49
  296. package/templates/chat-app/lib/ai/gateways/fallback-models.ts +0 -29
  297. package/templates/chat-app/lib/ai/models.generated.ts +0 -4242
  298. package/templates/chat-app/lib/ai/usage-token-details.test.ts +0 -76
  299. package/templates/chat-app/lib/ai/usage-token-details.ts +0 -33
  300. package/templates/chat-app/lib/chat-route.ts +0 -18
  301. package/templates/chat-app/providers/parse-chat-id-from-pathname.test.ts +0 -126
  302. package/templates/chat-app/providers/parse-chat-id-from-pathname.ts +0 -51
  303. package/templates/chat-app/scripts/fetch-models.ts +0 -30
  304. package/templates/chat-app/scripts/gateway-snapshot-warning.test.ts +0 -9
  305. /package/templates/chat-app/chatjs/plugins/attachment-uploads/{integration.tsx → uploads.ts} +0 -0
@@ -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;
@@ -1,270 +0,0 @@
1
- import React from "react";
2
-
3
- import { config } from "@/lib/config";
4
-
5
- const getPlanTypesLabel = ({
6
- hasFree,
7
- hasPro,
8
- }: {
9
- readonly hasFree: boolean;
10
- readonly hasPro: boolean;
11
- }): string => {
12
- if (hasFree && hasPro) {
13
- return "free and paid";
14
- }
15
- if (hasPro) {
16
- return "paid";
17
- }
18
- return "free";
19
- };
20
-
21
- const PricingSection = ({
22
- hasAnyPlan,
23
- planTypesLabel,
24
- hasFree,
25
- hasPro,
26
- currencySymbol,
27
- paymentProcessors,
28
- }: {
29
- readonly hasAnyPlan: boolean;
30
- readonly planTypesLabel: string;
31
- readonly hasFree: boolean;
32
- readonly hasPro: boolean;
33
- readonly currencySymbol: string;
34
- readonly paymentProcessors: readonly string[];
35
- }): React.JSX.Element => {
36
- if (!hasAnyPlan) {
37
- return (
38
- <>
39
- <p>
40
- {config.appName} currently does not offer paid plans. If we introduce
41
- paid features in the future, this section will be updated and you will
42
- be notified in advance.
43
- </p>
44
- {paymentProcessors.length > 0 && (
45
- <p>
46
- When payments are enabled, billing will be processed by{" "}
47
- {paymentProcessors.join(", ")}. We will not store payment card
48
- details; payment data will be handled directly by our providers
49
- according to their policies and security standards.
50
- </p>
51
- )}
52
- </>
53
- );
54
- }
55
-
56
- return (
57
- <>
58
- <p>
59
- {config.appName} offers {planTypesLabel} subscription plans.
60
- </p>
61
- <ul>
62
- {hasFree && (
63
- <li>
64
- <strong>{config.pricing?.free?.name}:</strong>{" "}
65
- {config.pricing?.free?.summary}
66
- </li>
67
- )}
68
- {hasPro && (
69
- <li>
70
- <strong>{config.pricing?.pro?.name}:</strong> {currencySymbol}
71
- {config.pricing?.pro?.monthlyPrice}/month —{" "}
72
- {config.pricing?.pro?.summary}
73
- </li>
74
- )}
75
- </ul>
76
- {paymentProcessors.length > 0 && (
77
- <p>
78
- We use third-party payment processors to handle billing and payments:{" "}
79
- {paymentProcessors.join(", ")}. {config.appName} does not store any
80
- payment card details, bank information, or other sensitive payment
81
- data. All payment information is processed directly by our providers.
82
- </p>
83
- )}
84
- {hasPro && (
85
- <ul>
86
- <li>Billing is monthly and charged automatically</li>
87
- <li>All fees are non-refundable except as expressly stated</li>
88
- <li>We may change prices with 30 days notice</li>
89
- <li>You are responsible for applicable taxes</li>
90
- <li>Failed payments may result in suspension or termination</li>
91
- </ul>
92
- )}
93
- </>
94
- );
95
- };
96
-
97
- const TermsPage = (): React.JSX.Element => {
98
- const currencySymbolMap: Record<string, string> = {
99
- EUR: "€",
100
- GBP: "£",
101
- USD: "$",
102
- };
103
-
104
- const currencyCode = config.pricing?.currency;
105
- const currencySymbol =
106
- typeof currencyCode === "string" && currencyCode !== ""
107
- ? (currencySymbolMap[currencyCode] ?? currencyCode)
108
- : "";
109
- const hasFree = Boolean(config.pricing?.free);
110
- const hasPro = Boolean(config.pricing?.pro);
111
- const hasAnyPlan = hasFree || hasPro;
112
- const paymentProcessors = Array.isArray(config.services?.paymentProcessors)
113
- ? config.services.paymentProcessors
114
- : [];
115
- const planTypesLabel = getPlanTypesLabel({ hasFree, hasPro });
116
-
117
- return (
118
- <main className="prose dark:prose-invert container mx-auto max-w-3xl py-10">
119
- <h1>{config.policies.terms.title}</h1>
120
- {(config.policies.terms.lastUpdated ?? "").length > 0 ? (
121
- <p>
122
- <strong>Last updated:</strong> {config.policies.terms.lastUpdated}
123
- </p>
124
- ) : null}
125
-
126
- <p>
127
- Welcome to {config.appName}. These Terms of Service govern your use of
128
- our website and services. By using {config.appName}, you agree to these
129
- terms in full. If you disagree with any part of these terms, please do
130
- not use our service.
131
- </p>
132
-
133
- <h2>1. Acceptance of Terms</h2>
134
- <p>
135
- By accessing or using {config.appName}, you acknowledge that you have
136
- read, understood, and agree to be bound by these Terms of Service. We
137
- reserve the right to modify these terms at any time, and such
138
- modifications shall be effective immediately upon posting. Your
139
- continued use of {config.appName} after any modifications indicates your
140
- acceptance of the modified terms.
141
- </p>
142
-
143
- <h2>2. Description of Service</h2>
144
- <p>
145
- {config.appName} helps users find information using AI. Our service is
146
- hosted on {config.services.hosting} and integrates with AI technology
147
- providers including {config.services.aiProviders.join(", ")} to deliver
148
- results and content generation capabilities.
149
- </p>
150
-
151
- <h2>3. User Conduct</h2>
152
- <ul>
153
- <li>Comply with applicable laws and regulations</li>
154
- <li>Respect intellectual property rights</li>
155
- <li>Do not distribute malware or harmful code</li>
156
- <li>Do not attempt unauthorized access to our systems</li>
157
- <li>Do not scrape or conduct automated queries</li>
158
- <li>Do not generate or distribute illegal or harmful content</li>
159
- <li>Do not interfere with the proper functioning of the service</li>
160
- </ul>
161
-
162
- <h2>4. Content and Results</h2>
163
- <ul>
164
- <li>
165
- No guarantees on accuracy, completeness, or reliability of results
166
- </li>
167
- <li>Generated content is based on your queries</li>
168
- <li>
169
- We may link to third-party websites that we do not control; use your
170
- own judgment
171
- </li>
172
- </ul>
173
-
174
- <h2>5. Intellectual Property</h2>
175
- <p>
176
- All content, features, and functionality of {config.appName} are the
177
- property of {config.organization.name} or its licensors and are
178
- protected by intellectual property laws.
179
- </p>
180
-
181
- <h2>6. Third-Party Services</h2>
182
- <p>
183
- {config.appName} relies on third-party services to provide
184
- functionality:
185
- </p>
186
- <ul>
187
- <li>Hosting: {config.services.hosting}</li>
188
- <li>AI providers: {config.services.aiProviders.join(", ")}</li>
189
- {config.services.paymentProcessors.length > 0 ? (
190
- <li>
191
- Payments: {config.services.paymentProcessors.join(", ")} for billing
192
- and subscription management
193
- </li>
194
- ) : null}
195
- </ul>
196
- <p>
197
- These third-party services have their own terms and privacy policies and
198
- may process your data as described in our Privacy Policy. Payment data
199
- is processed directly by our payment providers according to their
200
- respective privacy policies and security standards.
201
- </p>
202
-
203
- <h2>7. Pricing and Billing</h2>
204
- <PricingSection
205
- currencySymbol={currencySymbol}
206
- hasAnyPlan={hasAnyPlan}
207
- hasFree={hasFree}
208
- hasPro={hasPro}
209
- paymentProcessors={paymentProcessors}
210
- planTypesLabel={planTypesLabel}
211
- />
212
-
213
- <h2>8. Cancellation and Refunds</h2>
214
- <p>
215
- You may cancel your subscription at any time through your account
216
- settings or by contacting us. Upon cancellation, your subscription
217
- remains active until the end of the billing period, after which your
218
- account reverts to the free plan.
219
- </p>
220
- <p>
221
- <strong>No Refund Policy</strong>: All subscription fees are final and
222
- non-refundable.
223
- </p>
224
-
225
- <h2>9. Privacy</h2>
226
- <p>
227
- Your use of {config.appName} is also governed by our Privacy Policy,
228
- which is incorporated by reference.
229
- </p>
230
-
231
- <h2>10. Limitation of Liability</h2>
232
- <p>
233
- To the maximum extent permitted by law, {config.organization.name} shall
234
- not be liable for indirect, incidental, special, consequential, or
235
- punitive damages.
236
- </p>
237
-
238
- <h2>11. Disclaimers</h2>
239
- <p>
240
- {config.appName} is provided &quot;as is&quot; and &quot;as
241
- available&quot; without any warranties of any kind, either express or
242
- implied.
243
- </p>
244
-
245
- <h2>12. Termination</h2>
246
- <p>
247
- We may suspend or terminate your access for conduct that violates these
248
- Terms or is harmful to others, us, or third parties.
249
- </p>
250
-
251
- <h2>13. Governing Law</h2>
252
- <p>
253
- These Terms are governed by the laws of {config.legal.governingLaw}.
254
- </p>
255
-
256
- <h2>14. Contact Us</h2>
257
- <p>
258
- If you have any questions about these Terms of Service, contact us at{" "}
259
- {config.organization.contact.legalEmail}
260
- </p>
261
-
262
- <p>
263
- By using {config.appName}, you agree to these Terms of Service and our
264
- Privacy Policy.
265
- </p>
266
- </main>
267
- );
268
- };
269
-
270
- export default TermsPage;
@@ -1,13 +0,0 @@
1
- import type {
2
- InstalledRouters,
3
- InstrumentationRegistration,
4
- } from "@/chatjs/core/installation/contracts";
5
-
6
- /** Server contributions stay out of the client configuration graph. */
7
- interface ChatPlugin {
8
- readonly id: string;
9
- readonly routers?: InstalledRouters;
10
- readonly instrumentation?: InstrumentationRegistration;
11
- }
12
-
13
- export type { ChatPlugin };
@@ -1,22 +0,0 @@
1
- {
2
- "id": "attachment-uploads",
3
- "kind": "plugin",
4
- "files": [
5
- "chatjs/plugins/attachment-uploads/controls.tsx",
6
- "chatjs/plugins/attachment-uploads/integration.tsx",
7
- "chatjs/plugins/attachment-uploads/upload.ts",
8
- "chatjs/plugins/attachment-uploads/upload-prep.ts",
9
- "app/(chat)/api/files/upload/route.ts",
10
- "chatjs/plugins/attachment-uploads/routes/upload.ts",
11
- "chatjs/plugins/attachment-uploads/client-plugin.ts"
12
- ],
13
- "requiresStorage": true,
14
- "client": {
15
- "export": "attachmentUploadsClient",
16
- "composerControls": ["attach-files", "take-photo"],
17
- "settingsItems": [],
18
- "uploads": true
19
- },
20
- "contractVersion": 2,
21
- "uiBase": "base"
22
- }
@@ -1,5 +0,0 @@
1
- import type { ChatPlugin } from "@/chatjs/core/installation/plugin";
2
- import { creditsRouter } from "./router";
3
-
4
- export const credits = () =>
5
- ({ id: "credits", routers: { credits: creditsRouter } }) satisfies ChatPlugin;
@@ -1,13 +0,0 @@
1
- import { inArray } from "drizzle-orm";
2
- import type { ChatServerIntegration } from "@/chatjs/core/chat/contracts";
3
- import { eveVote } from "./feedback-schema";
4
-
5
- export const feedbackChat = {
6
- onDeleteConversations: async (tx, { conversationIds }) => {
7
- if (conversationIds.length > 0) {
8
- await tx
9
- .delete(eveVote)
10
- .where(inArray(eveVote.conversationId, [...conversationIds]));
11
- }
12
- },
13
- } satisfies ChatServerIntegration;
@@ -1,8 +0,0 @@
1
- import type { ChatPlugin } from "@/chatjs/core/installation/plugin";
2
- import { feedbackRouter } from "./router";
3
-
4
- export const feedback = () =>
5
- ({
6
- id: "feedback",
7
- routers: { feedback: feedbackRouter },
8
- }) satisfies ChatPlugin;
@@ -1,8 +0,0 @@
1
- import type { ChatPlugin } from "@/chatjs/core/installation/plugin";
2
- import { followupSuggestionsRouter } from "./router";
3
-
4
- export const followupSuggestions = () =>
5
- ({
6
- id: "followup-suggestions",
7
- routers: { followupSuggestions: followupSuggestionsRouter },
8
- }) satisfies ChatPlugin;
@@ -1,12 +0,0 @@
1
- import type { ChatPlugin } from "@/chatjs/core/installation/plugin";
2
-
3
- export const guestChat = () =>
4
- ({
5
- id: "guest-chat",
6
- instrumentation: async () => {
7
- if (process.env.NEXT_RUNTIME === "nodejs") {
8
- const { startLocalEveGuestCleanup } = await import("./guest-scheduler");
9
- startLocalEveGuestCleanup();
10
- }
11
- },
12
- }) satisfies ChatPlugin;
@@ -1,17 +0,0 @@
1
- {
2
- "id": "image-viewer",
3
- "kind": "plugin",
4
- "files": [
5
- "chatjs/plugins/image-viewer/client-plugin.ts",
6
- "chatjs/plugins/image-viewer/viewer-action.tsx",
7
- "chatjs/plugins/image-viewer/image-modal.tsx"
8
- ],
9
- "client": {
10
- "export": "imageViewerClient",
11
- "composerControls": [],
12
- "settingsItems": [],
13
- "chat": true
14
- },
15
- "contractVersion": 2,
16
- "uiBase": "base"
17
- }
@@ -1,5 +0,0 @@
1
- import type { ChatPlugin } from "@/chatjs/core/installation/plugin";
2
- import { mcpRouter } from "./router";
3
-
4
- export const mcp = () =>
5
- ({ id: "mcp", routers: { mcp: mcpRouter } }) satisfies ChatPlugin;
@@ -1,8 +0,0 @@
1
- import type { ChatPlugin } from "@/chatjs/core/installation/plugin";
2
- import { modelPreferencesRouter } from "./router";
3
-
4
- export const modelPreferences = () =>
5
- ({
6
- id: "model-preferences",
7
- routers: { modelPreferences: modelPreferencesRouter },
8
- }) satisfies ChatPlugin;
@@ -1,8 +0,0 @@
1
- import type { ChatPlugin } from "@/chatjs/core/installation/plugin";
2
- import { projectRouter } from "./router";
3
-
4
- export const projects = () =>
5
- ({
6
- id: "projects",
7
- routers: { project: projectRouter },
8
- }) satisfies ChatPlugin;
@@ -1,5 +0,0 @@
1
- import type { ChatPlugin } from "@/chatjs/core/installation/plugin";
2
- import { searchRouter } from "./router";
3
-
4
- export const search = () =>
5
- ({ id: "search", routers: { search: searchRouter } }) satisfies ChatPlugin;
@@ -1,5 +0,0 @@
1
- import type { ChatPlugin } from "@/chatjs/core/installation/plugin";
2
- import { sharingRouter } from "./router";
3
-
4
- export const sharing = () =>
5
- ({ id: "sharing", routers: { sharing: sharingRouter } }) satisfies ChatPlugin;
@@ -1,18 +0,0 @@
1
- {
2
- "id": "spreadsheet-viewer",
3
- "kind": "plugin",
4
- "files": [
5
- "chatjs/plugins/spreadsheet-viewer/client-plugin.ts",
6
- "chatjs/plugins/spreadsheet-viewer/viewer-action.tsx",
7
- "chatjs/plugins/spreadsheet-viewer/load.ts",
8
- "chatjs/plugins/spreadsheet-viewer/preview.tsx"
9
- ],
10
- "client": {
11
- "export": "spreadsheetViewerClient",
12
- "composerControls": [],
13
- "settingsItems": [],
14
- "chat": true
15
- },
16
- "contractVersion": 2,
17
- "uiBase": "base"
18
- }
@@ -1,16 +0,0 @@
1
- {
2
- "id": "video-viewer",
3
- "kind": "plugin",
4
- "files": [
5
- "chatjs/plugins/video-viewer/client-plugin.ts",
6
- "chatjs/plugins/video-viewer/viewer-action.tsx"
7
- ],
8
- "client": {
9
- "export": "videoViewerClient",
10
- "composerControls": [],
11
- "settingsItems": [],
12
- "chat": true
13
- },
14
- "contractVersion": 2,
15
- "uiBase": "base"
16
- }
@@ -1,15 +0,0 @@
1
- "use client";
2
-
3
- import React from "react";
4
- import type { ComponentProps, ReactElement } from "react";
5
- import { HoverCard, HoverCardTrigger } from "@/components/ui/hover-card";
6
-
7
- export const ContextHover = (
8
- props: ComponentProps<typeof HoverCard>
9
- ): React.JSX.Element => <HoverCard openDelay={0} closeDelay={0} {...props} />;
10
-
11
- export const ContextHoverTrigger = ({
12
- button,
13
- }: {
14
- readonly button: ReactElement;
15
- }): React.JSX.Element => <HoverCardTrigger asChild>{button}</HoverCardTrigger>;
@@ -1,17 +0,0 @@
1
- "use client";
2
-
3
- import React from "react";
4
- import type { ComponentProps, ReactElement } from "react";
5
- import { HoverCard, HoverCardTrigger } from "@/components/ui/hover-card";
6
-
7
- export const ContextHover = (
8
- props: ComponentProps<typeof HoverCard>
9
- ): React.JSX.Element => <HoverCard {...props} />;
10
-
11
- export const ContextHoverTrigger = ({
12
- button,
13
- }: {
14
- readonly button: ReactElement;
15
- }): React.JSX.Element => (
16
- <HoverCardTrigger delay={0} closeDelay={0} render={button} />
17
- );