gitnexus 1.6.4-rc.62 → 1.6.4-rc.64
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/dist/server/api.js +2 -2
- package/package.json +1 -1
package/dist/server/api.js
CHANGED
|
@@ -1190,7 +1190,7 @@ export const createServer = async (port, host = '127.0.0.1') => {
|
|
|
1190
1190
|
});
|
|
1191
1191
|
// ── Analyze API ──────────────────────────────────────────────────────
|
|
1192
1192
|
// POST /api/analyze — start a new analysis job
|
|
1193
|
-
app.post('/api/analyze', async (req, res) => {
|
|
1193
|
+
app.post('/api/analyze', createRouteLimiter({ limit: 10 }), async (req, res) => {
|
|
1194
1194
|
try {
|
|
1195
1195
|
const { url: repoUrl, path: repoLocalPath, force, embeddings, dropEmbeddings } = req.body;
|
|
1196
1196
|
// Input type validation
|
|
@@ -1433,7 +1433,7 @@ export const createServer = async (port, host = '127.0.0.1') => {
|
|
|
1433
1433
|
// ── Embedding endpoints ────────────────────────────────────────────
|
|
1434
1434
|
const embedJobManager = new JobManager();
|
|
1435
1435
|
// POST /api/embed — trigger server-side embedding generation
|
|
1436
|
-
app.post('/api/embed', async (req, res) => {
|
|
1436
|
+
app.post('/api/embed', createRouteLimiter({ limit: 20 }), async (req, res) => {
|
|
1437
1437
|
try {
|
|
1438
1438
|
const entry = await resolveRepo(requestedRepo(req));
|
|
1439
1439
|
if (!entry) {
|
package/package.json
CHANGED