wayfind 2.0.62 → 2.0.64

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/README.md CHANGED
@@ -180,13 +180,11 @@ Auto-registered during `wayfind init`. When a team container is running, the loc
180
180
 
181
181
  | Variable | Description |
182
182
  |----------|-------------|
183
- | `OPENAI_API_KEY` | Semantic search embeddings (full-text works without it) |
183
+ | `OPENAI_API_KEY` | Upgrade semantic search to OpenAI embeddings (Xenova local model is used by default — no key needed) |
184
184
  | `TEAM_CONTEXT_LLM_MODEL` | LLM for digests (default: `claude-sonnet-4-5-20250929`) |
185
185
  | `TEAM_CONTEXT_DIGEST_SCHEDULE` | Cron schedule (default: `0 8 * * 1` — Monday 8am) |
186
186
  | `TEAM_CONTEXT_EXCLUDE_REPOS` | Repos to exclude from digests |
187
187
  | `TEAM_CONTEXT_TELEMETRY` | `true` for anonymous usage telemetry |
188
- | `TEAM_CONTEXT_NO_SLACK` | Run container without Slack integration (set to `1`) |
189
- | `TEAM_CONTEXT_KEY_ROTATE_SCHEDULE` | API key rotation cron (default: `0 2 * * *`) |
190
188
 
191
189
  ---
192
190
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wayfind",
3
- "version": "2.0.62",
3
+ "version": "2.0.64",
4
4
  "description": "Team decision trail for AI-assisted development. The connective tissue between product, engineering, and strategy.",
