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 +1 -1
- package/src/api/openapi/builder.ts +1 -1
- package/src/instrument.ts +1 -4
- package/src/logging/logger.ts +3 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kotadb",
|
|
3
|
-
"version": "2.0.1-next.
|
|
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.
|
|
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.
|
|
61
|
+
process.stderr.write(
|
|
65
62
|
JSON.stringify({
|
|
66
63
|
timestamp: new Date().toISOString(),
|
|
67
64
|
level: "info",
|
package/src/logging/logger.ts
CHANGED
|
@@ -100,19 +100,12 @@ function maskSensitiveData(context: LogContext): LogContext {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
|
-
* Format and write log entry to
|
|
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,
|
|
105
|
+
function writeLog(entry: LogEntry, _forceStderr = false): void {
|
|
106
106
|
const json = JSON.stringify(entry);
|
|
107
|
-
|
|
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
|
*/
|