@thirdfy/agent-cli 0.2.29 → 0.2.30
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 +6 -0
- package/README.md +3 -3
- package/package.json +1 -1
- package/src/core/executionContext.mjs +3 -1
- package/src/core/http.mjs +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to `@thirdfy/agent-cli` are documented here. The format is b
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.2.30] - 2026-07-19
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Always send `x-client: agent-cli` on Thirdfy API HTTP requests for WDF0 trajectory client attribution (alongside existing runtime/org headers).
|
|
12
|
+
|
|
7
13
|
## [0.2.29] - 2026-07-18
|
|
8
14
|
|
|
9
15
|
### Changed
|
package/README.md
CHANGED
|
@@ -40,10 +40,10 @@ Run without global install:
|
|
|
40
40
|
npx @thirdfy/agent-cli --help
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
## What's new in v0.2.
|
|
43
|
+
## What's new in v0.2.30
|
|
44
44
|
|
|
45
|
-
-
|
|
46
|
-
-
|
|
45
|
+
- Sends `x-client: agent-cli` on API requests so Thirdfy trajectory events attribute the CLI surface.
|
|
46
|
+
- Keeps runtime/org execution context headers for hosted EarnClaw attribution.
|
|
47
47
|
|
|
48
48
|
Older versions: see [CHANGELOG.md](./CHANGELOG.md) and [GitHub Releases](https://github.com/thirdfy/agent-cli/releases).
|
|
49
49
|
|
package/package.json
CHANGED
|
@@ -31,7 +31,9 @@ export function resolveExecutionContextFromInput(input = {}) {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export function buildExecutionContextHeaders(attribution) {
|
|
34
|
-
const headers = {
|
|
34
|
+
const headers = {
|
|
35
|
+
'x-client': 'agent-cli',
|
|
36
|
+
};
|
|
35
37
|
if (attribution.runtimeId) headers['x-thirdfy-execution-runtime-id'] = attribution.runtimeId;
|
|
36
38
|
if (attribution.orgId) headers['x-thirdfy-execution-org-id'] = attribution.orgId;
|
|
37
39
|
return headers;
|
package/src/core/http.mjs
CHANGED
|
@@ -29,6 +29,7 @@ export async function apiGet(ctx, route, headers = {}) {
|
|
|
29
29
|
|
|
30
30
|
function mergeExecutionContextHeaders(headers = {}, body = {}) {
|
|
31
31
|
return {
|
|
32
|
+
'x-client': 'agent-cli',
|
|
32
33
|
...buildExecutionContextHeaders(resolveExecutionContextFromInput(body)),
|
|
33
34
|
...headers,
|
|
34
35
|
};
|