grepmax 0.26.43 → 0.26.45

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 (93) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/NOTICE +6 -0
  3. package/README.md +5 -1
  4. package/dist/bin.js +4 -0
  5. package/dist/commands/doctor.js +2 -1
  6. package/dist/commands/mcp.js +234 -93
  7. package/dist/commands/project.js +0 -1
  8. package/dist/commands/similar.js +0 -1
  9. package/dist/commands/skeleton.js +0 -1
  10. package/dist/commands/status.js +32 -18
  11. package/dist/commands/surprises.js +0 -1
  12. package/dist/commands/symbols.js +0 -1
  13. package/dist/commands/watch.js +2 -1
  14. package/dist/eval-like-limit-probe.js +60 -41
  15. package/dist/lib/analysis/surprising-connections.js +4 -3
  16. package/dist/lib/daemon/daemon.js +14 -2
  17. package/dist/lib/daemon/graph-handler.js +33 -33
  18. package/dist/lib/daemon/rows-handler.js +13 -51
  19. package/dist/lib/daemon/vector-handler.js +18 -17
  20. package/dist/lib/graph/graph-builder.js +33 -16
  21. package/dist/lib/graph/impact.js +9 -8
  22. package/dist/lib/index/index-config.js +2 -2
  23. package/dist/lib/llm/config.js +9 -3
  24. package/dist/lib/llm/tools.js +5 -4
  25. package/dist/lib/output/mcp-results.js +177 -0
  26. package/dist/lib/search/pagerank.js +2 -1
  27. package/dist/lib/search/searcher.js +5 -4
  28. package/dist/lib/skeleton/retriever.js +2 -1
  29. package/dist/lib/store/lance-sdk.js +46 -0
  30. package/dist/lib/store/vector-db.js +57 -16
  31. package/dist/lib/utils/cross-project.js +2 -2
  32. package/dist/lib/utils/project-registry.js +8 -8
  33. package/dist/lib/utils/query-timeout.js +53 -13
  34. package/dist/lib/utils/store-access.js +6 -5
  35. package/dist/lib/utils/store-context.js +102 -0
  36. package/dist/lib/utils/stores.js +1 -1
  37. package/dist/vendor/lancedb/LICENSE +202 -0
  38. package/dist/vendor/lancedb/NODEJS_THIRD_PARTY_LICENSES.md +668 -0
  39. package/dist/vendor/lancedb/RUST_THIRD_PARTY_LICENSES.html +14607 -0
  40. package/dist/vendor/lancedb/arrow.d.ts +296 -0
  41. package/dist/vendor/lancedb/arrow.js +1145 -0
  42. package/dist/vendor/lancedb/arrow_type.d.ts +9 -0
  43. package/dist/vendor/lancedb/arrow_type.js +29 -0
  44. package/dist/vendor/lancedb/connection.d.ts +508 -0
  45. package/dist/vendor/lancedb/connection.js +298 -0
  46. package/dist/vendor/lancedb/embedding/embedding_function.d.ts +103 -0
  47. package/dist/vendor/lancedb/embedding/embedding_function.js +192 -0
  48. package/dist/vendor/lancedb/embedding/index.d.ts +37 -0
  49. package/dist/vendor/lancedb/embedding/index.js +108 -0
  50. package/dist/vendor/lancedb/embedding/openai.d.ts +16 -0
  51. package/dist/vendor/lancedb/embedding/openai.js +81 -0
  52. package/dist/vendor/lancedb/embedding/registry.d.ts +94 -0
  53. package/dist/vendor/lancedb/embedding/registry.js +221 -0
  54. package/dist/vendor/lancedb/embedding/transformers.d.ts +36 -0
  55. package/dist/vendor/lancedb/embedding/transformers.js +110 -0
  56. package/dist/vendor/lancedb/header.d.ts +162 -0
  57. package/dist/vendor/lancedb/header.js +217 -0
  58. package/dist/vendor/lancedb/index.d.ts +246 -0
  59. package/dist/vendor/lancedb/index.js +176 -0
  60. package/dist/vendor/lancedb/indices.d.ts +721 -0
  61. package/dist/vendor/lancedb/indices.js +166 -0
  62. package/dist/vendor/lancedb/license_header.txt +2 -0
  63. package/dist/vendor/lancedb/materialized_view.d.ts +69 -0
  64. package/dist/vendor/lancedb/materialized_view.js +112 -0
  65. package/dist/vendor/lancedb/merge.d.ts +104 -0
  66. package/dist/vendor/lancedb/merge.js +120 -0
  67. package/dist/vendor/lancedb/native.d.ts +1193 -0
  68. package/dist/vendor/lancedb/native.js +688 -0
  69. package/dist/vendor/lancedb/oauth.d.ts +66 -0
  70. package/dist/vendor/lancedb/oauth.js +15 -0
  71. package/dist/vendor/lancedb/otel.d.ts +26 -0
  72. package/dist/vendor/lancedb/otel.js +114 -0
  73. package/dist/vendor/lancedb/permutation.d.ts +143 -0
  74. package/dist/vendor/lancedb/permutation.js +184 -0
  75. package/dist/vendor/lancedb/provenance.json +6 -0
  76. package/dist/vendor/lancedb/query.d.ts +663 -0
  77. package/dist/vendor/lancedb/query.js +966 -0
  78. package/dist/vendor/lancedb/rerankers/index.d.ts +5 -0
  79. package/dist/vendor/lancedb/rerankers/index.js +19 -0
  80. package/dist/vendor/lancedb/rerankers/rrf.d.ts +14 -0
  81. package/dist/vendor/lancedb/rerankers/rrf.js +28 -0
  82. package/dist/vendor/lancedb/sanitize.d.ts +32 -0
  83. package/dist/vendor/lancedb/sanitize.js +544 -0
  84. package/dist/vendor/lancedb/scannable.d.ts +92 -0
  85. package/dist/vendor/lancedb/scannable.js +200 -0
  86. package/dist/vendor/lancedb/schema.d.ts +16 -0
  87. package/dist/vendor/lancedb/schema.js +387 -0
  88. package/dist/vendor/lancedb/table.d.ts +1069 -0
  89. package/dist/vendor/lancedb/table.js +498 -0
  90. package/dist/vendor/lancedb/util.d.ts +14 -0
  91. package/dist/vendor/lancedb/util.js +77 -0
  92. package/package.json +19 -7
  93. package/plugins/grepmax/.claude-plugin/plugin.json +1 -1
