sweet-search 2.6.7 → 2.6.8

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.
@@ -67,7 +67,7 @@ export const FILE_PATTERNS = {
67
67
  '**/*.{cr,vala,hx,pas,nix,vim}', // Crystal / Vala / Haxe / Pascal / Nix / Vim
68
68
  '**/*.{elm,sol,tla,rdl,el,ejs}', // Elm / Solidity / TLA+ / SystemRDL / Emacs Lisp / EJS
69
69
  '**/*.{ql,qll}', // CodeQL
70
- '**/*.{zeek,bro}', // Zeek
70
+ '**/*.{zeek,bro,bif,pac,pac2,spicy,evt,hlt}', // Zeek + BiF + BinPAC + Spicy DSLs
71
71
  '**/*.{tcl,tk}', // Tcl
72
72
  '**/*.astro', // Astro (SFC)
73
73
  // GPU shaders
@@ -83,6 +83,23 @@ export const FILE_PATTERNS = {
83
83
  '**/*.php', // PHP
84
84
  '**/*.{swift,m,mm}', // Apple
85
85
  '**/*.{lua,zig,nim,ex,exs,dart}', // Other
86
+ // ── Task-bench coverage audit (2026-07): additional source / DSL / template / build ──
87
+ '**/*.{pyx,pxd,pxi}', // Cython
88
+ '**/*.{sbt,sc}', // Scala build / worksheets
89
+ '**/*.{rake,gemspec,podspec,ru}', // Ruby build/manifest DSLs
90
+ '**/*.{coffee,litcoffee}', // CoffeeScript
91
+ '**/*.{pcss,styl}', // PostCSS / Stylus
92
+ '**/*.{twig,liquid,njk,hbs,handlebars,mustache,gohtml,eex,heex,leex}', // HTML templating
93
+ '**/*.{pug,jade,haml,slim}', // Indentation templating
94
+ '**/*.{jinja,jinja2,j2,tera,tmpl,tpl,gotmpl}', // Text templating
95
+ '**/*.{props,targets,proj,vbproj,fsproj,resx,nuspec}', // .NET / MSBuild
96
+ '**/*.{m4,ac,am}', // Autotools
97
+ '**/*.{awk,sed}', // Text-processing scripts
98
+ '**/*.ipynb', // Jupyter notebooks (generic fixed-window chunking)
99
+ '**/*.in', // Autoconf/config templates (Makefile.in, *.py.in)
100
+ '**/*.sln', // Visual Studio solution
101
+ '**/go.mod', '**/go.work', // Go module / workspace manifests
102
+ '**/Rakefile', '**/Gemfile', // Ruby (extensionless)
86
103
  '**/*.{sh,bash,zsh,fish,ps1}', // Shell
87
104
  '**/*.sql', // SQL
88
105
  '**/*.proto', // Protobuf
@@ -155,6 +155,9 @@ export const EXTENSION_MAP = {
155
155
  '.vim': 'vim',
156
156
  '.tcl': 'tcl', '.tk': 'tcl',
157
157
  '.zeek': 'zeek', '.bro': 'zeek',
158
+ // Zeek build-time DSLs: BiF declarations, BinPAC + Spicy parser sources (generic chunking)
159
+ '.bif': 'zeek', '.pac': 'zeek', '.pac2': 'zeek',
160
+ '.spicy': 'spicy', '.evt': 'spicy', '.hlt': 'spicy',
158
161
 
159
162
  // Scientific / legacy (lowercase keys cover the uppercase .F/.F90/.S forms)
160
163
  '.f': 'fortran', '.for': 'fortran', '.f90': 'fortran', '.f95': 'fortran',
@@ -183,6 +186,37 @@ export const EXTENSION_MAP = {
183
186
  '.ninja': 'ninja',
184
187
  '.bzl': 'starlark', '.star': 'starlark',
185
188
 
189
+ // ── Task-bench coverage audit (2026-07): additional source / DSL / template / build ──
190
+ // Cython (Python-like syntax → reuse the wired python chunker)
191
+ '.pyx': 'python', '.pxd': 'python', '.pxi': 'python',
192
+ // Scala build definitions / worksheets (→ scala grammar)
193
+ '.sbt': 'scala', '.sc': 'scala',
194
+ // Ruby build & manifest DSLs (→ ruby grammar)
195
+ '.rake': 'ruby', '.gemspec': 'ruby', '.podspec': 'ruby', '.ru': 'ruby',
196
+ // CoffeeScript (no bundled grammar → generic chunking)
197
+ '.coffee': 'coffeescript', '.litcoffee': 'coffeescript',
198
+ // Style preprocessors
199
+ '.pcss': 'css', '.styl': 'stylus',
200
+ // HTML-based templating (reuse the html SFC path, like .vue/.svelte)
201
+ '.twig': 'html', '.liquid': 'html', '.njk': 'html', '.hbs': 'html',
202
+ '.handlebars': 'html', '.mustache': 'html', '.gohtml': 'html',
203
+ '.eex': 'html', '.heex': 'html', '.leex': 'html',
204
+ // Indentation-based templating (generic chunking; not HTML syntax)
205
+ '.pug': 'pug', '.jade': 'pug', '.haml': 'haml', '.slim': 'slim',
206
+ // Polymorphic text templating (any target text → generic chunking)
207
+ '.jinja': 'jinja', '.jinja2': 'jinja', '.j2': 'jinja',
208
+ '.tera': 'jinja', '.tmpl': 'jinja', '.tpl': 'jinja', '.gotmpl': 'jinja',
209
+ // .NET / MSBuild project & resource files (XML dialects → xml grammar)
210
+ '.props': 'xml', '.targets': 'xml', '.proj': 'xml',
211
+ '.vbproj': 'xml', '.fsproj': 'xml', '.resx': 'xml', '.nuspec': 'xml',
212
+ // Autotools / text-processing script sources (generic chunking)
213
+ '.m4': 'm4', '.ac': 'm4', '.am': 'makefile',
214
+ '.awk': 'awk', '.sed': 'sed',
215
+ // Jupyter notebooks — chunker-less id → parseGenericFile (fixed-window, lossless)
216
+ // over the raw JSON. Not JSON-AST-chunked (that would emit one giant cells chunk).
217
+ // Image-heavy notebooks self-filter via the admission maxFileSize (1MB) gate.
218
+ '.ipynb': 'jupyter',
219
+
186
220
  // Document formats (dispatched to DocumentChunker in ast-chunker.js)
187
221
  '.md': 'markdown', '.mdx': 'markdown', '.markdown': 'markdown',
188
222
  '.rst': 'rst',
@@ -201,4 +235,7 @@ export const FILENAME_MAP = {
201
235
  Earthfile: 'earthfile',
202
236
  justfile: 'just',
203
237
  Justfile: 'just',
238
+ // Ruby extensionless build files (→ ruby grammar)
239
+ Rakefile: 'ruby',
240
+ Gemfile: 'ruby',
204
241
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sweet-search",
3
- "version": "2.6.7",
3
+ "version": "2.6.8",
4
4
  "description": "Sweet Search - SOTA Hybrid Code Search Engine with WASM CatBoost Query Router, Semantic/Lexical/Structural Search, and Multilingual Support",
5
5
  "type": "module",
6
6
  "main": "core/search/sweet-search.js",
@@ -167,13 +167,13 @@
167
167
  "vitest": "^4.0.16"
168
168
  },
169
169
  "optionalDependencies": {
170
- "@sweet-search/native-darwin-arm64": "2.6.7",
171
- "@sweet-search/native-darwin-x64": "2.6.7",
172
- "@sweet-search/native-linux-arm64-gnu": "2.6.7",
173
- "@sweet-search/native-linux-arm64-gnu-cuda": "2.6.7",
174
- "@sweet-search/native-linux-x64-gnu": "2.6.7",
175
- "@sweet-search/native-linux-x64-gnu-cuda": "2.6.7",
176
- "@sweet-search/bg-priority": "2.6.7"
170
+ "@sweet-search/native-darwin-arm64": "2.6.8",
171
+ "@sweet-search/native-darwin-x64": "2.6.8",
172
+ "@sweet-search/native-linux-arm64-gnu": "2.6.8",
173
+ "@sweet-search/native-linux-arm64-gnu-cuda": "2.6.8",
174
+ "@sweet-search/native-linux-x64-gnu": "2.6.8",
175
+ "@sweet-search/native-linux-x64-gnu-cuda": "2.6.8",
176
+ "@sweet-search/bg-priority": "2.6.8"
177
177
  },
178
178
  "engines": {
179
179
  "node": ">=18.0.0"