Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions library/agent/Agent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
},
},
]);
Expand Down
5 changes: 5 additions & 0 deletions library/agent/Agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,11 @@ export class Agent {
version: getSemverNodeVersion(),
arch: process.arch,
},
supportedFeatures: [
"sca_package_reporting",
"ai_stats",
"attack_wave_detection",
],
};
}

Expand Down
5 changes: 5 additions & 0 deletions library/agent/AttackLogger.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ function generateAttackEvent(): DetectedAttack {
version: "version",
arch: "arch",
},
supportedFeatures: [
"sca_package_reporting",
"ai_stats",
"attack_wave_detection",
],
},
};
}
1 change: 1 addition & 0 deletions library/agent/api/Event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export type AgentInfo = {
nodeEnv: string;
serverless: boolean;
stack: string[];
supportedFeatures: string[];
};

type Started = {
Expand Down
5 changes: 5 additions & 0 deletions library/agent/api/ReportingAPINodeHTTP.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ function generateStartedEvent(): Event {
version: "version",
arch: "arch",
},
supportedFeatures: [
"sca_package_reporting",
"ai_stats",
"attack_wave_detection",
],
},
};
}
Expand Down
20 changes: 20 additions & 0 deletions library/agent/api/ReportingAPIRateLimitedClientSide.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ function generateAttackEvent(): Event {
version: "version",
arch: "arch",
},
supportedFeatures: [
"sca_package_reporting",
"ai_stats",
"attack_wave_detection",
],
},
};
}
Expand Down Expand Up @@ -92,6 +97,11 @@ function generateAttackWaveEvent(): Event {
version: "version",
arch: "arch",
},
supportedFeatures: [
"sca_package_reporting",
"ai_stats",
"attack_wave_detection",
],
},
};
}
Expand Down Expand Up @@ -150,6 +160,11 @@ function generateStartedEvent(): Event {
version: "version",
arch: "arch",
},
supportedFeatures: [
"sca_package_reporting",
"ai_stats",
"attack_wave_detection",
],
},
};
}
Expand Down Expand Up @@ -229,6 +244,11 @@ function generateHeartbeatEvent(): Event {
version: "version",
arch: "arch",
},
supportedFeatures: [
"sca_package_reporting",
"ai_stats",
"attack_wave_detection",
],
},
hostnames: [],
routes: [],
Expand Down
5 changes: 5 additions & 0 deletions library/agent/api/ReportingAPIRateLimitedServerSide.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ function generateStartedEvent(): Event {
version: "version",
arch: "arch",
},
supportedFeatures: [
"sca_package_reporting",
"ai_stats",
"attack_wave_detection",
],
},
};
}
Expand Down
5 changes: 5 additions & 0 deletions library/agent/api/ReportingAPIThatValidatesToken.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ function generateStartedEvent(): Event {
version: "version",
arch: "arch",
},
supportedFeatures: [
"sca_package_reporting",
"ai_stats",
"attack_wave_detection",
],
},
};
}
Expand Down