build(trial): preserve deployed source for knowledge refresh

This commit is contained in:
鲨鱼辣椒 committed 2026-10-13 14:29:33 +08:00
1 parent 8e0e52f30e
commit 2d4e44f4a0
42 files changed
+2321 -283

No files matched your search

+3 -2
View File
@@ -73,9 +73,10 @@ export async function handleCloudAgentsRoutes(req: IncomingMessage, res: ServerR
sendJson(res, 200, data);
} catch (error) {
const failure = error instanceof CloudAgentsError ? error
: new CloudAgentsError(error instanceof SyntaxError ? 400 : 502, error instanceof SyntaxError ? 'invalid_input' : 'cloud_service_unavailable');
: new CloudAgentsError(error instanceof SyntaxError ? 400 : 502, error instanceof SyntaxError ? 'invalid_input' : 'cloud_service_unavailable',
error instanceof SyntaxError ? 'definitive_failure' : 'unknown');
if (res.headersSent) res.end();
else sendJson(res, failure.status, { success: false, error: failure.message, code: failure.code });
else sendJson(res, failure.status, { success: false, error: failure.message, code: failure.code, commandOutcome: failure.commandOutcome });
}
return true;
}