fullcourtdefense-cli 1.21.19 → 1.21.20

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.
@@ -7,6 +7,8 @@ export interface DaemonArgs extends ProtectAllArgs {
7
7
  /** Suppress OS toasts (still logs). */
8
8
  quiet?: string;
9
9
  }
10
+ /** Arguments shared by first-boot, stale catch-up, and web-triggered scans. */
11
+ export declare function daemonDiscoverSweepArgs(): string[];
10
12
  /** Whether the daemon has been registered to start automatically. */
11
13
  export declare function isDaemonAutostartInstalled(): boolean;
12
14
  export declare function daemonCommand(args: DaemonArgs, config: BotGuardConfig): Promise<void>;
@@ -33,6 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.daemonDiscoverSweepArgs = daemonDiscoverSweepArgs;
36
37
  exports.isDaemonAutostartInstalled = isDaemonAutostartInstalled;
37
38
  exports.daemonCommand = daemonCommand;
38
39
  const fs = __importStar(require("fs"));
@@ -142,12 +143,19 @@ function stopPid(pid) {
142
143
  function logFile() {
143
144
  return path.join(daemonDir(), 'daemon.log');
144
145
  }
145
- /** Spawn `discover --upload --surface all --silent` and wait for it to finish. */
146
+ /** Arguments shared by first-boot, stale catch-up, and web-triggered scans. */
147
+ function daemonDiscoverSweepArgs() {
148
+ return ['discover', '--upload', '--surface', 'all', '--deep', 'true', '--silent', '--scan-root', 'auto'];
149
+ }
150
+ /** Spawn a full known-client discovery + posture sweep and wait for it to finish. */
146
151
  function runDiscoverSweep(timeoutMs = 300_000) {
147
152
  return new Promise((resolve, reject) => {
148
153
  // --scan-root auto sweeps the default dev roots; admin-selected folders from
149
154
  // the console are merged in by discover itself (cached runtime bundle).
150
- const child = (0, child_process_1.spawn)(process.execPath, [cliEntry(), 'discover', '--upload', '--surface', 'all', '--silent', '--scan-root', 'auto'], {
155
+ // --deep inventories tools from known configured clients (Claude Desktop,
156
+ // Cursor, etc.). We intentionally do NOT pass --deep-roots, so arbitrary
157
+ // stdio servers merely found in other project trees are never auto-spawned.
158
+ const child = (0, child_process_1.spawn)(process.execPath, [cliEntry(), ...daemonDiscoverSweepArgs()], {
151
159
  windowsHide: true,
152
160
  stdio: 'ignore',
153
161
  // Daemon/scheduled-task cwd is C:\WINDOWS\system32 — scan from the user's
package/dist/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "1.21.19"
2
+ "version": "1.21.20"
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fullcourtdefense-cli",
3
- "version": "1.21.19",
3
+ "version": "1.21.20",
4
4
  "description": "Full Court Defense CLI — security scanning for AI agents from your terminal",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -32,6 +32,7 @@
32
32
  "test:posture-blast": "npm run build && node scripts/test-posture-blast-radius.js",
33
33
  "test:ping-e2e": "npm run build && node scripts/test-ping-e2e.js",
34
34
  "test:daemon-e2e": "npm run build && node scripts/test-daemon-e2e.js",
35
+ "test:daemon-discovery-args": "npm run build && node scripts/test-daemon-discovery-args.js",
35
36
  "test:machine-action-signing": "npm run build && node scripts/test-machine-action-signing.js",
36
37
  "test:integrity": "npm run build && node scripts/test-integrity.js",
37
38
  "test:posture-overhaul": "npm run build && node scripts/test-posture-overhaul.js",