promptarc 0.0.2 → 0.0.4

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 (246) hide show
  1. package/README.md +33 -25
  2. package/dist/bin.js +886 -4
  3. package/dist/share-direct.js +360 -0
  4. package/dist/web/.next/BUILD_ID +1 -1
  5. package/dist/web/.next/app-build-manifest.json +318 -226
  6. package/dist/web/.next/app-path-routes-manifest.json +24 -13
  7. package/dist/web/.next/build-manifest.json +14 -14
  8. package/dist/web/.next/prerender-manifest.json +89 -1
  9. package/dist/web/.next/routes-manifest.json +36 -0
  10. package/dist/web/.next/server/app/_not-found/page.js +1 -1
  11. package/dist/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  12. package/dist/web/.next/server/app/api/admin/backfill-ai/route.js +8 -0
  13. package/dist/web/.next/server/app/api/admin/backfill-ai/route.js.nft.json +1 -0
  14. package/dist/web/.next/server/app/api/admin/backfill-ai/route_client-reference-manifest.js +1 -0
  15. package/dist/web/.next/server/app/api/admin/backfill-search/route.js +1 -1
  16. package/dist/web/.next/server/app/api/admin/backfill-search/route.js.nft.json +1 -1
  17. package/dist/web/.next/server/app/api/admin/backfill-search/route_client-reference-manifest.js +1 -1
  18. package/dist/web/.next/server/app/api/ai/context/route.js +31 -0
  19. package/dist/web/.next/server/app/api/ai/context/route.js.nft.json +1 -0
  20. package/dist/web/.next/server/app/api/ai/context/route_client-reference-manifest.js +1 -0
  21. package/dist/web/.next/server/app/api/ai/pr-summary/route.js +28 -0
  22. package/dist/web/.next/server/app/api/ai/pr-summary/route.js.nft.json +1 -0
  23. package/dist/web/.next/server/app/api/ai/pr-summary/route_client-reference-manifest.js +1 -0
  24. package/dist/web/.next/server/app/api/ai/pr-summary-local/route.js +28 -0
  25. package/dist/web/.next/server/app/api/ai/pr-summary-local/route.js.nft.json +1 -0
  26. package/dist/web/.next/server/app/api/ai/pr-summary-local/route_client-reference-manifest.js +1 -0
  27. package/dist/web/.next/server/app/api/ai/process/route.js +8 -0
  28. package/dist/web/.next/server/app/api/ai/process/route.js.nft.json +1 -0
  29. package/dist/web/.next/server/app/api/ai/process/route_client-reference-manifest.js +1 -0
  30. package/dist/web/.next/server/app/api/cli/download/route.js +1 -1
  31. package/dist/web/.next/server/app/api/cli/download/route.js.nft.json +1 -1
  32. package/dist/web/.next/server/app/api/cli/download/route_client-reference-manifest.js +1 -1
  33. package/dist/web/.next/server/app/api/cli/feedback/route_client-reference-manifest.js +1 -1
  34. package/dist/web/.next/server/app/api/cli/init/route_client-reference-manifest.js +1 -1
  35. package/dist/web/.next/server/app/api/cli/my-shares/route.js +1 -1
  36. package/dist/web/.next/server/app/api/cli/my-shares/route_client-reference-manifest.js +1 -1
  37. package/dist/web/.next/server/app/api/cli/poll/route_client-reference-manifest.js +1 -1
  38. package/dist/web/.next/server/app/api/cli/project-settings/route_client-reference-manifest.js +1 -1
  39. package/dist/web/.next/server/app/api/cli/share-mutate/route_client-reference-manifest.js +1 -1
  40. package/dist/web/.next/server/app/api/cli/sync-list/route_client-reference-manifest.js +1 -1
  41. package/dist/web/.next/server/app/api/local/project-sessions/route.js +1 -1
  42. package/dist/web/.next/server/app/api/local/project-sessions/route.js.nft.json +1 -1
  43. package/dist/web/.next/server/app/api/local/project-sessions/route_client-reference-manifest.js +1 -1
  44. package/dist/web/.next/server/app/api/local/watch/route.js +2 -2
  45. package/dist/web/.next/server/app/api/local/watch/route.js.nft.json +1 -1
  46. package/dist/web/.next/server/app/api/local/watch/route_client-reference-manifest.js +1 -1
  47. package/dist/web/.next/server/app/api/search/route.js +1 -1
  48. package/dist/web/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
  49. package/dist/web/.next/server/app/api/search-index/route.js +1 -1
  50. package/dist/web/.next/server/app/api/search-index/route.js.nft.json +1 -1
  51. package/dist/web/.next/server/app/api/search-index/route_client-reference-manifest.js +1 -1
  52. package/dist/web/.next/server/app/api/share/download/[slug]/route.js +1 -1
  53. package/dist/web/.next/server/app/api/share/download/[slug]/route.js.nft.json +1 -1
  54. package/dist/web/.next/server/app/api/share/download/[slug]/route_client-reference-manifest.js +1 -1
  55. package/dist/web/.next/server/app/api/share/route.js +1 -1
  56. package/dist/web/.next/server/app/api/share/route.js.nft.json +1 -1
  57. package/dist/web/.next/server/app/api/share/route_client-reference-manifest.js +1 -1
  58. package/dist/web/.next/server/app/api/upload/route.js +2 -2
  59. package/dist/web/.next/server/app/api/upload/route.js.nft.json +1 -1
  60. package/dist/web/.next/server/app/api/upload/route_client-reference-manifest.js +1 -1
  61. package/dist/web/.next/server/app/auth/callback/route_client-reference-manifest.js +1 -1
  62. package/dist/web/.next/server/app/auth/signout/route_client-reference-manifest.js +1 -1
  63. package/dist/web/.next/server/app/blog/ai-coding-agents-2026/page.js +2 -0
  64. package/dist/web/.next/server/app/blog/ai-coding-agents-2026/page.js.nft.json +1 -0
  65. package/dist/web/.next/server/app/blog/ai-coding-agents-2026/page_client-reference-manifest.js +1 -0
  66. package/dist/web/.next/server/app/blog/page.js +2 -0
  67. package/dist/web/.next/server/app/blog/page.js.nft.json +1 -0
  68. package/dist/web/.next/server/app/blog/page_client-reference-manifest.js +1 -0
  69. package/dist/web/.next/server/app/cli/login/page.js +1 -1
  70. package/dist/web/.next/server/app/cli/login/page_client-reference-manifest.js +1 -1
  71. package/dist/web/.next/server/app/digest/page_client-reference-manifest.js +1 -1
  72. package/dist/web/.next/server/app/feedback/page_client-reference-manifest.js +1 -1
  73. package/dist/web/.next/server/app/my-projects/[projectKey]/page_client-reference-manifest.js +1 -1
  74. package/dist/web/.next/server/app/my-projects/page_client-reference-manifest.js +1 -1
  75. package/dist/web/.next/server/app/my-shares/page.js +1 -1
  76. package/dist/web/.next/server/app/my-shares/page_client-reference-manifest.js +1 -1
  77. package/dist/web/.next/server/app/opengraph-image/route.js +1 -71
  78. package/dist/web/.next/server/app/opengraph-image/route.js.nft.json +1 -0
  79. package/dist/web/.next/server/app/opengraph-image/route_client-reference-manifest.js +1 -1
  80. package/dist/web/.next/server/app/opengraph-image.body +0 -0
  81. package/dist/web/.next/server/app/opengraph-image.meta +1 -0
  82. package/dist/web/.next/server/app/page.js +2 -2
  83. package/dist/web/.next/server/app/page.js.nft.json +1 -1
  84. package/dist/web/.next/server/app/page_client-reference-manifest.js +1 -1
  85. package/dist/web/.next/server/app/privacy/page.js +2 -0
  86. package/dist/web/.next/server/app/privacy/page.js.nft.json +1 -0
  87. package/dist/web/.next/server/app/privacy/page_client-reference-manifest.js +1 -0
  88. package/dist/web/.next/server/app/projects/[id]/page.js +1 -1
  89. package/dist/web/.next/server/app/projects/[id]/page.js.nft.json +1 -1
  90. package/dist/web/.next/server/app/projects/[id]/page_client-reference-manifest.js +1 -1
  91. package/dist/web/.next/server/app/r/[slug]/opengraph-image/route.js +1 -1
  92. package/dist/web/.next/server/app/r/[slug]/opengraph-image/route_client-reference-manifest.js +1 -1
  93. package/dist/web/.next/server/app/r/[slug]/page.js +2 -2
  94. package/dist/web/.next/server/app/r/[slug]/page.js.nft.json +1 -1
  95. package/dist/web/.next/server/app/r/[slug]/page_client-reference-manifest.js +1 -1
  96. package/dist/web/.next/server/app/robots.txt/route.js +16 -0
  97. package/dist/web/.next/server/app/robots.txt/route.js.nft.json +1 -0
  98. package/dist/web/.next/server/app/robots.txt/route_client-reference-manifest.js +1 -0
  99. package/dist/web/.next/server/app/robots.txt.body +9 -0
  100. package/dist/web/.next/server/app/robots.txt.meta +1 -0
  101. package/dist/web/.next/server/app/search/page_client-reference-manifest.js +1 -1
  102. package/dist/web/.next/server/app/sessions/[projectId]/[sessionId]/page.js +1 -1
  103. package/dist/web/.next/server/app/sessions/[projectId]/[sessionId]/page.js.nft.json +1 -1
  104. package/dist/web/.next/server/app/sessions/[projectId]/[sessionId]/page_client-reference-manifest.js +1 -1
  105. package/dist/web/.next/server/app/sign-in/page.js +1 -1
  106. package/dist/web/.next/server/app/sign-in/page_client-reference-manifest.js +1 -1
  107. package/dist/web/.next/server/app/sitemap.xml/route.js +16 -0
  108. package/dist/web/.next/server/app/sitemap.xml/route.js.nft.json +1 -0
  109. package/dist/web/.next/server/app/sitemap.xml/route_client-reference-manifest.js +1 -0
  110. package/dist/web/.next/server/app/sitemap.xml.body +51 -0
  111. package/dist/web/.next/server/app/sitemap.xml.meta +1 -0
  112. package/dist/web/.next/server/app/terms/page.js +2 -0
  113. package/dist/web/.next/server/app/terms/page.js.nft.json +1 -0
  114. package/dist/web/.next/server/app/terms/page_client-reference-manifest.js +1 -0
  115. package/dist/web/.next/server/app-paths-manifest.json +24 -13
  116. package/dist/web/.next/server/chunks/1017.js +2 -0
  117. package/dist/web/.next/server/chunks/1134.js +8 -0
  118. package/dist/web/.next/server/chunks/1825.js +1 -1
  119. package/dist/web/.next/server/chunks/8334.js +1 -1
  120. package/dist/web/.next/server/functions-config-manifest.json +17 -2
  121. package/dist/web/.next/server/middleware-build-manifest.js +1 -1
  122. package/dist/web/.next/server/middleware-manifest.json +1 -43
  123. package/dist/web/.next/server/pages/500.html +1 -1
  124. package/dist/web/.next/server/server-reference-manifest.js +1 -1
  125. package/dist/web/.next/server/server-reference-manifest.json +1 -1
  126. package/dist/web/.next/static/LF69v3WA6LbEAkvRHNqfG/_buildManifest.js +1 -0
  127. package/dist/web/.next/static/chunks/1029-12dc6d00537d43fd.js +1 -0
  128. package/dist/web/.next/static/chunks/4695-b52fc3d81451c3c3.js +1 -0
  129. package/dist/web/.next/static/chunks/552926ff-c5d04ae0c2d9f826.js +1 -0
  130. package/dist/web/.next/static/chunks/7200-4560b15b9cad37b3.js +1 -0
  131. package/dist/web/.next/static/chunks/app/_not-found/page-0f1123e35eb8f046.js +1 -0
  132. package/dist/web/.next/static/chunks/app/api/admin/backfill-ai/route-0f1123e35eb8f046.js +1 -0
  133. package/dist/web/.next/static/chunks/app/api/admin/backfill-search/route-0f1123e35eb8f046.js +1 -0
  134. package/dist/web/.next/static/chunks/app/api/ai/context/route-0f1123e35eb8f046.js +1 -0
  135. package/dist/web/.next/static/chunks/app/api/ai/pr-summary/route-0f1123e35eb8f046.js +1 -0
  136. package/dist/web/.next/static/chunks/app/api/ai/pr-summary-local/route-0f1123e35eb8f046.js +1 -0
  137. package/dist/web/.next/static/chunks/app/api/ai/process/route-0f1123e35eb8f046.js +1 -0
  138. package/dist/web/.next/static/chunks/app/api/cli/download/route-0f1123e35eb8f046.js +1 -0
  139. package/dist/web/.next/static/chunks/app/api/cli/feedback/route-0f1123e35eb8f046.js +1 -0
  140. package/dist/web/.next/static/chunks/app/api/cli/init/route-0f1123e35eb8f046.js +1 -0
  141. package/dist/web/.next/static/chunks/app/api/cli/my-shares/route-0f1123e35eb8f046.js +1 -0
  142. package/dist/web/.next/static/chunks/app/api/cli/poll/route-0f1123e35eb8f046.js +1 -0
  143. package/dist/web/.next/static/chunks/app/api/cli/project-settings/route-0f1123e35eb8f046.js +1 -0
  144. package/dist/web/.next/static/chunks/app/api/cli/share-mutate/route-0f1123e35eb8f046.js +1 -0
  145. package/dist/web/.next/static/chunks/app/api/cli/sync-list/route-0f1123e35eb8f046.js +1 -0
  146. package/dist/web/.next/static/chunks/app/api/local/project-sessions/route-0f1123e35eb8f046.js +1 -0
  147. package/dist/web/.next/static/chunks/app/api/local/watch/route-0f1123e35eb8f046.js +1 -0
  148. package/dist/web/.next/static/chunks/app/api/search/route-0f1123e35eb8f046.js +1 -0
  149. package/dist/web/.next/static/chunks/app/api/search-index/route-0f1123e35eb8f046.js +1 -0
  150. package/dist/web/.next/static/chunks/app/api/share/download/[slug]/route-0f1123e35eb8f046.js +1 -0
  151. package/dist/web/.next/static/chunks/app/api/share/route-0f1123e35eb8f046.js +1 -0
  152. package/dist/web/.next/static/chunks/app/api/upload/route-0f1123e35eb8f046.js +1 -0
  153. package/dist/web/.next/static/chunks/app/auth/callback/route-0f1123e35eb8f046.js +1 -0
  154. package/dist/web/.next/static/chunks/app/auth/signout/route-0f1123e35eb8f046.js +1 -0
  155. package/dist/web/.next/static/chunks/app/blog/ai-coding-agents-2026/page-0f1123e35eb8f046.js +1 -0
  156. package/dist/web/.next/static/chunks/app/blog/layout-9b51270472318488.js +1 -0
  157. package/dist/web/.next/static/chunks/app/blog/page-8400ea4ac5a7eb44.js +1 -0
  158. package/dist/web/.next/static/chunks/app/cli/login/page-26287cfd64c0fb49.js +1 -0
  159. package/dist/web/.next/static/chunks/app/digest/page-8400ea4ac5a7eb44.js +1 -0
  160. package/dist/web/.next/static/chunks/app/feedback/page-55ef0005807f1cef.js +1 -0
  161. package/dist/web/.next/static/chunks/app/layout-aa56caf2bf5af86f.js +1 -0
  162. package/dist/web/.next/static/chunks/app/my-projects/[projectKey]/page-7c5f2badf689d2e8.js +1 -0
  163. package/dist/web/.next/static/chunks/app/my-projects/page-c0390151fd6332a0.js +1 -0
  164. package/dist/web/.next/static/chunks/app/my-shares/{page-697d61e07a7546b2.js → page-49c0112973401c14.js} +1 -1
  165. package/dist/web/.next/static/chunks/app/not-found-8400ea4ac5a7eb44.js +1 -0
  166. package/dist/web/.next/static/chunks/app/opengraph-image/route-0f1123e35eb8f046.js +1 -0
  167. package/dist/web/.next/static/chunks/app/page-95394e3c6370084f.js +1 -0
  168. package/dist/web/.next/static/chunks/app/privacy/page-9b51270472318488.js +1 -0
  169. package/dist/web/.next/static/chunks/app/projects/[id]/page-7dd46a825d03a7d9.js +1 -0
  170. package/dist/web/.next/static/chunks/app/r/[slug]/opengraph-image/route-0f1123e35eb8f046.js +1 -0
  171. package/dist/web/.next/static/chunks/app/r/[slug]/page-6a0983805e048ac3.js +1 -0
  172. package/dist/web/.next/static/chunks/app/robots.txt/route-0f1123e35eb8f046.js +1 -0
  173. package/dist/web/.next/static/chunks/app/search/page-c29f37dc2462b676.js +1 -0
  174. package/dist/web/.next/static/chunks/app/sessions/[projectId]/[sessionId]/page-87b4505dd32edb9d.js +1 -0
  175. package/dist/web/.next/static/chunks/app/sign-in/page-fea3971ff9237b72.js +1 -0
  176. package/dist/web/.next/static/chunks/app/sitemap.xml/route-0f1123e35eb8f046.js +1 -0
  177. package/dist/web/.next/static/chunks/app/terms/page-9b51270472318488.js +1 -0
  178. package/dist/web/.next/static/chunks/d99d8e6a-55da88efbe15e3e1.js +1 -0
  179. package/dist/web/.next/static/chunks/framework-c1efa271b5a96d9d.js +1 -0
  180. package/dist/web/.next/static/chunks/main-app-70de904c7caade50.js +1 -0
  181. package/dist/web/.next/static/chunks/main-d211cddc79aac1cb.js +1 -0
  182. package/dist/web/.next/static/chunks/pages/{_app-42b849402a54b9e6.js → _app-701b0752a0d4c3a9.js} +1 -1
  183. package/dist/web/.next/static/chunks/pages/_error-327385abc873a736.js +1 -0
  184. package/dist/web/.next/static/chunks/{webpack-3a8b65d12c8eb987.js → webpack-3a446128dfa39f85.js} +1 -1
  185. package/dist/web/.next/static/css/c76bb7513858c50c.css +3 -0
  186. package/dist/web/package.json +1 -0
  187. package/dist/web/public/apple-touch-icon.png +0 -0
  188. package/dist/web/public/favicon-16.png +0 -0
  189. package/dist/web/public/favicon-32.png +0 -0
  190. package/dist/web/public/icon-192.png +0 -0
  191. package/dist/web/public/icon-512.png +0 -0
  192. package/dist/web/public/logo.png +0 -0
  193. package/package.json +1 -1
  194. package/dist/web/.next/server/app/opengraph-image/route.js.map +0 -1
  195. package/dist/web/.next/server/chunks/6019.js +0 -2
  196. package/dist/web/.next/server/edge-chunks/asset_noto-sans-v27-latin-regular.5dda3fca77107598.ttf +0 -0
  197. package/dist/web/.next/server/edge-chunks/wasm_77d9faebf7af9e421806970ce10a58e9d83116d7.wasm +0 -0
  198. package/dist/web/.next/server/edge-chunks/wasm_ef4866ecae192fd87727067cf2c0c0cf9fb8b020.wasm +0 -0
  199. package/dist/web/.next/server/edge-runtime-webpack.js +0 -2
  200. package/dist/web/.next/server/interception-route-rewrite-manifest.js +0 -1
  201. package/dist/web/.next/static/ZxFskpyUoxefJOzSxSb6s/_buildManifest.js +0 -1
  202. package/dist/web/.next/static/chunks/200-619918ea0fdbd6ff.js +0 -1
  203. package/dist/web/.next/static/chunks/29-7904810aeffd75a0.js +0 -1
  204. package/dist/web/.next/static/chunks/552926ff-e8a371ec0133d0dc.js +0 -1
  205. package/dist/web/.next/static/chunks/695-00bca043953d4170.js +0 -1
  206. package/dist/web/.next/static/chunks/app/_not-found/page-bd7ebde8ab75cb95.js +0 -1
  207. package/dist/web/.next/static/chunks/app/api/admin/backfill-search/route-bd7ebde8ab75cb95.js +0 -1
  208. package/dist/web/.next/static/chunks/app/api/cli/download/route-bd7ebde8ab75cb95.js +0 -1
  209. package/dist/web/.next/static/chunks/app/api/cli/feedback/route-bd7ebde8ab75cb95.js +0 -1
  210. package/dist/web/.next/static/chunks/app/api/cli/init/route-bd7ebde8ab75cb95.js +0 -1
  211. package/dist/web/.next/static/chunks/app/api/cli/my-shares/route-bd7ebde8ab75cb95.js +0 -1
  212. package/dist/web/.next/static/chunks/app/api/cli/poll/route-bd7ebde8ab75cb95.js +0 -1
  213. package/dist/web/.next/static/chunks/app/api/cli/project-settings/route-bd7ebde8ab75cb95.js +0 -1
  214. package/dist/web/.next/static/chunks/app/api/cli/share-mutate/route-bd7ebde8ab75cb95.js +0 -1
  215. package/dist/web/.next/static/chunks/app/api/cli/sync-list/route-bd7ebde8ab75cb95.js +0 -1
  216. package/dist/web/.next/static/chunks/app/api/local/project-sessions/route-bd7ebde8ab75cb95.js +0 -1
  217. package/dist/web/.next/static/chunks/app/api/local/watch/route-bd7ebde8ab75cb95.js +0 -1
  218. package/dist/web/.next/static/chunks/app/api/search/route-bd7ebde8ab75cb95.js +0 -1
  219. package/dist/web/.next/static/chunks/app/api/search-index/route-bd7ebde8ab75cb95.js +0 -1
  220. package/dist/web/.next/static/chunks/app/api/share/download/[slug]/route-bd7ebde8ab75cb95.js +0 -1
  221. package/dist/web/.next/static/chunks/app/api/share/route-bd7ebde8ab75cb95.js +0 -1
  222. package/dist/web/.next/static/chunks/app/api/upload/route-bd7ebde8ab75cb95.js +0 -1
  223. package/dist/web/.next/static/chunks/app/auth/callback/route-bd7ebde8ab75cb95.js +0 -1
  224. package/dist/web/.next/static/chunks/app/auth/signout/route-bd7ebde8ab75cb95.js +0 -1
  225. package/dist/web/.next/static/chunks/app/cli/login/page-647fd605d0fe2472.js +0 -1
  226. package/dist/web/.next/static/chunks/app/digest/page-41ec674edc998616.js +0 -1
  227. package/dist/web/.next/static/chunks/app/feedback/page-60f4d489fd598c9c.js +0 -1
  228. package/dist/web/.next/static/chunks/app/layout-f5666b9135264807.js +0 -1
  229. package/dist/web/.next/static/chunks/app/my-projects/[projectKey]/page-3a816489e5e8534b.js +0 -1
  230. package/dist/web/.next/static/chunks/app/my-projects/page-c88eba56cb5d0b8d.js +0 -1
  231. package/dist/web/.next/static/chunks/app/not-found-41ec674edc998616.js +0 -1
  232. package/dist/web/.next/static/chunks/app/opengraph-image/route-bd7ebde8ab75cb95.js +0 -1
  233. package/dist/web/.next/static/chunks/app/page-e6e80157848514e3.js +0 -1
  234. package/dist/web/.next/static/chunks/app/projects/[id]/page-faec0dc5b09bd35f.js +0 -1
  235. package/dist/web/.next/static/chunks/app/r/[slug]/opengraph-image/route-bd7ebde8ab75cb95.js +0 -1
  236. package/dist/web/.next/static/chunks/app/r/[slug]/page-65707eb198f673a1.js +0 -1
  237. package/dist/web/.next/static/chunks/app/search/page-fc0b629efa815c64.js +0 -1
  238. package/dist/web/.next/static/chunks/app/sessions/[projectId]/[sessionId]/page-5e70eaa0a429d94a.js +0 -1
  239. package/dist/web/.next/static/chunks/app/sign-in/page-792d0d79889186cf.js +0 -1
  240. package/dist/web/.next/static/chunks/d99d8e6a-80443bd3c9d31f50.js +0 -1
  241. package/dist/web/.next/static/chunks/framework-39000e34f38d10f6.js +0 -1
  242. package/dist/web/.next/static/chunks/main-app-21e9441fa7ac15ef.js +0 -1
  243. package/dist/web/.next/static/chunks/main-f824d48fd7ff2e3b.js +0 -1
  244. package/dist/web/.next/static/chunks/pages/_error-412ff705bc5b0636.js +0 -1
  245. package/dist/web/.next/static/css/3c4744a7426424ee.css +0 -3
  246. /package/dist/web/.next/static/{ZxFskpyUoxefJOzSxSb6s → LF69v3WA6LbEAkvRHNqfG}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[806],{2109:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var s=n(655);function r(e){let{children:t,className:n="",hoverable:r=!1}=e;return(0,s.jsx)("div",{className:"card ".concat(r?"card-hover":""," ").concat(n),children:t})}},3660:(e,t,n)=>{"use strict";n.d(t,{FQ:()=>l,Kc:()=>d,v7:()=>i});let s=new Intl.NumberFormat("en-US"),r=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}),a=new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit"});function l(e){return s.format(e)}function i(e){return e?"".concat(!e?"—":r.format(e)," \xb7 ").concat(e?a.format(e):""):"—"}let c=[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60],["second",1]],o=new Intl.RelativeTimeFormat("en-US",{numeric:"auto"});function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if(!e)return"—";let n=Math.round((e.getTime()-t.getTime())/1e3);for(let[e,t]of c)if(Math.abs(n)>=t||"second"===e)return o.format(Math.round(n/t),e);return o.format(n,"second")}},3863:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3483,23)),Promise.resolve().then(n.bind(n,5830)),Promise.resolve().then(n.bind(n,1123)),Promise.resolve().then(n.bind(n,6597)),Promise.resolve().then(n.bind(n,4059))},5830:(e,t,n)=>{"use strict";n.d(t,{ProjectList:()=>m});var s=n(655),r=n(4519),a=n(3483),l=n.n(a),i=n(2109),c=n(5840),o=n(3660);let d=[{kind:"all",label:"All"},{kind:"claude-code",label:"Claude Code"},{kind:"codex",label:"Codex"},{kind:"cursor",label:"Cursor"}];function u(e){return"codex"===e?"Codex":"cursor"===e?"Cursor":null}function m(e){let{projects:t}=e,[n,a]=(0,r.useState)(""),[m,x]=(0,r.useState)("all"),h=(0,r.useMemo)(()=>{let e=new Set;for(let n of t)e.add(n.agentSource);return e},[t]),f=h.size>1,g=(0,r.useMemo)(()=>{let e=t;if("all"!==m&&(e=e.filter(e=>e.agentSource===m)),n.trim()){let t=n.toLowerCase().split(/\s+/).filter(Boolean);e=e.filter(e=>{let n="".concat(e.name," ").concat(e.key).toLowerCase();return t.every(e=>n.includes(e))})}return e},[t,n,m]);return(0,s.jsxs)(s.Fragment,{children:[f?(0,s.jsx)("div",{className:"mb-4 flex gap-1 rounded-md border border-surface-border bg-surface-0 p-0.5 w-fit",children:d.filter(e=>"all"===e.kind||h.has(e.kind)).map(e=>{let n="all"===e.kind?t.length:t.filter(t=>t.agentSource===e.kind).length;return(0,s.jsxs)("button",{type:"button",onClick:()=>x(e.kind),className:"rounded-md px-3 py-1.5 text-xs font-medium transition-colors ".concat(m===e.kind?"bg-surface-2 text-ink-1":"text-ink-3 hover:text-ink-1"),children:[e.label,(0,s.jsx)("span",{className:"ml-1.5 tabular-nums text-ink-4",children:n})]},e.kind)})}):null,(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("input",{type:"text",value:n,onChange:e=>a(e.target.value),placeholder:"Search projects...",className:"w-full rounded-md border border-surface-border bg-surface-0 px-3 py-2 text-sm text-ink-1 placeholder:text-ink-4 focus:border-accent focus:outline-none focus:ring-1 focus:ring-accent"}),n.trim()&&(0,s.jsxs)("div",{className:"mt-1.5 text-2xs text-ink-3",children:[g.length," of ",t.length," result",1===t.length?"":"s"]})]}),(0,s.jsx)("div",{className:"flex flex-col gap-2",children:g.map(e=>(0,s.jsx)(l(),{href:"/my-projects/".concat(encodeURIComponent(e.key)),children:(0,s.jsx)(i.Z,{hoverable:!0,className:"px-5 py-4",children:(0,s.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"truncate text-sm font-semibold text-ink-1",children:e.name}),u(e.agentSource)?(0,s.jsx)(c.E,{variant:"accent",children:u(e.agentSource)}):null,e.syncing?(0,s.jsx)(c.E,{variant:"success",children:"syncing"}):null]}),(0,s.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2 text-2xs text-ink-3",children:[(0,s.jsxs)("span",{children:[(0,o.FQ)(e.shareCount)," shares"]}),e.publicCount>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsxs)("span",{children:[e.publicCount," public"]})]}):null,e.unlistedCount>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsxs)("span",{children:[e.unlistedCount," unlisted"]})]}):null,e.privateCount>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsxs)("span",{children:[e.privateCount," private"]})]}):null,e.totalViews>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{children:"\xb7"}),(0,s.jsxs)(c.E,{variant:"accent",children:[(0,o.FQ)(e.totalViews)," views"]})]}):null]})]}),(0,s.jsx)("div",{className:"shrink-0 text-2xs text-ink-3",children:e.lastActivityAt&&e.shareCount>0?(0,o.Kc)(new Date(e.lastActivityAt)):"no activity yet"})]})})},e.key))})]})}},5840:(e,t,n)=>{"use strict";n.d(t,{E:()=>a});var s=n(655);let r={default:"badge",accent:"badge badge-accent",success:"badge badge-success",warning:"badge badge-warning",danger:"badge badge-danger"};function a(e){let{children:t,variant:n="default"}=e;return(0,s.jsx)("span",{className:r[n],children:t})}}},e=>{e.O(0,[200,29,575,695,358],()=>e(e.s=3863)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[299,345],{2880:(e,s,n)=>{Promise.resolve().then(n.t.bind(n,3483,23)),Promise.resolve().then(n.bind(n,1123)),Promise.resolve().then(n.bind(n,6597)),Promise.resolve().then(n.bind(n,4059))}},e=>{e.O(0,[200,29,575,695,358],()=>e(e.s=2880)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[15,119,125,202,413,426,450,467,492,499,559,565,662,725,748,751,771,878,925,963,972],{4549:()=>{}},_=>{_.O(0,[575,695,358],()=>_(_.s=4549)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{697:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,3483,23)),Promise.resolve().then(s.bind(s,982)),Promise.resolve().then(s.bind(s,5995)),Promise.resolve().then(s.bind(s,1123)),Promise.resolve().then(s.bind(s,6597)),Promise.resolve().then(s.bind(s,4059))},982:(e,t,s)=>{"use strict";s.d(t,{DashboardContent:()=>u});var n=s(655),r=s(4519),a=s(3483),i=s.n(a),c=s(2109),l=s(5840),o=s(3660),d=s(3692);let x=[{kind:"all",label:"All",prefix:""},{kind:"claude-code",label:"Claude Code",prefix:""},{kind:"codex",label:"Codex",prefix:"codex:"},{kind:"cursor",label:"Cursor",prefix:"cursor:"}];function u(e){let{projects:t,sessions:s,settingsMap:a,signedIn:u}=e,[m,h]=(0,r.useState)("all"),p=(0,r.useMemo)(()=>{let e=new Set;for(let s of t)s.id.startsWith("codex:")?e.add("codex"):s.id.startsWith("cursor:")?e.add("cursor"):e.add("claude-code");return e},[t]),f=p.size>1,j=(0,r.useMemo)(()=>"all"===m?t:"claude-code"===m?t.filter(e=>!e.id.startsWith("codex:")&&!e.id.startsWith("cursor:")):t.filter(e=>{var t,s;return e.id.startsWith(null!=(s=null==(t=x.find(e=>e.kind===m))?void 0:t.prefix)?s:"___")}),[t,m]),b=(0,r.useMemo)(()=>"all"===m?s:"claude-code"===m?s.filter(e=>!e.projectId.startsWith("codex:")&&!e.projectId.startsWith("cursor:")):s.filter(e=>{var t,s;return e.projectId.startsWith(null!=(s=null==(t=x.find(e=>e.kind===m))?void 0:t.prefix)?s:"___")}),[s,m]),g={syncToCloud:!1};return(0,n.jsxs)(n.Fragment,{children:[f?(0,n.jsx)("div",{className:"mb-6 flex gap-1 rounded-md border border-surface-border bg-surface-0 p-0.5 w-fit",children:x.filter(e=>"all"===e.kind||p.has(e.kind)).map(e=>{let s="all"===e.kind?t.length:"claude-code"===e.kind?t.filter(e=>!e.id.startsWith("codex:")&&!e.id.startsWith("cursor:")).length:t.filter(t=>t.id.startsWith(e.prefix)).length;return(0,n.jsxs)("button",{type:"button",onClick:()=>h(e.kind),className:"rounded-md px-3 py-1.5 text-xs font-medium transition-colors ".concat(m===e.kind?"bg-surface-2 text-ink-1":"text-ink-3 hover:text-ink-1"),children:[e.label,(0,n.jsx)("span",{className:"ml-1.5 tabular-nums text-ink-4",children:s})]},e.kind)})}):null,(0,n.jsxs)("div",{className:"grid gap-6 lg:grid-cols-[1.1fr_1fr]",children:[(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"mb-3 text-2xs font-medium uppercase tracking-wider text-ink-3",children:"Projects"}),(0,n.jsx)("div",{className:"flex flex-col gap-2",children:j.map(e=>{var t;let s=null!=(t=a[e.id])?t:g,r=e.id.startsWith("codex:"),x=e.id.startsWith("cursor:");return(0,n.jsxs)("div",{className:"flex items-stretch gap-2",children:[(0,n.jsx)(i(),{href:"/projects/".concat(encodeURIComponent(e.id)),className:"min-w-0 flex-1",children:(0,n.jsxs)(c.Z,{hoverable:!0,className:"flex items-center gap-4 px-5 py-4",children:[(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"truncate text-sm font-semibold text-ink-1",children:e.name}),(0,n.jsxs)(l.E,{children:[(0,o.FQ)(e.sessionCount)," sessions"]}),r?(0,n.jsx)(l.E,{variant:"accent",children:"Codex"}):x?(0,n.jsx)(l.E,{variant:"accent",children:"Cursor"}):null,s.syncToCloud?(0,n.jsx)(l.E,{variant:"success",children:"syncing"}):null]}),(0,n.jsx)("div",{className:"mt-0.5 truncate font-mono text-2xs text-ink-3",children:e.path})]}),(0,n.jsx)("div",{className:"text-2xs text-ink-3",children:e.lastActiveAt?(0,o.Kc)(new Date(e.lastActiveAt)):""})]})}),r||x?null:(0,n.jsx)("div",{className:"flex items-center",children:(0,n.jsx)(d.ProjectSettingsButton,{projectKey:e.id,initial:s,signedIn:u,sessionCount:e.sessionCount})})]},e.id)})})]}),(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"mb-3 text-2xs font-medium uppercase tracking-wider text-ink-3",children:"Recent sessions"}),(0,n.jsx)("div",{className:"flex flex-col gap-2",children:b.slice(0,12).map(e=>{var t;let s=e.projectId.startsWith("codex:")?"Codex":e.projectId.startsWith("cursor:")?"Cursor":null;return(0,n.jsx)(i(),{href:"/sessions/".concat(encodeURIComponent(e.projectId),"/").concat(encodeURIComponent(e.id)),children:(0,n.jsxs)(c.Z,{hoverable:!0,className:"px-5 py-4",children:[(0,n.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,n.jsx)("span",{className:"line-clamp-1 text-sm font-medium text-ink-1",children:e.title}),(0,n.jsx)("span",{className:"shrink-0 text-2xs text-ink-3",children:(0,o.Kc)(new Date(null!=(t=e.endedAt)?t:e.startedAt))})]}),(0,n.jsxs)("div",{className:"mt-1 flex items-center gap-2 text-2xs text-ink-3",children:[e.projectName?(0,n.jsx)("span",{children:e.projectName}):null,e.projectName?(0,n.jsx)("span",{children:"\xb7"}):null,s?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l.E,{variant:"accent",children:s}),(0,n.jsx)("span",{children:"\xb7"})]}):null,(0,n.jsxs)("span",{children:[(0,o.FQ)(e.messageCount)," msgs"]}),(0,n.jsx)("span",{children:"\xb7"}),(0,n.jsxs)("span",{children:[(0,o.FQ)(e.toolCallCount)," tools"]}),e.fileChangeCount>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:"\xb7"}),(0,n.jsxs)("span",{children:[(0,o.FQ)(e.fileChangeCount)," edits"]})]}):null,e.hasErrors?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{children:"\xb7"}),(0,n.jsx)(l.E,{variant:"danger",children:"errors"})]}):null]})]})},"".concat(e.projectId,"/").concat(e.id))})})]})]})]})}},2109:(e,t,s)=>{"use strict";s.d(t,{Z:()=>r});var n=s(655);function r(e){let{children:t,className:s="",hoverable:r=!1}=e;return(0,n.jsx)("div",{className:"card ".concat(r?"card-hover":""," ").concat(s),children:t})}},3660:(e,t,s)=>{"use strict";s.d(t,{FQ:()=>i,Kc:()=>d,v7:()=>c});let n=new Intl.NumberFormat("en-US"),r=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}),a=new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit"});function i(e){return n.format(e)}function c(e){return e?"".concat(!e?"—":r.format(e)," \xb7 ").concat(e?a.format(e):""):"—"}let l=[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60],["second",1]],o=new Intl.RelativeTimeFormat("en-US",{numeric:"auto"});function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if(!e)return"—";let s=Math.round((e.getTime()-t.getTime())/1e3);for(let[e,t]of l)if(Math.abs(s)>=t||"second"===e)return o.format(Math.round(s/t),e);return o.format(s,"second")}},3692:(e,t,s)=>{"use strict";s.d(t,{ProjectSettingsButton:()=>c});var n=s(655),r=s(4519),a=s(4094);let i=(0,a.createServerReference)("4040ec48cb8a5b57c7617a575b90d5e8155f685372",a.callServer,void 0,a.findSourceMapURL,"upsertProjectSettingsAction");function c(e){let{projectKey:t,initial:s,signedIn:a,sessionCount:c,variant:o="icon"}=e,[d,x]=(0,r.useState)(!1),[u,m]=(0,r.useState)(s),[h,p]=(0,r.useState)(null),[f,j]=(0,r.useTransition)(),b="icon"===o?(0,n.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),x(!0)},className:"rounded-md border border-surface-border bg-surface-1 p-1.5 text-ink-3 hover:border-surface-4 hover:text-ink-1",title:"Project settings","aria-label":"Project settings",children:(0,n.jsx)(l,{})}):(0,n.jsxs)("button",{type:"button",onClick:()=>x(!0),className:"inline-flex items-center gap-1.5 rounded-md border border-surface-border bg-surface-1 px-3 py-1.5 text-xs font-medium text-ink-2 hover:border-surface-4 hover:text-ink-1",children:[(0,n.jsx)(l,{}),"Project settings",u.syncToCloud?(0,n.jsx)("span",{className:"rounded-full bg-success/15 px-1.5 py-0.5 text-2xs text-success",children:"syncing"}):null]});return(0,n.jsxs)(n.Fragment,{children:[b,d?(0,n.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4",onClick:e=>{e.stopPropagation(),x(!1)},children:(0,n.jsxs)("div",{className:"w-full max-w-md overflow-hidden rounded-xl border border-surface-border bg-surface-1 shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,n.jsxs)("header",{className:"flex items-center justify-between border-b border-surface-border px-5 py-3",children:[(0,n.jsxs)("h2",{className:"truncate text-sm font-semibold text-ink-1",children:["Project settings \xb7 ",(0,n.jsx)("span",{className:"font-mono text-ink-3",children:function(e){var t;if(!e.startsWith("-"))return e;let s=e.split("-").filter(Boolean);return null!=(t=s[s.length-1])?t:e}(t)})]}),(0,n.jsx)("button",{type:"button",onClick:()=>x(!1),className:"rounded-md p-1 text-ink-3 hover:bg-surface-2 hover:text-ink-1",children:"\xd7"})]}),(0,n.jsxs)("div",{className:"space-y-4 px-5 py-4",children:[a?null:(0,n.jsx)("p",{className:"rounded-md border border-warning/30 bg-warning/10 px-3 py-2 text-2xs text-warning",children:"Sign in to save project settings to your account."}),(0,n.jsxs)("fieldset",{children:[(0,n.jsx)("legend",{className:"mb-2 text-2xs font-medium uppercase tracking-wider text-ink-3",children:"Sync to cloud"}),(0,n.jsxs)("label",{className:"flex cursor-pointer items-start gap-2 text-xs text-ink-2",children:[(0,n.jsx)("input",{type:"checkbox",className:"mt-0.5",checked:u.syncToCloud,onChange:e=>(function(e){let s={...u,...e};m(s),p(null),j(async()=>{let e=await i({projectKey:t,archiveNewSessions:s.syncToCloud});e.ok||(p(e.error),m(u))})})({syncToCloud:e.target.checked}),disabled:!a||f}),(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"font-medium text-ink-1",children:"Back up this project to my account"}),(0,n.jsxs)("span",{className:"ml-1 text-ink-3",children:["— uploads every session as a private cloud copy",null!=c&&c>0?" (".concat(c," session").concat(1===c?"":"s"," will sync now, plus any new ones going forward)"):" (existing and new)",". Promote individual sessions to unlisted/public from My shares."]})]})]})]}),h?(0,n.jsx)("p",{className:"rounded-md border border-danger/30 bg-danger/10 px-3 py-2 text-2xs text-danger",children:h}):null]}),(0,n.jsxs)("footer",{className:"border-t border-surface-border bg-surface-0/40 px-5 py-3 text-2xs text-ink-3",children:["Projects are never public. Use the ",(0,n.jsx)("strong",{children:"Share session"})," ","button on a session to publish individual ones."]})]})}):null]})}function l(){return(0,n.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",children:[(0,n.jsx)("circle",{cx:"8",cy:"8",r:"2",stroke:"currentColor",strokeWidth:"1.4"}),(0,n.jsx)("path",{d:"M8 1v2m0 10v2M3.5 3.5l1.4 1.4m6.2 6.2l1.4 1.4M1 8h2m10 0h2M3.5 12.5l1.4-1.4m6.2-6.2l1.4-1.4",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]})}},4094:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{callServer:function(){return n.callServer},createServerReference:function(){return a.createServerReference},findSourceMapURL:function(){return r.findSourceMapURL}});let n=s(3609),r=s(4433),a=s(7041)},5840:(e,t,s)=>{"use strict";s.d(t,{E:()=>a});var n=s(655);let r={default:"badge",accent:"badge badge-accent",success:"badge badge-success",warning:"badge badge-warning",danger:"badge badge-danger"};function a(e){let{children:t,variant:s="default"}=e;return(0,n.jsx)("span",{className:r[s],children:t})}},5995:(e,t,s)=>{"use strict";s.d(t,{InstallCTA:()=>a});var n=s(655),r=s(4519);function a(){return(0,n.jsx)("section",{className:"px-6 py-16 sm:py-20",children:(0,n.jsx)("div",{className:"mx-auto max-w-[820px]",children:(0,n.jsxs)("div",{className:"card relative overflow-hidden px-6 py-10 sm:px-10",children:[(0,n.jsx)("div",{className:"pointer-events-none absolute inset-0 -z-10 opacity-30",style:{background:"radial-gradient(circle at top right, rgba(129,140,248,0.45), transparent 60%)"}}),(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("p",{className:"text-2xs font-medium uppercase tracking-wider text-ink-3",children:"Get started"}),(0,n.jsx)("h2",{className:"mt-1 text-2xl font-semibold tracking-tight text-ink-0 sm:text-3xl",children:"One command. Zero config."}),(0,n.jsx)("p",{className:"mx-auto mt-3 max-w-md text-sm text-ink-2",children:"Run it, browse your sessions, share what matters. Nothing leaves your machine until you click Share."})]}),(0,n.jsx)("div",{className:"mx-auto mt-8 max-w-md",children:(0,n.jsx)(i,{command:"npx promptarc"})}),(0,n.jsxs)("div",{className:"mt-8 grid gap-3 sm:grid-cols-3",children:[(0,n.jsxs)(c,{n:"01",title:"Local-first",children:["Reads ",(0,n.jsx)("code",{className:"font-mono text-2xs",children:"~/.claude/"}),","," ",(0,n.jsx)("code",{className:"font-mono text-2xs",children:"~/.codex/"}),", and"," ",(0,n.jsx)("code",{className:"font-mono text-2xs",children:"~/.cursor/"})," ","directly. Your data never leaves your machine until you click Share."]}),(0,n.jsx)(c,{n:"02",title:"Zero config",children:"No accounts. No setup. Run one command and your sessions are instantly browseable."}),(0,n.jsx)(c,{n:"03",title:"One-click share",children:"Public link with secrets and PII automatically stripped. Share what your agent did, not what your agent saw."})]}),(0,n.jsx)("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-3 text-2xs text-ink-3",children:(0,n.jsxs)("a",{href:"https://www.npmjs.com/package/promptarc",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 rounded-md border border-surface-border bg-surface-1 px-3 py-1.5 font-medium text-ink-2 hover:border-surface-4 hover:text-ink-1",children:[(0,n.jsx)(l,{}),"npm"]})})]})})})}function i(e){let{command:t}=e,[s,a]=(0,r.useState)(!1);async function i(){try{await navigator.clipboard.writeText(t),a(!0),setTimeout(()=>a(!1),1500)}catch(e){}}return(0,n.jsxs)("button",{type:"button",onClick:i,className:"flex w-full items-center justify-between gap-3 rounded-lg border border-surface-border bg-surface-0 px-4 py-3 font-mono text-sm text-ink-1 hover:border-surface-4",children:[(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"text-ink-3",children:"$"})," ",t]}),(0,n.jsx)("span",{className:"shrink-0 text-2xs text-ink-3",children:s?"copied!":"copy"})]})}function c(e){let{n:t,title:s,children:r}=e;return(0,n.jsxs)("div",{className:"rounded-md border border-surface-border bg-surface-1/60 px-4 py-4",children:[(0,n.jsxs)("div",{className:"mb-2 flex items-center gap-2",children:[(0,n.jsx)("span",{className:"font-mono text-2xs font-semibold text-accent",children:t}),(0,n.jsx)("span",{className:"text-2xs font-medium uppercase tracking-wider text-ink-3",children:s})]}),(0,n.jsx)("p",{className:"text-2xs leading-relaxed text-ink-2",children:r})]})}function l(){return(0,n.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[(0,n.jsx)("rect",{x:"1",y:"3",width:"12",height:"8",rx:"1",stroke:"currentColor",strokeWidth:"1.3"}),(0,n.jsx)("path",{d:"M4 6v2.5M7 6v2.5M7 7.5h1.5V6",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round",strokeLinejoin:"round"})]})}}},e=>{e.O(0,[200,29,575,695,358],()=>e(e.s=697)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[801],{3692:(e,r,t)=>{"use strict";t.d(r,{ProjectSettingsButton:()=>c});var s=t(655),n=t(4519),o=t(4094);let i=(0,o.createServerReference)("4040ec48cb8a5b57c7617a575b90d5e8155f685372",o.callServer,void 0,o.findSourceMapURL,"upsertProjectSettingsAction");function c(e){let{projectKey:r,initial:t,signedIn:o,sessionCount:c,variant:a="icon"}=e,[d,u]=(0,n.useState)(!1),[x,p]=(0,n.useState)(t),[b,h]=(0,n.useState)(null),[f,m]=(0,n.useTransition)(),g="icon"===a?(0,s.jsx)("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),u(!0)},className:"rounded-md border border-surface-border bg-surface-1 p-1.5 text-ink-3 hover:border-surface-4 hover:text-ink-1",title:"Project settings","aria-label":"Project settings",children:(0,s.jsx)(l,{})}):(0,s.jsxs)("button",{type:"button",onClick:()=>u(!0),className:"inline-flex items-center gap-1.5 rounded-md border border-surface-border bg-surface-1 px-3 py-1.5 text-xs font-medium text-ink-2 hover:border-surface-4 hover:text-ink-1",children:[(0,s.jsx)(l,{}),"Project settings",x.syncToCloud?(0,s.jsx)("span",{className:"rounded-full bg-success/15 px-1.5 py-0.5 text-2xs text-success",children:"syncing"}):null]});return(0,s.jsxs)(s.Fragment,{children:[g,d?(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4",onClick:e=>{e.stopPropagation(),u(!1)},children:(0,s.jsxs)("div",{className:"w-full max-w-md overflow-hidden rounded-xl border border-surface-border bg-surface-1 shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("header",{className:"flex items-center justify-between border-b border-surface-border px-5 py-3",children:[(0,s.jsxs)("h2",{className:"truncate text-sm font-semibold text-ink-1",children:["Project settings \xb7 ",(0,s.jsx)("span",{className:"font-mono text-ink-3",children:function(e){var r;if(!e.startsWith("-"))return e;let t=e.split("-").filter(Boolean);return null!=(r=t[t.length-1])?r:e}(r)})]}),(0,s.jsx)("button",{type:"button",onClick:()=>u(!1),className:"rounded-md p-1 text-ink-3 hover:bg-surface-2 hover:text-ink-1",children:"\xd7"})]}),(0,s.jsxs)("div",{className:"space-y-4 px-5 py-4",children:[o?null:(0,s.jsx)("p",{className:"rounded-md border border-warning/30 bg-warning/10 px-3 py-2 text-2xs text-warning",children:"Sign in to save project settings to your account."}),(0,s.jsxs)("fieldset",{children:[(0,s.jsx)("legend",{className:"mb-2 text-2xs font-medium uppercase tracking-wider text-ink-3",children:"Sync to cloud"}),(0,s.jsxs)("label",{className:"flex cursor-pointer items-start gap-2 text-xs text-ink-2",children:[(0,s.jsx)("input",{type:"checkbox",className:"mt-0.5",checked:x.syncToCloud,onChange:e=>(function(e){let t={...x,...e};p(t),h(null),m(async()=>{let e=await i({projectKey:r,archiveNewSessions:t.syncToCloud});e.ok||(h(e.error),p(x))})})({syncToCloud:e.target.checked}),disabled:!o||f}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"font-medium text-ink-1",children:"Back up this project to my account"}),(0,s.jsxs)("span",{className:"ml-1 text-ink-3",children:["— uploads every session as a private cloud copy",null!=c&&c>0?" (".concat(c," session").concat(1===c?"":"s"," will sync now, plus any new ones going forward)"):" (existing and new)",". Promote individual sessions to unlisted/public from My shares."]})]})]})]}),b?(0,s.jsx)("p",{className:"rounded-md border border-danger/30 bg-danger/10 px-3 py-2 text-2xs text-danger",children:b}):null]}),(0,s.jsxs)("footer",{className:"border-t border-surface-border bg-surface-0/40 px-5 py-3 text-2xs text-ink-3",children:["Projects are never public. Use the ",(0,s.jsx)("strong",{children:"Share session"})," ","button on a session to publish individual ones."]})]})}):null]})}function l(){return(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",children:[(0,s.jsx)("circle",{cx:"8",cy:"8",r:"2",stroke:"currentColor",strokeWidth:"1.4"}),(0,s.jsx)("path",{d:"M8 1v2m0 10v2M3.5 3.5l1.4 1.4m6.2 6.2l1.4 1.4M1 8h2m10 0h2M3.5 12.5l1.4-1.4m6.2-6.2l1.4-1.4",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round"})]})}},4094:(e,r,t)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(e,r){for(var t in r)Object.defineProperty(e,t,{enumerable:!0,get:r[t]})}(r,{callServer:function(){return s.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}});let s=t(3609),n=t(4433),o=t(7041)},9563:(e,r,t)=>{Promise.resolve().then(t.t.bind(t,3483,23)),Promise.resolve().then(t.bind(t,3692)),Promise.resolve().then(t.bind(t,1123)),Promise.resolve().then(t.bind(t,6597)),Promise.resolve().then(t.bind(t,4059))}},e=>{e.O(0,[200,29,575,695,358],()=>e(e.s=9563)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[15,119,125,202,413,426,450,467,492,499,559,565,662,725,748,751,771,878,925,963,972],{4549:()=>{}},_=>{_.O(0,[575,695,358],()=>_(_.s=4549)),_N_E=_.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[485],{148:(e,r,t)=>{Promise.resolve().then(t.t.bind(t,3483,23)),Promise.resolve().then(t.bind(t,1123)),Promise.resolve().then(t.bind(t,6597)),Promise.resolve().then(t.bind(t,4059)),Promise.resolve().then(t.bind(t,4785)),Promise.resolve().then(t.bind(t,4485))},4485:(e,r,t)=>{"use strict";t.d(r,{ToolCall:()=>a});var n=t(655),s=t(4519);function o(e){var r;let{preview:t}=e,[o,a]=(0,s.useState)(!1);if(!t.text.trim())return null;let l=null!=(r=t.text.split("\n",1)[0])?r:"",c=t.text.includes("\n")||t.truncated;return(0,n.jsxs)("div",{className:"overflow-hidden rounded-md border text-2xs ".concat(t.isError?"border-danger/30 bg-danger/5":"border-surface-border bg-surface-0/40"),children:[(0,n.jsxs)("button",{type:"button",onClick:()=>c&&a(e=>!e),disabled:!c,className:"flex w-full items-center gap-2 px-3 py-1 text-left ".concat(c?"hover:bg-surface-2/40":""),children:[(0,n.jsx)("span",{className:"rounded px-1.5 py-px font-mono ".concat(t.isError?"bg-danger/20 text-danger":"bg-surface-2 text-ink-3"),children:t.isError?"error":"output"}),(0,n.jsx)("span",{className:"line-clamp-1 flex-1 text-ink-2",children:l||"(empty)"}),c?(0,n.jsx)("span",{className:"text-ink-4",children:o?"▾":"▸"}):null]}),o?(0,n.jsxs)("pre",{className:"max-h-72 overflow-auto whitespace-pre-wrap border-t border-surface-border bg-surface-0/40 px-3 py-2 font-mono text-2xs text-ink-2",children:[t.text,t.truncated?(0,n.jsx)("span",{className:"text-ink-4",children:"\n… truncated (".concat(t.fullLines," lines)")}):null]}):null]})}function a(e){let{name:r,input:t,result:a,diff:c}=e,[i,d]=(0,s.useState)(!1),u=function(e,r){var t,s,o,a,l,c,i,d,u,x,p;if(!r||"object"!=typeof r)return"";switch(e){case"Bash":return(0,n.jsx)("code",{className:"font-mono",children:String(null!=(s=null!=(t=r.command)?t:r.description)?s:"")});case"Read":return(0,n.jsx)("code",{className:"font-mono",children:String(null!=(o=r.file_path)?o:"")});case"Edit":case"Write":return(0,n.jsx)("code",{className:"font-mono",children:String(null!=(a=r.file_path)?a:"")});case"Grep":return(0,n.jsxs)("code",{className:"font-mono",children:[String(null!=(l=r.pattern)?l:""),r.path?" in ".concat(r.path):""]});case"Glob":return(0,n.jsx)("code",{className:"font-mono",children:String(null!=(c=r.pattern)?c:"")});case"TaskCreate":return String(null!=(i=r.subject)?i:"");case"TaskUpdate":return"".concat(String(null!=(d=r.taskId)?d:"")," → ").concat(String(null!=(u=r.status)?u:""));case"Agent":return String(null!=(p=null!=(x=r.description)?x:r.prompt)?p:"");default:for(let[,e]of Object.entries(r))if("string"==typeof e&&e.length>0)return e;return""}}(r,t);return(0,n.jsxs)("div",{className:"overflow-hidden rounded-md border border-surface-border bg-surface-1/80",children:[(0,n.jsxs)("button",{type:"button",onClick:()=>d(e=>!e),className:"flex w-full items-center gap-2 px-3 py-1.5 text-left text-2xs hover:bg-surface-2",children:[(0,n.jsx)(l,{open:i}),(0,n.jsx)("span",{className:"rounded bg-accent-soft px-1.5 py-px font-mono text-2xs text-accent",children:r}),(0,n.jsx)("span",{className:"line-clamp-1 flex-1 text-ink-2",children:u})]}),i?(0,n.jsx)("pre",{className:"max-h-72 overflow-auto border-t border-surface-border bg-surface-0/40 px-3 py-2 font-mono text-2xs text-ink-2",children:function(e){try{return JSON.stringify(e,null,2)}catch(r){return String(e)}}(t)}):null,c?(0,n.jsx)("div",{className:"border-t border-surface-border p-2",children:c}):null,a?(0,n.jsx)("div",{className:"border-t border-surface-border p-2",children:(0,n.jsx)(o,{preview:a})}):null]})}function l(e){let{open:r}=e;return(0,n.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",className:"shrink-0 text-ink-3 transition-transform ".concat(r?"rotate-90":""),children:(0,n.jsx)("path",{d:"M3.5 2.5L6.5 5L3.5 7.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}},4785:(e,r,t)=>{"use strict";t.d(r,{ThinkingBlock:()=>o});var n=t(655),s=t(4519);function o(e){let{text:r}=e,[t,o]=(0,s.useState)(!1);return r.trim()?(0,n.jsxs)("details",{className:"group rounded-md border border-surface-border bg-surface-1/60 text-2xs",open:t,onToggle:e=>o(e.target.open),children:[(0,n.jsxs)("summary",{className:"flex cursor-pointer list-none items-center gap-2 px-3 py-1.5 text-ink-3 hover:text-ink-2",children:[(0,n.jsx)(a,{open:t}),(0,n.jsx)("span",{className:"font-medium uppercase tracking-wider",children:"Thinking"}),(0,n.jsxs)("span",{className:"text-ink-4",children:[r.length," chars"]})]}),(0,n.jsx)("pre",{className:"whitespace-pre-wrap border-t border-surface-border px-3 py-2 font-mono text-2xs text-ink-3",children:r})]}):null}function a(e){let{open:r}=e;return(0,n.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",className:"transition-transform ".concat(r?"rotate-90":""),children:(0,n.jsx)("path",{d:"M3.5 2.5L6.5 5L3.5 7.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}}},e=>{e.O(0,[200,29,575,695,358],()=>e(e.s=148)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[959],{224:(e,t,n)=>{"use strict";n.d(t,{CloudSearchBox:()=>c});var r=n(655),s=n(4519),a=n(3483),l=n.n(a),i=n(3660);function c(){let[e,t]=(0,s.useState)(""),[n,a]=(0,s.useState)([]),[c,o]=(0,s.useState)(!1),[u,d]=(0,s.useState)(!1),[m,h]=(0,s.useState)(null),x=(0,s.useRef)(null),f=(0,s.useCallback)(async e=>{if(e.trim().length<2){a([]),d(!1);return}o(!0),h(null);try{let n=await fetch("/api/search",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({q:e.trim(),limit:30})});if(!n.ok){var t;let e=await n.json();throw Error(null!=(t=e.error)?t:"HTTP ".concat(n.status))}let r=await n.json();a(r.results),d(!0)}catch(e){h(e instanceof Error?e.message:String(e)),a([]),d(!0)}finally{o(!1)}},[]);return(0,r.jsxs)("div",{children:[(0,r.jsx)("form",{onSubmit:function(t){t.preventDefault(),x.current&&clearTimeout(x.current),f(e)},className:"mb-6",children:(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)("input",{type:"text",value:e,onChange:e=>{var n;t(n=e.target.value),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>f(n),350)},placeholder:'Search... e.g. "OAuth redirect error" or "tsconfig"',autoFocus:!0,className:"flex-1 rounded-md border border-surface-border bg-surface-0 px-4 py-2.5 text-sm text-ink-1 placeholder:text-ink-4 focus:border-accent focus:outline-none focus:ring-1 focus:ring-accent"}),(0,r.jsx)("button",{type:"submit",disabled:c||e.trim().length<2,className:"shrink-0 rounded-md border border-accent/40 bg-accent px-4 py-2.5 text-sm font-semibold text-surface-0 hover:bg-accent/90 disabled:opacity-50",children:c?"Searching...":"Search"})]})}),m?(0,r.jsx)("div",{className:"rounded-md border border-danger/30 bg-danger/10 px-4 py-3 text-sm text-danger",children:m}):null,u&&!m?(0,r.jsx)("div",{className:"mb-3 text-2xs text-ink-3",children:0===n.length?"No results found.":"".concat(n.length," result").concat(1===n.length?"":"s")}):null,n.length>0?(0,r.jsx)("div",{className:"flex flex-col gap-2",children:n.map(e=>(0,r.jsx)(l(),{href:"/r/".concat(e.slug),children:(0,r.jsxs)("div",{className:"card hoverable px-5 py-4",children:[(0,r.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,r.jsx)("span",{className:"line-clamp-1 text-sm font-medium text-ink-1",children:e.title}),(0,r.jsx)("span",{className:"shrink-0 text-2xs text-ink-3",children:(0,i.Kc)(new Date(e.createdAt))})]}),e.headline?(0,r.jsx)("p",{className:"mt-1 line-clamp-2 text-2xs text-ink-2",dangerouslySetInnerHTML:{__html:e.headline}}):null,(0,r.jsxs)("div",{className:"mt-1.5 flex flex-wrap items-center gap-2 text-2xs text-ink-3",children:[e.projectName?(0,r.jsx)("span",{className:"font-medium",children:e.projectName}):null,e.projectName?(0,r.jsx)("span",{children:"\xb7"}):null,(0,r.jsxs)("span",{children:[(0,i.FQ)(e.messageCount)," msgs"]}),(0,r.jsx)("span",{children:"\xb7"}),(0,r.jsxs)("span",{children:[(0,i.FQ)(e.toolCallCount)," tools"]}),e.fileChangeCount>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{children:"\xb7"}),(0,r.jsxs)("span",{children:[(0,i.FQ)(e.fileChangeCount)," edits"]})]}):null,(0,r.jsx)("span",{className:"badge text-2xs",children:e.visibility})]})]})},e.slug))}):null,u||c?null:(0,r.jsxs)("div",{className:"mt-8 text-center text-sm text-ink-3",children:[(0,r.jsx)("p",{children:"Search your entire cloud archive."}),(0,r.jsx)("p",{className:"mt-2 text-2xs",children:"Try a file path, error message, command, function name, or anything from a conversation with your AI agent."})]})]})}},3660:(e,t,n)=>{"use strict";n.d(t,{FQ:()=>l,Kc:()=>u,v7:()=>i});let r=new Intl.NumberFormat("en-US"),s=new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}),a=new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit"});function l(e){return r.format(e)}function i(e){return e?"".concat(!e?"—":s.format(e)," \xb7 ").concat(e?a.format(e):""):"—"}let c=[["year",31536e3],["month",2592e3],["week",604800],["day",86400],["hour",3600],["minute",60],["second",1]],o=new Intl.RelativeTimeFormat("en-US",{numeric:"auto"});function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if(!e)return"—";let n=Math.round((e.getTime()-t.getTime())/1e3);for(let[e,t]of c)if(Math.abs(n)>=t||"second"===e)return o.format(Math.round(n/t),e);return o.format(n,"second")}},5106:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,3483,23)),Promise.resolve().then(n.bind(n,224)),Promise.resolve().then(n.bind(n,1123)),Promise.resolve().then(n.bind(n,6597)),Promise.resolve().then(n.bind(n,4059))}},e=>{e.O(0,[200,29,575,695,358],()=>e(e.s=5106)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[25],{1768:(e,t,r)=>{"use strict";r.d(t,{LiveRefresh:()=>a});var s=r(4519),n=r(1932);function a(e){let{projectId:t,sessionId:r}=e,a=(0,n.useRouter)();return(0,s.useEffect)(()=>{let e=new EventSource("/api/local/watch?projectId=".concat(encodeURIComponent(t),"&sessionId=").concat(encodeURIComponent(r)));e.addEventListener("change",()=>{a.refresh()});let s=setInterval(()=>{a.refresh()},3e4);return()=>{e.close(),clearInterval(s)}},[t,r,a]),null}},1929:(e,t,r)=>{"use strict";r.d(t,{P:()=>n});var s=r(4094);let n=(0,s.createServerReference)("604e221da7d1e53a392af07e4defc91423301b6668",s.callServer,void 0,s.findSourceMapURL,"setVisibilityAction")},3160:(e,t,r)=>{"use strict";r.d(t,{R:()=>n});var s=r(4094);let n=(0,s.createServerReference)("601b12dded4f2a95f0cfd3ee7586bbb91555662b74",s.callServer,void 0,s.findSourceMapURL,"setAutoSyncAction")},4094:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{callServer:function(){return s.callServer},createServerReference:function(){return a.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}});let s=r(3609),n=r(4433),a=r(7041)},4485:(e,t,r)=>{"use strict";r.d(t,{ToolCall:()=>c});var s=r(655),n=r(4519);function a(e){var t;let{preview:r}=e,[a,c]=(0,n.useState)(!1);if(!r.text.trim())return null;let i=null!=(t=r.text.split("\n",1)[0])?t:"",o=r.text.includes("\n")||r.truncated;return(0,s.jsxs)("div",{className:"overflow-hidden rounded-md border text-2xs ".concat(r.isError?"border-danger/30 bg-danger/5":"border-surface-border bg-surface-0/40"),children:[(0,s.jsxs)("button",{type:"button",onClick:()=>o&&c(e=>!e),disabled:!o,className:"flex w-full items-center gap-2 px-3 py-1 text-left ".concat(o?"hover:bg-surface-2/40":""),children:[(0,s.jsx)("span",{className:"rounded px-1.5 py-px font-mono ".concat(r.isError?"bg-danger/20 text-danger":"bg-surface-2 text-ink-3"),children:r.isError?"error":"output"}),(0,s.jsx)("span",{className:"line-clamp-1 flex-1 text-ink-2",children:i||"(empty)"}),o?(0,s.jsx)("span",{className:"text-ink-4",children:a?"▾":"▸"}):null]}),a?(0,s.jsxs)("pre",{className:"max-h-72 overflow-auto whitespace-pre-wrap border-t border-surface-border bg-surface-0/40 px-3 py-2 font-mono text-2xs text-ink-2",children:[r.text,r.truncated?(0,s.jsx)("span",{className:"text-ink-4",children:"\n… truncated (".concat(r.fullLines," lines)")}):null]}):null]})}function c(e){let{name:t,input:r,result:c,diff:o}=e,[l,d]=(0,n.useState)(!1),u=function(e,t){var r,n,a,c,i,o,l,d,u,x,h;if(!t||"object"!=typeof t)return"";switch(e){case"Bash":return(0,s.jsx)("code",{className:"font-mono",children:String(null!=(n=null!=(r=t.command)?r:t.description)?n:"")});case"Read":return(0,s.jsx)("code",{className:"font-mono",children:String(null!=(a=t.file_path)?a:"")});case"Edit":case"Write":return(0,s.jsx)("code",{className:"font-mono",children:String(null!=(c=t.file_path)?c:"")});case"Grep":return(0,s.jsxs)("code",{className:"font-mono",children:[String(null!=(i=t.pattern)?i:""),t.path?" in ".concat(t.path):""]});case"Glob":return(0,s.jsx)("code",{className:"font-mono",children:String(null!=(o=t.pattern)?o:"")});case"TaskCreate":return String(null!=(l=t.subject)?l:"");case"TaskUpdate":return"".concat(String(null!=(d=t.taskId)?d:"")," → ").concat(String(null!=(u=t.status)?u:""));case"Agent":return String(null!=(h=null!=(x=t.description)?x:t.prompt)?h:"");default:for(let[,e]of Object.entries(t))if("string"==typeof e&&e.length>0)return e;return""}}(t,r);return(0,s.jsxs)("div",{className:"overflow-hidden rounded-md border border-surface-border bg-surface-1/80",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>d(e=>!e),className:"flex w-full items-center gap-2 px-3 py-1.5 text-left text-2xs hover:bg-surface-2",children:[(0,s.jsx)(i,{open:l}),(0,s.jsx)("span",{className:"rounded bg-accent-soft px-1.5 py-px font-mono text-2xs text-accent",children:t}),(0,s.jsx)("span",{className:"line-clamp-1 flex-1 text-ink-2",children:u})]}),l?(0,s.jsx)("pre",{className:"max-h-72 overflow-auto border-t border-surface-border bg-surface-0/40 px-3 py-2 font-mono text-2xs text-ink-2",children:function(e){try{return JSON.stringify(e,null,2)}catch(t){return String(e)}}(r)}):null,o?(0,s.jsx)("div",{className:"border-t border-surface-border p-2",children:o}):null,c?(0,s.jsx)("div",{className:"border-t border-surface-border p-2",children:(0,s.jsx)(a,{preview:c})}):null]})}function i(e){let{open:t}=e;return(0,s.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",className:"shrink-0 text-ink-3 transition-transform ".concat(t?"rotate-90":""),children:(0,s.jsx)("path",{d:"M3.5 2.5L6.5 5L3.5 7.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}},4785:(e,t,r)=>{"use strict";r.d(t,{ThinkingBlock:()=>a});var s=r(655),n=r(4519);function a(e){let{text:t}=e,[r,a]=(0,n.useState)(!1);return t.trim()?(0,s.jsxs)("details",{className:"group rounded-md border border-surface-border bg-surface-1/60 text-2xs",open:r,onToggle:e=>a(e.target.open),children:[(0,s.jsxs)("summary",{className:"flex cursor-pointer list-none items-center gap-2 px-3 py-1.5 text-ink-3 hover:text-ink-2",children:[(0,s.jsx)(c,{open:r}),(0,s.jsx)("span",{className:"font-medium uppercase tracking-wider",children:"Thinking"}),(0,s.jsxs)("span",{className:"text-ink-4",children:[t.length," chars"]})]}),(0,s.jsx)("pre",{className:"whitespace-pre-wrap border-t border-surface-border px-3 py-2 font-mono text-2xs text-ink-3",children:t})]}):null}function c(e){let{open:t}=e;return(0,s.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",className:"transition-transform ".concat(t?"rotate-90":""),children:(0,s.jsx)("path",{d:"M3.5 2.5L6.5 5L3.5 7.5",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})})}},5816:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,3483,23)),Promise.resolve().then(r.bind(r,1768)),Promise.resolve().then(r.bind(r,8999)),Promise.resolve().then(r.bind(r,6351)),Promise.resolve().then(r.bind(r,1123)),Promise.resolve().then(r.bind(r,6597)),Promise.resolve().then(r.bind(r,4059)),Promise.resolve().then(r.bind(r,4785)),Promise.resolve().then(r.bind(r,4485))},6351:(e,t,r)=>{"use strict";r.d(t,{ShareButton:()=>i});var s=r(655),n=r(4519),a=r(1929),c=r(3160);function i(e){let{projectId:t,sessionId:r}=e,[i,u]=(0,n.useState)(!1),[x,h]=(0,n.useState)(!1),[m,p]=(0,n.useState)(null),[b,f]=(0,n.useState)(null),[g,j]=(0,n.useState)(!1),[k,v]=(0,n.useState)("private"),[y,N]=(0,n.useState)(!1),[w,S]=(0,n.useTransition)();async function C(){h(!0),f(null),p(null);try{let n=await fetch("/api/share",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({projectId:t,sessionId:r,visibility:k,autoSync:y,_h:""})}),a=await n.json();if(!n.ok){var e,s;if(429===n.status){let t=null!=(e=a.retryAfter)?e:60,r=Math.ceil(t/60);throw Error("Rate limit hit. Please wait ".concat(r," minute").concat(1===r?"":"s"," and try again."))}if(413===n.status)throw Error("Session is too large to share (over 5 MB).");throw Error(null!=(s=a.error)?s:"HTTP ".concat(n.status))}p(a)}catch(e){f(e instanceof Error?e.message:String(e))}finally{h(!1)}}async function R(){if(m)try{await navigator.clipboard.writeText(m.url),j(!0),setTimeout(()=>j(!1),1500)}catch(e){}}return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button",onClick:function(){u(!0),m||x||C()},className:"rounded-md border border-accent/40 bg-accent-soft px-3 py-1.5 text-xs font-medium text-accent hover:bg-accent/20",children:"Share session"}),i?(0,s.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 px-4",onClick:()=>u(!1),children:(0,s.jsxs)("div",{className:"w-full max-w-lg overflow-hidden rounded-xl border border-surface-border bg-surface-1 shadow-2xl",onClick:e=>e.stopPropagation(),children:[(0,s.jsxs)("header",{className:"flex items-center justify-between border-b border-surface-border px-5 py-3",children:[(0,s.jsx)("h2",{className:"text-sm font-semibold text-ink-1",children:"Share session"}),(0,s.jsx)("button",{type:"button",onClick:()=>u(!1),className:"rounded-md p-1 text-ink-3 hover:bg-surface-2 hover:text-ink-1","aria-label":"Close",children:"\xd7"})]}),(0,s.jsx)("div",{className:"px-5 py-4",children:x?(0,s.jsx)(o,{}):b?(0,s.jsx)(l,{message:b,onRetry:C}):m?(0,s.jsx)(d,{result:m,copied:g,onCopy:R,visibility:k,onVisibilityChange:function(e){v(e),m&&S(async()=>{let t=await (0,a.P)(m.slug,e);t.ok||(v(k),f(t.error))})},autoSync:y,onAutoSyncChange:function(e){N(e),m&&S(async()=>{let t=await (0,c.R)(m.slug,e);t.ok||(N(y),f(t.error))})},saving:w}):null}),(0,s.jsxs)("footer",{className:"border-t border-surface-border bg-surface-0/40 px-5 py-3 text-2xs text-ink-3",children:["Secrets, home-directory paths, and AI thinking blocks are stripped before upload. The artifact is saved to your promptarc account — manage it from ",(0,s.jsx)("span",{className:"font-mono",children:"My shares"}),"."]})]})}):null]})}function o(){return(0,s.jsxs)("div",{className:"flex items-center gap-3 py-4 text-sm text-ink-2",children:[(0,s.jsxs)("svg",{className:"h-4 w-4 animate-spin text-accent",viewBox:"0 0 16 16",fill:"none",children:[(0,s.jsx)("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",strokeWidth:"1.6",opacity:"0.25"}),(0,s.jsx)("path",{d:"M14 8a6 6 0 0 0-6-6",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})]}),"Building artifact and uploading…"]})}function l(e){let{message:t,onRetry:r}=e;return(0,s.jsxs)("div",{children:[(0,s.jsxs)("p",{className:"text-sm text-danger",children:["Failed to share: ",t]}),(0,s.jsx)("button",{type:"button",onClick:r,className:"mt-3 rounded-md border border-surface-border bg-surface-2 px-3 py-1 text-xs text-ink-1 hover:bg-surface-3",children:"Try again"})]})}function d(e){let{result:t,copied:r,onCopy:n,visibility:a,onVisibilityChange:c,autoSync:i,onAutoSyncChange:o,saving:l}=e,d=t.redactionStats.secretsRedacted+t.redactionStats.pathsRedacted+t.redactionStats.toolResultsTruncated,m=function(e){switch(e){case"created":return{label:"Created new share",badgeClass:"badge border-accent/30 bg-accent-soft text-accent",icon:(0,s.jsx)(x,{})};case"updated":return{label:"Updated existing share",badgeClass:"badge border-warning/30 bg-warning/10 text-warning",icon:(0,s.jsx)(x,{})};case"unchanged":return{label:"Already shared — same content",badgeClass:"badge border-surface-border bg-surface-2 text-ink-2",icon:(0,s.jsx)(x,{})}}}(t.status);return(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-3 inline-flex items-center gap-1.5 ".concat(m.badgeClass),children:[m.icon,(0,s.jsx)("span",{children:m.label})]}),(0,s.jsx)("label",{className:"mb-1 block text-2xs font-medium uppercase tracking-wider text-ink-3",children:"Share link"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("input",{type:"text",readOnly:!0,value:t.url,className:"flex-1 rounded-md border border-surface-border bg-surface-0 px-3 py-2 font-mono text-xs text-ink-1 focus:outline-none focus:ring-1 focus:ring-accent",onFocus:e=>e.currentTarget.select()}),(0,s.jsx)("button",{type:"button",onClick:n,className:"shrink-0 rounded-md border border-surface-border bg-surface-2 px-3 py-2 text-xs font-medium text-ink-1 hover:bg-surface-3",children:r?"Copied":"Copy"})]})]}),(0,s.jsxs)("fieldset",{className:"border-t border-surface-border pt-3",children:[(0,s.jsx)("legend",{className:"mb-2 text-2xs font-medium uppercase tracking-wider text-ink-3",children:"Visibility"}),(0,s.jsxs)("div",{className:"space-y-1.5",children:[(0,s.jsx)(u,{value:"public",checked:"public"===a,onChange:()=>c("public"),label:"Public",hint:"Anyone, indexed by search engines",disabled:l}),(0,s.jsx)(u,{value:"unlisted",checked:"unlisted"===a,onChange:()=>c("unlisted"),label:"Unlisted",hint:"Anyone with the URL",disabled:l}),(0,s.jsx)(u,{value:"private",checked:"private"===a,onChange:()=>c("private"),label:"Private",hint:"Only you (must sign in)",disabled:l})]})]}),(0,s.jsxs)("fieldset",{className:"border-t border-surface-border pt-3",children:[(0,s.jsx)("legend",{className:"mb-2 text-2xs font-medium uppercase tracking-wider text-ink-3",children:"Stay current"}),(0,s.jsxs)("label",{className:"flex cursor-pointer items-start gap-2 text-xs text-ink-2",children:[(0,s.jsx)("input",{type:"checkbox",className:"mt-0.5",checked:i,onChange:e=>o(e.target.checked),disabled:l}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"font-medium text-ink-1",children:"Auto-sync changes to this share"}),(0,s.jsx)("span",{className:"ml-1 text-ink-3",children:"(re-uploads every ~5 minutes if the local session has changed)"})]})]})]}),"unchanged"===t.status?(0,s.jsx)("p",{className:"text-2xs text-ink-3",children:"The session content is identical to the existing share, so we reused it. Edit something in the session and re-share to update."}):(0,s.jsxs)("div",{className:"grid grid-cols-3 gap-3 border-t border-surface-border pt-3 text-2xs text-ink-3",children:[(0,s.jsx)(h,{label:"Size",value:"".concat((t.bytes/1024).toFixed(1)," KB")}),(0,s.jsx)(h,{label:"Secrets",value:t.redactionStats.secretsRedacted.toString()}),(0,s.jsx)(h,{label:"Redactions",value:d.toString()})]})]})}function u(e){let{value:t,checked:r,onChange:n,label:a,hint:c,disabled:i}=e;return(0,s.jsxs)("label",{className:"flex cursor-pointer items-start gap-2 text-xs text-ink-2",children:[(0,s.jsx)("input",{type:"radio",name:"share-visibility",value:t,checked:r,onChange:n,disabled:i,className:"mt-0.5"}),(0,s.jsxs)("span",{children:[(0,s.jsx)("span",{className:"font-medium text-ink-1",children:a}),(0,s.jsxs)("span",{className:"ml-1 text-ink-3",children:["— ",c]})]})]})}function x(){return(0,s.jsx)("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-current"})}function h(e){let{label:t,value:r}=e;return(0,s.jsxs)("div",{className:"flex flex-col",children:[(0,s.jsx)("span",{className:"font-medium uppercase tracking-wider text-ink-4",children:t}),(0,s.jsx)("span",{className:"text-sm tabular-nums text-ink-1",children:r})]})}},8999:(e,t,r)=>{"use strict";r.d(t,{ResumeCommand:()=>a});var s=r(655),n=r(4519);function a(e){let{sessionId:t,projectPath:r,agentKind:a="claude-code"}=e,[c,i]=(0,n.useState)(null),o="codex"===a?"codex --resume ".concat(t):"cursor"===a?"cursor --resume ".concat(t):"claude --resume ".concat(t),l="cd ".concat(r);async function d(e,t){try{await navigator.clipboard.writeText(e),i(t),setTimeout(()=>i(null),1500)}catch(e){}}return(0,s.jsxs)("div",{className:"card px-4 py-3",children:[(0,s.jsx)("h3",{className:"mb-2 text-2xs font-medium uppercase tracking-wider text-ink-3",children:"codex"===a?"Resume in Codex":"cursor"===a?"Resume in Cursor":"Resume in Claude Code"}),(0,s.jsx)("p",{className:"mb-2 text-2xs text-ink-3",children:"Run from a terminal in your project directory:"}),(0,s.jsxs)("button",{type:"button",onClick:()=>d(l,"cd"),className:"mb-1.5 flex w-full items-center justify-between gap-2 rounded-md border border-surface-border bg-surface-0 px-2.5 py-1.5 text-left font-mono text-2xs text-ink-2 hover:border-surface-4 hover:text-ink-1",title:"Copy",children:[(0,s.jsx)("span",{className:"truncate",children:l}),(0,s.jsx)("span",{className:"shrink-0 text-2xs text-ink-3",children:"cd"===c?"✓":"copy"})]}),(0,s.jsxs)("button",{type:"button",onClick:()=>d(o,"cmd"),className:"flex w-full items-center justify-between gap-2 rounded-md border border-surface-border bg-surface-0 px-2.5 py-1.5 text-left font-mono text-2xs text-ink-2 hover:border-surface-4 hover:text-ink-1",title:"Copy",children:[(0,s.jsx)("span",{className:"truncate",children:o}),(0,s.jsx)("span",{className:"shrink-0 text-2xs text-ink-3",children:"cmd"===c?"✓":"copy"})]})]})}}},e=>{e.O(0,[200,29,575,695,358],()=>e(e.s=5816)),_N_E=e.O()}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[502],{1078:(e,t,r)=>{"use strict";r.d(t,{b:()=>a});var s=r(7069);let n=null;function a(){if(n)return n;let e="https://mrrghkzfjgfszricdchr.supabase.co",t="sb_publishable_EMTUmRBbNoB8fh4T05Wp5Q_cGJP430c";if(!e||!t)throw Error("Missing NEXT_PUBLIC_SUPABASE_URL or NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY");return n=(0,s.createBrowserClient)(e,t)}},3513:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,3483,23)),Promise.resolve().then(r.bind(r,6503)),Promise.resolve().then(r.bind(r,1123)),Promise.resolve().then(r.bind(r,6597)),Promise.resolve().then(r.bind(r,4059))},6503:(e,t,r)=>{"use strict";r.d(t,{SignInCard:()=>o});var s=r(655),n=r(4519),a=r(1078),i=r(9244);function o(e){let{next:t,initialError:r}=e,[o,c]=(0,n.useState)(!1),[l,d]=(0,n.useState)(r);async function u(){c(!0),d(null);try{let e=(0,a.b)(),r=new URL("/auth/callback",window.location.origin);r.searchParams.set("next",t);let{error:s}=await e.auth.signInWithOAuth({provider:"github",options:{redirectTo:r.toString()}});if(s)throw s}catch(e){d(e instanceof Error?e.message:String(e)),c(!1)}}return(0,s.jsxs)("div",{className:"mx-auto flex max-w-md flex-col items-center px-6 pt-16 text-center sm:pt-24",children:[(0,s.jsx)("span",{className:"badge badge-accent mb-6",children:"promptarc"}),(0,s.jsx)("h1",{className:"text-3xl font-semibold tracking-tight text-ink-0 sm:text-4xl",children:"Sign in"}),(0,s.jsx)("p",{className:"mt-3 max-w-sm text-sm text-ink-2",children:"promptarc uses GitHub for authentication. We only request your basic public profile and email — no repository access."}),(0,s.jsxs)("button",{type:"button",onClick:u,disabled:o,className:"mt-8 inline-flex items-center gap-2 rounded-md border border-accent/40 bg-accent px-5 py-2.5 text-sm font-semibold text-surface-0 shadow-[0_0_0_1px_rgba(129,140,248,0.4),0_8px_24px_-12px_rgba(129,140,248,0.6)] hover:bg-accent/90 disabled:cursor-not-allowed disabled:opacity-60",children:[(0,s.jsx)(i.Hk,{className:"h-4 w-4"}),o?"Redirecting…":"Continue with GitHub"]}),l?(0,s.jsx)("p",{className:"mt-6 max-w-sm rounded-md border border-danger/30 bg-danger/10 px-3 py-2 text-2xs text-danger",children:function(e){switch(e){case"no-code":return"OAuth provider returned no authorization code.";case"exchange-failed":return"Could not exchange the authorization code for a session.";default:return e}}(l)}):null,(0,s.jsxs)("p",{className:"mt-10 max-w-sm text-2xs text-ink-3",children:["By continuing you agree that promptarc may store the shared session artifacts you create. Your local ",(0,s.jsx)("code",{className:"font-mono",children:"~/.claude/"})," ","data never leaves your machine until you click Share."]})]})}},9244:(e,t,r)=>{"use strict";r.d(t,{Hk:()=>n});var s=r(655);function n(e){let{className:t="h-4 w-4"}=e;return(0,s.jsx)("svg",{className:t,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M8 0C3.58 0 0 3.58 0 8a8 8 0 005.47 7.59c.4.07.55-.17.55-.38v-1.32c-2.22.48-2.69-1.07-2.69-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.05-.49.05-.49.81.06 1.23.83 1.23.83.72 1.23 1.88.87 2.34.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.13 0 0 .67-.21 2.2.82a7.7 7.7 0 014 0c1.53-1.04 2.2-.82 2.2-.82.44 1.11.16 1.93.08 2.13.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0016 8c0-4.42-3.58-8-8-8z"})})}}},e=>{e.O(0,[994,200,896,29,575,695,358],()=>e(e.s=3513)),_N_E=e.O()}]);