@devflow-tools/telemetry 0.3.2 → 0.5.0
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/README.md +40 -0
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# @devflow-tools/telemetry
|
|
2
|
+
|
|
3
|
+
Telemetry engine for DevFlow — record and analyze AI agent execution traces.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @devflow-tools/telemetry
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { TelemetryEngine } from '@devflow-tools/telemetry';
|
|
15
|
+
|
|
16
|
+
const engine = new TelemetryEngine({ projectRoot: '/path/to/project' });
|
|
17
|
+
|
|
18
|
+
// Record a tool call
|
|
19
|
+
await engine.record('tool_call', { name: 'get_context', duration: 120 });
|
|
20
|
+
|
|
21
|
+
// Get timeline data
|
|
22
|
+
const timeline = await engine.timeline();
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Features
|
|
26
|
+
|
|
27
|
+
- **Execution tracing** — record every agent action with timing
|
|
28
|
+
- **Timeline API** — chronological view of agent sessions
|
|
29
|
+
- **Run history** — searchable history of all agent runs
|
|
30
|
+
|
|
31
|
+
## API
|
|
32
|
+
|
|
33
|
+
- `TelemetryEngine` — main class
|
|
34
|
+
- `.record(event, data)` — record a telemetry event
|
|
35
|
+
- `.timeline()` — get timeline data
|
|
36
|
+
- `.runs()` — list historical runs
|
|
37
|
+
|
|
38
|
+
## License
|
|
39
|
+
|
|
40
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devflow-tools/telemetry",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"clean": "rm -rf dist"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@devflow-tools/sdk": "^0.
|
|
20
|
+
"@devflow-tools/sdk": "^0.5.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"typescript": "^5.5.0",
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "431c0f26e14d476c08d543ef5cd65367413dbc98"
|
|
30
30
|
}
|