diff --git a/library/agent/Agent.test.ts b/library/agent/Agent.test.ts index 446c6f97b..ba171cd63 100644 --- a/library/agent/Agent.test.ts +++ b/library/agent/Agent.test.ts @@ -104,6 +104,11 @@ t.test("it sends started event", async (t) => { version: getSemverNodeVersion(), arch: process.arch, }, + supportedFeatures: [ + "sca_package_reporting", + "ai_stats", + "attack_wave_detection", + ], }, }, ]); diff --git a/library/agent/Agent.ts b/library/agent/Agent.ts index a5165a2a6..a187072c2 100644 --- a/library/agent/Agent.ts +++ b/library/agent/Agent.ts @@ -480,6 +480,11 @@ export class Agent { version: getSemverNodeVersion(), arch: process.arch, }, + supportedFeatures: [ + "sca_package_reporting", + "ai_stats", + "attack_wave_detection", + ], }; } diff --git a/library/agent/AttackLogger.test.ts b/library/agent/AttackLogger.test.ts index f4bf6cccb..c6df2cfac 100644 --- a/library/agent/AttackLogger.test.ts +++ b/library/agent/AttackLogger.test.ts @@ -97,6 +97,11 @@ function generateAttackEvent(): DetectedAttack { version: "version", arch: "arch", }, + supportedFeatures: [ + "sca_package_reporting", + "ai_stats", + "attack_wave_detection", + ], }, }; } diff --git a/library/agent/api/Event.ts b/library/agent/api/Event.ts index 96e86c461..05a36caf0 100644 --- a/library/agent/api/Event.ts +++ b/library/agent/api/Event.ts @@ -24,6 +24,7 @@ export type AgentInfo = { nodeEnv: string; serverless: boolean; stack: string[]; + supportedFeatures: string[]; }; type Started = { diff --git a/library/agent/api/ReportingAPINodeHTTP.test.ts b/library/agent/api/ReportingAPINodeHTTP.test.ts index 97de5bec1..e8901a22f 100644 --- a/library/agent/api/ReportingAPINodeHTTP.test.ts +++ b/library/agent/api/ReportingAPINodeHTTP.test.ts @@ -31,6 +31,11 @@ function generateStartedEvent(): Event { version: "version", arch: "arch", }, + supportedFeatures: [ + "sca_package_reporting", + "ai_stats", + "attack_wave_detection", + ], }, }; } diff --git a/library/agent/api/ReportingAPIRateLimitedClientSide.test.ts b/library/agent/api/ReportingAPIRateLimitedClientSide.test.ts index 73a746571..34a5df8f4 100644 --- a/library/agent/api/ReportingAPIRateLimitedClientSide.test.ts +++ b/library/agent/api/ReportingAPIRateLimitedClientSide.test.ts @@ -53,6 +53,11 @@ function generateAttackEvent(): Event { version: "version", arch: "arch", }, + supportedFeatures: [ + "sca_package_reporting", + "ai_stats", + "attack_wave_detection", + ], }, }; } @@ -92,6 +97,11 @@ function generateAttackWaveEvent(): Event { version: "version", arch: "arch", }, + supportedFeatures: [ + "sca_package_reporting", + "ai_stats", + "attack_wave_detection", + ], }, }; } @@ -150,6 +160,11 @@ function generateStartedEvent(): Event { version: "version", arch: "arch", }, + supportedFeatures: [ + "sca_package_reporting", + "ai_stats", + "attack_wave_detection", + ], }, }; } @@ -229,6 +244,11 @@ function generateHeartbeatEvent(): Event { version: "version", arch: "arch", }, + supportedFeatures: [ + "sca_package_reporting", + "ai_stats", + "attack_wave_detection", + ], }, hostnames: [], routes: [], diff --git a/library/agent/api/ReportingAPIRateLimitedServerSide.test.ts b/library/agent/api/ReportingAPIRateLimitedServerSide.test.ts index 60f307d82..d0f1dc750 100644 --- a/library/agent/api/ReportingAPIRateLimitedServerSide.test.ts +++ b/library/agent/api/ReportingAPIRateLimitedServerSide.test.ts @@ -31,6 +31,11 @@ function generateStartedEvent(): Event { version: "version", arch: "arch", }, + supportedFeatures: [ + "sca_package_reporting", + "ai_stats", + "attack_wave_detection", + ], }, }; } diff --git a/library/agent/api/ReportingAPIThatValidatesToken.test.ts b/library/agent/api/ReportingAPIThatValidatesToken.test.ts index c272c86a2..cffe8ce16 100644 --- a/library/agent/api/ReportingAPIThatValidatesToken.test.ts +++ b/library/agent/api/ReportingAPIThatValidatesToken.test.ts @@ -30,6 +30,11 @@ function generateStartedEvent(): Event { version: "version", arch: "arch", }, + supportedFeatures: [ + "sca_package_reporting", + "ai_stats", + "attack_wave_detection", + ], }, }; }