fix: remove all console.log/warn to avoid breaking TUI

This commit is contained in:
Vectry
2026-02-10 13:46:55 +00:00
parent 638a5d2640
commit 07cf717c15
4 changed files with 9 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "agentlens-sdk",
"version": "0.1.2",
"version": "0.1.3",
"description": "AgentLens TypeScript SDK — Agent observability that traces decisions, not just API calls.",
"type": "module",
"main": "./dist/index.cjs",

View File

@@ -68,15 +68,9 @@ export class BatchTransport {
});
if (!response.ok) {
const text = await response.text().catch(() => "");
console.warn(
`AgentLens: Failed to send traces (HTTP ${response.status}): ${text.slice(0, 200)}`,
);
await response.text().catch(() => "");
}
} catch (error: unknown) {
const message =
error instanceof Error ? error.message : String(error);
console.warn(`AgentLens: Failed to send traces: ${message}`);
} catch {
}
}
}