@customize-agent/server 2.2.3 → 3.0.0

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 (115) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +68 -65
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/server/chunks/204.js +1 -1
  5. package/.next/server/middleware-build-manifest.js +1 -1
  6. package/.next/server/pages/404.html +1 -1
  7. package/.next/server/pages/500.html +1 -1
  8. package/.next/server/pages/api/config/healthCheck.js +1 -1
  9. package/.next/server/pages/api/config/healthCheck.js.nft.json +1 -1
  10. package/.next/server/pages/api/config/models.js +1 -1
  11. package/.next/server/pages/api/config/models.js.nft.json +1 -1
  12. package/.next/server/pages/api/config/providers/[provider].js +1 -1
  13. package/.next/server/pages/api/config/providers/[provider].js.nft.json +1 -1
  14. package/.next/server/pages/api/config/providers.js +1 -1
  15. package/.next/server/pages/api/config/providers.js.nft.json +1 -1
  16. package/.next/server/pages/api/kb/categories.js +1 -1
  17. package/.next/server/pages/api/kb/categories.js.nft.json +1 -1
  18. package/.next/server/pages/api/kb/duplicates.js +1 -1
  19. package/.next/server/pages/api/kb/duplicates.js.nft.json +1 -1
  20. package/.next/server/pages/api/kb/files/detail.js +1 -1
  21. package/.next/server/pages/api/kb/files/detail.js.nft.json +1 -1
  22. package/.next/server/pages/api/kb/files/open.js +1 -1
  23. package/.next/server/pages/api/kb/files/open.js.nft.json +1 -1
  24. package/.next/server/pages/api/kb/files/preview-pdf-page.js +1 -1
  25. package/.next/server/pages/api/kb/files/preview-pdf-page.js.nft.json +1 -1
  26. package/.next/server/pages/api/kb/files/reindex.js +1 -1
  27. package/.next/server/pages/api/kb/files/reindex.js.nft.json +1 -1
  28. package/.next/server/pages/api/kb/files.js +2 -2
  29. package/.next/server/pages/api/kb/files.js.nft.json +1 -1
  30. package/.next/server/pages/api/kb/ignore.js +1 -1
  31. package/.next/server/pages/api/kb/ignore.js.nft.json +1 -1
  32. package/.next/server/pages/api/kb/operations.js +2 -2
  33. package/.next/server/pages/api/kb/operations.js.nft.json +1 -1
  34. package/.next/server/pages/api/kb/reindex.js +1 -1
  35. package/.next/server/pages/api/kb/reindex.js.nft.json +1 -1
  36. package/.next/server/pages/api/kb/search.js +1 -1
  37. package/.next/server/pages/api/kb/search.js.nft.json +1 -1
  38. package/.next/server/pages/api/kb/stats.js +1 -1
  39. package/.next/server/pages/api/kb/stats.js.nft.json +1 -1
  40. package/.next/server/pages/api/kb/tags.js +1 -1
  41. package/.next/server/pages/api/kb/tags.js.nft.json +1 -1
  42. package/.next/server/pages/api/kb/upload.js +2 -2
  43. package/.next/server/pages/api/kb/upload.js.nft.json +1 -1
  44. package/.next/server/pages/api/prompt.js +1 -1
  45. package/.next/server/pages/api/prompt.js.nft.json +1 -1
  46. package/.next/server/pages/api/system/stats.js +1 -1
  47. package/.next/server/pages/api/system/stats.js.nft.json +1 -1
  48. package/.next/server/pages/context/long-term.html +1 -1
  49. package/.next/server/pages/context/short-term.html +1 -1
  50. package/.next/server/pages/index.html +1 -1
  51. package/.next/server/pages/knowledge/file-detail.html +1 -1
  52. package/.next/server/pages/knowledge/files.html +1 -1
  53. package/.next/server/pages/knowledge/manage.html +1 -1
  54. package/.next/server/pages/knowledge/search.html +1 -1
  55. package/.next/server/pages/knowledge.html +1 -1
  56. package/.next/server/pages/models.html +1 -1
  57. package/.next/server/pages/overview.html +1 -1
  58. package/.next/server/pages/prompt.html +1 -1
  59. package/.next/server/pages/settings.html +1 -1
  60. package/.next/server/pages-manifest.json +7 -7
  61. package/.next/server/webpack-api-runtime.js +1 -1
  62. package/.next/static/HIdBlqc4OSurll-8LjOWl/_buildManifest.js +1 -0
  63. package/.next/static/chunks/167-0be293a3c58a8577.js +1 -0
  64. package/.next/static/chunks/38-e3671099d80db91b.js +1 -0
  65. package/.next/static/chunks/446-3bb2f94b52176cb1.js +4 -0
  66. package/.next/static/chunks/519-709ba3df6e549125.js +6 -0
  67. package/.next/static/chunks/584-ce8dbed7354f3644.js +87 -0
  68. package/.next/static/chunks/{227-eb562f29334fcb34.js → 700-8a90f86277a335de.js} +1 -1
  69. package/.next/static/chunks/740-b61ebb053ec9426a.js +16 -0
  70. package/.next/static/chunks/796-db4afcb27cb903b9.js +25 -0
  71. package/.next/static/chunks/860-55753e4c8eba4bb3.js +1 -0
  72. package/.next/static/chunks/992-8a06ec9aa4b1e3b3.js +1 -0
  73. package/.next/static/chunks/pages/{_app-52fa1fa291b60bee.js → _app-cf14b47b90a9eb58.js} +1 -1
  74. package/.next/static/chunks/pages/context/long-term-b431347893a69969.js +1 -0
  75. package/.next/static/chunks/pages/context/short-term-f0c420388a050e28.js +1 -0
  76. package/.next/static/chunks/pages/knowledge/file-detail-328ce1d9c6ce907e.js +1 -0
  77. package/.next/static/chunks/pages/knowledge/files-7ce51dd9b261aea2.js +1 -0
  78. package/.next/static/chunks/pages/knowledge/manage-813a1635240f38df.js +1 -0
  79. package/.next/static/chunks/pages/knowledge/search-9da46d3cee5b7517.js +1 -0
  80. package/.next/static/chunks/pages/{models-4fbcb0182c8a9476.js → models-2146abd3aa3da947.js} +1 -1
  81. package/.next/static/chunks/pages/overview-da401b76cd3ec331.js +1 -0
  82. package/.next/static/chunks/pages/prompt-048fe74855c6514b.js +1 -0
  83. package/.next/static/chunks/pages/settings-4f97b4ec26c324fc.js +1 -0
  84. package/.next/static/css/578f3811be75310d.css +1 -0
  85. package/.next/static/css/cbbe2355765ea112.css +1 -0
  86. package/.next/static/css/d28c22ed67198de0.css +1 -0
  87. package/.next/static/css/d7ad5d9b207a29f0.css +1 -0
  88. package/README.md +174 -0
  89. package/package.json +13 -12
  90. package/postcss.config.mjs +6 -0
  91. package/.next/package.json +0 -1
  92. package/.next/static/8dyGaK16zDaZF9URM2xgk/_buildManifest.js +0 -1
  93. package/.next/static/chunks/425-feceb6e39a2b417d.js +0 -25
  94. package/.next/static/chunks/455-d2aca155a3032ee0.js +0 -6
  95. package/.next/static/chunks/492-5245cad2f8d60d8d.js +0 -1
  96. package/.next/static/chunks/544-fba84f8cd64c79ed.js +0 -1
  97. package/.next/static/chunks/584-3a8c7b39c2a3037a.js +0 -90
  98. package/.next/static/chunks/740-450a37b8ca6fe1c6.js +0 -16
  99. package/.next/static/chunks/891-fde3ad128ccf30dc.js +0 -1
  100. package/.next/static/chunks/958-0f3a960f8ebe421b.js +0 -1
  101. package/.next/static/chunks/992-6e67409e97fe9b6b.js +0 -1
  102. package/.next/static/chunks/pages/context/long-term-8c5fe7c5cb8f3d6d.js +0 -1
  103. package/.next/static/chunks/pages/context/short-term-4b1ba522c259bc7b.js +0 -1
  104. package/.next/static/chunks/pages/knowledge/file-detail-37573640ecdd5c11.js +0 -1
  105. package/.next/static/chunks/pages/knowledge/files-a3104d6d309aefdd.js +0 -1
  106. package/.next/static/chunks/pages/knowledge/manage-36d4824b96f8150f.js +0 -1
  107. package/.next/static/chunks/pages/knowledge/search-33f4f2a3dc318802.js +0 -1
  108. package/.next/static/chunks/pages/overview-d588ba8cc32f615c.js +0 -1
  109. package/.next/static/chunks/pages/prompt-490524ba05078205.js +0 -1
  110. package/.next/static/chunks/pages/settings-e6a894618727eec3.js +0 -1
  111. package/.next/static/css/031cf1db0e9affb3.css +0 -1
  112. package/.next/static/css/5237c5e3358f3282.css +0 -1
  113. package/.next/static/css/82b6ddff0ef364fe.css +0 -1
  114. package/.next/static/css/9d4b5a2db56e7aa7.css +0 -1
  115. /package/.next/static/{8dyGaK16zDaZF9URM2xgk → HIdBlqc4OSurll-8LjOWl}/_ssgManifest.js +0 -0
package/.next/BUILD_ID CHANGED
@@ -1 +1 @@
1
- 8dyGaK16zDaZF9URM2xgk
1
+ HIdBlqc4OSurll-8LjOWl
@@ -5,8 +5,8 @@
5
5
  "devFiles": [],
6
6
  "ampDevFiles": [],
7
7
  "lowPriorityFiles": [
8
- "static/8dyGaK16zDaZF9URM2xgk/_buildManifest.js",
9
- "static/8dyGaK16zDaZF9URM2xgk/_ssgManifest.js"
8
+ "static/HIdBlqc4OSurll-8LjOWl/_buildManifest.js",
9
+ "static/HIdBlqc4OSurll-8LjOWl/_ssgManifest.js"
10
10
  ],
11
11
  "rootMainFiles": [],
12
12
  "rootMainFilesTree": {},
@@ -21,8 +21,8 @@
21
21
  "static/chunks/webpack-77d10b4726f13aa5.js",
22
22
  "static/chunks/framework-b5223c1542334872.js",
23
23
  "static/chunks/main-1a03005b3754c708.js",
24
- "static/css/5237c5e3358f3282.css",
25
- "static/chunks/pages/_app-52fa1fa291b60bee.js"
24
+ "static/css/578f3811be75310d.css",
25
+ "static/chunks/pages/_app-cf14b47b90a9eb58.js"
26
26
  ],
27
27
  "/_error": [
28
28
  "static/chunks/webpack-77d10b4726f13aa5.js",
@@ -35,32 +35,32 @@
35
35
  "static/chunks/framework-b5223c1542334872.js",
36
36
  "static/chunks/main-1a03005b3754c708.js",
37
37
  "static/chunks/260-03f19eaee776f7fa.js",
38
- "static/chunks/544-fba84f8cd64c79ed.js",
39
- "static/chunks/425-feceb6e39a2b417d.js",
38
+ "static/chunks/167-0be293a3c58a8577.js",
39
+ "static/chunks/796-db4afcb27cb903b9.js",
40
+ "static/chunks/740-b61ebb053ec9426a.js",
40
41
  "static/chunks/576-642eb5cede35ba19.js",
41
- "static/chunks/227-eb562f29334fcb34.js",
42
- "static/chunks/740-450a37b8ca6fe1c6.js",
43
- "static/chunks/584-3a8c7b39c2a3037a.js",
44
- "static/chunks/492-5245cad2f8d60d8d.js",
45
- "static/chunks/455-d2aca155a3032ee0.js",
42
+ "static/chunks/700-8a90f86277a335de.js",
43
+ "static/chunks/446-3bb2f94b52176cb1.js",
44
+ "static/chunks/584-ce8dbed7354f3644.js",
45
+ "static/chunks/519-709ba3df6e549125.js",
46
46
  "static/chunks/257-c71f52e4adae1e38.js",
47
- "static/chunks/pages/context/long-term-8c5fe7c5cb8f3d6d.js"
47
+ "static/chunks/pages/context/long-term-b431347893a69969.js"
48
48
  ],
