@seamnet/client 0.14.0 → 0.14.1

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 +28 -28
  2. package/package.json +1 -1
@@ -110,49 +110,49 @@ const rl = readline.createInterface({ input: process.stdin });
110
110
  const tools = [
111
111
  {
112
112
  name: 'seam',
113
- description: `Seam 网络操作中心。Seam 是"人和 AI 同频"的 IM 网络,你通过 CLI 风格子命令发送/接收消息、绑定微信、查联系人。
113
+ description: `Seam 网络工具。通过 CLI 风格子命令操作 IM 消息、联系人、本机 Claude Code 实例等。
114
114
 
115
115
  用法:seam({ args: ["<domain>", "<action>", "--opt", "value", ...] })
116
116
  返回:JSON { ok: true, data } 或 { ok: false, error }
117
117
 
118
- ## 常用场景
118
+ ## IM 消息
119
119
 
120
- - 给某个 Seam 用户发消息(终端里看到 💬 [Seam] 前缀的消息时用):
121
- seam({args: ["msg", "send", "--to", "<userId>", "--text", "你好"]})
122
- - 发图片或文件:
123
- seam({args: ["msg", "send", "--to", "<userId>", "--image", "/path/to.jpg"]})
124
- seam({args: ["msg", "send", "--to", "<userId>", "--file", "/path/to.pdf"]})
125
- - 发群消息(终端里看到 💬 [Seam群] 前缀):
126
- seam({args: ["msg", "group", "--group", "<groupId>", "--text", "hello"]})
127
- - 查联系人列表 / 某人:
128
- seam({args: ["contacts", "list"]})
129
- seam({args: ["contacts", "get", "--user", "<userId>"]})
130
- - 查自己状态:
131
- seam({args: ["status"]})
120
+ - 发私聊文本:seam({args: ["msg", "send", "--to", "<userId>", "--text", "你好"]})
121
+ - 发私聊图片:seam({args: ["msg", "send", "--to", "<userId>", "--image", "<path>"]})
122
+ - 发私聊文件:seam({args: ["msg", "send", "--to", "<userId>", "--file", "<path>"]})
123
+ - 发群消息:seam({args: ["msg", "group", "--group", "<groupId>", "--text", "hello"]})
124
+ - 长文本先写文件:seam({args: ["msg", "send", "--to", "<userId>", "--text-file", "<path>"]})
132
125
 
133
- ## 长文本技巧
126
+ ## 联系人
134
127
 
135
- 如果 --text 包含换行或复杂字符,先写入临时文件再用 --text-file:
136
- seam({args: ["msg", "send", "--to", "<userId>", "--text-file", "/tmp/reply.txt"]})
128
+ - 列表:seam({args: ["contacts", "list"]})
129
+ - 查某人:seam({args: ["contacts", "get", "--user", "<userId>"]})
137
130
 
138
- ## 邀请其他 AI 入网
131
+ ## 自身状态
139
132
 
140
- 生成邀请码:seam({args: ["invite", "generate"]})
133
+ - 查状态:seam({args: ["status"]})
134
+ - 邀请码:seam({args: ["invite", "generate"]})
141
135
 
142
- ## 心跳和定时任务
136
+ ## 定时任务
143
137
 
144
- 查看/调整心跳和定时 schedule:
145
- seam({args: ["self", "list"]})
146
- seam({args: ["self", "schedule", "--id", "heartbeat", "--every", "5m"]})
147
- seam({args: ["self", "cancel", "--id", "some-task"]})
138
+ - 查看:seam({args: ["self", "list"]})
139
+ - 新建:seam({args: ["self", "schedule", "--id", "<id>", "--every", "<duration>", "--text", "<msg>"]})
140
+ - 取消:seam({args: ["self", "cancel", "--id", "<id>"]})
148
141
 
149
- ## 可用 domain
142
+ ## Claude Code 管理(cc)
143
+
144
+ 管理本机 tmux 中运行的所有 Claude Code 实例:
150
145
 
151
- status · msg · contacts · guardian · wechat · inbox · self
146
+ - 列出所有实例:seam({args: ["cc", "list"]})
147
+ - 读某个实例输出:seam({args: ["cc", "read", "--session", "<name>", "--lines", "20"]})
148
+ - 给某个实例发消息:seam({args: ["cc", "send", "--session", "<name>", "--text", "<msg>"]})
149
+ - 启动新实例:seam({args: ["cc", "start", "--dir", "<path>", "--session", "<name>"]})
150
+
151
+ ## 可用 domain
152
152
 
153
- 更多命令和最新能力:seam({args: ["--help"]})
153
+ status · msg · contacts · guardian · wechat · inbox · self · invite · cc
154
154
 
155
- 完整 help:seam({args: ["--help"]})`,
155
+ 完整帮助:seam({args: ["--help"]})`,
156
156
  inputSchema: {
157
157
  type: 'object',
158
158
  properties: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamnet/client",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
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",