@poncho-ai/sdk 1.6.0 → 1.6.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.
@@ -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.1 build /home/runner/work/poncho-ai/poncho-ai/packages/sdk
3
3
  > tsup src/index.ts --format esm --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,7 +8,7 @@
8
8
  CLI Target: es2022
9
9
  ESM Build start
10
10
  ESM dist/index.js 11.44 KB
11
- ESM ⚡️ Build success in 21ms
11
+ ESM ⚡️ Build success in 17ms
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 1248ms
14
+ DTS dist/index.d.ts 22.39 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @poncho-ai/sdk
2
2
 
3
+ ## 1.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`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.
8
+
9
+ 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.
10
+
3
11
  ## 1.6.0
4
12
 
5
13
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -588,6 +588,10 @@ interface RunResult {
588
588
  /** Full message chain from the harness run (populated when continuation=true). */
589
589
  continuationMessages?: Message[];
590
590
  maxSteps?: number;
591
+ /** Estimated current context usage in tokens at end of run (last model input + tool output estimates, reset on compaction). */
592
+ contextTokens?: number;
593
+ /** Model context window size in tokens. */
594
+ contextWindow?: number;
591
595
  }
592
596
  interface AgentFailure {
593
597
  code: string;
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.1",
4
4
  "description": "Core types and utilities for building Poncho skills",
5
5
  "repository": {
6
6
  "type": "git",
package/src/index.ts CHANGED
@@ -122,6 +122,10 @@ export interface RunResult {
122
122
  /** Full message chain from the harness run (populated when continuation=true). */
123
123
  continuationMessages?: Message[];
124
124
  maxSteps?: number;
125
+ /** Estimated current context usage in tokens at end of run (last model input + tool output estimates, reset on compaction). */
126
+ contextTokens?: number;
127
+ /** Model context window size in tokens. */
128
+ contextWindow?: number;
125
129
  }
126
130
 
127
131
  export interface AgentFailure {