@agent-relay/telemetry 2.3.14 → 2.4.1
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.
- package/dist/events.d.ts +8 -8
- package/dist/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/events.d.ts
CHANGED
|
@@ -26,16 +26,16 @@ export interface CommonProperties {
|
|
|
26
26
|
arch: string;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* broker_start - Emitted when the broker starts.
|
|
30
30
|
* No additional properties beyond common props.
|
|
31
31
|
*/
|
|
32
|
-
export interface
|
|
32
|
+
export interface BrokerStartEvent {
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* broker_stop - Emitted when the broker stops.
|
|
36
36
|
*/
|
|
37
|
-
export interface
|
|
38
|
-
/** How long the
|
|
37
|
+
export interface BrokerStopEvent {
|
|
38
|
+
/** How long the broker was running, in seconds */
|
|
39
39
|
uptime_seconds: number;
|
|
40
40
|
/** Total agents spawned during this session */
|
|
41
41
|
agent_spawn_count: number;
|
|
@@ -93,10 +93,10 @@ export interface CliCommandRunEvent {
|
|
|
93
93
|
/** Name of the command (e.g., 'up', 'spawn', 'who') */
|
|
94
94
|
command_name: string;
|
|
95
95
|
}
|
|
96
|
-
export type TelemetryEventName = '
|
|
96
|
+
export type TelemetryEventName = 'broker_start' | 'broker_stop' | 'agent_spawn' | 'agent_release' | 'agent_crash' | 'message_send' | 'cli_command_run';
|
|
97
97
|
export interface TelemetryEventMap {
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
broker_start: BrokerStartEvent;
|
|
99
|
+
broker_stop: BrokerStopEvent;
|
|
100
100
|
agent_spawn: AgentSpawnEvent;
|
|
101
101
|
agent_release: AgentReleaseEvent;
|
|
102
102
|
agent_crash: AgentCrashEvent;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export { initTelemetry, track, shutdown, isEnabled, getAnonymousId, getStatus, } from './client.js';
|
|
5
5
|
export { isTelemetryEnabled, enableTelemetry, disableTelemetry, wasNotified, markNotified, loadPrefs, savePrefs, getPrefsPath, isDisabledByEnv, type TelemetryPrefs, } from './config.js';
|
|
6
|
-
export type { CommonProperties, ActionSource, ReleaseReason,
|
|
6
|
+
export type { CommonProperties, ActionSource, ReleaseReason, BrokerStartEvent, BrokerStopEvent, AgentSpawnEvent, AgentReleaseEvent, AgentCrashEvent, MessageSendEvent, CliCommandRunEvent, TelemetryEventName, TelemetryEventMap, } from './events.js';
|
|
7
7
|
export { loadMachineId, createAnonymousId, getMachineIdPath, } from './machine-id.js';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-relay/telemetry",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Anonymous telemetry for Agent Relay usage analytics",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/node": "^22.19.3",
|
|
30
30
|
"typescript": "^5.9.3",
|
|
31
|
-
"vitest": "^3.
|
|
31
|
+
"vitest": "^3.2.4"
|
|
32
32
|
},
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|