cc-chats 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-build-manifest.json +37 -35
- package/.next/app-path-routes-manifest.json +5 -5
- package/.next/build-manifest.json +5 -5
- package/.next/prerender-manifest.json +10 -10
- package/.next/server/app/_not-found/page.js +2 -2
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +16 -16
- package/.next/server/app/api/project/rename/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/projects/memory/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/projects/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/projects/sessions/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/session/delete/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/session/duplicate/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/summary/route.js +20 -20
- package/.next/server/app/api/summary/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/sync/route_client-reference-manifest.js +1 -1
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +21 -20
- package/.next/server/app/page.js +2 -2
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/project/[projectPath]/page.js +2 -2
- package/.next/server/app/project/[projectPath]/page.js.nft.json +1 -1
- package/.next/server/app/project/[projectPath]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/project/[projectPath]/session/[sessionId]/page.js +1 -1
- package/.next/server/app/project/[projectPath]/session/[sessionId]/page.js.nft.json +1 -1
- package/.next/server/app/project/[projectPath]/session/[sessionId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/search/page.js +2 -2
- package/.next/server/app/search/page.js.nft.json +1 -1
- package/.next/server/app/search/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +5 -5
- package/.next/server/chunks/138.js +47 -47
- package/.next/server/chunks/{707.js → 251.js} +2 -2
- package/.next/server/chunks/326.js +1 -0
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/next-font-manifest.js +1 -1
- package/.next/server/next-font-manifest.json +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/326-29798aee14a5eca1.js +1 -0
- package/.next/static/chunks/app/layout-106c55be3e0b55bb.js +1 -0
- package/.next/static/chunks/app/page-a6be885dc8fc0a2a.js +1 -0
- package/.next/static/chunks/app/project/[projectPath]/page-73bbc99c9d96a191.js +1 -0
- package/.next/static/chunks/app/project/[projectPath]/session/[sessionId]/page-66e079191ecf162f.js +1 -0
- package/.next/static/chunks/{webpack-43c7aa59eaa5af49.js → webpack-6caf1cd8559327c9.js} +1 -1
- package/.next/static/css/58c26641c026d929.css +3 -0
- package/package.json +14 -5
- package/.next/server/chunks/363.js +0 -1
- package/.next/static/chunks/app/layout-439f7d41814bd173.js +0 -1
- package/.next/static/chunks/app/page-1ce99371e5ab9e54.js +0 -1
- package/.next/static/chunks/app/project/[projectPath]/page-23243a0bb07162ab.js +0 -1
- package/.next/static/chunks/app/project/[projectPath]/session/[sessionId]/page-a834947a4b535ef5.js +0 -1
- package/.next/static/css/c1efde6b9b6c386c.css +0 -3
- package/.next/static/media/35f3de0ebb1cfc70-s.woff2 +0 -0
- package/.next/static/media/e6099e249fd938cc-s.p.woff2 +0 -0
- /package/.next/static/{6D0TFghe5laTWW8yQrGtY → OzSL4nEX-XnunlkFt9kZq}/_buildManifest.js +0 -0
- /package/.next/static/{6D0TFghe5laTWW8yQrGtY → OzSL4nEX-XnunlkFt9kZq}/_ssgManifest.js +0 -0
|
@@ -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-
|
|
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}},"5014":{"*":{"id":"7614","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"8922","name":"*","chunks":[],"async":false}},"6229":{"*":{"id":"1777","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-106c55be3e0b55bb.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-106c55be3e0b55bb.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/app/globals.css":{"id":3673,"name":"*","chunks":["177","static/chunks/app/layout-106c55be3e0b55bb.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/font-size-provider.tsx":{"id":5014,"name":"*","chunks":["177","static/chunks/app/layout-106c55be3e0b55bb.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-106c55be3e0b55bb.js"],"async":false},"/Users/pedrosousa/Work/Personal/Code/claude-code-chats/src/components/font-size-toggle.tsx":{"id":6229,"name":"*","chunks":["176","static/chunks/176-cef4c4d2c348a0da.js","326","static/chunks/326-29798aee14a5eca1.js","974","static/chunks/app/page-a6be885dc8fc0a2a.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","326","static/chunks/326-29798aee14a5eca1.js","974","static/chunks/app/page-a6be885dc8fc0a2a.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/components/session-content.tsx":{"id":7314,"name":"*","chunks":[],"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}},"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/58c26641c026d929.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}},"5014":{"*":{"id":"5864","name":"*","chunks":[],"async":false}},"5278":{"*":{"id":"7184","name":"*","chunks":[],"async":false}},"6229":{"*":{"id":"7295","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,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"/_not-found/page": "app/_not-found/page.js",
|
|
3
3
|
"/api/projects/memory/route": "app/api/projects/memory/route.js",
|
|
4
|
+
"/api/projects/sessions/route": "app/api/projects/sessions/route.js",
|
|
4
5
|
"/api/projects/route": "app/api/projects/route.js",
|
|
5
|
-
"/api/search/route": "app/api/search/route.js",
|
|
6
|
-
"/api/session/delete/route": "app/api/session/delete/route.js",
|
|
7
6
|
"/api/sync/route": "app/api/sync/route.js",
|
|
8
|
-
"/api/projects/sessions/route": "app/api/projects/sessions/route.js",
|
|
9
7
|
"/api/project/rename/route": "app/api/project/rename/route.js",
|
|
8
|
+
"/api/search/route": "app/api/search/route.js",
|
|
9
|
+
"/api/session/delete/route": "app/api/session/delete/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
12
|
"/page": "app/page.js",
|
|
13
13
|
"/project/[projectPath]/page": "app/project/[projectPath]/page.js",
|
|
14
|
-
"/
|
|
15
|
-
"/
|
|
14
|
+
"/project/[projectPath]/session/[sessionId]/page": "app/project/[projectPath]/session/[sessionId]/page.js",
|
|
15
|
+
"/search/page": "app/search/page.js"
|
|
16
16
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";exports.id=138,exports.ids=[138],exports.modules={3485:(a,b,c)=>{c.d(b,{$P:()=>
|
|
1
|
+
"use strict";exports.id=138,exports.ids=[138],exports.modules={3485:(a,b,c)=>{c.d(b,{$P:()=>s,Be:()=>u,EB:()=>v,HM:()=>w,IK:()=>r,LS:()=>y,ac:()=>t,ts:()=>z,z1:()=>x});var d=c(7550),e=c.n(d),f=c(9021),g=c.n(f),h=c(9902),i=c.n(h),j=c(3554);let k=i().join(process.env.HOME||"",".claude"),l=i().join(k,"projects"),m=i().join(k,"chat-search.db"),n=[a=>{a.exec(`
|
|
2
2
|
CREATE TABLE IF NOT EXISTS indexed_files (
|
|
3
3
|
path TEXT PRIMARY KEY,
|
|
4
4
|
mtime INTEGER NOT NULL,
|
|
@@ -27,49 +27,49 @@
|
|
|
27
27
|
|
|
28
28
|
CREATE INDEX IF NOT EXISTS idx_summaries_lookup
|
|
29
29
|
ON summaries(type, target_id, project_path);
|
|
30
|
-
`)},a=>{a.exec("ALTER TABLE indexed_files ADD COLUMN visible_message_count INTEGER NOT NULL DEFAULT 0"),a.exec("ALTER TABLE indexed_files ADD COLUMN first_message TEXT NOT NULL DEFAULT ''"),a.exec("DELETE FROM indexed_files"),a.exec("DELETE FROM messages_fts")}];function
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
30
|
+
`)},a=>{a.exec("ALTER TABLE indexed_files ADD COLUMN visible_message_count INTEGER NOT NULL DEFAULT 0"),a.exec("ALTER TABLE indexed_files ADD COLUMN first_message TEXT NOT NULL DEFAULT ''"),a.exec("DELETE FROM indexed_files"),a.exec("DELETE FROM messages_fts")}];function o(a){if("string"==typeof a)return a;let b=a.find(a=>"text"===a.type);return b&&"text"in b?b.text:""}let p=null;function q(){return p||(p=function(a){let b=(void 0)??l,c=(void 0)??j.D2,d=new(e())(a?.dbPath??m),f=d.pragma("user_version",{simple:!0})??0;for(let a=f;a<n.length;a++)d.transaction(()=>{n[a](d),d.pragma(`user_version = ${a+1}`)})();function h(a){let b=function(a){try{return g().readFileSync(a,"utf-8").split("\n").filter(a=>a.trim()).map(a=>{try{return JSON.parse(a)}catch{return null}}).filter(a=>null!==a).filter(a=>"user"===a.type||"assistant"===a.type)}catch{return[]}}(a.path),c=d.prepare(`
|
|
31
|
+
INSERT INTO messages_fts (content, session_id, project_path, message_uuid, user_type, timestamp)
|
|
32
|
+
VALUES (?, ?, ?, ?, ?, ?)
|
|
33
|
+
`),e=0,f="";for(let d of b){if(function(a){if(a.isMeta)return!0;let b=o(a.message.content);return!!(b.startsWith("<command-name>")||b.startsWith("<local-command-")||b.startsWith("Caveat:")||b.startsWith("<system-reminder>"))}(d))continue;let b=o(d.message.content);b.trim()&&(e++,f||"user"!==d.type||(f=b.slice(0,500)),c.run(b,a.sessionId,a.encodedPath,d.uuid,d.type,(function(a){if("number"==typeof a)return a;let b=Date.parse(a);return isNaN(b)?0:b})(d.timestamp).toString()))}d.prepare(`
|
|
34
|
+
INSERT OR REPLACE INTO indexed_files (path, mtime, session_id, project_path, visible_message_count, first_message)
|
|
35
|
+
VALUES (?, ?, ?, ?, ?, ?)
|
|
36
|
+
`).run(a.path,a.mtime,a.sessionId,a.encodedPath,e,f)}function k(a){let b=d.prepare("SELECT session_id, project_path FROM indexed_files WHERE path = ?").get(a);b&&(d.prepare("DELETE FROM messages_fts WHERE session_id = ? AND project_path = ?").run(b.session_id,b.project_path),d.prepare("DELETE FROM indexed_files WHERE path = ?").run(a))}function p(){let a=function(){let a=[];if(!g().existsSync(b))return a;for(let d of g().readdirSync(b)){let e=i().join(b,d);if(g().statSync(e).isDirectory())for(let b of g().readdirSync(e)){if(!b.endsWith(".jsonl")||b.startsWith("agent-"))continue;let f=i().join(e,b),h=g().statSync(f);a.push({path:f,mtime:h.mtime.getTime(),sessionId:b.replace(".jsonl",""),projectPath:c(d),encodedPath:d})}}return a}(),e=new Set(a.map(a=>a.path)),f=new Map(d.prepare("SELECT path, mtime FROM indexed_files").all().map(a=>[a.path,a.mtime])),j=0,l=0,m=0;return d.transaction(()=>{for(let b of a){let a=f.get(b.path);void 0===a?(h(b),j++):a<b.mtime&&(k(b.path),h(b),l++)}for(let[a]of f)!e.has(a)&&(k(a),m++)})(),{added:j,updated:l,removed:m}}return{syncIndex:p,search:function(a,b=50,e){if(!a.trim())return[];let f=a.split(/\s+/).filter(Boolean).map(a=>`"${a}"*`).join(" "),g=e?`
|
|
37
|
+
SELECT
|
|
38
|
+
content,
|
|
39
|
+
session_id,
|
|
40
|
+
project_path,
|
|
41
|
+
message_uuid,
|
|
42
|
+
user_type,
|
|
43
|
+
timestamp,
|
|
44
|
+
snippet(messages_fts, 0, '<mark>', '</mark>', '...', 64) as snippet,
|
|
45
|
+
rank
|
|
46
|
+
FROM messages_fts
|
|
47
|
+
WHERE messages_fts MATCH ? AND project_path = ?
|
|
48
|
+
ORDER BY rank
|
|
49
|
+
LIMIT ?
|
|
50
|
+
`:`
|
|
51
|
+
SELECT
|
|
52
|
+
content,
|
|
53
|
+
session_id,
|
|
54
|
+
project_path,
|
|
55
|
+
message_uuid,
|
|
56
|
+
user_type,
|
|
57
|
+
timestamp,
|
|
58
|
+
snippet(messages_fts, 0, '<mark>', '</mark>', '...', 64) as snippet,
|
|
59
|
+
rank
|
|
60
|
+
FROM messages_fts
|
|
61
|
+
WHERE messages_fts MATCH ?
|
|
62
|
+
ORDER BY rank
|
|
63
|
+
LIMIT ?
|
|
64
|
+
`;return d.prepare(g).all(...e?[f,e,b]:[f,b]).map(a=>{let b=c(a.project_path),d=b.split("/").filter(Boolean),e=d[d.length-1]||b;return{content:a.content,sessionId:a.session_id,projectPath:a.project_path,projectName:e,messageUuid:a.message_uuid,userType:a.user_type,timestamp:parseInt(a.timestamp,10)||0,snippet:a.snippet,rank:a.rank}})},getIndexStats:function(){return{fileCount:d.prepare("SELECT COUNT(*) as count FROM indexed_files").get().count,messageCount:d.prepare("SELECT COUNT(*) as count FROM messages_fts").get().count}},getSummary:function(a,b,c){let e=d.prepare("SELECT id, type, target_id, project_path, content, created_at, message_count FROM summaries WHERE type = ? AND target_id = ? AND project_path = ?").get(a,b,c);return e?{id:e.id,type:e.type,targetId:e.target_id,projectPath:e.project_path,content:e.content,createdAt:e.created_at,messageCount:e.message_count}:null},saveSummary:function(a){let b=`${a.type}-${a.projectPath}-${a.targetId}`;return d.prepare(`INSERT OR REPLACE INTO summaries (id, type, target_id, project_path, content, created_at, message_count)
|
|
65
|
+
VALUES (?, ?, ?, ?, ?, ?, ?)`).run(b,a.type,a.targetId,a.projectPath,a.content,a.createdAt,a.messageCount),{...a,id:b}},getSessionSummaries:function(a){return d.prepare("SELECT id, type, target_id, project_path, content, created_at, message_count FROM summaries WHERE type = 'session' AND project_path = ?").all(a).map(a=>({id:a.id,type:a.type,targetId:a.target_id,projectPath:a.project_path,content:a.content,createdAt:a.created_at,messageCount:a.message_count}))},getSessionSummariesFromDb:function(a){return d.prepare(`
|
|
66
|
+
SELECT session_id, first_message, visible_message_count, mtime
|
|
67
|
+
FROM indexed_files
|
|
68
|
+
WHERE project_path = ? AND visible_message_count > 0 AND first_message != ''
|
|
69
|
+
ORDER BY mtime DESC
|
|
70
|
+
`).all(a).map(a=>({id:a.session_id,firstMessage:a.first_message,messageCount:a.visible_message_count,lastActivity:a.mtime}))},getProjectStats:function(){0===d.prepare("SELECT COUNT(*) as count FROM indexed_files").get().count&&p();let a=d.prepare(`
|
|
71
|
+
SELECT project_path, COUNT(*) as sessions, SUM(visible_message_count) as messages
|
|
72
|
+
FROM indexed_files
|
|
73
|
+
WHERE visible_message_count > 0
|
|
74
|
+
GROUP BY project_path
|
|
75
|
+
`).all(),b=new Map;for(let c of a)b.set(c.project_path,{sessionCount:c.sessions,totalMessages:c.messages});return b},renameProjectInIndex:function(a,b){d.transaction(()=>{d.prepare("UPDATE indexed_files SET project_path = ? WHERE project_path = ?").run(b,a),d.prepare("UPDATE messages_fts SET project_path = ? WHERE project_path = ?").run(b,a),d.prepare("UPDATE summaries SET project_path = ?, id = REPLACE(id, ?, ?) WHERE project_path = ?").run(b,a,b,a)})()},close:function(){d.close()}}}()),p}function r(){return q().syncIndex()}function s(a,b,c){return q().search(a,b,c)}function t(){return q().getIndexStats()}function u(a,b,c){return q().getSummary(a,b,c)}function v(a){return q().saveSummary(a)}function w(a){return q().getSessionSummaries(a)}function x(a){return q().getSessionSummariesFromDb(a)}function y(){return q().getProjectStats()}function z(a,b){return q().renameProjectInIndex(a,b)}},3554:(a,b,c)=>{c.d(b,{$d:()=>C,CB:()=>z,D2:()=>n,Sh:()=>B,V3:()=>o,z4:()=>A});var d=c(9021),e=c.n(d),f=c(9902),g=c.n(f),h=c(9646),i=c(4599),j=c(3485);let k=g().join(process.env.HOME||"",".claude"),l=g().join(k,"projects"),m=new Map;function n(a){let b=m.get(a);if(void 0!==b)return b;let c=a.replace(/-/g,"/");if(e().existsSync(c))return m.set(a,c),c;let d=a.split("-").filter(Boolean),f=function a(b,c){if(b>=d.length)return e().existsSync(c)?c:null;for(let f=d.length;f>b;f--){let g=c+"/"+d.slice(b,f).join("-");if(e().existsSync(g)){let b=a(f,g);if(b)return b}}return null}(0,"");if(f&&e().existsSync(f))return m.set(a,f),f;let g=function(a){let b="",c=0;for(let d=0;d<a.length;d++){let f=b+"/"+a[d];if(e().existsSync(f))b=f,c=d+1;else break}if(c>=a.length)return b;let d=b+"/*"+a.slice(c).join("*")+"*";try{let a=(0,h.execSync)(`ls -d ${d} 2>/dev/null`,{encoding:"utf-8"}).trim().split("\n").filter(Boolean);if(1===a.length)return a[0]}catch{}return null}(d);return g?(m.set(a,g),g):(m.set(a,c),c)}function o(a){return a.replace(/\//g,"-")}let p=process.env.HOME||"";function q(a){let b=a.split("/").filter(Boolean);return b[b.length-1]||a}function r(a){if("string"==typeof a)return a;let b=a.find(a=>"text"===a.type);return b&&"text"in b?b.text:""}function s(a){if(a.isMeta)return!0;let b=r(a.message.content);return!!(b.startsWith("<command-name>")||b.startsWith("<local-command-")||b.startsWith("Caveat:"))}function t(a){if("number"==typeof a)return a;let b=Date.parse(a);return isNaN(b)?0:b}function u(a){try{return e().readFileSync(a,"utf-8").split("\n").filter(a=>a.trim()).map(a=>{try{return JSON.parse(a)}catch{return null}}).filter(a=>null!==a).filter(a=>"user"===a.type||"assistant"===a.type)}catch{return[]}}function v(a){let b=0,c=0,d=0,e=0,f=!1;for(let g of a){let a=g.message.usage;a&&(f=!0,b+=a.input_tokens||0,c+=a.output_tokens||0,d+=a.cache_creation_input_tokens||0,e+=a.cache_read_input_tokens||0)}if(f)return{input_tokens:b,output_tokens:c,cache_creation_input_tokens:d,cache_read_input_tokens:e}}function w(a){try{return e().readdirSync(a).filter(a=>a.endsWith(".jsonl")&&!a.startsWith("agent-"))}catch{return[]}}let x=null;function y(){return x||(x=function(a){let b=(void 0)??l,c=(void 0)??n,d=a?.getProjectStats??j.LS,f=a?.getSessionSummariesFromDb??j.z1;function h(a){try{let b=e().readdirSync(a).filter(a=>a.endsWith(".jsonl")&&!a.startsWith("agent-")),d=g().basename(a);return b.map(b=>{let e=g().join(a,b),f=u(e);if(0===f.length)return null;let h=b.replace(".jsonl",""),j=f.find(a=>"user"===a.type&&!s(a)),k=j?r(j.message.content):"No messages",l=f.map(a=>t(a.timestamp)).filter(a=>a>0),m=l.length>0?Math.max(...l):0,n=c(d),o=f.filter(a=>!(0,i.X4)(a)&&!(0,i.B1)(a)).length,p=v(f);return{id:h,projectPath:n,projectName:q(n),encodedPath:d,messages:f,firstMessage:k.slice(0,500),lastActivity:m,messageCount:o,...p&&{tokenUsage:p}}}).filter(a=>null!==a).sort((a,b)=>b.lastActivity-a.lastActivity)}catch{return[]}}return{getAllProjects:function(){try{if(!e().existsSync(b))return[];return e().readdirSync(b).map(a=>{let d=g().join(b,a);if(!e().statSync(d).isDirectory())return null;let f=h(d);if(0===f.length)return null;let i=c(a),j=f.reduce((a,b)=>a+b.messageCount,0),k=Math.max(...f.map(a=>a.lastActivity));return{path:i,name:q(i),encodedPath:a,sessions:f,totalMessages:j,lastActivity:k}}).filter(a=>null!==a).sort((a,b)=>b.lastActivity-a.lastActivity)}catch{return[]}},getProjectByPath:function(a){let d=g().join(b,a);try{if(!e().existsSync(d))return null;let b=h(d);if(0===b.length)return null;let f=c(a),g=b.reduce((a,b)=>a+b.messageCount,0),i=Math.max(...b.map(a=>a.lastActivity));return{path:f,name:q(f),encodedPath:a,sessions:b,totalMessages:g,lastActivity:i}}catch{return null}},getProjectsSummary:function(){try{if(!e().existsSync(b))return[];let a=e().readdirSync(b),f=d();return a.map(a=>{let d=g().join(b,a);if(!e().statSync(d).isDirectory())return null;let h=c(a);if(!e().existsSync(h))return null;let i=!p||!h.startsWith(p),j=w(d);if(0===j.length)return null;let k=f.get(a),l=0;for(let a of j){let b=g().join(d,a),c=e().statSync(b).mtime.getTime();c>l&&(l=c)}let m=e().existsSync(g().join(d,"memory","MEMORY.md"));return{path:h,name:q(h),encodedPath:a,sessionCount:k?.sessionCount??j.length,totalMessages:k?.totalMessages??0,lastActivity:l,hasMemory:m,isOutsideHome:i}}).filter(a=>null!==a).sort((a,b)=>b.lastActivity-a.lastActivity)}catch{return[]}},getSessionsSummary:function(a){let c=f(a);if(c.length>0)return c.map(b=>({...b,encodedPath:a}));let d=g().join(b,a);try{if(!e().existsSync(d))return[];return w(d).map(b=>{let c=g().join(d,b),f=e().statSync(c);if(0===f.size)return null;let h=b.replace(".jsonl",""),j=function(a,b){try{return e().readFileSync(a,"utf-8").split("\n").filter(a=>a.trim()).slice(0,100).map(a=>{try{return JSON.parse(a)}catch{return null}}).filter(a=>null!==a).filter(a=>"user"===a.type||"assistant"===a.type)}catch{return[]}}(c,0);if(0===j.length)return null;let k=j.find(a=>"user"===a.type&&!s(a));if(!k)return null;let l=r(k.message.content),m=function(a){try{let b=e().readFileSync(a,"utf-8"),c=0,d=0;for(;d<b.length;){let a=b.indexOf("\n",d),e=-1===a?b.slice(d):b.slice(d,a);if(d=-1===a?b.length:a+1,e.trim())try{let a=JSON.parse(e);("user"===a.type||"assistant"===a.type)&&!(0,i.X4)(a)&&!(0,i.B1)(a)&&c++}catch{continue}}return c}catch{return 0}}(c);return{id:h,encodedPath:a,firstMessage:l.slice(0,500),messageCount:m,lastActivity:f.mtime.getTime()}}).filter(a=>null!==a).sort((a,b)=>b.lastActivity-a.lastActivity)}catch{return[]}},getSessionById:function(a,d){let f=g().join(b,a),h=g().join(f,`${d}.jsonl`);try{if(!e().existsSync(h))return null;let b=u(h);if(0===b.length)return null;let f=b.find(a=>"user"===a.type&&!s(a)),g=f?r(f.message.content):"No messages",j=b.map(a=>t(a.timestamp)).filter(a=>a>0),k=j.length>0?Math.max(...j):0,l=c(a),m=b.filter(a=>!(0,i.X4)(a)&&!(0,i.B1)(a)).length,n=v(b);return{id:d,projectPath:l,projectName:q(l),encodedPath:a,messages:b,firstMessage:g.slice(0,500),lastActivity:k,messageCount:m,...n&&{tokenUsage:n}}}catch{return null}}}}()),x}function z(a){return y().getProjectByPath(a)}function A(){return y().getProjectsSummary()}function B(a){return y().getSessionsSummary(a)}function C(a,b){return y().getSessionById(a,b)}},4599:(a,b,c)=>{function d(a){if(a.isMeta)return!0;let b=function(a){if("string"==typeof a)return a;let b=a.find(a=>"text"===a.type);return b?b.text:""}(a.message.content);return!!(b.startsWith("<command-name>")||b.startsWith("<local-command-")||b.startsWith("Caveat:"))}function e(a){let b=a.message.content;return"string"==typeof b?0===b.trim().length:0===b.length||!b.some(a=>"text"===a.type&&a.text.trim().length>0)}c.d(b,{B1:()=>e,X4:()=>d})}};
|