grepmax 0.26.20 → 0.26.21

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.
@@ -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.20",
13
+ "version": "0.26.21",
14
14
  "author": {
15
15
  "name": "Robert Owens",
16
16
  "email": "robowens@me.com"
@@ -1,7 +1,38 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEFAULT_IGNORE_PATTERNS = void 0;
4
2
  // Shared ignore patterns for filesystem walks.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.DEFAULT_IGNORE_PATTERNS = exports.GENERATED_SOURCE_PATTERNS = void 0;
5
+ // Machine-generated source (floods the index + ranks codegen as god nodes).
6
+ // Content-based @generated/DO-NOT-EDIT header sniff (file-utils.ts) catches the
7
+ // rest; these are the unambiguous filename/dir conventions.
8
+ //
9
+ // Exported separately because the FSEvents watcher must ignore these at the
10
+ // event source too: a codegen run rewriting thousands of *.graphql.swift files
11
+ // overflowed the FSEvents client buffer ("Events were dropped") ~290 times in
12
+ // three days and pushed the project into 5-minute poll mode, even though the
13
+ // file policy then discarded every one of those events as "0 reindexed".
14
+ exports.GENERATED_SOURCE_PATTERNS = [
15
+ "**/__generated__/**", // Relay / graphql-codegen
16
+ "**/Generated/**", // Apollo iOS, Xcode codegen
17
+ "*.graphql.swift", // Apollo iOS operations
18
+ "*.pb.go", // protobuf (Go)
19
+ "*.pb.cc",
20
+ "*.pb.h", // protobuf (C++)
21
+ "*_pb2.py",
22
+ "*_pb2.pyi",
23
+ "*_pb2_grpc.py", // protobuf (Python)
24
+ "*.g.dart",
25
+ "*.freezed.dart",
26
+ "*.gr.dart", // Dart codegen
27
+ "*.designer.cs", // C# designer
28
+ "*.generated.ts",
29
+ "*.generated.tsx", // graphql-codegen / common TS
30
+ // graphql-codegen client-preset output dir (emits no @generated banner, so
31
+ // the header sniff can't catch these — match the canonical filenames).
32
+ "**/gql/graphql.ts",
33
+ "**/gql/gql.ts",
34
+ "**/gql/fragment-masking.ts",
35
+ ];
5
36
  // Keep JSON files (package.json, tsconfig.json, etc.) but skip lockfiles and obvious binaries.
6
37
  exports.DEFAULT_IGNORE_PATTERNS = [
7
38
  "*.lock",
@@ -43,29 +74,7 @@ exports.DEFAULT_IGNORE_PATTERNS = [
43
74
  "*.min.css",
44
75
  "*.map",
45
76
  "*.wasm",
46
- // Machine-generated source (floods the index + ranks codegen as god nodes).
47
- // Content-based @generated/DO-NOT-EDIT header sniff (file-utils.ts) catches the
48
- // rest; these are the unambiguous filename/dir conventions.
49
- "**/__generated__/**", // Relay / graphql-codegen
50
- "**/Generated/**", // Apollo iOS, Xcode codegen
51
- "*.graphql.swift", // Apollo iOS operations
52
- "*.pb.go", // protobuf (Go)
53
- "*.pb.cc",
54
- "*.pb.h", // protobuf (C++)
55
- "*_pb2.py",
56
- "*_pb2.pyi",
57
- "*_pb2_grpc.py", // protobuf (Python)
58
- "*.g.dart",
59
- "*.freezed.dart",
60
- "*.gr.dart", // Dart codegen
61
- "*.designer.cs", // C# designer
62
- "*.generated.ts",
63
- "*.generated.tsx", // graphql-codegen / common TS
64
- // graphql-codegen client-preset output dir (emits no @generated banner, so
65
- // the header sniff can't catch these — match the canonical filenames).
66
- "**/gql/graphql.ts",
67
- "**/gql/gql.ts",
68
- "**/gql/fragment-masking.ts",
77
+ ...exports.GENERATED_SOURCE_PATTERNS,
69
78
  // Test fixtures and benchmark data
70
79
  "**/fixtures/**",
71
80
  "**/benchmark/**",
@@ -56,6 +56,7 @@ const watcher = __importStar(require("@parcel/watcher"));
56
56
  const batch_processor_1 = require("./batch-processor");
57
57
  const cache_coherence_1 = require("./cache-coherence");
58
58
  const file_policy_1 = require("./file-policy");
59
+ const ignore_patterns_1 = require("./ignore-patterns");
59
60
  const walker_1 = require("./walker");
60
61
  // Directory names ignored at ANY depth. @parcel/watcher treats a non-glob
61
62
  // ignore entry as a literal path resolved against the watch root, so a bare
@@ -94,6 +95,11 @@ exports.WATCHER_IGNORE_GLOBS = [
94
95
  ...IGNORED_DIR_NAMES.flatMap((name) => [`**/${name}`, `**/${name}/**`]),
95
96
  "**/*.tmp.*", // editor atomic save artifacts
96
97
  "**/*.sb-*", // Xcode swap files
98
+ // Codegen output never reaches the index (file policy drops it), so don't
99
+ // let it reach the watcher either — it is the dominant source of FSEvents
100
+ // buffer overflows on large projects. Bare "*.ext" patterns are anchored to
101
+ // the root by picomatch, so prefix them to match at any depth.
102
+ ...ignore_patterns_1.GENERATED_SOURCE_PATTERNS.map((p) => p.startsWith("**/") ? p : `**/${p}`),
97
103
  ];
98
104
  function startWatcher(opts) {
99
105
  return __awaiter(this, void 0, void 0, function* () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grepmax",
3
- "version": "0.26.20",
3
+ "version": "0.26.21",
4
4
  "author": "Robert Owens <78518764+reowens@users.noreply.github.com>",
5
5
  "homepage": "https://github.com/reowens/grepmax",
6
6
  "bugs": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grepmax",
3
- "version": "0.26.20",
3
+ "version": "0.26.21",
4
4
  "description": "Semantic code search for Claude Code. Automatically indexes your project and provides intelligent search capabilities.",
5
5
  "author": {
6
6
  "name": "Robert Owens",