mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-15 02:49:33 +01:00
chore: bump version to 0.1390
This commit is contained in:
1 parent
11d4666d19
commit
59b22337a5
4 files changed
+121
-26
No files matched your search
@@ -1972,6 +1972,18 @@ export class WebServer extends EventEmitter {
|
||||
return createErrorResponse(ApiErrorCode.OPERATION_FAILED, 'Subagent not found or already completed');
|
||||
});
|
||||
|
||||
// Trigger cleanup of stale subagents
|
||||
this.app.post('/api/subagents/cleanup', async () => {
|
||||
const removed = subagentWatcher.cleanupNow();
|
||||
return { success: true, data: { removed, remaining: subagentWatcher.getSubagents().length } };
|
||||
});
|
||||
|
||||
// Clear all tracked subagents (memory only - does not delete files)
|
||||
this.app.delete('/api/subagents', async () => {
|
||||
const cleared = subagentWatcher.clearAll();
|
||||
return { success: true, data: { cleared } };
|
||||
});
|
||||
|
||||
|
||||
// ========== Hook Events ==========
|
||||
|
||||
|
||||
Reference in new issue
Block a user