@seqyuan/annovibe 0.8.135 → 0.8.137

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 (355) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-path-routes-manifest.json +23 -19
  3. package/.next/build-manifest.json +3 -3
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/react-loadable-manifest.json +17 -17
  6. package/.next/required-server-files.js +1 -1
  7. package/.next/required-server-files.json +1 -1
  8. package/.next/routes-manifest.json +39 -17
  9. package/.next/server/app/_global-error/page.js +2 -2
  10. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  11. package/.next/server/app/_global-error.html +1 -1
  12. package/.next/server/app/_global-error.rsc +1 -1
  13. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  14. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  15. package/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  16. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  17. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  18. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  19. package/.next/server/app/_not-found/page.js +2 -2
  20. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  21. package/.next/server/app/_not-found.html +1 -1
  22. package/.next/server/app/_not-found.rsc +4 -4
  23. package/.next/server/app/_not-found.segments/_full.segment.rsc +4 -4
  24. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  25. package/.next/server/app/_not-found.segments/_index.segment.rsc +4 -4
  26. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  27. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  28. package/.next/server/app/_not-found.segments/_tree.segment.rsc +3 -3
  29. package/.next/server/app/api/agent/[id]/events/route.js +2 -2
  30. package/.next/server/app/api/agent/[id]/prepare/route.js +1 -1
  31. package/.next/server/app/api/agent/[id]/route.js +1 -1
  32. package/.next/server/app/api/agent/new/route.js +2 -2
  33. package/.next/server/app/api/agent/running/events/route.js +2 -2
  34. package/.next/server/app/api/agent/running/route.js +1 -1
  35. package/.next/server/app/api/agent/runtime/route.js +1 -1
  36. package/.next/server/app/api/apps/[id]/[[...path]]/route.js +2 -2
  37. package/.next/server/app/api/apps/route.js +2 -2
  38. package/.next/server/app/api/auth/all-providers/route.js +1 -1
  39. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -1
  40. package/.next/server/app/api/auth/login/[provider]/route.js +2 -2
  41. package/.next/server/app/api/auth/login/route.js +1 -1
  42. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -1
  43. package/.next/server/app/api/auth/providers/route.js +1 -1
  44. package/.next/server/app/api/auth/status/route.js +1 -1
  45. package/.next/server/app/api/auth/totp/route.js +1 -1
  46. package/.next/server/app/api/debug-models/route.js +1 -1
  47. package/.next/server/app/api/default-cwd/route.js +1 -1
  48. package/.next/server/app/api/file-index/route.js +1 -0
  49. package/.next/server/app/api/file-index/route_client-reference-manifest.js +1 -0
  50. package/.next/server/app/api/file-tree/delete/route.js +1 -1
  51. package/.next/server/app/api/file-tree/mkdir/route.js +1 -1
  52. package/.next/server/app/api/file-tree/rename/route.js +1 -1
  53. package/.next/server/app/api/file-tree/reveal/route.js +1 -1
  54. package/.next/server/app/api/file-tree/write/route.js +1 -1
  55. package/.next/server/app/api/file-watch/route.js +3 -3
  56. package/.next/server/app/api/files/[...path]/route.js +2 -2
  57. package/.next/server/app/api/harness/route.js +1 -1
  58. package/.next/server/app/api/home/route.js +1 -1
  59. package/.next/server/app/api/im/cancel/route.js +1 -1
  60. package/.next/server/app/api/im/gateway-status/route.js +1 -1
  61. package/.next/server/app/api/im/gateway-token/route.js +1 -1
  62. package/.next/server/app/api/im/project/route.js +1 -1
  63. package/.next/server/app/api/im/projects/route.js +1 -1
  64. package/.next/server/app/api/im/session-ids/route.js +1 -1
  65. package/.next/server/app/api/im/turn/route.js +2 -2
  66. package/.next/server/app/api/images/upload/route.js +1 -1
  67. package/.next/server/app/api/internal/runtime/route.js +1 -1
  68. package/.next/server/app/api/memory/dismiss/route.js +2 -2
  69. package/.next/server/app/api/memory/promote/route.js +2 -2
  70. package/.next/server/app/api/models/route.js +1 -1
  71. package/.next/server/app/api/models-config/discover/route.js +1 -1
  72. package/.next/server/app/api/models-config/route.js +1 -1
  73. package/.next/server/app/api/models-config/test/route.js +1 -1
  74. package/.next/server/app/api/plot-kernels/route.js +1 -1
  75. package/.next/server/app/api/plot-kernels/save/route.js +1 -1
  76. package/.next/server/app/api/plot-kernels/status/route.js +1 -1
  77. package/.next/server/app/api/plot-kernels/stop/route.js +1 -1
  78. package/.next/server/app/api/plugins/route.js +1 -0
  79. package/.next/server/app/api/plugins/route_client-reference-manifest.js +1 -0
  80. package/.next/server/app/api/project-trust/route.js +1 -0
  81. package/.next/server/app/api/project-trust/route_client-reference-manifest.js +1 -0
  82. package/.next/server/app/api/projects/browse/route.js +1 -1
  83. package/.next/server/app/api/projects/route.js +1 -1
  84. package/.next/server/app/api/search/route.js +1 -1
  85. package/.next/server/app/api/session-index/events/route.js +1 -1
  86. package/.next/server/app/api/sessions/[id]/auto-name/route.js +9 -8
  87. package/.next/server/app/api/sessions/[id]/context/route.js +1 -1
  88. package/.next/server/app/api/sessions/[id]/export/route.js +1 -0
  89. package/.next/server/app/api/sessions/[id]/export/route_client-reference-manifest.js +1 -0
  90. package/.next/server/app/api/sessions/[id]/media/route.js +1 -0
  91. package/.next/server/app/api/sessions/[id]/media/route_client-reference-manifest.js +1 -0
  92. package/.next/server/app/api/sessions/[id]/route.js +1 -1
  93. package/.next/server/app/api/sessions/[id]/shadowed/route.js +1 -1
  94. package/.next/server/app/api/sessions/new/route.js +1 -1
  95. package/.next/server/app/api/sessions/route.js +1 -1
  96. package/.next/server/app/api/settings/route.js +1 -1
  97. package/.next/server/app/api/skills/check/route.js +1 -0
  98. package/.next/server/app/api/skills/check/route_client-reference-manifest.js +1 -0
  99. package/.next/server/app/api/skills/install/route.js +2 -2
  100. package/.next/server/app/api/skills/route.js +2 -2
  101. package/.next/server/app/api/skills/search/route.js +1 -1
  102. package/.next/server/app/api/skills/update/route.js +2 -0
  103. package/.next/server/app/api/skills/update/route_client-reference-manifest.js +1 -0
  104. package/.next/server/app/api/smoke/prompt-admission/route.js +1 -1
  105. package/.next/server/app/api/soul/route.js +1 -1
  106. package/.next/server/app/api/subagents/status/route.js +1 -1
  107. package/.next/server/app/api/version/route.js +1 -1
  108. package/.next/server/app/favicon.ico/route.js +1 -1
  109. package/.next/server/app/icon.svg/route.js +1 -1
  110. package/.next/server/app/index.html +1 -1
  111. package/.next/server/app/index.rsc +5 -5
  112. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  113. package/.next/server/app/index.segments/_full.segment.rsc +5 -5
  114. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  115. package/.next/server/app/index.segments/_index.segment.rsc +4 -4
  116. package/.next/server/app/index.segments/_tree.segment.rsc +3 -3
  117. package/.next/server/app/login/page.js +2 -2
  118. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  119. package/.next/server/app/login.html +1 -1
  120. package/.next/server/app/login.rsc +4 -4
  121. package/.next/server/app/login.segments/_full.segment.rsc +4 -4
  122. package/.next/server/app/login.segments/_head.segment.rsc +1 -1
  123. package/.next/server/app/login.segments/_index.segment.rsc +4 -4
  124. package/.next/server/app/login.segments/_tree.segment.rsc +3 -3
  125. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +1 -1
  126. package/.next/server/app/login.segments/login.segment.rsc +1 -1
  127. package/.next/server/app/page.js +15 -37
  128. package/.next/server/app/page_client-reference-manifest.js +1 -1
  129. package/.next/server/app/smoke/page.js +3 -3
  130. package/.next/server/app/smoke/page_client-reference-manifest.js +1 -1
  131. package/.next/server/app/smoke/session-stream/page.js +2 -2
  132. package/.next/server/app/smoke/session-stream/page_client-reference-manifest.js +1 -1
  133. package/.next/server/app/smoke/session-stream.html +1 -1
  134. package/.next/server/app/smoke/session-stream.rsc +5 -5
  135. package/.next/server/app/smoke/session-stream.segments/_full.segment.rsc +5 -5
  136. package/.next/server/app/smoke/session-stream.segments/_head.segment.rsc +1 -1
  137. package/.next/server/app/smoke/session-stream.segments/_index.segment.rsc +4 -4
  138. package/.next/server/app/smoke/session-stream.segments/_tree.segment.rsc +3 -3
  139. package/.next/server/app/smoke/session-stream.segments/smoke/session-stream/__PAGE__.segment.rsc +2 -2
  140. package/.next/server/app/smoke/session-stream.segments/smoke/session-stream.segment.rsc +1 -1
  141. package/.next/server/app/smoke/session-stream.segments/smoke.segment.rsc +1 -1
  142. package/.next/server/app/smoke.html +2 -2
  143. package/.next/server/app/smoke.rsc +5 -5
  144. package/.next/server/app/smoke.segments/_full.segment.rsc +5 -5
  145. package/.next/server/app/smoke.segments/_head.segment.rsc +1 -1
  146. package/.next/server/app/smoke.segments/_index.segment.rsc +4 -4
  147. package/.next/server/app/smoke.segments/_tree.segment.rsc +3 -3
  148. package/.next/server/app/smoke.segments/smoke/__PAGE__.segment.rsc +2 -2
  149. package/.next/server/app/smoke.segments/smoke.segment.rsc +1 -1
  150. package/.next/server/app-paths-manifest.json +23 -19
  151. package/.next/server/chunks/1761.js +1 -1
  152. package/.next/server/chunks/402.js +4 -2
  153. package/.next/server/chunks/6429.js +10 -9
  154. package/.next/server/chunks/707.js +2 -2
  155. package/.next/server/chunks/7303.js +260 -0
  156. package/.next/server/chunks/7365.js +1 -0
  157. package/.next/server/chunks/8304.js +1 -1
  158. package/.next/server/chunks/8797.js +22 -0
  159. package/.next/server/functions-config-manifest.json +11 -1
  160. package/.next/server/middleware-build-manifest.js +1 -1
  161. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  162. package/.next/server/middleware.js +3 -3
  163. package/.next/server/pages/404.html +1 -1
  164. package/.next/server/pages/500.html +1 -1
  165. package/.next/server/server-reference-manifest.json +1 -1
  166. package/.next/static/Dhz0OCkGsLWL775zzzmMs/_buildManifest.js +1 -0
  167. package/.next/static/chunks/{2693-b831832202452107.js → 2693-52c358cf5d84b069.js} +1 -1
  168. package/.next/static/chunks/291-e0c3c616f67fe126.js +22 -0
  169. package/.next/static/chunks/3309.581b04bacfeed701.js +1 -0
  170. package/.next/static/chunks/5618-5cda45604cf32c2a.js +22 -0
  171. package/.next/static/chunks/{3309.d0c34b5ef504a551.js → 5690.332f301b9df6f2dd.js} +1 -1
  172. package/.next/static/chunks/{6586.8c2a88c2a55300d2.js → 6586.25e1a0135b5e5bba.js} +1 -1
  173. package/.next/static/chunks/{1960.b1e26436d7a5f586.js → 7198.4c3df741a5e26fb2.js} +1 -1
  174. package/.next/static/chunks/{8863.8b769013468d83d4.js → 8863.4b2faadd47deb00c.js} +1 -1
  175. package/.next/static/chunks/9867-d66ff8fa3cb21f14.js +260 -0
  176. package/.next/static/chunks/app/_global-error/page-6908129cec5a3264.js +1 -0
  177. package/.next/static/chunks/app/api/agent/[id]/events/route-6908129cec5a3264.js +1 -0
  178. package/.next/static/chunks/app/api/agent/[id]/prepare/route-6908129cec5a3264.js +1 -0
  179. package/.next/static/chunks/app/api/agent/[id]/route-6908129cec5a3264.js +1 -0
  180. package/.next/static/chunks/app/api/agent/new/route-6908129cec5a3264.js +1 -0
  181. package/.next/static/chunks/app/api/agent/running/events/route-6908129cec5a3264.js +1 -0
  182. package/.next/static/chunks/app/api/agent/running/route-6908129cec5a3264.js +1 -0
  183. package/.next/static/chunks/app/api/agent/runtime/route-6908129cec5a3264.js +1 -0
  184. package/.next/static/chunks/app/api/apps/[id]/[[...path]]/route-6908129cec5a3264.js +1 -0
  185. package/.next/static/chunks/app/api/apps/route-6908129cec5a3264.js +1 -0
  186. package/.next/static/chunks/app/api/auth/all-providers/route-6908129cec5a3264.js +1 -0
  187. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-6908129cec5a3264.js +1 -0
  188. package/.next/static/chunks/app/api/auth/login/[provider]/route-6908129cec5a3264.js +1 -0
  189. package/.next/static/chunks/app/api/auth/login/route-6908129cec5a3264.js +1 -0
  190. package/.next/static/chunks/app/api/auth/logout/[provider]/route-6908129cec5a3264.js +1 -0
  191. package/.next/static/chunks/app/api/auth/providers/route-6908129cec5a3264.js +1 -0
  192. package/.next/static/chunks/app/api/auth/status/route-6908129cec5a3264.js +1 -0
  193. package/.next/static/chunks/app/api/auth/totp/route-6908129cec5a3264.js +1 -0
  194. package/.next/static/chunks/app/api/debug-models/route-6908129cec5a3264.js +1 -0
  195. package/.next/static/chunks/app/api/default-cwd/route-6908129cec5a3264.js +1 -0
  196. package/.next/static/chunks/app/api/file-index/route-6908129cec5a3264.js +1 -0
  197. package/.next/static/chunks/app/api/file-tree/delete/route-6908129cec5a3264.js +1 -0
  198. package/.next/static/chunks/app/api/file-tree/mkdir/route-6908129cec5a3264.js +1 -0
  199. package/.next/static/chunks/app/api/file-tree/rename/route-6908129cec5a3264.js +1 -0
  200. package/.next/static/chunks/app/api/file-tree/reveal/route-6908129cec5a3264.js +1 -0
  201. package/.next/static/chunks/app/api/file-tree/write/route-6908129cec5a3264.js +1 -0
  202. package/.next/static/chunks/app/api/file-watch/route-6908129cec5a3264.js +1 -0
  203. package/.next/static/chunks/app/api/files/[...path]/route-6908129cec5a3264.js +1 -0
  204. package/.next/static/chunks/app/api/harness/route-6908129cec5a3264.js +1 -0
  205. package/.next/static/chunks/app/api/home/route-6908129cec5a3264.js +1 -0
  206. package/.next/static/chunks/app/api/im/cancel/route-6908129cec5a3264.js +1 -0
  207. package/.next/static/chunks/app/api/im/gateway-status/route-6908129cec5a3264.js +1 -0
  208. package/.next/static/chunks/app/api/im/gateway-token/route-6908129cec5a3264.js +1 -0
  209. package/.next/static/chunks/app/api/im/project/route-6908129cec5a3264.js +1 -0
  210. package/.next/static/chunks/app/api/im/projects/route-6908129cec5a3264.js +1 -0
  211. package/.next/static/chunks/app/api/im/session-ids/route-6908129cec5a3264.js +1 -0
  212. package/.next/static/chunks/app/api/im/turn/route-6908129cec5a3264.js +1 -0
  213. package/.next/static/chunks/app/api/images/upload/route-6908129cec5a3264.js +1 -0
  214. package/.next/static/chunks/app/api/internal/runtime/route-6908129cec5a3264.js +1 -0
  215. package/.next/static/chunks/app/api/memory/dismiss/route-6908129cec5a3264.js +1 -0
  216. package/.next/static/chunks/app/api/memory/promote/route-6908129cec5a3264.js +1 -0
  217. package/.next/static/chunks/app/api/models/route-6908129cec5a3264.js +1 -0
  218. package/.next/static/chunks/app/api/models-config/discover/route-6908129cec5a3264.js +1 -0
  219. package/.next/static/chunks/app/api/models-config/route-6908129cec5a3264.js +1 -0
  220. package/.next/static/chunks/app/api/models-config/test/route-6908129cec5a3264.js +1 -0
  221. package/.next/static/chunks/app/api/plot-kernels/route-6908129cec5a3264.js +1 -0
  222. package/.next/static/chunks/app/api/plot-kernels/save/route-6908129cec5a3264.js +1 -0
  223. package/.next/static/chunks/app/api/plot-kernels/status/route-6908129cec5a3264.js +1 -0
  224. package/.next/static/chunks/app/api/plot-kernels/stop/route-6908129cec5a3264.js +1 -0
  225. package/.next/static/chunks/app/api/plugins/route-6908129cec5a3264.js +1 -0
  226. package/.next/static/chunks/app/api/project-trust/route-6908129cec5a3264.js +1 -0
  227. package/.next/static/chunks/app/api/projects/browse/route-6908129cec5a3264.js +1 -0
  228. package/.next/static/chunks/app/api/projects/route-6908129cec5a3264.js +1 -0
  229. package/.next/static/chunks/app/api/search/route-6908129cec5a3264.js +1 -0
  230. package/.next/static/chunks/app/api/session-index/events/route-6908129cec5a3264.js +1 -0
  231. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-6908129cec5a3264.js +1 -0
  232. package/.next/static/chunks/app/api/sessions/[id]/context/route-6908129cec5a3264.js +1 -0
  233. package/.next/static/chunks/app/api/sessions/[id]/export/route-6908129cec5a3264.js +1 -0
  234. package/.next/static/chunks/app/api/sessions/[id]/media/route-6908129cec5a3264.js +1 -0
  235. package/.next/static/chunks/app/api/sessions/[id]/route-6908129cec5a3264.js +1 -0
  236. package/.next/static/chunks/app/api/sessions/[id]/shadowed/route-6908129cec5a3264.js +1 -0
  237. package/.next/static/chunks/app/api/sessions/new/route-6908129cec5a3264.js +1 -0
  238. package/.next/static/chunks/app/api/sessions/route-6908129cec5a3264.js +1 -0
  239. package/.next/static/chunks/app/api/settings/route-6908129cec5a3264.js +1 -0
  240. package/.next/static/chunks/app/api/skills/check/route-6908129cec5a3264.js +1 -0
  241. package/.next/static/chunks/app/api/skills/install/route-6908129cec5a3264.js +1 -0
  242. package/.next/static/chunks/app/api/skills/route-6908129cec5a3264.js +1 -0
  243. package/.next/static/chunks/app/api/skills/search/route-6908129cec5a3264.js +1 -0
  244. package/.next/static/chunks/app/api/skills/update/route-6908129cec5a3264.js +1 -0
  245. package/.next/static/chunks/app/api/smoke/prompt-admission/route-6908129cec5a3264.js +1 -0
  246. package/.next/static/chunks/app/api/soul/route-6908129cec5a3264.js +1 -0
  247. package/.next/static/chunks/app/api/subagents/status/route-6908129cec5a3264.js +1 -0
  248. package/.next/static/chunks/app/api/version/route-6908129cec5a3264.js +1 -0
  249. package/.next/static/chunks/app/favicon.ico/route-6908129cec5a3264.js +1 -0
  250. package/.next/static/chunks/app/{layout-5608bfe5e8f4e4c0.js → layout-101c4ccdf12880f0.js} +1 -1
  251. package/.next/static/chunks/app/page-18dafddef38f1693.js +22 -0
  252. package/.next/static/chunks/app/smoke/{page-35df723c803f35e1.js → page-32674afc320aa48b.js} +2 -2
  253. package/.next/static/chunks/app/smoke/session-stream/page-e754151f65003821.js +6 -0
  254. package/.next/static/chunks/next/dist/client/components/builtin/app-error-6908129cec5a3264.js +1 -0
  255. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-6908129cec5a3264.js +1 -0
  256. package/.next/static/chunks/next/dist/client/components/builtin/not-found-6908129cec5a3264.js +1 -0
  257. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-6908129cec5a3264.js +1 -0
  258. package/.next/static/chunks/{webpack-abcc6ba654c7ed4b.js → webpack-87d310cefc6fab2a.js} +1 -1
  259. package/.next/static/css/{88714c00e109ce28.css → 9bcd6051db4f8890.css} +1 -1
  260. package/.next/static/css/d68ecb6695873888.css +1 -0
  261. package/README.md +4 -1
  262. package/bin/pi-web.js +103 -25
  263. package/package.json +6 -5
  264. package/.next/server/app/api/sessions/[id]/kernel-state/route.js +0 -1
  265. package/.next/server/app/api/sessions/[id]/kernel-state/route_client-reference-manifest.js +0 -1
  266. package/.next/server/app/api/sessions/[id]/workbench-artifact/route.js +0 -1
  267. package/.next/server/app/api/sessions/[id]/workbench-artifact/route_client-reference-manifest.js +0 -1
  268. package/.next/server/app/api/sessions/[id]/workbench-review/route.js +0 -1
  269. package/.next/server/app/api/sessions/[id]/workbench-review/route_client-reference-manifest.js +0 -1
  270. package/.next/server/chunks/2562.js +0 -12
  271. package/.next/server/chunks/4584.js +0 -260
  272. package/.next/server/chunks/9230.js +0 -22
  273. package/.next/static/WmuL2h-UefYxq-xz32JzM/_buildManifest.js +0 -1
  274. package/.next/static/chunks/4456-646debea1b5bbec7.js +0 -260
  275. package/.next/static/chunks/5618-3b8444e736e6ae4d.js +0 -22
  276. package/.next/static/chunks/5690.64d843d3db8e1b4b.js +0 -1
  277. package/.next/static/chunks/9544-46c74a307e919fcb.js +0 -22
  278. package/.next/static/chunks/app/_global-error/page-c47e15c89def27e4.js +0 -1
  279. package/.next/static/chunks/app/api/agent/[id]/events/route-c47e15c89def27e4.js +0 -1
  280. package/.next/static/chunks/app/api/agent/[id]/prepare/route-c47e15c89def27e4.js +0 -1
  281. package/.next/static/chunks/app/api/agent/[id]/route-c47e15c89def27e4.js +0 -1
  282. package/.next/static/chunks/app/api/agent/new/route-c47e15c89def27e4.js +0 -1
  283. package/.next/static/chunks/app/api/agent/running/events/route-c47e15c89def27e4.js +0 -1
  284. package/.next/static/chunks/app/api/agent/running/route-c47e15c89def27e4.js +0 -1
  285. package/.next/static/chunks/app/api/agent/runtime/route-c47e15c89def27e4.js +0 -1
  286. package/.next/static/chunks/app/api/apps/[id]/[[...path]]/route-c47e15c89def27e4.js +0 -1
  287. package/.next/static/chunks/app/api/apps/route-c47e15c89def27e4.js +0 -1
  288. package/.next/static/chunks/app/api/auth/all-providers/route-c47e15c89def27e4.js +0 -1
  289. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-c47e15c89def27e4.js +0 -1
  290. package/.next/static/chunks/app/api/auth/login/[provider]/route-c47e15c89def27e4.js +0 -1
  291. package/.next/static/chunks/app/api/auth/login/route-c47e15c89def27e4.js +0 -1
  292. package/.next/static/chunks/app/api/auth/logout/[provider]/route-c47e15c89def27e4.js +0 -1
  293. package/.next/static/chunks/app/api/auth/providers/route-c47e15c89def27e4.js +0 -1
  294. package/.next/static/chunks/app/api/auth/status/route-c47e15c89def27e4.js +0 -1
  295. package/.next/static/chunks/app/api/auth/totp/route-c47e15c89def27e4.js +0 -1
  296. package/.next/static/chunks/app/api/debug-models/route-c47e15c89def27e4.js +0 -1
  297. package/.next/static/chunks/app/api/default-cwd/route-c47e15c89def27e4.js +0 -1
  298. package/.next/static/chunks/app/api/file-tree/delete/route-c47e15c89def27e4.js +0 -1
  299. package/.next/static/chunks/app/api/file-tree/mkdir/route-c47e15c89def27e4.js +0 -1
  300. package/.next/static/chunks/app/api/file-tree/rename/route-c47e15c89def27e4.js +0 -1
  301. package/.next/static/chunks/app/api/file-tree/reveal/route-c47e15c89def27e4.js +0 -1
  302. package/.next/static/chunks/app/api/file-tree/write/route-c47e15c89def27e4.js +0 -1
  303. package/.next/static/chunks/app/api/file-watch/route-c47e15c89def27e4.js +0 -1
  304. package/.next/static/chunks/app/api/files/[...path]/route-c47e15c89def27e4.js +0 -1
  305. package/.next/static/chunks/app/api/harness/route-c47e15c89def27e4.js +0 -1
  306. package/.next/static/chunks/app/api/home/route-c47e15c89def27e4.js +0 -1
  307. package/.next/static/chunks/app/api/im/cancel/route-c47e15c89def27e4.js +0 -1
  308. package/.next/static/chunks/app/api/im/gateway-status/route-c47e15c89def27e4.js +0 -1
  309. package/.next/static/chunks/app/api/im/gateway-token/route-c47e15c89def27e4.js +0 -1
  310. package/.next/static/chunks/app/api/im/project/route-c47e15c89def27e4.js +0 -1
  311. package/.next/static/chunks/app/api/im/projects/route-c47e15c89def27e4.js +0 -1
  312. package/.next/static/chunks/app/api/im/session-ids/route-c47e15c89def27e4.js +0 -1
  313. package/.next/static/chunks/app/api/im/turn/route-c47e15c89def27e4.js +0 -1
  314. package/.next/static/chunks/app/api/images/upload/route-c47e15c89def27e4.js +0 -1
  315. package/.next/static/chunks/app/api/internal/runtime/route-c47e15c89def27e4.js +0 -1
  316. package/.next/static/chunks/app/api/memory/dismiss/route-c47e15c89def27e4.js +0 -1
  317. package/.next/static/chunks/app/api/memory/promote/route-c47e15c89def27e4.js +0 -1
  318. package/.next/static/chunks/app/api/models/route-c47e15c89def27e4.js +0 -1
  319. package/.next/static/chunks/app/api/models-config/discover/route-c47e15c89def27e4.js +0 -1
  320. package/.next/static/chunks/app/api/models-config/route-c47e15c89def27e4.js +0 -1
  321. package/.next/static/chunks/app/api/models-config/test/route-c47e15c89def27e4.js +0 -1
  322. package/.next/static/chunks/app/api/plot-kernels/route-c47e15c89def27e4.js +0 -1
  323. package/.next/static/chunks/app/api/plot-kernels/save/route-c47e15c89def27e4.js +0 -1
  324. package/.next/static/chunks/app/api/plot-kernels/status/route-c47e15c89def27e4.js +0 -1
  325. package/.next/static/chunks/app/api/plot-kernels/stop/route-c47e15c89def27e4.js +0 -1
  326. package/.next/static/chunks/app/api/projects/browse/route-c47e15c89def27e4.js +0 -1
  327. package/.next/static/chunks/app/api/projects/route-c47e15c89def27e4.js +0 -1
  328. package/.next/static/chunks/app/api/search/route-c47e15c89def27e4.js +0 -1
  329. package/.next/static/chunks/app/api/session-index/events/route-c47e15c89def27e4.js +0 -1
  330. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-c47e15c89def27e4.js +0 -1
  331. package/.next/static/chunks/app/api/sessions/[id]/context/route-c47e15c89def27e4.js +0 -1
  332. package/.next/static/chunks/app/api/sessions/[id]/kernel-state/route-c47e15c89def27e4.js +0 -1
  333. package/.next/static/chunks/app/api/sessions/[id]/route-c47e15c89def27e4.js +0 -1
  334. package/.next/static/chunks/app/api/sessions/[id]/shadowed/route-c47e15c89def27e4.js +0 -1
  335. package/.next/static/chunks/app/api/sessions/[id]/workbench-artifact/route-c47e15c89def27e4.js +0 -1
  336. package/.next/static/chunks/app/api/sessions/[id]/workbench-review/route-c47e15c89def27e4.js +0 -1
  337. package/.next/static/chunks/app/api/sessions/new/route-c47e15c89def27e4.js +0 -1
  338. package/.next/static/chunks/app/api/sessions/route-c47e15c89def27e4.js +0 -1
  339. package/.next/static/chunks/app/api/settings/route-c47e15c89def27e4.js +0 -1
  340. package/.next/static/chunks/app/api/skills/install/route-c47e15c89def27e4.js +0 -1
  341. package/.next/static/chunks/app/api/skills/route-c47e15c89def27e4.js +0 -1
  342. package/.next/static/chunks/app/api/skills/search/route-c47e15c89def27e4.js +0 -1
  343. package/.next/static/chunks/app/api/smoke/prompt-admission/route-c47e15c89def27e4.js +0 -1
  344. package/.next/static/chunks/app/api/soul/route-c47e15c89def27e4.js +0 -1
  345. package/.next/static/chunks/app/api/subagents/status/route-c47e15c89def27e4.js +0 -1
  346. package/.next/static/chunks/app/api/version/route-c47e15c89def27e4.js +0 -1
  347. package/.next/static/chunks/app/favicon.ico/route-c47e15c89def27e4.js +0 -1
  348. package/.next/static/chunks/app/page-765bc8a2e911eb4c.js +0 -44
  349. package/.next/static/chunks/app/smoke/session-stream/page-49b8cf27895b9187.js +0 -6
  350. package/.next/static/chunks/next/dist/client/components/builtin/app-error-c47e15c89def27e4.js +0 -1
  351. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-c47e15c89def27e4.js +0 -1
  352. package/.next/static/chunks/next/dist/client/components/builtin/not-found-c47e15c89def27e4.js +0 -1
  353. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-c47e15c89def27e4.js +0 -1
  354. package/.next/static/css/4a3f6b9aa8eed19f.css +0 -1
  355. /package/.next/static/{WmuL2h-UefYxq-xz32JzM → Dhz0OCkGsLWL775zzzmMs}/_ssgManifest.js +0 -0
