@seqyuan/annodex 0.1.12 → 0.1.14
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/9tDQsVwah2dRfj3LNFKBR/_buildManifest.js +1 -0
- package/.next/static/9tDQsVwah2dRfj3LNFKBR/_ssgManifest.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-a26fde41f0bbe84c.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/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,137 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { useEffect, useRef } from "react";
|
|
4
|
-
import { EditorState } from "@codemirror/state";
|
|
5
|
-
import { EditorView, keymap, lineNumbers, highlightActiveLine } from "@codemirror/view";
|
|
6
|
-
import { defaultKeymap, history, historyKeymap } from "@codemirror/commands";
|
|
7
|
-
import { syntaxHighlighting, defaultHighlightStyle } from "@codemirror/language";
|
|
8
|
-
import { oneDark } from "@codemirror/theme-one-dark";
|
|
9
|
-
import { javascript } from "@codemirror/lang-javascript";
|
|
10
|
-
import { python } from "@codemirror/lang-python";
|
|
11
|
-
import { sql } from "@codemirror/lang-sql";
|
|
12
|
-
import { json } from "@codemirror/lang-json";
|
|
13
|
-
import { html } from "@codemirror/lang-html";
|
|
14
|
-
import { css } from "@codemirror/lang-css";
|
|
15
|
-
import { markdown } from "@codemirror/lang-markdown";
|
|
16
|
-
import { xml } from "@codemirror/lang-xml";
|
|
17
|
-
import { rust } from "@codemirror/lang-rust";
|
|
18
|
-
import { go } from "@codemirror/lang-go";
|
|
19
|
-
import { java } from "@codemirror/lang-java";
|
|
20
|
-
import { searchKeymap } from "@codemirror/search";
|
|
21
|
-
import { autocompletion, completionKeymap } from "@codemirror/autocomplete";
|
|
22
|
-
|
|
23
|
-
function getLanguageExtension(lang: string) {
|
|
24
|
-
switch (lang) {
|
|
25
|
-
case "javascript":
|
|
26
|
-
case "typescript":
|
|
27
|
-
return javascript({ typescript: lang === "typescript" });
|
|
28
|
-
case "python":
|
|
29
|
-
return python();
|
|
30
|
-
case "sql":
|
|
31
|
-
return sql();
|
|
32
|
-
case "json":
|
|
33
|
-
return json();
|
|
34
|
-
case "html":
|
|
35
|
-
return html();
|
|
36
|
-
case "css":
|
|
37
|
-
case "scss":
|
|
38
|
-
case "less":
|
|
39
|
-
return css();
|
|
40
|
-
case "markdown":
|
|
41
|
-
return markdown();
|
|
42
|
-
case "xml":
|
|
43
|
-
case "yaml":
|
|
44
|
-
case "toml":
|
|
45
|
-
return xml();
|
|
46
|
-
case "rust":
|
|
47
|
-
return rust();
|
|
48
|
-
case "go":
|
|
49
|
-
return go();
|
|
50
|
-
case "java":
|
|
51
|
-
return java();
|
|
52
|
-
default:
|
|
53
|
-
return null;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
interface Props {
|
|
58
|
-
initialContent: string;
|
|
59
|
-
language: string;
|
|
60
|
-
isDark: boolean;
|
|
61
|
-
onChange?: (content: string) => void;
|
|
62
|
-
onSave?: () => void;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function CodeMirrorEditor({ initialContent, language, isDark, onChange, onSave }: Props) {
|
|
66
|
-
const containerRef = useRef<HTMLDivElement>(null);
|
|
67
|
-
const viewRef = useRef<EditorView | null>(null);
|
|
68
|
-
const onChangeRef = useRef(onChange);
|
|
69
|
-
const onSaveRef = useRef(onSave);
|
|
70
|
-
onChangeRef.current = onChange;
|
|
71
|
-
onSaveRef.current = onSave;
|
|
72
|
-
|
|
73
|
-
useEffect(() => {
|
|
74
|
-
const container = containerRef.current;
|
|
75
|
-
if (!container) return;
|
|
76
|
-
|
|
77
|
-
const langExt = getLanguageExtension(language);
|
|
78
|
-
|
|
79
|
-
const saveKeymap = onSave
|
|
80
|
-
? keymap.of([{ key: "Mod-s", run: () => { onSaveRef.current?.(); return true; }, preventDefault: true }])
|
|
81
|
-
: [];
|
|
82
|
-
|
|
83
|
-
const state = EditorState.create({
|
|
84
|
-
doc: initialContent,
|
|
85
|
-
extensions: [
|
|
86
|
-
lineNumbers(),
|
|
87
|
-
highlightActiveLine(),
|
|
88
|
-
history(),
|
|
89
|
-
syntaxHighlighting(defaultHighlightStyle),
|
|
90
|
-
keymap.of([...defaultKeymap, ...historyKeymap, ...completionKeymap, ...searchKeymap]),
|
|
91
|
-
saveKeymap,
|
|
92
|
-
autocompletion(),
|
|
93
|
-
...(isDark ? [oneDark] : []),
|
|
94
|
-
...(langExt ? [langExt] : []),
|
|
95
|
-
EditorView.updateListener.of((update) => {
|
|
96
|
-
if (update.docChanged) {
|
|
97
|
-
onChangeRef.current?.(update.state.doc.toString());
|
|
98
|
-
}
|
|
99
|
-
}),
|
|
100
|
-
EditorView.theme({
|
|
101
|
-
"&": { height: "100%", fontSize: "13px" },
|
|
102
|
-
".cm-scroller": { overflow: "auto", fontFamily: "var(--font-mono)" },
|
|
103
|
-
".cm-content": { padding: "8px 0" },
|
|
104
|
-
".cm-gutters": { borderRight: "1px solid var(--border)", background: "var(--bg)", color: "var(--text-dim)" },
|
|
105
|
-
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground": { background: isDark ? "#3a3d4e" : "#b4d5fe" },
|
|
106
|
-
}),
|
|
107
|
-
],
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
const view = new EditorView({
|
|
111
|
-
state,
|
|
112
|
-
parent: container,
|
|
113
|
-
});
|
|
114
|
-
viewRef.current = view;
|
|
115
|
-
|
|
116
|
-
return () => {
|
|
117
|
-
view.destroy();
|
|
118
|
-
viewRef.current = null;
|
|
119
|
-
};
|
|
120
|
-
// Only mount once — content updates handled by the key below
|
|
121
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
122
|
-
}, [language, isDark]);
|
|
123
|
-
|
|
124
|
-
// Update content when initialContent changes (external file change)
|
|
125
|
-
useEffect(() => {
|
|
126
|
-
const view = viewRef.current;
|
|
127
|
-
if (!view) return;
|
|
128
|
-
const currentContent = view.state.doc.toString();
|
|
129
|
-
if (currentContent !== initialContent) {
|
|
130
|
-
view.dispatch({
|
|
131
|
-
changes: { from: 0, to: view.state.doc.length, insert: initialContent },
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
}, [initialContent]);
|
|
135
|
-
|
|
136
|
-
return <div ref={containerRef} style={{ height: "100%", overflow: "hidden" }} />;
|
|
137
|
-
}
|
|
@@ -1,369 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { useEffect, useRef, useState } from "react";
|
|
4
|
-
import type { SessionInfo } from "@/lib/types";
|
|
5
|
-
|
|
6
|
-
type SearchScope = "current" | "all";
|
|
7
|
-
|
|
8
|
-
interface SearchMatch {
|
|
9
|
-
entryId: string;
|
|
10
|
-
role: "user" | "assistant";
|
|
11
|
-
timestamp: string;
|
|
12
|
-
snippet: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface SearchGroup {
|
|
16
|
-
session: SessionInfo;
|
|
17
|
-
matches: SearchMatch[];
|
|
18
|
-
matchCount: number;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface Props {
|
|
22
|
-
open: boolean;
|
|
23
|
-
cwd: string | null;
|
|
24
|
-
homeDir?: string;
|
|
25
|
-
onClose: () => void;
|
|
26
|
-
onSelectSession: (session: SessionInfo) => void;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function shortenCwd(cwd: string, homeDir?: string): string {
|
|
30
|
-
const path = (homeDir && cwd.startsWith(homeDir)) ? "~" + cwd.slice(homeDir.length) : cwd;
|
|
31
|
-
const sep = path.includes("/") ? "/" : "\\";
|
|
32
|
-
const parts = path.split(sep).filter(Boolean);
|
|
33
|
-
if (parts.length <= 2) return path;
|
|
34
|
-
return "..." + sep + parts.slice(-2).join(sep);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function formatDate(value: string): string {
|
|
38
|
-
const date = new Date(value);
|
|
39
|
-
if (Number.isNaN(date.getTime())) return "";
|
|
40
|
-
return date.toLocaleString(undefined, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" });
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function highlightSnippet(snippet: string, query: string): React.ReactNode {
|
|
44
|
-
const q = query.trim();
|
|
45
|
-
if (!q) return snippet;
|
|
46
|
-
const lower = snippet.toLowerCase();
|
|
47
|
-
const index = lower.indexOf(q.toLowerCase());
|
|
48
|
-
if (index < 0) return snippet;
|
|
49
|
-
return (
|
|
50
|
-
<>
|
|
51
|
-
{snippet.slice(0, index)}
|
|
52
|
-
<mark style={{ background: "rgba(37,99,235,0.16)", color: "var(--text)", borderRadius: 3, padding: "0 2px" }}>
|
|
53
|
-
{snippet.slice(index, index + q.length)}
|
|
54
|
-
</mark>
|
|
55
|
-
{snippet.slice(index + q.length)}
|
|
56
|
-
</>
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function ConversationSearch({ open, cwd, homeDir, onClose, onSelectSession }: Props) {
|
|
61
|
-
const [query, setQuery] = useState("");
|
|
62
|
-
const [scope, setScope] = useState<SearchScope>("current");
|
|
63
|
-
const [results, setResults] = useState<SearchGroup[]>([]);
|
|
64
|
-
const [loading, setLoading] = useState(false);
|
|
65
|
-
const [error, setError] = useState<string | null>(null);
|
|
66
|
-
const [truncated, setTruncated] = useState(false);
|
|
67
|
-
const inputRef = useRef<HTMLInputElement>(null);
|
|
68
|
-
|
|
69
|
-
useEffect(() => {
|
|
70
|
-
if (!open) return;
|
|
71
|
-
setScope(cwd ? "current" : "all");
|
|
72
|
-
setTimeout(() => inputRef.current?.focus(), 0);
|
|
73
|
-
}, [open, cwd]);
|
|
74
|
-
|
|
75
|
-
useEffect(() => {
|
|
76
|
-
if (!open) return;
|
|
77
|
-
const onKeyDown = (event: KeyboardEvent) => {
|
|
78
|
-
if (event.key === "Escape") onClose();
|
|
79
|
-
};
|
|
80
|
-
document.addEventListener("keydown", onKeyDown);
|
|
81
|
-
return () => document.removeEventListener("keydown", onKeyDown);
|
|
82
|
-
}, [open, onClose]);
|
|
83
|
-
|
|
84
|
-
useEffect(() => {
|
|
85
|
-
if (!open) return;
|
|
86
|
-
const trimmed = query.trim();
|
|
87
|
-
if (trimmed.length < 2) {
|
|
88
|
-
setResults([]);
|
|
89
|
-
setLoading(false);
|
|
90
|
-
setError(null);
|
|
91
|
-
setTruncated(false);
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
const controller = new AbortController();
|
|
96
|
-
const timer = setTimeout(async () => {
|
|
97
|
-
setLoading(true);
|
|
98
|
-
setError(null);
|
|
99
|
-
try {
|
|
100
|
-
const params = new URLSearchParams({ q: trimmed, scope });
|
|
101
|
-
if (cwd) params.set("cwd", cwd);
|
|
102
|
-
const res = await fetch(`/api/search?${params.toString()}`, { signal: controller.signal });
|
|
103
|
-
if (!res.ok) throw new Error(`HTTP ${res.status}`);
|
|
104
|
-
const data = await res.json() as { results?: SearchGroup[]; truncated?: boolean; error?: string };
|
|
105
|
-
if (data.error) throw new Error(data.error);
|
|
106
|
-
setResults(data.results ?? []);
|
|
107
|
-
setTruncated(data.truncated ?? false);
|
|
108
|
-
} catch (err) {
|
|
109
|
-
if ((err as Error).name !== "AbortError") setError(String(err));
|
|
110
|
-
} finally {
|
|
111
|
-
setLoading(false);
|
|
112
|
-
}
|
|
113
|
-
}, 180);
|
|
114
|
-
|
|
115
|
-
return () => {
|
|
116
|
-
clearTimeout(timer);
|
|
117
|
-
controller.abort();
|
|
118
|
-
};
|
|
119
|
-
}, [open, query, scope, cwd]);
|
|
120
|
-
|
|
121
|
-
if (!open) return null;
|
|
122
|
-
|
|
123
|
-
const trimmed = query.trim();
|
|
124
|
-
const resultCount = results.reduce((sum, group) => sum + group.matches.length, 0);
|
|
125
|
-
|
|
126
|
-
return (
|
|
127
|
-
<div
|
|
128
|
-
role="dialog"
|
|
129
|
-
aria-modal="true"
|
|
130
|
-
aria-label="Search conversation history"
|
|
131
|
-
style={{
|
|
132
|
-
position: "fixed",
|
|
133
|
-
inset: 0,
|
|
134
|
-
zIndex: 500,
|
|
135
|
-
display: "flex",
|
|
136
|
-
alignItems: "flex-start",
|
|
137
|
-
justifyContent: "center",
|
|
138
|
-
padding: "8vh 16px 16px",
|
|
139
|
-
background: "rgba(0,0,0,0.28)",
|
|
140
|
-
}}
|
|
141
|
-
onMouseDown={(event) => {
|
|
142
|
-
if (event.target === event.currentTarget) onClose();
|
|
143
|
-
}}
|
|
144
|
-
>
|
|
145
|
-
<div
|
|
146
|
-
style={{
|
|
147
|
-
width: "min(760px, 100%)",
|
|
148
|
-
maxHeight: "78vh",
|
|
149
|
-
display: "flex",
|
|
150
|
-
flexDirection: "column",
|
|
151
|
-
background: "var(--bg)",
|
|
152
|
-
border: "1px solid var(--border)",
|
|
153
|
-
borderRadius: 10,
|
|
154
|
-
boxShadow: "0 16px 48px rgba(0,0,0,0.24)",
|
|
155
|
-
overflow: "hidden",
|
|
156
|
-
}}
|
|
157
|
-
>
|
|
158
|
-
<div style={{ padding: 12, borderBottom: "1px solid var(--border)" }}>
|
|
159
|
-
<div style={{ display: "flex", alignItems: "center", gap: 8 }}>
|
|
160
|
-
<div
|
|
161
|
-
style={{
|
|
162
|
-
display: "flex",
|
|
163
|
-
alignItems: "center",
|
|
164
|
-
gap: 8,
|
|
165
|
-
flex: 1,
|
|
166
|
-
minWidth: 0,
|
|
167
|
-
background: "var(--bg-hover)",
|
|
168
|
-
border: "1px solid var(--border)",
|
|
169
|
-
borderRadius: 8,
|
|
170
|
-
padding: "0 10px",
|
|
171
|
-
}}
|
|
172
|
-
>
|
|
173
|
-
<svg width="15" height="15" viewBox="0 0 16 16" fill="none" stroke="var(--text-dim)" strokeWidth="1.7" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
|
|
174
|
-
<circle cx="7" cy="7" r="4.5" />
|
|
175
|
-
<path d="M10.5 10.5 13.5 13.5" />
|
|
176
|
-
</svg>
|
|
177
|
-
<input
|
|
178
|
-
ref={inputRef}
|
|
179
|
-
value={query}
|
|
180
|
-
onChange={(event) => setQuery(event.target.value)}
|
|
181
|
-
placeholder="Search conversation history..."
|
|
182
|
-
style={{
|
|
183
|
-
flex: 1,
|
|
184
|
-
minWidth: 0,
|
|
185
|
-
height: 38,
|
|
186
|
-
background: "transparent",
|
|
187
|
-
border: "none",
|
|
188
|
-
outline: "none",
|
|
189
|
-
color: "var(--text)",
|
|
190
|
-
fontSize: 14,
|
|
191
|
-
}}
|
|
192
|
-
/>
|
|
193
|
-
</div>
|
|
194
|
-
<button
|
|
195
|
-
type="button"
|
|
196
|
-
onClick={onClose}
|
|
197
|
-
title="Close"
|
|
198
|
-
style={{
|
|
199
|
-
width: 34,
|
|
200
|
-
height: 34,
|
|
201
|
-
display: "inline-flex",
|
|
202
|
-
alignItems: "center",
|
|
203
|
-
justifyContent: "center",
|
|
204
|
-
background: "none",
|
|
205
|
-
border: "none",
|
|
206
|
-
borderRadius: 7,
|
|
207
|
-
color: "var(--text-dim)",
|
|
208
|
-
cursor: "pointer",
|
|
209
|
-
}}
|
|
210
|
-
onMouseEnter={(e) => { e.currentTarget.style.background = "var(--bg-hover)"; e.currentTarget.style.color = "var(--text)"; }}
|
|
211
|
-
onMouseLeave={(e) => { e.currentTarget.style.background = "none"; e.currentTarget.style.color = "var(--text-dim)"; }}
|
|
212
|
-
>
|
|
213
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round">
|
|
214
|
-
<path d="M4 4 12 12" />
|
|
215
|
-
<path d="M12 4 4 12" />
|
|
216
|
-
</svg>
|
|
217
|
-
</button>
|
|
218
|
-
</div>
|
|
219
|
-
|
|
220
|
-
<div style={{ display: "flex", alignItems: "center", gap: 8, marginTop: 10 }}>
|
|
221
|
-
<div style={{ display: "inline-flex", padding: 2, background: "var(--bg-hover)", border: "1px solid var(--border)", borderRadius: 7 }}>
|
|
222
|
-
{([
|
|
223
|
-
{ value: "current" as const, label: "Current project", disabled: !cwd },
|
|
224
|
-
{ value: "all" as const, label: "All history", disabled: false },
|
|
225
|
-
]).map((item) => (
|
|
226
|
-
<button
|
|
227
|
-
key={item.value}
|
|
228
|
-
type="button"
|
|
229
|
-
disabled={item.disabled}
|
|
230
|
-
onClick={() => setScope(item.value)}
|
|
231
|
-
style={{
|
|
232
|
-
height: 24,
|
|
233
|
-
padding: "0 9px",
|
|
234
|
-
background: scope === item.value ? "var(--bg-selected)" : "transparent",
|
|
235
|
-
border: "none",
|
|
236
|
-
borderRadius: 5,
|
|
237
|
-
color: item.disabled ? "var(--text-dim)" : scope === item.value ? "var(--text)" : "var(--text-muted)",
|
|
238
|
-
cursor: item.disabled ? "not-allowed" : "pointer",
|
|
239
|
-
fontSize: 11,
|
|
240
|
-
fontWeight: 500,
|
|
241
|
-
}}
|
|
242
|
-
>
|
|
243
|
-
{item.label}
|
|
244
|
-
</button>
|
|
245
|
-
))}
|
|
246
|
-
</div>
|
|
247
|
-
<div style={{ flex: 1, minWidth: 0, color: "var(--text-dim)", fontSize: 11, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}>
|
|
248
|
-
{scope === "current" && cwd ? shortenCwd(cwd, homeDir) : "Searching every saved session"}
|
|
249
|
-
</div>
|
|
250
|
-
</div>
|
|
251
|
-
</div>
|
|
252
|
-
|
|
253
|
-
<div style={{ flex: 1, overflowY: "auto", minHeight: 180 }}>
|
|
254
|
-
{trimmed.length < 2 && (
|
|
255
|
-
<div style={{ padding: 28, textAlign: "center", color: "var(--text-muted)", fontSize: 13 }}>
|
|
256
|
-
Type at least 2 characters to search saved conversations.
|
|
257
|
-
</div>
|
|
258
|
-
)}
|
|
259
|
-
{trimmed.length >= 2 && loading && results.length === 0 && (
|
|
260
|
-
<div style={{ padding: 28, textAlign: "center", color: "var(--text-muted)", fontSize: 13 }}>
|
|
261
|
-
Searching...
|
|
262
|
-
</div>
|
|
263
|
-
)}
|
|
264
|
-
{error && (
|
|
265
|
-
<div style={{ padding: 18, color: "#ef4444", fontSize: 13 }}>
|
|
266
|
-
{error}
|
|
267
|
-
</div>
|
|
268
|
-
)}
|
|
269
|
-
{trimmed.length >= 2 && !loading && !error && results.length === 0 && (
|
|
270
|
-
<div style={{ padding: 28, textAlign: "center", color: "var(--text-muted)", fontSize: 13 }}>
|
|
271
|
-
No matching conversations found.
|
|
272
|
-
</div>
|
|
273
|
-
)}
|
|
274
|
-
|
|
275
|
-
{results.map((group) => (
|
|
276
|
-
<div key={group.session.id} style={{ borderBottom: "1px solid var(--border)" }}>
|
|
277
|
-
<button
|
|
278
|
-
type="button"
|
|
279
|
-
onClick={() => {
|
|
280
|
-
onSelectSession(group.session);
|
|
281
|
-
onClose();
|
|
282
|
-
}}
|
|
283
|
-
style={{
|
|
284
|
-
width: "100%",
|
|
285
|
-
display: "flex",
|
|
286
|
-
alignItems: "center",
|
|
287
|
-
gap: 10,
|
|
288
|
-
padding: "10px 12px",
|
|
289
|
-
background: "var(--bg-panel)",
|
|
290
|
-
border: "none",
|
|
291
|
-
borderBottom: "1px solid var(--border)",
|
|
292
|
-
color: "var(--text)",
|
|
293
|
-
cursor: "pointer",
|
|
294
|
-
textAlign: "left",
|
|
295
|
-
}}
|
|
296
|
-
onMouseEnter={(e) => { e.currentTarget.style.background = "var(--bg-hover)"; }}
|
|
297
|
-
onMouseLeave={(e) => { e.currentTarget.style.background = "var(--bg-panel)"; }}
|
|
298
|
-
>
|
|
299
|
-
<div style={{ flex: 1, minWidth: 0 }}>
|
|
300
|
-
<div style={{ display: "flex", alignItems: "center", gap: 8, minWidth: 0 }}>
|
|
301
|
-
<span style={{ overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", fontSize: 13, fontWeight: 600 }}>
|
|
302
|
-
{group.session.name || group.session.firstMessage || "(no messages)"}
|
|
303
|
-
</span>
|
|
304
|
-
<span style={{ flexShrink: 0, color: "var(--text-dim)", fontSize: 11 }}>
|
|
305
|
-
{formatDate(group.session.modified)}
|
|
306
|
-
</span>
|
|
307
|
-
</div>
|
|
308
|
-
<div style={{ marginTop: 2, color: "var(--text-dim)", fontSize: 11, fontFamily: "var(--font-mono)", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}>
|
|
309
|
-
{shortenCwd(group.session.cwd, homeDir)}
|
|
310
|
-
</div>
|
|
311
|
-
</div>
|
|
312
|
-
{group.matchCount > group.matches.length && (
|
|
313
|
-
<span style={{ flexShrink: 0, color: "var(--text-muted)", fontSize: 11 }}>
|
|
314
|
-
{group.matchCount} matches
|
|
315
|
-
</span>
|
|
316
|
-
)}
|
|
317
|
-
</button>
|
|
318
|
-
|
|
319
|
-
{group.matches.map((match) => (
|
|
320
|
-
<button
|
|
321
|
-
key={match.entryId}
|
|
322
|
-
type="button"
|
|
323
|
-
onClick={() => {
|
|
324
|
-
onSelectSession(group.session);
|
|
325
|
-
onClose();
|
|
326
|
-
}}
|
|
327
|
-
style={{
|
|
328
|
-
width: "100%",
|
|
329
|
-
padding: "9px 14px 9px 28px",
|
|
330
|
-
background: "none",
|
|
331
|
-
border: "none",
|
|
332
|
-
color: "var(--text-muted)",
|
|
333
|
-
cursor: "pointer",
|
|
334
|
-
textAlign: "left",
|
|
335
|
-
}}
|
|
336
|
-
onMouseEnter={(e) => { e.currentTarget.style.background = "var(--bg-hover)"; }}
|
|
337
|
-
onMouseLeave={(e) => { e.currentTarget.style.background = "none"; }}
|
|
338
|
-
>
|
|
339
|
-
<div style={{ display: "flex", alignItems: "center", gap: 8, marginBottom: 3 }}>
|
|
340
|
-
<span style={{
|
|
341
|
-
minWidth: 54,
|
|
342
|
-
color: match.role === "user" ? "var(--accent)" : "var(--text-dim)",
|
|
343
|
-
fontSize: 11,
|
|
344
|
-
fontWeight: 600,
|
|
345
|
-
textTransform: "capitalize",
|
|
346
|
-
}}>
|
|
347
|
-
{match.role}
|
|
348
|
-
</span>
|
|
349
|
-
<span style={{ color: "var(--text-dim)", fontSize: 11 }}>
|
|
350
|
-
{formatDate(match.timestamp)}
|
|
351
|
-
</span>
|
|
352
|
-
</div>
|
|
353
|
-
<div style={{ fontSize: 12, lineHeight: 1.45, color: "var(--text-muted)" }}>
|
|
354
|
-
{highlightSnippet(match.snippet, trimmed)}
|
|
355
|
-
</div>
|
|
356
|
-
</button>
|
|
357
|
-
))}
|
|
358
|
-
</div>
|
|
359
|
-
))}
|
|
360
|
-
</div>
|
|
361
|
-
|
|
362
|
-
<div style={{ display: "flex", justifyContent: "space-between", padding: "8px 12px", borderTop: "1px solid var(--border)", color: "var(--text-dim)", fontSize: 11 }}>
|
|
363
|
-
<span>{resultCount > 0 ? `${resultCount}${truncated ? "+" : ""} results` : "Esc to close"}</span>
|
|
364
|
-
{loading && results.length > 0 && <span>Updating...</span>}
|
|
365
|
-
</div>
|
|
366
|
-
</div>
|
|
367
|
-
</div>
|
|
368
|
-
);
|
|
369
|
-
}
|