5
5
  "bin": {
6
6
  "wayfind": "./bin/team-context.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wayfind",
3
- "version": "2.0.62",
3
+ "version": "2.0.64",
4
4
  "description": "Team decision trail for AI-assisted development. Session memory, decision journals, and team digests.",
5
5
  "author": {
6
6
  "name": "Wayfind",
package/setup.sh CHANGED
@@ -441,6 +441,51 @@ PYEOF
441
441
  fi
442
442
  fi
443
443
 
444
+ # MCP server — register wayfind-mcp in settings.json using absolute path
445
+ # (Claude Code spawns MCP servers with a minimal env; bare command may not resolve)
446
+ MCP_BIN="$(command -v wayfind-mcp 2>/dev/null || true)"
447
+ if [ -z "$MCP_BIN" ]; then
448
+ NPM_PREFIX="$(npm config get prefix 2>/dev/null || true)"
449
+ [ -n "$NPM_PREFIX" ] && MCP_BIN="$NPM_PREFIX/bin/wayfind-mcp"
450
+ fi
451
+ MCP_REGISTERED=false
452
+ grep -q '"wayfind"' "$SETTINGS" 2>/dev/null && MCP_REGISTERED=true
453
+ if [ -n "$MCP_BIN" ] && [ -f "$MCP_BIN" ]; then
454
+ if [ "$MCP_REGISTERED" = false ]; then
455
+ if [ "$DRY_RUN" = false ]; then
456
+ TMP_SETTINGS="$(mktemp)"
457
+ if python3 - "$SETTINGS" "$MCP_BIN" "$TMP_SETTINGS" <<'PYEOF' 2>/dev/null; then
458
+ import json, sys
459
+ settings_path, mcp_bin, out_path = sys.argv[1], sys.argv[2], sys.argv[3]
460
+ try:
461
+ with open(settings_path) as f:
462
+ settings = json.load(f)
463
+ except (json.JSONDecodeError, IOError):
464
+ sys.exit(1)
465
+ mcp = settings.setdefault("mcpServers", {})
466
+ if "wayfind" not in mcp:
467
+ mcp["wayfind"] = {"command": mcp_bin}
468
+ with open(out_path, "w") as f:
469
+ json.dump(settings, f, indent=2)
470
+ f.write("\n")
471
+ PYEOF
472
+ mv "$TMP_SETTINGS" "$SETTINGS"
473
+ log "Registered wayfind MCP server in ~/.claude/settings.json"
474
+ else
475
+ rm -f "$TMP_SETTINGS"
476
+ warn "Could not register MCP server — add manually to ~/.claude/settings.json:"
477
+ warn " \"mcpServers\": { \"wayfind\": { \"command\": \"$MCP_BIN\" } }"
478
+ fi
479
+ else
480
+ info "[dry-run] Would register wayfind MCP server ($MCP_BIN) in $SETTINGS"
481
+ fi
482
+ else
483
+ info "MCP server already registered in settings.json — skipped"
484
+ fi
485
+ else
486
+ warn "wayfind-mcp binary not found — skipping MCP registration. Re-run after npm install."
487
+ fi
488
+
444
489
  ;;
445
490
 
446
491
  cursor)
@@ -470,6 +515,57 @@ PYEOF
470
515
  warn "--repo path not found or not a directory: $REPO_DIR"
471
516
  fi
472
517
  fi
518
+
519
+ # MCP server — register wayfind-mcp in ~/.cursor/mcp.json using absolute path
520
+ CURSOR_MCP_BIN="$(command -v wayfind-mcp 2>/dev/null || true)"
521
+ if [ -z "$CURSOR_MCP_BIN" ]; then
522
+ NPM_PREFIX="$(npm config get prefix 2>/dev/null || true)"
523
+ [ -n "$NPM_PREFIX" ] && CURSOR_MCP_BIN="$NPM_PREFIX/bin/wayfind-mcp"
524
+ fi
525
+ CURSOR_MCP="$HOME/.cursor/mcp.json"
526
+ run mkdir -p "$HOME/.cursor"
527
+ CURSOR_MCP_REGISTERED=false
528
+ grep -q '"wayfind"' "$CURSOR_MCP" 2>/dev/null && CURSOR_MCP_REGISTERED=true
529
+ if [ -n "$CURSOR_MCP_BIN" ] && [ -f "$CURSOR_MCP_BIN" ]; then
530
+ if [ "$CURSOR_MCP_REGISTERED" = false ]; then
531
+ if [ "$DRY_RUN" = false ]; then
532
+ if [ ! -f "$CURSOR_MCP" ]; then
533
+ printf '{\n "mcpServers": {\n "wayfind": {\n "command": "%s",\n "args": []\n }\n }\n}\n' "$CURSOR_MCP_BIN" > "$CURSOR_MCP"
534
+ log "Created ~/.cursor/mcp.json with wayfind MCP server"
535
+ else
536
+ TMP_MCP="$(mktemp)"
537
+ if python3 - "$CURSOR_MCP" "$CURSOR_MCP_BIN" "$TMP_MCP" <<'PYEOF' 2>/dev/null; then
538
+ import json, sys
539
+ mcp_path, mcp_bin, out_path = sys.argv[1], sys.argv[2], sys.argv[3]
540
+ try:
541
+ with open(mcp_path) as f:
542
+ config = json.load(f)
543
+ except (json.JSONDecodeError, IOError):
544
+ config = {}
545
+ mcp = config.setdefault("mcpServers", {})
546
+ if "wayfind" not in mcp:
547
+ mcp["wayfind"] = {"command": mcp_bin, "args": []}
548
+ with open(out_path, "w") as f:
549
+ json.dump(config, f, indent=2)
550
+ f.write("\n")
551
+ PYEOF
552
+ mv "$TMP_MCP" "$CURSOR_MCP"
553
+ log "Registered wayfind MCP server in ~/.cursor/mcp.json"
554
+ else
555
+ rm -f "$TMP_MCP"
556
+ warn "Could not register MCP server — add manually to ~/.cursor/mcp.json:"
557
+ warn " \"mcpServers\": { \"wayfind\": { \"command\": \"$CURSOR_MCP_BIN\", \"args\": [] } }"
558
+ fi
559
+ fi
560
+ else
561
+ info "[dry-run] Would register wayfind MCP server ($CURSOR_MCP_BIN) in ~/.cursor/mcp.json"
562
+ fi
563
+ else
564
+ info "MCP server already registered in ~/.cursor/mcp.json — skipped"
565
+ fi
566
+ else
567
+ warn "wayfind-mcp binary not found — skipping Cursor MCP registration. Re-run after npm install."
568
+ fi
473
569
  ;;
474
570
 
475
571
  generic)