cc-chats 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-build-manifest.json +11 -11
  3. package/.next/app-path-routes-manifest.json +2 -2
  4. package/.next/build-manifest.json +2 -2
  5. package/.next/prerender-manifest.json +10 -10
  6. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  7. package/.next/server/app/_not-found.html +1 -1
  8. package/.next/server/app/_not-found.rsc +2 -2
  9. package/.next/server/app/api/project/rename/route_client-reference-manifest.js +1 -1
  10. package/.next/server/app/api/projects/memory/route_client-reference-manifest.js +1 -1
  11. package/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
  12. package/.next/server/app/api/projects/sessions/route_client-reference-manifest.js +1 -1
  13. package/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
  14. package/.next/server/app/api/session/delete/route_client-reference-manifest.js +1 -1
  15. package/.next/server/app/api/session/duplicate/route_client-reference-manifest.js +1 -1
  16. package/.next/server/app/api/summary/route.js +6 -6
  17. package/.next/server/app/api/summary/route_client-reference-manifest.js +1 -1
  18. package/.next/server/app/api/sync/route_client-reference-manifest.js +1 -1
  19. package/.next/server/app/index.html +1 -1
  20. package/.next/server/app/index.rsc +6 -6
  21. package/.next/server/app/page_client-reference-manifest.js +1 -1
  22. package/.next/server/app/project/[projectPath]/page_client-reference-manifest.js +1 -1
  23. package/.next/server/app/project/[projectPath]/session/[sessionId]/page_client-reference-manifest.js +1 -1
  24. package/.next/server/app/search/page_client-reference-manifest.js +1 -1
  25. package/.next/server/app-paths-manifest.json +2 -2
  26. package/.next/server/chunks/363.js +1 -1
  27. package/.next/server/pages/404.html +1 -1
  28. package/.next/server/pages/500.html +1 -1
  29. package/.next/server/server-reference-manifest.json +1 -1
  30. package/.next/static/chunks/app/page-165e097c34d523c2.js +1 -0
  31. package/.next/static/chunks/app/project/[projectPath]/page-0e277eaa40772193.js +1 -0
  32. package/.next/static/css/9c5191f521376c36.css +3 -0
  33. package/package.json +1 -1
  34. package/.next/static/chunks/app/page-1ce99371e5ab9e54.js +0 -1
  35. package/.next/static/chunks/app/project/[projectPath]/page-23243a0bb07162ab.js +0 -1
  36. package/.next/static/css/c1efde6b9b6c386c.css +0 -3
  37. /package/.next/static/{6D0TFghe5laTWW8yQrGtY → cDN2WcjRgaqWUg1mfQsk2}/_buildManifest.js +0 -0
  38. /package/.next/static/{6D0TFghe5laTWW8yQrGtY → cDN2WcjRgaqWUg1mfQsk2}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/project/[projectPath]/session/[sessionId]/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"449":{"*":{"id":"5969","name":"*","chunks":[],"async":false}},"622":{"*":{"id":"2146","name":"*","chunks":[],"async":false}},"1458":{"*":{"id":"8734","name":"*","chunks":[],"async":false}},"1959":{"*":{"id":"1603","name":"*","chunks":[],"async":false}},"2619":{"*":{"id":"3991","name":"*","chunks":[],"async":false}},"3389":{"*":{"id":"2087","name":"*","chunks":[],"async":false}},"3886":{"*":{"id":"5170","name":"*","chunks":[],"async":false}},"4431":{"*":{"id":"2263","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"8922","name":"*","chunks":[],"async":false}},"6281":{"*":{"id":"8091","name":"*","chunks":[],"async":false}},"6592":{"*":{"id":"9600","name":"*","chunks":[],"async":false}},"7150":{"*":{"id":"4160","name":"*","chunks":[],"async":false}},"7314":{"*":{"id":"5025","name":"*","chunks":[],"async":false}},"7989":{"*":{"id":"8495","name":"*","chunks":[],"async":false}},"8666":{"*":{"id":"2282","name":"*","chunks":[],"async":false}},"8924":{"*":{"id":"9234","name":"*","chunks":[],"async":false}},"8994":{"*":{"id":"5848","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"7526","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7150,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7150,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/client-page.js":{"id":1959,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/client-page.js":{"id":1959,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/client-segment.js":{"id":7989,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/client-segment.js":{"id":7989,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":3886,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":3886,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":5278,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":5278,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/render-from-template-context.js":{"id":8924,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":8924,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/lib/framework/boundary-components.js":{"id":4431,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":4431,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":622,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":622,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"DM_Sans\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-sans\"}],\"variableName\":\"dmSans\"}":{"id":4179,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Instrument_Serif\",\"arguments\":[{\"weight\":\"400\",\"subsets\":[\"latin\"],\"variable\":\"--font-serif\"}],\"variableName\":\"instrumentSerif\"}":{"id":2907,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"JetBrains_Mono\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-mono\"}],\"variableName\":\"jetbrainsMono\"}":{"id":5917,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/globals.css":{"id":3673,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/theme-provider.tsx":{"id":1458,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/global-search.tsx":{"id":6281,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","810","static/chunks/app/project/%5BprojectPath%5D/session/%5BsessionId%5D/page-a834947a4b535ef5.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/project-list.tsx":{"id":8994,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","974","static/chunks/app/page-1ce99371e5ab9e54.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/sync-button.tsx":{"id":3389,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","810","static/chunks/app/project/%5BprojectPath%5D/session/%5BsessionId%5D/page-a834947a4b535ef5.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/theme-toggle.tsx":{"id":449,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","810","static/chunks/app/project/%5BprojectPath%5D/session/%5BsessionId%5D/page-a834947a4b535ef5.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/project-page-content.tsx":{"id":8666,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","943","static/chunks/app/project/%5BprojectPath%5D/page-23243a0bb07162ab.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/app-dir/link.js":{"id":2619,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","810","static/chunks/app/project/%5BprojectPath%5D/session/%5BsessionId%5D/page-a834947a4b535ef5.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/app-dir/link.js":{"id":2619,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","810","static/chunks/app/project/%5BprojectPath%5D/session/%5BsessionId%5D/page-a834947a4b535ef5.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/search/search-results.tsx":{"id":6592,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/session-content.tsx":{"id":7314,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","810","static/chunks/app/project/%5BprojectPath%5D/session/%5BsessionId%5D/page-a834947a4b535ef5.js"],"async":false}},"entryCSSFiles":{"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/":[],"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/layout":[{"inlined":false,"path":"static/css/c1efde6b9b6c386c.css"}],"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/page":[],"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/project/[projectPath]/page":[],"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/project/[projectPath]/session/[sessionId]/page":[]},"rscModuleMapping":{"449":{"*":{"id":"1699","name":"*","chunks":[],"async":false}},"622":{"*":{"id":"1384","name":"*","chunks":[],"async":false}},"1458":{"*":{"id":"3340","name":"*","chunks":[],"async":false}},"1959":{"*":{"id":"3597","name":"*","chunks":[],"async":false}},"2619":{"*":{"id":"5169","name":"*","chunks":[],"async":false}},"3389":{"*":{"id":"8913","name":"*","chunks":[],"async":false}},"3673":{"*":{"id":"1135","name":"*","chunks":[],"async":false}},"3886":{"*":{"id":"9748","name":"*","chunks":[],"async":false}},"4431":{"*":{"id":"3041","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"6281":{"*":{"id":"1685","name":"*","chunks":[],"async":false}},"6592":{"*":{"id":"3758","name":"*","chunks":[],"async":false}},"7150":{"*":{"id":"1170","name":"*","chunks":[],"async":false}},"7314":{"*":{"id":"323","name":"*","chunks":[],"async":false}},"7989":{"*":{"id":"6893","name":"*","chunks":[],"async":false}},"8666":{"*":{"id":"6157","name":"*","chunks":[],"async":false}},"8924":{"*":{"id":"9576","name":"*","chunks":[],"async":false}},"8994":{"*":{"id":"4591","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
1
+ globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/project/[projectPath]/session/[sessionId]/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"449":{"*":{"id":"5969","name":"*","chunks":[],"async":false}},"622":{"*":{"id":"2146","name":"*","chunks":[],"async":false}},"1458":{"*":{"id":"8734","name":"*","chunks":[],"async":false}},"1959":{"*":{"id":"1603","name":"*","chunks":[],"async":false}},"2619":{"*":{"id":"3991","name":"*","chunks":[],"async":false}},"3389":{"*":{"id":"2087","name":"*","chunks":[],"async":false}},"3886":{"*":{"id":"5170","name":"*","chunks":[],"async":false}},"4431":{"*":{"id":"2263","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"8922","name":"*","chunks":[],"async":false}},"6281":{"*":{"id":"8091","name":"*","chunks":[],"async":false}},"6592":{"*":{"id":"9600","name":"*","chunks":[],"async":false}},"7150":{"*":{"id":"4160","name":"*","chunks":[],"async":false}},"7314":{"*":{"id":"5025","name":"*","chunks":[],"async":false}},"7989":{"*":{"id":"8495","name":"*","chunks":[],"async":false}},"8666":{"*":{"id":"2282","name":"*","chunks":[],"async":false}},"8924":{"*":{"id":"9234","name":"*","chunks":[],"async":false}},"8994":{"*":{"id":"5848","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"7526","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7150,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7150,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/client-page.js":{"id":1959,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/client-page.js":{"id":1959,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/client-segment.js":{"id":7989,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/client-segment.js":{"id":7989,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":3886,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":3886,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":5278,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":5278,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/render-from-template-context.js":{"id":8924,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":8924,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/lib/framework/boundary-components.js":{"id":4431,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":4431,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":622,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":622,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"DM_Sans\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-sans\"}],\"variableName\":\"dmSans\"}":{"id":4179,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Instrument_Serif\",\"arguments\":[{\"weight\":\"400\",\"subsets\":[\"latin\"],\"variable\":\"--font-serif\"}],\"variableName\":\"instrumentSerif\"}":{"id":2907,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"JetBrains_Mono\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-mono\"}],\"variableName\":\"jetbrainsMono\"}":{"id":5917,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/globals.css":{"id":3673,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/theme-provider.tsx":{"id":1458,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/project-page-content.tsx":{"id":8666,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","943","static/chunks/app/project/%5BprojectPath%5D/page-0e277eaa40772193.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/global-search.tsx":{"id":6281,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","810","static/chunks/app/project/%5BprojectPath%5D/session/%5BsessionId%5D/page-a834947a4b535ef5.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/project-list.tsx":{"id":8994,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","974","static/chunks/app/page-165e097c34d523c2.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/sync-button.tsx":{"id":3389,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","810","static/chunks/app/project/%5BprojectPath%5D/session/%5BsessionId%5D/page-a834947a4b535ef5.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/theme-toggle.tsx":{"id":449,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","810","static/chunks/app/project/%5BprojectPath%5D/session/%5BsessionId%5D/page-a834947a4b535ef5.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/app-dir/link.js":{"id":2619,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","810","static/chunks/app/project/%5BprojectPath%5D/session/%5BsessionId%5D/page-a834947a4b535ef5.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/app-dir/link.js":{"id":2619,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","810","static/chunks/app/project/%5BprojectPath%5D/session/%5BsessionId%5D/page-a834947a4b535ef5.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/search/search-results.tsx":{"id":6592,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/session-content.tsx":{"id":7314,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","810","static/chunks/app/project/%5BprojectPath%5D/session/%5BsessionId%5D/page-a834947a4b535ef5.js"],"async":false}},"entryCSSFiles":{"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/":[],"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/layout":[{"inlined":false,"path":"static/css/9c5191f521376c36.css"}],"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/page":[],"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/project/[projectPath]/page":[],"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/project/[projectPath]/session/[sessionId]/page":[]},"rscModuleMapping":{"449":{"*":{"id":"1699","name":"*","chunks":[],"async":false}},"622":{"*":{"id":"1384","name":"*","chunks":[],"async":false}},"1458":{"*":{"id":"3340","name":"*","chunks":[],"async":false}},"1959":{"*":{"id":"3597","name":"*","chunks":[],"async":false}},"2619":{"*":{"id":"5169","name":"*","chunks":[],"async":false}},"3389":{"*":{"id":"8913","name":"*","chunks":[],"async":false}},"3673":{"*":{"id":"1135","name":"*","chunks":[],"async":false}},"3886":{"*":{"id":"9748","name":"*","chunks":[],"async":false}},"4431":{"*":{"id":"3041","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"6281":{"*":{"id":"1685","name":"*","chunks":[],"async":false}},"6592":{"*":{"id":"3758","name":"*","chunks":[],"async":false}},"7150":{"*":{"id":"1170","name":"*","chunks":[],"async":false}},"7314":{"*":{"id":"323","name":"*","chunks":[],"async":false}},"7989":{"*":{"id":"6893","name":"*","chunks":[],"async":false}},"8666":{"*":{"id":"6157","name":"*","chunks":[],"async":false}},"8924":{"*":{"id":"9576","name":"*","chunks":[],"async":false}},"8994":{"*":{"id":"4591","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
@@ -1 +1 @@
1
- globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/search/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"449":{"*":{"id":"5969","name":"*","chunks":[],"async":false}},"622":{"*":{"id":"2146","name":"*","chunks":[],"async":false}},"1458":{"*":{"id":"8734","name":"*","chunks":[],"async":false}},"1959":{"*":{"id":"1603","name":"*","chunks":[],"async":false}},"2619":{"*":{"id":"3991","name":"*","chunks":[],"async":false}},"3389":{"*":{"id":"2087","name":"*","chunks":[],"async":false}},"3886":{"*":{"id":"5170","name":"*","chunks":[],"async":false}},"4431":{"*":{"id":"2263","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"8922","name":"*","chunks":[],"async":false}},"6281":{"*":{"id":"8091","name":"*","chunks":[],"async":false}},"6592":{"*":{"id":"9600","name":"*","chunks":[],"async":false}},"7150":{"*":{"id":"4160","name":"*","chunks":[],"async":false}},"7314":{"*":{"id":"5025","name":"*","chunks":[],"async":false}},"7989":{"*":{"id":"8495","name":"*","chunks":[],"async":false}},"8666":{"*":{"id":"2282","name":"*","chunks":[],"async":false}},"8924":{"*":{"id":"9234","name":"*","chunks":[],"async":false}},"8994":{"*":{"id":"5848","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"7526","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7150,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7150,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/client-page.js":{"id":1959,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/client-page.js":{"id":1959,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/client-segment.js":{"id":7989,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/client-segment.js":{"id":7989,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":3886,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":3886,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":5278,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":5278,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/render-from-template-context.js":{"id":8924,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":8924,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/lib/framework/boundary-components.js":{"id":4431,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":4431,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":622,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":622,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"DM_Sans\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-sans\"}],\"variableName\":\"dmSans\"}":{"id":4179,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Instrument_Serif\",\"arguments\":[{\"weight\":\"400\",\"subsets\":[\"latin\"],\"variable\":\"--font-serif\"}],\"variableName\":\"instrumentSerif\"}":{"id":2907,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"JetBrains_Mono\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-mono\"}],\"variableName\":\"jetbrainsMono\"}":{"id":5917,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/globals.css":{"id":3673,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/theme-provider.tsx":{"id":1458,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/global-search.tsx":{"id":6281,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","959","static/chunks/app/search/page-c0836568a011198b.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/project-list.tsx":{"id":8994,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","974","static/chunks/app/page-1ce99371e5ab9e54.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/sync-button.tsx":{"id":3389,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","959","static/chunks/app/search/page-c0836568a011198b.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/theme-toggle.tsx":{"id":449,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","959","static/chunks/app/search/page-c0836568a011198b.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/project-page-content.tsx":{"id":8666,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/app-dir/link.js":{"id":2619,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","959","static/chunks/app/search/page-c0836568a011198b.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/app-dir/link.js":{"id":2619,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","959","static/chunks/app/search/page-c0836568a011198b.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/search/search-results.tsx":{"id":6592,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","959","static/chunks/app/search/page-c0836568a011198b.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/session-content.tsx":{"id":7314,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/":[],"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/layout":[{"inlined":false,"path":"static/css/c1efde6b9b6c386c.css"}],"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/page":[],"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/search/page":[]},"rscModuleMapping":{"449":{"*":{"id":"1699","name":"*","chunks":[],"async":false}},"622":{"*":{"id":"1384","name":"*","chunks":[],"async":false}},"1458":{"*":{"id":"3340","name":"*","chunks":[],"async":false}},"1959":{"*":{"id":"3597","name":"*","chunks":[],"async":false}},"2619":{"*":{"id":"5169","name":"*","chunks":[],"async":false}},"3389":{"*":{"id":"8913","name":"*","chunks":[],"async":false}},"3673":{"*":{"id":"1135","name":"*","chunks":[],"async":false}},"3886":{"*":{"id":"9748","name":"*","chunks":[],"async":false}},"4431":{"*":{"id":"3041","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"6281":{"*":{"id":"1685","name":"*","chunks":[],"async":false}},"6592":{"*":{"id":"3758","name":"*","chunks":[],"async":false}},"7150":{"*":{"id":"1170","name":"*","chunks":[],"async":false}},"7314":{"*":{"id":"323","name":"*","chunks":[],"async":false}},"7989":{"*":{"id":"6893","name":"*","chunks":[],"async":false}},"8666":{"*":{"id":"6157","name":"*","chunks":[],"async":false}},"8924":{"*":{"id":"9576","name":"*","chunks":[],"async":false}},"8994":{"*":{"id":"4591","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
1
+ globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/search/page"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"449":{"*":{"id":"5969","name":"*","chunks":[],"async":false}},"622":{"*":{"id":"2146","name":"*","chunks":[],"async":false}},"1458":{"*":{"id":"8734","name":"*","chunks":[],"async":false}},"1959":{"*":{"id":"1603","name":"*","chunks":[],"async":false}},"2619":{"*":{"id":"3991","name":"*","chunks":[],"async":false}},"3389":{"*":{"id":"2087","name":"*","chunks":[],"async":false}},"3886":{"*":{"id":"5170","name":"*","chunks":[],"async":false}},"4431":{"*":{"id":"2263","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"8922","name":"*","chunks":[],"async":false}},"6281":{"*":{"id":"8091","name":"*","chunks":[],"async":false}},"6592":{"*":{"id":"9600","name":"*","chunks":[],"async":false}},"7150":{"*":{"id":"4160","name":"*","chunks":[],"async":false}},"7314":{"*":{"id":"5025","name":"*","chunks":[],"async":false}},"7989":{"*":{"id":"8495","name":"*","chunks":[],"async":false}},"8666":{"*":{"id":"2282","name":"*","chunks":[],"async":false}},"8924":{"*":{"id":"9234","name":"*","chunks":[],"async":false}},"8994":{"*":{"id":"5848","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"7526","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/builtin/global-error.js":{"id":7150,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":7150,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/client-page.js":{"id":1959,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/client-page.js":{"id":1959,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/client-segment.js":{"id":7989,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/client-segment.js":{"id":7989,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":3886,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":3886,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/layout-router.js":{"id":9766,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":5278,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":5278,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/components/render-from-template-context.js":{"id":8924,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":8924,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/lib/framework/boundary-components.js":{"id":4431,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":4431,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":622,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":622,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"DM_Sans\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-sans\"}],\"variableName\":\"dmSans\"}":{"id":4179,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Instrument_Serif\",\"arguments\":[{\"weight\":\"400\",\"subsets\":[\"latin\"],\"variable\":\"--font-serif\"}],\"variableName\":\"instrumentSerif\"}":{"id":2907,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"JetBrains_Mono\",\"arguments\":[{\"subsets\":[\"latin\"],\"variable\":\"--font-mono\"}],\"variableName\":\"jetbrainsMono\"}":{"id":5917,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/globals.css":{"id":3673,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/theme-provider.tsx":{"id":1458,"name":"*","chunks":["177","static/chunks/app/layout-439f7d41814bd173.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/project-page-content.tsx":{"id":8666,"name":"*","chunks":[],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/global-search.tsx":{"id":6281,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","959","static/chunks/app/search/page-c0836568a011198b.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/project-list.tsx":{"id":8994,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","974","static/chunks/app/page-165e097c34d523c2.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/sync-button.tsx":{"id":3389,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","959","static/chunks/app/search/page-c0836568a011198b.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/theme-toggle.tsx":{"id":449,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","959","static/chunks/app/search/page-c0836568a011198b.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/client/app-dir/link.js":{"id":2619,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","959","static/chunks/app/search/page-c0836568a011198b.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/node_modules/next/dist/esm/client/app-dir/link.js":{"id":2619,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","959","static/chunks/app/search/page-c0836568a011198b.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/search/search-results.tsx":{"id":6592,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","959","static/chunks/app/search/page-c0836568a011198b.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/session-content.tsx":{"id":7314,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/":[],"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/layout":[{"inlined":false,"path":"static/css/9c5191f521376c36.css"}],"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/page":[],"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/search/page":[]},"rscModuleMapping":{"449":{"*":{"id":"1699","name":"*","chunks":[],"async":false}},"622":{"*":{"id":"1384","name":"*","chunks":[],"async":false}},"1458":{"*":{"id":"3340","name":"*","chunks":[],"async":false}},"1959":{"*":{"id":"3597","name":"*","chunks":[],"async":false}},"2619":{"*":{"id":"5169","name":"*","chunks":[],"async":false}},"3389":{"*":{"id":"8913","name":"*","chunks":[],"async":false}},"3673":{"*":{"id":"1135","name":"*","chunks":[],"async":false}},"3886":{"*":{"id":"9748","name":"*","chunks":[],"async":false}},"4431":{"*":{"id":"3041","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"6281":{"*":{"id":"1685","name":"*","chunks":[],"async":false}},"6592":{"*":{"id":"3758","name":"*","chunks":[],"async":false}},"7150":{"*":{"id":"1170","name":"*","chunks":[],"async":false}},"7314":{"*":{"id":"323","name":"*","chunks":[],"async":false}},"7989":{"*":{"id":"6893","name":"*","chunks":[],"async":false}},"8666":{"*":{"id":"6157","name":"*","chunks":[],"async":false}},"8924":{"*":{"id":"9576","name":"*","chunks":[],"async":false}},"8994":{"*":{"id":"4591","name":"*","chunks":[],"async":false}},"9766":{"*":{"id":"6060","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
@@ -2,15 +2,15 @@
2
2
  "/_not-found/page": "app/_not-found/page.js",
3
3
  "/api/projects/memory/route": "app/api/projects/memory/route.js",
4
4
  "/api/projects/route": "app/api/projects/route.js",
5
- "/api/search/route": "app/api/search/route.js",
6
5
  "/api/session/delete/route": "app/api/session/delete/route.js",
7
6
  "/api/sync/route": "app/api/sync/route.js",
7
+ "/api/search/route": "app/api/search/route.js",
8
8
  "/api/projects/sessions/route": "app/api/projects/sessions/route.js",
9
9
  "/api/project/rename/route": "app/api/project/rename/route.js",
10
10
  "/api/summary/route": "app/api/summary/route.js",
11
11
  "/api/session/duplicate/route": "app/api/session/duplicate/route.js",
12
- "/page": "app/page.js",
13
12
  "/project/[projectPath]/page": "app/project/[projectPath]/page.js",
13
+ "/page": "app/page.js",
14
14
  "/search/page": "app/search/page.js",
15
15
  "/project/[projectPath]/session/[sessionId]/page": "app/project/[projectPath]/session/[sessionId]/page.js"
16
16
  }
@@ -1 +1 @@
1
- exports.id=363,exports.ids=[363],exports.modules={9:(a,b,c)=>{"use strict";c.d(b,{S:()=>f});var d=c(1124),e=c(8301);function f({encodedPath:a,onClose:b}){let[c,f]=(0,e.useState)(null),[g,h]=(0,e.useState)(null),i=(0,e.useRef)(null);return(0,d.jsx)("div",{ref:i,className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 backdrop-blur-sm animate-fade",onClick:a=>{a.target===i.current&&b()},children:(0,d.jsxs)("div",{className:"bg-surface-elevated border border-edge rounded-2xl w-full max-w-2xl max-h-[80vh] flex flex-col shadow-2xl mx-4 animate-modal",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between px-5 py-4 border-b border-edge-subtle",children:[(0,d.jsx)("h2",{className:"text-sm font-serif text-content-primary",children:"Project Memory"}),(0,d.jsx)("button",{onClick:b,className:"text-content-tertiary hover:text-content-primary transition-colors",children:(0,d.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,d.jsxs)("div",{className:"overflow-y-auto p-5 space-y-6 scrollbar-thin",children:[g&&(0,d.jsx)("p",{className:"text-sm text-danger",children:g}),!c&&!g&&(0,d.jsx)("p",{className:"text-sm text-content-tertiary",children:"Loading..."}),c?.map(a=>(0,d.jsxs)("div",{children:[c.length>1&&(0,d.jsx)("h3",{className:"text-xs font-medium text-accent/70 mb-2 font-mono",children:a.name}),(0,d.jsx)("pre",{className:"text-sm text-content-secondary whitespace-pre-wrap font-mono leading-relaxed",children:a.content})]},a.name)),c?.length===0&&(0,d.jsx)("p",{className:"text-sm text-content-tertiary",children:"No memory files found."})]})]})})}},1135:()=>{},1472:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>m,metadata:()=>l});var d=c(5338),e=c(7785),f=c.n(e),g=c(6785),h=c.n(g),i=c(7855),j=c.n(i),k=c(3340);c(1135);let l={title:"Claude Code Chats",description:"Browse your Claude Code chat history"};function m({children:a}){return(0,d.jsxs)("html",{lang:"en",suppressHydrationWarning:!0,children:[(0,d.jsx)("head",{children:(0,d.jsx)("script",{dangerouslySetInnerHTML:{__html:'(function(){try{var t=localStorage.getItem("theme");if(t==="light"||t==="dark"){document.documentElement.setAttribute("data-theme",t)}else{document.documentElement.setAttribute("data-theme",window.matchMedia("(prefers-color-scheme:light)").matches?"light":"dark")}}catch(e){document.documentElement.setAttribute("data-theme","dark")}})()'}})}),(0,d.jsx)("body",{className:`${f().variable} ${h().variable} ${j().variable} font-sans min-h-screen antialiased`,children:(0,d.jsx)(k.ThemeProvider,{children:a})})]})}},1906:(a,b,c)=>{Promise.resolve().then(c.bind(c,8734))},2087:(a,b,c)=>{"use strict";c.d(b,{SyncButton:()=>f});var d=c(1124),e=c(8301);function f(){let[a,b]=(0,e.useState)(!1),[c,f]=(0,e.useState)(null),g=async()=>{b(!0),f(null);try{let a=await fetch("/api/sync",{method:"POST"});if(!a.ok)throw Error("Sync failed");let b=await a.json();f(b.sync),window.dispatchEvent(new Event("sync-complete")),setTimeout(()=>f(null),3e3)}catch(a){console.error("Sync error:",a)}finally{b(!1)}};return(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("button",{onClick:g,disabled:a,className:"p-2 text-content-tertiary hover:text-content-secondary hover:bg-surface-elevated rounded-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",title:"Resync database",children:(0,d.jsx)("svg",{className:`w-5 h-5 ${a?"animate-spin":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}),c&&(c.added>0||c.updated>0||c.removed>0)&&(0,d.jsxs)("div",{className:"text-xs text-content-tertiary whitespace-nowrap animate-fade",children:[c.added>0&&`+${c.added}`,c.updated>0&&` ~${c.updated}`,c.removed>0&&` -${c.removed}`]})]})}},2155:(a,b,c)=>{"use strict";function d(a){if("number"==typeof a)return a;let b=Date.parse(a);return isNaN(b)?0:b}function e(a){let b=Date.now()-a,c=Math.floor(b/6e4),d=Math.floor(b/36e5),e=Math.floor(b/864e5),f=Math.floor(b/6048e5),g=Math.floor(b/2592e6);if(c<1)return"Just now";if(c<60)return`${c}m ago`;if(d<24)return`${d}h ago`;if(e<7)return`${e}d ago`;if(e<30)return`${f}w ago`;if(g<12)return`${g}mo ago`;let h=Math.floor(g/12);return`${h}y ago`}function f(a){return new Date(d(a)).toLocaleString("en-GB",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})}function g(a){return a>=1e6?`${(a/1e6).toFixed(1)}M`:a>=1e4?`${(a/1e3).toFixed(1)}k`:a.toLocaleString("en-GB")}c.d(b,{EH:()=>d,ap:()=>g,fw:()=>e,r6:()=>f})},2194:(a,b,c)=>{"use strict";c.d(b,{D:()=>e});var d=c(1124);function e({value:a,onChange:b,placeholder:c="Search..."}){return(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-content-tertiary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,d.jsx)("input",{type:"text",value:a,onChange:a=>b(a.target.value),placeholder:c,className:"w-full pl-10 pr-10 py-2.5 bg-surface border border-edge-subtle rounded-xl text-sm text-content-primary placeholder-content-tertiary focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 transition-all"}),a&&(0,d.jsx)("button",{onClick:()=>b(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-content-tertiary hover:text-content-secondary transition-colors",children:(0,d.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})}},3340:(a,b,c)=>{"use strict";c.d(b,{ThemeProvider:()=>e});var d=c(7954);(0,d.registerClientReference)(function(){throw Error("Attempted to call useTheme() from the server but useTheme is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/theme-provider.tsx","useTheme");let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call ThemeProvider() from the server but ThemeProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/theme-provider.tsx","ThemeProvider")},5153:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,4160,23)),Promise.resolve().then(c.t.bind(c,1603,23)),Promise.resolve().then(c.t.bind(c,8495,23)),Promise.resolve().then(c.t.bind(c,5170,23)),Promise.resolve().then(c.t.bind(c,7526,23)),Promise.resolve().then(c.t.bind(c,8922,23)),Promise.resolve().then(c.t.bind(c,9234,23)),Promise.resolve().then(c.t.bind(c,2263,23)),Promise.resolve().then(c.bind(c,2146))},5969:(a,b,c)=>{"use strict";c.d(b,{ThemeToggle:()=>g});var d=c(1124),e=c(8734);let f={system:"System",light:"Light",dark:"Dark"};function g(){let{theme:a,cycle:b}=(0,e.D)();return(0,d.jsx)("button",{onClick:b,className:"p-2 text-content-tertiary hover:text-content-secondary hover:bg-surface-elevated rounded-lg transition-all flex-shrink-0",title:`Theme: ${f[a]}`,children:"system"===a?(0,d.jsx)("svg",{className:"w-[18px] h-[18px]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})}):"light"===a?(0,d.jsx)("svg",{className:"w-[18px] h-[18px]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}):(0,d.jsx)("svg",{className:"w-[18px] h-[18px]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})})}},7626:(a,b,c)=>{Promise.resolve().then(c.bind(c,3340))},8091:(a,b,c)=>{"use strict";c.d(b,{GlobalSearch:()=>g});var d=c(1124),e=c(8301),f=c(2378);function g({projectPath:a}){let[b,c]=(0,e.useState)(""),g=(0,f.useRouter)(),h=(0,e.useRef)(null),i=(0,e.useCallback)(c=>{if(c.preventDefault(),b.trim()){let c=new URLSearchParams({q:b.trim()});a&&c.set("project",a),g.push(`/search?${c.toString()}`)}},[b,g,a]),j=a?"Search this project...":"Search all chats...";return(0,d.jsxs)("form",{onSubmit:i,className:"relative",children:[(0,d.jsx)("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-content-tertiary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,d.jsx)("input",{ref:h,type:"text",value:b,onChange:a=>c(a.target.value),placeholder:j,className:"w-full pl-10 pr-16 py-2 bg-surface border border-edge-subtle rounded-xl text-sm text-content-primary placeholder-content-tertiary focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 transition-all"}),!b&&(0,d.jsxs)("kbd",{className:"absolute right-3 top-1/2 -translate-y-1/2 hidden sm:inline-flex items-center gap-0.5 px-1.5 py-0.5 text-[10px] font-mono text-content-tertiary bg-surface-elevated border border-edge-subtle rounded",children:[(0,d.jsx)("span",{className:"text-xs",children:"⌘"}),"K"]})]})}},8734:(a,b,c)=>{"use strict";c.d(b,{D:()=>g,ThemeProvider:()=>h});var d=c(1124),e=c(8301);let f=(0,e.createContext)({theme:"system",resolved:"dark",setTheme:()=>{},cycle:()=>{}});function g(){return(0,e.useContext)(f)}function h({children:a}){let[b,c]=(0,e.useState)("system"),[g,h]=(0,e.useState)("dark"),i=(0,e.useCallback)(a=>{c(a),localStorage.setItem("theme",a)},[]),j=(0,e.useCallback)(()=>{let a=["system","light","dark"];i(a[(a.indexOf(b)+1)%a.length])},[b,i]);return(0,d.jsx)(f.Provider,{value:{theme:b,resolved:g,setTheme:i,cycle:j},children:a})}},9473:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,1170,23)),Promise.resolve().then(c.t.bind(c,3597,23)),Promise.resolve().then(c.t.bind(c,6893,23)),Promise.resolve().then(c.t.bind(c,9748,23)),Promise.resolve().then(c.t.bind(c,6060,23)),Promise.resolve().then(c.t.bind(c,7184,23)),Promise.resolve().then(c.t.bind(c,9576,23)),Promise.resolve().then(c.t.bind(c,3041,23)),Promise.resolve().then(c.t.bind(c,1384,23))}};
1
+ exports.id=363,exports.ids=[363],exports.modules={9:(a,b,c)=>{"use strict";c.d(b,{S:()=>g});var d=c(1124),e=c(8301),f=c(3312);function g({encodedPath:a,onClose:b}){let[c,g]=(0,e.useState)(null),[h,i]=(0,e.useState)(null);return(0,f.createPortal)((0,d.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,d.jsx)("div",{className:"absolute inset-0 bg-black/70 backdrop-blur-sm animate-fade",onClick:b}),(0,d.jsxs)("div",{className:"relative bg-surface-elevated border border-edge rounded-2xl w-full max-w-4xl max-h-[85vh] flex flex-col shadow-2xl mx-4 animate-modal",children:[(0,d.jsxs)("div",{className:"flex items-center justify-between px-5 py-4 border-b border-edge-subtle",children:[(0,d.jsx)("h2",{className:"text-sm font-serif text-content-primary",children:"Project Memory"}),(0,d.jsx)("button",{onClick:b,className:"p-1.5 -mr-1.5 text-content-tertiary hover:text-content-primary hover:bg-surface rounded-lg transition-all",children:(0,d.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,d.jsxs)("div",{className:"overflow-y-auto p-5 space-y-6 scrollbar-thin",children:[h&&(0,d.jsx)("p",{className:"text-sm text-danger",children:h}),!c&&!h&&(0,d.jsx)("p",{className:"text-sm text-content-tertiary",children:"Loading..."}),c?.map(a=>(0,d.jsxs)("div",{children:[c.length>1&&(0,d.jsx)("h3",{className:"text-xs font-medium text-accent/70 mb-2 font-mono",children:a.name}),(0,d.jsx)("pre",{className:"text-sm text-content-secondary whitespace-pre-wrap font-mono leading-relaxed",children:a.content})]},a.name)),c?.length===0&&(0,d.jsx)("p",{className:"text-sm text-content-tertiary",children:"No memory files found."})]})]})]}),document.body)}},1135:()=>{},1472:(a,b,c)=>{"use strict";c.r(b),c.d(b,{default:()=>m,metadata:()=>l});var d=c(5338),e=c(7785),f=c.n(e),g=c(6785),h=c.n(g),i=c(7855),j=c.n(i),k=c(3340);c(1135);let l={title:"Claude Code Chats",description:"Browse your Claude Code chat history"};function m({children:a}){return(0,d.jsxs)("html",{lang:"en",suppressHydrationWarning:!0,children:[(0,d.jsx)("head",{children:(0,d.jsx)("script",{dangerouslySetInnerHTML:{__html:'(function(){try{var t=localStorage.getItem("theme");if(t==="light"||t==="dark"){document.documentElement.setAttribute("data-theme",t)}else{document.documentElement.setAttribute("data-theme",window.matchMedia("(prefers-color-scheme:light)").matches?"light":"dark")}}catch(e){document.documentElement.setAttribute("data-theme","dark")}})()'}})}),(0,d.jsx)("body",{className:`${f().variable} ${h().variable} ${j().variable} font-sans min-h-screen antialiased`,children:(0,d.jsx)(k.ThemeProvider,{children:a})})]})}},1906:(a,b,c)=>{Promise.resolve().then(c.bind(c,8734))},2087:(a,b,c)=>{"use strict";c.d(b,{SyncButton:()=>f});var d=c(1124),e=c(8301);function f(){let[a,b]=(0,e.useState)(!1),[c,f]=(0,e.useState)(null),g=async()=>{b(!0),f(null);try{let a=await fetch("/api/sync",{method:"POST"});if(!a.ok)throw Error("Sync failed");let b=await a.json();f(b.sync),window.dispatchEvent(new Event("sync-complete")),setTimeout(()=>f(null),3e3)}catch(a){console.error("Sync error:",a)}finally{b(!1)}};return(0,d.jsxs)("div",{className:"flex items-center gap-2",children:[(0,d.jsx)("button",{onClick:g,disabled:a,className:"p-2 text-content-tertiary hover:text-content-secondary hover:bg-surface-elevated rounded-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",title:"Resync database",children:(0,d.jsx)("svg",{className:`w-5 h-5 ${a?"animate-spin":""}`,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}),c&&(c.added>0||c.updated>0||c.removed>0)&&(0,d.jsxs)("div",{className:"text-xs text-content-tertiary whitespace-nowrap animate-fade",children:[c.added>0&&`+${c.added}`,c.updated>0&&` ~${c.updated}`,c.removed>0&&` -${c.removed}`]})]})}},2155:(a,b,c)=>{"use strict";function d(a){if("number"==typeof a)return a;let b=Date.parse(a);return isNaN(b)?0:b}function e(a){let b=Date.now()-a,c=Math.floor(b/6e4),d=Math.floor(b/36e5),e=Math.floor(b/864e5),f=Math.floor(b/6048e5),g=Math.floor(b/2592e6);if(c<1)return"Just now";if(c<60)return`${c}m ago`;if(d<24)return`${d}h ago`;if(e<7)return`${e}d ago`;if(e<30)return`${f}w ago`;if(g<12)return`${g}mo ago`;let h=Math.floor(g/12);return`${h}y ago`}function f(a){return new Date(d(a)).toLocaleString("en-GB",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})}function g(a){return a>=1e6?`${(a/1e6).toFixed(1)}M`:a>=1e4?`${(a/1e3).toFixed(1)}k`:a.toLocaleString("en-GB")}c.d(b,{EH:()=>d,ap:()=>g,fw:()=>e,r6:()=>f})},2194:(a,b,c)=>{"use strict";c.d(b,{D:()=>e});var d=c(1124);function e({value:a,onChange:b,placeholder:c="Search..."}){return(0,d.jsxs)("div",{className:"relative",children:[(0,d.jsx)("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-content-tertiary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,d.jsx)("input",{type:"text",value:a,onChange:a=>b(a.target.value),placeholder:c,className:"w-full pl-10 pr-10 py-2.5 bg-surface border border-edge-subtle rounded-xl text-sm text-content-primary placeholder-content-tertiary focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 transition-all"}),a&&(0,d.jsx)("button",{onClick:()=>b(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-content-tertiary hover:text-content-secondary transition-colors",children:(0,d.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})}},3340:(a,b,c)=>{"use strict";c.d(b,{ThemeProvider:()=>e});var d=c(7954);(0,d.registerClientReference)(function(){throw Error("Attempted to call useTheme() from the server but useTheme is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/theme-provider.tsx","useTheme");let e=(0,d.registerClientReference)(function(){throw Error("Attempted to call ThemeProvider() from the server but ThemeProvider is on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/theme-provider.tsx","ThemeProvider")},5153:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,4160,23)),Promise.resolve().then(c.t.bind(c,1603,23)),Promise.resolve().then(c.t.bind(c,8495,23)),Promise.resolve().then(c.t.bind(c,5170,23)),Promise.resolve().then(c.t.bind(c,7526,23)),Promise.resolve().then(c.t.bind(c,8922,23)),Promise.resolve().then(c.t.bind(c,9234,23)),Promise.resolve().then(c.t.bind(c,2263,23)),Promise.resolve().then(c.bind(c,2146))},5969:(a,b,c)=>{"use strict";c.d(b,{ThemeToggle:()=>g});var d=c(1124),e=c(8734);let f={system:"System",light:"Light",dark:"Dark"};function g(){let{theme:a,cycle:b}=(0,e.D)();return(0,d.jsx)("button",{onClick:b,className:"p-2 text-content-tertiary hover:text-content-secondary hover:bg-surface-elevated rounded-lg transition-all flex-shrink-0",title:`Theme: ${f[a]}`,children:"system"===a?(0,d.jsx)("svg",{className:"w-[18px] h-[18px]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})}):"light"===a?(0,d.jsx)("svg",{className:"w-[18px] h-[18px]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}):(0,d.jsx)("svg",{className:"w-[18px] h-[18px]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})})}},7626:(a,b,c)=>{Promise.resolve().then(c.bind(c,3340))},8091:(a,b,c)=>{"use strict";c.d(b,{GlobalSearch:()=>g});var d=c(1124),e=c(8301),f=c(2378);function g({projectPath:a}){let[b,c]=(0,e.useState)(""),g=(0,f.useRouter)(),h=(0,e.useRef)(null),i=(0,e.useCallback)(c=>{if(c.preventDefault(),b.trim()){let c=new URLSearchParams({q:b.trim()});a&&c.set("project",a),g.push(`/search?${c.toString()}`)}},[b,g,a]),j=a?"Search this project...":"Search all chats...";return(0,d.jsxs)("form",{onSubmit:i,className:"relative",children:[(0,d.jsx)("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-content-tertiary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,d.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,d.jsx)("input",{ref:h,type:"text",value:b,onChange:a=>c(a.target.value),placeholder:j,className:"w-full pl-10 pr-16 py-2 bg-surface border border-edge-subtle rounded-xl text-sm text-content-primary placeholder-content-tertiary focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 transition-all"}),!b&&(0,d.jsxs)("kbd",{className:"absolute right-3 top-1/2 -translate-y-1/2 hidden sm:inline-flex items-center gap-0.5 px-1.5 py-0.5 text-[10px] font-mono text-content-tertiary bg-surface-elevated border border-edge-subtle rounded",children:[(0,d.jsx)("span",{className:"text-xs",children:"⌘"}),"K"]})]})}},8734:(a,b,c)=>{"use strict";c.d(b,{D:()=>g,ThemeProvider:()=>h});var d=c(1124),e=c(8301);let f=(0,e.createContext)({theme:"system",resolved:"dark",setTheme:()=>{},cycle:()=>{}});function g(){return(0,e.useContext)(f)}function h({children:a}){let[b,c]=(0,e.useState)("system"),[g,h]=(0,e.useState)("dark"),i=(0,e.useCallback)(a=>{c(a),localStorage.setItem("theme",a)},[]),j=(0,e.useCallback)(()=>{let a=["system","light","dark"];i(a[(a.indexOf(b)+1)%a.length])},[b,i]);return(0,d.jsx)(f.Provider,{value:{theme:b,resolved:g,setTheme:i,cycle:j},children:a})}},9473:(a,b,c)=>{Promise.resolve().then(c.t.bind(c,1170,23)),Promise.resolve().then(c.t.bind(c,3597,23)),Promise.resolve().then(c.t.bind(c,6893,23)),Promise.resolve().then(c.t.bind(c,9748,23)),Promise.resolve().then(c.t.bind(c,6060,23)),Promise.resolve().then(c.t.bind(c,7184,23)),Promise.resolve().then(c.t.bind(c,9576,23)),Promise.resolve().then(c.t.bind(c,3041,23)),Promise.resolve().then(c.t.bind(c,1384,23))}};
@@ -1 +1 @@
1
- <!DOCTYPE html><!--6D0TFghe5laTWW8yQrGtY--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/13971731025ec697-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/bb3ef058b751a6ad-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/e6099e249fd938cc-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/c1efde6b9b6c386c.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-43c7aa59eaa5af49.js"/><script src="/_next/static/chunks/4bd1b696-c023c6e3521b1417.js" async=""></script><script src="/_next/static/chunks/255-cb395327542b56ef.js" async=""></script><script src="/_next/static/chunks/main-app-f2bdb334e92ecbbb.js" async=""></script><script src="/_next/static/chunks/app/layout-439f7d41814bd173.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>Claude Code Chats</title><meta name="description" content="Browse your Claude Code chat history"/><script>(function(){try{var t=localStorage.getItem("theme");if(t==="light"||t==="dark"){document.documentElement.setAttribute("data-theme",t)}else{document.documentElement.setAttribute("data-theme",window.matchMedia("(prefers-color-scheme:light)").matches?"light":"dark")}}catch(e){document.documentElement.setAttribute("data-theme","dark")}})()</script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_0d7163 __variable_315a98 __variable_3c557b font-sans min-h-screen antialiased"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-43c7aa59eaa5af49.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[1458,[\"177\",\"static/chunks/app/layout-439f7d41814bd173.js\"],\"ThemeProvider\"]\n3:I[9766,[],\"\"]\n4:I[8924,[],\"\"]\n5:I[4431,[],\"OutletBoundary\"]\n7:I[5278,[],\"AsyncMetadataOutlet\"]\n9:I[4431,[],\"ViewportBoundary\"]\nb:I[4431,[],\"MetadataBoundary\"]\nc:\"$Sreact.suspense\"\ne:I[7150,[],\"\"]\n:HL[\"/_next/static/media/13971731025ec697-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/bb3ef058b751a6ad-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/e6099e249fd938cc-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/c1efde6b9b6c386c.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"6D0TFghe5laTWW8yQrGtY\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/c1efde6b9b6c386c.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var t=localStorage.getItem(\\\"theme\\\");if(t===\\\"light\\\"||t===\\\"dark\\\"){document.documentElement.setAttribute(\\\"data-theme\\\",t)}else{document.documentElement.setAttribute(\\\"data-theme\\\",window.matchMedia(\\\"(prefers-color-scheme:light)\\\").matches?\\\"light\\\":\\\"dark\\\")}}catch(e){document.documentElement.setAttribute(\\\"data-theme\\\",\\\"dark\\\")}})()\"}}]}],[\"$\",\"body\",null,{\"className\":\"__variable_0d7163 __variable_315a98 __variable_3c557b font-sans min-h-screen antialiased\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L5\",null,{\"children\":[\"$L6\",[\"$\",\"$L7\",null,{\"promise\":\"$@8\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]],[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$c\",null,{\"fallback\":null,\"children\":\"$Ld\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$e\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n6:null\n"])</script><script>self.__next_f.push([1,"8:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"Claude Code Chats\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Browse your Claude Code chat history\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"d:\"$8:metadata\"\n"])</script></body></html>
1
+ <!DOCTYPE html><!--cDN2WcjRgaqWUg1mfQsk2--><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/13971731025ec697-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/bb3ef058b751a6ad-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="preload" href="/_next/static/media/e6099e249fd938cc-s.p.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/css/9c5191f521376c36.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-43c7aa59eaa5af49.js"/><script src="/_next/static/chunks/4bd1b696-c023c6e3521b1417.js" async=""></script><script src="/_next/static/chunks/255-cb395327542b56ef.js" async=""></script><script src="/_next/static/chunks/main-app-f2bdb334e92ecbbb.js" async=""></script><script src="/_next/static/chunks/app/layout-439f7d41814bd173.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>Claude Code Chats</title><meta name="description" content="Browse your Claude Code chat history"/><script>(function(){try{var t=localStorage.getItem("theme");if(t==="light"||t==="dark"){document.documentElement.setAttribute("data-theme",t)}else{document.documentElement.setAttribute("data-theme",window.matchMedia("(prefers-color-scheme:light)").matches?"light":"dark")}}catch(e){document.documentElement.setAttribute("data-theme","dark")}})()</script><script src="/_next/static/chunks/polyfills-42372ed130431b0a.js" noModule=""></script></head><body class="__variable_0d7163 __variable_315a98 __variable_3c557b font-sans min-h-screen antialiased"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/webpack-43c7aa59eaa5af49.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[1458,[\"177\",\"static/chunks/app/layout-439f7d41814bd173.js\"],\"ThemeProvider\"]\n3:I[9766,[],\"\"]\n4:I[8924,[],\"\"]\n5:I[4431,[],\"OutletBoundary\"]\n7:I[5278,[],\"AsyncMetadataOutlet\"]\n9:I[4431,[],\"ViewportBoundary\"]\nb:I[4431,[],\"MetadataBoundary\"]\nc:\"$Sreact.suspense\"\ne:I[7150,[],\"\"]\n:HL[\"/_next/static/media/13971731025ec697-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/bb3ef058b751a6ad-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/media/e6099e249fd938cc-s.p.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n:HL[\"/_next/static/css/9c5191f521376c36.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"cDN2WcjRgaqWUg1mfQsk2\",\"p\":\"\",\"c\":[\"\",\"_not-found\"],\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[\"\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/css/9c5191f521376c36.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{var t=localStorage.getItem(\\\"theme\\\");if(t===\\\"light\\\"||t===\\\"dark\\\"){document.documentElement.setAttribute(\\\"data-theme\\\",t)}else{document.documentElement.setAttribute(\\\"data-theme\\\",window.matchMedia(\\\"(prefers-color-scheme:light)\\\").matches?\\\"light\\\":\\\"dark\\\")}}catch(e){document.documentElement.setAttribute(\\\"data-theme\\\",\\\"dark\\\")}})()\"}}]}],[\"$\",\"body\",null,{\"className\":\"__variable_0d7163 __variable_315a98 __variable_3c557b font-sans min-h-screen antialiased\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}]]}],{\"children\":[\"/_not-found\",[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[\"__PAGE__\",[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L5\",null,{\"children\":[\"$L6\",[\"$\",\"$L7\",null,{\"promise\":\"$@8\"}]]}]]}],{},null,false]},null,false]},null,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]],[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$c\",null,{\"fallback\":null,\"children\":\"$Ld\"}]}]}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$e\",[]],\"s\":false,\"S\":true}\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n6:null\n"])</script><script>self.__next_f.push([1,"8:{\"metadata\":[[\"$\",\"title\",\"0\",{\"children\":\"Claude Code Chats\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Browse your Claude Code chat history\"}]],\"error\":null,\"digest\":\"$undefined\"}\n"])</script><script>self.__next_f.push([1,"d:\"$8:metadata\"\n"])</script></body></html>
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-43c7aa59eaa5af49.js" defer=""></script><script src="/_next/static/chunks/framework-292291387d6b2e39.js" defer=""></script><script src="/_next/static/chunks/main-a4753544b5b73813.js" defer=""></script><script src="/_next/static/chunks/pages/_app-7d307437aca18ad4.js" defer=""></script><script src="/_next/static/chunks/pages/_error-cb2a52f75f2162e2.js" defer=""></script><script src="/_next/static/6D0TFghe5laTWW8yQrGtY/_buildManifest.js" defer=""></script><script src="/_next/static/6D0TFghe5laTWW8yQrGtY/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"6D0TFghe5laTWW8yQrGtY","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><title data-next-head="">500: Internal Server Error</title><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-43c7aa59eaa5af49.js" defer=""></script><script src="/_next/static/chunks/framework-292291387d6b2e39.js" defer=""></script><script src="/_next/static/chunks/main-a4753544b5b73813.js" defer=""></script><script src="/_next/static/chunks/pages/_app-7d307437aca18ad4.js" defer=""></script><script src="/_next/static/chunks/pages/_error-cb2a52f75f2162e2.js" defer=""></script><script src="/_next/static/cDN2WcjRgaqWUg1mfQsk2/_buildManifest.js" defer=""></script><script src="/_next/static/cDN2WcjRgaqWUg1mfQsk2/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"cDN2WcjRgaqWUg1mfQsk2","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
@@ -1 +1 @@
1
- {"node":{},"edge":{},"encryptionKey":"thom32xZbsZuifbrI5uEaLfjdkULzO5R5mC/36Tf0tc="}
1
+ {"node":{},"edge":{},"encryptionKey":"8JmN+wCJ7J7QRuu4FW47Bng3C8Uc42Zn7dTWsp8ZL28="}
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{449:(e,t,s)=>{"use strict";s.d(t,{ThemeToggle:()=>a});var n=s(5155),r=s(1458);let o={system:"System",light:"Light",dark:"Dark"};function a(){let{theme:e,cycle:t}=(0,r.D)();return(0,n.jsx)("button",{onClick:t,className:"p-2 text-content-tertiary hover:text-content-secondary hover:bg-surface-elevated rounded-lg transition-all flex-shrink-0",title:"Theme: ".concat(o[e]),children:"system"===e?(0,n.jsx)("svg",{className:"w-[18px] h-[18px]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})}):"light"===e?(0,n.jsx)("svg",{className:"w-[18px] h-[18px]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}):(0,n.jsx)("svg",{className:"w-[18px] h-[18px]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})})}},467:(e,t,s)=>{"use strict";function n(e){if("number"==typeof e)return e;let t=Date.parse(e);return isNaN(t)?0:t}function r(e){let t=Date.now()-e,s=Math.floor(t/6e4),n=Math.floor(t/36e5),r=Math.floor(t/864e5),o=Math.floor(t/6048e5),a=Math.floor(t/2592e6);if(s<1)return"Just now";if(s<60)return"".concat(s,"m ago");if(n<24)return"".concat(n,"h ago");if(r<7)return"".concat(r,"d ago");if(r<30)return"".concat(o,"w ago");if(a<12)return"".concat(a,"mo ago");let l=Math.floor(a/12);return"".concat(l,"y ago")}function o(e){return new Date(n(e)).toLocaleString("en-GB",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})}function a(e){return e>=1e6?"".concat((e/1e6).toFixed(1),"M"):e>=1e4?"".concat((e/1e3).toFixed(1),"k"):e.toLocaleString("en-GB")}s.d(t,{EH:()=>n,ap:()=>a,fw:()=>r,r6:()=>o})},1046:(e,t,s)=>{"use strict";s.d(t,{D:()=>r});var n=s(5155);function r(e){let{value:t,onChange:s,placeholder:r="Search..."}=e;return(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-content-tertiary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,n.jsx)("input",{type:"text",value:t,onChange:e=>s(e.target.value),placeholder:r,className:"w-full pl-10 pr-10 py-2.5 bg-surface border border-edge-subtle rounded-xl text-sm text-content-primary placeholder-content-tertiary focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 transition-all"}),t&&(0,n.jsx)("button",{onClick:()=>s(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-content-tertiary hover:text-content-secondary transition-colors",children:(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})}},1458:(e,t,s)=>{"use strict";s.d(t,{D:()=>a,ThemeProvider:()=>l});var n=s(5155),r=s(2115);let o=(0,r.createContext)({theme:"system",resolved:"dark",setTheme:()=>{},cycle:()=>{}});function a(){return(0,r.useContext)(o)}function l(e){let{children:t}=e,[s,a]=(0,r.useState)("system"),[l,c]=(0,r.useState)("dark");(0,r.useEffect)(()=>{let e=localStorage.getItem("theme");e&&["light","dark","system"].includes(e)&&a(e)},[]),(0,r.useEffect)(()=>{let e="system"===s?window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark":s;if(c(e),document.documentElement.setAttribute("data-theme",e),"system"===s){let e=window.matchMedia("(prefers-color-scheme: light)"),t=()=>{let t=e.matches?"light":"dark";c(t),document.documentElement.setAttribute("data-theme",t)};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}},[s]);let i=(0,r.useCallback)(e=>{a(e),localStorage.setItem("theme",e)},[]),d=(0,r.useCallback)(()=>{let e=["system","light","dark"];i(e[(e.indexOf(s)+1)%e.length])},[s,i]);return(0,n.jsx)(o.Provider,{value:{theme:s,resolved:l,setTheme:i,cycle:d},children:t})}},3389:(e,t,s)=>{"use strict";s.d(t,{SyncButton:()=>o});var n=s(5155),r=s(2115);function o(){let[e,t]=(0,r.useState)(!1),[s,o]=(0,r.useState)(null),a=async()=>{t(!0),o(null);try{let e=await fetch("/api/sync",{method:"POST"});if(!e.ok)throw Error("Sync failed");let t=await e.json();o(t.sync),window.dispatchEvent(new Event("sync-complete")),setTimeout(()=>o(null),3e3)}catch(e){console.error("Sync error:",e)}finally{t(!1)}};return(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("button",{onClick:a,disabled:e,className:"p-2 text-content-tertiary hover:text-content-secondary hover:bg-surface-elevated rounded-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",title:"Resync database",children:(0,n.jsx)("svg",{className:"w-5 h-5 ".concat(e?"animate-spin":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}),s&&(s.added>0||s.updated>0||s.removed>0)&&(0,n.jsxs)("div",{className:"text-xs text-content-tertiary whitespace-nowrap animate-fade",children:[s.added>0&&"+".concat(s.added),s.updated>0&&" ~".concat(s.updated),s.removed>0&&" -".concat(s.removed)]})]})}},5011:(e,t,s)=>{"use strict";s.d(t,{S:()=>a});var n=s(5155),r=s(2115),o=s(7650);function a(e){let{encodedPath:t,onClose:s}=e,[a,l]=(0,r.useState)(null),[c,i]=(0,r.useState)(null);return(0,r.useEffect)(()=>{fetch("/api/projects/memory?path=".concat(encodeURIComponent(t))).then(e=>{if(!e.ok)throw Error("Failed to load");return e.json()}).then(e=>l(e.files)).catch(()=>i("Failed to load memory"))},[t]),(0,r.useEffect)(()=>{function e(e){"Escape"===e.key&&s()}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[s]),(0,o.createPortal)((0,n.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-black/70 backdrop-blur-sm animate-fade",onClick:s}),(0,n.jsxs)("div",{className:"relative bg-surface-elevated border border-edge rounded-2xl w-full max-w-4xl max-h-[85vh] flex flex-col shadow-2xl mx-4 animate-modal",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between px-5 py-4 border-b border-edge-subtle",children:[(0,n.jsx)("h2",{className:"text-sm font-serif text-content-primary",children:"Project Memory"}),(0,n.jsx)("button",{onClick:s,className:"p-1.5 -mr-1.5 text-content-tertiary hover:text-content-primary hover:bg-surface rounded-lg transition-all",children:(0,n.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,n.jsxs)("div",{className:"overflow-y-auto p-5 space-y-6 scrollbar-thin",children:[c&&(0,n.jsx)("p",{className:"text-sm text-danger",children:c}),!a&&!c&&(0,n.jsx)("p",{className:"text-sm text-content-tertiary",children:"Loading..."}),null==a?void 0:a.map(e=>(0,n.jsxs)("div",{children:[a.length>1&&(0,n.jsx)("h3",{className:"text-xs font-medium text-accent/70 mb-2 font-mono",children:e.name}),(0,n.jsx)("pre",{className:"text-sm text-content-secondary whitespace-pre-wrap font-mono leading-relaxed",children:e.content})]},e.name)),(null==a?void 0:a.length)===0&&(0,n.jsx)("p",{className:"text-sm text-content-tertiary",children:"No memory files found."})]})]})]}),document.body)}},6281:(e,t,s)=>{"use strict";s.d(t,{GlobalSearch:()=>a});var n=s(5155),r=s(2115),o=s(63);function a(e){let{projectPath:t}=e,[s,a]=(0,r.useState)(""),l=(0,o.useRouter)(),c=(0,r.useRef)(null);(0,r.useEffect)(()=>{function e(e){if((e.metaKey||e.ctrlKey)&&"k"===e.key){var t;e.preventDefault(),null==(t=c.current)||t.focus()}}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]);let i=(0,r.useCallback)(e=>{if(e.preventDefault(),s.trim()){let e=new URLSearchParams({q:s.trim()});t&&e.set("project",t),l.push("/search?".concat(e.toString()))}},[s,l,t]),d=t?"Search this project...":"Search all chats...";return(0,n.jsxs)("form",{onSubmit:i,className:"relative",children:[(0,n.jsx)("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-content-tertiary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,n.jsx)("input",{ref:c,type:"text",value:s,onChange:e=>a(e.target.value),placeholder:d,className:"w-full pl-10 pr-16 py-2 bg-surface border border-edge-subtle rounded-xl text-sm text-content-primary placeholder-content-tertiary focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 transition-all"}),!s&&(0,n.jsxs)("kbd",{className:"absolute right-3 top-1/2 -translate-y-1/2 hidden sm:inline-flex items-center gap-0.5 px-1.5 py-0.5 text-[10px] font-mono text-content-tertiary bg-surface-elevated border border-edge-subtle rounded",children:[(0,n.jsx)("span",{className:"text-xs",children:"⌘"}),"K"]})]})}},8994:(e,t,s)=>{"use strict";s.d(t,{ProjectList:()=>m});var n=s(5155),r=s(2115),o=s(2619),a=s.n(o),l=s(467),c=s(5011);function i(e){let{project:t}=e,[s,o]=(0,r.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(a(),{href:"/project/".concat(t.encodedPath),className:"block p-4 bg-surface border border-edge-subtle rounded-xl hover:border-edge-hover hover:bg-surface-elevated transition-all duration-300 group hover:shadow-lg hover:shadow-accent/[0.04]",children:[(0,n.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("h3",{className:"font-medium text-content-primary truncate group-hover:text-accent transition-colors",children:t.name}),(0,n.jsx)("p",{className:"text-xs text-content-tertiary truncate mt-0.5 font-mono",children:t.path})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[t.hasMemory&&(0,n.jsxs)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(!0)},className:"flex items-center gap-1 px-1.5 py-0.5 text-[10px] font-medium tracking-wide rounded bg-accent/10 text-accent/80 hover:bg-accent/20 hover:text-accent transition-colors",children:[(0,n.jsx)("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"})}),"MEMORY"]}),(0,n.jsx)("div",{className:"text-content-tertiary group-hover:text-accent transition-colors",children:(0,n.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]})]}),(0,n.jsxs)("div",{className:"flex items-center gap-4 mt-3 text-xs text-content-tertiary",children:[(0,n.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,n.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})}),t.sessionCount," session",1!==t.sessionCount?"s":""]}),(0,n.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,n.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"})}),t.totalMessages," messages"]}),(0,n.jsxs)("span",{className:"flex items-center gap-1.5 ml-auto",children:[(0,n.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,l.fw)(t.lastActivity)]})]})]}),s&&(0,n.jsx)(c.S,{encodedPath:t.encodedPath,onClose:()=>o(!1)})]})}var d=s(1046);let u=null;function h(){return(0,n.jsx)("div",{className:"grid gap-3 lg:grid-cols-2",children:Array.from({length:6}).map((e,t)=>(0,n.jsxs)("div",{className:"p-4 bg-surface border border-edge-subtle rounded-xl animate-in stagger-".concat(t+1),children:[(0,n.jsx)("div",{className:"flex items-start justify-between gap-3",children:(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("div",{className:"h-5 w-40 rounded skeleton-shimmer"}),(0,n.jsx)("div",{className:"h-3 w-64 rounded skeleton-shimmer mt-2"})]})}),(0,n.jsxs)("div",{className:"flex items-center gap-4 mt-3",children:[(0,n.jsx)("div",{className:"h-3 w-20 rounded skeleton-shimmer"}),(0,n.jsx)("div",{className:"h-3 w-24 rounded skeleton-shimmer"}),(0,n.jsx)("div",{className:"h-3 w-16 rounded skeleton-shimmer ml-auto"})]})]},t))})}function m(){let[e,t]=(0,r.useState)(u),[s,o]=(0,r.useState)(""),[a,l]=(0,r.useState)("recent"),[c,m]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=!1;function s(){fetch("/api/projects").then(e=>e.json()).then(s=>{e||(u=s,t(s))})}return s(),window.addEventListener("sync-complete",s),()=>{e=!0,window.removeEventListener("sync-complete",s)}},[]);let x=(0,r.useMemo)(()=>{var t;return null!=(t=null==e?void 0:e.some(e=>e.isOutsideHome))&&t},[e]),f=(0,r.useMemo)(()=>{if(!e)return[];let t=e;if(c&&(t=t.filter(e=>!e.isOutsideHome)),s.trim()){let e=s.toLowerCase();t=t.filter(t=>t.name.toLowerCase().includes(e)||t.path.toLowerCase().includes(e))}return[...t].sort((e,t)=>{switch(a){case"name":return e.name.localeCompare(t.name);case"messages":return t.totalMessages-e.totalMessages;case"sessions":return t.sessionCount-e.sessionCount;default:return t.lastActivity-e.lastActivity}})},[e,s,a,c]);return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 mb-6",children:[(0,n.jsx)("div",{className:"flex-1",children:(0,n.jsx)(d.D,{value:s,onChange:o,placeholder:"Search projects..."})}),x&&(0,n.jsx)("button",{onClick:()=>m(!c),className:"px-3 py-2.5 border rounded-xl text-sm transition-all whitespace-nowrap ".concat(c?"bg-accent/10 border-accent text-accent":"bg-surface border-edge-subtle text-content-secondary hover:border-accent/50"),children:c?"External hidden":"Hide external"}),(0,n.jsxs)("select",{value:a,onChange:e=>l(e.target.value),className:"px-3 py-2.5 bg-surface border border-edge-subtle rounded-xl text-sm text-content-secondary focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 cursor-pointer transition-all",children:[(0,n.jsx)("option",{value:"recent",children:"Most Recent"}),(0,n.jsx)("option",{value:"name",children:"Name"}),(0,n.jsx)("option",{value:"messages",children:"Most Messages"}),(0,n.jsx)("option",{value:"sessions",children:"Most Sessions"})]})]}),null===e?(0,n.jsx)(h,{}):0===f.length?(0,n.jsx)("div",{className:"text-center py-16 text-content-tertiary animate-fade",children:s?"No projects found matching your search":"No projects found"}):(0,n.jsx)("div",{className:"grid gap-3 lg:grid-cols-2",children:f.map((e,t)=>(0,n.jsx)("div",{className:"animate-in stagger-".concat(Math.min(t+1,10)),children:(0,n.jsx)(i,{project:e})},e.path))}),null!==e&&(0,n.jsxs)("div",{className:"mt-6 text-xs text-content-tertiary text-center",children:[f.length," of ",e.length," projects"]})]})}},9869:(e,t,s)=>{Promise.resolve().then(s.bind(s,6281)),Promise.resolve().then(s.bind(s,8994)),Promise.resolve().then(s.bind(s,3389)),Promise.resolve().then(s.bind(s,449))}},e=>{e.O(0,[176,441,255,358],()=>e(e.s=9869)),_N_E=e.O()}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[943],{449:(e,t,n)=>{"use strict";n.d(t,{ThemeToggle:()=>o});var s=n(5155),r=n(1458);let a={system:"System",light:"Light",dark:"Dark"};function o(){let{theme:e,cycle:t}=(0,r.D)();return(0,s.jsx)("button",{onClick:t,className:"p-2 text-content-tertiary hover:text-content-secondary hover:bg-surface-elevated rounded-lg transition-all flex-shrink-0",title:"Theme: ".concat(a[e]),children:"system"===e?(0,s.jsx)("svg",{className:"w-[18px] h-[18px]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})}):"light"===e?(0,s.jsx)("svg",{className:"w-[18px] h-[18px]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}):(0,s.jsx)("svg",{className:"w-[18px] h-[18px]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})})}},467:(e,t,n)=>{"use strict";function s(e){if("number"==typeof e)return e;let t=Date.parse(e);return isNaN(t)?0:t}function r(e){let t=Date.now()-e,n=Math.floor(t/6e4),s=Math.floor(t/36e5),r=Math.floor(t/864e5),a=Math.floor(t/6048e5),o=Math.floor(t/2592e6);if(n<1)return"Just now";if(n<60)return"".concat(n,"m ago");if(s<24)return"".concat(s,"h ago");if(r<7)return"".concat(r,"d ago");if(r<30)return"".concat(a,"w ago");if(o<12)return"".concat(o,"mo ago");let l=Math.floor(o/12);return"".concat(l,"y ago")}function a(e){return new Date(s(e)).toLocaleString("en-GB",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})}function o(e){return e>=1e6?"".concat((e/1e6).toFixed(1),"M"):e>=1e4?"".concat((e/1e3).toFixed(1),"k"):e.toLocaleString("en-GB")}n.d(t,{EH:()=>s,ap:()=>o,fw:()=>r,r6:()=>a})},1046:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var s=n(5155);function r(e){let{value:t,onChange:n,placeholder:r="Search..."}=e;return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-content-tertiary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,s.jsx)("input",{type:"text",value:t,onChange:e=>n(e.target.value),placeholder:r,className:"w-full pl-10 pr-10 py-2.5 bg-surface border border-edge-subtle rounded-xl text-sm text-content-primary placeholder-content-tertiary focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 transition-all"}),t&&(0,s.jsx)("button",{onClick:()=>n(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-content-tertiary hover:text-content-secondary transition-colors",children:(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})}},1458:(e,t,n)=>{"use strict";n.d(t,{D:()=>o,ThemeProvider:()=>l});var s=n(5155),r=n(2115);let a=(0,r.createContext)({theme:"system",resolved:"dark",setTheme:()=>{},cycle:()=>{}});function o(){return(0,r.useContext)(a)}function l(e){let{children:t}=e,[n,o]=(0,r.useState)("system"),[l,c]=(0,r.useState)("dark");(0,r.useEffect)(()=>{let e=localStorage.getItem("theme");e&&["light","dark","system"].includes(e)&&o(e)},[]),(0,r.useEffect)(()=>{let e="system"===n?window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark":n;if(c(e),document.documentElement.setAttribute("data-theme",e),"system"===n){let e=window.matchMedia("(prefers-color-scheme: light)"),t=()=>{let t=e.matches?"light":"dark";c(t),document.documentElement.setAttribute("data-theme",t)};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}},[n]);let i=(0,r.useCallback)(e=>{o(e),localStorage.setItem("theme",e)},[]),d=(0,r.useCallback)(()=>{let e=["system","light","dark"];i(e[(e.indexOf(n)+1)%e.length])},[n,i]);return(0,s.jsx)(a.Provider,{value:{theme:n,resolved:l,setTheme:i,cycle:d},children:t})}},2635:(e,t,n)=>{Promise.resolve().then(n.bind(n,8666))},3389:(e,t,n)=>{"use strict";n.d(t,{SyncButton:()=>a});var s=n(5155),r=n(2115);function a(){let[e,t]=(0,r.useState)(!1),[n,a]=(0,r.useState)(null),o=async()=>{t(!0),a(null);try{let e=await fetch("/api/sync",{method:"POST"});if(!e.ok)throw Error("Sync failed");let t=await e.json();a(t.sync),window.dispatchEvent(new Event("sync-complete")),setTimeout(()=>a(null),3e3)}catch(e){console.error("Sync error:",e)}finally{t(!1)}};return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("button",{onClick:o,disabled:e,className:"p-2 text-content-tertiary hover:text-content-secondary hover:bg-surface-elevated rounded-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",title:"Resync database",children:(0,s.jsx)("svg",{className:"w-5 h-5 ".concat(e?"animate-spin":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}),n&&(n.added>0||n.updated>0||n.removed>0)&&(0,s.jsxs)("div",{className:"text-xs text-content-tertiary whitespace-nowrap animate-fade",children:[n.added>0&&"+".concat(n.added),n.updated>0&&" ~".concat(n.updated),n.removed>0&&" -".concat(n.removed)]})]})}},5011:(e,t,n)=>{"use strict";n.d(t,{S:()=>o});var s=n(5155),r=n(2115),a=n(7650);function o(e){let{encodedPath:t,onClose:n}=e,[o,l]=(0,r.useState)(null),[c,i]=(0,r.useState)(null);return(0,r.useEffect)(()=>{fetch("/api/projects/memory?path=".concat(encodeURIComponent(t))).then(e=>{if(!e.ok)throw Error("Failed to load");return e.json()}).then(e=>l(e.files)).catch(()=>i("Failed to load memory"))},[t]),(0,r.useEffect)(()=>{function e(e){"Escape"===e.key&&n()}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[n]),(0,a.createPortal)((0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/70 backdrop-blur-sm animate-fade",onClick:n}),(0,s.jsxs)("div",{className:"relative bg-surface-elevated border border-edge rounded-2xl w-full max-w-4xl max-h-[85vh] flex flex-col shadow-2xl mx-4 animate-modal",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-5 py-4 border-b border-edge-subtle",children:[(0,s.jsx)("h2",{className:"text-sm font-serif text-content-primary",children:"Project Memory"}),(0,s.jsx)("button",{onClick:n,className:"p-1.5 -mr-1.5 text-content-tertiary hover:text-content-primary hover:bg-surface rounded-lg transition-all",children:(0,s.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,s.jsxs)("div",{className:"overflow-y-auto p-5 space-y-6 scrollbar-thin",children:[c&&(0,s.jsx)("p",{className:"text-sm text-danger",children:c}),!o&&!c&&(0,s.jsx)("p",{className:"text-sm text-content-tertiary",children:"Loading..."}),null==o?void 0:o.map(e=>(0,s.jsxs)("div",{children:[o.length>1&&(0,s.jsx)("h3",{className:"text-xs font-medium text-accent/70 mb-2 font-mono",children:e.name}),(0,s.jsx)("pre",{className:"text-sm text-content-secondary whitespace-pre-wrap font-mono leading-relaxed",children:e.content})]},e.name)),(null==o?void 0:o.length)===0&&(0,s.jsx)("p",{className:"text-sm text-content-tertiary",children:"No memory files found."})]})]})]}),document.body)}},6281:(e,t,n)=>{"use strict";n.d(t,{GlobalSearch:()=>o});var s=n(5155),r=n(2115),a=n(63);function o(e){let{projectPath:t}=e,[n,o]=(0,r.useState)(""),l=(0,a.useRouter)(),c=(0,r.useRef)(null);(0,r.useEffect)(()=>{function e(e){if((e.metaKey||e.ctrlKey)&&"k"===e.key){var t;e.preventDefault(),null==(t=c.current)||t.focus()}}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]);let i=(0,r.useCallback)(e=>{if(e.preventDefault(),n.trim()){let e=new URLSearchParams({q:n.trim()});t&&e.set("project",t),l.push("/search?".concat(e.toString()))}},[n,l,t]),d=t?"Search this project...":"Search all chats...";return(0,s.jsxs)("form",{onSubmit:i,className:"relative",children:[(0,s.jsx)("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-content-tertiary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,s.jsx)("input",{ref:c,type:"text",value:n,onChange:e=>o(e.target.value),placeholder:d,className:"w-full pl-10 pr-16 py-2 bg-surface border border-edge-subtle rounded-xl text-sm text-content-primary placeholder-content-tertiary focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 transition-all"}),!n&&(0,s.jsxs)("kbd",{className:"absolute right-3 top-1/2 -translate-y-1/2 hidden sm:inline-flex items-center gap-0.5 px-1.5 py-0.5 text-[10px] font-mono text-content-tertiary bg-surface-elevated border border-edge-subtle rounded",children:[(0,s.jsx)("span",{className:"text-xs",children:"⌘"}),"K"]})]})}},7625:(e,t,n)=>{"use strict";n.d(t,{m:()=>a});var s=n(5155),r=n(2115);function a(e){let{type:t,projectPath:n,sessionId:a,messageCount:o}=e,[l,c]=(0,r.useState)(null),[i,d]=(0,r.useState)(!1),[m,u]=(0,r.useState)(null),[h,x]=(0,r.useState)(!0);async function p(){d(!0),u(null);try{let e=await fetch("/api/summary",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:t,projectPath:n,sessionId:a})}),s=await e.json();if(!e.ok)throw Error(s.error||"Failed to generate summary");c(s.summary)}catch(e){u(e instanceof Error?e.message:"Unknown error")}finally{d(!1)}}if((0,r.useEffect)(()=>{!async function(){try{let e=new URLSearchParams({type:t,project:n});a&&e.append("session",a);let s=await fetch("/api/summary?".concat(e)),r=await s.json();c(r.summary||null)}catch(e){}finally{x(!1)}}()},[t,n,a]),h)return null;let f=l&&l.messageCount<o;return(0,s.jsxs)("div",{className:"p-4 bg-surface border border-edge-subtle rounded-xl",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between gap-4 mb-2",children:[(0,s.jsxs)("h3",{className:"text-sm font-medium text-content-secondary flex items-center gap-2",children:[(0,s.jsx)("svg",{className:"w-4 h-4 text-accent",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})}),"AI Summary",f&&(0,s.jsx)("span",{className:"text-xs text-accent/60",children:"(outdated)"})]}),(0,s.jsx)("button",{onClick:p,disabled:i,className:"px-3 py-1 text-xs font-medium text-accent hover:text-accent-hover hover:bg-accent/10 rounded-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:i?"Generating...":l?"Regenerate":"Generate"})]}),m&&(0,s.jsx)("p",{className:"text-sm text-danger mb-2",children:m}),l?(0,s.jsx)("p",{className:"text-sm text-content-secondary leading-relaxed",children:l.content}):!i&&(0,s.jsx)("p",{className:"text-sm text-content-tertiary italic",children:'No summary yet. Click "Generate" to create one.'}),i&&(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm text-content-tertiary",children:[(0,s.jsxs)("svg",{className:"w-4 h-4 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,s.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Invoking Claude CLI..."]})]})}},8666:(e,t,n)=>{"use strict";n.d(t,{ProjectPageContent:()=>b});var s=n(5155),r=n(2115),a=n(2619),o=n.n(a),l=n(467);function c(e){let{session:t,encodedPath:n}=e;return(0,s.jsxs)(o(),{href:"/project/".concat(n,"/session/").concat(t.id),className:"block p-4 bg-surface border border-edge-subtle rounded-xl hover:border-edge-hover hover:bg-surface-elevated transition-all duration-300 group",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,s.jsx)("div",{className:"flex-1 min-w-0",children:(0,s.jsx)("p",{className:"text-sm text-content-primary line-clamp-2 group-hover:text-accent transition-colors",children:t.firstMessage||"Empty session"})}),(0,s.jsx)("div",{className:"flex items-center gap-1 text-content-tertiary group-hover:text-accent shrink-0 transition-colors",children:(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]}),(0,s.jsxs)("div",{className:"flex items-center gap-4 mt-3 text-xs text-content-tertiary",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"})}),t.messageCount," messages"]}),(0,s.jsxs)("span",{className:"flex items-center gap-1.5 ml-auto",children:[(0,s.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,l.fw)(t.lastActivity)]})]}),(0,s.jsx)("div",{className:"mt-2 text-[11px] text-content-tertiary font-mono truncate opacity-50",children:t.id})]})}var i=n(1046);function d(e){let{sessions:t,encodedPath:n}=e,[a,o]=(0,r.useState)(""),[l,d]=(0,r.useState)(!0),[m,u]=(0,r.useState)(30);(0,r.useEffect)(()=>{u(30)},[t]);let h=(0,r.useMemo)(()=>t.filter(e=>e.messageCount<3).length,[t]),x=(0,r.useMemo)(()=>{let e=t;if(l&&(e=e.filter(e=>e.messageCount>=3)),a.trim()){let t=a.toLowerCase();e=e.filter(e=>e.firstMessage.toLowerCase().includes(t)||e.id.toLowerCase().includes(t))}return e},[t,a,l]),p=x.slice(0,m),f=m<x.length;return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"mb-6 flex items-center gap-4",children:[(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsx)(i.D,{value:a,onChange:function(e){o(e),u(30)},placeholder:"Search sessions..."})}),h>0&&(0,s.jsxs)("label",{className:"flex items-center gap-2 text-xs text-content-tertiary cursor-pointer whitespace-nowrap",children:[(0,s.jsx)("input",{type:"checkbox",checked:l,onChange:e=>{d(e.target.checked),u(30)},className:"rounded border-edge-hover bg-surface-elevated text-accent focus:ring-accent focus:ring-offset-0"}),"Hide short (",h,")"]})]}),0===x.length?(0,s.jsx)("div",{className:"text-center py-16 text-content-tertiary animate-fade",children:a?"No sessions found matching your search":"No sessions found"}):(0,s.jsx)("div",{className:"grid gap-3",children:p.map((e,t)=>(0,s.jsx)("div",{className:"animate-in stagger-".concat(Math.min(t+1,10)),children:(0,s.jsx)(c,{session:e,encodedPath:n})},e.id))}),(0,s.jsxs)("div",{className:"mt-6 flex items-center justify-center gap-4 text-xs text-content-tertiary",children:[(0,s.jsxs)("span",{children:["Showing ",p.length," of ",t.length," sessions",x.length<t.length&&" (".concat(t.length-x.length," hidden)")]}),f&&(0,s.jsx)("button",{onClick:()=>u(e=>e+30),className:"px-3 py-1.5 text-accent hover:text-accent-hover hover:bg-accent/10 border border-accent/20 rounded-lg transition-all",children:"Load more"})]})]})}var m=n(63),u=n(6281);function h(e){let{isOpen:t,onClose:n,onSuccess:a,currentPath:o,encodedPath:l}=e,[c,i]=(0,r.useState)(""),[d,m]=(0,r.useState)(!1),[u,h]=(0,r.useState)(null),x=(0,r.useRef)(null);if((0,r.useEffect)(()=>{t&&(i(function(e){let t=e.split("/").filter(Boolean);return t[t.length-1]||e}(o)),h(null),setTimeout(()=>{var e;return null==(e=x.current)?void 0:e.select()},0))},[t,o]),(0,r.useEffect)(()=>{function e(e){"Escape"===e.key&&t&&!d&&n()}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[t,d,n]),!t)return null;async function p(e){if(e.preventDefault(),!c.trim())return void h("Name cannot be empty.");m(!0),h(null);try{let e=await fetch("/api/project/rename",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({encodedPath:l,newName:c.trim()})}),t=await e.json();if(!e.ok)throw Error(t.error||"Failed to rename project");a(t.newEncodedPath)}catch(e){h(e instanceof Error?e.message:"Unknown error")}finally{m(!1)}}return(0,s.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,s.jsx)("div",{className:"absolute inset-0 bg-black/70 backdrop-blur-sm animate-fade",onClick:d?void 0:n}),(0,s.jsxs)("div",{className:"relative bg-surface-elevated border border-edge rounded-2xl p-6 w-full max-w-md mx-4 shadow-2xl animate-modal",children:[(0,s.jsx)("h2",{className:"text-lg font-serif text-content-primary mb-4",children:"Rename Project"}),(0,s.jsxs)("form",{onSubmit:p,children:[(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("label",{htmlFor:"projectName",className:"block text-sm text-content-secondary mb-2",children:"New folder name"}),(0,s.jsx)("input",{ref:x,id:"projectName",type:"text",value:c,onChange:e=>i(e.target.value),disabled:d,className:"w-full px-3 py-2.5 bg-surface border border-edge rounded-xl text-content-primary placeholder-content-tertiary focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 disabled:opacity-50 transition-all",placeholder:"Enter new name",autoComplete:"off"})]}),u&&(0,s.jsx)("p",{className:"text-sm text-danger mb-4",children:u}),(0,s.jsxs)("div",{className:"flex items-center justify-end gap-3",children:[(0,s.jsx)("button",{type:"button",onClick:n,disabled:d,className:"px-4 py-2 text-sm text-content-secondary hover:text-content-primary transition-colors disabled:opacity-50",children:"Cancel"}),(0,s.jsxs)("button",{type:"submit",disabled:d||!c.trim(),className:"px-4 py-2 text-sm font-medium bg-accent hover:bg-accent-hover text-white rounded-xl transition-all disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",children:[d&&(0,s.jsxs)("svg",{className:"w-4 h-4 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[(0,s.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,s.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),d?"Renaming...":"Rename"]})]})]})]})]})}var x=n(5011),p=n(3389),f=n(449);function v(e){let{projectName:t,projectPath:n,encodedPath:a,hasMemory:l}=e,[c,i]=(0,r.useState)(!1),[d,v]=(0,r.useState)(!1),g=(0,m.useRouter)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("header",{className:"border-b border-edge-subtle bg-surface/80 backdrop-blur-md sticky top-0 z-10",children:(0,s.jsx)("div",{className:"max-w-5xl mx-auto px-4 sm:px-6 py-4",children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(o(),{href:"/",className:"p-2 -ml-2 text-content-tertiary hover:text-content-primary hover:bg-surface-elevated rounded-lg transition-all flex-shrink-0",children:(0,s.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 19l-7-7 7-7"})})}),(0,s.jsxs)("div",{className:"flex-1 min-w-0 hidden sm:block",children:[(0,s.jsx)("h1",{className:"text-lg font-serif text-content-primary truncate",children:t}),(0,s.jsx)("p",{className:"text-xs text-content-tertiary truncate font-mono",children:n})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:[l&&(0,s.jsxs)("button",{onClick:()=>v(!0),className:"flex items-center gap-1.5 px-2.5 py-1.5 text-xs font-medium text-accent hover:text-accent-hover hover:bg-accent/10 border border-accent/20 rounded-lg transition-all",children:[(0,s.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"})}),"Memory"]}),(0,s.jsx)("button",{onClick:()=>i(!0),className:"px-2.5 py-1.5 text-xs font-medium text-accent hover:text-accent-hover hover:bg-accent/10 border border-accent/20 rounded-lg transition-all",children:"Rename"})]}),(0,s.jsx)("div",{className:"flex-1 max-w-md",children:(0,s.jsx)(u.GlobalSearch,{projectPath:a})}),(0,s.jsx)(f.ThemeToggle,{}),(0,s.jsx)(p.SyncButton,{})]})})}),(0,s.jsx)(h,{isOpen:c,onClose:()=>i(!1),onSuccess:function(e){i(!1),g.replace("/project/".concat(e))},currentPath:n,encodedPath:a}),d&&(0,s.jsx)(x.S,{encodedPath:a,onClose:()=>v(!1)})]})}var g=n(7625);let j=new Map;function y(){return(0,s.jsx)("div",{className:"grid gap-3",children:Array.from({length:5}).map((e,t)=>(0,s.jsxs)("div",{className:"p-4 bg-surface border border-edge-subtle rounded-xl animate-in stagger-".concat(t+1),children:[(0,s.jsx)("div",{className:"h-4 w-3/4 rounded skeleton-shimmer"}),(0,s.jsxs)("div",{className:"flex items-center gap-4 mt-3",children:[(0,s.jsx)("div",{className:"h-3 w-20 rounded skeleton-shimmer"}),(0,s.jsx)("div",{className:"h-3 w-16 rounded skeleton-shimmer ml-auto"})]})]},t))})}function b(e){var t,n,a,o,c;let{encodedPath:i}=e,[m,u]=(0,r.useState)(null!=(t=j.get(i))?t:null);(0,r.useEffect)(()=>{let e=!1;function t(){fetch("/api/projects/sessions?path=".concat(encodeURIComponent(i))).then(e=>e.json()).then(t=>{e||(j.set(i,t),u(t))})}return t(),window.addEventListener("sync-complete",t),()=>{e=!0,window.removeEventListener("sync-complete",t)}},[i]);let h=null!=(n=null==m?void 0:m.sessions.reduce((e,t)=>e+t.messageCount,0))?n:0,x=m?Math.max(...m.sessions.map(e=>e.lastActivity)):0;return(0,s.jsxs)("div",{className:"min-h-screen",children:[(0,s.jsx)(v,{projectName:null!=(a=null==m?void 0:m.projectName)?a:i,projectPath:null!=(o=null==m?void 0:m.decodedPath)?o:i,encodedPath:i,hasMemory:null!=(c=null==m?void 0:m.hasMemory)&&c}),(0,s.jsx)("main",{className:"max-w-5xl mx-auto px-4 sm:px-6 py-8",children:m?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex items-center gap-4 mb-6 text-sm text-content-secondary animate-in",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})}),m.sessions.length," sessions"]}),(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"})}),h," messages"]}),(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),"Last active ",(0,l.fw)(x)]})]}),(0,s.jsx)("div",{className:"mb-6 animate-in stagger-1",children:(0,s.jsx)(g.m,{type:"project",projectPath:i,messageCount:h})}),(0,s.jsx)("div",{className:"animate-in stagger-2",children:(0,s.jsx)(d,{sessions:m.sessions,encodedPath:i},i)})]}):(0,s.jsx)(y,{})})]})}}},e=>{e.O(0,[176,441,255,358],()=>e(e.s=2635)),_N_E=e.O()}]);
@@ -0,0 +1,3 @@
1
+ @font-face{font-family:DM Sans;font-style:normal;font-weight:100 1000;font-display:swap;src:url(/_next/static/media/7ab938503e4547a1-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:DM Sans;font-style:normal;font-weight:100 1000;font-display:swap;src:url(/_next/static/media/13971731025ec697-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:DM Sans Fallback;src:local("Arial");ascent-override:94.90%;descent-override:29.66%;line-gap-override:0.00%;size-adjust:104.53%}.__className_0d7163{font-family:DM Sans,DM Sans Fallback;font-style:normal}.__variable_0d7163{--font-sans:"DM Sans","DM Sans Fallback"}@font-face{font-family:"Instrument Serif";font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/35f3de0ebb1cfc70-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:"Instrument Serif";font-style:normal;font-weight:400;font-display:swap;src:url(/_next/static/media/e6099e249fd938cc-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:"Instrument Serif Fallback";src:local("Times New Roman");ascent-override:117.94%;descent-override:36.93%;line-gap-override:0.00%;size-adjust:83.94%}.__className_315a98{font-family:"Instrument Serif","Instrument Serif Fallback";font-weight:400;font-style:normal}.__variable_315a98{--font-serif:"Instrument Serif","Instrument Serif Fallback"}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/886030b0b59bc5a7-s.woff2) format("woff2");unicode-range:u+0460-052f,u+1c80-1c8a,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/0aa834ed78bf6d07-s.woff2) format("woff2");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/67957d42bae0796d-s.woff2) format("woff2");unicode-range:u+0370-0377,u+037a-037f,u+0384-038a,u+038c,u+038e-03a1,u+03a3-03ff}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/f911b923c6adde36-s.woff2) format("woff2");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/939c4f875ee75fbb-s.woff2) format("woff2");unicode-range:u+0100-02ba,u+02bd-02c5,u+02c7-02cc,u+02ce-02d7,u+02dd-02ff,u+0304,u+0308,u+0329,u+1d00-1dbf,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20c0,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:JetBrains Mono;font-style:normal;font-weight:100 800;font-display:swap;src:url(/_next/static/media/bb3ef058b751a6ad-s.p.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-family:JetBrains Mono Fallback;src:local("Arial");ascent-override:75.79%;descent-override:22.29%;line-gap-override:0.00%;size-adjust:134.59%}.__className_3c557b{font-family:JetBrains Mono,JetBrains Mono Fallback;font-style:normal}.__variable_3c557b{--font-mono:"JetBrains Mono","JetBrains Mono Fallback"}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246/0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246/0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*
2
+ ! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com
3
+ */*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:var(--font-sans),system-ui,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--font-mono),Menlo,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.left-3{left:.75rem}.right-3{right:.75rem}.top-0{top:0}.top-1\/2{top:50%}.z-10{z-index:10}.z-50{z-index:50}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.-ml-2{margin-left:-.5rem}.-mr-1\.5{margin-right:-.375rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-auto{margin-left:auto}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-6{margin-top:1.5rem}.line-clamp-2{-webkit-line-clamp:2}.line-clamp-2,.line-clamp-3{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}.line-clamp-3{-webkit-line-clamp:3}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-12{height:3rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\[18px\]{height:18px}.max-h-\[85vh\]{max-height:85vh}.min-h-screen{min-height:100vh}.w-12{width:3rem}.w-16{width:4rem}.w-20{width:5rem}.w-24{width:6rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-4{width:1rem}.w-40{width:10rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-8{width:2rem}.w-\[18px\]{width:18px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-\[85\%\]{max-width:85%}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-y-1\/2{--tw-translate-y:-50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.border-accent{--tw-border-opacity:1;border-color:rgb(var(--accent)/var(--tw-border-opacity,1))}.border-accent\/20{border-color:rgb(var(--accent)/.2)}.border-danger\/20{border-color:rgb(var(--error)/.2)}.border-edge{--tw-border-opacity:1;border-color:rgb(var(--border-default)/var(--tw-border-opacity,1))}.border-edge-hover{--tw-border-opacity:1;border-color:rgb(var(--border-hover)/var(--tw-border-opacity,1))}.border-edge-subtle{--tw-border-opacity:1;border-color:rgb(var(--border-subtle)/var(--tw-border-opacity,1))}.border-success\/20{border-color:rgb(var(--success)/.2)}.border-t-accent{--tw-border-opacity:1;border-top-color:rgb(var(--accent)/var(--tw-border-opacity,1))}.bg-accent{--tw-bg-opacity:1;background-color:rgb(var(--accent)/var(--tw-bg-opacity,1))}.bg-accent\/10{background-color:rgb(var(--accent)/.1)}.bg-accent\/15{background-color:rgb(var(--accent)/.15)}.bg-black\/70{background-color:rgb(0 0 0/.7)}.bg-danger{--tw-bg-opacity:1;background-color:rgb(var(--error)/var(--tw-bg-opacity,1))}.bg-info\/15{background-color:rgb(var(--info)/.15)}.bg-success\/15{background-color:rgb(var(--success)/.15)}.bg-surface{--tw-bg-opacity:1;background-color:rgb(var(--bg-surface)/var(--tw-bg-opacity,1))}.bg-surface-elevated{--tw-bg-opacity:1;background-color:rgb(var(--bg-elevated)/var(--tw-bg-opacity,1))}.bg-surface\/80{background-color:rgb(var(--bg-surface)/.8)}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pl-10{padding-left:2.5rem}.pr-10{padding-right:2.5rem}.pr-16{padding-right:4rem}.pt-4{padding-top:1rem}.text-center{text-align:center}.font-mono{font-family:var(--font-mono),Menlo,monospace}.font-sans{font-family:var(--font-sans),system-ui,sans-serif}.font-serif{font-family:var(--font-serif),Georgia,serif}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.italic{font-style:italic}.leading-relaxed{line-height:1.625}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.text-accent{--tw-text-opacity:1;color:rgb(var(--accent)/var(--tw-text-opacity,1))}.text-accent\/60{color:rgb(var(--accent)/.6)}.text-accent\/70{color:rgb(var(--accent)/.7)}.text-accent\/80{color:rgb(var(--accent)/.8)}.text-content-primary{--tw-text-opacity:1;color:rgb(var(--text-primary)/var(--tw-text-opacity,1))}.text-content-secondary{--tw-text-opacity:1;color:rgb(var(--text-secondary)/var(--tw-text-opacity,1))}.text-content-tertiary{--tw-text-opacity:1;color:rgb(var(--text-tertiary)/var(--tw-text-opacity,1))}.text-content-tertiary\/50{color:rgb(var(--text-tertiary)/.5)}.text-danger{--tw-text-opacity:1;color:rgb(var(--error)/var(--tw-text-opacity,1))}.text-info{--tw-text-opacity:1;color:rgb(var(--info)/var(--tw-text-opacity,1))}.text-success{--tw-text-opacity:1;color:rgb(var(--success)/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.placeholder-content-tertiary::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(var(--text-tertiary)/var(--tw-placeholder-opacity,1))}.placeholder-content-tertiary::placeholder{--tw-placeholder-opacity:1;color:rgb(var(--text-tertiary)/var(--tw-placeholder-opacity,1))}.opacity-25{opacity:.25}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow-2xl{--tw-shadow:0 25px 50px -12px rgb(0 0 0/0.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-accent{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--accent)/var(--tw-ring-opacity,1))}.ring-offset-2{--tw-ring-offset-width:2px}.ring-offset-base{--tw-ring-offset-color:rgb(var(--bg-base)/1)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur:blur(12px)}.backdrop-blur-md,.backdrop-blur-sm{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}:root{--bg-base:11 10 9;--bg-surface:19 18 15;--bg-elevated:28 26 22;--bg-overlay:36 34 30;--border-subtle:38 36 32;--border-default:54 51 46;--border-hover:77 72 66;--accent:199 125 79;--accent-hover:217 154 108;--text-primary:236 232 228;--text-secondary:185 180 172;--text-tertiary:140 135 126;--success:107 143 113;--error:199 84 80;--error-hover:212 112 108;--info:107 143 179}[data-theme=light]{--bg-base:252 250 247;--bg-surface:255 254 252;--bg-elevated:245 242 237;--bg-overlay:237 233 227;--border-subtle:230 226 218;--border-default:213 208 199;--border-hover:187 181 172;--accent:175 95 45;--accent-hover:155 80 35;--text-primary:28 25 22;--text-secondary:105 99 90;--text-tertiary:160 153 143;--success:68 125 75;--error:195 65 60;--error-hover:175 50 45;--info:55 115 165}body{background-color:rgb(var(--bg-base));background-image:radial-gradient(circle at 1px 1px,rgba(255,255,255,.025) 1px,transparent 0);background-size:32px 32px;color:rgb(var(--text-primary));-webkit-font-smoothing:antialiased}[data-theme=light] body{background-image:radial-gradient(circle at 1px 1px,rgba(0,0,0,.04) 1px,transparent 0)}@keyframes fade-in-up{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes slide-up{0%{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.animate-in{animation:fade-in-up .45s cubic-bezier(.16,1,.3,1) both}.animate-fade{animation:fade-in .3s ease both}.animate-modal{animation:slide-up .35s cubic-bezier(.16,1,.3,1) both}.stagger-1{animation-delay:30ms}.stagger-2{animation-delay:60ms}.stagger-3{animation-delay:90ms}.stagger-4{animation-delay:.12s}.stagger-5{animation-delay:.15s}.stagger-6{animation-delay:.18s}.stagger-7{animation-delay:.21s}.stagger-8{animation-delay:.24s}.stagger-9{animation-delay:.27s}.stagger-10{animation-delay:.3s}.skeleton-shimmer{background:linear-gradient(90deg,rgb(var(--bg-elevated)) 0,rgb(var(--bg-overlay)) 50%,rgb(var(--bg-elevated)) 100%);background-size:200% 100%;animation:shimmer 2s ease-in-out infinite}.scrollbar-thin::-webkit-scrollbar{width:6px;height:6px}.scrollbar-thin::-webkit-scrollbar-track{background:transparent}.scrollbar-thin::-webkit-scrollbar-thumb{background:rgb(var(--border-default));border-radius:3px}.scrollbar-thin::-webkit-scrollbar-thumb:hover{background:rgb(var(--border-hover))}select option{background:rgb(var(--bg-surface));color:rgb(var(--text-primary))}.hover\:border-accent\/50:hover{border-color:rgb(var(--accent)/.5)}.hover\:border-edge-hover:hover{--tw-border-opacity:1;border-color:rgb(var(--border-hover)/var(--tw-border-opacity,1))}.hover\:bg-accent-hover:hover{--tw-bg-opacity:1;background-color:rgb(var(--accent-hover)/var(--tw-bg-opacity,1))}.hover\:bg-accent\/10:hover{background-color:rgb(var(--accent)/.1)}.hover\:bg-accent\/20:hover{background-color:rgb(var(--accent)/.2)}.hover\:bg-danger-hover:hover{--tw-bg-opacity:1;background-color:rgb(var(--error-hover)/var(--tw-bg-opacity,1))}.hover\:bg-danger\/10:hover{background-color:rgb(var(--error)/.1)}.hover\:bg-surface:hover{--tw-bg-opacity:1;background-color:rgb(var(--bg-surface)/var(--tw-bg-opacity,1))}.hover\:bg-surface-elevated:hover{--tw-bg-opacity:1;background-color:rgb(var(--bg-elevated)/var(--tw-bg-opacity,1))}.hover\:text-accent:hover{--tw-text-opacity:1;color:rgb(var(--accent)/var(--tw-text-opacity,1))}.hover\:text-accent-hover:hover{--tw-text-opacity:1;color:rgb(var(--accent-hover)/var(--tw-text-opacity,1))}.hover\:text-content-primary:hover{--tw-text-opacity:1;color:rgb(var(--text-primary)/var(--tw-text-opacity,1))}.hover\:text-content-secondary:hover{--tw-text-opacity:1;color:rgb(var(--text-secondary)/var(--tw-text-opacity,1))}.hover\:text-danger-hover:hover{--tw-text-opacity:1;color:rgb(var(--error-hover)/var(--tw-text-opacity,1))}.hover\:shadow-lg:hover{--tw-shadow:0 10px 15px -3px rgb(0 0 0/0.1),0 4px 6px -4px rgb(0 0 0/0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\:shadow-accent\/\[0\.04\]:hover{--tw-shadow-color:rgb(var(--accent)/0.04);--tw-shadow:var(--tw-shadow-colored)}.focus\:border-accent:focus{--tw-border-opacity:1;border-color:rgb(var(--accent)/var(--tw-border-opacity,1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:ring-accent:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(var(--accent)/var(--tw-ring-opacity,1))}.focus\:ring-accent\/30:focus{--tw-ring-color:rgb(var(--accent)/0.3)}.focus\:ring-offset-0:focus{--tw-ring-offset-width:0px}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:text-accent{--tw-text-opacity:1;color:rgb(var(--accent)/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\:block{display:block}.sm\:inline{display:inline}.sm\:inline-flex{display:inline-flex}.sm\:flex-row{flex-direction:row}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:1024px){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}.\[\&\>mark\]\:rounded>mark{border-radius:.25rem}.\[\&\>mark\]\:bg-accent\/25>mark{background-color:rgb(var(--accent)/.25)}.\[\&\>mark\]\:px-0\.5>mark{padding-left:.125rem;padding-right:.125rem}.\[\&\>mark\]\:text-accent-hover>mark{--tw-text-opacity:1;color:rgb(var(--accent-hover)/var(--tw-text-opacity,1))}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-chats",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Browse and search your Claude Code chat history",
5
5
  "license": "MIT",
6
6
  "keywords": ["claude", "claude-code", "chat", "history", "browser"],
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[974],{449:(e,t,n)=>{"use strict";n.d(t,{ThemeToggle:()=>a});var s=n(5155),r=n(1458);let o={system:"System",light:"Light",dark:"Dark"};function a(){let{theme:e,cycle:t}=(0,r.D)();return(0,s.jsx)("button",{onClick:t,className:"p-2 text-content-tertiary hover:text-content-secondary hover:bg-surface-elevated rounded-lg transition-all flex-shrink-0",title:"Theme: ".concat(o[e]),children:"system"===e?(0,s.jsx)("svg",{className:"w-[18px] h-[18px]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})}):"light"===e?(0,s.jsx)("svg",{className:"w-[18px] h-[18px]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"})}):(0,s.jsx)("svg",{className:"w-[18px] h-[18px]",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"})})})}},467:(e,t,n)=>{"use strict";function s(e){if("number"==typeof e)return e;let t=Date.parse(e);return isNaN(t)?0:t}function r(e){let t=Date.now()-e,n=Math.floor(t/6e4),s=Math.floor(t/36e5),r=Math.floor(t/864e5),o=Math.floor(t/6048e5),a=Math.floor(t/2592e6);if(n<1)return"Just now";if(n<60)return"".concat(n,"m ago");if(s<24)return"".concat(s,"h ago");if(r<7)return"".concat(r,"d ago");if(r<30)return"".concat(o,"w ago");if(a<12)return"".concat(a,"mo ago");let l=Math.floor(a/12);return"".concat(l,"y ago")}function o(e){return new Date(s(e)).toLocaleString("en-GB",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"})}function a(e){return e>=1e6?"".concat((e/1e6).toFixed(1),"M"):e>=1e4?"".concat((e/1e3).toFixed(1),"k"):e.toLocaleString("en-GB")}n.d(t,{EH:()=>s,ap:()=>a,fw:()=>r,r6:()=>o})},1046:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var s=n(5155);function r(e){let{value:t,onChange:n,placeholder:r="Search..."}=e;return(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-content-tertiary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,s.jsx)("input",{type:"text",value:t,onChange:e=>n(e.target.value),placeholder:r,className:"w-full pl-10 pr-10 py-2.5 bg-surface border border-edge-subtle rounded-xl text-sm text-content-primary placeholder-content-tertiary focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 transition-all"}),t&&(0,s.jsx)("button",{onClick:()=>n(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-content-tertiary hover:text-content-secondary transition-colors",children:(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})}},1458:(e,t,n)=>{"use strict";n.d(t,{D:()=>a,ThemeProvider:()=>l});var s=n(5155),r=n(2115);let o=(0,r.createContext)({theme:"system",resolved:"dark",setTheme:()=>{},cycle:()=>{}});function a(){return(0,r.useContext)(o)}function l(e){let{children:t}=e,[n,a]=(0,r.useState)("system"),[l,c]=(0,r.useState)("dark");(0,r.useEffect)(()=>{let e=localStorage.getItem("theme");e&&["light","dark","system"].includes(e)&&a(e)},[]),(0,r.useEffect)(()=>{let e="system"===n?window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark":n;if(c(e),document.documentElement.setAttribute("data-theme",e),"system"===n){let e=window.matchMedia("(prefers-color-scheme: light)"),t=()=>{let t=e.matches?"light":"dark";c(t),document.documentElement.setAttribute("data-theme",t)};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}},[n]);let i=(0,r.useCallback)(e=>{a(e),localStorage.setItem("theme",e)},[]),d=(0,r.useCallback)(()=>{let e=["system","light","dark"];i(e[(e.indexOf(n)+1)%e.length])},[n,i]);return(0,s.jsx)(o.Provider,{value:{theme:n,resolved:l,setTheme:i,cycle:d},children:t})}},3389:(e,t,n)=>{"use strict";n.d(t,{SyncButton:()=>o});var s=n(5155),r=n(2115);function o(){let[e,t]=(0,r.useState)(!1),[n,o]=(0,r.useState)(null),a=async()=>{t(!0),o(null);try{let e=await fetch("/api/sync",{method:"POST"});if(!e.ok)throw Error("Sync failed");let t=await e.json();o(t.sync),window.dispatchEvent(new Event("sync-complete")),setTimeout(()=>o(null),3e3)}catch(e){console.error("Sync error:",e)}finally{t(!1)}};return(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("button",{onClick:a,disabled:e,className:"p-2 text-content-tertiary hover:text-content-secondary hover:bg-surface-elevated rounded-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",title:"Resync database",children:(0,s.jsx)("svg",{className:"w-5 h-5 ".concat(e?"animate-spin":""),fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})}),n&&(n.added>0||n.updated>0||n.removed>0)&&(0,s.jsxs)("div",{className:"text-xs text-content-tertiary whitespace-nowrap animate-fade",children:[n.added>0&&"+".concat(n.added),n.updated>0&&" ~".concat(n.updated),n.removed>0&&" -".concat(n.removed)]})]})}},5011:(e,t,n)=>{"use strict";n.d(t,{S:()=>o});var s=n(5155),r=n(2115);function o(e){let{encodedPath:t,onClose:n}=e,[o,a]=(0,r.useState)(null),[l,c]=(0,r.useState)(null),i=(0,r.useRef)(null);return(0,r.useEffect)(()=>{fetch("/api/projects/memory?path=".concat(encodeURIComponent(t))).then(e=>{if(!e.ok)throw Error("Failed to load");return e.json()}).then(e=>a(e.files)).catch(()=>c("Failed to load memory"))},[t]),(0,r.useEffect)(()=>{function e(e){"Escape"===e.key&&n()}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[n]),(0,s.jsx)("div",{ref:i,className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 backdrop-blur-sm animate-fade",onClick:e=>{e.target===i.current&&n()},children:(0,s.jsxs)("div",{className:"bg-surface-elevated border border-edge rounded-2xl w-full max-w-2xl max-h-[80vh] flex flex-col shadow-2xl mx-4 animate-modal",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between px-5 py-4 border-b border-edge-subtle",children:[(0,s.jsx)("h2",{className:"text-sm font-serif text-content-primary",children:"Project Memory"}),(0,s.jsx)("button",{onClick:n,className:"text-content-tertiary hover:text-content-primary transition-colors",children:(0,s.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,s.jsxs)("div",{className:"overflow-y-auto p-5 space-y-6 scrollbar-thin",children:[l&&(0,s.jsx)("p",{className:"text-sm text-danger",children:l}),!o&&!l&&(0,s.jsx)("p",{className:"text-sm text-content-tertiary",children:"Loading..."}),null==o?void 0:o.map(e=>(0,s.jsxs)("div",{children:[o.length>1&&(0,s.jsx)("h3",{className:"text-xs font-medium text-accent/70 mb-2 font-mono",children:e.name}),(0,s.jsx)("pre",{className:"text-sm text-content-secondary whitespace-pre-wrap font-mono leading-relaxed",children:e.content})]},e.name)),(null==o?void 0:o.length)===0&&(0,s.jsx)("p",{className:"text-sm text-content-tertiary",children:"No memory files found."})]})]})})}},6281:(e,t,n)=>{"use strict";n.d(t,{GlobalSearch:()=>a});var s=n(5155),r=n(2115),o=n(63);function a(e){let{projectPath:t}=e,[n,a]=(0,r.useState)(""),l=(0,o.useRouter)(),c=(0,r.useRef)(null);(0,r.useEffect)(()=>{function e(e){if((e.metaKey||e.ctrlKey)&&"k"===e.key){var t;e.preventDefault(),null==(t=c.current)||t.focus()}}return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]);let i=(0,r.useCallback)(e=>{if(e.preventDefault(),n.trim()){let e=new URLSearchParams({q:n.trim()});t&&e.set("project",t),l.push("/search?".concat(e.toString()))}},[n,l,t]),d=t?"Search this project...":"Search all chats...";return(0,s.jsxs)("form",{onSubmit:i,className:"relative",children:[(0,s.jsx)("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-content-tertiary",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),(0,s.jsx)("input",{ref:c,type:"text",value:n,onChange:e=>a(e.target.value),placeholder:d,className:"w-full pl-10 pr-16 py-2 bg-surface border border-edge-subtle rounded-xl text-sm text-content-primary placeholder-content-tertiary focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 transition-all"}),!n&&(0,s.jsxs)("kbd",{className:"absolute right-3 top-1/2 -translate-y-1/2 hidden sm:inline-flex items-center gap-0.5 px-1.5 py-0.5 text-[10px] font-mono text-content-tertiary bg-surface-elevated border border-edge-subtle rounded",children:[(0,s.jsx)("span",{className:"text-xs",children:"⌘"}),"K"]})]})}},8994:(e,t,n)=>{"use strict";n.d(t,{ProjectList:()=>m});var s=n(5155),r=n(2115),o=n(2619),a=n.n(o),l=n(467),c=n(5011);function i(e){let{project:t}=e,[n,o]=(0,r.useState)(!1);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(a(),{href:"/project/".concat(t.encodedPath),className:"block p-4 bg-surface border border-edge-subtle rounded-xl hover:border-edge-hover hover:bg-surface-elevated transition-all duration-300 group hover:shadow-lg hover:shadow-accent/[0.04]",children:[(0,s.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("h3",{className:"font-medium text-content-primary truncate group-hover:text-accent transition-colors",children:t.name}),(0,s.jsx)("p",{className:"text-xs text-content-tertiary truncate mt-0.5 font-mono",children:t.path})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[t.hasMemory&&(0,s.jsxs)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),o(!0)},className:"flex items-center gap-1 px-1.5 py-0.5 text-[10px] font-medium tracking-wide rounded bg-accent/10 text-accent/80 hover:bg-accent/20 hover:text-accent transition-colors",children:[(0,s.jsx)("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"})}),"MEMORY"]}),(0,s.jsx)("div",{className:"text-content-tertiary group-hover:text-accent transition-colors",children:(0,s.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-4 mt-3 text-xs text-content-tertiary",children:[(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"})}),t.sessionCount," session",1!==t.sessionCount?"s":""]}),(0,s.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,s.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"})}),t.totalMessages," messages"]}),(0,s.jsxs)("span",{className:"flex items-center gap-1.5 ml-auto",children:[(0,s.jsx)("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,s.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),(0,l.fw)(t.lastActivity)]})]})]}),n&&(0,s.jsx)(c.S,{encodedPath:t.encodedPath,onClose:()=>o(!1)})]})}var d=n(1046);let u=null;function h(){return(0,s.jsx)("div",{className:"grid gap-3 lg:grid-cols-2",children:Array.from({length:6}).map((e,t)=>(0,s.jsxs)("div",{className:"p-4 bg-surface border border-edge-subtle rounded-xl animate-in stagger-".concat(t+1),children:[(0,s.jsx)("div",{className:"flex items-start justify-between gap-3",children:(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("div",{className:"h-5 w-40 rounded skeleton-shimmer"}),(0,s.jsx)("div",{className:"h-3 w-64 rounded skeleton-shimmer mt-2"})]})}),(0,s.jsxs)("div",{className:"flex items-center gap-4 mt-3",children:[(0,s.jsx)("div",{className:"h-3 w-20 rounded skeleton-shimmer"}),(0,s.jsx)("div",{className:"h-3 w-24 rounded skeleton-shimmer"}),(0,s.jsx)("div",{className:"h-3 w-16 rounded skeleton-shimmer ml-auto"})]})]},t))})}function m(){let[e,t]=(0,r.useState)(u),[n,o]=(0,r.useState)(""),[a,l]=(0,r.useState)("recent"),[c,m]=(0,r.useState)(!1);(0,r.useEffect)(()=>{let e=!1;function n(){fetch("/api/projects").then(e=>e.json()).then(n=>{e||(u=n,t(n))})}return n(),window.addEventListener("sync-complete",n),()=>{e=!0,window.removeEventListener("sync-complete",n)}},[]);let x=(0,r.useMemo)(()=>{var t;return null!=(t=null==e?void 0:e.some(e=>e.isOutsideHome))&&t},[e]),f=(0,r.useMemo)(()=>{if(!e)return[];let t=e;if(c&&(t=t.filter(e=>!e.isOutsideHome)),n.trim()){let e=n.toLowerCase();t=t.filter(t=>t.name.toLowerCase().includes(e)||t.path.toLowerCase().includes(e))}return[...t].sort((e,t)=>{switch(a){case"name":return e.name.localeCompare(t.name);case"messages":return t.totalMessages-e.totalMessages;case"sessions":return t.sessionCount-e.sessionCount;default:return t.lastActivity-e.lastActivity}})},[e,n,a,c]);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 mb-6",children:[(0,s.jsx)("div",{className:"flex-1",children:(0,s.jsx)(d.D,{value:n,onChange:o,placeholder:"Search projects..."})}),x&&(0,s.jsx)("button",{onClick:()=>m(!c),className:"px-3 py-2.5 border rounded-xl text-sm transition-all whitespace-nowrap ".concat(c?"bg-accent/10 border-accent text-accent":"bg-surface border-edge-subtle text-content-secondary hover:border-accent/50"),children:c?"External hidden":"Hide external"}),(0,s.jsxs)("select",{value:a,onChange:e=>l(e.target.value),className:"px-3 py-2.5 bg-surface border border-edge-subtle rounded-xl text-sm text-content-secondary focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/30 cursor-pointer transition-all",children:[(0,s.jsx)("option",{value:"recent",children:"Most Recent"}),(0,s.jsx)("option",{value:"name",children:"Name"}),(0,s.jsx)("option",{value:"messages",children:"Most Messages"}),(0,s.jsx)("option",{value:"sessions",children:"Most Sessions"})]})]}),null===e?(0,s.jsx)(h,{}):0===f.length?(0,s.jsx)("div",{className:"text-center py-16 text-content-tertiary animate-fade",children:n?"No projects found matching your search":"No projects found"}):(0,s.jsx)("div",{className:"grid gap-3 lg:grid-cols-2",children:f.map((e,t)=>(0,s.jsx)("div",{className:"animate-in stagger-".concat(Math.min(t+1,10)),children:(0,s.jsx)(i,{project:e})},e.path))}),null!==e&&(0,s.jsxs)("div",{className:"mt-6 text-xs text-content-tertiary text-center",children:[f.length," of ",e.length," projects"]})]})}},9869:(e,t,n)=>{Promise.resolve().then(n.bind(n,6281)),Promise.resolve().then(n.bind(n,8994)),Promise.resolve().then(n.bind(n,3389)),Promise.resolve().then(n.bind(n,449))}},e=>{e.O(0,[176,441,255,358],()=>e(e.s=9869)),_N_E=e.O()}]);