@seqyuan/annodex 0.1.12 → 0.1.13
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.
- package/.next/BUILD_ID +1 -0
- package/.next/app-path-routes-manifest.json +39 -0
- package/.next/build-manifest.json +20 -0
- package/.next/diagnostics/build-diagnostics.json +6 -0
- package/.next/diagnostics/framework.json +1 -0
- package/.next/export-marker.json +6 -0
- package/.next/images-manifest.json +68 -0
- package/.next/next-minimal-server.js.nft.json +1 -0
- package/.next/next-server.js.nft.json +1 -0
- package/.next/package.json +1 -0
- package/.next/prerender-manifest.json +109 -0
- package/.next/react-loadable-manifest.json +2320 -0
- package/.next/required-server-files.js +343 -0
- package/.next/required-server-files.json +343 -0
- package/.next/routes-manifest.json +286 -0
- package/.next/server/app/_global-error/page.js +32 -0
- package/.next/server/app/_global-error/page.js.nft.json +1 -0
- package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -0
- package/.next/server/app/_global-error.html +1 -0
- package/.next/server/app/_global-error.meta +16 -0
- package/.next/server/app/_global-error.rsc +14 -0
- package/.next/server/app/_global-error.segments/_full.segment.rsc +14 -0
- package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +5 -0
- package/.next/server/app/_global-error.segments/_global-error.segment.rsc +5 -0
- package/.next/server/app/_global-error.segments/_head.segment.rsc +5 -0
- package/.next/server/app/_global-error.segments/_index.segment.rsc +5 -0
- package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
- package/.next/server/app/_not-found/page.js +2 -0
- package/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
- package/.next/server/app/_not-found.html +1 -0
- package/.next/server/app/_not-found.meta +16 -0
- package/.next/server/app/_not-found.rsc +18 -0
- package/.next/server/app/_not-found.segments/_full.segment.rsc +18 -0
- package/.next/server/app/_not-found.segments/_head.segment.rsc +6 -0
- package/.next/server/app/_not-found.segments/_index.segment.rsc +5 -0
- package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
- package/.next/server/app/_not-found.segments/_not-found.segment.rsc +5 -0
- package/.next/server/app/_not-found.segments/_tree.segment.rsc +4 -0
- package/.next/server/app/api/agent/[id]/events/route.js +3 -0
- package/.next/server/app/api/agent/[id]/events/route.js.nft.json +1 -0
- package/.next/server/app/api/agent/[id]/events/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/agent/[id]/route.js +1 -0
- package/.next/server/app/api/agent/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/agent/[id]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/agent/new/route.js +1 -0
- package/.next/server/app/api/agent/new/route.js.nft.json +1 -0
- package/.next/server/app/api/agent/new/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/auth/all-providers/route.js +1 -0
- package/.next/server/app/api/auth/all-providers/route.js.nft.json +1 -0
- package/.next/server/app/api/auth/all-providers/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -0
- package/.next/server/app/api/auth/api-key/[provider]/route.js.nft.json +1 -0
- package/.next/server/app/api/auth/api-key/[provider]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/auth/login/[provider]/route.js +1 -0
- package/.next/server/app/api/auth/login/[provider]/route.js.nft.json +1 -0
- package/.next/server/app/api/auth/login/[provider]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/auth/login/route.js +1 -0
- package/.next/server/app/api/auth/login/route.js.nft.json +1 -0
- package/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/auth/logout/[provider]/route.js +1 -0
- package/.next/server/app/api/auth/logout/[provider]/route.js.nft.json +1 -0
- package/.next/server/app/api/auth/logout/[provider]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/auth/providers/route.js +1 -0
- package/.next/server/app/api/auth/providers/route.js.nft.json +1 -0
- package/.next/server/app/api/auth/providers/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/auth/status/route.js +1 -0
- package/.next/server/app/api/auth/status/route.js.nft.json +1 -0
- package/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/default-cwd/route.js +1 -0
- package/.next/server/app/api/default-cwd/route.js.nft.json +1 -0
- package/.next/server/app/api/default-cwd/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/files/[...path]/route.js +4 -0
- package/.next/server/app/api/files/[...path]/route.js.nft.json +1 -0
- package/.next/server/app/api/files/[...path]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/harness/route.js +1 -0
- package/.next/server/app/api/harness/route.js.nft.json +1 -0
- package/.next/server/app/api/harness/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/home/route.js +1 -0
- package/.next/server/app/api/home/route.js.nft.json +1 -0
- package/.next/server/app/api/home/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/internal/runtime/route.js +1 -0
- package/.next/server/app/api/internal/runtime/route.js.nft.json +1 -0
- package/.next/server/app/api/internal/runtime/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/models/route.js +1 -0
- package/.next/server/app/api/models/route.js.nft.json +1 -0
- package/.next/server/app/api/models/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/models-config/discover/route.js +1 -0
- package/.next/server/app/api/models-config/discover/route.js.nft.json +1 -0
- package/.next/server/app/api/models-config/discover/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/models-config/route.js +1 -0
- package/.next/server/app/api/models-config/route.js.nft.json +1 -0
- package/.next/server/app/api/models-config/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/models-config/test/route.js +1 -0
- package/.next/server/app/api/models-config/test/route.js.nft.json +1 -0
- package/.next/server/app/api/models-config/test/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/projects/browse/route.js +1 -0
- package/.next/server/app/api/projects/browse/route.js.nft.json +1 -0
- package/.next/server/app/api/projects/browse/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/projects/route.js +1 -0
- package/.next/server/app/api/projects/route.js.nft.json +1 -0
- package/.next/server/app/api/projects/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/reports/[id]/route.js +10 -0
- package/.next/server/app/api/reports/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/reports/[id]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/search/route.js +1 -0
- package/.next/server/app/api/search/route.js.nft.json +1 -0
- package/.next/server/app/api/search/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/[id]/context/route.js +1 -0
- package/.next/server/app/api/sessions/[id]/context/route.js.nft.json +1 -0
- package/.next/server/app/api/sessions/[id]/context/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/[id]/route.js +1 -0
- package/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -0
- package/.next/server/app/api/sessions/[id]/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/new/route.js +1 -0
- package/.next/server/app/api/sessions/new/route.js.nft.json +1 -0
- package/.next/server/app/api/sessions/new/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/sessions/route.js +1 -0
- package/.next/server/app/api/sessions/route.js.nft.json +1 -0
- package/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/settings/route.js +1 -0
- package/.next/server/app/api/settings/route.js.nft.json +1 -0
- package/.next/server/app/api/settings/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/skills/install/route.js +5 -0
- package/.next/server/app/api/skills/install/route.js.nft.json +1 -0
- package/.next/server/app/api/skills/install/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/skills/route.js +6 -0
- package/.next/server/app/api/skills/route.js.nft.json +1 -0
- package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/skills/search/route.js +1 -0
- package/.next/server/app/api/skills/search/route.js.nft.json +1 -0
- package/.next/server/app/api/skills/search/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/soul/route.js +1 -0
- package/.next/server/app/api/soul/route.js.nft.json +1 -0
- package/.next/server/app/api/soul/route_client-reference-manifest.js +1 -0
- package/.next/server/app/api/version/route.js +1 -0
- package/.next/server/app/api/version/route.js.nft.json +1 -0
- package/.next/server/app/api/version/route_client-reference-manifest.js +1 -0
- package/.next/server/app/index.html +1 -0
- package/.next/server/app/index.meta +14 -0
- package/.next/server/app/index.rsc +17 -0
- package/.next/server/app/index.segments/__PAGE__.segment.rsc +6 -0
- package/.next/server/app/index.segments/_full.segment.rsc +17 -0
- package/.next/server/app/index.segments/_head.segment.rsc +6 -0
- package/.next/server/app/index.segments/_index.segment.rsc +5 -0
- package/.next/server/app/index.segments/_tree.segment.rsc +4 -0
- package/.next/server/app/login/page.js +2 -0
- package/.next/server/app/login/page.js.nft.json +1 -0
- package/.next/server/app/login/page_client-reference-manifest.js +1 -0
- package/.next/server/app/login.html +1 -0
- package/.next/server/app/login.meta +15 -0
- package/.next/server/app/login.rsc +22 -0
- package/.next/server/app/login.segments/_full.segment.rsc +22 -0
- package/.next/server/app/login.segments/_head.segment.rsc +6 -0
- package/.next/server/app/login.segments/_index.segment.rsc +5 -0
- package/.next/server/app/login.segments/_tree.segment.rsc +4 -0
- package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +9 -0
- package/.next/server/app/login.segments/login.segment.rsc +5 -0
- package/.next/server/app/page.js +261 -0
- package/.next/server/app/page.js.nft.json +1 -0
- package/.next/server/app/page_client-reference-manifest.js +1 -0
- package/.next/server/app-paths-manifest.json +39 -0
- package/.next/server/chunks/1048.js +1 -0
- package/.next/server/chunks/1367.js +77 -0
- package/.next/server/chunks/1381.js +1 -0
- package/.next/server/chunks/165.js +1 -0
- package/.next/server/chunks/1681.js +215 -0
- package/.next/server/chunks/1688.js +45 -0
- package/.next/server/chunks/1703.js +79 -0
- package/.next/server/chunks/1712.js +43 -0
- package/.next/server/chunks/1813.js +1 -0
- package/.next/server/chunks/2325.js +80 -0
- package/.next/server/chunks/258.js +1 -0
- package/.next/server/chunks/2671.js +287 -0
- package/.next/server/chunks/2778.js +1 -0
- package/.next/server/chunks/2943.js +1 -0
- package/.next/server/chunks/3031.js +226 -0
- package/.next/server/chunks/3181.js +1 -0
- package/.next/server/chunks/3493.js +1 -0
- package/.next/server/chunks/3672.js +1 -0
- package/.next/server/chunks/3701.js +104 -0
- package/.next/server/chunks/4013.js +1 -0
- package/.next/server/chunks/402.js +2 -0
- package/.next/server/chunks/4035.js +80 -0
- package/.next/server/chunks/4248.js +153 -0
- package/.next/server/chunks/4367.js +1 -0
- package/.next/server/chunks/4406.js +141 -0
- package/.next/server/chunks/4741.js +18 -0
- package/.next/server/chunks/4768.js +1 -0
- package/.next/server/chunks/4858.js +148 -0
- package/.next/server/chunks/4980.js +1 -0
- package/.next/server/chunks/5155.js +5 -0
- package/.next/server/chunks/5293.js +166 -0
- package/.next/server/chunks/5399.js +8 -0
- package/.next/server/chunks/5409.js +1 -0
- package/.next/server/chunks/5797.js +93 -0
- package/.next/server/chunks/5851.js +36 -0
- package/.next/server/chunks/6206.js +1 -0
- package/.next/server/chunks/6296.js +1 -0
- package/.next/server/chunks/63.js +45 -0
- package/.next/server/chunks/6346.js +1 -0
- package/.next/server/chunks/6406.js +23 -0
- package/.next/server/chunks/642.js +1 -0
- package/.next/server/chunks/6429.js +50 -0
- package/.next/server/chunks/6729.js +64 -0
- package/.next/server/chunks/6907.js +115 -0
- package/.next/server/chunks/6980.js +1 -0
- package/.next/server/chunks/7073.js +24 -0
- package/.next/server/chunks/7233.js +24 -0
- package/.next/server/chunks/7307.js +1 -0
- package/.next/server/chunks/7362.js +9 -0
- package/.next/server/chunks/7567.js +29 -0
- package/.next/server/chunks/7765.js +1 -0
- package/.next/server/chunks/7890.js +1 -0
- package/.next/server/chunks/8065.js +1 -0
- package/.next/server/chunks/8238.js +34 -0
- package/.next/server/chunks/8276.js +1 -0
- package/.next/server/chunks/8336.js +1 -0
- package/.next/server/chunks/8477.js +3 -0
- package/.next/server/chunks/8490.js +1 -0
- package/.next/server/chunks/8916.js +1 -0
- package/.next/server/chunks/9280.js +252 -0
- package/.next/server/chunks/9315.js +1 -0
- package/.next/server/chunks/9537.js +90 -0
- package/.next/server/chunks/966.js +1 -0
- package/.next/server/chunks/9818.js +21 -0
- package/.next/server/chunks/static/media/pdf.worker.min.c476e1a0.mjs +6 -0
- package/.next/server/functions-config-manifest.json +16 -0
- package/.next/server/interception-route-rewrite-manifest.js +1 -0
- package/.next/server/middleware-build-manifest.js +1 -0
- package/.next/server/middleware-manifest.json +6 -0
- package/.next/server/middleware-react-loadable-manifest.js +1 -0
- package/.next/server/middleware.js +18 -0
- package/.next/server/middleware.js.nft.json +1 -0
- package/.next/server/next-font-manifest.js +1 -0
- package/.next/server/next-font-manifest.json +1 -0
- package/.next/server/pages/404.html +1 -0
- package/.next/server/pages/500.html +1 -0
- package/.next/server/pages-manifest.json +4 -0
- package/.next/server/prefetch-hints.json +1 -0
- package/.next/server/server-reference-manifest.js +1 -0
- package/.next/server/server-reference-manifest.json +1 -0
- package/.next/server/webpack-runtime.js +1 -0
- package/.next/static/chunks/0b9a0da7.9075af772487e743.js +62 -0
- package/.next/static/chunks/1413.922d232de90c0c41.js +115 -0
- package/.next/static/chunks/1643.467a526a1f24f54d.js +24 -0
- package/.next/static/chunks/1852.5543122f11aa7fed.js +1 -0
- package/.next/static/chunks/1960.b1e26436d7a5f586.js +1 -0
- package/.next/static/chunks/2170a4aa.4213bb2183c9cdf9.js +1 -0
- package/.next/static/chunks/2274.6cd173f80a1405a2.js +21 -0
- package/.next/static/chunks/2419.347fdfe3c170854d.js +166 -0
- package/.next/static/chunks/2619.9aac8983f30c7c8a.js +1 -0
- package/.next/static/chunks/2623.d20fabd8e18197c6.js +287 -0
- package/.next/static/chunks/2729.f5365061a849d659.js +34 -0
- package/.next/static/chunks/2821.934bcf60fbdc28c6.js +1 -0
- package/.next/static/chunks/2918becc.abff2ece1de37bc1.js +153 -0
- package/.next/static/chunks/2947.114e51cb06d1c01a.js +23 -0
- package/.next/static/chunks/3079.4c511fa1144e3adf.js +79 -0
- package/.next/static/chunks/3274.208ca44844cd7d95.js +148 -0
- package/.next/static/chunks/3308.465a94263d04bfea.js +73 -0
- package/.next/static/chunks/3325.e4bfe1ca657f3b5b.js +80 -0
- package/.next/static/chunks/3506.2a7eaa08b9f55337.js +90 -0
- package/.next/static/chunks/363642f4-043c1475ab9af70e.js +1 -0
- package/.next/static/chunks/3794-123fdf632563f469.js +32 -0
- package/.next/static/chunks/3837.a755ccfe6f9c1c1c.js +5 -0
- package/.next/static/chunks/394.91597771688df6d0.js +1 -0
- package/.next/static/chunks/3997.1009c06025691712.js +1 -0
- package/.next/static/chunks/4453.91a357dc43c21745.js +1 -0
- package/.next/static/chunks/4491.44fdf20580ac72bd.js +24 -0
- package/.next/static/chunks/4829.cf1d50e43e6d9db5.js +1 -0
- package/.next/static/chunks/498.fe1d9da9ecad6c36.js +1 -0
- package/.next/static/chunks/4bd1b696-e356ca5ba0218e27.js +1 -0
- package/.next/static/chunks/5019.b5a1a2b8daf17525.js +1 -0
- package/.next/static/chunks/5034.8f16c3fa3ce75411.js +1 -0
- package/.next/static/chunks/5074.d16651da01ec4e02.js +1 -0
- package/.next/static/chunks/51fb665c.0950e1b79671348d.js +45 -0
- package/.next/static/chunks/532.5956ed631aff722b.js +9 -0
- package/.next/static/chunks/5326.69460442bdcd6cd3.js +1 -0
- package/.next/static/chunks/5403.ff110bf5bf600758.js +64 -0
- package/.next/static/chunks/547.902a733488cfe3f7.js +77 -0
- package/.next/static/chunks/5567.540d7fc108ad6ee5.js +215 -0
- package/.next/static/chunks/5590.ef62922166d308b4.js +1 -0
- package/.next/static/chunks/5690.9d6eb1edb1399995.js +1 -0
- package/.next/static/chunks/5749.25faee4a1e55b854.js +226 -0
- package/.next/static/chunks/58bb9007.1ccb6bba34b4c635.js +80 -0
- package/.next/static/chunks/6121.f3f43f1896ea0cd9.js +1 -0
- package/.next/static/chunks/6600.583c88eef37aa524.js +1 -0
- package/.next/static/chunks/6696.a41aec266e657d54.js +141 -0
- package/.next/static/chunks/6922.42148793782d2fe7.js +1 -0
- package/.next/static/chunks/7006.e191611ffc2b9528.js +43 -0
- package/.next/static/chunks/7343.9fbb58204d8ac681.js +1 -0
- package/.next/static/chunks/73972abe.25a4cffa03b2bcef.js +119 -0
- package/.next/static/chunks/7547.58bda8a2aabba0d4.js +93 -0
- package/.next/static/chunks/7648.4ae2f183b4db0353.js +1 -0
- package/.next/static/chunks/7874.8db6929b94cdf697.js +1 -0
- package/.next/static/chunks/7959.1f20a35df316216a.js +104 -0
- package/.next/static/chunks/83.85d62d7fc9850b75.js +29 -0
- package/.next/static/chunks/8436.cab94b59cca0a8ff.js +1 -0
- package/.next/static/chunks/8451.ff6ff72b57dc52e1.js +1 -0
- package/.next/static/chunks/8489.45f22859734f514f.js +36 -0
- package/.next/static/chunks/8568.f85d8b36fc9a9037.js +1 -0
- package/.next/static/chunks/8771-3e14b6810486df1f.js +1 -0
- package/.next/static/chunks/8863.be51033a67436277.js +1 -0
- package/.next/static/chunks/90542734.dc1a2723e4f6affb.js +1 -0
- package/.next/static/chunks/9500.1488aec06ee78127.js +1 -0
- package/.next/static/chunks/9633.155548b5fca6e580.js +1 -0
- package/.next/static/chunks/9779.673004a62d70e36a.js +1 -0
- package/.next/static/chunks/app/_global-error/page-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/_not-found/page-c72daab99269beff.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/events/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/agent/[id]/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/agent/new/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/auth/all-providers/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/auth/api-key/[provider]/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/auth/login/[provider]/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/auth/login/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/auth/logout/[provider]/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/auth/providers/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/auth/status/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/default-cwd/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/files/[...path]/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/harness/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/home/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/internal/runtime/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/models/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/models-config/discover/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/models-config/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/models-config/test/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/projects/browse/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/projects/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/reports/[id]/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/search/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/context/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/sessions/[id]/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/sessions/new/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/sessions/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/settings/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/skills/install/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/skills/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/skills/search/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/soul/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/api/version/route-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/app/layout-be148b7ae915b22a.js +1 -0
- package/.next/static/chunks/app/login/page-ebf0e6de99062783.js +1 -0
- package/.next/static/chunks/app/page-0594cb7a3cbb0211.js +260 -0
- package/.next/static/chunks/d3ac728e.7964f816a1ca64e5.js +1 -0
- package/.next/static/chunks/framework-711ef29bc66f648c.js +1 -0
- package/.next/static/chunks/main-app-45a0f19af99d61b6.js +1 -0
- package/.next/static/chunks/main-f74964b7ae52493e.js +5 -0
- package/.next/static/chunks/next/dist/client/components/builtin/app-error-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/forbidden-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/global-error-9bfa08b9491621f2.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/not-found-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-cc518af6b1ffb191.js +1 -0
- package/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
- package/.next/static/chunks/webpack-fcf4a889ecbd753c.js +1 -0
- package/.next/static/css/45029451a1d7255d.css +3 -0
- package/.next/static/media/15605e25b523335c-s.woff2 +0 -0
- package/.next/static/media/1a3dce5cfb5f7760-s.woff2 +0 -0
- package/.next/static/media/1cdd02902f937a18-s.woff2 +0 -0
- package/.next/static/media/4c4b3b30b6bcb2be-s.woff2 +0 -0
- package/.next/static/media/641a7b8a5800ee0e-s.woff2 +0 -0
- package/.next/static/media/7deddc85b7ffd1dc-s.p.woff2 +0 -0
- package/.next/static/media/ec14413c594b3356-s.p.woff2 +0 -0
- package/.next/static/media/pdf.worker.min.29aaf158.mjs +6 -0
- package/.next/static/nmfQlwnkhzbPmuiCmhW-_/_buildManifest.js +1 -0
- package/.next/static/nmfQlwnkhzbPmuiCmhW-_/_ssgManifest.js +1 -0
- package/package.json +21 -21
- package/app/api/agent/[id]/events/route.ts +0 -94
- package/app/api/agent/[id]/route.ts +0 -83
- package/app/api/agent/new/route.ts +0 -53
- package/app/api/auth/all-providers/route.ts +0 -21
- package/app/api/auth/api-key/[provider]/route.ts +0 -7
- package/app/api/auth/login/[provider]/route.ts +0 -7
- package/app/api/auth/login/route.ts +0 -22
- package/app/api/auth/logout/[provider]/route.ts +0 -7
- package/app/api/auth/providers/route.ts +0 -15
- package/app/api/auth/status/route.ts +0 -6
- package/app/api/default-cwd/route.ts +0 -22
- package/app/api/files/[...path]/route.ts +0 -621
- package/app/api/harness/route.ts +0 -47
- package/app/api/home/route.ts +0 -6
- package/app/api/internal/runtime/route.ts +0 -26
- package/app/api/models/route.ts +0 -67
- package/app/api/models-config/discover/route.ts +0 -42
- package/app/api/models-config/route.ts +0 -152
- package/app/api/models-config/test/route.ts +0 -154
- package/app/api/projects/browse/route.ts +0 -51
- package/app/api/projects/route.ts +0 -83
- package/app/api/reports/[id]/route.ts +0 -108
- package/app/api/search/route.ts +0 -122
- package/app/api/sessions/[id]/context/route.ts +0 -23
- package/app/api/sessions/[id]/route.ts +0 -124
- package/app/api/sessions/new/route.ts +0 -5
- package/app/api/sessions/route.ts +0 -16
- package/app/api/settings/route.ts +0 -51
- package/app/api/skills/install/route.ts +0 -249
- package/app/api/skills/route.ts +0 -161
- package/app/api/skills/search/route.ts +0 -121
- package/app/api/soul/route.ts +0 -47
- package/app/api/version/route.ts +0 -55
- package/app/globals.css +0 -736
- package/app/layout.tsx +0 -40
- package/app/login/page.tsx +0 -133
- package/app/page.tsx +0 -10
- package/components/AppShell.tsx +0 -1058
- package/components/ChatInput.tsx +0 -1103
- package/components/ChatMinimap.tsx +0 -381
- package/components/ChatWindow.tsx +0 -576
- package/components/CodeMirrorEditor.tsx +0 -137
- package/components/ConversationSearch.tsx +0 -369
- package/components/DataTableViewer.tsx +0 -248
- package/components/FileExplorer.tsx +0 -758
- package/components/FileIcons.tsx +0 -241
- package/components/FileViewer.tsx +0 -1273
- package/components/GlobalFileEditor.tsx +0 -98
- package/components/MarkdownRenderer.tsx +0 -331
- package/components/MermaidDiagram.tsx +0 -80
- package/components/MessageView.tsx +0 -1141
- package/components/ModelsConfig.tsx +0 -1991
- package/components/ProjectContext.tsx +0 -252
- package/components/ProjectFolderPicker.tsx +0 -202
- package/components/ProjectsConfig.tsx +0 -288
- package/components/ProviderIcons.tsx +0 -91
- package/components/ReportPanel.tsx +0 -237
- package/components/ResizeHandle.tsx +0 -105
- package/components/SessionSidebar.tsx +0 -1464
- package/components/SettingsDialog.tsx +0 -287
- package/components/SkillsConfig.tsx +0 -1093
- package/components/SubagentPanel.tsx +0 -191
- package/components/TabBar.tsx +0 -115
- package/components/ToolPanel.tsx +0 -131
- package/components/WidgetRenderer.tsx +0 -505
- package/components/viewers/DocumentToolbar.tsx +0 -78
- package/components/viewers/DocxViewer.tsx +0 -97
- package/components/viewers/PdfViewer.tsx +0 -206
- package/components/viewers/PptxViewer.tsx +0 -240
- package/components/viewers/XlsxViewer.tsx +0 -143
- package/hooks/useAgentSession.ts +0 -710
- package/hooks/useAudio.ts +0 -50
- package/hooks/useDragDrop.ts +0 -52
- package/hooks/useResizable.ts +0 -60
- package/hooks/useTheme.ts +0 -85
- package/lib/agent-client.ts +0 -39
- package/lib/annodex-config.ts +0 -556
- package/lib/auth-token.ts +0 -74
- package/lib/auth.ts +0 -90
- package/lib/brand.ts +0 -5
- package/lib/code-theme.ts +0 -32
- package/lib/codex-compat-proxy.ts +0 -1603
- package/lib/codex-home.ts +0 -6
- package/lib/codex-server.ts +0 -796
- package/lib/codex-session.ts +0 -590
- package/lib/codex-usage.ts +0 -213
- package/lib/file-paths.ts +0 -34
- package/lib/model-discovery.ts +0 -379
- package/lib/normalize.ts +0 -30
- package/lib/npx.ts +0 -87
- package/lib/pi-types.ts +0 -49
- package/lib/projects.ts +0 -269
- package/lib/provider-api.ts +0 -88
- package/lib/report-prompt.ts +0 -61
- package/lib/report-store.ts +0 -597
- package/lib/report-update-parser.ts +0 -66
- package/lib/rpc-manager.ts +0 -668
- package/lib/runtime-state.ts +0 -117
- package/lib/session-reader.ts +0 -903
- package/lib/session-runtime.ts +0 -105
- package/lib/subagent-progress.ts +0 -279
- package/lib/types.ts +0 -241
- package/lib/widget-export.ts +0 -318
- package/lib/widget-guidelines.ts +0 -288
- package/lib/widget-prompt.ts +0 -76
- package/lib/widget-utils.ts +0 -523
- package/postcss.config.mjs +0 -8
- package/proxy.ts +0 -64
- package/scripts/postinstall.cjs +0 -25
- package/tsconfig.json +0 -41
|
@@ -1,576 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
|
-
import type { AgentMessage, SessionInfo } from "@/lib/types";
|
|
5
|
-
import { MessageView } from "./MessageView";
|
|
6
|
-
import { ChatInput, type ChatInputHandle } from "./ChatInput";
|
|
7
|
-
import { ChatMinimap, useMessageRefs } from "./ChatMinimap";
|
|
8
|
-
import { SubagentPanel, extractSubagentRuns } from "./SubagentPanel";
|
|
9
|
-
import { useAgentSession, type AgentPhase } from "@/hooks/useAgentSession";
|
|
10
|
-
import { useAudio } from "@/hooks/useAudio";
|
|
11
|
-
import { useDragDrop } from "@/hooks/useDragDrop";
|
|
12
|
-
import { parseReportUpdates } from "@/lib/report-update-parser";
|
|
13
|
-
import { APP_NAME } from "@/lib/brand";
|
|
14
|
-
import { mergeSubagentRuns } from "@/lib/subagent-progress";
|
|
15
|
-
|
|
16
|
-
interface Props {
|
|
17
|
-
session: SessionInfo | null;
|
|
18
|
-
newSessionCwd: string | null;
|
|
19
|
-
onAgentEnd?: () => void;
|
|
20
|
-
onSessionCreated?: (session: SessionInfo) => void;
|
|
21
|
-
onSessionForked?: (newSessionId: string) => void;
|
|
22
|
-
modelsRefreshKey?: number;
|
|
23
|
-
chatInputRef?: React.RefObject<ChatInputHandle | null>;
|
|
24
|
-
onSystemPromptChange?: (prompt: string | null) => void;
|
|
25
|
-
onSessionStatsChange?: (stats: { tokens: { input: number; output: number; cacheRead: number; cacheWrite: number }; cost?: number } | null) => void;
|
|
26
|
-
onContextUsageChange?: (usage: { percent: number | null; contextWindow: number; tokens: number | null } | null) => void;
|
|
27
|
-
onReportUpdated?: () => void;
|
|
28
|
-
generativeUI?: boolean;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function phaseLabel(phase: AgentPhase): string {
|
|
32
|
-
if (phase?.kind === "running_tools") {
|
|
33
|
-
const names = phase.tools.map((t) => t.name);
|
|
34
|
-
if (names.length === 0) return "Running tool...";
|
|
35
|
-
if (names.length === 1) return `Running ${names[0]}...`;
|
|
36
|
-
if (names.length <= 3) return `Running ${names.join(", ")}...`;
|
|
37
|
-
return `Running ${names.slice(0, 2).join(", ")} (+${names.length - 2})...`;
|
|
38
|
-
}
|
|
39
|
-
if (phase?.kind === "waiting_model") return "Waiting for model...";
|
|
40
|
-
return "Thinking...";
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const TYPEWRITER_PHRASES = [
|
|
44
|
-
"annotate and analyze.",
|
|
45
|
-
"vibe code bioinformatics.",
|
|
46
|
-
"turn data into figures.",
|
|
47
|
-
"inspect your project.",
|
|
48
|
-
"build a reproducible report.",
|
|
49
|
-
"summarize that paper.",
|
|
50
|
-
"review the pipeline.",
|
|
51
|
-
"compare markers.",
|
|
52
|
-
"draft methods.",
|
|
53
|
-
"find the next analysis step.",
|
|
54
|
-
];
|
|
55
|
-
|
|
56
|
-
const BIO_ANALYSIS_RE = /\b(seurat|scanpy|single[- ]cell|scrna|sc[- ]rna|rna[- ]seq|transcriptom|gene|genes|marker|cell type|cluster|clustering|umap|tsne|pca|qc|mitochondrial|percent\.mt|nfeature|ncount|deg|differential expression|go enrichment|kegg|reactome|pathway|gsea|volcano|heatmap|h5ad|rds|loom|mtx|fastq|bam|vcf|counts?|expression|annotation|doublet|batch|integration|harmony|scvi)\b|生信|单细胞|转录组|基因|表达矩阵|差异表达|富集|通路|聚类|细胞类型|细胞注释|质控|线粒体|标记基因|火山图|热图/i;
|
|
57
|
-
const OUTPUT_SUMMARY_RE = /(?:^|[\s(["'`])(?:\.{1,2}\/|\/|~\/)?[A-Za-z0-9_.@+\-/\\]+\/\s*(?:[::-]|[0-9]+|含|共|files?|个文件|PDFs?|PNGs?|输出|output|results?)/im;
|
|
58
|
-
const FILE_OUTPUT_RE = /\.(?:csv|tsv|xlsx|xls|pdf|png|jpg|jpeg|svg|html|r|R|py|rds|h5ad|loom|mtx|tsv\.gz|csv\.gz)\b/i;
|
|
59
|
-
|
|
60
|
-
function Typewriter({ phrases }: { phrases: string[] }) {
|
|
61
|
-
const [phraseIdx, setPhraseIdx] = useState(() => Math.floor(Math.random() * phrases.length));
|
|
62
|
-
const [text, setText] = useState("");
|
|
63
|
-
const [deleting, setDeleting] = useState(false);
|
|
64
|
-
const [caretOn, setCaretOn] = useState(true);
|
|
65
|
-
|
|
66
|
-
useEffect(() => {
|
|
67
|
-
const blink = setInterval(() => setCaretOn((v) => !v), 530);
|
|
68
|
-
return () => clearInterval(blink);
|
|
69
|
-
}, []);
|
|
70
|
-
|
|
71
|
-
useEffect(() => {
|
|
72
|
-
const current = phrases[phraseIdx];
|
|
73
|
-
let timeout: ReturnType<typeof setTimeout>;
|
|
74
|
-
if (!deleting && text === current) {
|
|
75
|
-
timeout = setTimeout(() => setDeleting(true), 1800);
|
|
76
|
-
} else if (deleting && text === "") {
|
|
77
|
-
setDeleting(false);
|
|
78
|
-
setPhraseIdx((i) => (i + 1) % phrases.length);
|
|
79
|
-
} else {
|
|
80
|
-
const next = deleting ? current.slice(0, text.length - 1) : current.slice(0, text.length + 1);
|
|
81
|
-
timeout = setTimeout(() => setText(next), deleting ? 28 : 55);
|
|
82
|
-
}
|
|
83
|
-
return () => clearTimeout(timeout);
|
|
84
|
-
}, [text, deleting, phraseIdx, phrases]);
|
|
85
|
-
|
|
86
|
-
return (
|
|
87
|
-
<span style={{ color: "var(--text-muted)", fontWeight: 400 }}>
|
|
88
|
-
{text}
|
|
89
|
-
<span style={{ opacity: caretOn ? 1 : 0, color: "var(--accent)", marginLeft: 1 }}>▍</span>
|
|
90
|
-
</span>
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
function getMessageText(message: AgentMessage): string {
|
|
95
|
-
const content = message.content;
|
|
96
|
-
if (typeof content === "string") return content;
|
|
97
|
-
if (!Array.isArray(content)) return "";
|
|
98
|
-
return content.map((block) => {
|
|
99
|
-
if (block.type === "text") return block.text;
|
|
100
|
-
if (block.type === "toolCall") return `${block.toolName} ${JSON.stringify(block.input)}`;
|
|
101
|
-
return "";
|
|
102
|
-
}).join("\n");
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
function getLastUserTopic(messages: AgentMessage[]): string {
|
|
106
|
-
for (let i = messages.length - 1; i >= 0; i--) {
|
|
107
|
-
if (messages[i].role !== "user") continue;
|
|
108
|
-
const text = getMessageText(messages[i]).replace(/\s+/g, " ").trim();
|
|
109
|
-
if (text) return text.slice(0, 90);
|
|
110
|
-
}
|
|
111
|
-
return "Current bioinformatics analysis";
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function getCurrentTurnMessages(messages: AgentMessage[]): AgentMessage[] {
|
|
115
|
-
for (let i = messages.length - 1; i >= 0; i--) {
|
|
116
|
-
if (messages[i].role === "user") return messages.slice(i);
|
|
117
|
-
}
|
|
118
|
-
return messages;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function shouldGenerateAnalysisReport(messages: AgentMessage[]): boolean {
|
|
122
|
-
if (messages.length === 0) return false;
|
|
123
|
-
const text = messages.map(getMessageText).join("\n");
|
|
124
|
-
if (!BIO_ANALYSIS_RE.test(text)) return false;
|
|
125
|
-
return FILE_OUTPUT_RE.test(text) || OUTPUT_SUMMARY_RE.test(text) || /\b(saved|wrote|created|exported|generated|output|result)\b|输出|生成|保存|文件/.test(text);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export function ChatWindow({ session, newSessionCwd, onAgentEnd, onSessionCreated, onSessionForked, modelsRefreshKey, chatInputRef, onSystemPromptChange, onSessionStatsChange, onContextUsageChange, onReportUpdated, generativeUI }: Props) {
|
|
129
|
-
const {
|
|
130
|
-
data, loading, error, messages, entryIds, streamState,
|
|
131
|
-
agentRunning, modelNames, modelList, modelThinkingLevels, modelThinkingLevelMaps, toolPreset, thinkingLevel,
|
|
132
|
-
retryInfo, contextUsage, forkingEntryId,
|
|
133
|
-
isCompacting, compactError, displayModel: displayModelValue, sessionStats,
|
|
134
|
-
agentPhase, agentError, subagentRuns: runtimeSubagentRuns,
|
|
135
|
-
isNew,
|
|
136
|
-
messagesEndRef, scrollContainerRef,
|
|
137
|
-
lastUserMsgRef,
|
|
138
|
-
handleSend, handleAbort, handleFork, handleModelChange,
|
|
139
|
-
handleCompact, handleAbortCompaction,
|
|
140
|
-
handleToolPresetChange, handleThinkingLevelChange, handleAgentEventRef,
|
|
141
|
-
} = useAgentSession({
|
|
142
|
-
session, newSessionCwd, onAgentEnd, onSessionCreated, onSessionForked,
|
|
143
|
-
modelsRefreshKey, onSystemPromptChange,
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
const { soundEnabled, onSoundToggle, playDoneSound } = useAudio();
|
|
147
|
-
const playDoneSoundRef = useRef(playDoneSound);
|
|
148
|
-
playDoneSoundRef.current = playDoneSound;
|
|
149
|
-
const soundEnabledRef = useRef(soundEnabled);
|
|
150
|
-
soundEnabledRef.current = soundEnabled;
|
|
151
|
-
|
|
152
|
-
// Wrap agent event handler to play sound on agent_end
|
|
153
|
-
const origHandler = handleAgentEventRef.current;
|
|
154
|
-
useEffect(() => {
|
|
155
|
-
handleAgentEventRef.current = (event) => {
|
|
156
|
-
if (event.type === "agent_end" && soundEnabledRef.current) {
|
|
157
|
-
playDoneSoundRef.current();
|
|
158
|
-
}
|
|
159
|
-
origHandler?.(event);
|
|
160
|
-
};
|
|
161
|
-
}, [origHandler, handleAgentEventRef]);
|
|
162
|
-
|
|
163
|
-
// Push session stats up to AppShell for the top bar.
|
|
164
|
-
// Compare scalar fields to avoid loops from new object identity each render.
|
|
165
|
-
const statsKey = sessionStats
|
|
166
|
-
? `${sessionStats.tokens.input}|${sessionStats.tokens.output}|${sessionStats.tokens.cacheRead}|${sessionStats.tokens.cacheWrite}|${sessionStats.cost ?? 0}`
|
|
167
|
-
: null;
|
|
168
|
-
const sessionStatsRef = useRef(sessionStats);
|
|
169
|
-
sessionStatsRef.current = sessionStats;
|
|
170
|
-
useEffect(() => {
|
|
171
|
-
onSessionStatsChange?.(sessionStatsRef.current);
|
|
172
|
-
}, [statsKey, onSessionStatsChange]);
|
|
173
|
-
useEffect(() => () => { onSessionStatsChange?.(null); }, [onSessionStatsChange]);
|
|
174
|
-
|
|
175
|
-
// Push context usage up to AppShell as well.
|
|
176
|
-
const ctxKey = contextUsage
|
|
177
|
-
? `${contextUsage.percent ?? "null"}|${contextUsage.contextWindow}|${contextUsage.tokens ?? "null"}`
|
|
178
|
-
: null;
|
|
179
|
-
const contextUsageRef = useRef(contextUsage);
|
|
180
|
-
contextUsageRef.current = contextUsage;
|
|
181
|
-
useEffect(() => {
|
|
182
|
-
onContextUsageChange?.(contextUsageRef.current);
|
|
183
|
-
}, [ctxKey, onContextUsageChange]);
|
|
184
|
-
useEffect(() => () => { onContextUsageChange?.(null); }, [onContextUsageChange]);
|
|
185
|
-
|
|
186
|
-
const onDrop = useCallback((files: File[]) => {
|
|
187
|
-
chatInputRef?.current?.addFiles(files);
|
|
188
|
-
}, [chatInputRef]);
|
|
189
|
-
|
|
190
|
-
const { isDragOver, handleDragEnter, handleDragOver, handleDragLeave, handleDrop } = useDragDrop(onDrop);
|
|
191
|
-
const visibleMessages = messages.filter((m) => m.role === "user" || m.role === "assistant");
|
|
192
|
-
const messageRefs = useMessageRefs(visibleMessages.length);
|
|
193
|
-
const appliedReportUpdatesRef = useRef<Set<string>>(new Set());
|
|
194
|
-
const generatedReportTopicsRef = useRef<Set<string>>(new Set());
|
|
195
|
-
|
|
196
|
-
useEffect(() => {
|
|
197
|
-
appliedReportUpdatesRef.current.clear();
|
|
198
|
-
generatedReportTopicsRef.current.clear();
|
|
199
|
-
}, [session?.id]);
|
|
200
|
-
|
|
201
|
-
useEffect(() => {
|
|
202
|
-
if (!session?.id || agentRunning || streamState.isStreaming) return;
|
|
203
|
-
const updates = messages.flatMap((message) => {
|
|
204
|
-
if (message.role !== "assistant") return [];
|
|
205
|
-
const blocks = Array.isArray(message.content) ? message.content : [];
|
|
206
|
-
return blocks.flatMap((block) => {
|
|
207
|
-
if (block.type !== "text") return [];
|
|
208
|
-
return parseReportUpdates(block.text);
|
|
209
|
-
});
|
|
210
|
-
});
|
|
211
|
-
for (const parsed of updates) {
|
|
212
|
-
const key = `${session.id}:${parsed.raw}`;
|
|
213
|
-
if (appliedReportUpdatesRef.current.has(key)) continue;
|
|
214
|
-
appliedReportUpdatesRef.current.add(key);
|
|
215
|
-
fetch(`/api/reports/${encodeURIComponent(session.id)}`, {
|
|
216
|
-
method: "POST",
|
|
217
|
-
headers: { "Content-Type": "application/json" },
|
|
218
|
-
body: JSON.stringify({ action: "apply_update", update: parsed.update, updateKey: parsed.raw }),
|
|
219
|
-
})
|
|
220
|
-
.then((res) => {
|
|
221
|
-
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
222
|
-
onReportUpdated?.();
|
|
223
|
-
})
|
|
224
|
-
.catch(() => {
|
|
225
|
-
appliedReportUpdatesRef.current.delete(key);
|
|
226
|
-
});
|
|
227
|
-
}
|
|
228
|
-
}, [agentRunning, messages, onReportUpdated, session?.id, streamState.isStreaming]);
|
|
229
|
-
|
|
230
|
-
useEffect(() => {
|
|
231
|
-
if (!session?.id || agentRunning || streamState.isStreaming) return;
|
|
232
|
-
const currentTurnMessages = getCurrentTurnMessages(messages);
|
|
233
|
-
const assistantText = currentTurnMessages
|
|
234
|
-
.filter((message) => message.role === "assistant")
|
|
235
|
-
.map(getMessageText)
|
|
236
|
-
.join("\n");
|
|
237
|
-
if (parseReportUpdates(assistantText).length > 0) return;
|
|
238
|
-
if (!shouldGenerateAnalysisReport(currentTurnMessages)) return;
|
|
239
|
-
|
|
240
|
-
const topic = getLastUserTopic(messages);
|
|
241
|
-
const key = `${session.id}:latest:${topic}`;
|
|
242
|
-
if (generatedReportTopicsRef.current.has(key)) return;
|
|
243
|
-
generatedReportTopicsRef.current.add(key);
|
|
244
|
-
fetch(`/api/reports/${encodeURIComponent(session.id)}`, {
|
|
245
|
-
method: "POST",
|
|
246
|
-
headers: { "Content-Type": "application/json" },
|
|
247
|
-
body: JSON.stringify({ action: "generate", topic }),
|
|
248
|
-
})
|
|
249
|
-
.then((res) => {
|
|
250
|
-
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
251
|
-
onReportUpdated?.();
|
|
252
|
-
})
|
|
253
|
-
.catch(() => {
|
|
254
|
-
generatedReportTopicsRef.current.delete(key);
|
|
255
|
-
});
|
|
256
|
-
}, [agentRunning, messages, onReportUpdated, session?.id, streamState.isStreaming]);
|
|
257
|
-
|
|
258
|
-
const isEmptyNew = isNew && messages.length === 0 && !streamState.isStreaming && !agentRunning;
|
|
259
|
-
|
|
260
|
-
const [subagentPanelOpen, setSubagentPanelOpen] = useState(false);
|
|
261
|
-
const subagentRuns = mergeSubagentRuns(extractSubagentRuns(messages), runtimeSubagentRuns);
|
|
262
|
-
const activeSubagentCount = subagentRuns.filter((run) => run.status === "running" || run.status === "pending").length;
|
|
263
|
-
|
|
264
|
-
useEffect(() => {
|
|
265
|
-
if (subagentRuns.length === 0 && subagentPanelOpen) {
|
|
266
|
-
setSubagentPanelOpen(false);
|
|
267
|
-
}
|
|
268
|
-
}, [subagentRuns.length, subagentPanelOpen]);
|
|
269
|
-
|
|
270
|
-
const availableThinkingLevels = displayModelValue
|
|
271
|
-
? (modelThinkingLevels[`${displayModelValue.provider}:${displayModelValue.modelId}`] ?? null)
|
|
272
|
-
: null;
|
|
273
|
-
|
|
274
|
-
const currentThinkingLevelMap = displayModelValue
|
|
275
|
-
? (modelThinkingLevelMaps[`${displayModelValue.provider}:${displayModelValue.modelId}`] ?? null)
|
|
276
|
-
: null;
|
|
277
|
-
|
|
278
|
-
const chatInputElement = (
|
|
279
|
-
<ChatInput
|
|
280
|
-
ref={chatInputRef}
|
|
281
|
-
onSend={handleSend}
|
|
282
|
-
onAbort={handleAbort}
|
|
283
|
-
isStreaming={agentRunning}
|
|
284
|
-
model={displayModelValue}
|
|
285
|
-
modelNames={modelNames}
|
|
286
|
-
modelList={modelList}
|
|
287
|
-
onModelChange={handleModelChange}
|
|
288
|
-
onCompact={session || isNew ? handleCompact : undefined}
|
|
289
|
-
onAbortCompaction={handleAbortCompaction}
|
|
290
|
-
isCompacting={isCompacting}
|
|
291
|
-
compactError={compactError}
|
|
292
|
-
toolPreset={toolPreset}
|
|
293
|
-
onToolPresetChange={session || isNew ? handleToolPresetChange : undefined}
|
|
294
|
-
thinkingLevel={thinkingLevel}
|
|
295
|
-
onThinkingLevelChange={session || isNew ? handleThinkingLevelChange : undefined}
|
|
296
|
-
availableThinkingLevels={availableThinkingLevels}
|
|
297
|
-
thinkingLevelMap={currentThinkingLevelMap}
|
|
298
|
-
retryInfo={retryInfo}
|
|
299
|
-
soundEnabled={soundEnabled}
|
|
300
|
-
onSoundToggle={onSoundToggle}
|
|
301
|
-
/>
|
|
302
|
-
);
|
|
303
|
-
|
|
304
|
-
const handleWidgetSendMessage = useCallback((content: string) => {
|
|
305
|
-
if (agentRunning) {
|
|
306
|
-
chatInputRef?.current?.insertText(content);
|
|
307
|
-
} else {
|
|
308
|
-
void handleSend(content);
|
|
309
|
-
}
|
|
310
|
-
}, [agentRunning, chatInputRef, handleSend]);
|
|
311
|
-
|
|
312
|
-
if (loading) {
|
|
313
|
-
return (
|
|
314
|
-
<div className="flex h-full items-center justify-center text-text-muted">
|
|
315
|
-
Loading session...
|
|
316
|
-
</div>
|
|
317
|
-
);
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
if (error) {
|
|
321
|
-
return (
|
|
322
|
-
<div className="flex h-full items-center justify-center text-red-400">
|
|
323
|
-
{error}
|
|
324
|
-
</div>
|
|
325
|
-
);
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
return (
|
|
329
|
-
<div
|
|
330
|
-
className="relative flex h-full flex-col overflow-hidden"
|
|
331
|
-
onDragEnter={handleDragEnter}
|
|
332
|
-
onDragOver={handleDragOver}
|
|
333
|
-
onDragLeave={handleDragLeave}
|
|
334
|
-
onDrop={handleDrop}
|
|
335
|
-
>
|
|
336
|
-
{isDragOver && (
|
|
337
|
-
<div className="pointer-events-none absolute inset-0 z-50 flex animate-[drop-zone-in_0.15s_ease_both] items-center justify-center bg-[rgba(37,99,235,0.06)] backdrop-blur-[1px]">
|
|
338
|
-
<div className="pointer-events-none absolute inset-0 flex items-center justify-center">
|
|
339
|
-
{[0, 0.8, 1.6].map((delay) => (
|
|
340
|
-
<div
|
|
341
|
-
key={delay}
|
|
342
|
-
className="absolute h-[720px] w-[720px] rounded-full border-[1.5px] border-solid border-[rgba(37,99,235,0.5)] animate-[drop-ripple_2.4s_ease-out_infinite_backwards]"
|
|
343
|
-
style={{ transformOrigin: "center", animationDelay: `${delay}s` }}
|
|
344
|
-
/>
|
|
345
|
-
))}
|
|
346
|
-
</div>
|
|
347
|
-
<svg
|
|
348
|
-
width="280" height="280" viewBox="0 0 140 140" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
349
|
-
className="drop-shadow-[0_6px_18px_rgba(37,99,235,0.18)]"
|
|
350
|
-
>
|
|
351
|
-
<rect x="28" y="44" width="84" height="60" rx="8" fill="rgba(37,99,235,0.08)" stroke="rgba(37,99,235,0.50)" strokeWidth="1.8"/>
|
|
352
|
-
<path d="M36 100 L54 72 L68 88 L80 74 L104 100Z" fill="rgba(37,99,235,0.16)" stroke="rgba(37,99,235,0.40)" strokeWidth="1.4" strokeLinejoin="round"/>
|
|
353
|
-
<circle cx="96" cy="58" r="8" fill="rgba(37,99,235,0.22)" stroke="rgba(37,99,235,0.55)" strokeWidth="1.6"/>
|
|
354
|
-
<g stroke="rgba(37,99,235,0.45)" strokeWidth="1.4" strokeLinecap="round">
|
|
355
|
-
<line x1="96" y1="46" x2="96" y2="43"/>
|
|
356
|
-
<line x1="96" y1="70" x2="96" y2="73"/>
|
|
357
|
-
<line x1="84" y1="58" x2="81" y2="58"/>
|
|
358
|
-
<line x1="108" y1="58" x2="111" y2="58"/>
|
|
359
|
-
<line x1="87.5" y1="49.5" x2="85.4" y2="47.4"/>
|
|
360
|
-
<line x1="104.5" y1="66.5" x2="106.6" y2="68.6"/>
|
|
361
|
-
<line x1="104.5" y1="49.5" x2="106.6" y2="47.4"/>
|
|
362
|
-
<line x1="87.5" y1="66.5" x2="85.4" y2="68.6"/>
|
|
363
|
-
</g>
|
|
364
|
-
</svg>
|
|
365
|
-
</div>
|
|
366
|
-
)}
|
|
367
|
-
|
|
368
|
-
{isEmptyNew ? (
|
|
369
|
-
<div className="flex flex-1 flex-col items-center justify-center overflow-y-auto px-4 py-8">
|
|
370
|
-
<div className="w-full max-w-[820px]">
|
|
371
|
-
<div
|
|
372
|
-
className="mb-3"
|
|
373
|
-
style={{
|
|
374
|
-
display: "flex",
|
|
375
|
-
alignItems: "center",
|
|
376
|
-
justifyContent: "space-between",
|
|
377
|
-
gap: 12,
|
|
378
|
-
marginLeft: 16,
|
|
379
|
-
marginRight: 52,
|
|
380
|
-
fontFamily: "var(--font-mono)",
|
|
381
|
-
}}
|
|
382
|
-
>
|
|
383
|
-
<div style={{ display: "flex", alignItems: "baseline", gap: 10, minWidth: 0, flex: 1, lineHeight: 1.4 }}>
|
|
384
|
-
<span style={{ fontSize: 23, color: "var(--text)", fontWeight: 750, letterSpacing: 0 }}>{APP_NAME}</span>
|
|
385
|
-
<span style={{ fontSize: 14, minWidth: 0, overflow: "hidden", whiteSpace: "nowrap", textOverflow: "ellipsis" }}>
|
|
386
|
-
<Typewriter phrases={TYPEWRITER_PHRASES} />
|
|
387
|
-
</span>
|
|
388
|
-
</div>
|
|
389
|
-
<div style={{ flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "flex-end", minHeight: 22 }}>
|
|
390
|
-
<span style={{ fontSize: 11, color: "var(--text-dim)", whiteSpace: "nowrap" }}>
|
|
391
|
-
v{process.env.NEXT_PUBLIC_APP_VERSION ?? "0.0.0"}
|
|
392
|
-
</span>
|
|
393
|
-
</div>
|
|
394
|
-
</div>
|
|
395
|
-
{chatInputElement}
|
|
396
|
-
</div>
|
|
397
|
-
</div>
|
|
398
|
-
) : (
|
|
399
|
-
<>
|
|
400
|
-
<div className="relative flex flex-1 overflow-hidden">
|
|
401
|
-
<div ref={scrollContainerRef} className="flex-1 overflow-y-auto pt-4 [scrollbar-width:none]">
|
|
402
|
-
<div className="mx-auto max-w-[820px] px-4">
|
|
403
|
-
|
|
404
|
-
{(() => {
|
|
405
|
-
const toolResultsMap = new Map<string, import("@/lib/types").ToolResultMessage>();
|
|
406
|
-
for (const msg of messages) {
|
|
407
|
-
if (msg.role === "toolResult") {
|
|
408
|
-
toolResultsMap.set((msg as import("@/lib/types").ToolResultMessage).toolCallId, msg as import("@/lib/types").ToolResultMessage);
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
let lastUserIdx = -1;
|
|
412
|
-
for (let i = messages.length - 1; i >= 0; i--) {
|
|
413
|
-
if (messages[i].role === "user") { lastUserIdx = i; break; }
|
|
414
|
-
}
|
|
415
|
-
let refIdx = 0;
|
|
416
|
-
return messages.map((msg, idx) => {
|
|
417
|
-
const isVisible = msg.role === "user" || msg.role === "assistant";
|
|
418
|
-
const currentRefIdx = isVisible ? refIdx++ : -1;
|
|
419
|
-
let showTimestamp = false;
|
|
420
|
-
if (msg.role === "assistant") {
|
|
421
|
-
showTimestamp = true;
|
|
422
|
-
for (let j = idx + 1; j < messages.length; j++) {
|
|
423
|
-
const r = messages[j].role;
|
|
424
|
-
if (r === "user") break;
|
|
425
|
-
if (r === "assistant") { showTimestamp = false; break; }
|
|
426
|
-
}
|
|
427
|
-
// Hide on the currently-streaming tail (the streaming bubble owns the live timestamp)
|
|
428
|
-
if (showTimestamp && streamState.isStreaming && idx === messages.length - 1) {
|
|
429
|
-
showTimestamp = false;
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
const view = (
|
|
433
|
-
<MessageView
|
|
434
|
-
key={idx}
|
|
435
|
-
message={msg}
|
|
436
|
-
toolResults={toolResultsMap}
|
|
437
|
-
modelNames={modelNames}
|
|
438
|
-
entryId={entryIds[idx]}
|
|
439
|
-
onFork={agentRunning || isNew || (idx === 0 && msg.role === "user") ? undefined : handleFork}
|
|
440
|
-
forking={forkingEntryId === entryIds[idx]}
|
|
441
|
-
onSendMessage={handleWidgetSendMessage}
|
|
442
|
-
showTimestamp={showTimestamp}
|
|
443
|
-
prevTimestamp={idx > 0 ? (messages[idx - 1] as import("@/lib/types").AgentMessage & { timestamp?: number }).timestamp : undefined}
|
|
444
|
-
renderVisualCodeBlocks={!!generativeUI}
|
|
445
|
-
cwd={data?.info?.cwd ?? session?.cwd ?? newSessionCwd ?? undefined}
|
|
446
|
-
/>
|
|
447
|
-
);
|
|
448
|
-
if (!isVisible) return view;
|
|
449
|
-
return (
|
|
450
|
-
<div key={idx} ref={(el) => {
|
|
451
|
-
messageRefs.current[currentRefIdx] = el;
|
|
452
|
-
if (idx === lastUserIdx) { (lastUserMsgRef as { current: HTMLDivElement | null }).current = el; }
|
|
453
|
-
}}>
|
|
454
|
-
{view}
|
|
455
|
-
</div>
|
|
456
|
-
);
|
|
457
|
-
});
|
|
458
|
-
})()}
|
|
459
|
-
|
|
460
|
-
{streamState.isStreaming && streamState.streamingMessage && (
|
|
461
|
-
<MessageView message={streamState.streamingMessage as AgentMessage} isStreaming modelNames={modelNames} onSendMessage={handleWidgetSendMessage} renderVisualCodeBlocks={!!generativeUI} cwd={data?.info?.cwd ?? session?.cwd ?? newSessionCwd ?? undefined} />
|
|
462
|
-
)}
|
|
463
|
-
|
|
464
|
-
{agentRunning && !streamState.streamingMessage && (
|
|
465
|
-
<div className="py-2 text-[13px] text-text-muted">
|
|
466
|
-
<span className="animate-[pulse_1.5s_infinite]">{phaseLabel(agentPhase)}</span>
|
|
467
|
-
</div>
|
|
468
|
-
)}
|
|
469
|
-
|
|
470
|
-
{data?.info?.cwd && data.info.cwdExists === false && (
|
|
471
|
-
<div className="my-3 rounded-[7px] border border-[rgba(248,113,113,0.35)] bg-[rgba(248,113,113,0.07)] px-3 py-2 text-[12px] leading-relaxed text-red-400">
|
|
472
|
-
Project directory no longer exists: <code className="font-mono">{data.info.cwd}</code>
|
|
473
|
-
</div>
|
|
474
|
-
)}
|
|
475
|
-
|
|
476
|
-
{agentError && (
|
|
477
|
-
<div className="my-3 rounded-[7px] border border-[rgba(248,113,113,0.35)] bg-[rgba(248,113,113,0.07)] px-3 py-2 text-[12px] leading-relaxed text-red-400">
|
|
478
|
-
{agentError}
|
|
479
|
-
</div>
|
|
480
|
-
)}
|
|
481
|
-
|
|
482
|
-
{agentRunning && (
|
|
483
|
-
<div style={{ height: scrollContainerRef.current ? scrollContainerRef.current.clientHeight : "80vh" }} />
|
|
484
|
-
)}
|
|
485
|
-
|
|
486
|
-
<div ref={messagesEndRef} />
|
|
487
|
-
</div>
|
|
488
|
-
</div>
|
|
489
|
-
<ChatMinimap
|
|
490
|
-
messages={messages}
|
|
491
|
-
streamingMessage={streamState.streamingMessage}
|
|
492
|
-
scrollContainer={scrollContainerRef}
|
|
493
|
-
messageRefs={messageRefs}
|
|
494
|
-
/>
|
|
495
|
-
{subagentRuns.length > 0 && (
|
|
496
|
-
<button
|
|
497
|
-
onClick={() => setSubagentPanelOpen((v) => !v)}
|
|
498
|
-
title={subagentPanelOpen ? "Hide agent runs" : "Show agent runs"}
|
|
499
|
-
style={{
|
|
500
|
-
position: "absolute",
|
|
501
|
-
right: subagentPanelOpen ? 260 : 40,
|
|
502
|
-
top: 8,
|
|
503
|
-
minWidth: 28,
|
|
504
|
-
height: 28,
|
|
505
|
-
display: "flex",
|
|
506
|
-
alignItems: "center",
|
|
507
|
-
justifyContent: "center",
|
|
508
|
-
gap: 6,
|
|
509
|
-
padding: activeSubagentCount > 0 || subagentRuns.length > 1 ? "0 8px" : 0,
|
|
510
|
-
background: subagentPanelOpen ? "var(--bg-selected)" : "var(--bg-panel)",
|
|
511
|
-
border: "1px solid var(--border)",
|
|
512
|
-
borderRadius: 6,
|
|
513
|
-
color: subagentPanelOpen ? "var(--accent)" : "var(--text-dim)",
|
|
514
|
-
cursor: "pointer",
|
|
515
|
-
zIndex: 30,
|
|
516
|
-
fontSize: 12,
|
|
517
|
-
transition: "right 0.2s ease, background 0.12s",
|
|
518
|
-
}}
|
|
519
|
-
onMouseEnter={(e) => { if (!subagentPanelOpen) e.currentTarget.style.color = "var(--text)"; }}
|
|
520
|
-
onMouseLeave={(e) => { if (!subagentPanelOpen) e.currentTarget.style.color = "var(--text-dim)"; }}
|
|
521
|
-
>
|
|
522
|
-
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
|
523
|
-
<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" />
|
|
524
|
-
<circle cx="9" cy="7" r="4" />
|
|
525
|
-
<path d="M23 21v-2a4 4 0 0 0-3-3.87" />
|
|
526
|
-
<path d="M16 3.13a4 4 0 0 1 0 7.75" />
|
|
527
|
-
</svg>
|
|
528
|
-
{(activeSubagentCount > 0 || subagentRuns.length > 1) && (
|
|
529
|
-
<span style={{ display: "flex", alignItems: "center", gap: 4, fontSize: 10, fontWeight: 700, color: activeSubagentCount > 0 ? "var(--accent)" : "var(--text-dim)" }}>
|
|
530
|
-
{activeSubagentCount > 0 && <span>{activeSubagentCount} active</span>}
|
|
531
|
-
<span>{subagentRuns.length}</span>
|
|
532
|
-
</span>
|
|
533
|
-
)}
|
|
534
|
-
</button>
|
|
535
|
-
)}
|
|
536
|
-
{subagentPanelOpen && subagentRuns.length > 0 && (
|
|
537
|
-
<div
|
|
538
|
-
style={{
|
|
539
|
-
position: "absolute",
|
|
540
|
-
right: 48,
|
|
541
|
-
top: 4,
|
|
542
|
-
bottom: 4,
|
|
543
|
-
width: 250,
|
|
544
|
-
background: "var(--bg)",
|
|
545
|
-
border: "1px solid var(--border)",
|
|
546
|
-
borderRadius: 8,
|
|
547
|
-
boxShadow: "-2px 0 12px rgba(0,0,0,0.08)",
|
|
548
|
-
zIndex: 25,
|
|
549
|
-
overflow: "hidden",
|
|
550
|
-
}}
|
|
551
|
-
>
|
|
552
|
-
<div style={{
|
|
553
|
-
padding: "6px 12px",
|
|
554
|
-
fontSize: 11,
|
|
555
|
-
fontWeight: 600,
|
|
556
|
-
color: "var(--text-dim)",
|
|
557
|
-
borderBottom: "1px solid var(--border)",
|
|
558
|
-
background: "var(--bg-panel)",
|
|
559
|
-
textTransform: "uppercase",
|
|
560
|
-
letterSpacing: "0.05em",
|
|
561
|
-
}}>
|
|
562
|
-
Agent Runs
|
|
563
|
-
</div>
|
|
564
|
-
<SubagentPanel runs={subagentRuns} />
|
|
565
|
-
</div>
|
|
566
|
-
)}
|
|
567
|
-
</div>
|
|
568
|
-
|
|
569
|
-
<div className="relative">
|
|
570
|
-
{chatInputElement}
|
|
571
|
-
</div>
|
|
572
|
-
</>
|
|
573
|
-
)}
|
|
574
|
-
</div>
|
|
575
|
-
);
|
|
576
|
-
}
|