@lanegrid/agtrace 0.1.15 → 0.2.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/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.2.1] - 2025-12-31
6
+
7
+ ### Bug Fixes
8
+
9
+ - Add missing description to agtrace-core for crates.io publish ([06907c5](https://github.com/lanegrid/agtrace/commit/06907c58cda845cacd5f30a9c9663503f65e1ff1))
10
+
11
+ - Make README version check dynamic for major.minor versions ([428d0a3](https://github.com/lanegrid/agtrace/commit/428d0a34399a3c5a6d5f6c7025e5ba2eb859823a))
12
+
13
+
14
+ ### Documentation
15
+
16
+ - Update README version references from 0.1 to 0.2 ([7f073b7](https://github.com/lanegrid/agtrace/commit/7f073b7ef2c8bd3eded3eca94bc8430c3b8ae733))
17
+
18
+
19
+ ## [0.2.0] - 2025-12-31
20
+
21
+ ### Documentation
22
+
23
+ - Update all references from ~/.agtrace to XDG data directory paths ([e6bbf10](https://github.com/lanegrid/agtrace/commit/e6bbf102d1fed32a4fab8c35b32366d868dc2c32))
24
+
25
+ - Add quickstart example and improve README SDK usage guide ([cca3c4e](https://github.com/lanegrid/agtrace/commit/cca3c4e821d7da058836423c21eccc596099272d))
26
+
27
+ - Establish rustdoc as source of truth for SDK usage examples ([c16a0d3](https://github.com/lanegrid/agtrace/commit/c16a0d3f554f4da3d43fa4074359b762c6b35f8f))
28
+
29
+ - Update AGENTS.md with engine domain and crate dependencies ([5cfaa84](https://github.com/lanegrid/agtrace/commit/5cfaa84f0571e64b0569425836912a21a99b6108))
30
+
31
+ - Update AGENTS.md with crate design principles and dependency rules ([aaa73f7](https://github.com/lanegrid/agtrace/commit/aaa73f701c8d377c11a33a76005f17cf1901b633))
32
+
33
+
34
+ ### Features
35
+
36
+ - Add auto-initialization to SDK Client::connect() for seamless workspace setup (fixes #17) ([7eb8971](https://github.com/lanegrid/agtrace/commit/7eb8971c855ebb897bbb831c46ff3b453ad6e21e))
37
+
38
+ - *(sdk)* Implement explicit project scope API for SessionFilter (resolves #24) ([f6a9894](https://github.com/lanegrid/agtrace/commit/f6a9894f63541dbe5e0addcd324659ea5f45fdcf))
39
+
40
+ - Automate SDK README generation with cargo-rdme ([6defa48](https://github.com/lanegrid/agtrace/commit/6defa48a829c8461eeaee2c66a82d688dce5bd8b))
41
+
42
+
43
+ ### Miscellaneous Tasks
44
+
45
+ - Apply clippy fixes to runtime layer ([a3ce598](https://github.com/lanegrid/agtrace/commit/a3ce59886e3c3eaf5bba113e00b74be51bce4b2c))
46
+
47
+ - Apply cargo fmt to workspace ([6b14f17](https://github.com/lanegrid/agtrace/commit/6b14f17b56633b3c3a70877ba531e3c2ff399c7c))
48
+
49
+ - Increment SCHEMA_VERSION to 2 to trigger re-index ([c3a532d](https://github.com/lanegrid/agtrace/commit/c3a532dee09d9f2d9d918cef137a5869993c1293))
50
+
51
+
52
+ ### Refactor
53
+
54
+ - Replace anyhow with structured errors in index and providers layers ([aaa1a39](https://github.com/lanegrid/agtrace/commit/aaa1a3908ce608f57d3c139e842405bdd3d4f3af))
55
+
56
+ - Replace anyhow with structured errors in runtime layer ([a4cb1d8](https://github.com/lanegrid/agtrace/commit/a4cb1d8d47e3a23d3b7c40ba42063143d40d5518))
57
+
58
+ - Replace anyhow with structured errors in SDK layer ([b529fe3](https://github.com/lanegrid/agtrace/commit/b529fe388c908bc317c6ef8cbe2e439585fbd8f7))
59
+
60
+ - Replace anyhow with structured errors in types layer ([27596fd](https://github.com/lanegrid/agtrace/commit/27596fda6d5d5432ea075871fc3e31e192831c49))
61
+
62
+ - Convert SDK and runtime to async-first architecture ([44ff87a](https://github.com/lanegrid/agtrace/commit/44ff87a933a4e91167780b4eeb6b5b34232f4a9e))
63
+
64
+ - Add ClientBuilder with XDG path resolution and convert LiveStream to Stream trait ([b4d072d](https://github.com/lanegrid/agtrace/commit/b4d072d761662cdac8790ebdd252841900a5f246))
65
+
66
+ - Consolidate XDG path resolution logic in runtime, expose via SDK utils ([012349b](https://github.com/lanegrid/agtrace/commit/012349be99d1edc715eb6a2379971da397b2b2f9))
67
+
68
+ - Consolidate path utilities into new agtrace-core infrastructure crate (fixes #19) ([72a5ba0](https://github.com/lanegrid/agtrace/commit/72a5ba093cf19fd043ca4508502261ace9f363bf))
69
+
70
+ - Remove deprecated methods from agtrace-sdk ([19eadcf](https://github.com/lanegrid/agtrace/commit/19eadcf8bb15f5ba93cabb9ba53f92714e844b48))
71
+
72
+ - Migrate integration tests from CLI to SDK for faster type-safe testing ([ef6a7bc](https://github.com/lanegrid/agtrace/commit/ef6a7bc95b5f6983345c442159cdbffe9bfecb20))
73
+
74
+ - *(sdk)* Re-export resolve_workspace_path directly from core for consistency ([5a47d7b](https://github.com/lanegrid/agtrace/commit/5a47d7b536b16952959e09bc403646b76ddc95cd))
75
+
76
+ - Move domain from runtime to engine with dependency inversion ([bae964d](https://github.com/lanegrid/agtrace/commit/bae964db4aca70d832161d25242d3dc030a4dd4c))
77
+
78
+
5
79
  ## [0.1.15] - 2025-12-31
6
80
 
7
81
  ### 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 (~/.agtrace)
31
+ agtrace init # initialize workspace (XDG data directory)
32
32
  agtrace watch # live dashboard
33
33
  ```
34
34
 
@@ -38,29 +38,23 @@ Embed agent observability into your own tools (vital-checkers, IDE plugins, dash
38
38
 
39
39
  ```toml
40
40
  [dependencies]
41
- agtrace-sdk = "0.1"
41
+ agtrace-sdk = "0.2"
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
- // 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);
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
@@ -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.15"
26
+ "version": "0.2.1"
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.15"
518
+ "version": "0.2.1"
519
519
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "artifactDownloadUrl": "https://github.com/lanegrid/agtrace/releases/download/v0.1.15",
2
+ "artifactDownloadUrl": "https://github.com/lanegrid/agtrace/releases/download/v0.2.1",
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.1.15",
96
+ "version": "0.2.1",
97
97
  "volta": {
98
98
  "node": "18.14.1",
99
99
  "npm": "9.5.0"