tanuki-telemetry 1.3.2 → 1.3.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.
package/dist/cli.js CHANGED
@@ -46,7 +46,15 @@ async function update() {
46
46
  if (typeof installAllTemplateCommands === "function") {
47
47
  await installAllTemplateCommands();
48
48
  }
49
- // 2. Build MCP server + frontend from source
49
+ // 2. Sync MCP server version with CLI version
50
+ console.log(" Syncing server version...");
51
+ try {
52
+ execSync(`cd ~/.claude/mcp-servers/telemetry && npm version ${local} --no-git-tag-version --allow-same-version 2>&1`, { stdio: "pipe", timeout: 5000 });
53
+ }
54
+ catch {
55
+ // Non-critical
56
+ }
57
+ // 3. Build MCP server + frontend from source
50
58
  console.log(" Building MCP server...");
51
59
  try {
52
60
  execSync("cd ~/.claude/mcp-servers/telemetry && npm run build 2>&1", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tanuki-telemetry",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Local installer for Telemetry MCP server — setup, start, stop, and status for Claude Code autonomous workflows",
5
5
  "type": "module",
6
6
  "bin": {
@@ -0,0 +1,49 @@
1
+ ---
2
+ description: |
3
+ Send a message to the coordinator workspace from a separate terminal. Sets up a simple input loop that routes your messages to the active coordinator.
4
+ allowed-tools: Bash
5
+ ---
6
+
7
+ # /speak — Talk to the Coordinator
8
+
9
+ Sets up a message relay from this terminal to the coordinator workspace. Your messages get sent directly to the coordinator's Claude session.
10
+
11
+ ## On Invoke
12
+
13
+ 1. Find the coordinator target (saved by /coordinate on startup):
14
+ ```bash
15
+ cat ~/.claude/coordinator-target 2>/dev/null
16
+ ```
17
+
18
+ 2. If no target file exists, discover it:
19
+ ```bash
20
+ # List workspaces and find the one named "Main Conversation" or the coordinator
21
+ cmux list-workspaces
22
+ # Ask the user which workspace is the coordinator
23
+ ```
24
+
25
+ 3. Start the relay loop:
26
+ ```bash
27
+ echo "Connected to coordinator. Type messages below. Ctrl+C to exit."
28
+ echo "---"
29
+ while IFS= read -r -p "> " msg; do
30
+ if [ -z "$msg" ]; then continue; fi
31
+ target=$(cat ~/.claude/coordinator-target 2>/dev/null)
32
+ if [ -z "$target" ]; then
33
+ echo "No coordinator target found. Run /coordinate first."
34
+ continue
35
+ fi
36
+ tw=${target% *}
37
+ ts=${target#* }
38
+ cmux send --workspace $tw --surface $ts "$msg" 2>/dev/null
39
+ cmux send-key --workspace $tw --surface $ts Enter 2>/dev/null
40
+ echo " → sent"
41
+ done
42
+ ```
43
+
44
+ ## If coordinator-target doesn't exist
45
+
46
+ Guide the user:
47
+ 1. The coordinator needs to run `/coordinate` first, which writes `~/.claude/coordinator-target`
48
+ 2. Or manually set it: `echo "workspace:1 surface:5" > ~/.claude/coordinator-target`
49
+ 3. Find the right values with: `cmux list-workspaces` then `cmux list-pane-surfaces --workspace <id>`