@probelabs/probe 0.6.0-rc175 → 0.6.0-rc176

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.
@@ -8323,7 +8323,7 @@ var init_vercel = __esm({
8323
8323
  path: searchPath,
8324
8324
  cwd: options.cwd,
8325
8325
  // Working directory for resolving relative paths
8326
- allowTests: allow_tests,
8326
+ allowTests: allow_tests ?? true,
8327
8327
  exact,
8328
8328
  json: false,
8329
8329
  maxTokens: effectiveMaxTokens,
@@ -8368,7 +8368,7 @@ var init_vercel = __esm({
8368
8368
  cwd: options.cwd,
8369
8369
  // Working directory for resolving relative paths
8370
8370
  language,
8371
- allow_tests,
8371
+ allowTests: allow_tests ?? true,
8372
8372
  json: false
8373
8373
  });
8374
8374
  return results;
@@ -8414,7 +8414,7 @@ var init_vercel = __esm({
8414
8414
  extractOptions = {
8415
8415
  inputFile: tempFilePath,
8416
8416
  cwd: effectiveCwd,
8417
- allowTests: allow_tests,
8417
+ allowTests: allow_tests ?? true,
8418
8418
  contextLines: context_lines,
8419
8419
  format: effectiveFormat
8420
8420
  };
@@ -8427,7 +8427,7 @@ var init_vercel = __esm({
8427
8427
  extractOptions = {
8428
8428
  files,
8429
8429
  cwd: effectiveCwd,
8430
- allowTests: allow_tests,
8430
+ allowTests: allow_tests ?? true,
8431
8431
  contextLines: context_lines,
8432
8432
  format: effectiveFormat
8433
8433
  };
@@ -10460,6 +10460,17 @@ var init_simpleTelemetry = __esm({
10460
10460
  console.log("[Event]", name, attributes);
10461
10461
  }
10462
10462
  }
10463
+ /**
10464
+ * Record a generic event (used by completionPrompt and other features)
10465
+ */
10466
+ // visor-disable: SimpleAppTracer uses this.sessionId because it's a per-session instance. AppTracer extracts from attributes because it's a singleton managing multiple sessions. Different architectures require different approaches.
10467
+ recordEvent(name, attributes = {}) {
10468
+ if (!this.isEnabled()) return;
10469
+ this.addEvent(name, {
10470
+ "session.id": this.sessionId,
10471
+ ...attributes
10472
+ });
10473
+ }
10463
10474
  /**
10464
10475
  * Record delegation events
10465
10476
  */
@@ -170,6 +170,19 @@ export class SimpleAppTracer {
170
170
  }
171
171
  }
172
172
 
173
+ /**
174
+ * Record a generic event (used by completionPrompt and other features)
175
+ */
176
+ // visor-disable: SimpleAppTracer uses this.sessionId because it's a per-session instance. AppTracer extracts from attributes because it's a singleton managing multiple sessions. Different architectures require different approaches.
177
+ recordEvent(name, attributes = {}) {
178
+ if (!this.isEnabled()) return;
179
+
180
+ this.addEvent(name, {
181
+ 'session.id': this.sessionId,
182
+ ...attributes
183
+ });
184
+ }
185
+
173
186
  /**
174
187
  * Record delegation events
175
188
  */
@@ -22,7 +22,7 @@ export function createSearchTool(options = {}) {
22
22
  query: searchQuery,
23
23
  path,
24
24
  cwd, // Working directory for resolving relative paths
25
- allow_tests,
25
+ allowTests: allow_tests ?? true,
26
26
  exact,
27
27
  json: false,
28
28
  maxResults,
@@ -54,7 +54,7 @@ export function createQueryTool(options = {}) {
54
54
  path,
55
55
  cwd, // Working directory for resolving relative paths
56
56
  language,
57
- allow_tests,
57
+ allowTests: allow_tests ?? true,
58
58
  json: false
59
59
  });
60
60
 
@@ -83,7 +83,7 @@ export function createExtractTool(options = {}) {
83
83
  const results = await extract({
84
84
  files,
85
85
  cwd, // Working directory for resolving relative paths
86
- allowTests: allow_tests,
86
+ allowTests: allow_tests ?? true,
87
87
  contextLines: context_lines,
88
88
  format
89
89
  });
@@ -50,7 +50,7 @@ export const searchTool = (options = {}) => {
50
50
  query: searchQuery,
51
51
  path: searchPath,
52
52
  cwd: options.cwd, // Working directory for resolving relative paths
53
- allowTests: allow_tests,
53
+ allowTests: allow_tests ?? true,
54
54
  exact,
55
55
  json: false,
56
56
  maxTokens: effectiveMaxTokens,
@@ -110,7 +110,7 @@ export const queryTool = (options = {}) => {
110
110
  path: queryPath,
111
111
  cwd: options.cwd, // Working directory for resolving relative paths
112
112
  language,
113
- allow_tests,
113
+ allowTests: allow_tests ?? true,
114
114
  json: false
115
115
  });
116
116
 
@@ -179,7 +179,7 @@ export const extractTool = (options = {}) => {
179
179
  extractOptions = {
180
180
  inputFile: tempFilePath,
181
181
  cwd: effectiveCwd,
182
- allowTests: allow_tests,
182
+ allowTests: allow_tests ?? true,
183
183
  contextLines: context_lines,
184
184
  format: effectiveFormat
185
185
  };
@@ -198,7 +198,7 @@ export const extractTool = (options = {}) => {
198
198
  extractOptions = {
199
199
  files,
200
200
  cwd: effectiveCwd,
201
- allowTests: allow_tests,
201
+ allowTests: allow_tests ?? true,
202
202
  contextLines: context_lines,
203
203
  format: effectiveFormat
204
204
  };
@@ -34427,7 +34427,7 @@ var init_vercel = __esm({
34427
34427
  path: searchPath,
34428
34428
  cwd: options.cwd,
34429
34429
  // Working directory for resolving relative paths
34430
- allowTests: allow_tests,
34430
+ allowTests: allow_tests ?? true,
34431
34431
  exact,
34432
34432
  json: false,
34433
34433
  maxTokens: effectiveMaxTokens,
@@ -34472,7 +34472,7 @@ var init_vercel = __esm({
34472
34472
  cwd: options.cwd,
34473
34473
  // Working directory for resolving relative paths
34474
34474
  language,
34475
- allow_tests,
34475
+ allowTests: allow_tests ?? true,
34476
34476
  json: false
34477
34477
  });
34478
34478
  return results;
@@ -34518,7 +34518,7 @@ var init_vercel = __esm({
34518
34518
  extractOptions = {
34519
34519
  inputFile: tempFilePath,
34520
34520
  cwd: effectiveCwd,
34521
- allowTests: allow_tests,
34521
+ allowTests: allow_tests ?? true,
34522
34522
  contextLines: context_lines,
34523
34523
  format: effectiveFormat
34524
34524
  };
@@ -34531,7 +34531,7 @@ var init_vercel = __esm({
34531
34531
  extractOptions = {
34532
34532
  files,
34533
34533
  cwd: effectiveCwd,
34534
- allowTests: allow_tests,
34534
+ allowTests: allow_tests ?? true,
34535
34535
  contextLines: context_lines,
34536
34536
  format: effectiveFormat
34537
34537
  };
@@ -164,6 +164,17 @@ var SimpleAppTracer = class {
164
164
  console.log("[Event]", name, attributes);
165
165
  }
166
166
  }
167
+ /**
168
+ * Record a generic event (used by completionPrompt and other features)
169
+ */
170
+ // visor-disable: SimpleAppTracer uses this.sessionId because it's a per-session instance. AppTracer extracts from attributes because it's a singleton managing multiple sessions. Different architectures require different approaches.
171
+ recordEvent(name, attributes = {}) {
172
+ if (!this.isEnabled()) return;
173
+ this.addEvent(name, {
174
+ "session.id": this.sessionId,
175
+ ...attributes
176
+ });
177
+ }
167
178
  /**
168
179
  * Record delegation events
169
180
  */
package/cjs/index.cjs CHANGED
@@ -85849,7 +85849,7 @@ var init_vercel = __esm({
85849
85849
  path: searchPath,
85850
85850
  cwd: options.cwd,
85851
85851
  // Working directory for resolving relative paths
85852
- allowTests: allow_tests,
85852
+ allowTests: allow_tests ?? true,
85853
85853
  exact,
85854
85854
  json: false,
85855
85855
  maxTokens: effectiveMaxTokens,
@@ -85894,7 +85894,7 @@ var init_vercel = __esm({
85894
85894
  cwd: options.cwd,
85895
85895
  // Working directory for resolving relative paths
85896
85896
  language,
85897
- allow_tests,
85897
+ allowTests: allow_tests ?? true,
85898
85898
  json: false
85899
85899
  });
85900
85900
  return results;
@@ -85940,7 +85940,7 @@ var init_vercel = __esm({
85940
85940
  extractOptions = {
85941
85941
  inputFile: tempFilePath,
85942
85942
  cwd: effectiveCwd,
85943
- allowTests: allow_tests,
85943
+ allowTests: allow_tests ?? true,
85944
85944
  contextLines: context_lines,
85945
85945
  format: effectiveFormat
85946
85946
  };
@@ -85953,7 +85953,7 @@ var init_vercel = __esm({
85953
85953
  extractOptions = {
85954
85954
  files,
85955
85955
  cwd: effectiveCwd,
85956
- allowTests: allow_tests,
85956
+ allowTests: allow_tests ?? true,
85957
85957
  contextLines: context_lines,
85958
85958
  format: effectiveFormat
85959
85959
  };
@@ -87613,7 +87613,7 @@ function createSearchTool(options = {}) {
87613
87613
  path: path9,
87614
87614
  cwd,
87615
87615
  // Working directory for resolving relative paths
87616
- allow_tests,
87616
+ allowTests: allow_tests ?? true,
87617
87617
  exact,
87618
87618
  json: false,
87619
87619
  maxResults,
@@ -87642,7 +87642,7 @@ function createQueryTool(options = {}) {
87642
87642
  cwd,
87643
87643
  // Working directory for resolving relative paths
87644
87644
  language,
87645
- allow_tests,
87645
+ allowTests: allow_tests ?? true,
87646
87646
  json: false
87647
87647
  });
87648
87648
  return results;
@@ -87666,7 +87666,7 @@ function createExtractTool(options = {}) {
87666
87666
  files,
87667
87667
  cwd,
87668
87668
  // Working directory for resolving relative paths
87669
- allowTests: allow_tests,
87669
+ allowTests: allow_tests ?? true,
87670
87670
  contextLines: context_lines,
87671
87671
  format: format2
87672
87672
  });
@@ -88137,6 +88137,17 @@ var init_simpleTelemetry = __esm({
88137
88137
  console.log("[Event]", name14, attributes);
88138
88138
  }
88139
88139
  }
88140
+ /**
88141
+ * Record a generic event (used by completionPrompt and other features)
88142
+ */
88143
+ // visor-disable: SimpleAppTracer uses this.sessionId because it's a per-session instance. AppTracer extracts from attributes because it's a singleton managing multiple sessions. Different architectures require different approaches.
88144
+ recordEvent(name14, attributes = {}) {
88145
+ if (!this.isEnabled()) return;
88146
+ this.addEvent(name14, {
88147
+ "session.id": this.sessionId,
88148
+ ...attributes
88149
+ });
88150
+ }
88140
88151
  /**
88141
88152
  * Record delegation events
88142
88153
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@probelabs/probe",
3
- "version": "0.6.0-rc175",
3
+ "version": "0.6.0-rc176",
4
4
  "description": "Node.js wrapper for the probe code search tool",
5
5
  "main": "src/index.js",
6
6
  "module": "src/index.js",
@@ -170,6 +170,19 @@ export class SimpleAppTracer {
170
170
  }
171
171
  }
172
172
 
173
+ /**
174
+ * Record a generic event (used by completionPrompt and other features)
175
+ */
176
+ // visor-disable: SimpleAppTracer uses this.sessionId because it's a per-session instance. AppTracer extracts from attributes because it's a singleton managing multiple sessions. Different architectures require different approaches.
177
+ recordEvent(name, attributes = {}) {
178
+ if (!this.isEnabled()) return;
179
+
180
+ this.addEvent(name, {
181
+ 'session.id': this.sessionId,
182
+ ...attributes
183
+ });
184
+ }
185
+
173
186
  /**
174
187
  * Record delegation events
175
188
  */
@@ -22,7 +22,7 @@ export function createSearchTool(options = {}) {
22
22
  query: searchQuery,
23
23
  path,
24
24
  cwd, // Working directory for resolving relative paths
25
- allow_tests,
25
+ allowTests: allow_tests ?? true,
26
26
  exact,
27
27
  json: false,
28
28
  maxResults,
@@ -54,7 +54,7 @@ export function createQueryTool(options = {}) {
54
54
  path,
55
55
  cwd, // Working directory for resolving relative paths
56
56
  language,
57
- allow_tests,
57
+ allowTests: allow_tests ?? true,
58
58
  json: false
59
59
  });
60
60
 
@@ -83,7 +83,7 @@ export function createExtractTool(options = {}) {
83
83
  const results = await extract({
84
84
  files,
85
85
  cwd, // Working directory for resolving relative paths
86
- allowTests: allow_tests,
86
+ allowTests: allow_tests ?? true,
87
87
  contextLines: context_lines,
88
88
  format
89
89
  });
@@ -50,7 +50,7 @@ export const searchTool = (options = {}) => {
50
50
  query: searchQuery,
51
51
  path: searchPath,
52
52
  cwd: options.cwd, // Working directory for resolving relative paths
53
- allowTests: allow_tests,
53
+ allowTests: allow_tests ?? true,
54
54
  exact,
55
55
  json: false,
56
56
  maxTokens: effectiveMaxTokens,
@@ -110,7 +110,7 @@ export const queryTool = (options = {}) => {
110
110
  path: queryPath,
111
111
  cwd: options.cwd, // Working directory for resolving relative paths
112
112
  language,
113
- allow_tests,
113
+ allowTests: allow_tests ?? true,
114
114
  json: false
115
115
  });
116
116
 
@@ -179,7 +179,7 @@ export const extractTool = (options = {}) => {
179
179
  extractOptions = {
180
180
  inputFile: tempFilePath,
181
181
  cwd: effectiveCwd,
182
- allowTests: allow_tests,
182
+ allowTests: allow_tests ?? true,
183
183
  contextLines: context_lines,
184
184
  format: effectiveFormat
185
185
  };
@@ -198,7 +198,7 @@ export const extractTool = (options = {}) => {
198
198
  extractOptions = {
199
199
  files,
200
200
  cwd: effectiveCwd,
201
- allowTests: allow_tests,
201
+ allowTests: allow_tests ?? true,
202
202
  contextLines: context_lines,
203
203
  format: effectiveFormat
204
204
  };