wayfind 2.0.62 → 2.0.63

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.63",
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.63",
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,41 @@ PYEOF
441
441
  fi
442
442
  fi
443
443
 
444
+ # MCP server — register wayfind-mcp in settings.json
445
+ MCP_REGISTERED=false
446
+ grep -q '"wayfind"' "$SETTINGS" 2>/dev/null && MCP_REGISTERED=true
447
+ if [ "$MCP_REGISTERED" = false ]; then
448
+ if [ "$DRY_RUN" = false ]; then
449
+ TMP_SETTINGS="$(mktemp)"
450
+ if python3 - "$SETTINGS" "$TMP_SETTINGS" <<'PYEOF' 2>/dev/null; then
451
+ import json, sys
452
+ settings_path, out_path = sys.argv[1], sys.argv[2]
453
+ try:
454
+ with open(settings_path) as f:
455
+ settings = json.load(f)
456
+ except (json.JSONDecodeError, IOError):
457
+ sys.exit(1)
458
+ mcp = settings.setdefault("mcpServers", {})
459
+ if "wayfind" not in mcp:
460
+ mcp["wayfind"] = {"command": "wayfind-mcp"}
461
+ with open(out_path, "w") as f:
462
+ json.dump(settings, f, indent=2)
463
+ f.write("\n")
464
+ PYEOF
465
+ mv "$TMP_SETTINGS" "$SETTINGS"
466
+ log "Registered wayfind MCP server in ~/.claude/settings.json"
467
+ else
468
+ rm -f "$TMP_SETTINGS"
469
+ warn "Could not register MCP server — add manually to ~/.claude/settings.json:"
470
+ warn ' "mcpServers": { "wayfind": { "command": "wayfind-mcp" } }'
471
+ fi
472
+ else
473
+ info "[dry-run] Would register wayfind MCP server in $SETTINGS"
474
+ fi
475
+ else
476
+ info "MCP server already registered in settings.json — skipped"
477
+ fi
478
+
444
479
  ;;
445
480
 
446
481
  cursor)
@@ -470,6 +505,48 @@ PYEOF
470
505
  warn "--repo path not found or not a directory: $REPO_DIR"
471
506
  fi
472
507
  fi
508
+
509
+ # MCP server — register wayfind-mcp in ~/.cursor/mcp.json
510
+ CURSOR_MCP="$HOME/.cursor/mcp.json"
511
+ run mkdir -p "$HOME/.cursor"
512
+ CURSOR_MCP_REGISTERED=false
513
+ grep -q '"wayfind"' "$CURSOR_MCP" 2>/dev/null && CURSOR_MCP_REGISTERED=true
514
+ if [ "$CURSOR_MCP_REGISTERED" = false ]; then
515
+ if [ "$DRY_RUN" = false ]; then
516
+ if [ ! -f "$CURSOR_MCP" ]; then
517
+ printf '{\n "mcpServers": {\n "wayfind": {\n "command": "wayfind-mcp",\n "args": []\n }\n }\n}\n' > "$CURSOR_MCP"
518
+ log "Created ~/.cursor/mcp.json with wayfind MCP server"
519
+ else
520
+ TMP_MCP="$(mktemp)"
521
+ if python3 - "$CURSOR_MCP" "$TMP_MCP" <<'PYEOF' 2>/dev/null; then
522
+ import json, sys
523
+ mcp_path, out_path = sys.argv[1], sys.argv[2]
524
+ try:
525
+ with open(mcp_path) as f:
526
+ config = json.load(f)
527
+ except (json.JSONDecodeError, IOError):
528
+ config = {}
529
+ mcp = config.setdefault("mcpServers", {})
530
+ if "wayfind" not in mcp:
531
+ mcp["wayfind"] = {"command": "wayfind-mcp", "args": []}
532
+ with open(out_path, "w") as f:
533
+ json.dump(config, f, indent=2)
534
+ f.write("\n")
535
+ PYEOF
536
+ mv "$TMP_MCP" "$CURSOR_MCP"
537
+ log "Registered wayfind MCP server in ~/.cursor/mcp.json"
538
+ else
539
+ rm -f "$TMP_MCP"
540
+ warn "Could not register MCP server — add manually to ~/.cursor/mcp.json:"
541
+ warn ' "mcpServers": { "wayfind": { "command": "wayfind-mcp", "args": [] } }'
542
+ fi
543
+ fi
544
+ else
545
+ info "[dry-run] Would register wayfind MCP server in ~/.cursor/mcp.json"
546
+ fi
547
+ else
548
+ info "MCP server already registered in ~/.cursor/mcp.json — skipped"
549
+ fi
473
550
  ;;
474
551
 
475
552
  generic)