@poncho-ai/sdk 1.6.0 → 1.6.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/sdk@1.6.0 build /home/runner/work/poncho-ai/poncho-ai/packages/sdk
2
+ > @poncho-ai/sdk@1.6.2 build /Users/cesar/Dev/latitude/poncho-ai/packages/sdk
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 11.44 KB
11
- ESM ⚡️ Build success in 21ms
10
+ ESM dist/index.js 11.50 KB
11
+ ESM ⚡️ Build success in 62ms
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 1333ms
14
- DTS dist/index.d.ts 22.16 KB
13
+ DTS ⚡️ Build success in 927ms
14
+ DTS dist/index.d.ts 22.58 KB
@@ -0,0 +1,6 @@
1
+
2
+ > @poncho-ai/sdk@0.6.0 lint /Users/cesar/Dev/latitude/poncho-ai/packages/sdk
3
+ > eslint src/
4
+
5
+ sh: eslint: command not found
6
+  ELIFECYCLE  Command failed.
@@ -0,0 +1,14 @@
1
+
2
+ > @poncho-ai/sdk@1.6.1 test /Users/cesar/Dev/latitude/poncho-ai/packages/sdk
3
+ > vitest
4
+
5
+
6
+  RUN  v1.6.1 /Users/cesar/Dev/latitude/poncho-ai/packages/sdk
7
+
8
+ ✓ test/sdk.test.ts  (1 test) 1ms
9
+
10
+  Test Files  1 passed (1)
11
+  Tests  1 passed (1)
12
+  Start at  15:57:51
13
+  Duration  401ms (transform 116ms, setup 0ms, collect 115ms, tests 1ms, environment 0ms, prepare 80ms)
14
+
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @poncho-ai/sdk
2
2
 
3
+ ## 1.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#51](https://github.com/cesr/poncho-ai/pull/51) [`eb661a5`](https://github.com/cesr/poncho-ai/commit/eb661a554da6839702651671db8a8820ceb13f35) Thanks [@cesr](https://github.com/cesr)! - Add generic OTLP trace exporter for sending OpenTelemetry traces to any collector (Jaeger, Grafana Tempo, Honeycomb, etc.). Configure via `telemetry.otlp` as a URL string or `{ url, headers }` object. Works alongside or instead of Latitude telemetry.
8
+
9
+ ## 1.6.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`4d50ad9`](https://github.com/cesr/poncho-ai/commit/4d50ad970886c9d3635ec36a407514c91ce6a71a) Thanks [@cesr](https://github.com/cesr)! - Improve callback-run reliability and streaming across subagent workflows, including safer concurrent approval handling and parent callback retriggers.
14
+
15
+ Add context window/token reporting through run completion events, improve cron/web UI rendering and approval streaming behavior, and harden built-in web search retry/throttle behavior.
16
+
3
17
  ## 1.6.0
4
18
 
5
19
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -298,8 +298,8 @@ declare const ONBOARDING_FIELDS: readonly [{
298
298
  readonly path: "telemetry.otlp";
299
299
  readonly kind: "string";
300
300
  readonly scopes: ["full"];
301
- readonly label: "OTLP endpoint";
302
- readonly prompt: "OTLP endpoint (optional)";
301
+ readonly label: "OTLP trace endpoint";
302
+ readonly prompt: "OTLP trace endpoint URL (optional, supports Jaeger/Tempo/Honeycomb/any collector)";
303
303
  readonly defaultValue: "";
304
304
  readonly dependsOn: {
305
305
  readonly fieldId: "telemetry.enabled";
@@ -585,9 +585,15 @@ interface RunResult {
585
585
  tokens: TokenUsage;
586
586
  duration: number;
587
587
  continuation?: boolean;
588
- /** Full message chain from the harness run (populated when continuation=true). */
588
+ /** Full structured message chain from the harness run, including tool-call
589
+ * and tool-result messages. Always populated on completion so callers can
590
+ * persist the chain for accurate multi-turn context. */
589
591
  continuationMessages?: Message[];
590
592
  maxSteps?: number;
593
+ /** Estimated current context usage in tokens at end of run (last model input + tool output estimates, reset on compaction). */
594
+ contextTokens?: number;
595
+ /** Model context window size in tokens. */
596
+ contextWindow?: number;
591
597
  }
592
598
  interface AgentFailure {
593
599
  code: string;
package/dist/index.js CHANGED
@@ -232,8 +232,8 @@ var ONBOARDING_FIELDS = [
232
232
  path: "telemetry.otlp",
233
233
  kind: "string",
234
234
  scopes: ["full"],
235
- label: "OTLP endpoint",
236
- prompt: "OTLP endpoint (optional)",
235
+ label: "OTLP trace endpoint",
236
+ prompt: "OTLP trace endpoint URL (optional, supports Jaeger/Tempo/Honeycomb/any collector)",
237
237
  defaultValue: "",
238
238
  dependsOn: { fieldId: "telemetry.enabled", equals: true }
239
239
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poncho-ai/sdk",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "Core types and utilities for building Poncho skills",
5
5
  "repository": {
6
6
  "type": "git",
@@ -277,8 +277,8 @@ export const ONBOARDING_FIELDS = [
277
277
  path: "telemetry.otlp",
278
278
  kind: "string",
279
279
  scopes: ["full"],
280
- label: "OTLP endpoint",
281
- prompt: "OTLP endpoint (optional)",
280
+ label: "OTLP trace endpoint",
281
+ prompt: "OTLP trace endpoint URL (optional, supports Jaeger/Tempo/Honeycomb/any collector)",
282
282
  defaultValue: "",
283
283
  dependsOn: { fieldId: "telemetry.enabled", equals: true },
284
284
  },
package/src/index.ts CHANGED
@@ -119,9 +119,15 @@ export interface RunResult {
119
119
  tokens: TokenUsage;
120
120
  duration: number;
121
121
  continuation?: boolean;
122
- /** Full message chain from the harness run (populated when continuation=true). */
122
+ /** Full structured message chain from the harness run, including tool-call
123
+ * and tool-result messages. Always populated on completion so callers can
124
+ * persist the chain for accurate multi-turn context. */
123
125
  continuationMessages?: Message[];
124
126
  maxSteps?: number;
127
+ /** Estimated current context usage in tokens at end of run (last model input + tool output estimates, reset on compaction). */
128
+ contextTokens?: number;
129
+ /** Model context window size in tokens. */
130
+ contextWindow?: number;
125
131
  }
126
132
 
127
133
  export interface AgentFailure {