49
49
  "/context/short-term": [
50
50
  "static/chunks/webpack-77d10b4726f13aa5.js",
51
51
  "static/chunks/framework-b5223c1542334872.js",
52
52
  "static/chunks/main-1a03005b3754c708.js",
53
53
  "static/chunks/260-03f19eaee776f7fa.js",
54
- "static/chunks/544-fba84f8cd64c79ed.js",
55
- "static/chunks/425-feceb6e39a2b417d.js",
54
+ "static/chunks/167-0be293a3c58a8577.js",
55
+ "static/chunks/796-db4afcb27cb903b9.js",
56
+ "static/chunks/740-b61ebb053ec9426a.js",
56
57
  "static/chunks/576-642eb5cede35ba19.js",
57
- "static/chunks/227-eb562f29334fcb34.js",
58
- "static/chunks/740-450a37b8ca6fe1c6.js",
59
- "static/chunks/584-3a8c7b39c2a3037a.js",
60
- "static/chunks/492-5245cad2f8d60d8d.js",
61
- "static/chunks/455-d2aca155a3032ee0.js",
58
+ "static/chunks/700-8a90f86277a335de.js",
59
+ "static/chunks/446-3bb2f94b52176cb1.js",
60
+ "static/chunks/584-ce8dbed7354f3644.js",
61
+ "static/chunks/519-709ba3df6e549125.js",
62
62
  "static/chunks/257-c71f52e4adae1e38.js",
63
- "static/chunks/pages/context/short-term-4b1ba522c259bc7b.js"
63
+ "static/chunks/pages/context/short-term-f0c420388a050e28.js"
64
64
  ],
65
65
  "/knowledge": [
66
66
  "static/chunks/webpack-77d10b4726f13aa5.js",
@@ -73,104 +73,107 @@
73
73
  "static/chunks/framework-b5223c1542334872.js",
74
74
  "static/chunks/main-1a03005b3754c708.js",
75
75
  "static/chunks/260-03f19eaee776f7fa.js",
76
- "static/chunks/544-fba84f8cd64c79ed.js",
77
- "static/chunks/425-feceb6e39a2b417d.js",
76
+ "static/chunks/167-0be293a3c58a8577.js",
77
+ "static/chunks/796-db4afcb27cb903b9.js",
78
+ "static/chunks/740-b61ebb053ec9426a.js",
78
79
  "static/chunks/576-642eb5cede35ba19.js",
79
- "static/chunks/227-eb562f29334fcb34.js",
80
- "static/chunks/740-450a37b8ca6fe1c6.js",
81
- "static/chunks/584-3a8c7b39c2a3037a.js",
80
+ "static/chunks/700-8a90f86277a335de.js",
81
+ "static/chunks/446-3bb2f94b52176cb1.js",
82
+ "static/chunks/584-ce8dbed7354f3644.js",
82
83
  "static/chunks/840-717f0706d50fcb82.js",
83
84
  "static/chunks/517-c6a8c0e680dafa46.js",
84
- "static/css/9d4b5a2db56e7aa7.css",
85
- "static/chunks/pages/knowledge/file-detail-37573640ecdd5c11.js"
85
+ "static/css/d28c22ed67198de0.css",
86
+ "static/chunks/pages/knowledge/file-detail-328ce1d9c6ce907e.js"
86
87
  ],
87
88
  "/knowledge/files": [
88
89
  "static/chunks/webpack-77d10b4726f13aa5.js",
89
90
  "static/chunks/framework-b5223c1542334872.js",
90
91
  "static/chunks/main-1a03005b3754c708.js",
91
92
  "static/chunks/260-03f19eaee776f7fa.js",
92
- "static/chunks/544-fba84f8cd64c79ed.js",
93
- "static/chunks/425-feceb6e39a2b417d.js",
93
+ "static/chunks/167-0be293a3c58a8577.js",
94
+ "static/chunks/796-db4afcb27cb903b9.js",
95
+ "static/chunks/740-b61ebb053ec9426a.js",
94
96
  "static/chunks/576-642eb5cede35ba19.js",
95
- "static/chunks/227-eb562f29334fcb34.js",
96
- "static/chunks/740-450a37b8ca6fe1c6.js",
97
- "static/chunks/584-3a8c7b39c2a3037a.js",
97
+ "static/chunks/700-8a90f86277a335de.js",
98
+ "static/chunks/446-3bb2f94b52176cb1.js",
99
+ "static/chunks/584-ce8dbed7354f3644.js",
98
100
  "static/chunks/15-fed70feebb38d5ae.js",
99
101
  "static/chunks/252-a9d7774c3009dcda.js",
100
- "static/css/9d4b5a2db56e7aa7.css",
101
- "static/chunks/pages/knowledge/files-a3104d6d309aefdd.js"
102
+ "static/css/d28c22ed67198de0.css",
103
+ "static/chunks/pages/knowledge/files-7ce51dd9b261aea2.js"
102
104
  ],
103
105
  "/knowledge/manage": [
104
106
  "static/chunks/webpack-77d10b4726f13aa5.js",
105
107
  "static/chunks/framework-b5223c1542334872.js",
106
108
  "static/chunks/main-1a03005b3754c708.js",
107
109
  "static/chunks/260-03f19eaee776f7fa.js",
108
- "static/chunks/544-fba84f8cd64c79ed.js",
109
- "static/chunks/425-feceb6e39a2b417d.js",
110
- "static/chunks/227-eb562f29334fcb34.js",
111
- "static/chunks/740-450a37b8ca6fe1c6.js",
112
- "static/chunks/584-3a8c7b39c2a3037a.js",
113
- "static/chunks/958-0f3a960f8ebe421b.js",
114
- "static/chunks/891-fde3ad128ccf30dc.js",
115
- "static/chunks/pages/knowledge/manage-36d4824b96f8150f.js"
110
+ "static/chunks/167-0be293a3c58a8577.js",
111
+ "static/chunks/796-db4afcb27cb903b9.js",
112
+ "static/chunks/740-b61ebb053ec9426a.js",
113
+ "static/chunks/700-8a90f86277a335de.js",
114
+ "static/chunks/446-3bb2f94b52176cb1.js",
115
+ "static/chunks/584-ce8dbed7354f3644.js",
116
+ "static/chunks/38-e3671099d80db91b.js",
117
+ "static/chunks/pages/knowledge/manage-813a1635240f38df.js"
116
118
  ],
117
119
  "/knowledge/search": [
118
120
  "static/chunks/webpack-77d10b4726f13aa5.js",
119
121
  "static/chunks/framework-b5223c1542334872.js",
120
122
  "static/chunks/main-1a03005b3754c708.js",
121
123
  "static/chunks/260-03f19eaee776f7fa.js",
122
- "static/chunks/544-fba84f8cd64c79ed.js",
123
- "static/chunks/425-feceb6e39a2b417d.js",
124
+ "static/chunks/167-0be293a3c58a8577.js",
125
+ "static/chunks/796-db4afcb27cb903b9.js",
124
126
  "static/chunks/576-642eb5cede35ba19.js",
125
- "static/chunks/227-eb562f29334fcb34.js",
127
+ "static/chunks/700-8a90f86277a335de.js",
126
128
  "static/chunks/840-717f0706d50fcb82.js",
127
- "static/chunks/992-6e67409e97fe9b6b.js",
128
- "static/css/9d4b5a2db56e7aa7.css",
129
- "static/chunks/pages/knowledge/search-33f4f2a3dc318802.js"
129
+ "static/chunks/992-8a06ec9aa4b1e3b3.js",
130
+ "static/css/d28c22ed67198de0.css",
131
+ "static/chunks/pages/knowledge/search-9da46d3cee5b7517.js"
130
132
  ],
131
133
  "/models": [
132
134
  "static/chunks/webpack-77d10b4726f13aa5.js",
133
135
  "static/chunks/framework-b5223c1542334872.js",
134
136
  "static/chunks/main-1a03005b3754c708.js",
135
137
  "static/chunks/260-03f19eaee776f7fa.js",
136
- "static/chunks/544-fba84f8cd64c79ed.js",
137
- "static/chunks/425-feceb6e39a2b417d.js",
138
+ "static/chunks/167-0be293a3c58a8577.js",
139
+ "static/chunks/796-db4afcb27cb903b9.js",
140
+ "static/chunks/740-b61ebb053ec9426a.js",
138
141
  "static/chunks/576-642eb5cede35ba19.js",
139
- "static/chunks/740-450a37b8ca6fe1c6.js",
140
- "static/chunks/492-5245cad2f8d60d8d.js",
141
- "static/chunks/455-d2aca155a3032ee0.js",
142
- "static/css/031cf1db0e9affb3.css",
143
- "static/chunks/pages/models-4fbcb0182c8a9476.js"
142
+ "static/chunks/519-709ba3df6e549125.js",
143
+ "static/css/d7ad5d9b207a29f0.css",
144
+ "static/chunks/pages/models-2146abd3aa3da947.js"
144
145
  ],
145
146
  "/overview": [
146
147
  "static/chunks/webpack-77d10b4726f13aa5.js",
147
148
  "static/chunks/framework-b5223c1542334872.js",
148
149
  "static/chunks/main-1a03005b3754c708.js",
149
150
  "static/chunks/260-03f19eaee776f7fa.js",
150
- "static/chunks/544-fba84f8cd64c79ed.js",
151
- "static/chunks/227-eb562f29334fcb34.js",
151
+ "static/chunks/167-0be293a3c58a8577.js",
152
+ "static/chunks/700-8a90f86277a335de.js",
152
153
  "static/chunks/15-fed70feebb38d5ae.js",
153
- "static/chunks/958-0f3a960f8ebe421b.js",
154
- "static/chunks/pages/overview-d588ba8cc32f615c.js"
154
+ "static/chunks/860-55753e4c8eba4bb3.js",
155
+ "static/chunks/pages/overview-da401b76cd3ec331.js"
155
156
  ],
156
157
  "/prompt": [
157
158
  "static/chunks/webpack-77d10b4726f13aa5.js",
158
159
  "static/chunks/framework-b5223c1542334872.js",
159
160
  "static/chunks/main-1a03005b3754c708.js",
160
161
  "static/chunks/260-03f19eaee776f7fa.js",
161
- "static/chunks/544-fba84f8cd64c79ed.js",
162
- "static/chunks/425-feceb6e39a2b417d.js",
162
+ "static/chunks/167-0be293a3c58a8577.js",
163
+ "static/chunks/796-db4afcb27cb903b9.js",
164
+ "static/chunks/740-b61ebb053ec9426a.js",
163
165
  "static/chunks/576-642eb5cede35ba19.js",
164
- "static/chunks/492-5245cad2f8d60d8d.js",
165
- "static/chunks/pages/prompt-490524ba05078205.js"
166
+ "static/chunks/446-3bb2f94b52176cb1.js",
167
+ "static/chunks/519-709ba3df6e549125.js",
168
+ "static/chunks/pages/prompt-048fe74855c6514b.js"
166
169
  ],
