scai 0.1.169 → 0.1.170

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.
@@ -228,46 +228,6 @@ export const evidenceVerifierStep = {
228
228
  });
229
229
  }
230
230
  }
231
- // -------- Structural evidence (strict) --------
232
- if (struct) {
233
- const queryTokens = query
234
- .toLowerCase()
235
- .match(/\b\w{3,}\b/g) ?? [];
236
- const querySet = new Set(queryTokens);
237
- (struct.functions ?? []).forEach(fn => {
238
- if (fn.name && querySet.has(fn.name.toLowerCase())) {
239
- evidenceItems.push({
240
- claim: `Function name matches query: "${fn.name}"`,
241
- type: "structural",
242
- excerpt: fn.name,
243
- span: { startLine: fn.start ?? 0, endLine: fn.end ?? 0 },
244
- confidence: 0.85,
245
- });
246
- }
247
- });
248
- (struct.classes ?? []).forEach(cls => {
249
- if (cls.name && querySet.has(cls.name.toLowerCase())) {
250
- evidenceItems.push({
251
- claim: `Class name matches query: "${cls.name}"`,
252
- type: "structural",
253
- excerpt: cls.name,
254
- span: { startLine: cls.start ?? 0, endLine: cls.end ?? 0 },
255
- confidence: 0.85,
256
- });
257
- }
258
- });
259
- [...(struct.imports ?? []), ...(struct.exports ?? [])].forEach(sym => {
260
- if (sym && querySet.has(sym.toLowerCase())) {
261
- evidenceItems.push({
262
- claim: `Import/Export matches query: "${sym}"`,
263
- type: "structural",
264
- excerpt: sym,
265
- span: { startLine: 0, endLine: 0 },
266
- confidence: 0.85,
267
- });
268
- }
269
- });
270
- }
271
231
  // -------- Compute file-level confidence --------
272
232
  let fileScore = 0;
273
233
  for (const ev of evidenceItems) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scai",
3
- "version": "0.1.169",
3
+ "version": "0.1.170",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "scai": "./dist/index.js"