@poncho-ai/harness 0.20.0 → 0.20.2

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @poncho-ai/harness@0.20.0 build /home/runner/work/poncho-ai/poncho-ai/packages/harness
2
+ > @poncho-ai/harness@0.20.2 build /home/runner/work/poncho-ai/poncho-ai/packages/harness
3
3
  > tsup src/index.ts --format esm --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -7,8 +7,8 @@
7
7
  CLI tsup v8.5.1
8
8
  CLI Target: es2022
9
9
  ESM Build start
10
- ESM dist/index.js 199.42 KB
11
- ESM ⚡️ Build success in 145ms
10
+ ESM dist/index.js 199.59 KB
11
+ ESM ⚡️ Build success in 148ms
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 7280ms
13
+ DTS ⚡️ Build success in 6340ms
14
14
  DTS dist/index.d.ts 24.36 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @poncho-ai/harness
2
2
 
3
+ ## 0.20.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ec7d7a8`](https://github.com/cesr/poncho-ai/commit/ec7d7a80bf84855d19454c52053375fe86815ae4) Thanks [@cesr](https://github.com/cesr)! - Upgrade `@latitude-data/telemetry` to ^2.0.4 which adds baggage propagation for Latitude attributes on all child spans, fixing traces not appearing in the Latitude platform.
8
+
9
+ ## 0.20.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`ec1bb60`](https://github.com/cesr/poncho-ai/commit/ec1bb601d4f47c1b50c391cdc169cbe1623b52aa) Thanks [@cesr](https://github.com/cesr)! - Log telemetry flush errors instead of silently swallowing them, improving diagnostics when traces fail to export.
14
+
3
15
  ## 0.20.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.js CHANGED
@@ -3712,8 +3712,12 @@ var AgentHarness = class {
3712
3712
  try {
3713
3713
  await capturePromise;
3714
3714
  } finally {
3715
- await telemetry.flush().catch(() => {
3716
- });
3715
+ try {
3716
+ await telemetry.flush();
3717
+ console.info("[poncho][telemetry] flush completed");
3718
+ } catch (flushErr) {
3719
+ console.error("[poncho][telemetry] flush failed:", flushErr);
3720
+ }
3717
3721
  }
3718
3722
  }
3719
3723
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poncho-ai/harness",
3
- "version": "0.20.0",
3
+ "version": "0.20.2",
4
4
  "description": "Agent execution runtime - conversation loop, tool dispatch, streaming",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,7 +23,7 @@
23
23
  "@ai-sdk/anthropic": "^3.0.44",
24
24
  "@ai-sdk/openai": "^3.0.29",
25
25
  "@aws-sdk/client-dynamodb": "^3.988.0",
26
- "@latitude-data/telemetry": "^2.0.2",
26
+ "@latitude-data/telemetry": "^2.0.4",
27
27
  "@opentelemetry/api": "1.9.0",
28
28
  "ai": "^6.0.86",
29
29
  "jiti": "^2.6.1",
package/src/harness.ts CHANGED
@@ -1190,9 +1190,12 @@ export class AgentHarness {
1190
1190
  try {
1191
1191
  await capturePromise;
1192
1192
  } finally {
1193
- // Flush pending spans but do NOT shutdown — the LatitudeTelemetry
1194
- // instance is reused across runs. Shutdown happens in harness.shutdown().
1195
- await telemetry.flush().catch(() => {});
1193
+ try {
1194
+ await telemetry.flush();
1195
+ console.info("[poncho][telemetry] flush completed");
1196
+ } catch (flushErr) {
1197
+ console.error("[poncho][telemetry] flush failed:", flushErr);
1198
+ }
1196
1199
  }
1197
1200
  }
1198
1201
  } else {