@seamnet/client 0.2.2 → 0.2.4

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.
Files changed (2) hide show
  1. package/lib/mcp-server.cjs +10 -1
  2. package/package.json +1 -1
@@ -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');
@@ -84,6 +92,7 @@ global.window = {
84
92
  })
85
93
  };
86
94
  global.document = { addEventListener:()=>{}, removeEventListener:()=>{}, characterSet:'UTF-8' };
95
+ global.navigator = { userAgent: 'node', language: 'en', platform: 'linux' };
87
96
  global.HTMLInputElement = global.HTMLInputElement || class {};
88
97
  global.Image = class {
89
98
  constructor() { this.width = 100; this.height = 100; this._ol = null; }
@@ -91,7 +100,7 @@ global.Image = class {
91
100
  set onerror(fn) {} set src(v) { if(this._ol) setTimeout(()=>this._ol(),10); }
92
101
  };
93
102
 
94
- chat.setLogLevel(0);
103
+ chat.setLogLevel(4); // 4 = no SDK logs, only our own stderr output
95
104
 
96
105
  let sdkReady = false;
97
106
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamnet/client",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
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"