@tablestore/tablestore-agent-cli 0.1.8 → 0.1.9

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 (598) hide show
  1. package/dist/commands/dashboard.d.ts.map +1 -1
  2. package/dist/commands/dashboard.js +173 -4
  3. package/dist/commands/dashboard.js.map +1 -1
  4. package/dist/dashboard-runtime/dashboard/.next/BUILD_ID +1 -1
  5. package/dist/dashboard-runtime/dashboard/.next/app-path-routes-manifest.json +2 -0
  6. package/dist/dashboard-runtime/dashboard/.next/build-manifest.json +5 -5
  7. package/dist/dashboard-runtime/dashboard/.next/prerender-manifest.json +3 -3
  8. package/dist/dashboard-runtime/dashboard/.next/required-server-files.json +2 -0
  9. package/dist/dashboard-runtime/dashboard/.next/routes-manifest.json +12 -0
  10. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page/build-manifest.json +2 -2
  11. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page.js +2 -2
  12. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page.js.nft.json +1 -1
  13. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/chat/page_client-reference-manifest.js +1 -1
  14. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page/build-manifest.json +2 -2
  15. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page.js +2 -2
  16. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page.js.nft.json +1 -1
  17. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/documents/page_client-reference-manifest.js +1 -1
  18. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page/build-manifest.json +2 -2
  19. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page.js +2 -2
  20. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page.js.nft.json +1 -1
  21. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/page_client-reference-manifest.js +1 -1
  22. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page/build-manifest.json +2 -2
  23. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page.js +2 -2
  24. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page.js.nft.json +1 -1
  25. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/qa/page_client-reference-manifest.js +1 -1
  26. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page/build-manifest.json +2 -2
  27. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page.js +2 -2
  28. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page.js.nft.json +1 -1
  29. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/retrieval/page_client-reference-manifest.js +1 -1
  30. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page/build-manifest.json +2 -2
  31. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page.js +2 -2
  32. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page.js.nft.json +1 -1
  33. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/[name]/settings/page_client-reference-manifest.js +1 -1
  34. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page/build-manifest.json +2 -2
  35. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page.js +2 -2
  36. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page.js.nft.json +1 -1
  37. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/create/page_client-reference-manifest.js +1 -1
  38. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page/build-manifest.json +2 -2
  39. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page.js +2 -2
  40. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page.js.nft.json +1 -1
  41. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/knowledge-base/page_client-reference-manifest.js +1 -1
  42. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page/build-manifest.json +2 -2
  43. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page.js +2 -2
  44. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page.js.nft.json +1 -1
  45. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/[id]/page_client-reference-manifest.js +1 -1
  46. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page/build-manifest.json +2 -2
  47. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page.js +2 -2
  48. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page.js.nft.json +1 -1
  49. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/new/page_client-reference-manifest.js +1 -1
  50. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page/build-manifest.json +2 -2
  51. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page.js +2 -2
  52. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page.js.nft.json +1 -1
  53. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/llm-providers/page_client-reference-manifest.js +1 -1
  54. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page/build-manifest.json +2 -2
  55. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page.js +2 -2
  56. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page.js.nft.json +1 -1
  57. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/messages/page_client-reference-manifest.js +1 -1
  58. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page/build-manifest.json +2 -2
  59. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page.js +2 -2
  60. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page.js.nft.json +1 -1
  61. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/page_client-reference-manifest.js +1 -1
  62. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page/build-manifest.json +2 -2
  63. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page.js +2 -2
  64. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page.js.nft.json +1 -1
  65. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/requests/page_client-reference-manifest.js +1 -1
  66. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page/build-manifest.json +2 -2
  67. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page.js +2 -2
  68. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page.js.nft.json +1 -1
  69. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/search/page_client-reference-manifest.js +1 -1
  70. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page/build-manifest.json +2 -2
  71. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page.js +2 -2
  72. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page.js.nft.json +1 -1
  73. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/settings/page_client-reference-manifest.js +1 -1
  74. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page/build-manifest.json +2 -2
  75. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page.js +2 -2
  76. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page.js.nft.json +1 -1
  77. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/[store]/units/page_client-reference-manifest.js +1 -1
  78. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page/build-manifest.json +2 -2
  79. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page.js +2 -2
  80. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page.js.nft.json +1 -1
  81. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/create/page_client-reference-manifest.js +1 -1
  82. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page/build-manifest.json +2 -2
  83. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page.js +2 -2
  84. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page.js.nft.json +1 -1
  85. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/memory/page_client-reference-manifest.js +1 -1
  86. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page/build-manifest.json +2 -2
  87. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page.js +2 -2
  88. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page.js.nft.json +1 -1
  89. package/dist/dashboard-runtime/dashboard/.next/server/app/(dashboard)/projects/page_client-reference-manifest.js +1 -1
  90. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error/page/build-manifest.json +2 -2
  91. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.html +1 -1
  92. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.rsc +1 -1
  93. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  94. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  95. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  96. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  97. package/dist/dashboard-runtime/dashboard/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  98. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page/build-manifest.json +2 -2
  99. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page.js +1 -1
  100. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page.js.nft.json +1 -1
  101. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  102. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.html +1 -1
  103. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.rsc +20 -19
  104. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_full.segment.rsc +20 -19
  105. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_head.segment.rsc +3 -3
  106. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_index.segment.rsc +10 -9
  107. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
  108. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  109. package/dist/dashboard-runtime/dashboard/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  110. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/status/route.js +2 -2
  111. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/status/route.js.nft.json +1 -1
  112. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js +2 -2
  113. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/auth/token/route.js.nft.json +1 -1
  114. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js +2 -2
  115. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/route.js.nft.json +1 -1
  116. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js +2 -2
  117. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/token/route.js.nft.json +1 -1
  118. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js +2 -2
  119. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/[name]/use/route.js.nft.json +1 -1
  120. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js +2 -2
  121. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/instances/route.js.nft.json +1 -1
  122. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js +2 -2
  123. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/chunks/route.js.nft.json +1 -1
  124. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js +2 -2
  125. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.js.nft.json +1 -1
  126. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js +2 -2
  127. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.js.nft.json +1 -1
  128. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js +2 -2
  129. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/route.js.nft.json +1 -1
  130. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js +2 -2
  131. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/documents/upload/route.js.nft.json +1 -1
  132. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js +2 -2
  133. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/retrieve/route.js.nft.json +1 -1
  134. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js +2 -2
  135. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/[name]/route.js.nft.json +1 -1
  136. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js +2 -2
  137. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/knowledge-bases/route.js.nft.json +1 -1
  138. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/chat/route.js +2 -2
  139. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/chat/route.js.nft.json +1 -1
  140. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/models/route.js +2 -2
  141. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/models/route.js.nft.json +1 -1
  142. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js +2 -2
  143. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/route.js.nft.json +1 -1
  144. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js +2 -2
  145. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/[id]/test/route.js.nft.json +1 -1
  146. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js +2 -2
  147. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/llm/providers/route.js.nft.json +1 -1
  148. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route/app-paths-manifest.json +3 -0
  149. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route/build-manifest.json +9 -0
  150. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route/server-reference-manifest.json +4 -0
  151. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route.js +6 -0
  152. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route.js.map +5 -0
  153. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route.js.nft.json +1 -0
  154. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/logs/client/route_client-reference-manifest.js +3 -0
  155. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js +2 -2
  156. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/messages/route.js.nft.json +1 -1
  157. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js +2 -2
  158. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/requests/route.js.nft.json +1 -1
  159. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js +2 -2
  160. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/route.js.nft.json +1 -1
  161. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js +2 -2
  162. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/search/route.js.nft.json +1 -1
  163. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js +2 -2
  164. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/[memoryId]/route.js.nft.json +1 -1
  165. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js +2 -2
  166. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/[store]/units/route.js.nft.json +1 -1
  167. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js +2 -2
  168. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/memory/stores/route.js.nft.json +1 -1
  169. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route/app-paths-manifest.json +3 -0
  170. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route/build-manifest.json +9 -0
  171. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route/server-reference-manifest.json +4 -0
  172. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route.js +6 -0
  173. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route.js.map +5 -0
  174. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route.js.nft.json +1 -0
  175. package/dist/dashboard-runtime/dashboard/.next/server/app/api/v1/runtime/context/route_client-reference-manifest.js +3 -0
  176. package/dist/dashboard-runtime/dashboard/.next/server/app/index.html +1 -1
  177. package/dist/dashboard-runtime/dashboard/.next/server/app/index.rsc +19 -18
  178. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  179. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_full.segment.rsc +19 -18
  180. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_head.segment.rsc +3 -3
  181. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_index.segment.rsc +10 -9
  182. package/dist/dashboard-runtime/dashboard/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  183. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page/build-manifest.json +2 -2
  184. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page.js +1 -1
  185. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page.js.nft.json +1 -1
  186. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
  187. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.html +1 -1
  188. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.rsc +23 -22
  189. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_full.segment.rsc +23 -22
  190. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_head.segment.rsc +3 -3
  191. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_index.segment.rsc +10 -9
  192. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/_tree.segment.rsc +2 -2
  193. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding/__PAGE__.segment.rsc +4 -4
  194. package/dist/dashboard-runtime/dashboard/.next/server/app/onboarding.segments/onboarding.segment.rsc +4 -4
  195. package/dist/dashboard-runtime/dashboard/.next/server/app/page/build-manifest.json +2 -2
  196. package/dist/dashboard-runtime/dashboard/.next/server/app/page.js +1 -1
  197. package/dist/dashboard-runtime/dashboard/.next/server/app/page.js.nft.json +1 -1
  198. package/dist/dashboard-runtime/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
  199. package/dist/dashboard-runtime/dashboard/.next/server/app-paths-manifest.json +2 -0
  200. package/dist/dashboard-runtime/dashboard/.next/server/chunks/0p91_next_dist_esm_build_templates_app-route_0n~ec7s.js +6 -6
  201. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.gylau._.js +3 -0
  202. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.hvkwy._.js +3 -0
  203. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0.qtdn4._.js +3 -0
  204. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__02p1x3t._.js +3 -0
  205. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04dd04u._.js +3 -0
  206. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04ujbw-._.js +3 -0
  207. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__04zbudf._.js +3 -0
  208. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__05eryp~._.js +3 -0
  209. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__06fva9g._.js +3 -0
  210. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0byveuc._.js +3 -0
  211. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cee_lo._.js +3 -0
  212. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0cyd2qb._.js +3 -0
  213. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ecs-9r._.js +3 -0
  214. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0ejcow5._.js +3 -0
  215. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0fglxiw._.js +3 -0
  216. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0i1_p1s._.js +3 -0
  217. package/dist/dashboard-runtime/dashboard/.next/server/chunks/{[root-of-the-server]__0f990w9._.js → [root-of-the-server]__0lvi0g-._.js} +14 -12
  218. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0no9qm0._.js +3 -0
  219. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0q9fgt6._.js +3 -0
  220. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0rx9hon._.js +3 -0
  221. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0w_ig2a._.js +3 -0
  222. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0zmo~nd._.js +3 -0
  223. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__11s_zx6._.js +3 -0
  224. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__11wq90l._.js +3 -0
  225. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__126srko._.js +3 -0
  226. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12e1t6o._.js +3 -0
  227. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12ylr4n._.js +3 -0
  228. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13g_f9w._.js +3 -0
  229. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__13~-fxp._.js +3 -0
  230. package/dist/dashboard-runtime/dashboard/.next/server/chunks/dashboard__next-internal_server_app_api_v1_logs_client_route_actions_0tnhyc7.js +3 -0
  231. package/dist/dashboard-runtime/dashboard/.next/server/chunks/dashboard__next-internal_server_app_api_v1_runtime_context_route_actions_0d9d6g_.js +3 -0
  232. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0b1r_app_(dashboard)_knowledge-base_[name]_documents_documents-client_tsx_0g2uxmt._.js +2 -2
  233. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0e95_src_app_(dashboard)_knowledge-base_[name]_settings_settings-client_tsx_13312zk._.js +1 -1
  234. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0p91_next_dist_shared_lib_deployment-id_0uu7yq4.js +3 -0
  235. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[externals]__0tqph4u._.js +3 -0
  236. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0_r24-c._.js +3 -0
  237. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{[root-of-the-server]__0kaiok7._.js → [root-of-the-server]__0aqzu8w._.js} +2 -2
  238. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0jb9ccl._.js +3 -0
  239. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__10rkv6z._.js +3 -0
  240. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__11yei-s._.js +3 -0
  241. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{_0hm68~i._.js → _0303qx7._.js} +2 -2
  242. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_03cxnik._.js +3 -0
  243. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_04f2u4t._.js +3 -0
  244. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_06l.12l._.js +1 -1
  245. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_09eom0_._.js +1 -1
  246. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_09yzbcp._.js +1 -1
  247. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0dqi8bq._.js +3 -0
  248. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{_0sc0tpz._.js → _0e9y.xc._.js} +2 -2
  249. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f9u8i2._.js +3 -0
  250. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{_0ntv66s._.js → _0i8py_a._.js} +2 -2
  251. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{_01pp~xx._.js → _0jlt.cx._.js} +2 -2
  252. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{_0-dlo4s._.js → _0n5uozy._.js} +2 -2
  253. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0o32d.y._.js +3 -0
  254. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0o665bf._.js +1 -1
  255. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0suxzcc._.js +3 -0
  256. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0tej2s.._.js +1 -1
  257. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0tyxwr3._.js +1 -1
  258. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/{_0c7wecm._.js → _0v4jb2q._.js} +2 -2
  259. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0zn.ayc._.js +3 -0
  260. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_13l7w34._.js +1 -1
  261. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_065m1.j._.js +1 -1
  262. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0suis9l._.js +3 -3
  263. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_0y49vhd._.js +1 -1
  264. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_10dsqx~._.js +1 -1
  265. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_knowledge-base_create_page_tsx_0916~g-._.js +1 -1
  266. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_settings_page_tsx_0y26.xu._.js +1 -1
  267. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_(dashboard)_memory_[store]_units_page_tsx_0.6xnei._.js +1 -1
  268. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_app_error_tsx_01x7ppm._.js +1 -1
  269. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/dashboard_src_providers_runtime-context-provider_tsx_0wmj66z._.js +3 -0
  270. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_00arje5._.js +3 -0
  271. package/dist/dashboard-runtime/dashboard/.next/server/functions-config-manifest.json +28 -1
  272. package/dist/dashboard-runtime/dashboard/.next/server/middleware-build-manifest.js +5 -5
  273. package/dist/dashboard-runtime/dashboard/.next/server/pages/404.html +1 -1
  274. package/dist/dashboard-runtime/dashboard/.next/server/pages/500.html +1 -1
  275. package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.js +1 -1
  276. package/dist/dashboard-runtime/dashboard/.next/server/server-reference-manifest.json +1 -1
  277. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0osozgwmk692r.js → 0-etecbti5x22.js} +1 -1
  278. package/dist/dashboard-runtime/dashboard/.next/static/chunks/031-scv-8sah9.js +1 -0
  279. package/dist/dashboard-runtime/dashboard/.next/static/chunks/034uozc1ki09_.js +1 -0
  280. package/dist/dashboard-runtime/dashboard/.next/static/chunks/05ow1qzcjz3pz.js +1 -0
  281. package/dist/dashboard-runtime/dashboard/.next/static/chunks/087x52iesmpfe.js +1 -0
  282. package/dist/dashboard-runtime/dashboard/.next/static/chunks/08an3157he_ad.js +1 -0
  283. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{13-2ei295hl0-.js → 0aak.679si-3m.js} +1 -1
  284. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{01k-.wkndubwy.js → 0ai8f~-9ig.gz.js} +6 -6
  285. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0c5tcbhzpwen7.js +1 -0
  286. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0iv0g360z0ja5.js → 0dheju1t18upn.js} +1 -1
  287. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{07q4gw5gnh3.d.js → 0fagnytrt.3oe.js} +2 -2
  288. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ffr1_o~ss8r8.js +1 -0
  289. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{123yjh849.vzp.js → 0gjljpk5qgdmz.js} +1 -1
  290. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0h38qfpz-dmiu.js +1 -0
  291. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0l1fmyhvp-k49.js +1 -0
  292. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0pcp6pjjz7o49.js +1 -0
  293. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0pdq-gljpy7gd.js +1 -0
  294. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0q6-s11w9.sgo.js +1 -0
  295. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0rnm58mg0whfk.js +1 -0
  296. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0rxp5ykl1_lyb.js +4 -0
  297. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0th7u6qvdy3x2.js +1 -0
  298. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0v_~favugkv_a.js +1 -0
  299. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0x3ysmon_~xsv.js +1 -0
  300. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0x7sjde5wit~i.js +1 -0
  301. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{0h7d69g2fdgs6.js → 0yzz97.2e6if6.js} +6 -6
  302. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~alekqkiwwaq.js +1 -0
  303. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~e2n9bhosscr.js +1 -0
  304. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~i4llb9-utpp.css +1 -0
  305. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~kfzxrhgbkaz.js +1 -0
  306. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0~n-y9cstar6b.js +5 -0
  307. package/dist/dashboard-runtime/dashboard/.next/static/chunks/14z_j1qzycpe1.js +1 -0
  308. package/dist/dashboard-runtime/dashboard/.next/static/chunks/154aheeo3m6bg.js +1 -0
  309. package/dist/dashboard-runtime/dashboard/.next/static/chunks/17k4h5zgalxqj.js +1 -0
  310. package/dist/dashboard-runtime/dashboard/.next/static/chunks/{turbopack-0jhqjurvu9x3y.js → turbopack-0ybyy.9-.w~ub.js} +1 -1
  311. package/dist/dashboard-runtime/dashboard/components.json +20 -0
  312. package/dist/dashboard-runtime/dashboard/instrumentation-node.ts +14 -0
  313. package/dist/dashboard-runtime/dashboard/instrumentation.ts +18 -0
  314. package/dist/dashboard-runtime/dashboard/next.config.ts +56 -0
  315. package/dist/dashboard-runtime/dashboard/postcss.config.mjs +8 -0
  316. package/dist/dashboard-runtime/dashboard/server.js +1 -1
  317. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/chat/error.tsx +44 -0
  318. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/chat/loading.tsx +29 -0
  319. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/chat/page.tsx +372 -0
  320. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/error.tsx +69 -0
  321. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/documents/documents-client.tsx +22 -11
  322. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/knowledge-base/[name]/qa/page.tsx +5 -1
  323. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/layout.tsx +75 -0
  324. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/loading.tsx +26 -0
  325. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/layout.tsx +62 -0
  326. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/messages/_helpers.ts +109 -0
  327. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/messages/page.tsx +309 -0
  328. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/page.tsx +26 -0
  329. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/requests/_helpers.ts +234 -0
  330. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/requests/page.tsx +323 -0
  331. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/search/page.tsx +49 -0
  332. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/settings/page.tsx +71 -0
  333. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/[store]/units/page.tsx +277 -0
  334. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/create/page.tsx +30 -0
  335. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/error.tsx +44 -0
  336. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/loading.tsx +26 -0
  337. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/memory/page.tsx +27 -0
  338. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/projects/error.tsx +43 -0
  339. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/projects/loading.tsx +25 -0
  340. package/dist/dashboard-runtime/dashboard/src/app/(dashboard)/projects/page.tsx +174 -0
  341. package/dist/dashboard-runtime/dashboard/src/app/api/v1/auth/status/route.ts +53 -0
  342. package/dist/dashboard-runtime/dashboard/src/app/api/v1/auth/token/route.ts +113 -0
  343. package/dist/dashboard-runtime/dashboard/src/app/api/v1/instances/[name]/route.ts +196 -0
  344. package/dist/dashboard-runtime/dashboard/src/app/api/v1/instances/[name]/token/route.ts +80 -0
  345. package/dist/dashboard-runtime/dashboard/src/app/api/v1/instances/[name]/use/route.ts +91 -0
  346. package/dist/dashboard-runtime/dashboard/src/app/api/v1/instances/route.ts +274 -0
  347. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/chunks/route.ts +3 -0
  348. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/documents/[docId]/chunks/route.ts +3 -0
  349. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/documents/[docId]/route.ts +3 -0
  350. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/documents/route.ts +3 -0
  351. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/documents/upload/route.ts +3 -0
  352. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/retrieve/route.ts +3 -0
  353. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/[name]/route.ts +3 -0
  354. package/dist/dashboard-runtime/dashboard/src/app/api/v1/knowledge-bases/route.ts +3 -0
  355. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/chat/route.ts +455 -0
  356. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/providers/[id]/models/route.ts +46 -0
  357. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/providers/[id]/route.ts +83 -0
  358. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/providers/[id]/test/route.ts +40 -0
  359. package/dist/dashboard-runtime/dashboard/src/app/api/v1/llm/providers/route.ts +70 -0
  360. package/dist/dashboard-runtime/dashboard/src/app/api/v1/logs/client/route.ts +70 -0
  361. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/_scope.ts +84 -0
  362. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/messages/route.ts +64 -0
  363. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/requests/route.ts +65 -0
  364. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/route.ts +78 -0
  365. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/search/route.ts +49 -0
  366. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/units/[memoryId]/route.ts +126 -0
  367. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/[store]/units/route.ts +85 -0
  368. package/dist/dashboard-runtime/dashboard/src/app/api/v1/memory/stores/route.ts +60 -0
  369. package/dist/dashboard-runtime/dashboard/src/app/api/v1/runtime/context/route.ts +26 -0
  370. package/dist/dashboard-runtime/dashboard/src/app/error.tsx +84 -0
  371. package/dist/dashboard-runtime/dashboard/src/app/globals.css +262 -0
  372. package/dist/dashboard-runtime/dashboard/src/app/layout.tsx +38 -0
  373. package/dist/dashboard-runtime/dashboard/src/app/onboarding/error.tsx +54 -0
  374. package/dist/dashboard-runtime/dashboard/src/app/onboarding/layout.tsx +18 -0
  375. package/dist/dashboard-runtime/dashboard/src/app/onboarding/page.tsx +62 -0
  376. package/dist/dashboard-runtime/dashboard/src/app/page.tsx +10 -0
  377. package/dist/dashboard-runtime/dashboard/src/components/documents/doc-chunks-dialog.tsx +13 -4
  378. package/dist/dashboard-runtime/dashboard/src/components/documents/doc-upload-dialog.tsx +66 -3
  379. package/dist/dashboard-runtime/dashboard/src/components/instance/connect-instance-form.tsx +10 -2
  380. package/dist/dashboard-runtime/dashboard/src/components/instance/edit-instance-dialog.tsx +6 -2
  381. package/dist/dashboard-runtime/dashboard/src/components/instance/project-card.tsx +195 -0
  382. package/dist/dashboard-runtime/dashboard/src/components/knowledge-base/kb-list.tsx +6 -1
  383. package/dist/dashboard-runtime/dashboard/src/components/layout/sidebar.tsx +90 -0
  384. package/dist/dashboard-runtime/dashboard/src/components/logging/client-error-reporter.tsx +59 -0
  385. package/dist/dashboard-runtime/dashboard/src/components/memory/memory-store-list.tsx +6 -1
  386. package/dist/dashboard-runtime/dashboard/src/components/qa/markdown.tsx +77 -0
  387. package/dist/dashboard-runtime/dashboard/src/components/shared/error-state.tsx +54 -0
  388. package/dist/dashboard-runtime/dashboard/src/components/ui/badge.tsx +36 -0
  389. package/dist/dashboard-runtime/dashboard/src/components/ui/button.tsx +57 -0
  390. package/dist/dashboard-runtime/dashboard/src/components/ui/card.tsx +97 -0
  391. package/dist/dashboard-runtime/dashboard/src/components/ui/checkbox.tsx +28 -0
  392. package/dist/dashboard-runtime/dashboard/src/components/ui/collapsible.tsx +11 -0
  393. package/dist/dashboard-runtime/dashboard/src/components/ui/command.tsx +153 -0
  394. package/dist/dashboard-runtime/dashboard/src/components/ui/dialog.tsx +127 -0
  395. package/dist/dashboard-runtime/dashboard/src/components/ui/form.tsx +178 -0
  396. package/dist/dashboard-runtime/dashboard/src/components/ui/input.tsx +22 -0
  397. package/dist/dashboard-runtime/dashboard/src/components/ui/label.tsx +24 -0
  398. package/dist/dashboard-runtime/dashboard/src/components/ui/popover.tsx +34 -0
  399. package/dist/dashboard-runtime/dashboard/src/components/ui/select.tsx +162 -0
  400. package/dist/dashboard-runtime/dashboard/src/components/ui/separator.tsx +31 -0
  401. package/dist/dashboard-runtime/dashboard/src/components/ui/sheet.tsx +129 -0
  402. package/dist/dashboard-runtime/dashboard/src/components/ui/skeleton.tsx +49 -0
  403. package/dist/dashboard-runtime/dashboard/src/components/ui/slider.tsx +28 -0
  404. package/dist/dashboard-runtime/dashboard/src/components/ui/sonner.tsx +29 -0
  405. package/dist/dashboard-runtime/dashboard/src/components/ui/switch.tsx +66 -0
  406. package/dist/dashboard-runtime/dashboard/src/components/ui/table.tsx +120 -0
  407. package/dist/dashboard-runtime/dashboard/src/components/ui/tabs.tsx +69 -0
  408. package/dist/dashboard-runtime/dashboard/src/components/ui/textarea.tsx +22 -0
  409. package/dist/dashboard-runtime/dashboard/src/components/ui/tooltip.tsx +30 -0
  410. package/dist/dashboard-runtime/dashboard/src/config/navigation.ts +39 -0
  411. package/dist/dashboard-runtime/dashboard/src/hooks/use-active-instance.ts +20 -0
  412. package/dist/dashboard-runtime/dashboard/src/hooks/use-add-memory.ts +3 -4
  413. package/dist/dashboard-runtime/dashboard/src/hooks/use-chat-history.ts +212 -99
  414. package/dist/dashboard-runtime/dashboard/src/hooks/use-create-kb.ts +2 -1
  415. package/dist/dashboard-runtime/dashboard/src/hooks/use-create-llm-provider.ts +2 -3
  416. package/dist/dashboard-runtime/dashboard/src/hooks/use-create-memory-store.ts +2 -1
  417. package/dist/dashboard-runtime/dashboard/src/hooks/use-delete-documents.ts +10 -5
  418. package/dist/dashboard-runtime/dashboard/src/hooks/use-delete-kb.ts +2 -1
  419. package/dist/dashboard-runtime/dashboard/src/hooks/use-delete-llm-provider.ts +2 -3
  420. package/dist/dashboard-runtime/dashboard/src/hooks/use-delete-memory-store.ts +2 -1
  421. package/dist/dashboard-runtime/dashboard/src/hooks/use-delete-memory-unit.ts +3 -3
  422. package/dist/dashboard-runtime/dashboard/src/hooks/use-documents.ts +7 -5
  423. package/dist/dashboard-runtime/dashboard/src/hooks/use-instances.ts +38 -19
  424. package/dist/dashboard-runtime/dashboard/src/hooks/use-knowledge-base.ts +5 -2
  425. package/dist/dashboard-runtime/dashboard/src/hooks/use-knowledge-bases.ts +5 -1
  426. package/dist/dashboard-runtime/dashboard/src/hooks/use-llm-provider-models.ts +5 -2
  427. package/dist/dashboard-runtime/dashboard/src/hooks/use-llm-provider.ts +5 -2
  428. package/dist/dashboard-runtime/dashboard/src/hooks/use-llm-providers.ts +5 -1
  429. package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-messages.ts +12 -6
  430. package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-requests.ts +12 -2
  431. package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-store.ts +5 -2
  432. package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-stores.ts +5 -1
  433. package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-unit.ts +16 -2
  434. package/dist/dashboard-runtime/dashboard/src/hooks/use-memory-units.ts +11 -2
  435. package/dist/dashboard-runtime/dashboard/src/hooks/use-qa-chat.ts +2 -0
  436. package/dist/dashboard-runtime/dashboard/src/hooks/use-update-kb.ts +3 -5
  437. package/dist/dashboard-runtime/dashboard/src/hooks/use-update-llm-provider.ts +2 -4
  438. package/dist/dashboard-runtime/dashboard/src/hooks/use-update-memory-store.ts +3 -5
  439. package/dist/dashboard-runtime/dashboard/src/hooks/use-update-memory-unit.ts +3 -2
  440. package/dist/dashboard-runtime/dashboard/src/hooks/use-upload-documents.ts +26 -7
  441. package/dist/dashboard-runtime/dashboard/src/lib/constants.ts +22 -0
  442. package/dist/dashboard-runtime/dashboard/src/lib/fonts.ts +9 -0
  443. package/dist/dashboard-runtime/dashboard/src/lib/memory.ts +69 -0
  444. package/dist/dashboard-runtime/dashboard/src/lib/normalize-oss-endpoint.ts +28 -0
  445. package/dist/dashboard-runtime/dashboard/src/lib/query-keys.ts +147 -0
  446. package/dist/dashboard-runtime/dashboard/src/lib/server/api-helpers.ts +193 -9
  447. package/dist/dashboard-runtime/dashboard/src/lib/server/chat-project-context.ts +17 -0
  448. package/dist/dashboard-runtime/dashboard/src/lib/server/runtime-context.ts +108 -0
  449. package/dist/dashboard-runtime/dashboard/src/lib/server/sdk-client.ts +250 -22
  450. package/dist/dashboard-runtime/dashboard/src/lib/utils.ts +15 -0
  451. package/dist/dashboard-runtime/dashboard/src/providers/query-provider.tsx +4 -1
  452. package/dist/dashboard-runtime/dashboard/src/providers/runtime-context-provider.tsx +237 -0
  453. package/dist/dashboard-runtime/dashboard/src/schemas/common.ts +8 -0
  454. package/dist/dashboard-runtime/dashboard/src/schemas/document.ts +28 -0
  455. package/dist/dashboard-runtime/dashboard/src/schemas/instance.ts +107 -0
  456. package/dist/dashboard-runtime/dashboard/src/schemas/llm-chat.ts +1 -0
  457. package/dist/dashboard-runtime/dashboard/src/schemas/retrieval.ts +28 -0
  458. package/dist/dashboard-runtime/dashboard/src/services/api-client.ts +138 -33
  459. package/dist/dashboard-runtime/dashboard/src/services/auth.ts +18 -0
  460. package/dist/dashboard-runtime/dashboard/src/services/chunks.ts +49 -0
  461. package/dist/dashboard-runtime/dashboard/src/services/documents.ts +208 -0
  462. package/dist/dashboard-runtime/dashboard/src/services/instances.ts +71 -0
  463. package/dist/dashboard-runtime/dashboard/src/services/memory.ts +158 -0
  464. package/dist/dashboard-runtime/dashboard/src/services/retrieval.ts +16 -0
  465. package/dist/dashboard-runtime/dashboard/src/services/runtime-context.ts +8 -0
  466. package/dist/dashboard-runtime/dashboard/src/types/api.ts +18 -0
  467. package/dist/dashboard-runtime/dashboard/src/types/instance.ts +68 -0
  468. package/dist/dashboard-runtime/dashboard/src/types/llm-chat.ts +2 -0
  469. package/dist/dashboard-runtime/dashboard/src/types/memory.ts +106 -0
  470. package/dist/dashboard-runtime/dashboard/src/types/retrieval.ts +43 -0
  471. package/dist/dashboard-runtime/dashboard/src/types/runtime-context.ts +12 -0
  472. package/dist/dashboard-runtime/dashboard/tailwind.config.ts +92 -0
  473. package/dist/dashboard-runtime/dashboard/tsconfig.json +43 -0
  474. package/dist/dashboard-runtime/dashboard/vitest.config.mjs +12 -0
  475. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts +1 -0
  476. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts.map +1 -1
  477. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js +64 -20
  478. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js.map +1 -1
  479. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts +1 -0
  480. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts.map +1 -1
  481. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js +62 -18
  482. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js.map +1 -1
  483. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
  484. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.d.ts +1 -0
  485. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.d.ts.map +1 -1
  486. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.js +19 -0
  487. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/config.js.map +1 -1
  488. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/constants.d.ts.map +1 -1
  489. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/constants.js +4 -2
  490. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/constants.js.map +1 -1
  491. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/index.d.ts +1 -0
  492. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/index.d.ts.map +1 -1
  493. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/index.js +1 -0
  494. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/index.js.map +1 -1
  495. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/logging.d.ts +78 -0
  496. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/logging.d.ts.map +1 -0
  497. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/logging.js +398 -0
  498. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/logging.js.map +1 -0
  499. package/dist/dashboard-runtime/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
  500. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts +1 -0
  501. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.d.ts.map +1 -1
  502. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js +64 -20
  503. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/kb-client.js.map +1 -1
  504. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts +1 -0
  505. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.d.ts.map +1 -1
  506. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js +62 -18
  507. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/memory-client.js.map +1 -1
  508. package/dist/node_modules/@tablestore/tablestore-agent-sdk/dist/tsconfig.tsbuildinfo +1 -1
  509. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.d.ts +1 -0
  510. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.d.ts.map +1 -1
  511. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.js +19 -0
  512. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/config.js.map +1 -1
  513. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/constants.d.ts.map +1 -1
  514. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/constants.js +4 -2
  515. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/constants.js.map +1 -1
  516. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/index.d.ts +1 -0
  517. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/index.d.ts.map +1 -1
  518. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/index.js +1 -0
  519. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/index.js.map +1 -1
  520. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/logging.d.ts +78 -0
  521. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/logging.d.ts.map +1 -0
  522. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/logging.js +398 -0
  523. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/logging.js.map +1 -0
  524. package/dist/node_modules/@tablestore/tablestore-agent-shared/dist/tsconfig.tsbuildinfo +1 -1
  525. package/package.json +1 -1
  526. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__03742bf._.js +0 -3
  527. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__037l_3-._.js +0 -3
  528. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__05pd96o._.js +0 -3
  529. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__07jfil8._.js +0 -38
  530. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__089jtfp._.js +0 -3
  531. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__08w-nm2._.js +0 -3
  532. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0_o02fk._.js +0 -3
  533. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0b50n21._.js +0 -3
  534. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0bfezi5._.js +0 -3
  535. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0btp1y7._.js +0 -3
  536. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0fqdh7c._.js +0 -3
  537. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0g9--xh._.js +0 -3
  538. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0gqr7to._.js +0 -3
  539. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0h71~~8._.js +0 -3
  540. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0l1bgu.._.js +0 -3
  541. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0lcurm3._.js +0 -3
  542. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0n3pam7._.js +0 -3
  543. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0nkghp7._.js +0 -3
  544. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0r4amj5._.js +0 -3
  545. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0td5dey._.js +0 -3
  546. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0tsud8x._.js +0 -3
  547. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0wl_vik._.js +0 -3
  548. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0x7~7nk._.js +0 -3
  549. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0xvok7r._.js +0 -3
  550. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__0~tse9o._.js +0 -3
  551. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12lk-nv._.js +0 -3
  552. package/dist/dashboard-runtime/dashboard/.next/server/chunks/[root-of-the-server]__12sqoa8._.js +0 -3
  553. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/0e.4_sonner_dist_index_mjs_0u2em8w._.js +0 -3
  554. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/12df_@tanstack_react-query_build_modern_0em_ajy._.js +0 -3
  555. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[externals]__0wijiwt._.js +0 -3
  556. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__09_30hi._.js +0 -3
  557. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0l937k4._.js +0 -3
  558. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/[root-of-the-server]__0nwf4e.._.js +0 -3
  559. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_00f15bk._.js +0 -3
  560. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_08j6p-z._.js +0 -3
  561. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0f-may2._.js +0 -3
  562. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0fp_nnb._.js +0 -3
  563. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0l6jz-5._.js +0 -3
  564. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_0naqa6h._.js +0 -3
  565. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/_11fig8y._.js +0 -3
  566. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_00o55he._.js +0 -3
  567. package/dist/dashboard-runtime/dashboard/.next/server/chunks/ssr/node_modules__pnpm_0qzg4vh._.js +0 -3
  568. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0-mr2-dyb-szq.js +0 -1
  569. package/dist/dashboard-runtime/dashboard/.next/static/chunks/00.fyg_t3xjc~.js +0 -1
  570. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0003a8l0skc88.js +0 -1
  571. package/dist/dashboard-runtime/dashboard/.next/static/chunks/00m4164p4ip7m.js +0 -1
  572. package/dist/dashboard-runtime/dashboard/.next/static/chunks/02b1c4t1dy1ri.js +0 -1
  573. package/dist/dashboard-runtime/dashboard/.next/static/chunks/06v~rjrrn4ugo.js +0 -1
  574. package/dist/dashboard-runtime/dashboard/.next/static/chunks/07r22x5uhjxjb.js +0 -1
  575. package/dist/dashboard-runtime/dashboard/.next/static/chunks/07v08gtfpo2yk.js +0 -1
  576. package/dist/dashboard-runtime/dashboard/.next/static/chunks/07xvdo2w9s4~p.js +0 -1
  577. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0cbu3udngtx-v.js +0 -4
  578. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0gkonvtvjhg-p.js +0 -1
  579. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0hpoawl1bb10g.js +0 -1
  580. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0jf4ytf.izmzh.js +0 -1
  581. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0m2p301.a174k.js +0 -1
  582. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0m42mmyxmgn-i.js +0 -1
  583. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0odz1whf-ozqn.css +0 -1
  584. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0ouxv_2qvf6.9.js +0 -1
  585. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0rbkgj._oqsb3.js +0 -1
  586. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0rywhgbu_16tm.js +0 -5
  587. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0r~6kt_pkm4di.js +0 -1
  588. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0u6u.649ou67b.js +0 -1
  589. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0vf7~eysvh9bq.js +0 -1
  590. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0wmaq.ay~r2sn.js +0 -1
  591. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0xb0_9t-vmo6e.js +0 -1
  592. package/dist/dashboard-runtime/dashboard/.next/static/chunks/0yp_2ea75d19v.js +0 -1
  593. package/dist/dashboard-runtime/dashboard/.next/static/chunks/11cizim1aug~b.js +0 -1
  594. package/dist/dashboard-runtime/dashboard/.next/static/chunks/14-39g6hwhcgn.js +0 -1
  595. package/dist/dashboard-runtime/dashboard/.next/static/chunks/1864_5-9a61tw.js +0 -1
  596. /package/dist/dashboard-runtime/dashboard/.next/static/{BGnMIk4OPjFx_qvLFMTBc → nPPow7lCVx1fYDGH2XCxQ}/_buildManifest.js +0 -0
  597. /package/dist/dashboard-runtime/dashboard/.next/static/{BGnMIk4OPjFx_qvLFMTBc → nPPow7lCVx1fYDGH2XCxQ}/_clientMiddlewareManifest.js +0 -0
  598. /package/dist/dashboard-runtime/dashboard/.next/static/{BGnMIk4OPjFx_qvLFMTBc → nPPow7lCVx1fYDGH2XCxQ}/_ssgManifest.js +0 -0
