@proxysoul/soulforge 1.3.1 → 1.3.3

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.
@@ -0,0 +1,284 @@
1
+ ; Query from: https://github.com/nvim-treesitter/nvim-treesitter/raw/refs/heads/master/queries/zig/highlights.scm
2
+ ; Variables
3
+ (identifier) @variable
4
+
5
+ ; Parameters
6
+ (parameter
7
+ name: (identifier) @variable.parameter)
8
+
9
+ (payload
10
+ (identifier) @variable.parameter)
11
+
12
+ ; Types
13
+ (parameter
14
+ type: (identifier) @type)
15
+
16
+ ((identifier) @type
17
+ (#lua-match? @type "^[A-Z_][a-zA-Z0-9_]*"))
18
+
19
+ (variable_declaration
20
+ (identifier) @type
21
+ "="
22
+ [
23
+ (struct_declaration)
24
+ (enum_declaration)
25
+ (union_declaration)
26
+ (opaque_declaration)
27
+ ])
28
+
29
+ [
30
+ (builtin_type)
31
+ "anyframe"
32
+ ] @type.builtin
33
+
34
+ ; Constants
35
+ ((identifier) @constant
36
+ (#lua-match? @constant "^[A-Z][A-Z_0-9]+$"))
37
+
38
+ [
39
+ "null"
40
+ "unreachable"
41
+ "undefined"
42
+ ] @constant.builtin
43
+
44
+ (field_expression
45
+ .
46
+ member: (identifier) @constant)
47
+
48
+ (enum_declaration
49
+ (container_field
50
+ type: (identifier) @constant))
51
+
52
+ ; Labels
53
+ (block_label
54
+ (identifier) @label)
55
+
56
+ (break_label
57
+ (identifier) @label)
58
+
59
+ ; Fields
60
+ (field_initializer
61
+ .
62
+ (identifier) @variable.member)
63
+
64
+ (field_expression
65
+ (_)
66
+ member: (identifier) @variable.member)
67
+
68
+ (container_field
69
+ name: (identifier) @variable.member)
70
+
71
+ (initializer_list
72
+ (assignment_expression
73
+ left: (field_expression
74
+ .
75
+ member: (identifier) @variable.member)))
76
+
77
+ ; Functions
78
+ (builtin_identifier) @function.builtin
79
+
80
+ (call_expression
81
+ function: (identifier) @function.call)
82
+
83
+ (call_expression
84
+ function: (field_expression
85
+ member: (identifier) @function.call))
86
+
87
+ (function_declaration
88
+ name: (identifier) @function)
89
+
90
+ ; Modules
91
+ (variable_declaration
92
+ (identifier) @module
93
+ (builtin_function
94
+ (builtin_identifier) @keyword.import
95
+ (#any-of? @keyword.import "@import" "@cImport")))
96
+
97
+ ; Builtins
98
+ [
99
+ "c"
100
+ "..."
101
+ ] @variable.builtin
102
+
103
+ ((identifier) @variable.builtin
104
+ (#eq? @variable.builtin "_"))
105
+
106
+ (calling_convention
107
+ (identifier) @variable.builtin)
108
+
109
+ ; Keywords
110
+ [
111
+ "asm"
112
+ "defer"
113
+ "errdefer"
114
+ "test"
115
+ "error"
116
+ "const"
117
+ "var"
118
+ ] @keyword
119
+
120
+ [
121
+ "struct"
122
+ "union"
123
+ "enum"
124
+ "opaque"
125
+ ] @keyword.type
126
+
127
+ [
128
+ "async"
129
+ "await"
130
+ "suspend"
131
+ "nosuspend"
132
+ "resume"
133
+ ] @keyword.coroutine
134
+
135
+ "fn" @keyword.function
136
+
137
+ [
138
+ "and"
139
+ "or"
140
+ "orelse"
141
+ ] @keyword.operator
142
+
143
+ "return" @keyword.return
144
+
145
+ [
146
+ "if"
147
+ "else"
148
+ "switch"
149
+ ] @keyword.conditional
150
+
151
+ [
152
+ "for"
153
+ "while"
154
+ "break"
155
+ "continue"
156
+ ] @keyword.repeat
157
+
158
+ [
159
+ "usingnamespace"
160
+ "export"
161
+ ] @keyword.import
162
+
163
+ [
164
+ "try"
165
+ "catch"
166
+ ] @keyword.exception
167
+
168
+ [
169
+ "volatile"
170
+ "allowzero"
171
+ "noalias"
172
+ "addrspace"
173
+ "align"
174
+ "callconv"
175
+ "linksection"
176
+ "pub"
177
+ "inline"
178
+ "noinline"
179
+ "extern"
180
+ "comptime"
181
+ "packed"
182
+ "threadlocal"
183
+ ] @keyword.modifier
184
+
185
+ ; Operator
186
+ [
187
+ "="
188
+ "*="
189
+ "*%="
190
+ "*|="
191
+ "/="
192
+ "%="
193
+ "+="
194
+ "+%="
195
+ "+|="
196
+ "-="
197
+ "-%="
198
+ "-|="
199
+ "<<="
200
+ "<<|="
201
+ ">>="
202
+ "&="
203
+ "^="
204
+ "|="
205
+ "!"
206
+ "~"
207
+ "-"
208
+ "-%"
209
+ "&"
210
+ "=="
211
+ "!="
212
+ ">"
213
+ ">="
214
+ "<="
215
+ "<"
216
+ "&"
217
+ "^"
218
+ "|"
219
+ "<<"
220
+ ">>"
221
+ "<<|"
222
+ "+"
223
+ "++"
224
+ "+%"
225
+ "-%"
226
+ "+|"
227
+ "-|"
228
+ "*"
229
+ "/"
230
+ "%"
231
+ "**"
232
+ "*%"
233
+ "*|"
234
+ "||"
235
+ ".*"
236
+ ".?"
237
+ "?"
238
+ ".."
239
+ ] @operator
240
+
241
+ ; Literals
242
+ (character) @character
243
+
244
+ ([
245
+ (string)
246
+ (multiline_string)
247
+ ] @string
248
+ (#set! "priority" 95))
249
+
250
+ (integer) @number
251
+
252
+ (float) @number.float
253
+
254
+ (boolean) @boolean
255
+
256
+ (escape_sequence) @string.escape
257
+
258
+ ; Punctuation
259
+ [
260
+ "["
261
+ "]"
262
+ "("
263
+ ")"
264
+ "{"
265
+ "}"
266
+ ] @punctuation.bracket
267
+
268
+ [
269
+ ";"
270
+ "."
271
+ ","
272
+ ":"
273
+ "=>"
274
+ "->"
275
+ ] @punctuation.delimiter
276
+
277
+ (payload
278
+ "|" @punctuation.bracket)
279
+
280
+ ; Comments
281
+ (comment) @comment @spell
282
+
283
+ ((comment) @comment.documentation
284
+ (#lua-match? @comment.documentation "^//!"))
@@ -22207,7 +22207,7 @@ __export(exports_tree_sitter2, {
22207
22207
  import { existsSync as existsSync2 } from "fs";
22208
22208
  import { readFile } from "fs/promises";
22209
22209
  import { homedir as homedir2 } from "os";
22210
- import { join as join4, resolve as resolve2 } from "path";
22210
+ import { dirname, join as join4, resolve as resolve2 } from "path";
22211
22211
  function extractImportSpecifiers(node, language) {
22212
22212
  const specifiers = [];
22213
22213
  collectSpecifiers(node, language, specifiers);
@@ -23342,11 +23342,17 @@ var init_tree_sitter2 = __esm(() => {
23342
23342
  if (TreeSitterBackend.IS_BUNDLED) {
23343
23343
  return join4(BUNDLED_WASM_DIR, basename3);
23344
23344
  }
23345
- const cwd = process.cwd();
23346
- const devPaths = [join4(cwd, "node_modules", "web-tree-sitter", basename3), join4(cwd, "node_modules", "tree-sitter-wasms", "out", basename3)];
23347
- for (const p2 of devPaths) {
23348
- if (existsSync2(p2))
23349
- return p2;
23345
+ let dir = import.meta.dir;
23346
+ for (let i4 = 0;i4 < 5; i4++) {
23347
+ for (const sub of ["node_modules/web-tree-sitter", "node_modules/tree-sitter-wasms/out"]) {
23348
+ const p2 = join4(dir, sub, basename3);
23349
+ if (existsSync2(p2))
23350
+ return p2;
23351
+ }
23352
+ const parent = dirname(dir);
23353
+ if (parent === dir)
23354
+ break;
23355
+ dir = parent;
23350
23356
  }
23351
23357
  return join4(BUNDLED_WASM_DIR, basename3);
23352
23358
  }
@@ -24069,7 +24075,7 @@ import { Database } from "bun:sqlite";
24069
24075
  import { execSync } from "child_process";
24070
24076
  import { chmodSync, existsSync as existsSync3, mkdirSync, readFileSync as readFileSync2, statSync } from "fs";
24071
24077
  import { stat as statAsync } from "fs/promises";
24072
- import { dirname, extname as extname2, join as join5, relative, resolve as resolve3 } from "path";
24078
+ import { dirname as dirname2, extname as extname2, join as join5, relative, resolve as resolve3 } from "path";
24073
24079
 
24074
24080
  class RepoMap {
24075
24081
  db;
@@ -24783,7 +24789,7 @@ class RepoMap {
24783
24789
  return this.tsconfigPaths;
24784
24790
  }
24785
24791
  resolveImportSource(importSource, importerAbsPath) {
24786
- const importerDir = dirname(importerAbsPath);
24792
+ const importerDir = dirname2(importerAbsPath);
24787
24793
  let normalized = null;
24788
24794
  if (importSource.startsWith("./") || importSource.startsWith("../")) {
24789
24795
  normalized = importSource.replace(/\.(m?js|cjs|jsx)$/, "");
@@ -29705,7 +29711,7 @@ __export(exports_lsp, {
29705
29711
  });
29706
29712
  import { existsSync as existsSync7 } from "fs";
29707
29713
  import { readdir as readdir2, readFile as readFile4 } from "fs/promises";
29708
- import { dirname as dirname2, join as join9, resolve as resolve4 } from "path";
29714
+ import { dirname as dirname3, join as join9, resolve as resolve4 } from "path";
29709
29715
  function getNvimBridge() {
29710
29716
  if (_nvimBridge === null) {
29711
29717
  try {
@@ -30857,14 +30863,14 @@ function findProjectRootForLanguage(file, language) {
30857
30863
  const markers = PROJECT_FILES[language];
30858
30864
  if (!markers)
30859
30865
  return null;
30860
- let dir = dirname2(resolve4(file));
30866
+ let dir = dirname3(resolve4(file));
30861
30867
  const root2 = resolve4("/");
30862
30868
  while (dir !== root2) {
30863
30869
  for (const marker of markers) {
30864
30870
  if (existsSync7(join9(dir, marker)))
30865
30871
  return dir;
30866
30872
  }
30867
- dir = dirname2(dir);
30873
+ dir = dirname3(dir);
30868
30874
  }
30869
30875
  return null;
30870
30876
  }
@@ -201584,7 +201590,7 @@ var require_path_browserify = __commonJS((exports, module2) => {
201584
201590
  _makeLong: function _makeLong(path) {
201585
201591
  return path;
201586
201592
  },
201587
- dirname: function dirname3(path) {
201593
+ dirname: function dirname4(path) {
201588
201594
  assertPath(path);
201589
201595
  if (path.length === 0)
201590
201596
  return ".";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proxysoul/soulforge",
3
- "version": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "description": "Graph-powered code intelligence — multi-agent coding with codebase-aware AI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -83,4 +83,4 @@
83
83
  "zod": "4.3.6",
84
84
  "zustand": "5.0.12"
85
85
  }
86
- }
86
+ }