167
170
  "/settings": [
168
171
  "static/chunks/webpack-77d10b4726f13aa5.js",
169
172
  "static/chunks/framework-b5223c1542334872.js",
170
173
  "static/chunks/main-1a03005b3754c708.js",
171
174
  "static/chunks/260-03f19eaee776f7fa.js",
172
- "static/css/82b6ddff0ef364fe.css",
173
- "static/chunks/pages/settings-e6a894618727eec3.js"
175
+ "static/css/cbbe2355765ea112.css",
176
+ "static/chunks/pages/settings-4f97b4ec26c324fc.js"
174
177
  ]
175
178
  },
176
179
  "ampFirstPages": []
@@ -3,9 +3,9 @@
3
3
  "routes": {},
4
4
  "dynamicRoutes": {},
5
5
  "preview": {
6
- "previewModeId": "ad42f39360d8f0936acaa43e951d631a",
7
- "previewModeSigningKey": "d26094143d57832e0a366c8b451a2622c0c909c22c98b9ee4030772d6c554dd0",
8
- "previewModeEncryptionKey": "22d13ae6e57dc819f06338ddc4bd74102cf29e8a2fff1b3262acd5ce418010ea"
6
+ "previewModeId": "d862902ab3474669b52475338a208561",
7
+ "previewModeSigningKey": "e39c8d7a55e8ddbaf967c5ae3ef0b7fa6dcdf3a675f3e437b2215a9b48f0511f",
8
+ "previewModeEncryptionKey": "5f57d1a6c69bbc7e8644127393f1b21fdd4fe5b84130c91a24bf013439833140"
9
9
  },
10
10
  "notFoundRoutes": []
11
11
  }
