@lanegrid/agtrace 0.1.11 → 0.1.13
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/CHANGELOG.md +74 -0
- package/README.md +60 -16
- package/npm-shrinkwrap.json +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,80 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.1.13] - 2025-12-30
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- *(sdk)* Add agtrace-sdk facade for building observability tools ([1f99847](https://github.com/lanegrid/agtrace/commit/1f99847bc2e081cabfe87eaf6d6135f946e33489))
|
|
10
|
+
|
|
11
|
+
- *(sdk)* Add working examples demonstrating SDK usage (connection, analysis, watch) ([d1cc697](https://github.com/lanegrid/agtrace/commit/d1cc69760fc14eafcb482f339a1d5562c8304857))
|
|
12
|
+
|
|
13
|
+
- *(sdk)* Implement Iterator trait for LiveStream and structured Insight type with Severity ([c8e38f0](https://github.com/lanegrid/agtrace/commit/c8e38f0ef846433669558e310da2acc5f61f331e))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
- *(sdk)* Remove unused mut and Duration import from watch_events example ([1adfd62](https://github.com/lanegrid/agtrace/commit/1adfd6296349c5eb9a9b4b8bdb5d02a77ea8a6f5))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Documentation
|
|
22
|
+
|
|
23
|
+
- Reframe agtrace as observability platform with SDK and CLI applications ([891caad](https://github.com/lanegrid/agtrace/commit/891caad8c6290f0a7767e71965ef93b1c06baea9))
|
|
24
|
+
|
|
25
|
+
- Improve README with Iterator usage, workspace context, and Mermaid architecture diagram ([1910bf0](https://github.com/lanegrid/agtrace/commit/1910bf0ee907951bfcca230c240ab55820d808ec))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Refactor
|
|
29
|
+
|
|
30
|
+
- Replace String-based project_hash with type-safe ProjectHash throughout codebase ([958233b](https://github.com/lanegrid/agtrace/commit/958233bb737068b1f270cee7d199fca8331f83e6), [2261ac1](https://github.com/lanegrid/agtrace/commit/2261ac1d7e89199cfaf001d0b5d71a3abac36848), [04cc841](https://github.com/lanegrid/agtrace/commit/04cc84124249ddb9f4eb16e6e7abc0a2e0f050cb))
|
|
31
|
+
|
|
32
|
+
- Migrate from context_window_tokens() to total_tokens() and remove legacy methods ([d59ebec](https://github.com/lanegrid/agtrace/commit/d59ebec8681af13eb9905357acdc496a5bd4fda4), [f2870e6](https://github.com/lanegrid/agtrace/commit/f2870e68e3ceb22d3fa009f3e3bdda711daf22eb), [0d62675](https://github.com/lanegrid/agtrace/commit/0d6267522a326e9aea30983a27be82e0d6a88c8f))
|
|
33
|
+
|
|
34
|
+
- *(agtrace-types)* Reorganize into domain/, event/, and tool/ modules ([af061aa](https://github.com/lanegrid/agtrace/commit/af061aaab26847291386a4fe5c1d0195439cb8d6))
|
|
35
|
+
|
|
36
|
+
- *(agtrace-index)* Reorganize db.rs into modular structure (records, schema, queries) ([dec1721](https://github.com/lanegrid/agtrace/commit/dec17219c10daf0bbc61d6a25484268388fff7be))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
## [0.1.12] - 2025-12-29
|
|
40
|
+
|
|
41
|
+
### Bug Fixes
|
|
42
|
+
|
|
43
|
+
- *(cli)* Remove duplicate verbose argument in doctor run command ([17d08d7](https://github.com/lanegrid/agtrace/commit/17d08d715eb1093e30632069731c189deda9bb7a))
|
|
44
|
+
|
|
45
|
+
- *(watch)* Filter events by project hash to respect project isolation (#12) ([9f5c42a](https://github.com/lanegrid/agtrace/commit/9f5c42a942808eed7a688e00cee67e17d4d34253))
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Documentation
|
|
49
|
+
|
|
50
|
+
- *(cli)* Improve help text with user-friendly descriptions and quick start guide ([8696800](https://github.com/lanegrid/agtrace/commit/869680060e934196dadd194f67478c83ddbbdcfd))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Features
|
|
54
|
+
|
|
55
|
+
- *(tui)* Add contextual waiting state hints with actionable commands and exact directory match requirement ([a250d81](https://github.com/lanegrid/agtrace/commit/a250d815fb124d8e42ea0b8cd51297b4df32e21c))
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Miscellaneous Tasks
|
|
59
|
+
|
|
60
|
+
- Update CHANGELOG for v0.1.11 ([ae51b18](https://github.com/lanegrid/agtrace/commit/ae51b18cd43a604aa02921670df28d5a008da595))
|
|
61
|
+
|
|
62
|
+
- Bump version to 0.1.11 ([ce33554](https://github.com/lanegrid/agtrace/commit/ce3355441efafc1536f0750a2bcee11ce2582e82))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
## [0.1.12] - 2025-12-29
|
|
66
|
+
|
|
67
|
+
### Bug Fixes
|
|
68
|
+
|
|
69
|
+
- *(cli)* Improve init output and watch waiting mode behavior ([22c3d71](https://github.com/lanegrid/agtrace/commit/22c3d71417dfc4afa710d29f07a56e967031d2df))
|
|
70
|
+
|
|
71
|
+
- *(cli)* Correct init hint to use session list instead of list ([ee1414a](https://github.com/lanegrid/agtrace/commit/ee1414a62716b5716991fd47f56f603a6dd92bbf))
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Styling
|
|
75
|
+
|
|
76
|
+
- *(tui)* Make directory match note more visible with yellow bold text ([b58afe3](https://github.com/lanegrid/agtrace/commit/b58afe3d52fa86e8135729edbce0998ce1c162c9))
|
|
77
|
+
|
|
78
|
+
|
|
5
79
|
## [0.1.11] - 2025-12-29
|
|
6
80
|
|
|
7
81
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<img src="https://raw.githubusercontent.com/lanegrid/agtrace/main/docs/images/agtrace-icon.png" width="96" alt="agtrace logo">
|
|
3
3
|
<h1>agtrace</h1>
|
|
4
|
-
<p><strong>
|
|
4
|
+
<p><strong>The Observability Platform for AI Agents.</strong></p>
|
|
5
|
+
<p>Local-first OpenTelemetry for Claude, Codex, and Gemini.</p>
|
|
5
6
|
|
|
6
7
|
[](https://www.npmjs.com/package/@lanegrid/agtrace)
|
|
7
8
|
[](https://crates.io/crates/agtrace)
|
|
@@ -11,40 +12,83 @@
|
|
|
11
12
|
|
|
12
13
|

|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
**agtrace** provides a unified timeline and analysis layer for fragmented AI agent logs.
|
|
16
|
+
Use the **CLI** for instant visualization, or build custom monitoring tools with the **SDK**.
|
|
15
17
|
|
|
16
|
-
|
|
17
|
-
- Session history you can query and compare
|
|
18
|
-
- Works with Claude Code, Codex, and Gemini
|
|
19
|
-
- 100% local, no cloud
|
|
18
|
+
## 🌟 Core Value
|
|
20
19
|
|
|
21
|
-
|
|
20
|
+
1. **Universal Normalization**: Converts diverse provider logs (Claude, Gemini, etc.) into a standard `AgentEvent` model.
|
|
21
|
+
2. **Schema-on-Read**: Resilient to provider updates. No database migrations needed.
|
|
22
|
+
3. **Local-First**: 100% offline. Privacy by design.
|
|
23
|
+
|
|
24
|
+
## 🚀 Quick Start (CLI)
|
|
25
|
+
|
|
26
|
+
The reference implementation of the agtrace platform.
|
|
22
27
|
|
|
23
28
|
```bash
|
|
24
29
|
npm install -g @lanegrid/agtrace
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
cd my-project
|
|
31
|
+
agtrace init # initialize workspace (~/.agtrace)
|
|
32
|
+
agtrace watch # live dashboard
|
|
27
33
|
```
|
|
28
34
|
|
|
29
|
-
##
|
|
35
|
+
## 🛠️ Building with the SDK
|
|
30
36
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
37
|
+
Embed agent observability into your own tools (vital-checkers, IDE plugins, dashboards).
|
|
38
|
+
|
|
39
|
+
```toml
|
|
40
|
+
[dependencies]
|
|
41
|
+
agtrace-sdk = "0.1.13"
|
|
34
42
|
```
|
|
35
43
|
|
|
36
|
-
|
|
44
|
+
```rust
|
|
45
|
+
use agtrace_sdk::{Client, Lens, analyze_session, assemble_session};
|
|
46
|
+
|
|
47
|
+
// Connect to the local workspace
|
|
48
|
+
let client = Client::connect("~/.agtrace")?;
|
|
49
|
+
|
|
50
|
+
// 1. Real-time Monitoring
|
|
51
|
+
for event in client.watch().all_providers().start()? {
|
|
52
|
+
println!("Activity: {:?}", event);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// 2. Session Diagnosis
|
|
56
|
+
let events = client.session("session_123").events()?;
|
|
57
|
+
if let Some(session) = assemble_session(&events) {
|
|
58
|
+
let report = analyze_session(session)
|
|
59
|
+
.through(Lens::Failures)
|
|
60
|
+
.through(Lens::Loops)
|
|
61
|
+
.report()?;
|
|
62
|
+
println!("Health: {}", report.score);
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## 📚 Documentation
|
|
37
67
|
|
|
38
68
|
- [Why agtrace?](docs/motivation.md) - Understanding the problem and solution
|
|
39
69
|
- [Getting Started](docs/getting-started.md) - Detailed installation and usage guide
|
|
40
|
-
- [
|
|
70
|
+
- [Architecture](docs/architecture.md) - Platform design and principles
|
|
71
|
+
- [SDK Documentation](crates/agtrace-sdk/README.md) - Building custom tools
|
|
72
|
+
- [Full Documentation](docs/README.md) - Commands, FAQs, and more
|
|
41
73
|
|
|
42
|
-
## Supported Providers
|
|
74
|
+
## 🔌 Supported Providers
|
|
43
75
|
|
|
44
76
|
- **Claude Code** (Anthropic)
|
|
45
77
|
- **Codex** (OpenAI)
|
|
46
78
|
- **Gemini** (Google)
|
|
47
79
|
|
|
80
|
+
## 📦 Architecture
|
|
81
|
+
|
|
82
|
+
```mermaid
|
|
83
|
+
graph TD
|
|
84
|
+
CLI[agtrace-cli] --> SDK[agtrace-sdk]
|
|
85
|
+
YourApp[Your Tool] --> SDK
|
|
86
|
+
SDK --> Core[Core Engine & Providers]
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
- **Core SDK**: `agtrace-sdk`, `agtrace-engine`, `agtrace-providers`
|
|
90
|
+
- **Applications**: `agtrace-cli` (Reference Implementation)
|
|
91
|
+
|
|
48
92
|
## License
|
|
49
93
|
|
|
50
94
|
Dual-licensed under the MIT and Apache 2.0 licenses.
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"hasInstallScript": true,
|
|
24
24
|
"license": "MIT OR Apache-2.0",
|
|
25
25
|
"name": "@lanegrid/agtrace",
|
|
26
|
-
"version": "0.1.
|
|
26
|
+
"version": "0.1.13"
|
|
27
27
|
},
|
|
28
28
|
"node_modules/@isaacs/balanced-match": {
|
|
29
29
|
"engines": {
|
|
@@ -515,5 +515,5 @@
|
|
|
515
515
|
}
|
|
516
516
|
},
|
|
517
517
|
"requires": true,
|
|
518
|
-
"version": "0.1.
|
|
518
|
+
"version": "0.1.13"
|
|
519
519
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"artifactDownloadUrl": "https://github.com/lanegrid/agtrace/releases/download/v0.1.
|
|
2
|
+
"artifactDownloadUrl": "https://github.com/lanegrid/agtrace/releases/download/v0.1.13",
|
|
3
3
|
"bin": {
|
|
4
4
|
"agtrace": "run-agtrace.js"
|
|
5
5
|
},
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"detect-libc": "^2.1.2",
|
|
11
11
|
"rimraf": "^6.1.2"
|
|
12
12
|
},
|
|
13
|
-
"description": "
|
|
13
|
+
"description": "The official CLI for agtrace, built on top of agtrace-sdk. Visualize and analyze AI agent execution traces.",
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"prettier": "^3.7.4"
|
|
16
16
|
},
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"zipExt": ".tar.xz"
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
|
-
"version": "0.1.
|
|
96
|
+
"version": "0.1.13",
|
|
97
97
|
"volta": {
|
|
98
98
|
"node": "18.14.1",
|
|
99
99
|
"npm": "9.5.0"
|