@customize-agent/server 4.0.15 → 4.0.16
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/build-manifest.json +2 -2
- package/.next/prerender-manifest.json +3 -3
- package/.next/required-server-files.json +2 -2
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/pages/asset-library.html +1 -1
- package/.next/server/pages/context/long-term.html +1 -1
- package/.next/server/pages/context/short-term.html +1 -1
- package/.next/server/pages/document-roles.html +1 -1
- package/.next/server/pages/document-specs.html +1 -1
- package/.next/server/pages/documents.html +1 -1
- package/.next/server/pages/guide.html +1 -1
- package/.next/server/pages/index.html +1 -1
- package/.next/server/pages/knowledge/file-detail.html +1 -1
- package/.next/server/pages/knowledge/files.html +1 -1
- package/.next/server/pages/knowledge/manage.html +1 -1
- package/.next/server/pages/knowledge/search.html +1 -1
- package/.next/server/pages/knowledge.html +1 -1
- package/.next/server/pages/models.html +1 -1
- package/.next/server/pages/overview.html +1 -1
- package/.next/server/pages/prompt.html +1 -1
- package/.next/server/pages/settings.html +1 -1
- package/.next/server/pages/system/logs.html +1 -1
- package/.next/server/pages-manifest.json +29 -29
- package/.next/static/{55ruDt0kPo5zYu2XUY26N → Sli5qVKgU6p7nl9SHWPvb}/_buildManifest.js +1 -1
- package/package.json +1 -1
- package/next.config.ts +0 -55
- /package/.next/static/{55ruDt0kPo5zYu2XUY26N → Sli5qVKgU6p7nl9SHWPvb}/_ssgManifest.js +0 -0
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
{
|
|
2
2
|
"/_app": "pages/_app.js",
|
|
3
|
-
"/_error": "pages/_error.js",
|
|
4
3
|
"/api/assets/generated/preview": "pages/api/assets/generated/preview.js",
|
|
5
4
|
"/api/assets/generated": "pages/api/assets/generated.js",
|
|
6
|
-
"/api/config/embedding/healthCheck": "pages/api/config/embedding/healthCheck.js",
|
|
7
|
-
"/api/documents/chapter/regenerate": "pages/api/documents/chapter/regenerate.js",
|
|
8
|
-
"/api/context": "pages/api/context.js",
|
|
9
5
|
"/api/config/models": "pages/api/config/models.js",
|
|
10
|
-
"/api/
|
|
6
|
+
"/api/context": "pages/api/context.js",
|
|
7
|
+
"/api/documents/chapter/regenerate": "pages/api/documents/chapter/regenerate.js",
|
|
8
|
+
"/api/config/embedding/healthCheck": "pages/api/config/embedding/healthCheck.js",
|
|
11
9
|
"/api/documents/generate": "pages/api/documents/generate.js",
|
|
12
10
|
"/api/documents/generated/[id]": "pages/api/documents/generated/[id].js",
|
|
13
|
-
"/api/documents/roles": "pages/api/documents/roles.js",
|
|
14
11
|
"/api/documents/generated": "pages/api/documents/generated.js",
|
|
15
|
-
"/api/
|
|
16
|
-
"/api/
|
|
12
|
+
"/api/documents/roles": "pages/api/documents/roles.js",
|
|
13
|
+
"/api/documents/drafts": "pages/api/documents/drafts.js",
|
|
17
14
|
"/api/documents/templates": "pages/api/documents/templates.js",
|
|
15
|
+
"/api/health": "pages/api/health.js",
|
|
16
|
+
"/api/documents/specs": "pages/api/documents/specs.js",
|
|
18
17
|
"/api/jobs/[id]": "pages/api/jobs/[id].js",
|
|
19
|
-
"/api/kb/features": "pages/api/kb/features.js",
|
|
20
18
|
"/api/jobs": "pages/api/jobs.js",
|
|
21
19
|
"/api/kb/categories": "pages/api/kb/categories.js",
|
|
22
|
-
"/api/kb/
|
|
23
|
-
"/api/
|
|
20
|
+
"/api/kb/duplicates": "pages/api/kb/duplicates.js",
|
|
21
|
+
"/api/kb/features": "pages/api/kb/features.js",
|
|
24
22
|
"/api/kb/files/detail": "pages/api/kb/files/detail.js",
|
|
25
|
-
"/api/kb/files/reindex": "pages/api/kb/files/reindex.js",
|
|
26
23
|
"/api/kb/files": "pages/api/kb/files.js",
|
|
24
|
+
"/api/kb/files/open": "pages/api/kb/files/open.js",
|
|
25
|
+
"/api/kb/files/reindex": "pages/api/kb/files/reindex.js",
|
|
27
26
|
"/api/kb/ignore": "pages/api/kb/ignore.js",
|
|
28
|
-
"/api/kb/operations": "pages/api/kb/operations.js",
|
|
29
27
|
"/api/kb/stats": "pages/api/kb/stats.js",
|
|
30
28
|
"/api/kb/search": "pages/api/kb/search.js",
|
|
31
|
-
"/api/kb/tags": "pages/api/kb/tags.js",
|
|
32
29
|
"/api/kb/reindex": "pages/api/kb/reindex.js",
|
|
30
|
+
"/api/kb/operations": "pages/api/kb/operations.js",
|
|
31
|
+
"/api/kb/tags": "pages/api/kb/tags.js",
|
|
33
32
|
"/api/kb/upload/progress": "pages/api/kb/upload/progress.js",
|
|
34
33
|
"/api/prompt": "pages/api/prompt.js",
|
|
35
|
-
"/api/system/stats": "pages/api/system/stats.js",
|
|
36
|
-
"/asset-library": "pages/asset-library.html",
|
|
37
34
|
"/api/system/logs": "pages/api/system/logs.js",
|
|
35
|
+
"/api/system/stats": "pages/api/system/stats.js",
|
|
38
36
|
"/context/long-term": "pages/context/long-term.html",
|
|
39
|
-
"/
|
|
40
|
-
"/context/short-term": "pages/context/short-term.html",
|
|
41
|
-
"/documents": "pages/documents.html",
|
|
42
|
-
"/guide": "pages/guide.html",
|
|
43
|
-
"/knowledge/file-detail": "pages/knowledge/file-detail.html",
|
|
37
|
+
"/asset-library": "pages/asset-library.html",
|
|
44
38
|
"/document-specs": "pages/document-specs.html",
|
|
45
|
-
"/
|
|
39
|
+
"/documents": "pages/documents.html",
|
|
40
|
+
"/context/short-term": "pages/context/short-term.html",
|
|
46
41
|
"/": "pages/index.html",
|
|
42
|
+
"/document-roles": "pages/document-roles.html",
|
|
43
|
+
"/knowledge/file-detail": "pages/knowledge/file-detail.html",
|
|
44
|
+
"/guide": "pages/guide.html",
|
|
45
|
+
"/_error": "pages/_error.js",
|
|
47
46
|
"/knowledge": "pages/knowledge.html",
|
|
48
|
-
"/knowledge/manage": "pages/knowledge/manage.html",
|
|
49
|
-
"/knowledge/search": "pages/knowledge/search.html",
|
|
50
47
|
"/models": "pages/models.html",
|
|
51
|
-
"/
|
|
48
|
+
"/knowledge/search": "pages/knowledge/search.html",
|
|
49
|
+
"/knowledge/manage": "pages/knowledge/manage.html",
|
|
50
|
+
"/knowledge/files": "pages/knowledge/files.html",
|
|
52
51
|
"/prompt": "pages/prompt.html",
|
|
53
|
-
"/settings": "pages/settings.html",
|
|
54
|
-
"/api/config/embedding": "pages/api/config/embedding.js",
|
|
55
52
|
"/api/config/healthCheck": "pages/api/config/healthCheck.js",
|
|
56
|
-
"/api/config/providers/[provider]": "pages/api/config/providers/[provider].js",
|
|
57
53
|
"/api/config/providers": "pages/api/config/providers.js",
|
|
58
|
-
"/
|
|
54
|
+
"/api/config/providers/[provider]": "pages/api/config/providers/[provider].js",
|
|
55
|
+
"/api/config/embedding": "pages/api/config/embedding.js",
|
|
59
56
|
"/api/kb/files/preview-pdf-page": "pages/api/kb/files/preview-pdf-page.js",
|
|
57
|
+
"/overview": "pages/overview.html",
|
|
60
58
|
"/api/documents/export": "pages/api/documents/export.js",
|
|
61
59
|
"/api/prompt/chat": "pages/api/prompt/chat.js",
|
|
62
60
|
"/api/kb/upload": "pages/api/kb/upload.js",
|
|
61
|
+
"/system/logs": "pages/system/logs.html",
|
|
62
|
+
"/settings": "pages/settings.html",
|
|
63
63
|
"/_document": "pages/_document.js",
|
|
64
64
|
"/404": "pages/404.html"
|
|
65
65
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST=function(s,e,t,c,a,n,d,i,u,o,r,f,
|
|
1
|
+
self.__BUILD_MANIFEST=function(s,e,t,c,a,n,d,i,u,o,r,k,f,g,h,l,b){return{__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},__routerFilterStatic:{numItems:0,errorRate:1e-4,numBits:0,numHashes:g,bitArray:[]},__routerFilterDynamic:{numItems:u,errorRate:1e-4,numBits:u,numHashes:g,bitArray:[]},"/":["static/chunks/pages/index-c5e0758e6b31deee.js"],"/_error":["static/chunks/pages/_error-282257fbdcc167b4.js"],"/asset-library":[s,e,n,"static/chunks/749-dcb0cd85d1455f34.js","static/chunks/pages/asset-library-e9ddfe1cbaac42d9.js"],"/context/long-term":[s,e,t,c,a,n,d,i,h,"static/chunks/pages/context/long-term-2e6a30a8f879df47.js"],"/context/short-term":[s,e,t,c,a,n,d,i,h,"static/chunks/pages/context/short-term-730211234fa3add6.js"],"/document-roles":[s,e,t,c,d,"static/chunks/698-625f34d5d0052e87.js","static/chunks/pages/document-roles-7197641736843503.js"],"/document-specs":[s,e,t,c,d,r,"static/chunks/265-c3a46cef96364aac.js","static/chunks/pages/document-specs-033d848b03b54df3.js"],"/documents":[s,e,t,c,d,o,l,"static/chunks/447-772df02993a8609b.js","static/chunks/pages/documents-3b2f23e2d6b27f1b.js"],"/guide":[s,e,l,"static/chunks/20-23d24b40b69faf0f.js","static/chunks/pages/guide-cdf68a096918c979.js"],"/knowledge":["static/chunks/pages/knowledge-905248d8dcb15453.js"],"/knowledge/file-detail":[s,e,t,a,n,i,o,b,k,"static/chunks/pages/knowledge/file-detail-0a5e267f77f4e8b3.js"],"/knowledge/files":[s,e,t,a,n,i,k,"static/chunks/pages/knowledge/files-a1727a21113f99cd.js"],"/knowledge/manage":[s,e,o,"static/chunks/788-f74cda5d27cf4390.js","static/chunks/pages/knowledge/manage-25eb1a993b155450.js"],"/knowledge/search":[s,e,t,o,r,k,"static/chunks/pages/knowledge/search-2cee4e8b8792170c.js"],"/models":[s,e,t,c,a,d,r,"static/chunks/pages/models-b5f68c4c70257495.js"],"/overview":[s,e,"static/chunks/131-96749f5b6e1460d1.js","static/chunks/pages/overview-28c7ceeca56e6a78.js"],"/prompt":[s,e,t,c,a,"static/chunks/36-205281971ae6919f.js","static/chunks/pages/prompt-31107707a8e8d33c.js"],"/settings":[s,e,"static/chunks/pages/settings-fa9d6a56898ba678.js"],"/system/logs":[s,t,c,a,n,i,b,"static/chunks/pages/system/logs-f4e222140dc7b30c.js"],sortedPages:["/","/_app","/_error","/asset-library","/context/long-term","/context/short-term","/document-roles","/document-specs","/documents","/guide","/knowledge","/knowledge/file-detail","/knowledge/files","/knowledge/manage","/knowledge/search","/models","/overview","/prompt","/settings","/system/logs"]}}("static/chunks/433-ef3d7675b81826a9.js","static/chunks/787-196a2bed7b11745a.js","static/chunks/576-679ab6348b33b960.js","static/chunks/195-9f2e4c67a9deff05.js","static/chunks/985-da0b1f68e59d1e76.js","static/chunks/150-a7b953a600cbd7e0.js","static/chunks/455-9e1e1c7e96845347.js","static/chunks/289-36c210992d5009d5.js",0,"static/chunks/506-b97aadd3e451b379.js","static/chunks/938-0063785681203bb5.js","static/css/09be1fdeab8595ab.css",1e-4,NaN,"static/chunks/932-823e1ae10dd43b8b.js","static/chunks/412-b9c854c6a76db67d.js","static/chunks/512-e2813c7e9454d53c.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
package/package.json
CHANGED
package/next.config.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { NextConfig } from 'next';
|
|
2
|
-
|
|
3
|
-
/** 需要在服务端而非客户端打包的外部依赖(原生模块/大型库) */
|
|
4
|
-
const serverExternalPackages = [
|
|
5
|
-
'@customize-agent/knowledge',
|
|
6
|
-
'@customize-agent/llm',
|
|
7
|
-
'@customize-agent/runtime',
|
|
8
|
-
'@customize-agent/types',
|
|
9
|
-
'@napi-rs/canvas',
|
|
10
|
-
'better-sqlite3',
|
|
11
|
-
'jszip',
|
|
12
|
-
'mammoth',
|
|
13
|
-
'pdf-parse',
|
|
14
|
-
'pdfjs-dist',
|
|
15
|
-
'tesseract.js',
|
|
16
|
-
'xlsx',
|
|
17
|
-
];
|
|
18
|
-
|
|
19
|
-
const nextConfig: NextConfig = {
|
|
20
|
-
eslint: {
|
|
21
|
-
ignoreDuringBuilds: true,
|
|
22
|
-
},
|
|
23
|
-
serverExternalPackages,
|
|
24
|
-
webpack(config, { isServer }) {
|
|
25
|
-
if (isServer) {
|
|
26
|
-
config.externals = [
|
|
27
|
-
...(Array.isArray(config.externals) ? config.externals : [config.externals].filter(Boolean)),
|
|
28
|
-
...serverExternalPackages,
|
|
29
|
-
];
|
|
30
|
-
}
|
|
31
|
-
return config;
|
|
32
|
-
},
|
|
33
|
-
async headers() {
|
|
34
|
-
return [
|
|
35
|
-
{
|
|
36
|
-
// 对所有非静态资源路由设置禁止缓存,确保内容实时更新
|
|
37
|
-
source: '/((?!_next/static|_next/image|favicon.ico).*)',
|
|
38
|
-
headers: [
|
|
39
|
-
{ key: 'Cache-Control', value: 'no-store, must-revalidate' },
|
|
40
|
-
],
|
|
41
|
-
},
|
|
42
|
-
];
|
|
43
|
-
},
|
|
44
|
-
async redirects() {
|
|
45
|
-
return [
|
|
46
|
-
// 将多个入口路径统一重定向到 /overview
|
|
47
|
-
{ source: '/', destination: '/overview', permanent: false },
|
|
48
|
-
{ source: '/dashboard', destination: '/overview', permanent: false },
|
|
49
|
-
{ source: '/console', destination: '/overview', permanent: false },
|
|
50
|
-
{ source: '/admin', destination: '/overview', permanent: false },
|
|
51
|
-
];
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export default nextConfig;
|
|
File without changes
|