@@ -10,7 +10,7 @@
10
10
  "name": "grepmax",
11
11
  "source": "./plugins/grepmax",
12
12
  "description": "Semantic code search for Claude Code. Automatically indexes your project and provides intelligent search capabilities.",
13
- "version": "0.26.43",
13
+ "version": "0.26.45",
14
14
  "author": {
15
15
  "name": "Robert Owens",
16
16
  "email": "robowens@me.com"
package/NOTICE CHANGED
@@ -31,3 +31,9 @@ THIRD-PARTY DEPENDENCIES
31
31
 
32
32
  This software depends on various open-source libraries. See package.json for
33
33
  a complete list of dependencies and their respective licenses.
34
+
35
+ The distribution includes the unmodified JavaScript runtime from
36
+ @lancedb/lancedb 0.38.0 (https://github.com/lancedb/lancedb), licensed under
37
+ Apache-2.0. Its license and build provenance are included in dist/vendor/lancedb/.
38
+ Its optional provider dependency manifest is not distributed. Platform native
39
+ binaries are installed as separately pinned @lancedb packages.
package/README.md CHANGED
@@ -126,7 +126,11 @@ Plugins auto-update when you run `npm install -g grepmax@latest` — no need to
126
126
 
127
127
  ### MCP Server
128
128
 
129
- `gmax mcp` starts a stdio-based MCP server for clients that support MCP but can't run shell commands (Cursor, Windsurf, custom agents). Search-backed tools use the singleton daemon when available, avoiding a separate embedding worker per MCP session, and fall back to an in-process worker only when the daemon is unavailable or does not support the request.
129
+ MCP is local-only: the client spawns it and communicates through stdin/stdout pipes. It has no HTTP, SSE, or TCP listener and cannot be reached over the network. The daemon socket is restricted to your user account.
130
+
131
+ `gmax mcp` starts a stdio-based MCP server for clients that support MCP but can't run shell commands (Cursor, Windsurf, custom agents). Search-backed tools use the singleton daemon when available, avoiding a separate embedding worker per MCP session, and use an in-process worker for supported offline/secondary-store access. An unsupported daemon command requires `gmax watch restart`.
132
+
133
+ `semantic_search`, `trace_calls`, `dead`, and `index_status` also advertise output schemas and return `structuredContent` with `schemaVersion: 1`, alongside the existing text. Search matches follow the same scope and display filters and include paths, one-based start/end lines, symbols, scores (null when unavailable), and warnings. Trace results preserve caller ancestry and edge confidence; unresolved callees have no location, and omitted callee/importer counts are explicit. Graph conclusions carry `approximate: true`. Index health includes embedding identity, watcher/reconciliation state, and the last compaction result; unavailable health is null or unobserved. These four tools advertise read-only, non-destructive, closed-world annotations. Other tools retain their current contracts.
130
134
 
131
135
  | Tool | Description |
132
136
  | --- | --- |
package/dist/bin.js CHANGED
@@ -75,6 +75,10 @@ function selectHome() {
75
75
  if (process.env.GMAX_HOME)
76
76
  return;
77
77
  const argv = process.argv.slice(2);
78
+ // These enumerate/route stores per request rather than pinning the process
79
+ // to its launch cwd's store. In particular an MCP session can serve both.
80
+ if (argv[0] === "mcp" || argv[0] === "status")
81
+ return;
78
82
  const match = (0, stores_1.matchStore)(commandTarget(argv, process.cwd()));
79
83
  if (match.kind === "primary")
80
84
  return;
@@ -58,6 +58,7 @@ const lock_1 = require("../lib/utils/lock");
58
58
  const mlx_hf_cache_1 = require("../lib/utils/mlx-hf-cache");
59
59
  const project_registry_1 = require("../lib/utils/project-registry");
60
60
  const project_root_1 = require("../lib/utils/project-root");
61
+ const query_timeout_1 = require("../lib/utils/query-timeout");
61
62
  const root_availability_1 = require("../lib/utils/root-availability");
62
63
  const store_access_1 = require("../lib/utils/store-access");
63
64
  function formatSize(bytes) {
@@ -489,7 +490,7 @@ exports.doctor = new commander_1.Command("doctor")
489
490
  .query()
490
491
  .where("length(summary) > 5")
491
492
  .select(["id"])
492
- .toArray()).length;
493
+ .toArray(query_timeout_1.QUERY_EXECUTION_OPTIONS)).length;
493
494
  const coverage = (0, doctor_status_1.summaryCoverageStatus)(withSummary, totalChunks);
494
495
  console.log(`${coverage.symbol} ${coverage.message}`);
495
496
  }