fullcourtdefense-cli 1.14.9 → 1.14.10
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.
|
@@ -739,7 +739,8 @@ function printPostureReport(posture, silent) {
|
|
|
739
739
|
async function discoverCommand(args, config) {
|
|
740
740
|
const surfaces = parseSurfaces(args);
|
|
741
741
|
const silent = args.silent === 'true';
|
|
742
|
-
const
|
|
742
|
+
const uploadRequested = args.upload === 'true';
|
|
743
|
+
const deep = args.deep === 'false' ? false : (args.deep === 'true' || uploadRequested);
|
|
743
744
|
if (args.unschedule === 'true') {
|
|
744
745
|
(0, discoverSchedule_1.uninstallDailyDiscoverSchedule)();
|
|
745
746
|
if (!silent)
|
|
@@ -757,7 +758,7 @@ async function discoverCommand(args, config) {
|
|
|
757
758
|
});
|
|
758
759
|
if (!silent) {
|
|
759
760
|
const when = args.schedule === 'logon' ? 'at logon' : `daily at ${String(Number.isFinite(hour) ? hour : 9).padStart(2, '0')}:00`;
|
|
760
|
-
console.log(`Desktop discovery scheduled ${when} (runs discover --surface ${surface} --upload --silent${args.userEmail ? ` --user-email ${args.userEmail}` : ''}).`);
|
|
761
|
+
console.log(`Desktop discovery scheduled ${when} (runs discover --surface ${surface} --upload --deep --silent${args.userEmail ? ` --user-email ${args.userEmail}` : ''}).`);
|
|
761
762
|
console.log('Uses login Shield credentials or an explicit org API key.');
|
|
762
763
|
}
|
|
763
764
|
return;
|
|
@@ -837,7 +838,7 @@ async function discoverCommand(args, config) {
|
|
|
837
838
|
},
|
|
838
839
|
};
|
|
839
840
|
async function maybeUpload() {
|
|
840
|
-
if (
|
|
841
|
+
if (!uploadRequested)
|
|
841
842
|
return;
|
|
842
843
|
const creds = (0, config_1.resolveCliCredentials)(config, { apiKey: args.apiKey, apiUrl: args.apiUrl });
|
|
843
844
|
// Either an org API key OR an enrolled Shield key (from `login`) is enough.
|
|
@@ -851,7 +852,7 @@ async function discoverCommand(args, config) {
|
|
|
851
852
|
await upload(found, host, clientCoverage, creds.apiUrl, { apiKey: creds.apiKey, shieldId: creds.shieldId, shieldKey: creds.shieldKey, preferApiKey: !!args.apiKey }, args.connectorName, uploadExtras);
|
|
852
853
|
}
|
|
853
854
|
if (silent) {
|
|
854
|
-
if (
|
|
855
|
+
if (uploadRequested) {
|
|
855
856
|
const creds = (0, config_1.resolveCliCredentials)(config, { apiKey: args.apiKey, apiUrl: args.apiUrl });
|
|
856
857
|
if (!creds.apiKey && !(creds.shieldId && creds.shieldKey))
|
|
857
858
|
process.exit(1);
|
|
@@ -903,14 +904,14 @@ async function discoverCommand(args, config) {
|
|
|
903
904
|
printAgentFilesReport(agentFiles, silent);
|
|
904
905
|
if (posture)
|
|
905
906
|
printPostureReport(posture, silent);
|
|
906
|
-
if (
|
|
907
|
+
if (uploadRequested) {
|
|
907
908
|
console.log('');
|
|
908
909
|
await maybeUpload();
|
|
909
910
|
}
|
|
910
911
|
else {
|
|
911
912
|
console.log(`${COLOR.gray}Run with --upload to push results into AI Fleet.${COLOR.reset}`);
|
|
912
913
|
if (runMcp && !deep)
|
|
913
|
-
console.log(`${COLOR.gray}Add --deep to live-probe HTTP/SSE MCP servers.${COLOR.reset}`);
|
|
914
|
+
console.log(`${COLOR.gray}Add --deep to live-probe HTTP/SSE/stdio MCP servers.${COLOR.reset}`);
|
|
914
915
|
if (!surfaces.has('secrets'))
|
|
915
916
|
console.log(`${COLOR.gray}Add --surface secrets for .env / credential store scan (local-only).${COLOR.reset}`);
|
|
916
917
|
if (surfaces.size < 4)
|
|
@@ -49,7 +49,7 @@ function discoverCommandLine(userEmail, surface) {
|
|
|
49
49
|
const node = process.execPath;
|
|
50
50
|
const script = path.resolve(process.argv[1] || path.join(__dirname, '..', 'index.js'));
|
|
51
51
|
const q = (value) => (/\s/.test(value) ? `"${value}"` : value);
|
|
52
|
-
const parts = [q(node), q(script), 'discover', '--upload', '--silent'];
|
|
52
|
+
const parts = [q(node), q(script), 'discover', '--upload', '--deep', '--silent'];
|
|
53
53
|
if (surface)
|
|
54
54
|
parts.push('--surface', q(surface));
|
|
55
55
|
if (userEmail)
|
package/dist/version.json
CHANGED