@ulpi/cli 0.1.10 → 0.1.11

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 (160) hide show
  1. package/dist/{chunk-F32YQRFR.js → chunk-GSFWS32F.js} +1 -1
  2. package/dist/{ci-QBXWR3GW.js → ci-RMMSML3A.js} +1 -1
  3. package/dist/{doctor-SRJIZM2T.js → doctor-ILXW63Q2.js} +1 -1
  4. package/dist/{history-UGYO7Z3U.js → history-TKPFJAL3.js} +1 -1
  5. package/dist/index.js +8 -8
  6. package/dist/portal/apps/portal/.next/BUILD_ID +1 -1
  7. package/dist/portal/apps/portal/.next/app-build-manifest.json +98 -98
  8. package/dist/portal/apps/portal/.next/app-path-routes-manifest.json +21 -21
  9. package/dist/portal/apps/portal/.next/build-manifest.json +2 -2
  10. package/dist/portal/apps/portal/.next/prerender-manifest.json +106 -106
  11. package/dist/portal/apps/portal/.next/server/app/(dashboard)/billing/page_client-reference-manifest.js +1 -1
  12. package/dist/portal/apps/portal/.next/server/app/(dashboard)/codemap/page_client-reference-manifest.js +1 -1
  13. package/dist/portal/apps/portal/.next/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
  14. package/dist/portal/apps/portal/.next/server/app/(dashboard)/history/[sha]/transcript/page_client-reference-manifest.js +1 -1
  15. package/dist/portal/apps/portal/.next/server/app/(dashboard)/history/page.js +1 -1
  16. package/dist/portal/apps/portal/.next/server/app/(dashboard)/history/page_client-reference-manifest.js +1 -1
  17. package/dist/portal/apps/portal/.next/server/app/(dashboard)/jobs/[id]/page_client-reference-manifest.js +1 -1
  18. package/dist/portal/apps/portal/.next/server/app/(dashboard)/jobs/page_client-reference-manifest.js +1 -1
  19. package/dist/portal/apps/portal/.next/server/app/(dashboard)/loop/page.js +1 -1
  20. package/dist/portal/apps/portal/.next/server/app/(dashboard)/loop/page_client-reference-manifest.js +1 -1
  21. package/dist/portal/apps/portal/.next/server/app/(dashboard)/mcps/[name]/page_client-reference-manifest.js +1 -1
  22. package/dist/portal/apps/portal/.next/server/app/(dashboard)/mcps/catalog/page_client-reference-manifest.js +1 -1
  23. package/dist/portal/apps/portal/.next/server/app/(dashboard)/mcps/page_client-reference-manifest.js +1 -1
  24. package/dist/portal/apps/portal/.next/server/app/(dashboard)/mcps/secrets/page_client-reference-manifest.js +1 -1
  25. package/dist/portal/apps/portal/.next/server/app/(dashboard)/mcps/submissions/page_client-reference-manifest.js +1 -1
  26. package/dist/portal/apps/portal/.next/server/app/(dashboard)/mcps/usage/page_client-reference-manifest.js +1 -1
  27. package/dist/portal/apps/portal/.next/server/app/(dashboard)/memory/page_client-reference-manifest.js +1 -1
  28. package/dist/portal/apps/portal/.next/server/app/(dashboard)/memory/settings/page_client-reference-manifest.js +1 -1
  29. package/dist/portal/apps/portal/.next/server/app/(dashboard)/memory/timeline/page_client-reference-manifest.js +1 -1
  30. package/dist/portal/apps/portal/.next/server/app/(dashboard)/notifications/page_client-reference-manifest.js +1 -1
  31. package/dist/portal/apps/portal/.next/server/app/(dashboard)/parallel/page.js +1 -1
  32. package/dist/portal/apps/portal/.next/server/app/(dashboard)/parallel/page_client-reference-manifest.js +1 -1
  33. package/dist/portal/apps/portal/.next/server/app/(dashboard)/prd/page_client-reference-manifest.js +1 -1
  34. package/dist/portal/apps/portal/.next/server/app/(dashboard)/repos/[id]/guards/page_client-reference-manifest.js +1 -1
  35. package/dist/portal/apps/portal/.next/server/app/(dashboard)/repos/[id]/page_client-reference-manifest.js +1 -1
  36. package/dist/portal/apps/portal/.next/server/app/(dashboard)/repos/page_client-reference-manifest.js +1 -1
  37. package/dist/portal/apps/portal/.next/server/app/(dashboard)/review/config/page_client-reference-manifest.js +1 -1
  38. package/dist/portal/apps/portal/.next/server/app/(dashboard)/review/page_client-reference-manifest.js +1 -1
  39. package/dist/portal/apps/portal/.next/server/app/(dashboard)/review/plan/page_client-reference-manifest.js +1 -1
  40. package/dist/portal/apps/portal/.next/server/app/(dashboard)/review/queue/page_client-reference-manifest.js +1 -1
  41. package/dist/portal/apps/portal/.next/server/app/(dashboard)/rules/[id]/page_client-reference-manifest.js +1 -1
  42. package/dist/portal/apps/portal/.next/server/app/(dashboard)/rules/new/page_client-reference-manifest.js +1 -1
  43. package/dist/portal/apps/portal/.next/server/app/(dashboard)/rules/page_client-reference-manifest.js +1 -1
  44. package/dist/portal/apps/portal/.next/server/app/(dashboard)/rules/pipelines/page_client-reference-manifest.js +1 -1
  45. package/dist/portal/apps/portal/.next/server/app/(dashboard)/sessions/[sessionId]/page_client-reference-manifest.js +1 -1
  46. package/dist/portal/apps/portal/.next/server/app/(dashboard)/sessions/page.js +1 -1
  47. package/dist/portal/apps/portal/.next/server/app/(dashboard)/sessions/page_client-reference-manifest.js +1 -1
  48. package/dist/portal/apps/portal/.next/server/app/(dashboard)/settings/github/page_client-reference-manifest.js +1 -1
  49. package/dist/portal/apps/portal/.next/server/app/(dashboard)/settings/installations/page_client-reference-manifest.js +1 -1
  50. package/dist/portal/apps/portal/.next/server/app/(dashboard)/settings/keys/page_client-reference-manifest.js +1 -1
  51. package/dist/portal/apps/portal/.next/server/app/(dashboard)/settings/members/page_client-reference-manifest.js +1 -1
  52. package/dist/portal/apps/portal/.next/server/app/(dashboard)/settings/orgs/new/page_client-reference-manifest.js +1 -1
  53. package/dist/portal/apps/portal/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
  54. package/dist/portal/apps/portal/.next/server/app/(dashboard)/skills/page_client-reference-manifest.js +1 -1
  55. package/dist/portal/apps/portal/.next/server/app/(dashboard)/sprints/[batchId]/page_client-reference-manifest.js +1 -1
  56. package/dist/portal/apps/portal/.next/server/app/(dashboard)/sprints/page_client-reference-manifest.js +1 -1
  57. package/dist/portal/apps/portal/.next/server/app/(dashboard)/templates/page_client-reference-manifest.js +1 -1
  58. package/dist/portal/apps/portal/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  59. package/dist/portal/apps/portal/.next/server/app/_not-found.html +1 -1
  60. package/dist/portal/apps/portal/.next/server/app/_not-found.rsc +1 -1
  61. package/dist/portal/apps/portal/.next/server/app/auth/callback/page_client-reference-manifest.js +1 -1
  62. package/dist/portal/apps/portal/.next/server/app/auth/callback.html +1 -1
  63. package/dist/portal/apps/portal/.next/server/app/auth/callback.rsc +1 -1
  64. package/dist/portal/apps/portal/.next/server/app/billing.html +1 -1
  65. package/dist/portal/apps/portal/.next/server/app/billing.rsc +1 -1
  66. package/dist/portal/apps/portal/.next/server/app/codemap.html +1 -1
  67. package/dist/portal/apps/portal/.next/server/app/codemap.rsc +1 -1
  68. package/dist/portal/apps/portal/.next/server/app/dashboard.html +1 -1
  69. package/dist/portal/apps/portal/.next/server/app/dashboard.rsc +1 -1
  70. package/dist/portal/apps/portal/.next/server/app/history.html +1 -1
  71. package/dist/portal/apps/portal/.next/server/app/history.rsc +2 -2
  72. package/dist/portal/apps/portal/.next/server/app/jobs.html +1 -1
  73. package/dist/portal/apps/portal/.next/server/app/jobs.rsc +1 -1
  74. package/dist/portal/apps/portal/.next/server/app/loop.html +1 -1
  75. package/dist/portal/apps/portal/.next/server/app/loop.rsc +2 -2
  76. package/dist/portal/apps/portal/.next/server/app/mcps/catalog.html +1 -1
  77. package/dist/portal/apps/portal/.next/server/app/mcps/catalog.rsc +1 -1
  78. package/dist/portal/apps/portal/.next/server/app/mcps/secrets.html +1 -1
  79. package/dist/portal/apps/portal/.next/server/app/mcps/secrets.rsc +1 -1
  80. package/dist/portal/apps/portal/.next/server/app/mcps/submissions.html +1 -1
  81. package/dist/portal/apps/portal/.next/server/app/mcps/submissions.rsc +1 -1
  82. package/dist/portal/apps/portal/.next/server/app/mcps/usage.html +1 -1
  83. package/dist/portal/apps/portal/.next/server/app/mcps/usage.rsc +1 -1
  84. package/dist/portal/apps/portal/.next/server/app/mcps.html +1 -1
  85. package/dist/portal/apps/portal/.next/server/app/mcps.rsc +1 -1
  86. package/dist/portal/apps/portal/.next/server/app/memory/settings.html +1 -1
  87. package/dist/portal/apps/portal/.next/server/app/memory/settings.rsc +1 -1
  88. package/dist/portal/apps/portal/.next/server/app/memory/timeline.html +1 -1
  89. package/dist/portal/apps/portal/.next/server/app/memory/timeline.rsc +2 -2
  90. package/dist/portal/apps/portal/.next/server/app/memory.html +1 -1
  91. package/dist/portal/apps/portal/.next/server/app/memory.rsc +2 -2
  92. package/dist/portal/apps/portal/.next/server/app/notifications.html +1 -1
  93. package/dist/portal/apps/portal/.next/server/app/notifications.rsc +1 -1
  94. package/dist/portal/apps/portal/.next/server/app/parallel.html +1 -1
  95. package/dist/portal/apps/portal/.next/server/app/parallel.rsc +2 -2
  96. package/dist/portal/apps/portal/.next/server/app/prd.html +1 -1
  97. package/dist/portal/apps/portal/.next/server/app/prd.rsc +2 -2
  98. package/dist/portal/apps/portal/.next/server/app/repos.html +1 -1
  99. package/dist/portal/apps/portal/.next/server/app/repos.rsc +1 -1
  100. package/dist/portal/apps/portal/.next/server/app/review/config.html +1 -1
  101. package/dist/portal/apps/portal/.next/server/app/review/config.rsc +1 -1
  102. package/dist/portal/apps/portal/.next/server/app/review/plan.html +1 -1
  103. package/dist/portal/apps/portal/.next/server/app/review/plan.rsc +2 -2
  104. package/dist/portal/apps/portal/.next/server/app/review/queue.html +1 -1
  105. package/dist/portal/apps/portal/.next/server/app/review/queue.rsc +1 -1
  106. package/dist/portal/apps/portal/.next/server/app/review.html +1 -1
  107. package/dist/portal/apps/portal/.next/server/app/review.rsc +1 -1
  108. package/dist/portal/apps/portal/.next/server/app/rules/new.html +1 -1
  109. package/dist/portal/apps/portal/.next/server/app/rules/new.rsc +1 -1
  110. package/dist/portal/apps/portal/.next/server/app/rules/pipelines.html +1 -1
  111. package/dist/portal/apps/portal/.next/server/app/rules/pipelines.rsc +1 -1
  112. package/dist/portal/apps/portal/.next/server/app/rules.html +1 -1
  113. package/dist/portal/apps/portal/.next/server/app/rules.rsc +1 -1
  114. package/dist/portal/apps/portal/.next/server/app/sessions.html +1 -1
  115. package/dist/portal/apps/portal/.next/server/app/sessions.rsc +2 -2
  116. package/dist/portal/apps/portal/.next/server/app/settings/github.html +1 -1
  117. package/dist/portal/apps/portal/.next/server/app/settings/github.rsc +1 -1
  118. package/dist/portal/apps/portal/.next/server/app/settings/installations.html +1 -1
  119. package/dist/portal/apps/portal/.next/server/app/settings/installations.rsc +1 -1
  120. package/dist/portal/apps/portal/.next/server/app/settings/keys.html +1 -1
  121. package/dist/portal/apps/portal/.next/server/app/settings/keys.rsc +1 -1
  122. package/dist/portal/apps/portal/.next/server/app/settings/members.html +1 -1
  123. package/dist/portal/apps/portal/.next/server/app/settings/members.rsc +1 -1
  124. package/dist/portal/apps/portal/.next/server/app/settings/orgs/new.html +1 -1
  125. package/dist/portal/apps/portal/.next/server/app/settings/orgs/new.rsc +1 -1
  126. package/dist/portal/apps/portal/.next/server/app/settings.html +1 -1
  127. package/dist/portal/apps/portal/.next/server/app/settings.rsc +1 -1
  128. package/dist/portal/apps/portal/.next/server/app/skills.html +1 -1
  129. package/dist/portal/apps/portal/.next/server/app/skills.rsc +1 -1
  130. package/dist/portal/apps/portal/.next/server/app/sprints.html +1 -1
  131. package/dist/portal/apps/portal/.next/server/app/sprints.rsc +1 -1
  132. package/dist/portal/apps/portal/.next/server/app/templates.html +1 -1
  133. package/dist/portal/apps/portal/.next/server/app/templates.rsc +1 -1
  134. package/dist/portal/apps/portal/.next/server/app-paths-manifest.json +21 -21
  135. package/dist/portal/apps/portal/.next/server/next-font-manifest.js +1 -1
  136. package/dist/portal/apps/portal/.next/server/next-font-manifest.json +1 -1
  137. package/dist/portal/apps/portal/.next/server/pages/404.html +1 -1
  138. package/dist/portal/apps/portal/.next/server/pages/500.html +1 -1
  139. package/dist/portal/apps/portal/.next/server/pages-manifest.json +1 -1
  140. package/dist/portal/apps/portal/.next/static/chunks/3958-eebe9ad88e40b2c1.js +1 -0
  141. package/dist/portal/apps/portal/.next/static/chunks/{7525-d6350803a451284c.js → 7525-8d416b046f9add2a.js} +1 -1
  142. package/dist/portal/apps/portal/.next/static/chunks/app/(dashboard)/history/{page-264989cf873cd3de.js → page-0275ca43fdd64bf2.js} +1 -1
  143. package/dist/portal/apps/portal/.next/static/chunks/app/(dashboard)/jobs/[id]/page-dba3c6050ccf9243.js +1 -0
  144. package/dist/portal/apps/portal/.next/static/chunks/app/(dashboard)/loop/page-c3f658ffb8d7397b.js +1 -0
  145. package/dist/portal/apps/portal/.next/static/chunks/app/(dashboard)/memory/page-afe7f7a5b78650f2.js +1 -0
  146. package/dist/portal/apps/portal/.next/static/chunks/app/(dashboard)/memory/timeline/{page-30db4506366d09f4.js → page-4e3dd7e30a9946f0.js} +1 -1
  147. package/dist/portal/apps/portal/.next/static/chunks/app/(dashboard)/parallel/{page-85690140ff82dd58.js → page-49a26690ced20482.js} +1 -1
  148. package/dist/portal/apps/portal/.next/static/chunks/app/(dashboard)/sessions/{page-6b199747e9f587de.js → page-0b140fb8bbc53097.js} +1 -1
  149. package/dist/portal/apps/portal/package.json +1 -0
  150. package/dist/portal/package.json +1 -1
  151. package/dist/{start-DWZHVBUO.js → start-BRB2XW3T.js} +1 -1
  152. package/dist/{update-IBPDEBEK.js → update-HBWHFHUW.js} +1 -1
  153. package/dist/{version-checker-XKFQNN3I.js → version-checker-BQP7DVQ4.js} +1 -1
  154. package/package.json +6 -6
  155. package/dist/portal/apps/portal/.next/static/chunks/3958-9975252472a218aa.js +0 -1
  156. package/dist/portal/apps/portal/.next/static/chunks/app/(dashboard)/jobs/[id]/page-b0ac38d08f846f50.js +0 -1
  157. package/dist/portal/apps/portal/.next/static/chunks/app/(dashboard)/loop/page-faeaacd95742c754.js +0 -1
  158. package/dist/portal/apps/portal/.next/static/chunks/app/(dashboard)/memory/page-79f977cd348c57ae.js +0 -1
  159. /package/dist/portal/apps/portal/.next/static/{02AzZdYDA5HVAwITp37Ql → SG8tUyluXEA9HzEKtf-oo}/_buildManifest.js +0 -0
  160. /package/dist/portal/apps/portal/.next/static/{02AzZdYDA5HVAwITp37Ql → SG8tUyluXEA9HzEKtf-oo}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/(dashboard)/history/[sha]/transcript/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"27":{"*":{"id":"64619","name":"*","chunks":[],"async":false}},"714":{"*":{"id":"54878","name":"*","chunks":[],"async":false}},"1131":{"*":{"id":"18061","name":"*","chunks":[],"async":false}},"1208":{"*":{"id":"76957","name":"*","chunks":[],"async":false}},"1452":{"*":{"id":"27579","name":"*","chunks":[],"async":false}},"2051":{"*":{"id":"2455","name":"*","chunks":[],"async":false}},"2094":{"*":{"id":"22164","name":"*","chunks":[],"async":false}},"2603":{"*":{"id":"81905","name":"*","chunks":[],"async":false}},"2664":{"*":{"id":"10810","name":"*","chunks":[],"async":false}},"3339":{"*":{"id":"60611","name":"*","chunks":[],"async":false}},"3381":{"*":{"id":"47770","name":"*","chunks":[],"async":false}},"3604":{"*":{"id":"95616","name":"*","chunks":[],"async":false}},"3747":{"*":{"id":"4153","name":"*","chunks":[],"async":false}},"4003":{"*":{"id":"59083","name":"*","chunks":[],"async":false}},"4033":{"*":{"id":"55519","name":"*","chunks":[],"async":false}},"4116":{"*":{"id":"79898","name":"*","chunks":[],"async":false}},"4196":{"*":{"id":"32961","name":"*","chunks":[],"async":false}},"4295":{"*":{"id":"17593","name":"*","chunks":[],"async":false}},"4951":{"*":{"id":"47163","name":"*","chunks":[],"async":false}},"4970":{"*":{"id":"84978","name":"*","chunks":[],"async":false}},"5204":{"*":{"id":"81627","name":"*","chunks":[],"async":false}},"5282":{"*":{"id":"56690","name":"*","chunks":[],"async":false}},"5283":{"*":{"id":"66455","name":"*","chunks":[],"async":false}},"5640":{"*":{"id":"25506","name":"*","chunks":[],"async":false}},"5708":{"*":{"id":"78749","name":"*","chunks":[],"async":false}},"5754":{"*":{"id":"54450","name":"*","chunks":[],"async":false}},"5818":{"*":{"id":"38345","name":"*","chunks":[],"async":false}},"5948":{"*":{"id":"4006","name":"*","chunks":[],"async":false}},"6188":{"*":{"id":"44826","name":"*","chunks":[],"async":false}},"6191":{"*":{"id":"81373","name":"*","chunks":[],"async":false}},"6317":{"*":{"id":"78251","name":"*","chunks":[],"async":false}},"6658":{"*":{"id":"67034","name":"*","chunks":[],"async":false}},"6892":{"*":{"id":"70350","name":"*","chunks":[],"async":false}},"7099":{"*":{"id":"21747","name":"*","chunks":[],"async":false}},"7102":{"*":{"id":"31579","name":"*","chunks":[],"async":false}},"7623":{"*":{"id":"48357","name":"*","chunks":[],"async":false}},"7698":{"*":{"id":"20576","name":"*","chunks":[],"async":false}},"7704":{"*":{"id":"38100","name":"*","chunks":[],"async":false}},"7778":{"*":{"id":"53261","name":"*","chunks":[],"async":false}},"7970":{"*":{"id":"30289","name":"*","chunks":[],"async":false}},"8065":{"*":{"id":"44207","name":"*","chunks":[],"async":false}},"8325":{"*":{"id":"49294","name":"*","chunks":[],"async":false}},"8535":{"*":{"id":"90856","name":"*","chunks":[],"async":false}},"8554":{"*":{"id":"55555","name":"*","chunks":[],"async":false}},"8570":{"*":{"id":"56520","name":"*","chunks":[],"async":false}},"8703":{"*":{"id":"26715","name":"*","chunks":[],"async":false}},"8877":{"*":{"id":"99433","name":"*","chunks":[],"async":false}},"8935":{"*":{"id":"71034","name":"*","chunks":[],"async":false}},"8954":{"*":{"id":"56358","name":"*","chunks":[],"async":false}},"9297":{"*":{"id":"13271","name":"*","chunks":[],"async":false}},"9686":{"*":{"id":"67756","name":"*","chunks":[],"async":false}},"9857":{"*":{"id":"69109","name":"*","chunks":[],"async":false}},"9896":{"*":{"id":"12481","name":"*","chunks":[],"async":false}},"9947":{"*":{"id":"4504","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7698,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7698,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/client-page.js":{"id":3339,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/client-page.js":{"id":3339,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/client-segment.js":{"id":4033,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4033,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":5754,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":5754,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/layout-router.js":{"id":8954,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/layout-router.js":{"id":8954,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":6658,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":6658,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/render-from-template-context.js":{"id":5640,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":5640,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/lib/framework/boundary-components.js":{"id":2051,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":2051,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":4970,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":4970,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-inter\",\"display\":\"swap\"}],\"variableName\":\"inter\"}":{"id":4338,"name":"*","chunks":["7177","static/chunks/app/layout-8d56830e207ce21d.js"],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"JetBrains_Mono\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-jetbrains\"}],\"variableName\":\"jetbrainsMono\"}":{"id":3220,"name":"*","chunks":["7177","static/chunks/app/layout-8d56830e207ce21d.js"],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/globals.css":{"id":9469,"name":"*","chunks":["7177","static/chunks/app/layout-8d56830e207ce21d.js"],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/error.tsx":{"id":7704,"name":"*","chunks":["8039","static/chunks/app/error-78a7677dcd24ca1b.js"],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/auth/callback/page.tsx":{"id":4116,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/layout.tsx":{"id":8535,"name":"*","chunks":["5935","static/chunks/5935-a39f44cf0cbaf28b.js","8934","static/chunks/8934-bb365eb647fb2d5a.js","9305","static/chunks/app/(dashboard)/layout-05fc9732a636a609.js"],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/codemap/page.tsx":{"id":5282,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/dashboard/page.tsx":{"id":6188,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/billing/page.tsx":{"id":7778,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/history/[sha]/transcript/page.tsx":{"id":8325,"name":"*","chunks":["5935","static/chunks/5935-a39f44cf0cbaf28b.js","380","static/chunks/380-52bab5fc966d7cf9.js","8237","static/chunks/app/(dashboard)/history/%5Bsha%5D/transcript/page-29b3b03d1f38aebe.js"],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/jobs/[id]/page.tsx":{"id":7102,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/history/page.tsx":{"id":9896,"name":"*","chunks":["5935","static/chunks/5935-a39f44cf0cbaf28b.js","380","static/chunks/380-52bab5fc966d7cf9.js","3845","static/chunks/app/(dashboard)/history/page-264989cf873cd3de.js"],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/jobs/page.tsx":{"id":8554,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/loop/page.tsx":{"id":1452,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/mcps/[name]/page.tsx":{"id":6191,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/mcps/catalog/page.tsx":{"id":1131,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/mcps/page.tsx":{"id":3381,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/mcps/submissions/page.tsx":{"id":8877,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/mcps/secrets/page.tsx":{"id":4003,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/mcps/usage/page.tsx":{"id":9686,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/memory/page.tsx":{"id":7099,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/memory/settings/page.tsx":{"id":6317,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/memory/timeline/page.tsx":{"id":2603,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/notifications/page.tsx":{"id":6892,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/prd/page.tsx":{"id":5948,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/parallel/page.tsx":{"id":4196,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/repos/[id]/page.tsx":{"id":9857,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/review/config/page.tsx":{"id":5708,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/repos/page.tsx":{"id":1208,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/review/plan/page.tsx":{"id":5204,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/review/queue/page.tsx":{"id":3604,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/rules/[id]/page.tsx":{"id":8703,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/rules/new/page.tsx":{"id":2094,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/rules/page.tsx":{"id":7970,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/rules/pipelines/page.tsx":{"id":3747,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/settings/github/page.tsx":{"id":9297,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/sessions/[sessionId]/page.tsx":{"id":4951,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/settings/installations/page.tsx":{"id":5283,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/sessions/page.tsx":{"id":9947,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/settings/keys/page.tsx":{"id":8570,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/settings/orgs/new/page.tsx":{"id":2664,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/settings/page.tsx":{"id":27,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/settings/members/page.tsx":{"id":5818,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/skills/page.tsx":{"id":714,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/sprints/[batchId]/page.tsx":{"id":7623,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/sprints/page.tsx":{"id":8065,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/repos/[id]/guards/page.tsx":{"id":8935,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/templates/page.tsx":{"id":4295,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/":[],"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/layout":[{"inlined":false,"path":"static/css/cf8a94d8f0136ff9.css"},{"inlined":false,"path":"static/css/d8d33dd99ab06e3d.css"}],"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/error":[],"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/layout":[],"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/history/page":[],"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/history/[sha]/transcript/page":[]},"rscModuleMapping":{"27":{"*":{"id":"68099","name":"*","chunks":[],"async":false}},"714":{"*":{"id":"83540","name":"*","chunks":[],"async":false}},"1131":{"*":{"id":"74883","name":"*","chunks":[],"async":false}},"1208":{"*":{"id":"88441","name":"*","chunks":[],"async":false}},"1452":{"*":{"id":"88932","name":"*","chunks":[],"async":false}},"2051":{"*":{"id":"55273","name":"*","chunks":[],"async":false}},"2094":{"*":{"id":"85014","name":"*","chunks":[],"async":false}},"2603":{"*":{"id":"31191","name":"*","chunks":[],"async":false}},"2664":{"*":{"id":"60624","name":"*","chunks":[],"async":false}},"3339":{"*":{"id":"65701","name":"*","chunks":[],"async":false}},"3381":{"*":{"id":"76811","name":"*","chunks":[],"async":false}},"3604":{"*":{"id":"13986","name":"*","chunks":[],"async":false}},"3747":{"*":{"id":"73811","name":"*","chunks":[],"async":false}},"4003":{"*":{"id":"11449","name":"*","chunks":[],"async":false}},"4033":{"*":{"id":"68709","name":"*","chunks":[],"async":false}},"4116":{"*":{"id":"6664","name":"*","chunks":[],"async":false}},"4196":{"*":{"id":"38021","name":"*","chunks":[],"async":false}},"4295":{"*":{"id":"10299","name":"*","chunks":[],"async":false}},"4951":{"*":{"id":"47225","name":"*","chunks":[],"async":false}},"4970":{"*":{"id":"61824","name":"*","chunks":[],"async":false}},"5204":{"*":{"id":"61526","name":"*","chunks":[],"async":false}},"5282":{"*":{"id":"70325","name":"*","chunks":[],"async":false}},"5283":{"*":{"id":"79921","name":"*","chunks":[],"async":false}},"5640":{"*":{"id":"11968","name":"*","chunks":[],"async":false}},"5708":{"*":{"id":"31495","name":"*","chunks":[],"async":false}},"5754":{"*":{"id":"60492","name":"*","chunks":[],"async":false}},"5818":{"*":{"id":"67603","name":"*","chunks":[],"async":false}},"5948":{"*":{"id":"73094","name":"*","chunks":[],"async":false}},"6188":{"*":{"id":"1528","name":"*","chunks":[],"async":false}},"6191":{"*":{"id":"49647","name":"*","chunks":[],"async":false}},"6317":{"*":{"id":"19301","name":"*","chunks":[],"async":false}},"6658":{"*":{"id":"65800","name":"*","chunks":[],"async":false}},"6892":{"*":{"id":"1880","name":"*","chunks":[],"async":false}},"7099":{"*":{"id":"10501","name":"*","chunks":[],"async":false}},"7102":{"*":{"id":"27414","name":"*","chunks":[],"async":false}},"7623":{"*":{"id":"17323","name":"*","chunks":[],"async":false}},"7698":{"*":{"id":"2714","name":"*","chunks":[],"async":false}},"7704":{"*":{"id":"10538","name":"*","chunks":[],"async":false}},"7778":{"*":{"id":"90071","name":"*","chunks":[],"async":false}},"7970":{"*":{"id":"69799","name":"*","chunks":[],"async":false}},"8065":{"*":{"id":"65549","name":"*","chunks":[],"async":false}},"8325":{"*":{"id":"60896","name":"*","chunks":[],"async":false}},"8535":{"*":{"id":"45460","name":"*","chunks":[],"async":false}},"8554":{"*":{"id":"34362","name":"*","chunks":[],"async":false}},"8570":{"*":{"id":"23906","name":"*","chunks":[],"async":false}},"8703":{"*":{"id":"83085","name":"*","chunks":[],"async":false}},"8877":{"*":{"id":"92429","name":"*","chunks":[],"async":false}},"8935":{"*":{"id":"33972","name":"*","chunks":[],"async":false}},"8954":{"*":{"id":"13012","name":"*","chunks":[],"async":false}},"9297":{"*":{"id":"91121","name":"*","chunks":[],"async":false}},"9469":{"*":{"id":"44267","name":"*","chunks":[],"async":false}},"9686":{"*":{"id":"11727","name":"*","chunks":[],"async":false}},"9857":{"*":{"id":"51891","name":"*","chunks":[],"async":false}},"9896":{"*":{"id":"39536","name":"*","chunks":[],"async":false}},"9947":{"*":{"id":"17279","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{"2051":{"*":{"id":"2455","name":"*","chunks":[],"async":false}},"3339":{"*":{"id":"60611","name":"*","chunks":[],"async":false}},"4033":{"*":{"id":"55519","name":"*","chunks":[],"async":false}},"4970":{"*":{"id":"84978","name":"*","chunks":[],"async":false}},"5640":{"*":{"id":"25506","name":"*","chunks":[],"async":false}},"5754":{"*":{"id":"54450","name":"*","chunks":[],"async":false}},"6658":{"*":{"id":"67034","name":"*","chunks":[],"async":false}},"7698":{"*":{"id":"20576","name":"*","chunks":[],"async":false}},"8954":{"*":{"id":"56358","name":"*","chunks":[],"async":false}}}}
1
+ globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/(dashboard)/history/[sha]/transcript/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"27":{"*":{"id":"64619","name":"*","chunks":[],"async":false}},"714":{"*":{"id":"54878","name":"*","chunks":[],"async":false}},"1131":{"*":{"id":"18061","name":"*","chunks":[],"async":false}},"1208":{"*":{"id":"76957","name":"*","chunks":[],"async":false}},"1452":{"*":{"id":"27579","name":"*","chunks":[],"async":false}},"2051":{"*":{"id":"2455","name":"*","chunks":[],"async":false}},"2094":{"*":{"id":"22164","name":"*","chunks":[],"async":false}},"2603":{"*":{"id":"81905","name":"*","chunks":[],"async":false}},"2664":{"*":{"id":"10810","name":"*","chunks":[],"async":false}},"3339":{"*":{"id":"60611","name":"*","chunks":[],"async":false}},"3381":{"*":{"id":"47770","name":"*","chunks":[],"async":false}},"3604":{"*":{"id":"95616","name":"*","chunks":[],"async":false}},"3747":{"*":{"id":"4153","name":"*","chunks":[],"async":false}},"4003":{"*":{"id":"59083","name":"*","chunks":[],"async":false}},"4033":{"*":{"id":"55519","name":"*","chunks":[],"async":false}},"4116":{"*":{"id":"79898","name":"*","chunks":[],"async":false}},"4196":{"*":{"id":"32961","name":"*","chunks":[],"async":false}},"4295":{"*":{"id":"17593","name":"*","chunks":[],"async":false}},"4721":{"*":{"id":"31579","name":"*","chunks":[],"async":false}},"4951":{"*":{"id":"47163","name":"*","chunks":[],"async":false}},"4970":{"*":{"id":"84978","name":"*","chunks":[],"async":false}},"5204":{"*":{"id":"81627","name":"*","chunks":[],"async":false}},"5282":{"*":{"id":"56690","name":"*","chunks":[],"async":false}},"5283":{"*":{"id":"66455","name":"*","chunks":[],"async":false}},"5640":{"*":{"id":"25506","name":"*","chunks":[],"async":false}},"5708":{"*":{"id":"78749","name":"*","chunks":[],"async":false}},"5754":{"*":{"id":"54450","name":"*","chunks":[],"async":false}},"5818":{"*":{"id":"38345","name":"*","chunks":[],"async":false}},"5948":{"*":{"id":"4006","name":"*","chunks":[],"async":false}},"6188":{"*":{"id":"44826","name":"*","chunks":[],"async":false}},"6191":{"*":{"id":"81373","name":"*","chunks":[],"async":false}},"6317":{"*":{"id":"78251","name":"*","chunks":[],"async":false}},"6658":{"*":{"id":"67034","name":"*","chunks":[],"async":false}},"6892":{"*":{"id":"70350","name":"*","chunks":[],"async":false}},"7099":{"*":{"id":"21747","name":"*","chunks":[],"async":false}},"7623":{"*":{"id":"48357","name":"*","chunks":[],"async":false}},"7698":{"*":{"id":"20576","name":"*","chunks":[],"async":false}},"7704":{"*":{"id":"38100","name":"*","chunks":[],"async":false}},"7778":{"*":{"id":"53261","name":"*","chunks":[],"async":false}},"7970":{"*":{"id":"30289","name":"*","chunks":[],"async":false}},"8065":{"*":{"id":"44207","name":"*","chunks":[],"async":false}},"8325":{"*":{"id":"49294","name":"*","chunks":[],"async":false}},"8535":{"*":{"id":"90856","name":"*","chunks":[],"async":false}},"8554":{"*":{"id":"55555","name":"*","chunks":[],"async":false}},"8570":{"*":{"id":"56520","name":"*","chunks":[],"async":false}},"8703":{"*":{"id":"26715","name":"*","chunks":[],"async":false}},"8877":{"*":{"id":"99433","name":"*","chunks":[],"async":false}},"8935":{"*":{"id":"71034","name":"*","chunks":[],"async":false}},"8954":{"*":{"id":"56358","name":"*","chunks":[],"async":false}},"9297":{"*":{"id":"13271","name":"*","chunks":[],"async":false}},"9686":{"*":{"id":"67756","name":"*","chunks":[],"async":false}},"9857":{"*":{"id":"69109","name":"*","chunks":[],"async":false}},"9896":{"*":{"id":"12481","name":"*","chunks":[],"async":false}},"9947":{"*":{"id":"4504","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7698,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7698,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/client-page.js":{"id":3339,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/client-page.js":{"id":3339,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/client-segment.js":{"id":4033,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4033,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":5754,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":5754,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/layout-router.js":{"id":8954,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/layout-router.js":{"id":8954,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":6658,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":6658,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/client/components/render-from-template-context.js":{"id":5640,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":5640,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/lib/framework/boundary-components.js":{"id":2051,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":2051,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":4970,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":4970,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Inter\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-inter\",\"display\":\"swap\"}],\"variableName\":\"inter\"}":{"id":4338,"name":"*","chunks":["7177","static/chunks/app/layout-8d56830e207ce21d.js"],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/node_modules/.pnpm/next@15.5.12_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"JetBrains_Mono\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-jetbrains\"}],\"variableName\":\"jetbrainsMono\"}":{"id":3220,"name":"*","chunks":["7177","static/chunks/app/layout-8d56830e207ce21d.js"],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/globals.css":{"id":9469,"name":"*","chunks":["7177","static/chunks/app/layout-8d56830e207ce21d.js"],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/error.tsx":{"id":7704,"name":"*","chunks":["8039","static/chunks/app/error-78a7677dcd24ca1b.js"],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/auth/callback/page.tsx":{"id":4116,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/layout.tsx":{"id":8535,"name":"*","chunks":["5935","static/chunks/5935-a39f44cf0cbaf28b.js","8934","static/chunks/8934-bb365eb647fb2d5a.js","9305","static/chunks/app/(dashboard)/layout-05fc9732a636a609.js"],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/billing/page.tsx":{"id":7778,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/history/[sha]/transcript/page.tsx":{"id":8325,"name":"*","chunks":["5935","static/chunks/5935-a39f44cf0cbaf28b.js","380","static/chunks/380-52bab5fc966d7cf9.js","8237","static/chunks/app/(dashboard)/history/%5Bsha%5D/transcript/page-29b3b03d1f38aebe.js"],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/dashboard/page.tsx":{"id":6188,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/jobs/page.tsx":{"id":8554,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/loop/page.tsx":{"id":1452,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/codemap/page.tsx":{"id":5282,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/history/page.tsx":{"id":9896,"name":"*","chunks":["5935","static/chunks/5935-a39f44cf0cbaf28b.js","380","static/chunks/380-52bab5fc966d7cf9.js","3845","static/chunks/app/(dashboard)/history/page-0275ca43fdd64bf2.js"],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/mcps/secrets/page.tsx":{"id":4003,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/mcps/usage/page.tsx":{"id":9686,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/mcps/catalog/page.tsx":{"id":1131,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/mcps/submissions/page.tsx":{"id":8877,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/memory/settings/page.tsx":{"id":6317,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/mcps/[name]/page.tsx":{"id":6191,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/memory/page.tsx":{"id":7099,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/parallel/page.tsx":{"id":4196,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/memory/timeline/page.tsx":{"id":2603,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/repos/[id]/page.tsx":{"id":9857,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/review/config/page.tsx":{"id":5708,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/review/plan/page.tsx":{"id":5204,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/rules/[id]/page.tsx":{"id":8703,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/prd/page.tsx":{"id":5948,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/rules/new/page.tsx":{"id":2094,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/review/queue/page.tsx":{"id":3604,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/repos/page.tsx":{"id":1208,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/sessions/[sessionId]/page.tsx":{"id":4951,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/jobs/[id]/page.tsx":{"id":4721,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/settings/installations/page.tsx":{"id":5283,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/notifications/page.tsx":{"id":6892,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/settings/keys/page.tsx":{"id":8570,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/sessions/page.tsx":{"id":9947,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/settings/github/page.tsx":{"id":9297,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/rules/page.tsx":{"id":7970,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/rules/pipelines/page.tsx":{"id":3747,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/skills/page.tsx":{"id":714,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/sprints/[batchId]/page.tsx":{"id":7623,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/settings/orgs/new/page.tsx":{"id":2664,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/sprints/page.tsx":{"id":8065,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/settings/page.tsx":{"id":27,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/mcps/page.tsx":{"id":3381,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/settings/members/page.tsx":{"id":5818,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/repos/[id]/guards/page.tsx":{"id":8935,"name":"*","chunks":[],"async":false},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/templates/page.tsx":{"id":4295,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/":[],"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/layout":[{"inlined":false,"path":"static/css/cf8a94d8f0136ff9.css"},{"inlined":false,"path":"static/css/d8d33dd99ab06e3d.css"}],"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/error":[],"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/layout":[],"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/history/page":[],"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/history/[sha]/transcript/page":[]},"rscModuleMapping":{"27":{"*":{"id":"68099","name":"*","chunks":[],"async":false}},"714":{"*":{"id":"83540","name":"*","chunks":[],"async":false}},"1131":{"*":{"id":"74883","name":"*","chunks":[],"async":false}},"1208":{"*":{"id":"88441","name":"*","chunks":[],"async":false}},"1452":{"*":{"id":"88932","name":"*","chunks":[],"async":false}},"2051":{"*":{"id":"55273","name":"*","chunks":[],"async":false}},"2094":{"*":{"id":"85014","name":"*","chunks":[],"async":false}},"2603":{"*":{"id":"31191","name":"*","chunks":[],"async":false}},"2664":{"*":{"id":"60624","name":"*","chunks":[],"async":false}},"3339":{"*":{"id":"65701","name":"*","chunks":[],"async":false}},"3381":{"*":{"id":"76811","name":"*","chunks":[],"async":false}},"3604":{"*":{"id":"13986","name":"*","chunks":[],"async":false}},"3747":{"*":{"id":"73811","name":"*","chunks":[],"async":false}},"4003":{"*":{"id":"11449","name":"*","chunks":[],"async":false}},"4033":{"*":{"id":"68709","name":"*","chunks":[],"async":false}},"4116":{"*":{"id":"6664","name":"*","chunks":[],"async":false}},"4196":{"*":{"id":"38021","name":"*","chunks":[],"async":false}},"4295":{"*":{"id":"10299","name":"*","chunks":[],"async":false}},"4721":{"*":{"id":"27414","name":"*","chunks":[],"async":false}},"4951":{"*":{"id":"47225","name":"*","chunks":[],"async":false}},"4970":{"*":{"id":"61824","name":"*","chunks":[],"async":false}},"5204":{"*":{"id":"61526","name":"*","chunks":[],"async":false}},"5282":{"*":{"id":"70325","name":"*","chunks":[],"async":false}},"5283":{"*":{"id":"79921","name":"*","chunks":[],"async":false}},"5640":{"*":{"id":"11968","name":"*","chunks":[],"async":false}},"5708":{"*":{"id":"31495","name":"*","chunks":[],"async":false}},"5754":{"*":{"id":"60492","name":"*","chunks":[],"async":false}},"5818":{"*":{"id":"67603","name":"*","chunks":[],"async":false}},"5948":{"*":{"id":"73094","name":"*","chunks":[],"async":false}},"6188":{"*":{"id":"1528","name":"*","chunks":[],"async":false}},"6191":{"*":{"id":"49647","name":"*","chunks":[],"async":false}},"6317":{"*":{"id":"19301","name":"*","chunks":[],"async":false}},"6658":{"*":{"id":"65800","name":"*","chunks":[],"async":false}},"6892":{"*":{"id":"1880","name":"*","chunks":[],"async":false}},"7099":{"*":{"id":"10501","name":"*","chunks":[],"async":false}},"7623":{"*":{"id":"17323","name":"*","chunks":[],"async":false}},"7698":{"*":{"id":"2714","name":"*","chunks":[],"async":false}},"7704":{"*":{"id":"10538","name":"*","chunks":[],"async":false}},"7778":{"*":{"id":"90071","name":"*","chunks":[],"async":false}},"7970":{"*":{"id":"69799","name":"*","chunks":[],"async":false}},"8065":{"*":{"id":"65549","name":"*","chunks":[],"async":false}},"8325":{"*":{"id":"60896","name":"*","chunks":[],"async":false}},"8535":{"*":{"id":"45460","name":"*","chunks":[],"async":false}},"8554":{"*":{"id":"34362","name":"*","chunks":[],"async":false}},"8570":{"*":{"id":"23906","name":"*","chunks":[],"async":false}},"8703":{"*":{"id":"83085","name":"*","chunks":[],"async":false}},"8877":{"*":{"id":"92429","name":"*","chunks":[],"async":false}},"8935":{"*":{"id":"33972","name":"*","chunks":[],"async":false}},"8954":{"*":{"id":"13012","name":"*","chunks":[],"async":false}},"9297":{"*":{"id":"91121","name":"*","chunks":[],"async":false}},"9469":{"*":{"id":"44267","name":"*","chunks":[],"async":false}},"9686":{"*":{"id":"11727","name":"*","chunks":[],"async":false}},"9857":{"*":{"id":"51891","name":"*","chunks":[],"async":false}},"9896":{"*":{"id":"39536","name":"*","chunks":[],"async":false}},"9947":{"*":{"id":"17279","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{"2051":{"*":{"id":"2455","name":"*","chunks":[],"async":false}},"3339":{"*":{"id":"60611","name":"*","chunks":[],"async":false}},"4033":{"*":{"id":"55519","name":"*","chunks":[],"async":false}},"4970":{"*":{"id":"84978","name":"*","chunks":[],"async":false}},"5640":{"*":{"id":"25506","name":"*","chunks":[],"async":false}},"5754":{"*":{"id":"54450","name":"*","chunks":[],"async":false}},"6658":{"*":{"id":"67034","name":"*","chunks":[],"async":false}},"7698":{"*":{"id":"20576","name":"*","chunks":[],"async":false}},"8954":{"*":{"id":"56358","name":"*","chunks":[],"async":false}}}}
@@ -1,2 +1,2 @@
1
- (()=>{var a={};a.id=3845,a.ids=[3845],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11340:(a,b,c)=>{Promise.resolve().then(c.bind(c,39536))},12481:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>A});var d=c(82164),e=c(54509),f=c(26170),g=c(73754),h=c(70727),i=c(5543),j=c.n(i),k=c(59440),l=c(77128);let m={A:"bg-emerald-500/15 text-emerald-400",M:"bg-blue-500/15 text-blue-400",D:"bg-red-500/15 text-red-400",R:"bg-amber-500/15 text-amber-400",C:"bg-violet-500/15 text-violet-400"},n={A:"Added",M:"Modified",D:"Deleted",R:"Renamed",C:"Copied"};function o({entry:a}){return(0,d.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[a.hasSession&&(0,d.jsx)("span",{className:"inline-flex items-center rounded-full bg-cyan-500/15 px-2 py-0.5 text-[10px] font-medium text-cyan-400",children:"Session"}),a.hasEnrichment&&(0,d.jsx)("span",{className:"inline-flex items-center rounded-full bg-violet-500/15 px-2 py-0.5 text-[10px] font-medium text-violet-400",children:"AI"}),a.hasTranscript&&(0,d.jsx)("span",{className:"inline-flex items-center rounded-full bg-emerald-500/15 px-2 py-0.5 text-[10px] font-medium text-emerald-400",children:"Transcript"}),a.hasReviewPlans&&(0,d.jsx)("span",{className:"inline-flex items-center rounded-full bg-amber-500/15 px-2 py-0.5 text-[10px] font-medium text-amber-400",children:"Review"})]})}function p({turn:a}){let[b,c]=(0,e.useState)(!1),f="tool_use"===a.type?a.toolInput:a.content,g=null!=f&&f.length>2e3,h=g?f.slice(0,2e3):f;return(0,d.jsxs)("div",{children:[(0,d.jsxs)("button",{onClick:()=>c(!b),className:"inline-flex items-center gap-1 rounded-md px-1.5 py-0.5 text-[10px] font-medium text-cyan-400 bg-cyan-500/10 border border-cyan-500/15 transition-colors hover:bg-cyan-500/15",children:[(0,d.jsx)("svg",{className:"h-2.5 w-2.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.75 7.5 3 2.25-3 2.25m4.5 0h3"})}),"tool_use"===a.type?a.toolName:"Result",(0,d.jsx)("svg",{className:`h-2.5 w-2.5 text-cyan-500/60 transition-transform ${b?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})})]}),b&&h&&(0,d.jsxs)("pre",{className:"mt-1 overflow-x-auto whitespace-pre-wrap font-mono text-[10px] text-gray-500 max-h-24 overflow-y-auto rounded border border-white/[0.03] bg-surface-950 p-2",children:[h,g&&"\n... (truncated)"]})]})}function q({turn:a}){if("tool_use"===a.type||"tool_result"===a.type)return(0,d.jsx)(p,{turn:a});let b="human"===a.type;return(0,d.jsxs)("div",{className:`rounded-lg border-l-2 px-3 py-2 ${b?"border-l-primary-500 bg-surface-800/40 border border-l-2 border-white/[0.03]":"border-l-violet-500 bg-surface-900/60 border border-l-2 border-white/[0.04]"}`,children:[(0,d.jsx)("span",{className:`text-[10px] font-medium ${b?"text-primary-400":"text-violet-400"}`,children:b?"You":"Assistant"}),(0,d.jsx)("p",{className:"mt-0.5 whitespace-pre-wrap text-[10px] text-gray-400 leading-relaxed max-h-20 overflow-y-auto",children:a.content.length>500?a.content.slice(0,500)+"...":a.content})]})}function r({sha:a}){let{transcript:b,loading:c}=(0,h.oI)(a),[f,g]=(0,e.useState)(!1);if(c)return(0,d.jsx)("div",{className:"rounded-lg border border-white/[0.04] bg-surface-800/50 p-3",children:(0,d.jsxs)("div",{className:"flex items-center gap-2 text-xs text-gray-500",children:[(0,d.jsx)("span",{className:"h-3 w-3 animate-spin rounded-full border border-primary-500 border-t-transparent"}),"Loading transcript..."]})});if(!b)return null;let i=(0,l.K9)(b);if(!i||0===i.length)return null;let k=i.filter(a=>"human"===a.type).length,m=i.filter(a=>"assistant"===a.type).length,n=i.filter(a=>"tool_use"===a.type||"tool_result"===a.type).length;return(0,d.jsxs)("div",{className:"rounded-lg border border-white/[0.04] bg-surface-800/30 overflow-hidden",children:[(0,d.jsxs)("button",{onClick:()=>g(!f),className:"flex w-full items-center justify-between px-4 py-3 text-left transition-colors hover:bg-white/[0.02]",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("svg",{className:"h-3.5 w-3.5 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})}),(0,d.jsx)("span",{className:"text-xs font-medium text-gray-300",children:"Transcript"}),(0,d.jsxs)("span",{className:"text-[10px] text-gray-600",children:[i.length," turn",1!==i.length?"s":""," ","(",k," user, ",m," assistant, ",n," tool)"]})]}),(0,d.jsx)("svg",{className:`h-3.5 w-3.5 text-gray-600 transition-transform ${f?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})})]}),f&&(0,d.jsxs)("div",{className:"border-t border-white/[0.04] px-4 py-3 max-h-96 overflow-y-auto space-y-1.5",children:[i.slice(0,50).map((a,b)=>(0,d.jsx)(q,{turn:a},b)),i.length>50&&(0,d.jsxs)("p",{className:"py-2 text-center text-[10px] text-gray-600",children:["Showing 50 of ",i.length," turns."," ",(0,d.jsx)(j(),{href:`/history/${a}/transcript`,className:"text-primary-400 hover:text-primary-300",children:"View full transcript"})]})]})]})}function s({plan:a}){let[b,c]=(0,e.useState)(!1),f=a.decision?.behavior,g="approve"===f?"approved":"deny"===f?"denied":null;return(0,d.jsxs)("div",{className:"rounded-lg border border-white/[0.04] bg-surface-800/30 overflow-hidden",children:[(0,d.jsxs)("button",{onClick:()=>c(!b),className:"flex w-full items-center justify-between px-3 py-2.5 text-left transition-colors hover:bg-white/[0.02]",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,d.jsx)("svg",{className:"h-3.5 w-3.5 text-amber-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25Z"})}),(0,d.jsx)("span",{className:"text-xs font-medium text-gray-300 truncate",children:a.title||a.slug||"Review Plan"}),g&&(0,d.jsx)("span",{className:`rounded-full px-1.5 py-px text-[9px] font-medium ${"approve"===f?"text-emerald-400 bg-emerald-500/15":"deny"===f?"text-red-400 bg-red-500/15":"text-amber-400 bg-amber-500/15"}`,children:g})]}),(0,d.jsx)("svg",{className:`h-3 w-3 text-gray-600 transition-transform shrink-0 ${b?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})})]}),b&&a.plan&&(0,d.jsx)("div",{className:"border-t border-white/[0.04] px-3 py-3 max-h-64 overflow-y-auto",children:(0,d.jsx)("pre",{className:"whitespace-pre-wrap text-[11px] text-gray-400 leading-relaxed font-mono",children:a.plan})})]})}function t({sha:a}){let b=(0,g.yC)(),{entry:c,loading:f,refresh:i}=(0,h.O4)(a),{enrichmentStatus:l,refresh:p}=(0,h.hh)(),[q,t]=(0,e.useState)(!1),[u,v]=(0,e.useState)(null);(0,e.useRef)(null);let w=(0,e.useCallback)(async()=>{if(!q){t(!0),v(null);try{await (0,h.W7)(b,a),p()}catch(a){v(a instanceof Error?a.message:"Enrichment failed"),t(!1)}}},[b,a,q,p]);if(f)return(0,d.jsx)(k.G,{rows:4});if(!c)return(0,d.jsxs)("div",{className:"flex h-full flex-col items-center justify-center text-center",children:[(0,d.jsx)("svg",{className:"h-10 w-10 text-gray-700",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})}),(0,d.jsx)("p",{className:"mt-3 text-sm text-gray-500",children:"Entry not found"}),(0,d.jsxs)("p",{className:"mt-1 text-xs text-gray-600",children:["Could not load entry for SHA ",a.slice(0,8),"."]})]});let x=c.sha.slice(0,8);return(0,d.jsxs)("div",{className:"flex flex-col h-full min-h-0 overflow-y-auto",children:[(0,d.jsxs)("div",{className:"shrink-0",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"font-mono text-sm font-medium text-amber-400",children:x}),(0,d.jsx)(o,{entry:c})]}),c.subject&&(0,d.jsx)("p",{className:"mt-1.5 text-sm text-gray-200",children:c.subject})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[c.hasTranscript&&(0,d.jsxs)(j(),{href:`/history/${a}/transcript`,className:"inline-flex items-center gap-1.5 rounded-lg border border-white/[0.08] bg-surface-800 px-2.5 py-1.5 text-[11px] font-medium text-gray-300 transition-colors hover:bg-surface-750 hover:text-white",children:[(0,d.jsx)("svg",{className:"h-3 w-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})}),"Full Transcript"]}),!c.hasEnrichment&&(0,d.jsx)("button",{onClick:()=>void w(),disabled:q,className:`inline-flex items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-[11px] font-semibold text-white transition-colors disabled:cursor-not-allowed ${q?"bg-primary-500/60":"bg-primary-500 hover:bg-primary-600"}`,children:q?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"h-3 w-3 animate-spin rounded-full border-2 border-white border-t-transparent"}),l?.status==="enriching"&&l.total>0?`${l.completed}/${l.total}`:"Enriching..."]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("svg",{className:"h-3 w-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.455 2.456L21.75 6l-1.036.259a3.375 3.375 0 0 0-2.455 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"})}),"Enrich with AI"]})})]})]}),u&&(0,d.jsx)("div",{className:"mt-3 rounded-lg border border-red-500/20 bg-red-500/[0.06] px-3 py-2 text-xs text-red-400",children:u})]}),(0,d.jsxs)("div",{className:"mt-4 grid grid-cols-2 gap-x-4 gap-y-1 text-xs shrink-0",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-gray-600",children:"Date "}),(0,d.jsx)("span",{className:"text-gray-300",children:function(a){let b=new Date(a);return isNaN(b.getTime())?a:b.toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"})}(c.date)})]}),null!=c.filesChanged&&c.filesChanged>0&&(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-gray-600",children:"Files "}),(0,d.jsxs)("span",{className:"text-gray-300",children:[c.filesChanged," changed",null!=c.insertions&&(0,d.jsxs)("span",{className:"ml-1.5 text-emerald-400",children:["+",c.insertions]}),null!=c.deletions&&(0,d.jsxs)("span",{className:"ml-1 text-red-400",children:["-",c.deletions]})]})]}),c.duration&&(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-gray-600",children:"Duration "}),(0,d.jsx)("span",{className:"text-gray-300",children:c.duration})]}),c.branch&&(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-gray-600",children:"Branch "}),(0,d.jsx)("span",{className:"font-mono text-gray-300",children:c.branch})]}),c.authorName&&(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-gray-600",children:"Author "}),(0,d.jsx)("span",{className:"text-gray-300",children:c.authorName})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-gray-600",children:"SHA "}),(0,d.jsx)("span",{className:"font-mono text-gray-400",children:c.sha})]})]}),c.tags&&c.tags.length>0&&(0,d.jsx)("div",{className:"mt-3 flex flex-wrap gap-1 shrink-0",children:c.tags.map(a=>(0,d.jsx)("span",{className:"rounded-full bg-surface-800 px-2 py-0.5 text-[10px] text-gray-500",children:a},a))}),c.enrichment&&(0,d.jsxs)("div",{className:"mt-4 rounded-lg border border-violet-500/10 bg-violet-500/[0.04] p-4 shrink-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,d.jsx)("svg",{className:"h-3.5 w-3.5 text-violet-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09Z"})}),(0,d.jsx)("h4",{className:"text-xs font-semibold text-violet-300",children:"AI Enrichment"}),c.enrichment.complexity&&(0,d.jsx)("span",{className:"rounded-full bg-violet-500/15 px-2 py-0.5 text-[10px] font-medium text-violet-400",children:c.enrichment.complexity})]}),c.enrichment.summary&&(0,d.jsx)("p",{className:"text-xs text-gray-300 leading-relaxed",children:c.enrichment.summary}),(c.enrichment.intent||c.enrichment.outcome)&&(0,d.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-3",children:[c.enrichment.intent&&(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"text-[10px] font-medium uppercase tracking-wider text-gray-600 mb-1",children:"Intent"}),(0,d.jsx)("p",{className:"text-xs text-gray-400",children:c.enrichment.intent})]}),c.enrichment.outcome&&(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"text-[10px] font-medium uppercase tracking-wider text-gray-600 mb-1",children:"Outcome"}),(0,d.jsx)("p",{className:"text-xs text-gray-400",children:c.enrichment.outcome})]})]}),c.enrichment.insights&&c.enrichment.insights.length>0&&(0,d.jsxs)("div",{className:"mt-3 space-y-1.5",children:[(0,d.jsx)("p",{className:"text-[10px] font-medium uppercase tracking-wider text-gray-600",children:"Insights"}),c.enrichment.insights.map((a,b)=>(0,d.jsxs)("div",{className:"flex items-start gap-2 text-xs",children:[(0,d.jsx)("span",{className:"mt-1 h-1 w-1 shrink-0 rounded-full bg-violet-400/50"}),(0,d.jsx)("span",{className:"text-gray-400",children:a})]},b))]}),c.enrichment.challenges&&c.enrichment.challenges.length>0&&(0,d.jsxs)("div",{className:"mt-3 space-y-1.5",children:[(0,d.jsx)("p",{className:"text-[10px] font-medium uppercase tracking-wider text-gray-600",children:"Challenges"}),c.enrichment.challenges.map((a,b)=>(0,d.jsxs)("div",{className:"flex items-start gap-2 text-xs",children:[(0,d.jsx)("span",{className:"mt-1 h-1 w-1 shrink-0 rounded-full bg-amber-400/50"}),(0,d.jsx)("span",{className:"text-gray-400",children:a})]},b))]}),c.enrichment.recommendations&&c.enrichment.recommendations.length>0&&(0,d.jsxs)("div",{className:"mt-3 space-y-1.5",children:[(0,d.jsx)("p",{className:"text-[10px] font-medium uppercase tracking-wider text-gray-600",children:"Recommendations"}),c.enrichment.recommendations.map((a,b)=>(0,d.jsxs)("div",{className:"flex items-start gap-2 text-xs",children:[(0,d.jsx)("span",{className:"mt-1 h-1 w-1 shrink-0 rounded-full bg-emerald-400/50"}),(0,d.jsx)("span",{className:"text-gray-400",children:a})]},b))]})]}),!c.enrichment&&c.summary&&(0,d.jsxs)("div",{className:"mt-4 rounded-lg border border-white/[0.04] bg-surface-800/30 p-4 shrink-0",children:[(0,d.jsx)("p",{className:"text-xs font-medium text-gray-500 mb-1.5",children:"Summary"}),(0,d.jsx)("p",{className:"text-xs text-gray-300 leading-relaxed",children:c.summary})]}),c.files&&c.files.length>0&&(0,d.jsxs)("div",{className:"mt-4 shrink-0",children:[(0,d.jsxs)("p",{className:"text-[10px] font-medium uppercase tracking-wider text-gray-600 mb-2",children:["Files Changed (",c.files.length,")"]}),(0,d.jsx)("div",{className:"rounded-lg border border-white/[0.04] bg-surface-800/30 overflow-hidden divide-y divide-white/[0.03]",children:c.files.map(a=>{let b=m[a.status]??"bg-gray-500/15 text-gray-400",c="number"==typeof a.additions||"number"==typeof a.deletions,e=a.additions??0,f=a.deletions??0,g=e+f,h=Math.min(g,30),i=g>0?Math.round(e/g*h):0;return(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5",children:[(0,d.jsx)("span",{className:`inline-flex w-5 items-center justify-center rounded px-0.5 py-px text-[9px] font-medium ${b}`,children:a.status}),(0,d.jsx)("span",{className:"truncate font-mono text-[11px] text-gray-400 flex-1 min-w-0",title:a.oldPath?`${a.oldPath} → ${a.path}`:a.path,children:a.oldPath?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"text-gray-600",children:a.oldPath}),(0,d.jsx)("span",{className:"text-gray-600",children:" → "}),a.path]}):a.path}),c&&(0,d.jsxs)("span",{className:"ml-auto flex items-center gap-1.5 shrink-0",children:[e>0&&(0,d.jsxs)("span",{className:"text-[10px] font-medium text-emerald-400",children:["+",e]}),f>0&&(0,d.jsxs)("span",{className:"text-[10px] font-medium text-red-400",children:["-",f]}),g>0&&(0,d.jsxs)("span",{className:"inline-flex gap-px",children:[Array.from({length:i},(a,b)=>(0,d.jsx)("span",{className:"inline-block h-2 w-[3px] rounded-[1px] bg-emerald-500/70"},`a${b}`)),Array.from({length:h-i},(a,b)=>(0,d.jsx)("span",{className:"inline-block h-2 w-[3px] rounded-[1px] bg-red-500/70"},`d${b}`))]})]}),!c&&(0,d.jsx)("span",{className:"ml-auto shrink-0 text-[9px] text-gray-600",children:n[a.status]??a.status})]},a.path)})})]}),c.reviewPlans&&c.reviewPlans.length>0&&(0,d.jsxs)("div",{className:"mt-4 shrink-0",children:[(0,d.jsxs)("p",{className:"text-[10px] font-medium uppercase tracking-wider text-gray-600 mb-2",children:["Review Plans (",c.reviewPlans.length,")"]}),(0,d.jsx)("div",{className:"space-y-2",children:c.reviewPlans.map((a,b)=>(0,d.jsx)(s,{plan:a},a.slug||b))})]}),c.hasTranscript&&(0,d.jsxs)("div",{className:"mt-4 shrink-0",children:[(0,d.jsx)(r,{sha:a}),(0,d.jsx)("div",{className:"mt-2 text-right",children:(0,d.jsx)(j(),{href:`/history/${a}/transcript`,className:"text-[10px] text-primary-400 hover:text-primary-300 transition-colors",children:"Open full transcript page"})})]})]})}var u=c(92232);function v({onInitialized:a}){let b=(0,g.yC)(),[c,f]=(0,e.useState)(!1),[i,j]=(0,e.useState)(!1),[k,l]=(0,e.useState)(null),m=(0,e.useCallback)(async()=>{j(!0),l(null);try{await (0,h.xy)(b,{collectReviewPlans:c}),a()}catch(a){l(a instanceof Error?a.message:"Failed to initialize history")}finally{j(!1)}},[b,c,a]);return(0,d.jsx)("div",{className:"flex h-[calc(100vh-120px)] items-center justify-center",children:(0,d.jsxs)("div",{className:"w-full max-w-md text-center",children:[(0,d.jsx)("div",{className:"mx-auto flex h-16 w-16 items-center justify-center rounded-2xl bg-surface-900 border border-white/[0.06]",children:(0,d.jsx)("svg",{className:"h-8 w-8 text-primary-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})})}),(0,d.jsx)("h2",{className:"mt-5 text-lg font-semibold text-white",children:"Initialize History"}),(0,d.jsx)("p",{className:"mt-2 text-sm text-gray-400 max-w-sm mx-auto",children:"Set up the shadow branch to track your coding session history. This creates a dedicated git branch for structured records of each session."}),(0,d.jsx)("div",{className:"mt-6 flex items-center justify-center gap-2",children:(0,d.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,d.jsx)("input",{type:"checkbox",checked:c,onChange:a=>f(a.target.checked),className:"h-3.5 w-3.5 rounded border-white/20 bg-surface-800 text-primary-500 focus:ring-primary-500/30 focus:ring-offset-0"}),(0,d.jsx)("span",{className:"text-xs text-gray-400",children:"Collect review plans"})]})}),k&&(0,d.jsx)("div",{className:"mt-4 rounded-lg border border-red-500/20 bg-red-500/[0.06] px-4 py-2 text-xs text-red-400",children:k}),(0,d.jsxs)("button",{onClick:()=>void m(),disabled:i,className:"mt-5 inline-flex items-center gap-2 rounded-lg bg-primary-500 px-5 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-primary-600 disabled:cursor-not-allowed disabled:opacity-50",children:[i?(0,d.jsx)("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-white border-t-transparent"}):(0,d.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"})}),"Initialize History"]})]})})}function w({onBackfilled:a}){let b=(0,g.yC)(),[c,f]=(0,e.useState)(!1),[i,j]=(0,e.useState)(null),[k,l]=(0,e.useState)(null),m=(0,e.useCallback)(async()=>{f(!0),l(null);try{let c=await (0,h.RK)(b,{limit:50});j({captured:c.captured,skipped:c.skipped}),c.captured>0&&a()}catch(a){l(a instanceof Error?a.message:"Backfill failed")}finally{f(!1)}},[b,a]);return(0,d.jsx)("div",{className:"flex h-[calc(100vh-120px)] items-center justify-center",children:(0,d.jsxs)("div",{className:"w-full max-w-md text-center",children:[(0,d.jsx)(u.p,{title:"No history entries yet",description:"History is initialized but empty. Backfill from recent commits to populate your timeline.",icon:(0,d.jsx)("svg",{className:"h-10 w-10 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})})}),k&&(0,d.jsx)("div",{className:"mt-4 rounded-lg border border-red-500/20 bg-red-500/[0.06] px-4 py-2 text-xs text-red-400",children:k}),i&&(0,d.jsxs)("div",{className:"mt-4 rounded-lg border border-emerald-500/20 bg-emerald-500/[0.06] px-4 py-2 text-xs text-emerald-400",children:["Captured ",i.captured," entries, skipped ",i.skipped,"."]}),(0,d.jsxs)("button",{onClick:()=>void m(),disabled:c,className:"mt-5 inline-flex items-center gap-2 rounded-lg bg-primary-500 px-5 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-primary-600 disabled:cursor-not-allowed disabled:opacity-50",children:[c?(0,d.jsx)("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-white border-t-transparent"}):(0,d.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12M12 16.5V3"})}),"Backfill Recent Commits"]})]})})}function x({entry:a,selected:b,onSelect:c}){return(0,d.jsxs)("button",{onClick:c,className:`w-full text-left rounded-lg px-3 py-2.5 transition-colors ${b?"bg-primary-500/10 border border-primary-500/30":"border border-transparent hover:bg-white/[0.03]"}`,children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,d.jsx)("span",{className:"font-mono text-xs text-amber-400 shrink-0",children:a.shortSha||a.sha.slice(0,7)}),(0,d.jsx)("span",{className:"text-[10px] text-gray-600 shrink-0",children:function(a){let b=new Date(a);return isNaN(b.getTime())?a:b.toLocaleDateString(void 0,{month:"short",day:"numeric"})}(a.date)})]}),a.filesChanged>0&&(0,d.jsxs)("span",{className:"text-[10px] text-gray-600 shrink-0",children:[a.filesChanged,"f"]})]}),(0,d.jsx)("p",{className:"mt-1 text-xs text-gray-300 truncate",children:a.subject||"No subject"}),(0,d.jsxs)("div",{className:"mt-1.5 flex flex-wrap gap-1",children:[a.hasSession&&(0,d.jsx)("span",{className:"rounded-full bg-cyan-500/15 px-1.5 py-px text-[9px] font-medium text-cyan-400",children:"Session"}),a.hasEnrichment&&(0,d.jsx)("span",{className:"rounded-full bg-violet-500/15 px-1.5 py-px text-[9px] font-medium text-violet-400",children:"AI"}),a.hasTranscript&&(0,d.jsx)("span",{className:"rounded-full bg-emerald-500/15 px-1.5 py-px text-[9px] font-medium text-emerald-400",children:"Transcript"}),a.hasReviewPlans&&(0,d.jsx)("span",{className:"rounded-full bg-amber-500/15 px-1.5 py-px text-[9px] font-medium text-amber-400",children:"Review"})]})]})}function y({refreshKey:a}){let b=(0,g.yC)(),{enrichmentStatus:c,refresh:e}=(0,h.hh)();if(!c||"idle"===c.status)return null;let f=async()=>{await (0,h.J)(b),e()};if("enriching"===c.status){let a=c.total>0?Math.round(c.completed/c.total*100):0;return(0,d.jsxs)("div",{className:"rounded-lg border border-primary-500/20 bg-primary-500/[0.06] p-3",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"h-3.5 w-3.5 animate-spin rounded-full border-2 border-primary-500 border-t-transparent"}),(0,d.jsx)("span",{className:"text-xs font-medium text-primary-400",children:"Enriching..."})]}),(0,d.jsxs)("span",{className:"text-[10px] text-gray-500",children:[c.completed," / ",c.total," (",a,"%)"]})]}),c.total>0&&(0,d.jsx)("div",{className:"mt-2 h-1.5 w-full overflow-hidden rounded-full bg-surface-800",children:(0,d.jsx)("div",{className:"h-full rounded-full bg-primary-500 transition-all duration-500",style:{width:`${a}%`}})})]})}return"done"===c.status?(0,d.jsxs)("div",{className:"flex items-center justify-between rounded-lg border border-emerald-500/20 bg-emerald-500/[0.06] px-3 py-2",children:[(0,d.jsxs)("span",{className:"text-xs text-emerald-400",children:["Enrichment complete. ",c.completed," enriched",c.failed>0&&`, ${c.failed} failed`,"."]}),(0,d.jsx)("button",{onClick:()=>void f(),className:"text-[10px] text-emerald-400/70 hover:text-emerald-400 transition-colors",children:"Dismiss"})]}):"error"===c.status?(0,d.jsxs)("div",{className:"flex items-center justify-between rounded-lg border border-red-500/20 bg-red-500/[0.06] px-3 py-2",children:[(0,d.jsxs)("span",{className:"text-xs text-red-400",children:["Enrichment failed: ",c.error??"Unknown error"]}),(0,d.jsx)("button",{onClick:()=>void f(),className:"text-[10px] text-red-400/70 hover:text-red-400 transition-colors",children:"Dismiss"})]}):null}function z(){let a=(0,g.yC)(),b=(0,f.useRouter)(),c=(0,f.useSearchParams)(),i=c?c.get("sha"):null,{stats:j}=(0,h.zg)(),[l,m]=(0,e.useState)(null),{entries:n,loading:o,error:p,refresh:q}=(0,h._q)(l??void 0),[r,s]=(0,e.useState)(!1),[u,v]=(0,e.useState)(!1),[w,z]=(0,e.useState)(!1),[A,B]=(0,e.useState)(0),C=n.length,D=j?.dateRange?.from&&j?.dateRange?.to?function(a,b){let c=new Date(a),d=new Date(b);if(isNaN(c.getTime())||isNaN(d.getTime()))return"";let e={month:"short",day:"numeric",year:"numeric"};return`${c.toLocaleDateString(void 0,e)} - ${d.toLocaleDateString(void 0,e)}`}(j.dateRange.from,j.dateRange.to):null,E=j?Math.round(j.enrichmentCoverage):null,F=j?Math.round(10*j.avgFilesChanged)/10:null,G=j?.tagCounts??{},H=(0,e.useMemo)(()=>Object.entries(G).sort(([,a],[,b])=>b-a).map(([a])=>a),[G]),[I,J]=(0,e.useState)(!1),K=(0,e.useCallback)(a=>{b.push(`/history?sha=${encodeURIComponent(a)}`,{scroll:!1})},[b]),L=(0,e.useCallback)(async()=>{s(!0);try{await (0,h.RK)(a,{limit:50}),q()}catch{}finally{s(!1)}},[a,q]),M=(0,e.useCallback)(async()=>{v(!0);try{let b=await (0,h.bj)(a),c=new Blob([JSON.stringify(b,null,2)],{type:"application/json"}),d=URL.createObjectURL(c),e=document.createElement("a");e.href=d,e.download="ulpi-history-export.json",e.click(),URL.revokeObjectURL(d)}catch{}finally{v(!1)}},[a]),N=(0,e.useCallback)(async()=>{z(!0);try{await (0,h.W7)(a),B(a=>a+1)}catch{}finally{z(!1)}},[a]),O=(0,e.useCallback)(()=>{J(!1),b.push("/history",{scroll:!1})},[b]);return(0,d.jsxs)("div",{className:"flex flex-col h-[calc(100vh-32px)]",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-4 shrink-0",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[I&&i&&(0,d.jsx)("button",{onClick:O,className:"lg:hidden rounded-lg p-1.5 text-gray-500 transition-colors hover:bg-white/[0.06] hover:text-gray-300",children:(0,d.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})})}),(0,d.jsx)("h1",{className:"text-xl font-semibold text-white",children:"History"}),(0,d.jsxs)("span",{className:"text-xs text-gray-600",children:[C," entr",1===C?"y":"ies"]})]}),D&&(0,d.jsx)("p",{className:"mt-1 text-xs text-gray-500",children:D})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,d.jsxs)("button",{onClick:()=>void L(),disabled:r,className:"inline-flex items-center gap-1.5 rounded-lg border border-white/[0.08] bg-surface-900 px-3 py-2 text-xs font-medium text-gray-300 transition-colors hover:bg-surface-800 hover:text-white disabled:cursor-not-allowed disabled:opacity-50",children:[r?(0,d.jsx)("span",{className:"h-3.5 w-3.5 animate-spin rounded-full border-2 border-primary-500 border-t-transparent"}):(0,d.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12M12 16.5V3"})}),"Backfill"]}),(0,d.jsxs)("button",{onClick:()=>void M(),disabled:u,className:"inline-flex items-center gap-1.5 rounded-lg border border-white/[0.08] bg-surface-900 px-3 py-2 text-xs font-medium text-gray-300 transition-colors hover:bg-surface-800 hover:text-white disabled:cursor-not-allowed disabled:opacity-50",children:[u?(0,d.jsx)("span",{className:"h-3.5 w-3.5 animate-spin rounded-full border-2 border-primary-500 border-t-transparent"}):(0,d.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"})}),"Export"]})]})]}),(0,d.jsx)("div",{className:"mt-3 shrink-0",children:(0,d.jsx)(y,{refreshKey:A})}),(0,d.jsxs)("div",{className:"flex gap-4 flex-1 min-h-0 mt-4",children:[(0,d.jsxs)("div",{className:`w-80 min-w-[280px] max-w-[360px] shrink-0 flex flex-col rounded-xl border border-white/[0.06] bg-surface-900 overflow-hidden ${I&&i?"hidden lg:flex":"flex"}`,children:[(0,d.jsxs)("div",{className:"grid grid-cols-3 gap-1.5 p-3 shrink-0",children:[(0,d.jsxs)("div",{className:"rounded-lg border border-white/[0.04] bg-surface-800/50 p-2 text-center",children:[(0,d.jsx)("p",{className:"text-sm font-semibold text-white",children:C}),(0,d.jsx)("p",{className:"text-[9px] text-gray-600",children:"Entries"})]}),(0,d.jsxs)("button",{onClick:()=>void N(),disabled:w,className:`rounded-lg border p-2 text-center transition-colors group ${w?"border-primary-500/20 bg-primary-500/[0.06]":"border-white/[0.04] bg-surface-800/50 hover:bg-surface-800"}`,title:"Enrich all entries with AI",children:[w?(0,d.jsx)("span",{className:"flex items-center justify-center h-5",children:(0,d.jsx)("span",{className:"h-3.5 w-3.5 animate-spin rounded-full border-2 border-primary-500 border-t-transparent"})}):(0,d.jsx)("p",{className:"text-sm font-semibold text-white",children:null!=E?`${E}%`:"--"}),(0,d.jsx)("p",{className:`text-[9px] transition-colors ${w?"text-primary-400":"text-gray-600 group-hover:text-violet-400"}`,children:w?"Enriching...":"AI Enriched"})]}),(0,d.jsxs)("div",{className:"rounded-lg border border-white/[0.04] bg-surface-800/50 p-2 text-center",children:[(0,d.jsx)("p",{className:"text-sm font-semibold text-white",children:F??"--"}),(0,d.jsx)("p",{className:"text-[9px] text-gray-600",children:"Avg Files"})]})]}),H.length>0&&(0,d.jsxs)("div",{className:"flex flex-wrap gap-1 px-3 pb-2 shrink-0",children:[(0,d.jsx)("button",{onClick:()=>m(null),className:`rounded-full px-2 py-0.5 text-[10px] font-medium transition-colors ${null===l?"bg-primary-500/15 text-primary-400":"bg-surface-800 text-gray-500 hover:text-gray-300"}`,children:"All"}),H.slice(0,10).map(a=>(0,d.jsxs)("button",{onClick:()=>m(l===a?null:a),className:`rounded-full px-2 py-0.5 text-[10px] font-medium transition-colors ${l===a?"bg-primary-500/15 text-primary-400":"bg-surface-800 text-gray-500 hover:text-gray-300"}`,children:[a," ",(0,d.jsx)("span",{className:"text-gray-600",children:G[a]})]},a))]}),(0,d.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto px-2 pb-2",children:o?(0,d.jsx)(k.G,{rows:6}):p?(0,d.jsx)("div",{className:"p-3",children:(0,d.jsx)("p",{className:"text-xs text-red-400",children:p})}):0===n.length?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,d.jsx)("p",{className:"text-sm text-gray-500",children:"No entries found"}),l&&(0,d.jsx)("button",{onClick:()=>m(null),className:"mt-2 text-xs text-primary-400 hover:text-primary-300",children:"Clear filter"})]}):(0,d.jsx)("div",{className:"space-y-0.5",children:n.map(a=>(0,d.jsx)(x,{entry:a,selected:a.sha===i,onSelect:()=>K(a.sha)},a.sha))})})]}),(0,d.jsx)("div",{className:`flex-1 min-w-0 rounded-xl border border-white/[0.06] bg-surface-900 p-5 overflow-hidden flex flex-col ${I&&i?"flex":"hidden lg:flex"}`,children:i?(0,d.jsx)(t,{sha:i}):(0,d.jsxs)("div",{className:"flex h-full flex-col items-center justify-center text-center",children:[(0,d.jsx)("svg",{className:"h-10 w-10 text-gray-700",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})}),(0,d.jsx)("p",{className:"mt-3 text-sm text-gray-500",children:"Select an entry to view details"}),(0,d.jsx)("p",{className:"mt-1 text-xs text-gray-600",children:"Click an entry on the left to view its full commit details, enrichment data, and transcript."})]})})]})]})}function A(){let{status:a,loading:b,refresh:c}=(0,h.uX)(),[f,g]=(0,e.useState)(null);if(b)return(0,d.jsxs)("div",{className:"space-y-6",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h1",{className:"text-xl font-semibold text-white",children:"History"}),(0,d.jsx)("p",{className:"mt-1 text-sm text-gray-400",children:"Shadow branch timeline of coding sessions."})]}),(0,d.jsx)(k.G,{rows:5})]});if(!a)return(0,d.jsxs)("div",{className:"space-y-6",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h1",{className:"text-xl font-semibold text-white",children:"History"}),(0,d.jsx)("p",{className:"mt-1 text-sm text-gray-400",children:"Shadow branch timeline of coding sessions."})]}),(0,d.jsx)("div",{className:"rounded-xl border border-amber-500/20 bg-amber-500/[0.06] p-4",children:(0,d.jsx)("p",{className:"text-sm text-amber-400",children:"Could not connect to the History API. Make sure the ULPI server is running."})})]});let i=f??(a.exists?0===a.totalEntries?"empty":"active":"init");return"init"===i?(0,d.jsx)(v,{onInitialized:()=>{g("empty"),c()}}):"empty"===i?(0,d.jsx)(w,{onBackfilled:()=>{g("active"),c()}}):(0,d.jsx)(z,{})}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},24620:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(48226),e=c(24085),f=c(69339),g=c(93292),h=c(11110),i=c(4120),j=c(60247),k=c(72548),l=c(74570),m=c(84880),n=c(38698),o=c(6085),p=c(35157),q=c(97854),r=c(261),s=c(39965),t=c(25794),u=c(26713),v=c(39172),w=c(5797),x=c(97769),y=c(7054),z=c(84002),A=c(3558),B=c(86439),C=c(2714),D=c.n(C),E=c(56130),F=c(72907),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["(dashboard)",{children:["history",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,39536)),"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/history/page.tsx"]}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,45460)),"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/layout.tsx"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,40428,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,22613,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,34312,23)),"next/dist/client/components/builtin/unauthorized.js"]}]},{layout:[()=>Promise.resolve().then(c.bind(c,82648)),"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/layout.tsx"],error:[()=>Promise.resolve().then(c.bind(c,10538)),"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/error.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,2714,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,40428,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,22613,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,34312,23)),"next/dist/client/components/builtin/unauthorized.js"]}]}.children,I=["/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/history/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/(dashboard)/history/page",pathname:"/history",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/(dashboard)/history/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
1
+ (()=>{var a={};a.id=3845,a.ids=[3845],a.modules={261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},11340:(a,b,c)=>{Promise.resolve().then(c.bind(c,39536))},12481:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>A});var d=c(82164),e=c(54509),f=c(26170),g=c(73754),h=c(70727),i=c(5543),j=c.n(i),k=c(59440),l=c(77128);let m={A:"bg-emerald-500/15 text-emerald-400",M:"bg-blue-500/15 text-blue-400",D:"bg-red-500/15 text-red-400",R:"bg-amber-500/15 text-amber-400",C:"bg-violet-500/15 text-violet-400"},n={A:"Added",M:"Modified",D:"Deleted",R:"Renamed",C:"Copied"};function o({entry:a}){return(0,d.jsxs)("div",{className:"flex flex-wrap gap-1.5",children:[a.hasSession&&(0,d.jsx)("span",{className:"inline-flex items-center rounded-full bg-cyan-500/15 px-2 py-0.5 text-[10px] font-medium text-cyan-400",children:"Session"}),a.hasEnrichment&&(0,d.jsx)("span",{className:"inline-flex items-center rounded-full bg-violet-500/15 px-2 py-0.5 text-[10px] font-medium text-violet-400",children:"AI"}),a.hasTranscript&&(0,d.jsx)("span",{className:"inline-flex items-center rounded-full bg-emerald-500/15 px-2 py-0.5 text-[10px] font-medium text-emerald-400",children:"Transcript"}),a.hasReviewPlans&&(0,d.jsx)("span",{className:"inline-flex items-center rounded-full bg-amber-500/15 px-2 py-0.5 text-[10px] font-medium text-amber-400",children:"Review"})]})}function p({turn:a}){let[b,c]=(0,e.useState)(!1),f="tool_use"===a.type?a.toolInput:a.content,g=null!=f&&f.length>2e3,h=g?f.slice(0,2e3):f;return(0,d.jsxs)("div",{children:[(0,d.jsxs)("button",{onClick:()=>c(!b),className:"inline-flex items-center gap-1 rounded-md px-1.5 py-0.5 text-[10px] font-medium text-cyan-400 bg-cyan-500/10 border border-cyan-500/15 transition-colors hover:bg-cyan-500/15",children:[(0,d.jsx)("svg",{className:"h-2.5 w-2.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.75 7.5 3 2.25-3 2.25m4.5 0h3"})}),"tool_use"===a.type?a.toolName:"Result",(0,d.jsx)("svg",{className:`h-2.5 w-2.5 text-cyan-500/60 transition-transform ${b?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})})]}),b&&h&&(0,d.jsxs)("pre",{className:"mt-1 overflow-x-auto whitespace-pre-wrap font-mono text-[10px] text-gray-500 max-h-24 overflow-y-auto rounded border border-white/[0.03] bg-surface-950 p-2",children:[h,g&&"\n... (truncated)"]})]})}function q({turn:a}){if("tool_use"===a.type||"tool_result"===a.type)return(0,d.jsx)(p,{turn:a});let b="human"===a.type;return(0,d.jsxs)("div",{className:`rounded-lg border-l-2 px-3 py-2 ${b?"border-l-primary-500 bg-surface-800/40 border border-l-2 border-white/[0.03]":"border-l-violet-500 bg-surface-900/60 border border-l-2 border-white/[0.04]"}`,children:[(0,d.jsx)("span",{className:`text-[10px] font-medium ${b?"text-primary-400":"text-violet-400"}`,children:b?"You":"Assistant"}),(0,d.jsx)("p",{className:"mt-0.5 whitespace-pre-wrap text-[10px] text-gray-400 leading-relaxed max-h-20 overflow-y-auto",children:a.content.length>500?a.content.slice(0,500)+"...":a.content})]})}function r({sha:a}){let{transcript:b,loading:c}=(0,h.oI)(a),[f,g]=(0,e.useState)(!1);if(c)return(0,d.jsx)("div",{className:"rounded-lg border border-white/[0.04] bg-surface-800/50 p-3",children:(0,d.jsxs)("div",{className:"flex items-center gap-2 text-xs text-gray-500",children:[(0,d.jsx)("span",{className:"h-3 w-3 animate-spin rounded-full border border-primary-500 border-t-transparent"}),"Loading transcript..."]})});if(!b)return null;let i=(0,l.K9)(b);if(!i||0===i.length)return null;let k=i.filter(a=>"human"===a.type).length,m=i.filter(a=>"assistant"===a.type).length,n=i.filter(a=>"tool_use"===a.type||"tool_result"===a.type).length;return(0,d.jsxs)("div",{className:"rounded-lg border border-white/[0.04] bg-surface-800/30 overflow-hidden",children:[(0,d.jsxs)("button",{onClick:()=>g(!f),className:"flex w-full items-center justify-between px-4 py-3 text-left transition-colors hover:bg-white/[0.02]",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("svg",{className:"h-3.5 w-3.5 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})}),(0,d.jsx)("span",{className:"text-xs font-medium text-gray-300",children:"Transcript"}),(0,d.jsxs)("span",{className:"text-[10px] text-gray-600",children:[i.length," turn",1!==i.length?"s":""," ","(",k," user, ",m," assistant, ",n," tool)"]})]}),(0,d.jsx)("svg",{className:`h-3.5 w-3.5 text-gray-600 transition-transform ${f?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})})]}),f&&(0,d.jsxs)("div",{className:"border-t border-white/[0.04] px-4 py-3 max-h-96 overflow-y-auto space-y-1.5",children:[i.slice(0,50).map((a,b)=>(0,d.jsx)(q,{turn:a},b)),i.length>50&&(0,d.jsxs)("p",{className:"py-2 text-center text-[10px] text-gray-600",children:["Showing 50 of ",i.length," turns."," ",(0,d.jsx)(j(),{href:`/history/${a}/transcript`,className:"text-primary-400 hover:text-primary-300",children:"View full transcript"})]})]})]})}function s({plan:a}){let[b,c]=(0,e.useState)(!1),f=a.decision?.behavior,g="approve"===f?"approved":"deny"===f?"denied":null;return(0,d.jsxs)("div",{className:"rounded-lg border border-white/[0.04] bg-surface-800/30 overflow-hidden",children:[(0,d.jsxs)("button",{onClick:()=>c(!b),className:"flex w-full items-center justify-between px-3 py-2.5 text-left transition-colors hover:bg-white/[0.02]",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,d.jsx)("svg",{className:"h-3.5 w-3.5 text-amber-400 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25Z"})}),(0,d.jsx)("span",{className:"text-xs font-medium text-gray-300 truncate",children:a.title||a.slug||"Review Plan"}),g&&(0,d.jsx)("span",{className:`rounded-full px-1.5 py-px text-[9px] font-medium ${"approve"===f?"text-emerald-400 bg-emerald-500/15":"deny"===f?"text-red-400 bg-red-500/15":"text-amber-400 bg-amber-500/15"}`,children:g})]}),(0,d.jsx)("svg",{className:`h-3 w-3 text-gray-600 transition-transform shrink-0 ${b?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})})]}),b&&a.plan&&(0,d.jsx)("div",{className:"border-t border-white/[0.04] px-3 py-3 max-h-64 overflow-y-auto",children:(0,d.jsx)("pre",{className:"whitespace-pre-wrap text-[11px] text-gray-400 leading-relaxed font-mono",children:a.plan})})]})}function t({sha:a}){let b=(0,g.yC)(),{entry:c,loading:f,refresh:i}=(0,h.O4)(a),{enrichmentStatus:l,refresh:p}=(0,h.hh)(),[q,t]=(0,e.useState)(!1),[u,v]=(0,e.useState)(null);(0,e.useRef)(null);let w=(0,e.useCallback)(async()=>{if(!q){t(!0),v(null);try{await (0,h.W7)(b,a),p()}catch(a){v(a instanceof Error?a.message:"Enrichment failed"),t(!1)}}},[b,a,q,p]);if(f)return(0,d.jsx)(k.G,{rows:4});if(!c)return(0,d.jsxs)("div",{className:"flex h-full flex-col items-center justify-center text-center",children:[(0,d.jsx)("svg",{className:"h-10 w-10 text-gray-700",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})}),(0,d.jsx)("p",{className:"mt-3 text-sm text-gray-500",children:"Entry not found"}),(0,d.jsxs)("p",{className:"mt-1 text-xs text-gray-600",children:["Could not load entry for SHA ",a.slice(0,8),"."]})]});let x=c.sha.slice(0,8);return(0,d.jsxs)("div",{className:"flex flex-col h-full min-h-0 overflow-y-auto",children:[(0,d.jsxs)("div",{className:"shrink-0",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,d.jsxs)("div",{className:"min-w-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"font-mono text-sm font-medium text-amber-400",children:x}),(0,d.jsx)(o,{entry:c})]}),c.subject&&(0,d.jsx)("p",{className:"mt-1.5 text-sm text-gray-200",children:c.subject})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[c.hasTranscript&&(0,d.jsxs)(j(),{href:`/history/${a}/transcript`,className:"inline-flex items-center gap-1.5 rounded-lg border border-white/[0.08] bg-surface-800 px-2.5 py-1.5 text-[11px] font-medium text-gray-300 transition-colors hover:bg-surface-750 hover:text-white",children:[(0,d.jsx)("svg",{className:"h-3 w-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})}),"Full Transcript"]}),!c.hasEnrichment&&(0,d.jsx)("button",{onClick:()=>void w(),disabled:q,className:`inline-flex items-center gap-1.5 rounded-lg px-2.5 py-1.5 text-[11px] font-semibold text-white transition-colors disabled:cursor-not-allowed ${q?"bg-primary-500/60":"bg-primary-500 hover:bg-primary-600"}`,children:q?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"h-3 w-3 animate-spin rounded-full border-2 border-white border-t-transparent"}),l?.status==="enriching"&&l.total>0?`${l.completed}/${l.total}`:"Enriching..."]}):(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("svg",{className:"h-3 w-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.455 2.456L21.75 6l-1.036.259a3.375 3.375 0 0 0-2.455 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"})}),"Enrich with AI"]})})]})]}),u&&(0,d.jsx)("div",{className:"mt-3 rounded-lg border border-red-500/20 bg-red-500/[0.06] px-3 py-2 text-xs text-red-400",children:u})]}),(0,d.jsxs)("div",{className:"mt-4 grid grid-cols-2 gap-x-4 gap-y-1 text-xs shrink-0",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-gray-600",children:"Date "}),(0,d.jsx)("span",{className:"text-gray-300",children:function(a){let b=new Date(a);return isNaN(b.getTime())?a:b.toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"})}(c.date)})]}),null!=c.filesChanged&&c.filesChanged>0&&(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-gray-600",children:"Files "}),(0,d.jsxs)("span",{className:"text-gray-300",children:[c.filesChanged," changed",null!=c.insertions&&(0,d.jsxs)("span",{className:"ml-1.5 text-emerald-400",children:["+",c.insertions]}),null!=c.deletions&&(0,d.jsxs)("span",{className:"ml-1 text-red-400",children:["-",c.deletions]})]})]}),c.duration&&(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-gray-600",children:"Duration "}),(0,d.jsx)("span",{className:"text-gray-300",children:c.duration})]}),c.branch&&(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-gray-600",children:"Branch "}),(0,d.jsx)("span",{className:"font-mono text-gray-300",children:c.branch})]}),c.authorName&&(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-gray-600",children:"Author "}),(0,d.jsx)("span",{className:"text-gray-300",children:c.authorName})]}),(0,d.jsxs)("div",{children:[(0,d.jsx)("span",{className:"text-gray-600",children:"SHA "}),(0,d.jsx)("span",{className:"font-mono text-gray-400",children:c.sha})]})]}),c.tags&&c.tags.length>0&&(0,d.jsx)("div",{className:"mt-3 flex flex-wrap gap-1 shrink-0",children:c.tags.map(a=>(0,d.jsx)("span",{className:"rounded-full bg-surface-800 px-2 py-0.5 text-[10px] text-gray-500",children:a},a))}),c.enrichment&&(0,d.jsxs)("div",{className:"mt-4 rounded-lg border border-violet-500/10 bg-violet-500/[0.04] p-4 shrink-0",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,d.jsx)("svg",{className:"h-3.5 w-3.5 text-violet-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09Z"})}),(0,d.jsx)("h4",{className:"text-xs font-semibold text-violet-300",children:"AI Enrichment"}),c.enrichment.complexity&&(0,d.jsx)("span",{className:"rounded-full bg-violet-500/15 px-2 py-0.5 text-[10px] font-medium text-violet-400",children:c.enrichment.complexity})]}),c.enrichment.summary&&(0,d.jsx)("p",{className:"text-xs text-gray-300 leading-relaxed",children:c.enrichment.summary}),(c.enrichment.intent||c.enrichment.outcome)&&(0,d.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-3",children:[c.enrichment.intent&&(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"text-[10px] font-medium uppercase tracking-wider text-gray-600 mb-1",children:"Intent"}),(0,d.jsx)("p",{className:"text-xs text-gray-400",children:c.enrichment.intent})]}),c.enrichment.outcome&&(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"text-[10px] font-medium uppercase tracking-wider text-gray-600 mb-1",children:"Outcome"}),(0,d.jsx)("p",{className:"text-xs text-gray-400",children:c.enrichment.outcome})]})]}),c.enrichment.insights&&c.enrichment.insights.length>0&&(0,d.jsxs)("div",{className:"mt-3 space-y-1.5",children:[(0,d.jsx)("p",{className:"text-[10px] font-medium uppercase tracking-wider text-gray-600",children:"Insights"}),c.enrichment.insights.map((a,b)=>(0,d.jsxs)("div",{className:"flex items-start gap-2 text-xs",children:[(0,d.jsx)("span",{className:"mt-1 h-1 w-1 shrink-0 rounded-full bg-violet-400/50"}),(0,d.jsx)("span",{className:"text-gray-400",children:a})]},b))]}),c.enrichment.challenges&&c.enrichment.challenges.length>0&&(0,d.jsxs)("div",{className:"mt-3 space-y-1.5",children:[(0,d.jsx)("p",{className:"text-[10px] font-medium uppercase tracking-wider text-gray-600",children:"Challenges"}),c.enrichment.challenges.map((a,b)=>(0,d.jsxs)("div",{className:"flex items-start gap-2 text-xs",children:[(0,d.jsx)("span",{className:"mt-1 h-1 w-1 shrink-0 rounded-full bg-amber-400/50"}),(0,d.jsx)("span",{className:"text-gray-400",children:a})]},b))]}),c.enrichment.recommendations&&c.enrichment.recommendations.length>0&&(0,d.jsxs)("div",{className:"mt-3 space-y-1.5",children:[(0,d.jsx)("p",{className:"text-[10px] font-medium uppercase tracking-wider text-gray-600",children:"Recommendations"}),c.enrichment.recommendations.map((a,b)=>(0,d.jsxs)("div",{className:"flex items-start gap-2 text-xs",children:[(0,d.jsx)("span",{className:"mt-1 h-1 w-1 shrink-0 rounded-full bg-emerald-400/50"}),(0,d.jsx)("span",{className:"text-gray-400",children:a})]},b))]})]}),!c.enrichment&&c.summary&&(0,d.jsxs)("div",{className:"mt-4 rounded-lg border border-white/[0.04] bg-surface-800/30 p-4 shrink-0",children:[(0,d.jsx)("p",{className:"text-xs font-medium text-gray-500 mb-1.5",children:"Summary"}),(0,d.jsx)("p",{className:"text-xs text-gray-300 leading-relaxed",children:c.summary})]}),c.files&&c.files.length>0&&(0,d.jsxs)("div",{className:"mt-4 shrink-0",children:[(0,d.jsxs)("p",{className:"text-[10px] font-medium uppercase tracking-wider text-gray-600 mb-2",children:["Files Changed (",c.files.length,")"]}),(0,d.jsx)("div",{className:"rounded-lg border border-white/[0.04] bg-surface-800/30 overflow-hidden divide-y divide-white/[0.03]",children:c.files.map(a=>{let b=m[a.status]??"bg-gray-500/15 text-gray-400",c="number"==typeof a.additions||"number"==typeof a.deletions,e=a.additions??0,f=a.deletions??0,g=e+f,h=Math.min(g,30),i=g>0?Math.round(e/g*h):0;return(0,d.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5",children:[(0,d.jsx)("span",{className:`inline-flex w-5 items-center justify-center rounded px-0.5 py-px text-[9px] font-medium ${b}`,children:a.status}),(0,d.jsx)("span",{className:"truncate font-mono text-[11px] text-gray-400 flex-1 min-w-0",title:a.oldPath?`${a.oldPath} → ${a.path}`:a.path,children:a.oldPath?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:"text-gray-600",children:a.oldPath}),(0,d.jsx)("span",{className:"text-gray-600",children:" → "}),a.path]}):a.path}),c&&(0,d.jsxs)("span",{className:"ml-auto flex items-center gap-1.5 shrink-0",children:[e>0&&(0,d.jsxs)("span",{className:"text-[10px] font-medium text-emerald-400",children:["+",e]}),f>0&&(0,d.jsxs)("span",{className:"text-[10px] font-medium text-red-400",children:["-",f]}),g>0&&(0,d.jsxs)("span",{className:"inline-flex gap-px",children:[Array.from({length:i},(a,b)=>(0,d.jsx)("span",{className:"inline-block h-2 w-[3px] rounded-[1px] bg-emerald-500/70"},`a${b}`)),Array.from({length:h-i},(a,b)=>(0,d.jsx)("span",{className:"inline-block h-2 w-[3px] rounded-[1px] bg-red-500/70"},`d${b}`))]})]}),!c&&(0,d.jsx)("span",{className:"ml-auto shrink-0 text-[9px] text-gray-600",children:n[a.status]??a.status})]},a.path)})})]}),c.reviewPlans&&c.reviewPlans.length>0&&(0,d.jsxs)("div",{className:"mt-4 shrink-0",children:[(0,d.jsxs)("p",{className:"text-[10px] font-medium uppercase tracking-wider text-gray-600 mb-2",children:["Review Plans (",c.reviewPlans.length,")"]}),(0,d.jsx)("div",{className:"space-y-2",children:c.reviewPlans.map((a,b)=>(0,d.jsx)(s,{plan:a},a.slug||b))})]}),c.hasTranscript&&(0,d.jsxs)("div",{className:"mt-4 shrink-0",children:[(0,d.jsx)(r,{sha:a}),(0,d.jsx)("div",{className:"mt-2 text-right",children:(0,d.jsx)(j(),{href:`/history/${a}/transcript`,className:"text-[10px] text-primary-400 hover:text-primary-300 transition-colors",children:"Open full transcript page"})})]})]})}var u=c(92232);function v({onInitialized:a}){let b=(0,g.yC)(),[c,f]=(0,e.useState)(!1),[i,j]=(0,e.useState)(!1),[k,l]=(0,e.useState)(null),m=(0,e.useCallback)(async()=>{j(!0),l(null);try{await (0,h.xy)(b,{collectReviewPlans:c}),a()}catch(a){l(a instanceof Error?a.message:"Failed to initialize history")}finally{j(!1)}},[b,c,a]);return(0,d.jsx)("div",{className:"flex h-[calc(100vh-120px)] items-center justify-center",children:(0,d.jsxs)("div",{className:"w-full max-w-md text-center",children:[(0,d.jsx)("div",{className:"mx-auto flex h-16 w-16 items-center justify-center rounded-2xl bg-surface-900 border border-white/[0.06]",children:(0,d.jsx)("svg",{className:"h-8 w-8 text-primary-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})})}),(0,d.jsx)("h2",{className:"mt-5 text-lg font-semibold text-white",children:"Initialize History"}),(0,d.jsx)("p",{className:"mt-2 text-sm text-gray-400 max-w-sm mx-auto",children:"Set up the shadow branch to track your coding session history. This creates a dedicated git branch for structured records of each session."}),(0,d.jsx)("div",{className:"mt-6 flex items-center justify-center gap-2",children:(0,d.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[(0,d.jsx)("input",{type:"checkbox",checked:c,onChange:a=>f(a.target.checked),className:"h-3.5 w-3.5 rounded border-white/20 bg-surface-800 text-primary-500 focus:ring-primary-500/30 focus:ring-offset-0"}),(0,d.jsx)("span",{className:"text-xs text-gray-400",children:"Collect review plans"})]})}),k&&(0,d.jsx)("div",{className:"mt-4 rounded-lg border border-red-500/20 bg-red-500/[0.06] px-4 py-2 text-xs text-red-400",children:k}),(0,d.jsxs)("button",{onClick:()=>void m(),disabled:i,className:"mt-5 inline-flex items-center gap-2 rounded-lg bg-primary-500 px-5 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-primary-600 disabled:cursor-not-allowed disabled:opacity-50",children:[i?(0,d.jsx)("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-white border-t-transparent"}):(0,d.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.347a1.125 1.125 0 0 1 0 1.972l-11.54 6.347a1.125 1.125 0 0 1-1.667-.986V5.653Z"})}),"Initialize History"]})]})})}function w({onBackfilled:a}){let b=(0,g.yC)(),[c,f]=(0,e.useState)(!1),[i,j]=(0,e.useState)(null),[k,l]=(0,e.useState)(null),m=(0,e.useCallback)(async()=>{f(!0),l(null);try{let c=await (0,h.RK)(b,{limit:50});j({captured:c.captured,skipped:c.skipped}),c.captured>0&&a()}catch(a){l(a instanceof Error?a.message:"Backfill failed")}finally{f(!1)}},[b,a]);return(0,d.jsx)("div",{className:"flex h-[calc(100vh-120px)] items-center justify-center",children:(0,d.jsxs)("div",{className:"w-full max-w-md text-center",children:[(0,d.jsx)(u.p,{title:"No history entries yet",description:"History is initialized but empty. Backfill from recent commits to populate your timeline.",icon:(0,d.jsx)("svg",{className:"h-10 w-10 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})})}),k&&(0,d.jsx)("div",{className:"mt-4 rounded-lg border border-red-500/20 bg-red-500/[0.06] px-4 py-2 text-xs text-red-400",children:k}),i&&(0,d.jsxs)("div",{className:"mt-4 rounded-lg border border-emerald-500/20 bg-emerald-500/[0.06] px-4 py-2 text-xs text-emerald-400",children:["Captured ",i.captured," entries, skipped ",i.skipped,"."]}),(0,d.jsxs)("button",{onClick:()=>void m(),disabled:c,className:"mt-5 inline-flex items-center gap-2 rounded-lg bg-primary-500 px-5 py-2.5 text-sm font-semibold text-white transition-colors hover:bg-primary-600 disabled:cursor-not-allowed disabled:opacity-50",children:[c?(0,d.jsx)("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-white border-t-transparent"}):(0,d.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12M12 16.5V3"})}),"Backfill Recent Commits"]})]})})}function x({entry:a,selected:b,onSelect:c}){return(0,d.jsxs)("button",{onClick:c,className:`w-full text-left rounded-lg px-3 py-2.5 transition-colors ${b?"bg-primary-500/10 border border-primary-500/30":"border border-transparent hover:bg-white/[0.03]"}`,children:[(0,d.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,d.jsx)("span",{className:"font-mono text-xs text-amber-400 shrink-0",children:a.shortSha||a.sha.slice(0,7)}),(0,d.jsx)("span",{className:"text-[10px] text-gray-600 shrink-0",children:function(a){let b=new Date(a);return isNaN(b.getTime())?a:b.toLocaleDateString(void 0,{month:"short",day:"numeric"})}(a.date)})]}),a.filesChanged>0&&(0,d.jsxs)("span",{className:"text-[10px] text-gray-600 shrink-0",children:[a.filesChanged,"f"]})]}),(0,d.jsx)("p",{className:"mt-1 text-xs text-gray-300 truncate",children:a.subject||"No subject"}),(0,d.jsxs)("div",{className:"mt-1.5 flex flex-wrap gap-1",children:[a.hasSession&&(0,d.jsx)("span",{className:"rounded-full bg-cyan-500/15 px-1.5 py-px text-[9px] font-medium text-cyan-400",children:"Session"}),a.hasEnrichment&&(0,d.jsx)("span",{className:"rounded-full bg-violet-500/15 px-1.5 py-px text-[9px] font-medium text-violet-400",children:"AI"}),a.hasTranscript&&(0,d.jsx)("span",{className:"rounded-full bg-emerald-500/15 px-1.5 py-px text-[9px] font-medium text-emerald-400",children:"Transcript"}),a.hasReviewPlans&&(0,d.jsx)("span",{className:"rounded-full bg-amber-500/15 px-1.5 py-px text-[9px] font-medium text-amber-400",children:"Review"})]})]})}function y({refreshKey:a}){let b=(0,g.yC)(),{enrichmentStatus:c,refresh:e}=(0,h.hh)();if(!c||"idle"===c.status)return null;let f=async()=>{await (0,h.J)(b),e()};if("enriching"===c.status){let a=c.total>0?Math.round(c.completed/c.total*100):0;return(0,d.jsxs)("div",{className:"rounded-lg border border-primary-500/20 bg-primary-500/[0.06] p-3",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between",children:[(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("span",{className:"h-3.5 w-3.5 animate-spin rounded-full border-2 border-primary-500 border-t-transparent"}),(0,d.jsx)("span",{className:"text-xs font-medium text-primary-400",children:"Enriching..."})]}),(0,d.jsxs)("span",{className:"text-[10px] text-gray-500",children:[c.completed," / ",c.total," (",a,"%)"]})]}),c.total>0&&(0,d.jsx)("div",{className:"mt-2 h-1.5 w-full overflow-hidden rounded-full bg-surface-800",children:(0,d.jsx)("div",{className:"h-full rounded-full bg-primary-500 transition-all duration-500",style:{width:`${a}%`}})})]})}return"done"===c.status?(0,d.jsxs)("div",{className:"flex items-center justify-between rounded-lg border border-emerald-500/20 bg-emerald-500/[0.06] px-3 py-2",children:[(0,d.jsxs)("span",{className:"text-xs text-emerald-400",children:["Enrichment complete. ",c.completed," enriched",c.failed>0&&`, ${c.failed} failed`,"."]}),(0,d.jsx)("button",{onClick:()=>void f(),className:"text-[10px] text-emerald-400/70 hover:text-emerald-400 transition-colors",children:"Dismiss"})]}):"error"===c.status?(0,d.jsxs)("div",{className:"flex items-center justify-between rounded-lg border border-red-500/20 bg-red-500/[0.06] px-3 py-2",children:[(0,d.jsxs)("span",{className:"text-xs text-red-400",children:["Enrichment failed: ",c.error??"Unknown error"]}),(0,d.jsx)("button",{onClick:()=>void f(),className:"text-[10px] text-red-400/70 hover:text-red-400 transition-colors",children:"Dismiss"})]}):null}function z(){let a=(0,g.yC)(),b=(0,f.useRouter)(),c=(0,f.useSearchParams)(),i=c?c.get("sha"):null,{stats:j}=(0,h.zg)(),[l,m]=(0,e.useState)(null),{entries:n,loading:o,error:p,refresh:q}=(0,h._q)(l??void 0),[r,s]=(0,e.useState)(!1),[u,v]=(0,e.useState)(!1),[w,z]=(0,e.useState)(!1),[A,B]=(0,e.useState)(0),C=n.length,D=j?.dateRange?.from&&j?.dateRange?.to?function(a,b){let c=new Date(a),d=new Date(b);if(isNaN(c.getTime())||isNaN(d.getTime()))return"";let e={month:"short",day:"numeric",year:"numeric"};return`${c.toLocaleDateString(void 0,e)} - ${d.toLocaleDateString(void 0,e)}`}(j.dateRange.from,j.dateRange.to):null,E=j?Math.round(j.enrichmentCoverage):null,F=j?Math.round(10*j.avgFilesChanged)/10:null,G=j?.tagCounts??{},H=(0,e.useMemo)(()=>Object.entries(G).sort(([,a],[,b])=>b-a).map(([a])=>a),[G]),[I,J]=(0,e.useState)(!1),K=(0,e.useCallback)(a=>{b.push(`/history?sha=${encodeURIComponent(a)}`,{scroll:!1})},[b]),L=(0,e.useCallback)(async()=>{s(!0);try{await (0,h.RK)(a,{limit:50}),q()}catch{}finally{s(!1)}},[a,q]),M=(0,e.useCallback)(async()=>{v(!0);try{let b=await (0,h.bj)(a),c=new Blob([JSON.stringify(b,null,2)],{type:"application/json"}),d=URL.createObjectURL(c),e=document.createElement("a");e.href=d,e.download="ulpi-history-export.json",e.click(),URL.revokeObjectURL(d)}catch{}finally{v(!1)}},[a]),N=(0,e.useCallback)(async()=>{z(!0);try{await (0,h.W7)(a),B(a=>a+1)}catch{}finally{z(!1)}},[a]),O=(0,e.useCallback)(()=>{J(!1),b.push("/history",{scroll:!1})},[b]);return(0,d.jsxs)("div",{className:"flex flex-col h-[calc(100vh-32px)]",children:[(0,d.jsxs)("div",{className:"flex items-start justify-between gap-4 shrink-0",children:[(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{className:"flex items-center gap-3",children:[I&&i&&(0,d.jsx)("button",{onClick:O,className:"lg:hidden rounded-lg p-1.5 text-gray-500 transition-colors hover:bg-white/[0.06] hover:text-gray-300",children:(0,d.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"})})}),(0,d.jsx)("h1",{className:"text-xl font-semibold text-white",children:"History"}),(0,d.jsxs)("span",{className:"text-xs text-gray-600",children:[C," entr",1===C?"y":"ies"]})]}),D&&(0,d.jsx)("p",{className:"mt-1 text-xs text-gray-500",children:D})]}),(0,d.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,d.jsxs)("button",{onClick:()=>void L(),disabled:r,className:"inline-flex items-center gap-1.5 rounded-lg border border-white/[0.08] bg-surface-900 px-3 py-2 text-xs font-medium text-gray-300 transition-colors hover:bg-surface-800 hover:text-white disabled:cursor-not-allowed disabled:opacity-50",children:[r?(0,d.jsx)("span",{className:"h-3.5 w-3.5 animate-spin rounded-full border-2 border-primary-500 border-t-transparent"}):(0,d.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12M12 16.5V3"})}),"Backfill"]}),(0,d.jsxs)("button",{onClick:()=>void M(),disabled:u,className:"inline-flex items-center gap-1.5 rounded-lg border border-white/[0.08] bg-surface-900 px-3 py-2 text-xs font-medium text-gray-300 transition-colors hover:bg-surface-800 hover:text-white disabled:cursor-not-allowed disabled:opacity-50",children:[u?(0,d.jsx)("span",{className:"h-3.5 w-3.5 animate-spin rounded-full border-2 border-primary-500 border-t-transparent"}):(0,d.jsx)("svg",{className:"h-3.5 w-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"})}),"Export"]})]})]}),(0,d.jsx)("div",{className:"mt-3 shrink-0",children:(0,d.jsx)(y,{refreshKey:A})}),(0,d.jsxs)("div",{className:"flex gap-4 flex-1 min-h-0 mt-4",children:[(0,d.jsxs)("div",{className:`w-80 min-w-[280px] max-w-[360px] shrink-0 flex flex-col rounded-xl border border-white/[0.06] bg-surface-900 overflow-hidden ${I&&i?"hidden lg:flex":"flex"}`,children:[(0,d.jsxs)("div",{className:"grid grid-cols-3 gap-1.5 p-3 shrink-0",children:[(0,d.jsxs)("div",{className:"rounded-lg border border-white/[0.04] bg-surface-800/50 p-2 text-center",children:[(0,d.jsx)("p",{className:"text-sm font-semibold text-white",children:C}),(0,d.jsx)("p",{className:"text-[9px] text-gray-600",children:"Entries"})]}),(0,d.jsxs)("button",{onClick:()=>void N(),disabled:w,className:`rounded-lg border p-2 text-center transition-colors group ${w?"border-primary-500/20 bg-primary-500/[0.06]":"border-white/[0.04] bg-surface-800/50 hover:bg-surface-800"}`,title:"Enrich all entries with AI",children:[w?(0,d.jsx)("span",{className:"flex items-center justify-center h-5",children:(0,d.jsx)("span",{className:"h-3.5 w-3.5 animate-spin rounded-full border-2 border-primary-500 border-t-transparent"})}):(0,d.jsx)("p",{className:"text-sm font-semibold text-white",children:null!=E?`${E}%`:"--"}),(0,d.jsx)("p",{className:`text-[9px] transition-colors ${w?"text-primary-400":"text-gray-600 group-hover:text-violet-400"}`,children:w?"Enriching...":"AI Enriched"})]}),(0,d.jsxs)("div",{className:"rounded-lg border border-white/[0.04] bg-surface-800/50 p-2 text-center",children:[(0,d.jsx)("p",{className:"text-sm font-semibold text-white",children:F??"--"}),(0,d.jsx)("p",{className:"text-[9px] text-gray-600",children:"Avg Files"})]})]}),H.length>0&&(0,d.jsxs)("div",{className:"flex flex-wrap gap-1 px-3 pb-2 shrink-0",children:[(0,d.jsx)("button",{onClick:()=>m(null),className:`rounded-full px-2 py-0.5 text-[10px] font-medium transition-colors ${null===l?"bg-primary-500/15 text-primary-400":"bg-surface-800 text-gray-500 hover:text-gray-300"}`,children:"All"}),H.slice(0,10).map(a=>(0,d.jsxs)("button",{onClick:()=>m(l===a?null:a),className:`rounded-full px-2 py-0.5 text-[10px] font-medium transition-colors ${l===a?"bg-primary-500/15 text-primary-400":"bg-surface-800 text-gray-500 hover:text-gray-300"}`,children:[a," ",(0,d.jsx)("span",{className:"text-gray-600",children:G[a]})]},a))]}),(0,d.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto px-2 pb-2",children:o?(0,d.jsx)(k.G,{rows:6}):p?(0,d.jsx)("div",{className:"p-3",children:(0,d.jsx)("p",{className:"text-xs text-red-400",children:p})}):0===n.length?(0,d.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[(0,d.jsx)("p",{className:"text-sm text-gray-500",children:"No entries found"}),l&&(0,d.jsx)("button",{onClick:()=>m(null),className:"mt-2 text-xs text-primary-400 hover:text-primary-300",children:"Clear filter"})]}):(0,d.jsx)("div",{className:"space-y-0.5",children:n.map(a=>(0,d.jsx)(x,{entry:a,selected:a.sha===i,onSelect:()=>K(a.sha)},a.sha))})})]}),(0,d.jsx)("div",{className:`flex-1 min-w-0 rounded-xl border border-white/[0.06] bg-surface-900 p-5 overflow-hidden flex flex-col ${I&&i?"flex":"hidden lg:flex"}`,children:i?(0,d.jsx)(t,{sha:i}):(0,d.jsxs)("div",{className:"flex h-full flex-col items-center justify-center text-center",children:[(0,d.jsx)("svg",{className:"h-10 w-10 text-gray-700",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})}),(0,d.jsx)("p",{className:"mt-3 text-sm text-gray-500",children:"Select an entry to view details"}),(0,d.jsx)("p",{className:"mt-1 text-xs text-gray-600",children:"Click an entry on the left to view its full commit details, enrichment data, and transcript."})]})})]})]})}function A(){let{status:a,loading:b,refresh:c}=(0,h.uX)(),[f,g]=(0,e.useState)(null);if(b)return(0,d.jsxs)("div",{className:"space-y-6",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h1",{className:"text-xl font-semibold text-white",children:"History"}),(0,d.jsx)("p",{className:"mt-1 text-sm text-gray-400",children:"Shadow branch timeline of coding sessions."})]}),(0,d.jsx)(k.G,{rows:5})]});if(!a)return(0,d.jsxs)("div",{className:"space-y-6",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("h1",{className:"text-xl font-semibold text-white",children:"History"}),(0,d.jsx)("p",{className:"mt-1 text-sm text-gray-400",children:"Shadow branch timeline of coding sessions."})]}),(0,d.jsx)("div",{className:"rounded-xl border border-amber-500/20 bg-amber-500/[0.06] p-4",children:(0,d.jsx)("p",{className:"text-sm text-amber-400",children:"Could not connect to the History API. Make sure the ULPI server is running."})})]});let i=f??(a.exists?0===a.totalEntries?"empty":"active":"init");return"init"===i?(0,d.jsx)(v,{onInitialized:()=>{g("empty"),c()}}):"empty"===i?(0,d.jsx)(w,{onBackfilled:()=>{g("active"),c()}}):(0,d.jsx)(e.Suspense,{fallback:(0,d.jsx)(k.G,{rows:5}),children:(0,d.jsx)(z,{})})}},19121:a=>{"use strict";a.exports=require("next/dist/server/app-render/action-async-storage.external.js")},24620:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GlobalError:()=>D.a,__next_app__:()=>J,handler:()=>L,pages:()=>I,routeModule:()=>K,tree:()=>H});var d=c(48226),e=c(24085),f=c(69339),g=c(93292),h=c(11110),i=c(4120),j=c(60247),k=c(72548),l=c(74570),m=c(84880),n=c(38698),o=c(6085),p=c(35157),q=c(97854),r=c(261),s=c(39965),t=c(25794),u=c(26713),v=c(39172),w=c(5797),x=c(97769),y=c(7054),z=c(84002),A=c(3558),B=c(86439),C=c(2714),D=c.n(C),E=c(56130),F=c(72907),G={};for(let a in E)0>["default","tree","pages","GlobalError","__next_app__","routeModule","handler"].indexOf(a)&&(G[a]=()=>E[a]);c.d(b,G);let H={children:["",{children:["(dashboard)",{children:["history",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(c.bind(c,39536)),"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/history/page.tsx"]}]},{}]},{layout:[()=>Promise.resolve().then(c.bind(c,45460)),"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/layout.tsx"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,40428,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,22613,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,34312,23)),"next/dist/client/components/builtin/unauthorized.js"]}]},{layout:[()=>Promise.resolve().then(c.bind(c,82648)),"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/layout.tsx"],error:[()=>Promise.resolve().then(c.bind(c,10538)),"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/error.tsx"],"global-error":[()=>Promise.resolve().then(c.t.bind(c,2714,23)),"next/dist/client/components/builtin/global-error.js"],"not-found":[()=>Promise.resolve().then(c.t.bind(c,40428,23)),"next/dist/client/components/builtin/not-found.js"],forbidden:[()=>Promise.resolve().then(c.t.bind(c,22613,23)),"next/dist/client/components/builtin/forbidden.js"],unauthorized:[()=>Promise.resolve().then(c.t.bind(c,34312,23)),"next/dist/client/components/builtin/unauthorized.js"]}]}.children,I=["/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/history/page.tsx"],J={require:c,loadChunk:()=>Promise.resolve()},K=new d.AppPageRouteModule({definition:{kind:e.RouteKind.APP_PAGE,page:"/(dashboard)/history/page",pathname:"/history",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:H},distDir:".next",relativeProjectDir:""});async function L(a,b,d){var C;let G="/(dashboard)/history/page";"/index"===G&&(G="/");let M=(0,h.getRequestMeta)(a,"postponed"),N=(0,h.getRequestMeta)(a,"minimalMode"),O=await K.prepare(a,b,{srcPage:G,multiZoneDraftMode:!1});if(!O)return b.statusCode=400,b.end("Bad Request"),null==d.waitUntil||d.waitUntil.call(d,Promise.resolve()),null;let{buildId:P,query:Q,params:R,parsedUrl:S,pageIsDynamic:T,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,serverActionsManifest:X,clientReferenceManifest:Y,subresourceIntegrityManifest:Z,prerenderManifest:$,isDraftMode:_,resolvedPathname:aa,revalidateOnlyGenerated:ab,routerServerContext:ac,nextConfig:ad,interceptionRoutePatterns:ae}=O,af=S.pathname||"/",ag=(0,r.normalizeAppPath)(G),{isOnDemandRevalidate:ah}=O,ai=K.match(af,$),aj=!!$.routes[aa],ak=!!(ai||aj||$.routes[ag]),al=a.headers["user-agent"]||"",am=(0,u.getBotType)(al),an=(0,p.isHtmlBotRequest)(a),ao=(0,h.getRequestMeta)(a,"isPrefetchRSCRequest")??"1"===a.headers[t.NEXT_ROUTER_PREFETCH_HEADER],ap=(0,h.getRequestMeta)(a,"isRSCRequest")??!!a.headers[t.RSC_HEADER],aq=(0,s.getIsPossibleServerAction)(a),ar=(0,m.checkIsAppPPREnabled)(ad.experimental.ppr)&&(null==(C=$.routes[ag]??$.dynamicRoutes[ag])?void 0:C.renderingMode)==="PARTIALLY_STATIC",as=!1,at=!1,au=ar?M:void 0,av=ar&&ap&&!ao,aw=(0,h.getRequestMeta)(a,"segmentPrefetchRSCRequest"),ax=!al||(0,p.shouldServeStreamingMetadata)(al,ad.htmlLimitedBots);an&&ar&&(ak=!1,ax=!1);let ay=!0===K.isDev||!ak||"string"==typeof M||av,az=an&&ar,aA=null;_||!ak||ay||aq||au||av||(aA=aa);let aB=aA;!aB&&K.isDev&&(aB=aa),K.isDev||_||!ak||!ap||av||(0,k.d)(a.headers);let aC={...E,tree:H,pages:I,GlobalError:D(),handler:L,routeModule:K,__next_app__:J};X&&Y&&(0,o.setReferenceManifestsSingleton)({page:G,clientReferenceManifest:Y,serverActionsManifest:X,serverModuleMap:(0,q.createServerModuleMap)({serverActionsManifest:X})});let aD=a.method||"GET",aE=(0,g.getTracer)(),aF=aE.getActiveScopeSpan();try{let f=K.getVaryHeader(aa,ae);b.setHeader("Vary",f);let k=async(c,d)=>{let e=new l.NodeNextRequest(a),f=new l.NodeNextResponse(b);return K.render(e,f,d).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=aE.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==i.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${aD} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${aD} ${a.url}`)})},m=async({span:e,postponed:f,fallbackRouteParams:g})=>{let i={query:Q,params:R,page:ag,sharedContext:{buildId:P},serverComponentsHmrCache:(0,h.getRequestMeta)(a,"serverComponentsHmrCache"),fallbackRouteParams:g,renderOpts:{App:()=>null,Document:()=>null,pageConfig:{},ComponentMod:aC,Component:(0,j.T)(aC),params:R,routeModule:K,page:G,postponed:f,shouldWaitOnAllReady:az,serveStreamingMetadata:ax,supportsDynamicResponse:"string"==typeof f||ay,buildManifest:U,nextFontManifest:V,reactLoadableManifest:W,subresourceIntegrityManifest:Z,serverActionsManifest:X,clientReferenceManifest:Y,setIsrStatus:null==ac?void 0:ac.setIsrStatus,dir:c(33873).join(process.cwd(),K.relativeProjectDir),isDraftMode:_,isRevalidate:ak&&!f&&!av,botType:am,isOnDemandRevalidate:ah,isPossibleServerAction:aq,assetPrefix:ad.assetPrefix,nextConfigOutput:ad.output,crossOrigin:ad.crossOrigin,trailingSlash:ad.trailingSlash,previewProps:$.preview,deploymentId:ad.deploymentId,enableTainting:ad.experimental.taint,htmlLimitedBots:ad.htmlLimitedBots,devtoolSegmentExplorer:ad.experimental.devtoolSegmentExplorer,reactMaxHeadersLength:ad.reactMaxHeadersLength,multiZoneDraftMode:!1,incrementalCache:(0,h.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:ad.experimental.cacheLife,basePath:ad.basePath,serverActions:ad.experimental.serverActions,...as?{nextExport:!0,supportsDynamicResponse:!1,isStaticGeneration:!0,isRevalidate:!0,isDebugDynamicAccesses:as}:{},experimental:{isRoutePPREnabled:ar,expireTime:ad.expireTime,staleTimes:ad.experimental.staleTimes,cacheComponents:!!ad.experimental.cacheComponents,clientSegmentCache:!!ad.experimental.clientSegmentCache,clientParamParsing:!!ad.experimental.clientParamParsing,dynamicOnHover:!!ad.experimental.dynamicOnHover,inlineCss:!!ad.experimental.inlineCss,authInterrupts:!!ad.experimental.authInterrupts,clientTraceMetadata:ad.experimental.clientTraceMetadata||[]},waitUntil:d.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:()=>{},onInstrumentationRequestError:(b,c,d)=>K.onRequestError(a,b,d,ac),err:(0,h.getRequestMeta)(a,"invokeError"),dev:K.isDev}},l=await k(e,i),{metadata:m}=l,{cacheControl:n,headers:o={},fetchTags:p}=m;if(p&&(o[y.NEXT_CACHE_TAGS_HEADER]=p),a.fetchMetrics=m.fetchMetrics,ak&&(null==n?void 0:n.revalidate)===0&&!K.isDev&&!ar){let a=m.staticBailoutInfo,b=Object.defineProperty(Error(`Page changed from static to dynamic at runtime ${aa}${(null==a?void 0:a.description)?`, reason: ${a.description}`:""}
2
2
  see more here https://nextjs.org/docs/messages/app-static-to-dynamic-error`),"__NEXT_ERROR_CODE",{value:"E132",enumerable:!1,configurable:!0});if(null==a?void 0:a.stack){let c=a.stack;b.stack=b.message+c.substring(c.indexOf("\n"))}throw b}return{value:{kind:v.CachedRouteKind.APP_PAGE,html:l,headers:o,rscData:m.flightData,postponed:m.postponed,status:m.statusCode,segmentData:m.segmentData},cacheControl:n}},o=async({hasResolved:c,previousCacheEntry:f,isRevalidating:g,span:i})=>{let j,k=!1===K.isDev,l=c||b.writableEnded;if(ah&&ab&&!f&&!N)return(null==ac?void 0:ac.render404)?await ac.render404(a,b):(b.statusCode=404,b.end("This page could not be found")),null;if(ai&&(j=(0,w.parseFallbackField)(ai.fallback)),j===w.FallbackMode.PRERENDER&&(0,u.isBot)(al)&&(!ar||an)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),(null==f?void 0:f.isStale)===-1&&(ah=!0),ah&&(j!==w.FallbackMode.NOT_FOUND||f)&&(j=w.FallbackMode.BLOCKING_STATIC_RENDER),!N&&j!==w.FallbackMode.BLOCKING_STATIC_RENDER&&aB&&!l&&!_&&T&&(k||!aj)){let b;if((k||ai)&&j===w.FallbackMode.NOT_FOUND)throw new B.NoFallbackError;if(ar&&!ap){let c="string"==typeof(null==ai?void 0:ai.fallback)?ai.fallback:k?ag:null;if(b=await K.handleResponse({cacheKey:c,req:a,nextConfig:ad,routeKind:e.RouteKind.APP_PAGE,isFallback:!0,prerenderManifest:$,isRoutePPREnabled:ar,responseGenerator:async()=>m({span:i,postponed:void 0,fallbackRouteParams:k||at?(0,n.u)(ag):null}),waitUntil:d.waitUntil}),null===b)return null;if(b)return delete b.cacheControl,b}}let o=ah||g||!au?void 0:au;if(as&&void 0!==o)return{cacheControl:{revalidate:1,expire:void 0},value:{kind:v.CachedRouteKind.PAGES,html:x.default.EMPTY,pageData:{},headers:void 0,status:void 0}};let p=T&&ar&&((0,h.getRequestMeta)(a,"renderFallbackShell")||at)?(0,n.u)(af):null;return m({span:i,postponed:o,fallbackRouteParams:p})},p=async c=>{var f,g,i,j,k;let l,n=await K.handleResponse({cacheKey:aA,responseGenerator:a=>o({span:c,...a}),routeKind:e.RouteKind.APP_PAGE,isOnDemandRevalidate:ah,isRoutePPREnabled:ar,req:a,nextConfig:ad,prerenderManifest:$,waitUntil:d.waitUntil});if(_&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate"),K.isDev&&b.setHeader("Cache-Control","no-store, must-revalidate"),!n){if(aA)throw Object.defineProperty(Error("invariant: cache entry required but not generated"),"__NEXT_ERROR_CODE",{value:"E62",enumerable:!1,configurable:!0});return null}if((null==(f=n.value)?void 0:f.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant app-page handler received invalid cache entry ${null==(i=n.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E707",enumerable:!1,configurable:!0});let p="string"==typeof n.value.postponed;ak&&!av&&(!p||ao)&&(N||b.setHeader("x-nextjs-cache",ah?"REVALIDATED":n.isMiss?"MISS":n.isStale?"STALE":"HIT"),b.setHeader(t.NEXT_IS_PRERENDER_HEADER,"1"));let{value:q}=n;if(au)l={revalidate:0,expire:void 0};else if(N&&ap&&!ao&&ar)l={revalidate:0,expire:void 0};else if(!K.isDev)if(_)l={revalidate:0,expire:void 0};else if(ak){if(n.cacheControl)if("number"==typeof n.cacheControl.revalidate){if(n.cacheControl.revalidate<1)throw Object.defineProperty(Error(`Invalid revalidate configuration provided: ${n.cacheControl.revalidate} < 1`),"__NEXT_ERROR_CODE",{value:"E22",enumerable:!1,configurable:!0});l={revalidate:n.cacheControl.revalidate,expire:(null==(j=n.cacheControl)?void 0:j.expire)??ad.expireTime}}else l={revalidate:y.CACHE_ONE_YEAR,expire:void 0}}else b.getHeader("Cache-Control")||(l={revalidate:0,expire:void 0});if(n.cacheControl=l,"string"==typeof aw&&(null==q?void 0:q.kind)===v.CachedRouteKind.APP_PAGE&&q.segmentData){b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"2");let c=null==(k=q.headers)?void 0:k[y.NEXT_CACHE_TAGS_HEADER];N&&ak&&c&&"string"==typeof c&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,c);let d=q.segmentData.get(aw);return void 0!==d?(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(d,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl}):(b.statusCode=204,(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.EMPTY,cacheControl:n.cacheControl}))}let r=(0,h.getRequestMeta)(a,"onCacheEntry");if(r&&await r({...n,value:{...n.value,kind:"PAGE"}},{url:(0,h.getRequestMeta)(a,"initURL")}))return null;if(p&&au)throw Object.defineProperty(Error("Invariant: postponed state should not be present on a resume request"),"__NEXT_ERROR_CODE",{value:"E396",enumerable:!1,configurable:!0});if(q.headers){let a={...q.headers};for(let[c,d]of(N&&ak||delete a[y.NEXT_CACHE_TAGS_HEADER],Object.entries(a)))if(void 0!==d)if(Array.isArray(d))for(let a of d)b.appendHeader(c,a);else"number"==typeof d&&(d=d.toString()),b.appendHeader(c,d)}let s=null==(g=q.headers)?void 0:g[y.NEXT_CACHE_TAGS_HEADER];if(N&&ak&&s&&"string"==typeof s&&b.setHeader(y.NEXT_CACHE_TAGS_HEADER,s),!q.status||ap&&ar||(b.statusCode=q.status),!N&&q.status&&F.RedirectStatusCode[q.status]&&ap&&(b.statusCode=200),p&&b.setHeader(t.NEXT_DID_POSTPONE_HEADER,"1"),ap&&!_){if(void 0===q.rscData){if(q.postponed)throw Object.defineProperty(Error("Invariant: Expected postponed to be undefined"),"__NEXT_ERROR_CODE",{value:"E372",enumerable:!1,configurable:!0});return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:q.html,cacheControl:av?{revalidate:0,expire:void 0}:n.cacheControl})}return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:x.default.fromStatic(q.rscData,t.RSC_CONTENT_TYPE_HEADER),cacheControl:n.cacheControl})}let u=q.html;if(!p||N||ap)return(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:n.cacheControl});if(as)return u.push(new ReadableStream({start(a){a.enqueue(z.ENCODED_TAGS.CLOSED.BODY_AND_HTML),a.close()}})),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}});let w=new TransformStream;return u.push(w.readable),m({span:c,postponed:q.postponed,fallbackRouteParams:null}).then(async a=>{var b,c;if(!a)throw Object.defineProperty(Error("Invariant: expected a result to be returned"),"__NEXT_ERROR_CODE",{value:"E463",enumerable:!1,configurable:!0});if((null==(b=a.value)?void 0:b.kind)!==v.CachedRouteKind.APP_PAGE)throw Object.defineProperty(Error(`Invariant: expected a page response, got ${null==(c=a.value)?void 0:c.kind}`),"__NEXT_ERROR_CODE",{value:"E305",enumerable:!1,configurable:!0});await a.value.html.pipeTo(w.writable)}).catch(a=>{w.writable.abort(a).catch(a=>{console.error("couldn't abort transformer",a)})}),(0,A.sendRenderResult)({req:a,res:b,generateEtags:ad.generateEtags,poweredByHeader:ad.poweredByHeader,result:u,cacheControl:{revalidate:0,expire:void 0}})};if(!aF)return await aE.withPropagatedContext(a.headers,()=>aE.trace(i.BaseServerSpan.handleRequest,{spanName:`${aD} ${a.url}`,kind:g.SpanKind.SERVER,attributes:{"http.method":aD,"http.target":a.url}},p));await p(aF)}catch(b){throw b instanceof B.NoFallbackError||await K.onRequestError(a,b,{routerKind:"App Router",routePath:G,routeType:"render",revalidateReason:(0,f.c)({isRevalidate:ak,isOnDemandRevalidate:ah})},ac),b}}},26713:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/is-bot")},28354:a=>{"use strict";a.exports=require("util")},29294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{"use strict";a.exports=require("path")},39536:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>d});let d=(0,c(94026).registerClientReference)(function(){throw Error("Attempted to call the default export of \"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/history/page.tsx\" from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/ciprian/work_cip/ulpi/hooks/apps/portal/src/app/(dashboard)/history/page.tsx","default")},41025:a=>{"use strict";a.exports=require("next/dist/server/app-render/dynamic-access-async-storage.external.js")},59440:(a,b,c)=>{"use strict";c.d(b,{G:()=>e});var d=c(82164);function e({rows:a=3,variant:b="skeleton",className:c=""}){return"spinner"===b?(0,d.jsx)("div",{className:`flex items-center justify-center py-16 ${c}`,children:(0,d.jsxs)("div",{className:"flex flex-col items-center gap-3",children:[(0,d.jsx)("div",{className:"h-7 w-7 animate-spin rounded-full border-2 border-primary-500 border-t-transparent"}),(0,d.jsx)("p",{className:"text-xs text-gray-500",children:"Loading..."})]})}):(0,d.jsx)("div",{className:`space-y-3 ${c}`,children:Array.from({length:a}).map((a,b)=>(0,d.jsx)("div",{className:"animate-pulse rounded-xl border border-white/[0.04] bg-surface-800/50 p-4",children:(0,d.jsxs)("div",{className:"flex items-center gap-4",children:[(0,d.jsx)("div",{className:"h-8 w-8 rounded-lg bg-white/[0.06]"}),(0,d.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,d.jsx)("div",{className:"h-3.5 w-1/3 rounded bg-white/[0.06]"}),(0,d.jsx)("div",{className:"h-3 w-2/3 rounded bg-white/[0.04]"})]}),(0,d.jsx)("div",{className:"h-5 w-16 rounded-full bg-white/[0.04]"})]})},b))})}},63033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},70727:(a,b,c)=>{"use strict";c.d(b,{J:()=>r,O4:()=>i,RK:()=>o,W7:()=>q,_q:()=>f,bj:()=>p,hh:()=>m,oI:()=>j,uX:()=>k,xy:()=>n,zg:()=>l});var d=c(54509),e=c(73754);function f(a){let b=(0,e.yC)(),[c,f]=(0,d.useState)([]),[g,h]=(0,d.useState)(!0),[i,j]=(0,d.useState)(null);return{entries:c,loading:g,error:i,refresh:(0,d.useCallback)(async()=>{h(!0),j(null);try{let c=a?`/api/history/entries?tag=${encodeURIComponent(a)}`:"/api/history/entries",d=await b.get(c),e=Array.isArray(d)?d:[];f(e)}catch(a){j(a instanceof Error?a.message:"Failed to fetch history")}finally{h(!1)}},[b,a])}}function g(a){return null!=a&&""!==a?String(a):void 0}function h(a){return Array.isArray(a)?a.filter(a=>"string"==typeof a):void 0}function i(a){let b=(0,e.yC)(),[c,f]=(0,d.useState)(null),[i,j]=(0,d.useState)(!0);return{entry:c,loading:i,refresh:(0,d.useCallback)(async()=>{if(a){j(!0);try{let c=await b.get(`/api/history/entries/${a}`);f(function(a){let b,c,d=a.commit??{},e=a.diff??{},f=a.enrichment,i=a.session,j=Array.isArray(e.files)?e.files:[],k={added:"A",modified:"M",deleted:"D",renamed:"R",copied:"C"},l=j.map(a=>{let b=String(a.status??"M");return{path:String(a.path??a.filePath??""),status:k[b]??b,additions:"number"==typeof a.additions?a.additions:0,deletions:"number"==typeof a.deletions?a.deletions:0,oldPath:g(a.oldPath)}});a.tags&&(Array.isArray(a.tags)?b=a.tags:"object"==typeof a.tags&&(b=Object.keys(a.tags))),Array.isArray(a.reviewPlans)&&a.reviewPlans.length>0&&(c=a.reviewPlans.map(a=>{let b=a.version,c=b?.decision;return{title:String(a.title??"Untitled Plan"),slug:String(a.slug??""),plan:String(a.plan??b?.markdown??""),decision:c?{behavior:String(c.behavior),message:String(c.message??"")}:void 0}})),i?.stats;let m="number"==typeof i?.durationMs?i.durationMs:void 0,n=String(d.sha??a.sha??"");return{sha:n,shortSha:n.slice(0,8),date:String(d.authorDate??a.capturedAt??a.date??""),subject:g(d.subject),message:g(d.message),branch:g(d.branch),authorName:g(d.authorName),summary:g(f?.summary),filesChanged:"number"==typeof e.filesChanged?e.filesChanged:l.length,insertions:"number"==typeof e.insertions?e.insertions:void 0,deletions:"number"==typeof e.deletions?e.deletions:void 0,duration:null!=m?`${Math.round(m/1e3)}s`:void 0,durationMs:m,tags:b,hasSession:null!=i,hasEnrichment:null!=f,hasTranscript:!!(a.hasTranscript??("number"==typeof a.transcriptSize&&a.transcriptSize>0)),hasReviewPlans:null!=c&&c.length>0,enrichment:f?{summary:g(f.summary),intent:g(f.intent),outcome:g(f.outcome),insights:h(f.ruleInsights),challenges:h(f.challenges),recommendations:h(f.recommendations),complexity:g(f.complexity)}:void 0,files:l.length>0?l:void 0,reviewPlans:c}}(c))}catch{f(null)}finally{j(!1)}}},[b,a])}}function j(a){let b=(0,e.yC)(),[c,f]=(0,d.useState)(null),[g,h]=(0,d.useState)(!0);return{transcript:c,loading:g,refresh:(0,d.useCallback)(async()=>{if(a){h(!0);try{let c=await b.get(`/api/history/entries/${a}/transcript`);f(c.transcript??null)}catch{f(null)}finally{h(!1)}}},[b,a])}}function k(){let a=(0,e.yC)(),[b,c]=(0,d.useState)(null),[f,g]=(0,d.useState)(!0);return{status:b,loading:f,refresh:(0,d.useCallback)(async()=>{g(!0);try{let b=await a.get("/api/history/status");c(b)}catch{c(null)}finally{g(!1)}},[a])}}function l(){let a=(0,e.yC)(),[b,c]=(0,d.useState)(null),[f,g]=(0,d.useState)(!0);return{stats:b,loading:f,refresh:(0,d.useCallback)(async()=>{g(!0);try{let b=await a.get("/api/history/stats");c(b)}catch{c(null)}finally{g(!1)}},[a])}}function m(){let a=(0,e.yC)(),[b,c]=(0,d.useState)(null),[f,g]=(0,d.useState)(!0);return{enrichmentStatus:b,loading:f,refresh:(0,d.useCallback)(async()=>{g(!0);try{let b=await a.get("/api/history/enrich/status");c(b)}catch{c(null)}finally{g(!1)}},[a])}}async function n(a,b){return a.post("/api/history/init",{collectReviewPlans:b?.collectReviewPlans??!1})}async function o(a,b){return a.post("/api/history/backfill",{limit:b?.limit})}async function p(a){return a.get("/api/history/export")}async function q(a,b){return a.post("/api/history/enrich",b?{sha:b}:{})}async function r(a){return a.delete("/api/history/enrich/status")}},74892:(a,b,c)=>{Promise.resolve().then(c.bind(c,12481))},77128:(a,b,c)=>{"use strict";function d(a){if("string"==typeof a)return a;if(null==a)return"";if(null!=a.message){let b=a.message;if("string"==typeof b.content)return b.content;if(Array.isArray(b.content))return b.content.map(a=>"string"==typeof a?a:"thinking"===a.type||"tool_use"===a.type||"tool_result"===a.type?"":"text"===a.type&&"string"==typeof a.text?a.text.includes("<system-reminder>")?"":a.text:"").filter(Boolean).join("\n");if("string"==typeof b)return b}return"string"==typeof a.content?a.content:Array.isArray(a.content)?a.content.map(a=>"string"==typeof a?a:"string"==typeof a.text?a.text.includes("<system-reminder>")?"":a.text:"").filter(Boolean).join("\n"):"string"==typeof a.text?a.text:""}c.d(b,{K9:()=>f,Pv:()=>h});let e=new Set(["file-history-snapshot","progress","system","metadata","config","summary","result","error","thinking"]);function f(a){let b=a.split("\n").filter(a=>a.trim().length>0);if(0===b.length)return null;let c=[],f=0;for(let a of b)try{let b=JSON.parse(a),g=function(a){if(function(a){let b=a.type??"";return!!e.has(b)||("sessionId"in a||"parentUuid"in a||"isSidechain"in a)&&!("role"in a)&&!("content"in a)&&!("message"in a)||"isSnapshotUpdate"in a&&"snapshot"in a||!1}(a))return null;let b=(a.type??a.role??"").toLowerCase();if("human"===b||"user"===b){let b=d(a);return b.trim()?{type:"human",content:b,raw:a}:null}if("assistant"===b){let b=d(a);return b.trim()?{type:"assistant",content:b,raw:a}:null}if("tool_use"===b){let b=a.name??a.message?.name??"Tool",c=a.input??a.message?.input;return{type:"tool_use",content:`${b}`,toolName:b,toolInput:null!=c?JSON.stringify(c,null,2):void 0,raw:a}}if("tool_result"===b)return{type:"tool_result",content:d(a),raw:a};if("user"===a.role||"human"===a.role){let b=d(a);return b.trim()?{type:"human",content:b,raw:a}:null}if("assistant"===a.role){let b=d(a);return b.trim()?{type:"assistant",content:b,raw:a}:null}return null}(b);null!==g&&c.push(g),f++}catch{}return 0===f||f/b.length<.2?null:c}let g=["...","[earlier messages trimmed]","[messages trimmed]","[truncated]"];function h(a){let b=a.trimStart().split("\n")[0]?.trim()??"";return g.some(a=>b.startsWith(a))}},86439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},92232:(a,b,c)=>{"use strict";c.d(b,{p:()=>f});var d=c(82164);function e(){return(0,d.jsx)("svg",{className:"h-10 w-10 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1,children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 7.5l-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5m6 4.125 2.25 2.25m0 0 2.25 2.25M12 13.875l2.25-2.25M12 13.875l-2.25 2.25M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z"})})}function f({icon:a,title:b,description:c,action:f,className:g=""}){return(0,d.jsxs)("div",{className:`flex flex-col items-center justify-center rounded-2xl border border-dashed border-white/[0.06] bg-surface-800/30 px-6 py-16 text-center ${g}`,children:[(0,d.jsx)("div",{className:"mb-4",children:a??(0,d.jsx)(e,{})}),(0,d.jsx)("h3",{className:"text-sm font-medium text-gray-300",children:b}),c&&(0,d.jsx)("p",{className:"mt-1.5 max-w-sm text-xs text-gray-500",children:c}),f&&(0,d.jsx)("button",{onClick:f.onClick,className:"mt-5 rounded-lg bg-primary-500 px-4 py-2 text-xs font-semibold text-white transition-colors hover:bg-primary-600",children:f.label})]})}}};var b=require("../../../webpack-runtime.js");b.C(a);var c=b.X(0,[3404,3958,1522],()=>b(b.s=24620));module.exports=c})();