@@ -1 +1 @@
1
- exports.id=204,exports.ids=[204],exports.modules={4823:(a,b,c)=>{"use strict";c.d(b,{D:()=>e});var d=c(60056);function e(a){return{algorithm:a?d.w4.darkAlgorithm:d.w4.defaultAlgorithm,token:{colorPrimary:a?"#0a84ff":"#007aff",colorInfo:a?"#0a84ff":"#007aff",colorSuccess:a?"#30d158":"#34c759",colorWarning:a?"#ff9f0a":"#ff9500",colorError:a?"#ff453a":"#ff3b30",colorBgBase:a?"#1c1c1e":"#f5f5f7",colorBgContainer:a?"rgba(44,44,46,0.78)":"rgba(255,255,255,0.78)",colorBgElevated:a?"rgba(44,44,46,0.92)":"rgba(255,255,255,0.94)",colorBorder:a?"rgba(255,255,255,0.12)":"rgba(60,60,67,0.16)",colorText:a?"#f5f5f7":"#1d1d1f",colorTextSecondary:a?"#98989d":"#6e6e73",fontFamily:"var(--fontSans)",fontSize:14,borderRadius:14,borderRadiusLG:20,borderRadiusSM:10,controlHeight:36,lineWidth:1,boxShadow:a?"0 8px 24px rgba(0,0,0,0.24)":"0 8px 24px rgba(0,0,0,0.06)",boxShadowSecondary:a?"0 4px 12px rgba(0,0,0,0.2)":"0 4px 12px rgba(0,0,0,0.04)",motionDurationMid:"0.2s",motionEaseInOut:"cubic-bezier(0.25, 0.1, 0.25, 1)"},components:{Card:{borderRadiusLG:20,paddingLG:24,headerFontSize:13,headerFontSizeSM:12},Button:{borderRadius:14,borderRadiusLG:18,borderRadiusSM:10,fontWeight:600,primaryShadow:"var(--shadowButton)"},Input:{borderRadius:14,controlHeight:36,activeShadow:"0 0 0 3px rgba(0,122,255,0.12)"},Select:{borderRadius:14},Modal:{borderRadiusLG:20,titleFontSize:17,fontWeightStrong:700},Tag:{borderRadiusSM:100,defaultBg:a?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.04)"},Table:{borderRadiusLG:20,headerBg:a?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.02)",headerColor:"var(--colorTextSecondary)",headerSplitColor:"transparent",headerBorderRadius:12},Spin:{dotSize:28,dotSizeLG:40},Upload:{borderRadiusLG:20}}}}},8204:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{default:()=>h});var e=c(8732),f=c(94487);c(66285),c(97237);var g=a([f]);function h({Component:a,pageProps:b}){return(0,e.jsx)(f.PE,{children:(0,e.jsx)(a,{...b})})}f=(g.then?(await g)():g)[0],d()}catch(a){d(a)}})},13484:a=>{"use strict";a.exports=JSON.parse('{"app":{"title":"Customize Agent","subtitle":"管理控制台"},"nav":{"overview":"总览","knowledge":"知识库","knowledgeManage":"知识库管理","fileManagement":"文件管理","knowledgeSearch":"知识库搜索","models":"模型配置","settings":"设置","contextEngineering":"上下文工程","longTermContext":"长期上下文","shortTermContext":"短期上下文","promptManagement":"提示词管理"},"overview":{"title":"系统总览","description":"查看 Customize Agent 运行状态与关键指标","status":"服务状态","statusRunning":"运行中","statusError":"异常","knowledgeBase":"知识库","modelConfig":"模型配置","filesCount":"文件总数","chunksCount":"分块总数","storageSize":"存储空间","providersCount":"已配置模型","quickActions":"快捷操作","goToKnowledge":"管理知识库","goToModels":"配置模型","goToSettings":"系统设置","cores":"核","memory":"内存","tokensUsed":"累计 Tokens","tasksTotal":"总任务数","successRate":"成功率","topModel":"调用最多模型","taskTypes":"任务类型","calls":"次调用"},"knowledge":{"title":"知识库管理","description":"管理本地文件和知识库索引","manageTitle":"知识库管理","manageDesc":"查看知识库统计、分类和功能状态","stats":"统计概览","files":"文件管理","settings":"知识库设置","totalFiles":"文件总数","totalChunks":"分块总数","totalSize":"存储大小","lastIndexed":"上次索引","categories":"文件分类","fileCount":"文件数量","search":"搜索文件","searchPlaceholder":"输入文件名或内容关键词...","filterCategory":"筛选分类","allCategories":"全部类型","upload":"上传文件","uploadHint":"点击或拖拽上传 (PDF, Word, Excel, 图片, 代码等)","uploading":"上传中...","reindex":"重新索引","reindexing":"正在重新索引...","delete":"删除","deleteConfirm":"确定要删除该文件吗?此操作不可恢复。","fileList":"文件列表","fileName":"文件名","fileSize":"大小","fileCategory":"分类","fileDate":"修改日期","noFiles":"暂无文件,请上传文件开始使用","loadError":"加载文件列表失败","emptySearch":"未找到匹配的文件","ignoreRules":"忽略规则","ignoreHint":"每行一个 glob 模式,匹配的文件将被跳过","saveIgnore":"保存规则","duplicates":"重复文件","noDuplicates":"未发现重复文件","duplicatesFound":"发现 {count} 组重复文件","features":"功能状态","featureName":"功能","featureDesc":"说明","featureValue":"实现","featureVectorStoreDesc":"向量数据库,存储文档向量索引","featureEmbeddingDesc":"文本嵌入模型,将文本转换为向量","featureDedup":"去重引擎","featureDedupDesc":"检测并移除重复/相似文档","featureChunker":"分块器","featureChunkerDesc":"将文档拆分为可检索的语义块","globalSearch":"全局搜索","projectSearch":"项目搜索","autoIndex":"自动索引","enabled":"已启用","disabled":"已禁用"},"models":{"title":"模型配置","description":"管理 LLM 模型与层级分配","modelList":"Model 列表","addModel":"添加模型","editModel":"编辑模型","providerName":"Provider 名称","modelName":"模型名称","apiKey":"API Key","baseUrl":"Base URL","protocol":"请求协议","testConnection":"测试连接","testing":"测试中...","connected":"已连接","connectionFailed":"连接失败","noProviders":"暂无模型,请添加一个","modelTiers":"模型层级分配","tierReader":"Reader(只读)","tierReaderDesc":"处理低风险、只读和成本敏感任务,例如读取文件、检索知识库、搜索文本、整理上下文。建议选择速度快、价格低、长上下文能力稳定的模型。","tierReasoning":"Reasoning(推理)","tierReasoningDesc":"处理需要深入分析、规划、代码理解和多步骤推理的任务。建议选择推理能力强、稳定性高的模型,必要时可使用更高阶模型。","tierAction":"Action(操作)","tierActionDesc":"处理会产生副作用的任务,例如写文件、修改代码、执行命令、调用外部工具。建议选择可靠、遵循指令能力强且经过验证的模型。","activeModel":"当前模型","deleteProvider":"删除","deleteProviderConfirm":"确定要删除此模型及其所有配置吗?","modelNamePlaceholder":"例如: gpt-4o / deepseek-chat","selectModelPlaceholder":"暂不配置","apiKeyEditHint":"已配置的 Key 会以掩码回显,聚焦后可输入新 Key;掩码不可复制,留空或保持掩码则不修改。","apiKeyEditPlaceholder":"输入新的 API Key,留空保持不变","save":"保存","cancel":"取消"},"context":{"title":"上下文工程管理","longTermDesc":"来自记忆库的持久化上下文(跨会话保留)","shortTermDesc":"来自最近会话日志的短期上下文","longTermSource":"数据来源: ~/.customize-agent/memory.db(记忆库)","shortTermSource":"数据来源: ~/.customize-agent/logs/(会话日志)","importance":"重要性","content":"内容","tags":"标签","source":"来源","sourceHint":"可选,额外的来源/上下文说明","updatedAt":"更新时间"},"prompt":{"title":"提示词管理","description":"管理各项目的 CUSTOMIZE.md 系统提示词文件","filePath":"文件路径","lastModified":"最后修改","hasFile":"已配置","noFile":"未配置","noProjects":"暂无项目,请先初始化 Customize Agent 项目"},"settings":{"title":"系统设置","description":"管理语言、主题等偏好","language":"语言","languageDesc":"界面显示语言","theme":"主题","themeDesc":"浅色 / 深色模式","light":"浅色","dark":"深色","system":"跟随系统","about":"关于","version":"版本","port":"服务端口"},"common":{"save":"保存","cancel":"取消","confirm":"确认","delete":"删除","edit":"编辑","add":"添加","search":"搜索","loading":"加载中...","error":"出错了","success":"操作成功","retry":"重试","close":"关闭","back":"返回","more":"更多","noData":"暂无数据","bytes":"字节","kb":"KB","mb":"MB","gb":"GB","unknown":"未知","never":"从未"}}')},34924:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{Y:()=>j});var e=c(8732),f=c(57312),g=c(94487),h=c(68329),i=a([f,g]);function j(){let{resolvedTheme:a,setTheme:b}=(0,f.useTheme)(),{locale:c,setLocale:d}=(0,g.x_)(),i=(0,g.Vr)("settings"),j="dark"===a;return(0,e.jsxs)("header",{className:"topbar",children:[(0,e.jsx)("div",{className:"flex-1"}),(0,e.jsxs)("button",{onClick:()=>b(j?"light":"dark"),className:"topbarBtn",children:[j?(0,e.jsx)(h.bd5,{size:14}):(0,e.jsx)(h.AX$,{size:14}),(0,e.jsx)("span",{children:i(j?"light":"dark")})]}),(0,e.jsxs)("button",{onClick:()=>{d("zh-CN"===c?"en-US":"zh-CN")},className:"topbarBtn",children:[(0,e.jsx)(h.ATU,{size:14}),(0,e.jsx)("span",{children:"zh-CN"===c?"English":"中文"})]})]})}[f,g]=i.then?(await i)():i,d()}catch(a){d(a)}})},54506:a=>{"use strict";a.exports=JSON.parse('{"app":{"title":"Customize Agent","subtitle":"Admin Console"},"nav":{"overview":"Overview","knowledge":"Knowledge Base","knowledgeManage":"KB Management","fileManagement":"File Management","knowledgeSearch":"KB Search","models":"Model Config","settings":"Settings","contextEngineering":"Context Engineering","longTermContext":"Long-term Context","shortTermContext":"Short-term Context","promptManagement":"Prompt Management"},"overview":{"title":"System Overview","description":"Monitor Customize Agent status and key metrics","status":"Service Status","statusRunning":"Running","statusError":"Error","knowledgeBase":"Knowledge Base","modelConfig":"Model Config","filesCount":"Total Files","chunksCount":"Total Chunks","storageSize":"Storage Size","providersCount":"Models","quickActions":"Quick Actions","goToKnowledge":"Manage Knowledge Base","goToModels":"Configure Models","goToSettings":"System Settings","cores":"cores","memory":"Memory","tokensUsed":"Total Tokens","tasksTotal":"Total Tasks","successRate":"Success Rate","topModel":"Most Used Model","taskTypes":"Task Types","calls":"calls"},"knowledge":{"title":"Knowledge Base","description":"Manage local files and knowledge base index","manageTitle":"KB Management","manageDesc":"View knowledge base statistics, categories, and features","stats":"Statistics","files":"File Management","settings":"KB Settings","totalFiles":"Total Files","totalChunks":"Total Chunks","totalSize":"Total Size","lastIndexed":"Last Indexed","categories":"File Categories","fileCount":"File Count","search":"Search Files","searchPlaceholder":"Search by filename or content...","filterCategory":"Filter Category","allCategories":"All Types","upload":"Upload File","uploadHint":"Click or drag to upload (PDF, Word, Excel, images, code, etc.)","uploading":"Uploading...","reindex":"Reindex","reindexing":"Reindexing...","delete":"Delete","deleteConfirm":"Are you sure you want to delete this file? This action cannot be undone.","fileList":"File List","fileName":"File Name","fileSize":"Size","fileCategory":"Category","fileDate":"Modified","noFiles":"No files yet. Upload files to get started.","loadError":"Failed to load file list","emptySearch":"No matching files found","ignoreRules":"Ignore Rules","ignoreHint":"One glob pattern per line. Matching files will be skipped.","saveIgnore":"Save Rules","duplicates":"Duplicate Files","noDuplicates":"No duplicate files found","duplicatesFound":"Found {count} duplicate groups","features":"Feature Status","featureName":"Feature","featureDesc":"Description","featureValue":"Implementation","featureVectorStoreDesc":"Vector database for storing document embeddings","featureEmbeddingDesc":"Text embedding model for converting text to vectors","featureDedup":"Dedup Engine","featureDedupDesc":"Detects and removes duplicate/similar documents","featureChunker":"Chunker","featureChunkerDesc":"Splits documents into retrievable semantic chunks","globalSearch":"Global Search","projectSearch":"Project Search","autoIndex":"Auto Index","enabled":"Enabled","disabled":"Disabled"},"models":{"title":"Model Configuration","description":"Manage LLM models and tier assignments","modelList":"Model List","addModel":"Add Model","editModel":"Edit Model","providerName":"Provider Name","modelName":"Model Name","apiKey":"API Key","baseUrl":"Base URL","protocol":"Protocol","testConnection":"Test Connection","testing":"Testing...","connected":"Connected","connectionFailed":"Connection Failed","noProviders":"No models yet. Add one to get started.","modelTiers":"Model Tier Assignment","tierReader":"Reader (Read-only)","tierReaderDesc":"Handles low-risk, read-only, and cost-sensitive work such as reading files, searching the knowledge base, text search, and context organization. Prefer fast, inexpensive models with stable long-context support.","tierReasoning":"Reasoning (Analysis)","tierReasoningDesc":"Handles deeper analysis, planning, code understanding, and multi-step reasoning. Prefer models with stronger reasoning quality and reliability.","tierAction":"Action (Write/Execute)","tierActionDesc":"Handles side-effect operations such as writing files, changing code, running commands, and calling external tools. Prefer reliable models with strong instruction-following and verified behavior.","activeModel":"Active Model","deleteProvider":"Delete","deleteProviderConfirm":"Are you sure you want to delete this model and all its configs?","modelNamePlaceholder":"e.g. gpt-4o / deepseek-chat","selectModelPlaceholder":"No model selected","apiKeyEditHint":"Configured keys are shown as a masked value. Focus the field to enter a new key; the mask cannot be copied. Leave empty or keep the mask to avoid changes.","apiKeyEditPlaceholder":"Enter a new API key, or leave empty to keep current","save":"Save","cancel":"Cancel"},"context":{"title":"Context Engineering","longTermDesc":"Persistent context from memory store (cross-session)","shortTermDesc":"Short-term context from recent session logs","longTermSource":"Source: ~/.customize-agent/memory.db (Memory Store)","shortTermSource":"Source: ~/.customize-agent/logs/ (Session Logs)","importance":"Importance","content":"Content","tags":"Tags","source":"Source","sourceHint":"Optional additional source/context description","updatedAt":"Updated"},"prompt":{"title":"Prompt Management","description":"Manage CUSTOMIZE.md system prompt files per project","filePath":"File Path","lastModified":"Last Modified","hasFile":"Configured","noFile":"Not Configured","noProjects":"No projects found. Initialize a Customize Agent project first."},"settings":{"title":"System Settings","description":"Manage language, theme, and other preferences","language":"Language","languageDesc":"Interface display language","theme":"Theme","themeDesc":"Light / Dark mode","light":"Light","dark":"Dark","system":"System","about":"About","version":"Version","port":"Service Port"},"common":{"save":"Save","cancel":"Cancel","confirm":"Confirm","delete":"Delete","edit":"Edit","add":"Add","search":"Search","loading":"Loading...","error":"Something went wrong","success":"Success","retry":"Retry","close":"Close","back":"Back","more":"More","noData":"No data","bytes":"bytes","kb":"KB","mb":"MB","gb":"GB","unknown":"Unknown","never":"Never"}}')},66285:()=>{},93065:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{B:()=>m});var e=c(8732),f=c(82015),g=c(21202),h=c(9328),i=c.n(h),j=c(94487),k=c(68329),l=a([j]);j=(l.then?(await l)():l)[0];let n=[{href:"/overview",icon:k.HxJ,labelKey:"nav.overview"},{icon:k.WmV,labelKey:"nav.knowledge",children:[{href:"/knowledge/manage",icon:k.BmN,labelKey:"nav.knowledgeManage"},{href:"/knowledge/files",icon:k.iUU,labelKey:"nav.fileManagement"},{href:"/knowledge/search",icon:k.vji,labelKey:"nav.knowledgeSearch"}]},{icon:k.jy9,labelKey:"nav.contextEngineering",children:[{href:"/context/long-term",icon:k.WmV,labelKey:"nav.longTermContext"},{href:"/context/short-term",icon:k.WmV,labelKey:"nav.shortTermContext"}]},{href:"/models",icon:k.fX,labelKey:"nav.models"},{href:"/prompt",icon:k.vEG,labelKey:"nav.promptManagement"},{href:"/settings",icon:k.wB_,labelKey:"nav.settings"}];function m(){let a=(0,g.usePathname)(),b=(0,j.Vr)(),c=(0,f.useMemo)(()=>{let b={};for(let c of n)c.children?.some(b=>a===b.href||a.startsWith(b.href+"/"))&&(b[c.labelKey]=!0);return b},[a]),[d,h]=(0,f.useState)({}),[l,m]=(0,f.useState)(!1);return(0,e.jsxs)("aside",{className:`sidebar${l?" sidebarCollapsedSelf":""}`,children:[(0,e.jsx)(i(),{href:"/overview",prefetch:!1,children:(0,e.jsx)("div",{className:"sidebarLogo",children:(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"sidebarLogoTitle",children:(0,e.jsx)("span",{className:"logoGradient",children:b("app.title")})}),(0,e.jsx)("div",{className:"sidebarLogoSub",children:b("app.subtitle")})]})})}),(0,e.jsx)("button",{className:"sidebarCollapseBtn",onClick:()=>m(a=>!a),"aria-label":l?"展开侧边栏":"收起侧边栏",children:l?(0,e.jsx)(k.wdi,{size:16}):(0,e.jsx)(k.ues,{size:16})}),(0,e.jsx)("nav",{className:"sidebarNav",children:n.map(f=>{if(f.children){let g=d[f.labelKey]??c[f.labelKey]??!1;return(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{className:"sidebarItem sidebarParent",onClick:()=>{var a;return a=f.labelKey,void h(b=>({...b,[a]:!b[a]}))},children:[(0,e.jsx)(f.icon,{size:18}),(0,e.jsx)("span",{children:b(f.labelKey)}),(0,e.jsx)("span",{className:"sidebarChevron",children:g?(0,e.jsx)(k.yQN,{size:14}):(0,e.jsx)(k.c_$,{size:14})})]}),g&&!l&&(0,e.jsx)("div",{className:"sidebarSubmenu",children:f.children.map(c=>{let d=a===c.href||a.startsWith(c.href+"/");return(0,e.jsx)(i(),{href:c.href,prefetch:!1,children:(0,e.jsxs)("div",{className:`sidebarItem sidebarSubItem${d?" sidebarItemActive":""}`,children:[(0,e.jsx)(c.icon,{size:16}),(0,e.jsx)("span",{children:b(c.labelKey)})]})},c.href)})})]},f.labelKey)}let g=a===f.href||a.startsWith(f.href+"/");return(0,e.jsx)(i(),{href:f.href,prefetch:!1,children:(0,e.jsxs)("div",{className:`sidebarItem${g?" sidebarItemActive":""}`,children:[(0,e.jsx)(f.icon,{size:18}),(0,e.jsx)("span",{children:b(f.labelKey)})]})},f.href)})})]})}d()}catch(a){d(a)}})},94487:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{PE:()=>r,Vr:()=>p,x_:()=>o});var e=c(8732),f=c(82015),g=c(57312),h=c(60056),i=c(4823),j=c(93065),k=c(34924),l=c(13484),m=c(54506),n=a([g,j,k]);[g,j,k]=n.then?(await n)():n;let s=(0,f.createContext)(null);function o(){let a=(0,f.useContext)(s);if(!a)throw Error("useAppLocale must be used inside Layout");return a}function p(a){let{messages:b}=o();return(0,f.useCallback)(c=>(function(a,b){let c=b.split(".").reduce((a,b)=>{if(a&&"object"==typeof a&&b in a)return a[b]},a);return"string"==typeof c?c:b})(b,a?`${a}.${c}`:c),[b,a])}let t={"zh-CN":l,"en-US":m};function q({children:a}){let{resolvedTheme:b}=(0,g.useTheme)(),[c,d]=(0,f.useState)(!1),[l,m]=(0,f.useState)("zh-CN"),n="dark"===b,o=t[l]??t["zh-CN"],p=(0,f.useCallback)(a=>{document.cookie=`NEXT_LOCALE=${a};path=/;max-age=31536000;samesite=lax`,m(a)},[]),q=(0,f.useMemo)(()=>({locale:l,setLocale:p,messages:o}),[l,p,o]),r=(0,f.useMemo)(()=>(0,i.D)(n),[n]);return c?(0,e.jsx)(s.Provider,{value:q,children:(0,e.jsx)(h.sG,{theme:r,children:(0,e.jsxs)(h.qw,{children:[(0,e.jsx)(j.B,{}),(0,e.jsxs)("div",{className:"mainContent",children:[(0,e.jsx)(k.Y,{}),(0,e.jsx)("main",{className:"mainInner",children:a})]})]})})}):(0,e.jsx)("div",{className:"appShellPlaceholder"})}function r({children:a}){return(0,e.jsx)(g.ThemeProvider,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,children:(0,e.jsx)(q,{children:a})})}d()}catch(a){d(a)}})},97237:()=>{}};
1
+ exports.id=204,exports.ids=[204],exports.modules={4823:(a,b,c)=>{"use strict";c.d(b,{D:()=>e});var d=c(60056);function e(a){return{algorithm:a?d.w4.darkAlgorithm:d.w4.defaultAlgorithm,token:{colorPrimary:a?"#0a84ff":"#0071e3",colorInfo:a?"#64d2ff":"#30b0c7",colorSuccess:a?"#30d158":"#34c759",colorWarning:a?"#ff9f0a":"#ff9500",colorError:a?"#ff453a":"#ff3b30",colorBgBase:a?"#000000":"#f5f5f7",colorBgContainer:a?"rgba(28,28,30,0.78)":"rgba(255,255,255,0.78)",colorBgElevated:a?"rgba(28,28,30,0.96)":"rgba(255,255,255,0.96)",colorFillAlter:a?"rgba(44,44,46,0.62)":"rgba(242,242,247,0.72)",colorBorder:a?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.07)",colorSplit:a?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.055)",colorText:a?"#f5f5f7":"#1d1d1f",colorTextSecondary:a?"#98989d":"#6e6e73",colorTextTertiary:a?"#6e6e73":"#a1a1a6",fontFamily:"var(--fontSans)",fontSize:14,borderRadius:13,borderRadiusLG:20,borderRadiusSM:9,controlHeight:36,controlHeightLG:42,controlHeightSM:30,lineWidth:1,boxShadow:a?"0 10px 28px rgba(0,0,0,0.3)":"0 8px 24px rgba(0,0,0,0.045)",boxShadowSecondary:a?"0 8px 22px rgba(0,0,0,0.26)":"0 6px 18px rgba(0,0,0,0.035)",motionDurationMid:"0.16s",motionEaseInOut:"cubic-bezier(0.16, 1, 0.3, 1)"},components:{Card:{borderRadiusLG:20,paddingLG:16,headerFontSize:14,headerFontSizeSM:13},Button:{borderRadius:13,borderRadiusLG:16,borderRadiusSM:9,fontWeight:650,primaryShadow:"var(--shadowButton)"},Input:{borderRadius:13,controlHeight:36,activeShadow:"var(--shadowFocus)"},InputNumber:{borderRadius:13,controlHeight:36},Select:{borderRadius:13,controlHeight:36},Segmented:{borderRadius:13,borderRadiusSM:11},Modal:{borderRadiusLG:20,titleFontSize:18,fontWeightStrong:720},Tag:{borderRadiusSM:100,defaultBg:a?"rgba(255,255,255,0.07)":"rgba(0,113,227,0.055)"},Table:{borderRadiusLG:18,headerBg:a?"rgba(255,255,255,0.04)":"rgba(0,113,227,0.032)",headerColor:"var(--colorTextSecondary)",headerSplitColor:"transparent",headerBorderRadius:13},Progress:{defaultColor:"var(--colorBrand)"},Spin:{dotSize:28,dotSizeLG:40},Upload:{borderRadiusLG:20}}}}},8204:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.r(b),c.d(b,{default:()=>h});var e=c(8732),f=c(94487);c(66285),c(97237);var g=a([f]);function h({Component:a,pageProps:b}){return(0,e.jsx)(f.PE,{children:(0,e.jsx)(a,{...b})})}f=(g.then?(await g)():g)[0],d()}catch(a){d(a)}})},13484:a=>{"use strict";a.exports=JSON.parse('{"app":{"title":"Customize Agent","subtitle":"管理控制台"},"nav":{"overview":"总览","knowledge":"知识库","knowledgeManage":"知识库管理","fileManagement":"文件管理","knowledgeSearch":"知识库搜索","models":"模型配置","settings":"设置","contextEngineering":"上下文工程","longTermContext":"长期上下文","shortTermContext":"短期上下文","promptManagement":"提示词管理"},"overview":{"title":"系统总览","description":"查看 Customize Agent 运行状态与关键指标","status":"服务状态","statusRunning":"运行中","statusError":"异常","knowledgeBase":"知识库","modelConfig":"模型配置","filesCount":"文件总数","chunksCount":"分块总数","storageSize":"存储空间","providersCount":"已配置模型","quickActions":"快捷操作","goToKnowledge":"管理知识库","goToModels":"配置模型","goToSettings":"系统设置","cores":"核","memory":"内存","tokensUsed":"累计 Tokens","tasksTotal":"总任务数","successRate":"成功率","topModel":"调用最多模型","taskTypes":"任务类型","calls":"次调用"},"knowledge":{"title":"知识库管理","description":"管理本地文件和知识库索引","manageTitle":"知识库管理","manageDesc":"查看知识库统计、分类和功能状态","stats":"统计概览","files":"文件管理","settings":"知识库设置","totalFiles":"文件总数","totalChunks":"分块总数","totalSize":"存储大小","lastIndexed":"上次索引","categories":"文件分类","fileCount":"文件数量","search":"搜索文件","searchPlaceholder":"输入文件名或内容关键词...","filterCategory":"筛选分类","allCategories":"全部类型","upload":"上传文件","uploadHint":"点击或拖拽上传 (PDF, Word, Excel, 图片, 代码等)","uploading":"上传中...","reindex":"重新索引","reindexing":"正在重新索引...","delete":"删除","deleteConfirm":"确定要删除该文件吗?此操作不可恢复。","fileList":"文件列表","fileName":"文件名","fileSize":"大小","fileCategory":"分类","fileDate":"修改日期","noFiles":"暂无文件,请上传文件开始使用","loadError":"加载文件列表失败","emptySearch":"未找到匹配的文件","ignoreRules":"忽略规则","ignoreHint":"每行一个 glob 模式,匹配的文件将被跳过","saveIgnore":"保存规则","duplicates":"重复文件","noDuplicates":"未发现重复文件","duplicatesFound":"发现 {count} 组重复文件","features":"功能状态","featureName":"功能","featureDesc":"说明","featureValue":"实现","featureVectorStoreDesc":"向量数据库,存储文档向量索引","featureEmbeddingDesc":"文本嵌入模型,将文本转换为向量","featureDedup":"去重引擎","featureDedupDesc":"检测并移除重复/相似文档","featureChunker":"分块器","featureChunkerDesc":"将文档拆分为可检索的语义块","globalSearch":"全局搜索","projectSearch":"项目搜索","autoIndex":"自动索引","enabled":"已启用","disabled":"已禁用"},"models":{"title":"模型配置","description":"管理 LLM 模型与层级分配","modelList":"Model 列表","addModel":"添加模型","editModel":"编辑模型","providerName":"Provider 名称","modelName":"模型名称","apiKey":"API Key","baseUrl":"Base URL","protocol":"请求协议","testConnection":"测试连接","testing":"测试中...","connected":"已连接","connectionFailed":"连接失败","noProviders":"暂无模型,请添加一个","modelTiers":"模型层级分配","tierReader":"Reader(只读)","tierReaderDesc":"处理低风险、只读和成本敏感任务,例如读取文件、检索知识库、搜索文本、整理上下文。建议选择速度快、价格低、长上下文能力稳定的模型。","tierReasoning":"Reasoning(推理)","tierReasoningDesc":"处理需要深入分析、规划、代码理解和多步骤推理的任务。建议选择推理能力强、稳定性高的模型,必要时可使用更高阶模型。","tierAction":"Action(操作)","tierActionDesc":"处理会产生副作用的任务,例如写文件、修改代码、执行命令、调用外部工具。建议选择可靠、遵循指令能力强且经过验证的模型。","activeModel":"当前模型","deleteProvider":"删除","deleteProviderConfirm":"确定要删除此模型及其所有配置吗?","modelNamePlaceholder":"例如: gpt-4o / deepseek-chat","selectModelPlaceholder":"暂不配置","apiKeyEditHint":"已配置的 Key 会以掩码回显,聚焦后可输入新 Key;掩码不可复制,留空或保持掩码则不修改。","apiKeyEditPlaceholder":"输入新的 API Key,留空保持不变","save":"保存","cancel":"取消"},"context":{"title":"上下文工程管理","longTermDesc":"来自记忆库的持久化上下文(跨会话保留)","shortTermDesc":"来自最近会话日志的短期上下文","longTermSource":"数据来源: ~/.customize-agent/memory.db(记忆库)","shortTermSource":"数据来源: ~/.customize-agent/logs/(会话日志)","importance":"重要性","content":"内容","tags":"标签","source":"来源","sourceHint":"可选,额外的来源/上下文说明","updatedAt":"更新时间"},"prompt":{"title":"提示词管理","description":"管理各项目的 CUSTOMIZE.md 系统提示词文件","filePath":"文件路径","lastModified":"最后修改","hasFile":"已配置","noFile":"未配置","noProjects":"暂无项目,请先初始化 Customize Agent 项目","currentDirectory":"当前执行目录","createCustom":"创建自定义提示词","customPrompt":"自定义","projectPrompt":"项目","selected":"已选用","boundProject":"绑定项目","bindProject":"绑定为项目提示词","customName":"提示词名称","content":"提示词内容","deleteConfirm":"确认删除该记录及其提示词文件?"},"settings":{"title":"系统设置","description":"管理语言、主题等偏好","language":"语言","languageDesc":"界面显示语言","theme":"主题","themeDesc":"浅色 / 深色模式","light":"浅色","dark":"深色","system":"跟随系统","about":"关于","version":"版本","port":"服务端口"},"common":{"save":"保存","cancel":"取消","confirm":"确认","delete":"删除","edit":"编辑","add":"添加","search":"搜索","loading":"加载中...","error":"出错了","success":"操作成功","retry":"重试","close":"关闭","back":"返回","more":"更多","noData":"暂无数据","bytes":"字节","kb":"KB","mb":"MB","gb":"GB","unknown":"未知","never":"从未"}}')},34924:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{Y:()=>j});var e=c(8732),f=c(57312),g=c(94487),h=c(68329),i=a([f,g]);function j(){let{resolvedTheme:a,setTheme:b}=(0,f.useTheme)(),{locale:c,setLocale:d}=(0,g.x_)(),i=(0,g.Vr)("settings"),j="dark"===a;return(0,e.jsxs)("header",{className:"topbar",children:[(0,e.jsx)("div",{className:"flex-1"}),(0,e.jsxs)("button",{onClick:()=>b(j?"light":"dark"),className:"topbarBtn",children:[j?(0,e.jsx)(h.bd5,{size:14}):(0,e.jsx)(h.AX$,{size:14}),(0,e.jsx)("span",{children:i(j?"light":"dark")})]}),(0,e.jsxs)("button",{onClick:()=>{d("zh-CN"===c?"en-US":"zh-CN")},className:"topbarBtn",children:[(0,e.jsx)(h.ATU,{size:14}),(0,e.jsx)("span",{children:"zh-CN"===c?"English":"中文"})]})]})}[f,g]=i.then?(await i)():i,d()}catch(a){d(a)}})},54506:a=>{"use strict";a.exports=JSON.parse('{"app":{"title":"Customize Agent","subtitle":"Admin Console"},"nav":{"overview":"Overview","knowledge":"Knowledge Base","knowledgeManage":"KB Management","fileManagement":"File Management","knowledgeSearch":"KB Search","models":"Model Config","settings":"Settings","contextEngineering":"Context Engineering","longTermContext":"Long-term Context","shortTermContext":"Short-term Context","promptManagement":"Prompt Management"},"overview":{"title":"System Overview","description":"Monitor Customize Agent status and key metrics","status":"Service Status","statusRunning":"Running","statusError":"Error","knowledgeBase":"Knowledge Base","modelConfig":"Model Config","filesCount":"Total Files","chunksCount":"Total Chunks","storageSize":"Storage Size","providersCount":"Models","quickActions":"Quick Actions","goToKnowledge":"Manage Knowledge Base","goToModels":"Configure Models","goToSettings":"System Settings","cores":"cores","memory":"Memory","tokensUsed":"Total Tokens","tasksTotal":"Total Tasks","successRate":"Success Rate","topModel":"Most Used Model","taskTypes":"Task Types","calls":"calls"},"knowledge":{"title":"Knowledge Base","description":"Manage local files and knowledge base index","manageTitle":"KB Management","manageDesc":"View knowledge base statistics, categories, and features","stats":"Statistics","files":"File Management","settings":"KB Settings","totalFiles":"Total Files","totalChunks":"Total Chunks","totalSize":"Total Size","lastIndexed":"Last Indexed","categories":"File Categories","fileCount":"File Count","search":"Search Files","searchPlaceholder":"Search by filename or content...","filterCategory":"Filter Category","allCategories":"All Types","upload":"Upload File","uploadHint":"Click or drag to upload (PDF, Word, Excel, images, code, etc.)","uploading":"Uploading...","reindex":"Reindex","reindexing":"Reindexing...","delete":"Delete","deleteConfirm":"Are you sure you want to delete this file? This action cannot be undone.","fileList":"File List","fileName":"File Name","fileSize":"Size","fileCategory":"Category","fileDate":"Modified","noFiles":"No files yet. Upload files to get started.","loadError":"Failed to load file list","emptySearch":"No matching files found","ignoreRules":"Ignore Rules","ignoreHint":"One glob pattern per line. Matching files will be skipped.","saveIgnore":"Save Rules","duplicates":"Duplicate Files","noDuplicates":"No duplicate files found","duplicatesFound":"Found {count} duplicate groups","features":"Feature Status","featureName":"Feature","featureDesc":"Description","featureValue":"Implementation","featureVectorStoreDesc":"Vector database for storing document embeddings","featureEmbeddingDesc":"Text embedding model for converting text to vectors","featureDedup":"Dedup Engine","featureDedupDesc":"Detects and removes duplicate/similar documents","featureChunker":"Chunker","featureChunkerDesc":"Splits documents into retrievable semantic chunks","globalSearch":"Global Search","projectSearch":"Project Search","autoIndex":"Auto Index","enabled":"Enabled","disabled":"Disabled"},"models":{"title":"Model Configuration","description":"Manage LLM models and tier assignments","modelList":"Model List","addModel":"Add Model","editModel":"Edit Model","providerName":"Provider Name","modelName":"Model Name","apiKey":"API Key","baseUrl":"Base URL","protocol":"Protocol","testConnection":"Test Connection","testing":"Testing...","connected":"Connected","connectionFailed":"Connection Failed","noProviders":"No models yet. Add one to get started.","modelTiers":"Model Tier Assignment","tierReader":"Reader (Read-only)","tierReaderDesc":"Handles low-risk, read-only, and cost-sensitive work such as reading files, searching the knowledge base, text search, and context organization. Prefer fast, inexpensive models with stable long-context support.","tierReasoning":"Reasoning (Analysis)","tierReasoningDesc":"Handles deeper analysis, planning, code understanding, and multi-step reasoning. Prefer models with stronger reasoning quality and reliability.","tierAction":"Action (Write/Execute)","tierActionDesc":"Handles side-effect operations such as writing files, changing code, running commands, and calling external tools. Prefer reliable models with strong instruction-following and verified behavior.","activeModel":"Active Model","deleteProvider":"Delete","deleteProviderConfirm":"Are you sure you want to delete this model and all its configs?","modelNamePlaceholder":"e.g. gpt-4o / deepseek-chat","selectModelPlaceholder":"No model selected","apiKeyEditHint":"Configured keys are shown as a masked value. Focus the field to enter a new key; the mask cannot be copied. Leave empty or keep the mask to avoid changes.","apiKeyEditPlaceholder":"Enter a new API key, or leave empty to keep current","save":"Save","cancel":"Cancel"},"context":{"title":"Context Engineering","longTermDesc":"Persistent context from memory store (cross-session)","shortTermDesc":"Short-term context from recent session logs","longTermSource":"Source: ~/.customize-agent/memory.db (Memory Store)","shortTermSource":"Source: ~/.customize-agent/logs/ (Session Logs)","importance":"Importance","content":"Content","tags":"Tags","source":"Source","sourceHint":"Optional additional source/context description","updatedAt":"Updated"},"prompt":{"title":"Prompt Management","description":"Manage CUSTOMIZE.md system prompt files per project","filePath":"File Path","lastModified":"Last Modified","hasFile":"Configured","noFile":"Not Configured","noProjects":"No projects found. Initialize a Customize Agent project first.","currentDirectory":"Current Directory","createCustom":"Create Custom Prompt","customPrompt":"Custom","projectPrompt":"Project","selected":"Selected","boundProject":"Bound Project","bindProject":"Bind to Project","customName":"Prompt Name","content":"Prompt Content","deleteConfirm":"Delete this record and its prompt file?"},"settings":{"title":"System Settings","description":"Manage language, theme, and other preferences","language":"Language","languageDesc":"Interface display language","theme":"Theme","themeDesc":"Light / Dark mode","light":"Light","dark":"Dark","system":"System","about":"About","version":"Version","port":"Service Port"},"common":{"save":"Save","cancel":"Cancel","confirm":"Confirm","delete":"Delete","edit":"Edit","add":"Add","search":"Search","loading":"Loading...","error":"Something went wrong","success":"Success","retry":"Retry","close":"Close","back":"Back","more":"More","noData":"No data","bytes":"bytes","kb":"KB","mb":"MB","gb":"GB","unknown":"Unknown","never":"Never"}}')},66285:()=>{},93065:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{B:()=>m});var e=c(8732),f=c(82015),g=c(21202),h=c(9328),i=c.n(h),j=c(94487),k=c(68329),l=a([j]);j=(l.then?(await l)():l)[0];let n=[{href:"/overview",icon:k.HxJ,labelKey:"nav.overview"},{icon:k.WmV,labelKey:"nav.knowledge",children:[{href:"/knowledge/manage",icon:k.BmN,labelKey:"nav.knowledgeManage"},{href:"/knowledge/files",icon:k.iUU,labelKey:"nav.fileManagement"},{href:"/knowledge/search",icon:k.vji,labelKey:"nav.knowledgeSearch"}]},{icon:k.jy9,labelKey:"nav.contextEngineering",children:[{href:"/context/long-term",icon:k.WmV,labelKey:"nav.longTermContext"},{href:"/context/short-term",icon:k.WmV,labelKey:"nav.shortTermContext"}]},{href:"/models",icon:k.fX,labelKey:"nav.models"},{href:"/prompt",icon:k.vEG,labelKey:"nav.promptManagement"},{href:"/settings",icon:k.wB_,labelKey:"nav.settings"}];function m(){let a=(0,g.usePathname)(),b=(0,j.Vr)(),c=(0,f.useMemo)(()=>{let b={};for(let c of n)c.children?.some(b=>a===b.href||a.startsWith(b.href+"/"))&&(b[c.labelKey]=!0);return b},[a]),[d,h]=(0,f.useState)({}),[l,m]=(0,f.useState)(!1);return(0,e.jsxs)("aside",{className:`sidebar${l?" sidebarCollapsedSelf":""}`,children:[(0,e.jsx)(i(),{href:"/overview",prefetch:!1,children:(0,e.jsx)("div",{className:"sidebarLogo",children:(0,e.jsx)("div",{children:(0,e.jsx)("div",{className:"sidebarLogoTitle",children:(0,e.jsx)("span",{className:"logoGradient",children:b("app.title")})})})})}),(0,e.jsx)("button",{className:"sidebarCollapseBtn",onClick:()=>m(a=>!a),"aria-label":l?"展开侧边栏":"收起侧边栏",children:l?(0,e.jsx)(k.wdi,{size:16}):(0,e.jsx)(k.ues,{size:16})}),(0,e.jsx)("nav",{className:"sidebarNav",children:n.map(f=>{if(f.children){let g=d[f.labelKey]??c[f.labelKey]??!1;return(0,e.jsxs)("div",{children:[(0,e.jsxs)("div",{className:"sidebarItem sidebarParent",onClick:()=>{var a;return a=f.labelKey,void h(b=>({...b,[a]:!b[a]}))},children:[(0,e.jsx)(f.icon,{size:18}),(0,e.jsx)("span",{children:b(f.labelKey)}),(0,e.jsx)("span",{className:"sidebarChevron",children:g?(0,e.jsx)(k.yQN,{size:14}):(0,e.jsx)(k.c_$,{size:14})})]}),g&&!l&&(0,e.jsx)("div",{className:"sidebarSubmenu",children:f.children.map(c=>{let d=a===c.href||a.startsWith(c.href+"/");return(0,e.jsx)(i(),{href:c.href,prefetch:!1,children:(0,e.jsxs)("div",{className:`sidebarItem sidebarSubItem${d?" sidebarItemActive":""}`,children:[(0,e.jsx)(c.icon,{size:16}),(0,e.jsx)("span",{children:b(c.labelKey)})]})},c.href)})})]},f.labelKey)}let g=a===f.href||a.startsWith(f.href+"/");return(0,e.jsx)(i(),{href:f.href,prefetch:!1,children:(0,e.jsxs)("div",{className:`sidebarItem${g?" sidebarItemActive":""}`,children:[(0,e.jsx)(f.icon,{size:18}),(0,e.jsx)("span",{children:b(f.labelKey)})]})},f.href)})})]})}d()}catch(a){d(a)}})},94487:(a,b,c)=>{"use strict";c.a(a,async(a,d)=>{try{c.d(b,{PE:()=>r,Vr:()=>p,x_:()=>o});var e=c(8732),f=c(82015),g=c(57312),h=c(60056),i=c(4823),j=c(93065),k=c(34924),l=c(13484),m=c(54506),n=a([g,j,k]);[g,j,k]=n.then?(await n)():n;let s=(0,f.createContext)(null);function o(){let a=(0,f.useContext)(s);if(!a)throw Error("useAppLocale must be used inside Layout");return a}function p(a){let{messages:b}=o();return(0,f.useCallback)(c=>(function(a,b){let c=b.split(".").reduce((a,b)=>{if(a&&"object"==typeof a&&b in a)return a[b]},a);return"string"==typeof c?c:b})(b,a?`${a}.${c}`:c),[b,a])}let t={"zh-CN":l,"en-US":m};function q({children:a}){let{resolvedTheme:b}=(0,g.useTheme)(),[c,d]=(0,f.useState)(!1),[l,m]=(0,f.useState)("zh-CN"),n="dark"===b,o=t[l]??t["zh-CN"],p=(0,f.useCallback)(a=>{document.cookie=`NEXT_LOCALE=${a};path=/;max-age=31536000;samesite=lax`,m(a)},[]),q=(0,f.useMemo)(()=>({locale:l,setLocale:p,messages:o}),[l,p,o]),r=(0,f.useMemo)(()=>(0,i.D)(n),[n]);return c?(0,e.jsx)(s.Provider,{value:q,children:(0,e.jsx)(h.sG,{theme:r,children:(0,e.jsxs)(h.qw,{children:[(0,e.jsx)(j.B,{}),(0,e.jsxs)("div",{className:"mainContent",children:[(0,e.jsx)(k.Y,{}),(0,e.jsx)("main",{className:"mainInner",children:a})]})]})})}):(0,e.jsx)("div",{className:"appShellPlaceholder"})}function r({children:a}){return(0,e.jsx)(g.ThemeProvider,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,children:(0,e.jsx)(q,{children:a})})}d()}catch(a){d(a)}})},97237:()=>{}};
@@ -1 +1 @@
1
- globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:[],rootMainFilesTree:{},pages:{"/":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/pages/index-505bd438c95ec0e8.js"],"/_app":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/css/5237c5e3358f3282.css","static/chunks/pages/_app-52fa1fa291b60bee.js"],"/_error":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/pages/_error-18decb9cd478883d.js"],"/context/long-term":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/chunks/544-fba84f8cd64c79ed.js","static/chunks/425-feceb6e39a2b417d.js","static/chunks/576-642eb5cede35ba19.js","static/chunks/227-eb562f29334fcb34.js","static/chunks/740-450a37b8ca6fe1c6.js","static/chunks/584-3a8c7b39c2a3037a.js","static/chunks/492-5245cad2f8d60d8d.js","static/chunks/455-d2aca155a3032ee0.js","static/chunks/257-c71f52e4adae1e38.js","static/chunks/pages/context/long-term-8c5fe7c5cb8f3d6d.js"],"/context/short-term":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/chunks/544-fba84f8cd64c79ed.js","static/chunks/425-feceb6e39a2b417d.js","static/chunks/576-642eb5cede35ba19.js","static/chunks/227-eb562f29334fcb34.js","static/chunks/740-450a37b8ca6fe1c6.js","static/chunks/584-3a8c7b39c2a3037a.js","static/chunks/492-5245cad2f8d60d8d.js","static/chunks/455-d2aca155a3032ee0.js","static/chunks/257-c71f52e4adae1e38.js","static/chunks/pages/context/short-term-4b1ba522c259bc7b.js"],"/knowledge":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/pages/knowledge-b3ef77e79801287c.js"],"/knowledge/file-detail":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/chunks/544-fba84f8cd64c79ed.js","static/chunks/425-feceb6e39a2b417d.js","static/chunks/576-642eb5cede35ba19.js","static/chunks/227-eb562f29334fcb34.js","static/chunks/740-450a37b8ca6fe1c6.js","static/chunks/584-3a8c7b39c2a3037a.js","static/chunks/840-717f0706d50fcb82.js","static/chunks/517-c6a8c0e680dafa46.js","static/css/9d4b5a2db56e7aa7.css","static/chunks/pages/knowledge/file-detail-37573640ecdd5c11.js"],"/knowledge/files":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/chunks/544-fba84f8cd64c79ed.js","static/chunks/425-feceb6e39a2b417d.js","static/chunks/576-642eb5cede35ba19.js","static/chunks/227-eb562f29334fcb34.js","static/chunks/740-450a37b8ca6fe1c6.js","static/chunks/584-3a8c7b39c2a3037a.js","static/chunks/15-fed70feebb38d5ae.js","static/chunks/252-a9d7774c3009dcda.js","static/css/9d4b5a2db56e7aa7.css","static/chunks/pages/knowledge/files-a3104d6d309aefdd.js"],"/knowledge/manage":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/chunks/544-fba84f8cd64c79ed.js","static/chunks/425-feceb6e39a2b417d.js","static/chunks/227-eb562f29334fcb34.js","static/chunks/740-450a37b8ca6fe1c6.js","static/chunks/584-3a8c7b39c2a3037a.js","static/chunks/958-0f3a960f8ebe421b.js","static/chunks/891-fde3ad128ccf30dc.js","static/chunks/pages/knowledge/manage-36d4824b96f8150f.js"],"/knowledge/search":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/chunks/544-fba84f8cd64c79ed.js","static/chunks/425-feceb6e39a2b417d.js","static/chunks/576-642eb5cede35ba19.js","static/chunks/227-eb562f29334fcb34.js","static/chunks/840-717f0706d50fcb82.js","static/chunks/992-6e67409e97fe9b6b.js","static/css/9d4b5a2db56e7aa7.css","static/chunks/pages/knowledge/search-33f4f2a3dc318802.js"],"/models":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/chunks/544-fba84f8cd64c79ed.js","static/chunks/425-feceb6e39a2b417d.js","static/chunks/576-642eb5cede35ba19.js","static/chunks/740-450a37b8ca6fe1c6.js","static/chunks/492-5245cad2f8d60d8d.js","static/chunks/455-d2aca155a3032ee0.js","static/css/031cf1db0e9affb3.css","static/chunks/pages/models-4fbcb0182c8a9476.js"],"/overview":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/chunks/544-fba84f8cd64c79ed.js","static/chunks/227-eb562f29334fcb34.js","static/chunks/15-fed70feebb38d5ae.js","static/chunks/958-0f3a960f8ebe421b.js","static/chunks/pages/overview-d588ba8cc32f615c.js"],"/prompt":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/chunks/544-fba84f8cd64c79ed.js","static/chunks/425-feceb6e39a2b417d.js","static/chunks/576-642eb5cede35ba19.js","static/chunks/492-5245cad2f8d60d8d.js","static/chunks/pages/prompt-490524ba05078205.js"],"/settings":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/css/82b6ddff0ef364fe.css","static/chunks/pages/settings-e6a894618727eec3.js"]},ampFirstPages:[]},globalThis.__BUILD_MANIFEST.lowPriorityFiles=["/static/"+process.env.__NEXT_BUILD_ID+"/_buildManifest.js",,"/static/"+process.env.__NEXT_BUILD_ID+"/_ssgManifest.js"];
1
+ globalThis.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-42372ed130431b0a.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:[],rootMainFilesTree:{},pages:{"/":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/pages/index-505bd438c95ec0e8.js"],"/_app":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/css/578f3811be75310d.css","static/chunks/pages/_app-cf14b47b90a9eb58.js"],"/_error":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/pages/_error-18decb9cd478883d.js"],"/context/long-term":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/chunks/167-0be293a3c58a8577.js","static/chunks/796-db4afcb27cb903b9.js","static/chunks/740-b61ebb053ec9426a.js","static/chunks/576-642eb5cede35ba19.js","static/chunks/700-8a90f86277a335de.js","static/chunks/446-3bb2f94b52176cb1.js","static/chunks/584-ce8dbed7354f3644.js","static/chunks/519-709ba3df6e549125.js","static/chunks/257-c71f52e4adae1e38.js","static/chunks/pages/context/long-term-b431347893a69969.js"],"/context/short-term":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/chunks/167-0be293a3c58a8577.js","static/chunks/796-db4afcb27cb903b9.js","static/chunks/740-b61ebb053ec9426a.js","static/chunks/576-642eb5cede35ba19.js","static/chunks/700-8a90f86277a335de.js","static/chunks/446-3bb2f94b52176cb1.js","static/chunks/584-ce8dbed7354f3644.js","static/chunks/519-709ba3df6e549125.js","static/chunks/257-c71f52e4adae1e38.js","static/chunks/pages/context/short-term-f0c420388a050e28.js"],"/knowledge":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/pages/knowledge-b3ef77e79801287c.js"],"/knowledge/file-detail":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/chunks/167-0be293a3c58a8577.js","static/chunks/796-db4afcb27cb903b9.js","static/chunks/740-b61ebb053ec9426a.js","static/chunks/576-642eb5cede35ba19.js","static/chunks/700-8a90f86277a335de.js","static/chunks/446-3bb2f94b52176cb1.js","static/chunks/584-ce8dbed7354f3644.js","static/chunks/840-717f0706d50fcb82.js","static/chunks/517-c6a8c0e680dafa46.js","static/css/d28c22ed67198de0.css","static/chunks/pages/knowledge/file-detail-328ce1d9c6ce907e.js"],"/knowledge/files":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/chunks/167-0be293a3c58a8577.js","static/chunks/796-db4afcb27cb903b9.js","static/chunks/740-b61ebb053ec9426a.js","static/chunks/576-642eb5cede35ba19.js","static/chunks/700-8a90f86277a335de.js","static/chunks/446-3bb2f94b52176cb1.js","static/chunks/584-ce8dbed7354f3644.js","static/chunks/15-fed70feebb38d5ae.js","static/chunks/252-a9d7774c3009dcda.js","static/css/d28c22ed67198de0.css","static/chunks/pages/knowledge/files-7ce51dd9b261aea2.js"],"/knowledge/manage":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/chunks/167-0be293a3c58a8577.js","static/chunks/796-db4afcb27cb903b9.js","static/chunks/740-b61ebb053ec9426a.js","static/chunks/700-8a90f86277a335de.js","static/chunks/446-3bb2f94b52176cb1.js","static/chunks/584-ce8dbed7354f3644.js","static/chunks/38-e3671099d80db91b.js","static/chunks/pages/knowledge/manage-813a1635240f38df.js"],"/knowledge/search":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/chunks/167-0be293a3c58a8577.js","static/chunks/796-db4afcb27cb903b9.js","static/chunks/576-642eb5cede35ba19.js","static/chunks/700-8a90f86277a335de.js","static/chunks/840-717f0706d50fcb82.js","static/chunks/992-8a06ec9aa4b1e3b3.js","static/css/d28c22ed67198de0.css","static/chunks/pages/knowledge/search-9da46d3cee5b7517.js"],"/models":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/chunks/167-0be293a3c58a8577.js","static/chunks/796-db4afcb27cb903b9.js","static/chunks/740-b61ebb053ec9426a.js","static/chunks/576-642eb5cede35ba19.js","static/chunks/519-709ba3df6e549125.js","static/css/d7ad5d9b207a29f0.css","static/chunks/pages/models-2146abd3aa3da947.js"],"/overview":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/chunks/167-0be293a3c58a8577.js","static/chunks/700-8a90f86277a335de.js","static/chunks/15-fed70feebb38d5ae.js","static/chunks/860-55753e4c8eba4bb3.js","static/chunks/pages/overview-da401b76cd3ec331.js"],"/prompt":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/chunks/167-0be293a3c58a8577.js","static/chunks/796-db4afcb27cb903b9.js","static/chunks/740-b61ebb053ec9426a.js","static/chunks/576-642eb5cede35ba19.js","static/chunks/446-3bb2f94b52176cb1.js","static/chunks/519-709ba3df6e549125.js","static/chunks/pages/prompt-048fe74855c6514b.js"],"/settings":["static/chunks/webpack-77d10b4726f13aa5.js","static/chunks/framework-b5223c1542334872.js","static/chunks/main-1a03005b3754c708.js","static/chunks/260-03f19eaee776f7fa.js","static/css/cbbe2355765ea112.css","static/chunks/pages/settings-4f97b4ec26c324fc.js"]},ampFirstPages:[]},globalThis.__BUILD_MANIFEST.lowPriorityFiles=["/static/"+process.env.__NEXT_BUILD_ID+"/_buildManifest.js",,"/static/"+process.env.__NEXT_BUILD_ID+"/_ssgManifest.js"];
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><link rel="preload" href="/_next/static/css/5237c5e3358f3282.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5237c5e3358f3282.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-77d10b4726f13aa5.js" defer=""></script><script src="/_next/static/chunks/framework-b5223c1542334872.js" defer=""></script><script src="/_next/static/chunks/main-1a03005b3754c708.js" defer=""></script><script src="/_next/static/chunks/pages/_app-52fa1fa291b60bee.js" defer=""></script><script src="/_next/static/chunks/pages/_error-18decb9cd478883d.js" defer=""></script><script src="/_next/static/8dyGaK16zDaZF9URM2xgk/_buildManifest.js" defer=""></script><script src="/_next/static/8dyGaK16zDaZF9URM2xgk/_ssgManifest.js" defer=""></script></head><body><div id="__next"><script>((e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=["light","dark"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y==="class",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n==="system"?c():n;p(y)}catch(n){}})("class","theme","system",null,["light","dark"],null,true,true)</script><div class="appShellPlaceholder"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"8dyGaK16zDaZF9URM2xgk","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=""/><link rel="preload" href="/_next/static/css/578f3811be75310d.css" as="style"/><link rel="stylesheet" href="/_next/static/css/578f3811be75310d.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-77d10b4726f13aa5.js" defer=""></script><script src="/_next/static/chunks/framework-b5223c1542334872.js" defer=""></script><script src="/_next/static/chunks/main-1a03005b3754c708.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cf14b47b90a9eb58.js" defer=""></script><script src="/_next/static/chunks/pages/_error-18decb9cd478883d.js" defer=""></script><script src="/_next/static/HIdBlqc4OSurll-8LjOWl/_buildManifest.js" defer=""></script><script src="/_next/static/HIdBlqc4OSurll-8LjOWl/_ssgManifest.js" defer=""></script></head><body><div id="__next"><script>((e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=["light","dark"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y==="class",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n==="system"?c():n;p(y)}catch(n){}})("class","theme","system",null,["light","dark"],null,true,true)</script><div class="appShellPlaceholder"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"HIdBlqc4OSurll-8LjOWl","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</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=""/><link rel="preload" href="/_next/static/css/5237c5e3358f3282.css" as="style"/><link rel="stylesheet" href="/_next/static/css/5237c5e3358f3282.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-77d10b4726f13aa5.js" defer=""></script><script src="/_next/static/chunks/framework-b5223c1542334872.js" defer=""></script><script src="/_next/static/chunks/main-1a03005b3754c708.js" defer=""></script><script src="/_next/static/chunks/pages/_app-52fa1fa291b60bee.js" defer=""></script><script src="/_next/static/chunks/pages/_error-18decb9cd478883d.js" defer=""></script><script src="/_next/static/8dyGaK16zDaZF9URM2xgk/_buildManifest.js" defer=""></script><script src="/_next/static/8dyGaK16zDaZF9URM2xgk/_ssgManifest.js" defer=""></script></head><body><div id="__next"><script>((e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=["light","dark"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y==="class",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n==="system"?c():n;p(y)}catch(n){}})("class","theme","system",null,["light","dark"],null,true,true)</script><div class="appShellPlaceholder"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"8dyGaK16zDaZF9URM2xgk","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=""/><link rel="preload" href="/_next/static/css/578f3811be75310d.css" as="style"/><link rel="stylesheet" href="/_next/static/css/578f3811be75310d.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-77d10b4726f13aa5.js" defer=""></script><script src="/_next/static/chunks/framework-b5223c1542334872.js" defer=""></script><script src="/_next/static/chunks/main-1a03005b3754c708.js" defer=""></script><script src="/_next/static/chunks/pages/_app-cf14b47b90a9eb58.js" defer=""></script><script src="/_next/static/chunks/pages/_error-18decb9cd478883d.js" defer=""></script><script src="/_next/static/HIdBlqc4OSurll-8LjOWl/_buildManifest.js" defer=""></script><script src="/_next/static/HIdBlqc4OSurll-8LjOWl/_ssgManifest.js" defer=""></script></head><body><div id="__next"><script>((e,i,s,u,m,a,l,h)=>{let d=document.documentElement,w=["light","dark"];function p(n){(Array.isArray(e)?e:[e]).forEach(y=>{let k=y==="class",S=k&&a?m.map(f=>a[f]||f):m;k?(d.classList.remove(...S),d.classList.add(a&&a[n]?a[n]:n)):d.setAttribute(y,n)}),R(n)}function R(n){h&&w.includes(n)&&(d.style.colorScheme=n)}function c(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(u)p(u);else try{let n=localStorage.getItem(i)||s,y=l&&n==="system"?c():n;p(y)}catch(n){}})("class","theme","system",null,["light","dark"],null,true,true)</script><div class="appShellPlaceholder"></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"HIdBlqc4OSurll-8LjOWl","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
@@ -1 +1 @@
1
- "use strict";(()=>{var a={};a.id=266,a.ids=[266],a.modules={2323:(a,b,c)=>{c.d(b,{I:()=>f});var d=c(29008);let e=null;function f(){return e||(e=new d.ConfigStore),e}},29008:a=>{a.exports=require("@customize-agent/runtime")},68858:(a,b,c)=>{c.r(b),c.d(b,{config:()=>p,default:()=>o,handler:()=>r});var d={};c.r(d),c.d(d,{default:()=>l});var e=c(11400),f=c(50029),g=c(71086),h=c(38513),i=c(2323);let j=require("@customize-agent/llm");var k=c(29008);async function l(a,b){if("POST"!==a.method)return b.status(405).json({error:"Method not allowed"});try{let{provider:c}=a.body;if(!c)return b.status(400).json({success:!1,message:"Provider name required"});let d=(0,i.I)().getProvider(c),e=Date.now();try{let a=(0,j.createProvider)(function(a,b){let c=(0,k.resolveProtocol)(a,b);return"anthropic"===c?"anthropic":"google"===c?"google":"ollama"===c?"ollama":"openai"===c?["deepseek","openai","openrouter","ollama"].includes(a)?a:"openai":a}(c,d),{apiKey:d?.apiKey,baseUrl:d?.baseUrl,modelName:c}),f=await a.healthCheck();b.status(200).json({success:f,message:f?"连接成功":"连接失败",latencyMs:Date.now()-e})}catch(a){console.error("[api] config/healthCheck (inner)",a),b.status(200).json({success:!1,message:"Health check failed",latencyMs:Date.now()-e})}}catch(a){console.error("[api] config/healthCheck",a),b.status(500).json({error:"Internal server error"})}}var m=c(68970),n=c(50296);let o=(0,h.M)(d,"default"),p=(0,h.M)(d,"config"),q=new g.PagesAPIRouteModule({definition:{kind:f.A.PAGES_API,page:"/api/config/healthCheck",pathname:"/api/config/healthCheck",bundlePath:"",filename:""},userland:d,distDir:".next",relativeProjectDir:""});async function r(a,b,c){let d=await q.prepare(a,b,{srcPage:"/api/config/healthCheck"});if(!d){b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve());return}let{query:f,params:g,prerenderManifest:h,routerServerContext:i}=d;try{let c=a.method||"GET",d=(0,m.getTracer)(),e=d.getActiveScopeSpan(),j=q.instrumentationOnRequestError.bind(q),k=async e=>q.render(a,b,{query:{...f,...g},params:g,allowedRevalidateHeaderKeys:[],multiZoneDraftMode:!1,trustHostHeader:!1,previewProps:h.preview,propagateError:!1,dev:q.isDev,page:"/api/config/healthCheck",internalRevalidate:null==i?void 0:i.revalidate,onError:(...b)=>j(a,...b)}).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let f=d.getRootSpanAttributes();if(!f)return;if(f.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${f.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let g=f.get("next.route");if(g){let a=`${c} ${g}`;e.setAttributes({"next.route":g,"http.route":g,"next.span_name":a}),e.updateName(a)}else e.updateName(`${c} ${a.url}`)});e?await k(e):await d.withPropagatedContext(a.headers,()=>d.trace(n.BaseServerSpan.handleRequest,{spanName:`${c} ${a.url}`,kind:m.SpanKind.SERVER,attributes:{"http.method":c,"http.target":a.url}},k))}catch(a){if(q.isDev)throw a;(0,e.sendError)(b,500,"Internal Server Error")}finally{null==c.waitUntil||c.waitUntil.call(c,Promise.resolve())}}},75600:a=>{a.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")}};var b=require("../../../webpack-api-runtime.js");b.C(a);var c=b.X(0,[705],()=>b(b.s=68858));module.exports=c})();
1
+ "use strict";(()=>{var a={};a.id=266,a.ids=[266],a.modules={2323:(a,b,c)=>{c.d(b,{I:()=>f});var d=c(96770);let e=null;function f(){return e||(e=new d.ConfigStore),e}},48728:(a,b,c)=>{c.r(b),c.d(b,{config:()=>p,default:()=>o,handler:()=>r});var d={};c.r(d),c.d(d,{default:()=>l});var e=c(11400),f=c(50029),g=c(71086),h=c(38513),i=c(2323);let j=require("@customize-agent/llm");var k=c(96770);async function l(a,b){if("POST"!==a.method)return b.status(405).json({error:"Method not allowed"});try{let{provider:c}=a.body;if(!c)return b.status(400).json({success:!1,message:"Provider name required"});let d=(0,i.I)().getProvider(c),e=Date.now();try{let a=(0,j.createProvider)(function(a,b){let c=(0,k.resolveProtocol)(a,b);return"anthropic"===c?"anthropic":"google"===c?"google":"ollama"===c?"ollama":"openai"===c?["deepseek","openai","openrouter","ollama"].includes(a)?a:"openai":a}(c,d),{apiKey:d?.apiKey,baseUrl:d?.baseUrl,modelName:c}),f=await a.healthCheck();b.status(200).json({success:f,message:f?"连接成功":"连接失败",latencyMs:Date.now()-e})}catch(a){console.error("[api] config/healthCheck (inner)",a),b.status(200).json({success:!1,message:"Health check failed",latencyMs:Date.now()-e})}}catch(a){console.error("[api] config/healthCheck",a),b.status(500).json({error:"Internal server error"})}}var m=c(68970),n=c(50296);let o=(0,h.M)(d,"default"),p=(0,h.M)(d,"config"),q=new g.PagesAPIRouteModule({definition:{kind:f.A.PAGES_API,page:"/api/config/healthCheck",pathname:"/api/config/healthCheck",bundlePath:"",filename:""},userland:d,distDir:".next",relativeProjectDir:""});async function r(a,b,c){let d=await q.prepare(a,b,{srcPage:"/api/config/healthCheck"});if(!d){b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve());return}let{query:f,params:g,prerenderManifest:h,routerServerContext:i}=d;try{let c=a.method||"GET",d=(0,m.getTracer)(),e=d.getActiveScopeSpan(),j=q.instrumentationOnRequestError.bind(q),k=async e=>q.render(a,b,{query:{...f,...g},params:g,allowedRevalidateHeaderKeys:[],multiZoneDraftMode:!1,trustHostHeader:!1,previewProps:h.preview,propagateError:!1,dev:q.isDev,page:"/api/config/healthCheck",internalRevalidate:null==i?void 0:i.revalidate,onError:(...b)=>j(a,...b)}).finally(()=>{if(!e)return;e.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let f=d.getRootSpanAttributes();if(!f)return;if(f.get("next.span_type")!==n.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${f.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let g=f.get("next.route");if(g){let a=`${c} ${g}`;e.setAttributes({"next.route":g,"http.route":g,"next.span_name":a}),e.updateName(a)}else e.updateName(`${c} ${a.url}`)});e?await k(e):await d.withPropagatedContext(a.headers,()=>d.trace(n.BaseServerSpan.handleRequest,{spanName:`${c} ${a.url}`,kind:m.SpanKind.SERVER,attributes:{"http.method":c,"http.target":a.url}},k))}catch(a){if(q.isDev)throw a;(0,e.sendError)(b,500,"Internal Server Error")}finally{null==c.waitUntil||c.waitUntil.call(c,Promise.resolve())}}},75600:a=>{a.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},96770:a=>{a.exports=require("@customize-agent/runtime")}};var b=require("../../../webpack-api-runtime.js");b.C(a);var c=b.X(0,[705],()=>b(b.s=48728));module.exports=c})();