fullcourtdefense-cli 1.21.24 → 1.21.25

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.
@@ -253,11 +253,21 @@ function scanProjectRootAgentFiles(root, clientLabel, out, seen, excludedRoots =
253
253
  sizeBytes: parsed.sizeBytes,
254
254
  lineCount: parsed.lineCount,
255
255
  content: parsed.content,
256
- riskTags: parsed.content.includes('fullcourtdefense') ? [] : ['no_runtime_hook'],
256
+ riskTags: hasFcdRuntimeHook(parsed.content) ? [] : ['no_runtime_hook'],
257
257
  });
258
258
  }
259
259
  }
260
260
  }
261
+ /**
262
+ * Whether a hooks config already routes through the FCD runtime hook.
263
+ * MUST be case-insensitive: MSI installs write CamelCase paths
264
+ * ("C:\Program Files (x86)\FullCourtDefense\…") while npm installs are
265
+ * lowercase — a case-sensitive check flagged every MSI machine as unhooked
266
+ * (first seen on the first customer install). Mirrors onboard's checkCursorHooks.
267
+ */
268
+ function hasFcdRuntimeHook(content) {
269
+ return /fullcourtdefense|fcd-managed|botguard/i.test(content);
270
+ }
261
271
  function scanAgentFilesWithMetadata(options = {}) {
262
272
  const home = os.homedir();
263
273
  const cwd = options.cwd || process.cwd();
@@ -303,7 +313,7 @@ function scanAgentFilesWithMetadata(options = {}) {
303
313
  sizeBytes: parsed.sizeBytes,
304
314
  lineCount: parsed.lineCount,
305
315
  content: parsed.content,
306
- riskTags: parsed.content.includes('fullcourtdefense') ? [] : ['no_runtime_hook'],
316
+ riskTags: hasFcdRuntimeHook(parsed.content) ? [] : ['no_runtime_hook'],
307
317
  });
308
318
  }
309
319
  }
package/dist/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "1.21.24"
2
+ "version": "1.21.25"
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fullcourtdefense-cli",
3
- "version": "1.21.24",
3
+ "version": "1.21.25",
4
4
  "description": "Full Court Defense CLI — security scanning for AI agents from your terminal",
5
5
  "main": "dist/index.js",
6
6
  "bin": {