@lanegrid/agtrace 0.1.15 → 0.2.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/CHANGELOG.md +60 -0
- package/README.md +11 -17
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,66 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.2.0] - 2025-12-31
|
|
6
|
+
|
|
7
|
+
### Documentation
|
|
8
|
+
|
|
9
|
+
- Update all references from ~/.agtrace to XDG data directory paths ([e6bbf10](https://github.com/lanegrid/agtrace/commit/e6bbf102d1fed32a4fab8c35b32366d868dc2c32))
|
|
10
|
+
|
|
11
|
+
- Add quickstart example and improve README SDK usage guide ([cca3c4e](https://github.com/lanegrid/agtrace/commit/cca3c4e821d7da058836423c21eccc596099272d))
|
|
12
|
+
|
|
13
|
+
- Establish rustdoc as source of truth for SDK usage examples ([c16a0d3](https://github.com/lanegrid/agtrace/commit/c16a0d3f554f4da3d43fa4074359b762c6b35f8f))
|
|
14
|
+
|
|
15
|
+
- Update AGENTS.md with engine domain and crate dependencies ([5cfaa84](https://github.com/lanegrid/agtrace/commit/5cfaa84f0571e64b0569425836912a21a99b6108))
|
|
16
|
+
|
|
17
|
+
- Update AGENTS.md with crate design principles and dependency rules ([aaa73f7](https://github.com/lanegrid/agtrace/commit/aaa73f701c8d377c11a33a76005f17cf1901b633))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
- Add auto-initialization to SDK Client::connect() for seamless workspace setup (fixes #17) ([7eb8971](https://github.com/lanegrid/agtrace/commit/7eb8971c855ebb897bbb831c46ff3b453ad6e21e))
|
|
23
|
+
|
|
24
|
+
- *(sdk)* Implement explicit project scope API for SessionFilter (resolves #24) ([f6a9894](https://github.com/lanegrid/agtrace/commit/f6a9894f63541dbe5e0addcd324659ea5f45fdcf))
|
|
25
|
+
|
|
26
|
+
- Automate SDK README generation with cargo-rdme ([6defa48](https://github.com/lanegrid/agtrace/commit/6defa48a829c8461eeaee2c66a82d688dce5bd8b))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Miscellaneous Tasks
|
|
30
|
+
|
|
31
|
+
- Apply clippy fixes to runtime layer ([a3ce598](https://github.com/lanegrid/agtrace/commit/a3ce59886e3c3eaf5bba113e00b74be51bce4b2c))
|
|
32
|
+
|
|
33
|
+
- Apply cargo fmt to workspace ([6b14f17](https://github.com/lanegrid/agtrace/commit/6b14f17b56633b3c3a70877ba531e3c2ff399c7c))
|
|
34
|
+
|
|
35
|
+
- Increment SCHEMA_VERSION to 2 to trigger re-index ([c3a532d](https://github.com/lanegrid/agtrace/commit/c3a532dee09d9f2d9d918cef137a5869993c1293))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Refactor
|
|
39
|
+
|
|
40
|
+
- Replace anyhow with structured errors in index and providers layers ([aaa1a39](https://github.com/lanegrid/agtrace/commit/aaa1a3908ce608f57d3c139e842405bdd3d4f3af))
|
|
41
|
+
|
|
42
|
+
- Replace anyhow with structured errors in runtime layer ([a4cb1d8](https://github.com/lanegrid/agtrace/commit/a4cb1d8d47e3a23d3b7c40ba42063143d40d5518))
|
|
43
|
+
|
|
44
|
+
- Replace anyhow with structured errors in SDK layer ([b529fe3](https://github.com/lanegrid/agtrace/commit/b529fe388c908bc317c6ef8cbe2e439585fbd8f7))
|
|
45
|
+
|
|
46
|
+
- Replace anyhow with structured errors in types layer ([27596fd](https://github.com/lanegrid/agtrace/commit/27596fda6d5d5432ea075871fc3e31e192831c49))
|
|
47
|
+
|
|
48
|
+
- Convert SDK and runtime to async-first architecture ([44ff87a](https://github.com/lanegrid/agtrace/commit/44ff87a933a4e91167780b4eeb6b5b34232f4a9e))
|
|
49
|
+
|
|
50
|
+
- Add ClientBuilder with XDG path resolution and convert LiveStream to Stream trait ([b4d072d](https://github.com/lanegrid/agtrace/commit/b4d072d761662cdac8790ebdd252841900a5f246))
|
|
51
|
+
|
|
52
|
+
- Consolidate XDG path resolution logic in runtime, expose via SDK utils ([012349b](https://github.com/lanegrid/agtrace/commit/012349be99d1edc715eb6a2379971da397b2b2f9))
|
|
53
|
+
|
|
54
|
+
- Consolidate path utilities into new agtrace-core infrastructure crate (fixes #19) ([72a5ba0](https://github.com/lanegrid/agtrace/commit/72a5ba093cf19fd043ca4508502261ace9f363bf))
|
|
55
|
+
|
|
56
|
+
- Remove deprecated methods from agtrace-sdk ([19eadcf](https://github.com/lanegrid/agtrace/commit/19eadcf8bb15f5ba93cabb9ba53f92714e844b48))
|
|
57
|
+
|
|
58
|
+
- Migrate integration tests from CLI to SDK for faster type-safe testing ([ef6a7bc](https://github.com/lanegrid/agtrace/commit/ef6a7bc95b5f6983345c442159cdbffe9bfecb20))
|
|
59
|
+
|
|
60
|
+
- *(sdk)* Re-export resolve_workspace_path directly from core for consistency ([5a47d7b](https://github.com/lanegrid/agtrace/commit/5a47d7b536b16952959e09bc403646b76ddc95cd))
|
|
61
|
+
|
|
62
|
+
- Move domain from runtime to engine with dependency inversion ([bae964d](https://github.com/lanegrid/agtrace/commit/bae964db4aca70d832161d25242d3dc030a4dd4c))
|
|
63
|
+
|
|
64
|
+
|
|
5
65
|
## [0.1.15] - 2025-12-31
|
|
6
66
|
|
|
7
67
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ The reference implementation of the agtrace platform.
|
|
|
28
28
|
```bash
|
|
29
29
|
npm install -g @lanegrid/agtrace
|
|
30
30
|
cd my-project
|
|
31
|
-
agtrace init # initialize workspace (
|
|
31
|
+
agtrace init # initialize workspace (XDG data directory)
|
|
32
32
|
agtrace watch # live dashboard
|
|
33
33
|
```
|
|
34
34
|
|
|
@@ -41,26 +41,20 @@ Embed agent observability into your own tools (vital-checkers, IDE plugins, dash
|
|
|
41
41
|
agtrace-sdk = "0.1"
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
```rust
|
|
45
|
-
use agtrace_sdk::{Client, Lens};
|
|
44
|
+
```rust,no_run
|
|
45
|
+
use agtrace_sdk::{Client, Lens, types::SessionFilter};
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
let
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
println!("
|
|
47
|
+
let client = Client::connect_default().await?;
|
|
48
|
+
let sessions = client.sessions().list(SessionFilter::all())?;
|
|
49
|
+
if let Some(summary) = sessions.first() {
|
|
50
|
+
let handle = client.sessions().get(&summary.id)?;
|
|
51
|
+
let report = handle.analyze()?.through(Lens::Failures).report()?;
|
|
52
|
+
println!("Health: {}/100", report.score);
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
// 2. Session Diagnosis
|
|
56
|
-
let session_handle = client.sessions().get("session_123")?;
|
|
57
|
-
let report = session_handle.analyze()?
|
|
58
|
-
.through(Lens::Failures)
|
|
59
|
-
.through(Lens::Loops)
|
|
60
|
-
.report()?;
|
|
61
|
-
println!("Health: {}", report.score);
|
|
62
54
|
```
|
|
63
55
|
|
|
56
|
+
**See also**: [SDK Documentation](https://docs.rs/agtrace-sdk) | [Examples](crates/agtrace-sdk/examples/) | [SDK README](crates/agtrace-sdk/README.md)
|
|
57
|
+
|
|
64
58
|
## 📚 Documentation
|
|
65
59
|
|
|
66
60
|
- [Why agtrace?](docs/motivation.md) - Understanding the problem and solution
|
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.
|
|
26
|
+
"version": "0.2.0"
|
|
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.
|
|
518
|
+
"version": "0.2.0"
|
|
519
519
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"artifactDownloadUrl": "https://github.com/lanegrid/agtrace/releases/download/v0.
|
|
2
|
+
"artifactDownloadUrl": "https://github.com/lanegrid/agtrace/releases/download/v0.2.0",
|
|
3
3
|
"bin": {
|
|
4
4
|
"agtrace": "run-agtrace.js"
|
|
5
5
|
},
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"zipExt": ".tar.xz"
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
|
-
"version": "0.
|
|
96
|
+
"version": "0.2.0",
|
|
97
97
|
"volta": {
|
|
98
98
|
"node": "18.14.1",
|
|
99
99
|
"npm": "9.5.0"
|