package/bin/pi-web.js CHANGED
@@ -247,9 +247,70 @@ function staleStateRemoved() {
247
247
  return false;
248
248
  }
249
249
 
250
+ const QUOTA_ERROR_MARKER = "disk quota exceeded (EDQUOT, errno 122)";
251
+
252
+ function isQuotaExceededError(error) {
253
+ if (!error) return false;
254
+ const code = typeof error === "object" ? error.code : undefined;
255
+ const errno = typeof error === "object" ? error.errno : undefined;
256
+ const message = error instanceof Error ? error.message : String(error);
257
+ return (
258
+ code === "EDQUOT" ||
259
+ errno === -122 ||
260
+ errno === 122 ||
261
+ /\bEDQUOT\b/i.test(message) ||
262
+ /unknown system error -122\b/i.test(message)
263
+ );
264
+ }
265
+
266
+ // errno 122 is EDQUOT on Linux. Some Node/libuv builds do not know the name,
267
+ // so they print "Unknown system error -122" instead, which looks like a bug
268
+ // in the missing file. Turn it into an actionable message.
269
+ function formatFsError(error, action) {
270
+ const raw = error instanceof Error ? error.message : String(error);
271
+ if (isQuotaExceededError(error)) {
272
+ return [
273
+ `${action}: ${QUOTA_ERROR_MARKER}`,
274
+ "Free space/quota in your home directory, then retry.",
275
+ "Useful checks: `quota -s`, `df -h ~`, `df -i ~`, `du -sh ~/.pi ~/.npm ~/.cache`.",
276
+ "If a previous `annovibe start` left a server running, run `annovibe stop` first.",
277
+ ].join("\n");
278
+ }
279
+ return `${action}: ${raw}`;
280
+ }
281
+
282
+ function printCommandError(prefix, error) {
283
+ const message = error instanceof Error ? error.message : String(error);
284
+ if (message.includes(QUOTA_ERROR_MARKER)) {
285
+ console.error(`${prefix}: ${message}`);
286
+ return;
287
+ }
288
+ if (isQuotaExceededError(error)) {
289
+ console.error(formatFsError(error, prefix));
290
+ return;
291
+ }
292
+ console.error(`${prefix}: ${message}`);
293
+ }
294
+
250
295
  function writeState(state) {
251
296
  ensureAgentDir();
252
- fs.writeFileSync(stateFile, JSON.stringify({ ...state, updatedAt: nowIso() }, null, 2));
297
+ try {
298
+ fs.writeFileSync(stateFile, JSON.stringify({ ...state, updatedAt: nowIso() }, null, 2));
299
+ } catch (error) {
300
+ throw new Error(formatFsError(error, `cannot write ${stateFile}`));
301
+ }
302
+ }
303
+
304
+ function assertAgentDirWritable() {
305
+ ensureAgentDir();
306
+ const probeFile = path.join(agentDir, `.annovibe-write-check-${process.pid}`);
307
+ try {
308
+ fs.writeFileSync(probeFile, "ok");
309
+ } catch (error) {
310
+ throw new Error(formatFsError(error, `cannot write to ${agentDir}`));
311
+ } finally {
312
+ try { fs.rmSync(probeFile, { force: true }); } catch { /* ignore */ }
313
+ }
253
314
  }
