mtrx-cli 0.1.27 → 0.1.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mtrx-cli",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "description": "MATRX CLI for routing Codex, Claude, and Cursor through Matrx",
5
5
  "homepage": "https://mtrx.so",
6
6
  "repository": {
@@ -1110,6 +1110,19 @@ def _cmd_launch(tool: str, route: str | None, remainder: list[str]) -> int:
1110
1110
  except ValueError as exc:
1111
1111
  print(str(exc), file=sys.stderr)
1112
1112
  return 1
1113
+
1114
+ if effective_route == "matrx":
1115
+ try:
1116
+ from matrx.cli.indexer import trigger_background_index
1117
+
1118
+ trigger_background_index(
1119
+ state,
1120
+ _resolved_matrx_key(state, os.environ),
1121
+ cwd=os.getcwd(),
1122
+ )
1123
+ except Exception:
1124
+ pass
1125
+
1113
1126
  return launch(plan)
1114
1127
 
1115
1128
 
@@ -1305,6 +1318,13 @@ def _cmd_cursor(args) -> int:
1305
1318
  else:
1306
1319
  print("[warn] Could not find Cursor executable. Open Cursor manually.", file=sys.stderr)
1307
1320
 
1321
+ try:
1322
+ from matrx.cli.indexer import trigger_background_index
1323
+
1324
+ trigger_background_index(state, mx_key, cwd=os.getcwd())
1325
+ except Exception:
1326
+ pass
1327
+
1308
1328
  print()
1309
1329
  print("Cursor configured for MTRX — all traffic routed through MITM proxy.")
1310
1330
  print(f" proxy: {PROXY_HOST}:{DEFAULT_PORT}")