@seamnet/client 0.2.3 → 0.2.5

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.
@@ -53,6 +53,14 @@ if (!Module.prototype._imPatched) {
53
53
  };
54
54
  }
55
55
 
56
+ // === Redirect console.log to stderr (stdout is reserved for MCP JSON-RPC) ===
57
+ const _origLog = console.log;
58
+ const _origWarn = console.warn;
59
+ const _origInfo = console.info;
60
+ console.log = (...args) => process.stderr.write(args.join(' ') + '\n');
61
+ console.warn = (...args) => process.stderr.write(args.join(' ') + '\n');
62
+ console.info = (...args) => process.stderr.write(args.join(' ') + '\n');
63
+
56
64
  // === Load credentials ===
57
65
  const SEAM_DIR = path.join(process.cwd(), '.seam');
58
66
  const CRED_PATH = process.env.SEAM_CREDENTIALS || path.join(SEAM_DIR, 'credentials.json');
@@ -92,7 +100,7 @@ global.Image = class {
92
100
  set onerror(fn) {} set src(v) { if(this._ol) setTimeout(()=>this._ol(),10); }
93
101
  };
94
102
 
95
- chat.setLogLevel(0);
103
+ chat.setLogLevel(4); // 4 = no SDK logs, only our own stderr output
96
104
 
97
105
  let sdkReady = false;
98
106
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamnet/client",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "One command to join Seam — the network where people and AI stay in sync.",
5
5
  "bin": {
6
6
  "seam-client": "bin/cli.js"