254
315
 
255
316
  function findListeningPids(listenPort) {
@@ -620,7 +681,7 @@ async function startManagedServer({ quiet = false, effectivePort: optPort, effec
620
681
  }
621
682
  removeState();
622
683
  }
623
- ensureAgentDir();
684
+ assertAgentDirWritable();
624
685
  const child = spawnDetachedServer({}, effectivePort, effectiveHost);
625
686
  if (!child.pid) {
626
687
  throw new Error("failed to start annovibe server");
@@ -639,7 +700,15 @@ async function startManagedServer({ quiet = false, effectivePort: optPort, effec
639
700
  stateFile,
640
701
  startedAt: nowIso(),
641
702
  };
642
- writeState(state);
703
+ try {
704
+ writeState(state);
705
+ } catch (error) {
706
+ // The supervisor has already been spawned. Stop it and drop any partial
707
+ // state file so a failed start does not leave an untracked process behind.
708
+ try { process.kill(child.pid, "SIGTERM"); } catch { /* already gone */ }
709
+ removeState();
710
+ throw error;
711
+ }
643
712
  if (!quiet) {
644
713
  console.log(`annovibe start: pid ${child.pid}`);
645
714
  console.log(`url: ${state.url}`);
@@ -724,7 +793,7 @@ if (firstPos === "stop") {
724
793
  stopManagedServer()
725
794
  .then((code) => process.exit(code))
726
795
  .catch((error) => {
727
- console.error(`annovibe stop: ${error instanceof Error ? error.message : String(error)}`);
796
+ printCommandError("annovibe stop", error);
728
797
  process.exit(1);
729
798
  });
730
799
  return;
@@ -734,7 +803,7 @@ if (firstPos === "start") {
734
803
  startManagedServer()
735
804
  .then((code) => process.exit(code))
736
805
  .catch((error) => {
737
- console.error(`annovibe start: ${error instanceof Error ? error.message : String(error)}`);
806
+ printCommandError("annovibe start", error);
738
807
  process.exit(1);
739
808
  });
740
809
  return;
@@ -748,7 +817,7 @@ if (firstPos === "restart") {
748
817
  if (code !== 0) process.exit(code);
749
818
  process.exit(await startManagedServerWithPort(restartPort, restartHost));
750
819
  }).catch((error) => {
751
- console.error(`annovibe restart: ${error instanceof Error ? error.message : String(error)}`);
820
+ printCommandError("annovibe restart", error);
752
821
  process.exit(1);
753
822
  });
754
823
  return;
@@ -1062,6 +1131,7 @@ async function runServerProcess() {
1062
1131
  ANNOVIBE_INTERNAL_TOKEN: internalToken,
1063
1132
  ANNOVIBE_SUPERVISOR_PID: String(process.pid),
1064
1133
  ANNOVIBE_NEXT_WRAPPER: "1",
1134
+ ...(hostname ? { ANNOVIBE_HOSTNAME: String(hostname) } : {}),
1065
1135
  },
1066
1136
  });
1067
1137
  let restarting = false;
@@ -1090,22 +1160,28 @@ async function runServerProcess() {
1090
1160
 
1091
1161
  const writeCurrentState = (patch = {}) => {
1092
1162
  const current = readState() ?? {};
1093
- writeState({
1094
- schemaVersion: 1,
1095
- version: VERSION,
1096
- command: getServerCommand(),
1097
- supervisorPid: process.pid,
1098
- nextPid: child.pid ?? null,
1099
- imGatewayPid: imGatewayChild?.pid ?? null,
1100
- imGatewayLogFile,
1101
- port: String(port),
1102
- hostname,
1103
- url,
1104
- logFile,
1105
- stateFile,
1106
- startedAt: current.startedAt ?? nowIso(),
1107
- ...patch,
1108
- });
1163
+ try {
1164
+ writeState({
1165
+ schemaVersion: 1,
1166
+ version: VERSION,
1167
+ command: getServerCommand(),
1168
+ supervisorPid: process.pid,
1169
+ nextPid: child.pid ?? null,
1170
+ imGatewayPid: imGatewayChild?.pid ?? null,
1171
+ imGatewayLogFile,
1172
+ port: String(port),
1173
+ hostname,
1174
+ url,
1175
+ logFile,
1176
+ stateFile,
1177
+ startedAt: current.startedAt ?? nowIso(),
1178
+ ...patch,
1179
+ });
1180
+ } catch (error) {
1181
+ // Keep the server alive, but say that status/stop may not find it.
1182
+ console.error(error instanceof Error ? error.message : String(error));
1183
+ console.error("annovibe: failed to persist supervisor state; `annovibe status` / `annovibe stop` may not work until this is fixed.");
1184
+ }
1109
1185
  };
1110
1186
 
1111
1187
  writeCurrentState();
@@ -1148,6 +1224,8 @@ async function runServerProcess() {
1148
1224
 
1149
1225
  function runNextProcess() {
1150
1226
  setStableProcessTitle(NEXT_PROCESS_TITLE);
1227
+ // The proxy allow-lists the hostname the operator explicitly bound.
1228
+ if (hostname) process.env.ANNOVIBE_HOSTNAME = String(hostname);
1151
1229
  if (!fs.existsSync(nextDir)) {
1152
1230
  console.error("Build artifacts not found. Please report this issue.");
1153
1231
  process.exit(1);
@@ -1161,21 +1239,21 @@ function runNextProcess() {
1161
1239
 
1162
1240
  if (firstPos === "__server") {
1163
1241
  runServerProcess().catch((error) => {
1164
- console.error(`annovibe server: ${error instanceof Error ? error.message : String(error)}`);
1242
+ printCommandError("annovibe server", error);
1165
1243
  process.exit(1);
1166
1244
  });
1167
1245
  } else if (firstPos === "__next") {
1168
1246
  try {
1169
1247
  runNextProcess();
1170
1248
  } catch (error) {
1171
- console.error(`annovibe next: ${error instanceof Error ? error.message : String(error)}`);
1249
+ printCommandError("annovibe next", error);
1172
1250
  process.exit(1);
1173
1251
  }
1174
1252
  } else {
1175
1253
  startManagedServer()
1176
1254
  .then((code) => process.exit(code))
1177
1255
  .catch((error) => {
1178
- console.error(`annovibe start: ${error instanceof Error ? error.message : String(error)}`);
1256
+ printCommandError("annovibe start", error);
1179
1257
  process.exit(1);
1180
1258
  });
1181
1259
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seqyuan/annovibe",
3
- "version": "0.8.135",
3
+ "version": "0.8.137",
4
4
  "description": "AI-native bioinformatics workspace by Annoroad",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -31,12 +31,13 @@
31
31
  "pack:check": "node scripts/check-npm-pack.mjs",
32
32
  "smoke:generative-ui": "python3 scripts/smoke_generative_ui.py",
33
33
  "prepublishOnly": "node scripts/check-npm-pack.mjs",
34
- "release": "npm version patch --no-git-tag-version && npm run build && npm run pack:check && npm publish --access public"
34
+ "release": "npm version patch --no-git-tag-version && npm run build && npm run pack:check && npm publish --access public",
35
+ "test": "node --experimental-strip-types --test \"lib/**/*.test.mjs\""
35
36
  },
36
37
  "dependencies": {
37
- "@earendil-works/pi-agent-core": "0.80.2",
38
- "@earendil-works/pi-ai": "0.80.2",
39
- "@earendil-works/pi-coding-agent": "0.80.2",
38
+ "@earendil-works/pi-agent-core": "0.84.2",
39
+ "@earendil-works/pi-ai": "0.84.2",
40
+ "@earendil-works/pi-coding-agent": "0.84.2",
40
41
  "@seqyuan/kernel-lite-core": "^0.2.1",
41
42
  "@seqyuan/pi-kernel-plot": "^0.2.1",
42
43
  "bcryptjs": "^3.0.3",
@@ -1 +0,0 @@
1
- "use strict";(()=>{var a={};a.id=4055,a.ids=[4055],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19989:(a,b,c)=>{c.d(b,{X:()=>d});function d(a,b){let c=new Map;for(let a of b){let b=a.provenance.cellIndex;c.set(b,[...c.get(b)??[],a])}return a.map(a=>{let b,d=c.get(a.index)??[],e=d.map(a=>a.fileName).slice(0,4),f=(b=a.stdoutPreview.split("\n").map(a=>a.trim()).find(a=>a&&!a.startsWith("[")&&a.length>2))?b.slice(0,240):null,g=["succeeded"===a.status?"Completed":"failed"===a.status?"Failed":"Ran",a.title||`Cell #${a.index}`,e.length>0?`generated ${e.join(", ")}`:null,f?`Output: ${f}`:null].filter(Boolean);return{id:`cell-${a.index}`,cellIndex:a.index,title:a.title||`Cell #${a.index}`,status:a.status,summary:g.join(". "),artifactIds:d.map(a=>a.id),createdAt:a.createdAt}})}},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},77848:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(78582),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sessions/[id]/kernel-state/route",pathname:"/api/sessions/[id]/kernel-state",filename:"route",bundlePath:"app/api/sessions/[id]/kernel-state/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/annovibe/annovibe/app/api/sessions/[id]/kernel-state/route.ts",nextConfigOutput:"",userland:v}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/sessions/[id]/kernel-state/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(A.dynamicRoutes[H]||A.routes[E]),J=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!A.routes[E],b=A.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||z.isDev||y||(K=E,K="/index"===K?"/":K);let L=!0===z.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q=!!(null==B?void 0:B.isWrappedByNextServer),R=!!(0,h.getRequestMeta)(a,"minimalMode"),S=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,w,A,R);null==S||S.resetRequestCache(),globalThis.__incrementalCache=S;let T={params:v,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:S,cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g}},U=new l.NodeNextRequest(a),V=new l.NodeNextResponse(b),W=m.NextRequestAdapter.fromNodeNextRequest(U,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(W,T).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${N} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${N} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!R&&C&&D&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=T.renderOpts.fetchMetrics;let h=T.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=T.renderOpts.collectedTags;if(!I)return await (0,p.I)(U,V,d,T.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==T.renderOpts.collectedRevalidate&&!(T.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&T.renderOpts.collectedRevalidate,e=void 0===T.renderOpts.collectedExpire||T.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:T.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),b}},k=await z.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:R});if(!I)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});R||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return R&&I||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(U,V,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};Q&&P?await h(P):(e=O.getActiveScopeSpan(),await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},h),void 0,!Q))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),I)throw b;return await (0,p.I)(U,V,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},78582:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>l});var e=c(23211),f=c(40402),g=c(60103),h=c(59059),i=c(19989),j=c(12506),k=a([f]);async function l(a,{params:b}){try{let{id:a}=await b;if(!a)return e.NextResponse.json({error:"session id required"},{status:400});let c=await (0,f.os)(a);if(!c)return e.NextResponse.json({error:"session not found"},{status:404});let d=(0,g.f)(c);if(!d)return e.NextResponse.json({error:"no kernel state found"},{status:404});let k=(0,h.od)(a,d.cells),l=(0,i.X)(d.cells,k),m=(0,j.M$)(d,k);return e.NextResponse.json({...d,artifacts:k,notes:l,review:m})}catch(a){return e.NextResponse.json({error:String(a)},{status:500})}}f=(k.then?(await k)():k)[0],d()}catch(a){d(a)}})},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,7831,402,2562],()=>b(b.s=77848));module.exports=c})();
@@ -1 +0,0 @@
1
- globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sessions/[id]/kernel-state/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{},"edgeSSRModuleMapping":{},"clientModules":{},"entryCSSFiles":{"/home/runner/work/annovibe/annovibe/app/api/sessions/[id]/kernel-state/route":[]},"rscModuleMapping":{},"edgeRscModuleMapping":{}};
@@ -1 +0,0 @@
1
- "use strict";(()=>{var a={};a.id=3098,a.ids=[3098],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},54506:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(83533),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sessions/[id]/workbench-artifact/route",pathname:"/api/sessions/[id]/workbench-artifact",filename:"route",bundlePath:"app/api/sessions/[id]/workbench-artifact/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/annovibe/annovibe/app/api/sessions/[id]/workbench-artifact/route.ts",nextConfigOutput:"",userland:v}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/sessions/[id]/workbench-artifact/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(A.dynamicRoutes[H]||A.routes[E]),J=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!A.routes[E],b=A.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||z.isDev||y||(K=E,K="/index"===K?"/":K);let L=!0===z.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q=!!(null==B?void 0:B.isWrappedByNextServer),R=!!(0,h.getRequestMeta)(a,"minimalMode"),S=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,w,A,R);null==S||S.resetRequestCache(),globalThis.__incrementalCache=S;let T={params:v,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:S,cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g}},U=new l.NodeNextRequest(a),V=new l.NodeNextResponse(b),W=m.NextRequestAdapter.fromNodeNextRequest(U,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(W,T).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${N} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${N} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!R&&C&&D&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=T.renderOpts.fetchMetrics;let h=T.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=T.renderOpts.collectedTags;if(!I)return await (0,p.I)(U,V,d,T.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==T.renderOpts.collectedRevalidate&&!(T.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&T.renderOpts.collectedRevalidate,e=void 0===T.renderOpts.collectedExpire||T.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:T.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),b}},k=await z.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:R});if(!I)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});R||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return R&&I||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(U,V,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};Q&&P?await h(P):(e=O.getActiveScopeSpan(),await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},h),void 0,!Q))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),I)throw b;return await (0,p.I)(U,V,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},83533:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>k});var e=c(23211),f=c(40402),g=c(60103),h=c(59059),i=c(12506),j=a([f]);async function k(a,{params:b}){try{let{id:c}=await b,d=a.nextUrl.searchParams.get("path");if(!c)return e.NextResponse.json({error:"session id required"},{status:400});if(!d)return e.NextResponse.json({error:"path is required"},{status:400});let j=await (0,f.os)(c);if(!j)return e.NextResponse.json({error:"session not found"},{status:404});let k=(0,g.f)(j);if(!k)return e.NextResponse.json({artifact:null,reviewIssues:[]});let l=(0,h.od)(c,k.cells),m=l.find(a=>a.path===d)??null,n=(0,i.M$)(k,l);return e.NextResponse.json({artifact:m,reviewIssues:m?n.issues.filter(a=>a.artifactId===m.id):[]})}catch(a){return e.NextResponse.json({error:String(a)},{status:500})}}f=(j.then?(await j)():j)[0],d()}catch(a){d(a)}})},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,7831,402,2562],()=>b(b.s=54506));module.exports=c})();
@@ -1 +0,0 @@
1
- globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sessions/[id]/workbench-artifact/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{},"edgeSSRModuleMapping":{},"clientModules":{},"entryCSSFiles":{"/home/runner/work/annovibe/annovibe/app/api/sessions/[id]/workbench-artifact/route":[]},"rscModuleMapping":{},"edgeRscModuleMapping":{}};
@@ -1 +0,0 @@
1
- "use strict";(()=>{var a={};a.id=6700,a.ids=[6700],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},1762:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{handler:()=>y,patchFetch:()=>x,routeModule:()=>z,serverHooks:()=>C,workAsyncStorage:()=>A,workUnitAsyncStorage:()=>B});var e=c(19225),f=c(84006),g=c(8317),h=c(99373),i=c(34775),j=c(24235),k=c(261),l=c(54365),m=c(90771),n=c(73461),o=c(67798),p=c(92280),q=c(62018),r=c(45696),s=c(47929),t=c(86439),u=c(37527),v=c(41719),w=a([v]);v=(w.then?(await w)():w)[0];let z=new e.AppRouteRouteModule({definition:{kind:f.RouteKind.APP_ROUTE,page:"/api/sessions/[id]/workbench-review/route",pathname:"/api/sessions/[id]/workbench-review",filename:"route",bundlePath:"app/api/sessions/[id]/workbench-review/route"},distDir:".next",relativeProjectDir:"",resolvedPagePath:"/home/runner/work/annovibe/annovibe/app/api/sessions/[id]/workbench-review/route.ts",nextConfigOutput:"",userland:v}),{workAsyncStorage:A,workUnitAsyncStorage:B,serverHooks:C}=z;function x(){return(0,g.patchFetch)({workAsyncStorage:A,workUnitAsyncStorage:B})}async function y(a,b,c){c.requestMeta&&(0,h.setRequestMeta)(a,c.requestMeta),z.isDev&&(0,h.addRequestMeta)(a,"devRequestTimingInternalsEnd",process.hrtime.bigint());let d="/api/sessions/[id]/workbench-review/route";"/index"===d&&(d="/");let e=await z.prepare(a,b,{srcPage:d,multiZoneDraftMode:!1});if(!e)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:g,params:v,nextConfig:w,parsedUrl:x,isDraftMode:y,prerenderManifest:A,routerServerContext:B,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,resolvedPathname:E,clientReferenceManifest:F,serverActionsManifest:G}=e,H=(0,k.normalizeAppPath)(d),I=!!(A.dynamicRoutes[H]||A.routes[E]),J=async()=>((null==B?void 0:B.render404)?await B.render404(a,b,x,!1):b.end("This page could not be found"),null);if(I&&!y){let a=!!A.routes[E],b=A.dynamicRoutes[H];if(b&&!1===b.fallback&&!a){if(w.adapterPath)return await J();throw new t.NoFallbackError}}let K=null;!I||z.isDev||y||(K=E,K="/index"===K?"/":K);let L=!0===z.isDev||!I,M=I&&!L;G&&F&&(0,j.setManifestsSingleton)({page:d,clientReferenceManifest:F,serverActionsManifest:G});let N=a.method||"GET",O=(0,i.getTracer)(),P=O.getActiveScopeSpan(),Q=!!(null==B?void 0:B.isWrappedByNextServer),R=!!(0,h.getRequestMeta)(a,"minimalMode"),S=(0,h.getRequestMeta)(a,"incrementalCache")||await z.getIncrementalCache(a,w,A,R);null==S||S.resetRequestCache(),globalThis.__incrementalCache=S;let T={params:v,previewProps:A.preview,renderOpts:{experimental:{authInterrupts:!!w.experimental.authInterrupts},cacheComponents:!!w.cacheComponents,supportsDynamicResponse:L,incrementalCache:S,cacheLifeProfiles:w.cacheLife,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d,e)=>z.onRequestError(a,b,d,e,B)},sharedContext:{buildId:g}},U=new l.NodeNextRequest(a),V=new l.NodeNextResponse(b),W=m.NextRequestAdapter.fromNodeNextRequest(U,(0,m.signalFromNodeResponse)(b));try{let e,g=async a=>z.handle(W,T).finally(()=>{if(!a)return;a.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let c=O.getRootSpanAttributes();if(!c)return;if(c.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${c.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let f=c.get("next.route");if(f){let b=`${N} ${f}`;a.setAttributes({"next.route":f,"http.route":f,"next.span_name":b}),a.updateName(b),e&&e!==a&&(e.setAttribute("http.route",f),e.updateName(b))}else a.updateName(`${N} ${d}`)}),h=async e=>{var h,i;let j=async({previousCacheEntry:f})=>{try{if(!R&&C&&D&&!f)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let d=await g(e);a.fetchMetrics=T.renderOpts.fetchMetrics;let h=T.renderOpts.pendingWaitUntil;h&&c.waitUntil&&(c.waitUntil(h),h=void 0);let i=T.renderOpts.collectedTags;if(!I)return await (0,p.I)(U,V,d,T.renderOpts.pendingWaitUntil),null;{let a=await d.blob(),b=(0,q.toNodeOutgoingHttpHeaders)(d.headers);i&&(b[s.NEXT_CACHE_TAGS_HEADER]=i),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==T.renderOpts.collectedRevalidate&&!(T.renderOpts.collectedRevalidate>=s.INFINITE_CACHE)&&T.renderOpts.collectedRevalidate,e=void 0===T.renderOpts.collectedExpire||T.renderOpts.collectedExpire>=s.INFINITE_CACHE?void 0:T.renderOpts.collectedExpire;return{value:{kind:u.CachedRouteKind.APP_ROUTE,status:d.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:e}}}}catch(b){throw(null==f?void 0:f.isStale)&&await z.onRequestError(a,b,{routerKind:"App Router",routePath:d,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),b}},k=await z.handleResponse({req:a,nextConfig:w,cacheKey:K,routeKind:f.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:A,isRoutePPREnabled:!1,isOnDemandRevalidate:C,revalidateOnlyGenerated:D,responseGenerator:j,waitUntil:c.waitUntil,isMinimalMode:R});if(!I)return null;if((null==k||null==(h=k.value)?void 0:h.kind)!==u.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==k||null==(i=k.value)?void 0:i.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});R||b.setHeader("x-nextjs-cache",C?"REVALIDATED":k.isMiss?"MISS":k.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let l=(0,q.fromNodeOutgoingHttpHeaders)(k.value.headers);return R&&I||l.delete(s.NEXT_CACHE_TAGS_HEADER),!k.cacheControl||b.getHeader("Cache-Control")||l.get("Cache-Control")||l.set("Cache-Control",(0,r.getCacheControlHeader)(k.cacheControl)),await (0,p.I)(U,V,new Response(k.value.body,{headers:l,status:k.value.status||200})),null};Q&&P?await h(P):(e=O.getActiveScopeSpan(),await O.withPropagatedContext(a.headers,()=>O.trace(n.BaseServerSpan.handleRequest,{spanName:`${N} ${d}`,kind:i.SpanKind.SERVER,attributes:{"http.method":N,"http.target":a.url}},h),void 0,!Q))}catch(b){if(b instanceof t.NoFallbackError||await z.onRequestError(a,b,{routerKind:"App Router",routePath:H,routeType:"route",revalidateReason:(0,o.c)({isStaticGeneration:M,isOnDemandRevalidate:C})},!1,B),I)throw b;return await (0,p.I)(U,V,new Response(null,{status:500})),null}}d()}catch(a){d(a)}})},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},29021:a=>{a.exports=require("fs")},29294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},33873:a=>{a.exports=require("path")},41719:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{GET:()=>k});var e=c(23211),f=c(40402),g=c(60103),h=c(59059),i=c(12506),j=a([f]);async function k(a,{params:b}){try{let{id:a}=await b;if(!a)return e.NextResponse.json({error:"session id required"},{status:400});let c=await (0,f.os)(a);if(!c)return e.NextResponse.json({error:"session not found"},{status:404});let d=(0,g.f)(c);if(!d)return e.NextResponse.json({error:"no kernel state found"},{status:404});let j=(0,h.od)(a,d.cells);return e.NextResponse.json((0,i.M$)(d,j))}catch(a){return e.NextResponse.json({error:String(a)},{status:500})}}f=(j.then?(await j)():j)[0],d()}catch(a){d(a)}})},44870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},55511:a=>{a.exports=require("crypto")},63033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},75430:a=>{a.exports=import("@earendil-works/pi-coding-agent")},86439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")}};var b=require("../../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[4741,1813,7831,402,2562],()=>b(b.s=1762));module.exports=c})();
@@ -1 +0,0 @@
1
- globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/sessions/[id]/workbench-review/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{},"edgeSSRModuleMapping":{},"clientModules":{},"entryCSSFiles":{"/home/runner/work/annovibe/annovibe/app/api/sessions/[id]/workbench-review/route":[]},"rscModuleMapping":{},"edgeRscModuleMapping":{}};
@@ -1,12 +0,0 @@
1
- "use strict";exports.id=2562,exports.ids=[2562],exports.modules={12506:(a,b,c)=>{c.d(b,{M$:()=>e});var d=c(29021);function e(a,b){let c=function(a){let b=[];for(let c of a){if(!c.provenance){b.push({id:`${c.id}-missing-provenance`,severity:"error",code:"artifact_missing_provenance",title:"Artifact provenance is missing",detail:`${c.fileName} is missing the cell and tool-call context that produced it.`,artifactId:c.id});continue}(0,d.existsSync)(c.path)||b.push({id:`${c.id}-missing-file`,severity:"error",code:"artifact_missing_file",title:"Artifact file is missing",detail:`${c.fileName} was recorded in the session but does not exist on disk.`,artifactId:c.id,cellIndex:c.provenance.cellIndex}),"failed"===c.provenance.status&&b.push({id:`${c.id}-failed-cell`,severity:"warning",code:"artifact_failed_cell",title:"Artifact came from a failed cell",detail:`${c.fileName} is linked to cell #${c.provenance.cellIndex}, which failed. Check whether the file is stale or partial.`,artifactId:c.id,cellIndex:c.provenance.cellIndex}),"unknown"===c.provenance.status&&b.push({id:`${c.id}-unknown-status`,severity:"info",code:"artifact_unknown_cell_status",title:"Artifact run status is unknown",detail:`${c.fileName} is linked to cell #${c.provenance.cellIndex}, but the parser could not confirm success.`,artifactId:c.id,cellIndex:c.provenance.cellIndex})}return b}(b);return{generatedAt:new Date().toISOString(),issueCounts:{info:c.filter(a=>"info"===a.severity).length,warning:c.filter(a=>"warning"===a.severity).length,error:c.filter(a=>"error"===a.severity).length},issues:c}}},59059:(a,b,c)=>{c.d(b,{od:()=>l});var d=c(55511),e=c(33873),f=c.n(e);let g=new Set(["png","jpg","jpeg","webp","gif","svg"]),h=new Set(["csv","tsv","xlsx","xls","parquet"]),i=new Set(["ipynb"]),j=new Set(["pdf","html","htm","docx","pptx"]),k=new Set(["rds","qs","h5ad","h5","loom","pkl"]);function l(a,b){let c=[];for(let m of b)for(let b of m.artifacts){var e,l;c.push({id:(e=m.toolCallId,l=b.path,(0,d.createHash)("sha1").update(`${a}|${e}|${l}`).digest("hex").slice(0,12)),path:b.path,fileName:f().basename(b.path),kind:function(a,b){if(b?.startsWith("image/"))return"image";let c=f().basename(a).toLowerCase().split(".").pop()??"";return g.has(c)?"image":h.has(c)?"table":i.has(c)?"notebook":j.has(c)?"document":k.has(c)?"data":"other"}(b.path,b.mimeType),mimeType:b.mimeType,provenance:{sessionId:a,cellIndex:m.index,toolCallId:m.toolCallId,runId:m.runId,language:m.language,runtime:m.runtime,kernelId:m.kernelId,title:m.title,code:m.code,status:m.status,stdoutPreview:m.stdoutPreview,stderrPreview:m.stderrPreview,createdAt:m.createdAt}})}return c}},60103:(a,b,c)=>{c.d(b,{f:()=>g,v:()=>h});var d=c(29021);function e(a,b){let c=a.split("\n"),d=[],e="python"===b?[/^(\w+)\s*=\s*(?:sc\.read|scanpy\.read|pd\.read_csv|pd\.read_parquet|pd\.read_excel|pd\.read_table|pd\.read_hdf|dd\.read_csv)\(/,/^(\w+)\s*=\s*(?:np\.load|pickle\.load)\(/]:[/^(\w+)\s*<-\s*(?:readRDS|read\.rds|qread|qs::qread|read\.qs|read_csv|read\.csv|read_parquet)\(/,/^(\w+)\s*=\s*(?:readRDS|read\.rds|qread|qs::qread|read\.qs|read_csv|read\.csv)\(/];for(let a of c){let b=a.trim();for(let c of e){let e=b.match(c);if(e){d.push({name:e[1],source:a.trim(),loadedInRun:-1});break}}}return d}function f(a){if("string"==typeof a)try{return JSON.parse(a)}catch{return null}return"object"!=typeof a||null===a||Array.isArray(a)?null:a}function g(a){let b;try{b=(0,d.readFileSync)(a,"utf-8")}catch{return null}let c=b.split("\n").filter(a=>a.trim()),g=[],h=new Map,i=new Set,j=new Set,k=new Map,l=[],m=null,n=null;for(let a of c){let b=function(a){try{return JSON.parse(a)}catch{return null}}(a);if(!b||"message"!==b.type)continue;let c=b.message;if(!c)continue;let d=c.role,p=c.content;if(p){if("assistant"===d)for(let a of p){let c=a.type;if("toolCall"!==c&&"tool_call"!==c)continue;let d=a.name??a.toolName;if("kernel_plot_run"!==d&&"kernel_plot_render"!==d&&"kernel_plot_inspect"!==d)continue;let f=a.toolCallId??a.id,l=function(a){let b=a.input??a.arguments;if("object"==typeof b&&null!==b&&!Array.isArray(b))return b;if("string"==typeof b)try{return JSON.parse(b)}catch{}return null}(a);if(!l||!f)continue;if("kernel_plot_inspect"===d){i.add(f);let a="string"==typeof l.language?l.language:null,b="string"==typeof l.kernelId?l.kernelId:void 0;a&&(m=a),b&&(n=b);continue}let o="string"==typeof l.code?l.code:"",p="string"==typeof b.timestamp?b.timestamp:void 0,q="string"==typeof l.language?l.language:null,r="string"==typeof l.runtime?l.runtime:void 0,s="string"==typeof l.kernelId?l.kernelId:void 0,t="string"==typeof l.title&&l.title.trim()?l.title.trim():function(a){let b=a.split("\n")[0]?.trim()??"";return b.startsWith("import ")||b.startsWith("from ")||b.startsWith("library(")?"":b.replace(/^#\s*/,"").slice(0,80)}(o)||("kernel_plot_run"===d?"kernel_plot_run":"kernel_plot_render");if(q&&(m=q),s&&(n=s),q){for(let a of function(a,b){let c=a.split("\n"),d=[];for(let a of c){let c=a.trim();"python"===b?(c.startsWith("import ")||c.startsWith("from "))&&d.push(c.replace(/\s*#.*$/,"").trim()):"r"===b&&c.match(/^(library|require)\(/)&&d.push(c)}return d}(o,q))j.add(a);for(let a of e(o,q))k.set(a.name,a)}let u={index:g.length+1,toolCallId:f,language:q??"python",runtime:r,kernelId:s,title:t,code:o,status:"unknown",stdoutPreview:"",stderrPreview:"",artifacts:[],createdAt:p};g.push(u),h.set(f,{cell:u})}else if("toolResult"===d||"tool_result"===d){let a=c.toolCallId??c.id;if(!a)continue;let b="";for(let a of p)"text"===a.type&&"string"==typeof a.text&&(b+=a.text+"\n");if(i.has(a)){let a=f(c.details);a?.objects&&Array.isArray(a.objects)&&(l=a.objects.reduce((a,b)=>{if(!b||"object"!=typeof b)return a;let c="string"==typeof b.name?b.name:"",d="string"==typeof b.type?b.type:"";return c&&a.push({name:c,type:d,shape:"string"==typeof b.shape?b.shape:null,attrs:"string"==typeof b.attrs?b.attrs:null}),a},[]));continue}let d=h.get(a);if(d){let a=d.cell,e=f(c.details);if(a){var o;if(e?.run&&"object"==typeof e.run&&!Array.isArray(e.run)){let b=e.run;"string"==typeof b.runId&&(a.runId=b.runId)}let c=b.match(/stdout:\n?([\s\S]*?)(?:\nstderr:|\nerror:|\n?$)/),d=b.match(/stderr:\n?([\s\S]*?)(?:\nartifacts:|\nerror:|\n?$)/);a.stdoutPreview=(c?.[1]??"").trim().slice(0,2e3),a.stderrPreview=(d?.[1]??"").trim().slice(0,2e3),a.status=b.includes("succeeded")||b.includes("kernel_plot_run succeeded")?"succeeded":b.includes("failed")||b.includes("error")?"failed":"unknown",e?.artifacts&&(a.artifacts=Array.isArray(o=e.artifacts)?o.map(a=>"string"==typeof a?{path:a}:"object"==typeof a&&null!==a?{path:("string"==typeof a.path?a.path:"")||("string"==typeof a.filePath?a.filePath:""),kind:"string"==typeof a.kind?a.kind:void 0,mimeType:"string"==typeof a.mimeType?a.mimeType:void 0}:{path:""}).filter(a=>a.path):[])}}}}}if(0===g.length)return null;for(let a of g)for(let b of e(a.code,a.language)){let c=k.get(b.name);c&&-1===c.loadedInRun&&(c.loadedInRun=a.index)}return{freshness:l.length>0?"live":"inferred",language:m,kernelId:n,totalRuns:g.length,imports:[...j],liveObjects:l,loadedObjects:[...k.values()].filter(a=>a.loadedInRun>=0),recentRuns:g.slice(-5).map(a=>({index:a.index,title:a.title,status:a.status})),cells:g}}function h(a){let b=[`<workbench-kernel-state freshness="${a.freshness}">`],c=a.language??"?",d=a.kernelId?` \xb7 kernel: ${a.kernelId}`:"";if(b.push(`${"python"===c?"Python":"R"} kernel-lite has executed ${a.totalRuns} runs${d}.`),"live"===a.freshness?b.push("This state comes from the latest kernel_plot_inspect live runtime inspection."):(b.push("This state is inferred from prior code cells, not live-inspected. If the workbench session/kernel may have restarted, verify required objects before using or reloading them."),b.push(`Suggestion: if this session has just been resumed or the kernel may have restarted, run kernel_plot_inspect(language="${"python"===c?"python":"r"}") to check which objects are still live.`)),a.imports.length>0){let c=a.imports.map(a=>a.replace(/\s*#.*$/,"").trim()).filter((a,b,c)=>c.indexOf(a)===b);for(let a of(b.push(`
2
- Historically imported packages (inferred):`),c.slice(0,15)))b.push(` ${a}`);c.length>15&&b.push(` ... and ${c.length-15} more`)}if("live"===a.freshness&&a.liveObjects.length>0)for(let c of(b.push(`
3
- Live objects currently in memory:`),a.liveObjects.slice(0,12)))b.push(` ${c.name}: ${c.type}${c.shape?` (${c.shape})`:""}${c.attrs?` — ${c.attrs}`:""}`);else if(a.loadedObjects.length>0)for(let c of(b.push(`
4
- Historically loaded objects (may still be in memory — verify before reloading):`),a.loadedObjects.slice(0,8)))b.push(` ${c.name} (loaded in run #${c.loadedInRun})`);if(a.recentRuns.length>0)for(let c of(b.push(`
5
- Recent runs:`),a.recentRuns)){let a="succeeded"===c.status?"✅":"failed"===c.status?"❌":"⬜";b.push(` #${c.index} ${a} ${c.title}`)}return b.push(`
6
- Rules:
7
- - If freshness is live and a required object is listed, reuse it and do not reload.
8
- - If freshness is inferred or a required object is not listed, first inspect/check existence before loading.
9
- - Cheap package imports are acceptable after a resume if needed, but avoid repeating boilerplate in every call.
10
- - For large objects, first check existence: Python: if 'name' not in globals() — R: if (!exists('name')).
11
- - Do NOT call sc.read() / readRDS() / qread() blindly at the top of every call.
12
- - If a required object is missing after a resumed session, reload only that missing object from its known source path, then continue using it.`),b.push("</workbench-kernel-state>"),b.join("\n")}}};