@contextstream/mcp-server 0.4.60 → 0.4.61
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/hooks/auto-rules.js +1223 -71
- package/dist/hooks/post-write.js +7 -0
- package/dist/hooks/runner.js +5392 -1527
- package/dist/index.js +9954 -9700
- package/package.json +1 -1
package/dist/hooks/post-write.js
CHANGED
|
@@ -274,6 +274,13 @@ async function indexFile(filePath, projectId, apiUrl, apiKey, projectRoot) {
|
|
|
274
274
|
if (!response.ok) {
|
|
275
275
|
throw new Error(`API error: ${response.status} ${response.statusText}`);
|
|
276
276
|
}
|
|
277
|
+
try {
|
|
278
|
+
const body = await response.json();
|
|
279
|
+
if (body?.data?.status === "cooldown" || body?.data?.status === "daily_limit_exceeded") {
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
} catch {
|
|
283
|
+
}
|
|
277
284
|
}
|
|
278
285
|
function findProjectRoot(filePath) {
|
|
279
286
|
let currentDir = path.dirname(path.resolve(filePath));
|