kotadb 2.0.1-next.20260203000100 → 2.0.1-next.20260203010658

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kotadb",
3
- "version": "2.0.1-next.20260203000100",
3
+ "version": "2.0.1-next.20260203010658",
4
4
  "description": "Local-only code intelligence tool for CLI agents. SQLite-backed repository indexing and code search via MCP.",
5
5
  "type": "module",
6
6
  "module": "src/index.ts",
@@ -184,7 +184,7 @@ Repository indexing and advanced code intelligence operations are available via
184
184
  const duration = Date.now() - startTime;
185
185
  const pathCount = Object.keys(spec.paths || {}).length;
186
186
 
187
- process.stdout.write(JSON.stringify({
187
+ process.stderr.write(JSON.stringify({
188
188
  level: 'info',
189
189
  module: 'openapi-builder',
190
190
  message: 'OpenAPI spec generated',
package/src/instrument.ts CHANGED
@@ -26,9 +26,6 @@ if (process.env.NODE_ENV !== "test") {
26
26
  // Privacy compliance: don't send IP addresses or user agents automatically
27
27
  sendDefaultPii: false,
28
28
 
29
- // Enable debug mode in development
30
- debug: isDevelopment,
31
-
32
29
  // Scrub sensitive headers before sending to Sentry
33
30
  beforeSend(event, hint) {
34
31
  // Remove sensitive headers
@@ -61,7 +58,7 @@ if (process.env.NODE_ENV !== "test") {
61
58
  });
62
59
 
63
60
  if (isDevelopment && process.env.SENTRY_DSN) {
64
- process.stdout.write(
61
+ process.stderr.write(
65
62
  JSON.stringify({
66
63
  timestamp: new Date().toISOString(),
67
64
  level: "info",
@@ -100,19 +100,12 @@ function maskSensitiveData(context: LogContext): LogContext {
100
100
  }
101
101
 
102
102
  /**
103
- * Format and write log entry to stdout (info/debug/warn) or stderr (error)
103
+ * Format and write log entry to stderr (all logs go to stderr to keep stdout clean for JSON output)
104
104
  */
105
- function writeLog(entry: LogEntry, forceStderr = false): void {
105
+ function writeLog(entry: LogEntry, _forceStderr = false): void {
106
106
  const json = JSON.stringify(entry);
107
- const output = `${json}\n`;
108
-
109
- if (forceStderr || entry.level === "error") {
110
- process.stderr.write(output);
111
- } else {
112
- process.stdout.write(output);
113
- }
107
+ process.stderr.write(`${json}\n`);
114
108
  }
115
-
116
109
  /**
117
110
  * Create a logger instance with optional correlation context
118
111
  */