@seamnet/client 0.14.1 → 0.14.3

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/bin/seam.js CHANGED
@@ -394,10 +394,15 @@ function ccGetSessions() {
394
394
  const panePid = execSync(`tmux display-message -t "${name}" -p '#{pane_pid}'`, {
395
395
  encoding: 'utf8', timeout: 3000,
396
396
  }).trim();
397
- const fg = execSync(`ps -o comm= --ppid ${panePid} 2>/dev/null`, {
397
+ // pane 进程本身可能就是 claude(tmux 直接启动时),也可能是 bash 的子进程
398
+ const self = execSync(`ps -o comm= -p ${panePid} 2>/dev/null`, {
398
399
  encoding: 'utf8', timeout: 3000,
399
- }).trim().split('\n').pop();
400
- ccRunning = ['claude', 'claude-code', 'node'].includes(fg);
400
+ }).trim();
401
+ const child = execSync(`ps -o comm= --ppid ${panePid} 2>/dev/null`, {
402
+ encoding: 'utf8', timeout: 3000,
403
+ }).trim().split('\n').pop() || '';
404
+ ccRunning = ['claude', 'claude-code'].includes(self) ||
405
+ ['claude', 'claude-code'].includes(child);
401
406
  } catch {}
402
407
  return { session: name, cc: ccRunning };
403
408
  });
@@ -18,7 +18,7 @@ const LOG_PATH = path.join(SEAM_DIR, 'logs', 'guardian.jsonl');
18
18
  // seam CLI 入口(同一个 npm 包里),MCP 把调用转发给 CLI 执行
19
19
  const SEAM_CLI = path.join(__dirname, '..', 'bin', 'seam.js');
20
20
  const ALLOWED_DOMAINS = new Set([
21
- 'status', 'msg', 'contacts', 'guardian', 'wechat', 'inbox', 'self', 'invite', 'help', '--help', '-h',
21
+ 'status', 'msg', 'contacts', 'guardian', 'wechat', 'inbox', 'self', 'invite', 'cc', 'help', '--help', '-h',
22
22
  ]);
23
23
 
24
24
  function guardianRequest(payload) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamnet/client",
3
- "version": "0.14.1",
3
+ "version": "0.14.3",
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",