@@ -0,0 +1,22 @@
1
+ import * as React from "react"
2
+
3
+ import { cn } from "@/lib/utils"
4
+
5
+ const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<"input">>(
6
+ ({ className, type, ...props }, ref) => {
7
+ return (
8
+ <input
9
+ type={type}
10
+ className={cn(
11
+ "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
12
+ className
13
+ )}
14
+ ref={ref}
15
+ {...props}
16
+ />
17
+ )
18
+ }
19
+ )
20
+ Input.displayName = "Input"
21
+
22
+ export { Input }
@@ -0,0 +1,24 @@
1
+ import * as React from "react"
2
+ import * as LabelPrimitive from "@radix-ui/react-label"
3
+ import { cva, type VariantProps } from "class-variance-authority"
4
+
5
+ import { cn } from "@/lib/utils"
6
+
7
+ const labelVariants = cva(
8
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
9
+ )
10
+
11
+ const Label = React.forwardRef<
12
+ React.ElementRef<typeof LabelPrimitive.Root>,
13
+ React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &
14
+ VariantProps<typeof labelVariants>
15
+ >(({ className, ...props }, ref) => (
16
+ <LabelPrimitive.Root
17
+ ref={ref}
18
+ className={cn(labelVariants(), className)}
19
+ {...props}
20
+ />
21
+ ))
22
+ Label.displayName = LabelPrimitive.Root.displayName
23
+
24
+ export { Label }
@@ -0,0 +1,34 @@
1
+ "use client"
2
+
3
+ import * as React from "react"
4
+ import * as PopoverPrimitive from "@radix-ui/react-popover"
5
+
6
+ import { cn } from "@/lib/utils"
7
+
8
+ const Popover = PopoverPrimitive.Root
9
+
10
+ const PopoverTrigger = PopoverPrimitive.Trigger
11
+
12
+ const PopoverAnchor = PopoverPrimitive.Anchor
13
+
14
+ const PopoverContent = React.forwardRef<
15
+ React.ElementRef<typeof PopoverPrimitive.Content>,
16
+ React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>
17
+ >(({ className, align = "center", sideOffset = 4, ...props }, ref) => (
18
+ <PopoverPrimitive.Portal>
19
+ <PopoverPrimitive.Content
20
+ ref={ref}
21
+ align={align}
22
+ sideOffset={sideOffset}
23
+ className={cn(
24
+ "z-50 w-72 rounded-md border bg-[hsl(var(--popover))] p-4 text-[hsl(var(--popover-foreground))] shadow-md outline-none",
25
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
26
+ className
27
+ )}
28
+ {...props}
29
+ />
30
+ </PopoverPrimitive.Portal>
31
+ ))
32
+ PopoverContent.displayName = PopoverPrimitive.Content.displayName
33
+
34
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor }
@@ -0,0 +1,162 @@
1
+ "use client"
2
+
3
+ import * as React from "react"
4
+ import * as SelectPrimitive from "@radix-ui/react-select"
5
+ import { Check, ChevronDown, ChevronUp } from "lucide-react"
6
+
7
+ import { cn } from "@/lib/utils"
8
+
9
+ const Select = SelectPrimitive.Root
10
+
11
+ const SelectGroup = SelectPrimitive.Group
12
+
13
+ const SelectValue = SelectPrimitive.Value
14
+
15
+ const SelectTrigger = React.forwardRef<
16
+ React.ElementRef<typeof SelectPrimitive.Trigger>,
17
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Trigger>
18
+ >(({ className, children, ...props }, ref) => (
19
+ <SelectPrimitive.Trigger
20
+ ref={ref}
21
+ className={cn(
22
+ "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
23
+ "bg-[hsl(var(--background))]",
24
+ className
25
+ )}
26
+ {...props}
27
+ >
28
+ {children}
29
+ <SelectPrimitive.Icon asChild>
30
+ <ChevronDown className="h-4 w-4 opacity-50" />
31
+ </SelectPrimitive.Icon>
32
+ </SelectPrimitive.Trigger>
33
+ ))
34
+ SelectTrigger.displayName = SelectPrimitive.Trigger.displayName
35
+
36
+ const SelectScrollUpButton = React.forwardRef<
37
+ React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,
38
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollUpButton>
39
+ >(({ className, ...props }, ref) => (
40
+ <SelectPrimitive.ScrollUpButton
41
+ ref={ref}
42
+ className={cn(
43
+ "flex cursor-default items-center justify-center py-1",
44
+ className
45
+ )}
46
+ {...props}
47
+ >
48
+ <ChevronUp className="h-4 w-4" />
49
+ </SelectPrimitive.ScrollUpButton>
50
+ ))
51
+ SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName
52
+
53
+ const SelectScrollDownButton = React.forwardRef<
54
+ React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,
55
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.ScrollDownButton>
56
+ >(({ className, ...props }, ref) => (
57
+ <SelectPrimitive.ScrollDownButton
58
+ ref={ref}
59
+ className={cn(
60
+ "flex cursor-default items-center justify-center py-1",
61
+ className
62
+ )}
63
+ {...props}
64
+ >
65
+ <ChevronDown className="h-4 w-4" />
66
+ </SelectPrimitive.ScrollDownButton>
67
+ ))
68
+ SelectScrollDownButton.displayName =
69
+ SelectPrimitive.ScrollDownButton.displayName
70
+
71
+ const SelectContent = React.forwardRef<
72
+ React.ElementRef<typeof SelectPrimitive.Content>,
73
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content>
74
+ >(({ className, children, position = "popper", ...props }, ref) => (
75
+ <SelectPrimitive.Portal>
76
+ <SelectPrimitive.Content
77
+ ref={ref}
78
+ className={cn(
79
+ "relative z-50 max-h-72 min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",
80
+ "bg-[hsl(var(--popover))] text-[hsl(var(--popover-foreground))]",
81
+ position === "popper" &&
82
+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
83
+ className
84
+ )}
85
+ position={position}
86
+ {...props}
87
+ >
88
+ <SelectScrollUpButton />
89
+ <SelectPrimitive.Viewport
90
+ className={cn(
91
+ "p-1",
92
+ position === "popper" &&
93
+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
94
+ )}
95
+ >
96
+ {children}
97
+ </SelectPrimitive.Viewport>
98
+ <SelectScrollDownButton />
99
+ </SelectPrimitive.Content>
100
+ </SelectPrimitive.Portal>
101
+ ))
102
+ SelectContent.displayName = SelectPrimitive.Content.displayName
103
+
104
+ const SelectLabel = React.forwardRef<
105
+ React.ElementRef<typeof SelectPrimitive.Label>,
106
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Label>
107
+ >(({ className, ...props }, ref) => (
108
+ <SelectPrimitive.Label
109
+ ref={ref}
110
+ className={cn("px-2 py-1.5 text-sm font-semibold", className)}
111
+ {...props}
112
+ />
113
+ ))
114
+ SelectLabel.displayName = SelectPrimitive.Label.displayName
115
+
116
+ const SelectItem = React.forwardRef<
117
+ React.ElementRef<typeof SelectPrimitive.Item>,
118
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item>
119
+ >(({ className, children, ...props }, ref) => (
120
+ <SelectPrimitive.Item
121
+ ref={ref}
122
+ className={cn(
123
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
124
+ "hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))] focus:bg-[hsl(var(--accent))] focus:text-[hsl(var(--accent-foreground))]",
125
+ className
126
+ )}
127
+ {...props}
128
+ >
129
+ <span className="absolute right-2 flex h-3.5 w-3.5 items-center justify-center">
130
+ <SelectPrimitive.ItemIndicator>
131
+ <Check className="h-4 w-4" />
132
+ </SelectPrimitive.ItemIndicator>
133
+ </span>
134
+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
135
+ </SelectPrimitive.Item>
136
+ ))
137
+ SelectItem.displayName = SelectPrimitive.Item.displayName
138
+
139
+ const SelectSeparator = React.forwardRef<
140
+ React.ElementRef<typeof SelectPrimitive.Separator>,
141
+ React.ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>
142
+ >(({ className, ...props }, ref) => (
143
+ <SelectPrimitive.Separator
144
+ ref={ref}
145
+ className={cn("-mx-1 my-1 h-px bg-muted", className)}
146
+ {...props}
147
+ />
148
+ ))
149
+ SelectSeparator.displayName = SelectPrimitive.Separator.displayName
150
+
151
+ export {
152
+ Select,
153
+ SelectGroup,
154
+ SelectValue,
155
+ SelectTrigger,
156
+ SelectContent,
157
+ SelectLabel,
158
+ SelectItem,
159
+ SelectSeparator,
160
+ SelectScrollUpButton,
161
+ SelectScrollDownButton,
162
+ }
@@ -0,0 +1,31 @@
1
+ "use client"
2
+
3
+ import * as React from "react"
4
+ import * as SeparatorPrimitive from "@radix-ui/react-separator"
5
+
6
+ import { cn } from "@/lib/utils"
7
+
8
+ const Separator = React.forwardRef<
9
+ React.ElementRef<typeof SeparatorPrimitive.Root>,
10
+ React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
11
+ >(
12
+ (
13
+ { className, orientation = "horizontal", decorative = true, ...props },
14
+ ref
15
+ ) => (
16
+ <SeparatorPrimitive.Root
17
+ ref={ref}
18
+ decorative={decorative}
19
+ orientation={orientation}
20
+ className={cn(
21
+ "shrink-0 bg-border",
22
+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
23
+ className
24
+ )}
25
+ {...props}
26
+ />
27
+ )
28
+ )
29
+ Separator.displayName = SeparatorPrimitive.Root.displayName
30
+
31
+ export { Separator }
@@ -0,0 +1,129 @@
1
+ "use client";
2
+
3
+ import * as React from "react";
4
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
5
+ import { X } from "lucide-react";
6
+
7
+ import { cn } from "@/lib/utils";
8
+
9
+ // Reuse the Radix Dialog primitives under a Sheet-themed alias so slide-in
10
+ // drawers can be composed without pulling in a second primitive. The content
11
+ // slot provides side-aware animations via `data-side`.
12
+
13
+ const Sheet = DialogPrimitive.Root;
14
+ const SheetTrigger = DialogPrimitive.Trigger;
15
+ const SheetClose = DialogPrimitive.Close;
16
+ const SheetPortal = DialogPrimitive.Portal;
17
+
18
+ const SheetOverlay = React.forwardRef<
19
+ React.ElementRef<typeof DialogPrimitive.Overlay>,
20
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>
21
+ >(({ className, ...props }, ref) => (
22
+ <DialogPrimitive.Overlay
23
+ ref={ref}
24
+ className={cn(
25
+ "fixed inset-0 z-50 bg-black/60 backdrop-blur-sm duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
26
+ className,
27
+ )}
28
+ {...props}
29
+ />
30
+ ));
31
+ SheetOverlay.displayName = DialogPrimitive.Overlay.displayName;
32
+
33
+ type SheetSide = "top" | "bottom" | "left" | "right";
34
+
35
+ interface SheetContentProps
36
+ extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
37
+ side?: SheetSide;
38
+ }
39
+
40
+ const SIDE_STYLES: Record<SheetSide, string> = {
41
+ top: "inset-x-0 top-0 border-b data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top",
42
+ bottom:
43
+ "inset-x-0 bottom-0 border-t data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom",
44
+ left: "inset-y-0 left-0 h-full w-3/4 max-w-sm border-r data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left",
45
+ right:
46
+ "inset-y-0 right-0 h-full w-3/4 max-w-md border-l data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right",
47
+ };
48
+
49
+ const SheetContent = React.forwardRef<
50
+ React.ElementRef<typeof DialogPrimitive.Content>,
51
+ SheetContentProps
52
+ >(({ className, children, side = "right", ...props }, ref) => (
53
+ <SheetPortal>
54
+ <SheetOverlay />
55
+ <DialogPrimitive.Content
56
+ ref={ref}
57
+ className={cn(
58
+ "fixed z-50 flex flex-col gap-4 bg-[hsl(var(--background))] p-6 shadow-xl",
59
+ "duration-300 ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out",
60
+ SIDE_STYLES[side],
61
+ className,
62
+ )}
63
+ {...props}
64
+ >
65
+ {children}
66
+ <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none">
67
+ <X className="h-4 w-4" />
68
+ <span className="sr-only">Close</span>
69
+ </DialogPrimitive.Close>
70
+ </DialogPrimitive.Content>
71
+ </SheetPortal>
72
+ ));
73
+ SheetContent.displayName = DialogPrimitive.Content.displayName;
74
+
75
+ const SheetHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
76
+ <div
77
+ className={cn("flex flex-col space-y-1.5 text-left", className)}
78
+ {...props}
79
+ />
80
+ );
81
+ SheetHeader.displayName = "SheetHeader";
82
+
83
+ const SheetFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (
84
+ <div
85
+ className={cn(
86
+ "mt-auto flex flex-col-reverse gap-2 sm:flex-row sm:justify-end sm:space-x-2",
87
+ className,
88
+ )}
89
+ {...props}
90
+ />
91
+ );
92
+ SheetFooter.displayName = "SheetFooter";
93
+
94
+ const SheetTitle = React.forwardRef<
95
+ React.ElementRef<typeof DialogPrimitive.Title>,
96
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>
97
+ >(({ className, ...props }, ref) => (
98
+ <DialogPrimitive.Title
99
+ ref={ref}
100
+ className={cn("text-lg font-semibold leading-none tracking-tight", className)}
101
+ {...props}
102
+ />
103
+ ));
104
+ SheetTitle.displayName = DialogPrimitive.Title.displayName;
105
+
106
+ const SheetDescription = React.forwardRef<
107
+ React.ElementRef<typeof DialogPrimitive.Description>,
108
+ React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>
109
+ >(({ className, ...props }, ref) => (
110
+ <DialogPrimitive.Description
111
+ ref={ref}
112
+ className={cn("text-sm text-muted-foreground", className)}
113
+ {...props}
114
+ />
115
+ ));
116
+ SheetDescription.displayName = DialogPrimitive.Description.displayName;
117
+
118
+ export {
119
+ Sheet,
120
+ SheetTrigger,
121
+ SheetClose,
122
+ SheetPortal,
123
+ SheetOverlay,
124
+ SheetContent,
125
+ SheetHeader,
126
+ SheetFooter,
127
+ SheetTitle,
128
+ SheetDescription,
129
+ };
@@ -0,0 +1,49 @@
1
+ import * as React from "react"
2
+
3
+ import { cn } from "@/lib/utils"
4
+
5
+ interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ /** Pulse start delay in milliseconds, used by SkeletonGroup for stagger. */
7
+ delay?: number
8
+ }
9
+
10
+ function Skeleton({ className, delay, style, ...props }: SkeletonProps) {
11
+ return (
12
+ <div
13
+ className={cn("animate-pulse rounded-md bg-primary/10", className)}
14
+ style={{ animationDelay: delay ? `${delay}ms` : undefined, ...style }}
15
+ {...props}
16
+ />
17
+ )
18
+ }
19
+
20
+ interface SkeletonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
21
+ /** Gap between each child animation start, default 80ms. */
22
+ stagger?: number
23
+ }
24
+
25
+ /**
26
+ * Wraps multiple Skeleton children and assigns incremental animation-delay to
27
+ * each one, producing a progressive loading effect.
28
+ */
29
+ function SkeletonGroup({
30
+ children,
31
+ stagger = 80,
32
+ className,
33
+ ...props
34
+ }: SkeletonGroupProps) {
35
+ const items = React.Children.toArray(children)
36
+ return (
37
+ <div className={className} {...props}>
38
+ {items.map((child, index) => {
39
+ if (!React.isValidElement<SkeletonProps>(child)) return child
40
+ const existingDelay = child.props.delay ?? 0
41
+ return React.cloneElement(child, {
42
+ delay: existingDelay + index * stagger,
43
+ })
44
+ })}
45
+ </div>
46
+ )
47
+ }
48
+
49
+ export { Skeleton, SkeletonGroup }
@@ -0,0 +1,28 @@
1
+ "use client";
2
+
3
+ import * as React from "react";
4
+ import * as SliderPrimitive from "@radix-ui/react-slider";
5
+
6
+ import { cn } from "@/lib/utils";
7
+
8
+ const Slider = React.forwardRef<
9
+ React.ElementRef<typeof SliderPrimitive.Root>,
10
+ React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>
11
+ >(({ className, ...props }, ref) => (
12
+ <SliderPrimitive.Root
13
+ ref={ref}
14
+ className={cn(
15
+ "relative flex w-full touch-none select-none items-center",
16
+ className,
17
+ )}
18
+ {...props}
19
+ >
20
+ <SliderPrimitive.Track className="relative h-1.5 w-full grow overflow-hidden rounded-full bg-[hsl(var(--muted))]">
21
+ <SliderPrimitive.Range className="absolute h-full bg-[hsl(var(--primary))]" />
22
+ </SliderPrimitive.Track>
23
+ <SliderPrimitive.Thumb className="block h-4 w-4 rounded-full border border-[hsl(var(--primary))] bg-[hsl(var(--background))] shadow-sm ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" />
24
+ </SliderPrimitive.Root>
25
+ ));
26
+ Slider.displayName = SliderPrimitive.Root.displayName;
27
+
28
+ export { Slider };
@@ -0,0 +1,29 @@
1
+ import { useTheme } from "next-themes"
2
+ import { Toaster as Sonner } from "sonner"
3
+
4
+ type ToasterProps = React.ComponentProps<typeof Sonner>
5
+
6
+ const Toaster = ({ ...props }: ToasterProps) => {
7
+ const { theme = "system" } = useTheme()
8
+
9
+ return (
10
+ <Sonner
11
+ theme={theme as ToasterProps["theme"]}
12
+ className="toaster group"
13
+ toastOptions={{
14
+ classNames: {
15
+ toast:
16
+ "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
17
+ description: "group-[.toast]:text-muted-foreground",
18
+ actionButton:
19
+ "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
20
+ cancelButton:
21
+ "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",
22
+ },
23
+ }}
24
+ {...props}
25
+ />
26
+ )
27
+ }
28
+
29
+ export { Toaster }
@@ -0,0 +1,66 @@
1
+ "use client";
2
+
3
+ import * as React from "react";
4
+ import { cn } from "@/lib/utils";
5
+
6
+ interface SwitchProps
7
+ extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange"> {
8
+ checked?: boolean;
9
+ onCheckedChange?: (checked: boolean) => void;
10
+ }
11
+
12
+ /**
13
+ * iOS-style switch built on a native <button role="switch">. The track uses an
14
+ * inset shadow to read as a recessed groove, while the thumb carries a layered
15
+ * drop shadow so it visually lifts above the track. Space / Enter toggling is
16
+ * handled by the browser; the component only mirrors state into aria-checked
17
+ * and data-state, and animates the thumb via a spring easing curve. All
18
+ * transitions are limited to transform and background-color so the browser can
19
+ * keep them on the compositor thread.
20
+ */
21
+ const Switch = React.forwardRef<HTMLButtonElement, SwitchProps>(
22
+ ({ className, checked = false, onCheckedChange, disabled, ...props }, ref) => (
23
+ <button
24
+ ref={ref}
25
+ type="button"
26
+ role="switch"
27
+ aria-checked={checked}
28
+ data-state={checked ? "checked" : "unchecked"}
29
+ disabled={disabled}
30
+ onClick={() => onCheckedChange?.(!checked)}
31
+ className={cn(
32
+ // Track: 24x44 follows the iOS Switch proportions (roughly 13:22) and
33
+ // gives the thumb enough room to read as the dominant element.
34
+ "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full transition-colors duration-200",
35
+ // Inset shadow renders the track as a recessed groove instead of a
36
+ // flat saturated block, which is what made the on-state feel heavy.
37
+ "shadow-[inset_0_0_0_1px_rgba(0,0,0,0.04),inset_0_1px_2px_rgba(0,0,0,0.06)]",
38
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",
39
+ "disabled:cursor-not-allowed disabled:opacity-50",
40
+ checked
41
+ ? "bg-[hsl(var(--primary-600))]"
42
+ : "bg-[hsl(var(--muted))] hover:bg-[hsl(var(--muted)/0.8)]",
43
+ className,
44
+ )}
45
+ {...props}
46
+ >
47
+ <span
48
+ aria-hidden
49
+ className={cn(
50
+ // Thumb: 20x20 with 2px breathing room on each side of the 24x44
51
+ // track. A layered shadow plus a hairline ring keep the white knob
52
+ // visible on both the light gray and the primary blue backgrounds.
53
+ "pointer-events-none block h-5 w-5 rounded-full bg-white transition-transform duration-200",
54
+ "shadow-[0_1px_2px_rgba(0,0,0,0.1),0_2px_6px_rgba(0,0,0,0.15)] ring-1 ring-black/4",
55
+ // Spring easing gives a subtle overshoot, matching the tactile feel
56
+ // of the iOS toggle without a heavy animation library.
57
+ "ease-[cubic-bezier(0.34,1.56,0.64,1)]",
58
+ checked ? "translate-x-5" : "translate-x-0.5",
59
+ )}
60
+ />
61
+ </button>
62
+ ),
63
+ );
64
+ Switch.displayName = "Switch";
65
+
66
+ export { Switch };