@poncho-ai/sdk 1.7.0 → 1.7.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.7.0 build /Users/cesar/Dev/latitude/poncho-ai/packages/sdk
2
+ > @poncho-ai/sdk@1.7.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 12.46 KB
11
- ESM ⚡️ Build success in 55ms
11
+ ESM ⚡️ Build success in 19ms
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 1325ms
14
- DTS dist/index.d.ts 23.84 KB
13
+ DTS ⚡️ Build success in 1298ms
14
+ DTS dist/index.d.ts 23.88 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @poncho-ai/sdk
2
2
 
3
+ ## 1.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#54](https://github.com/cesr/poncho-ai/pull/54) [`2341915`](https://github.com/cesr/poncho-ai/commit/23419152d52c39f3bcaf8cdcd424625d5f897315) Thanks [@cesr](https://github.com/cesr)! - Reduce high-cost outliers with aggressive runtime controls and better cost visibility.
8
+
9
+ This adds older-turn tool result archiving/truncation, tighter retry/step/subagent limits, compaction tuning, selective prompt cache behavior, and richer cache-write token attribution in logs/events.
10
+
3
11
  ## 1.7.0
4
12
 
5
13
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -559,6 +559,7 @@ interface Message {
559
559
  timestamp?: number;
560
560
  tokenCount?: number;
561
561
  step?: number;
562
+ runId?: string;
562
563
  toolActivity?: string[];
563
564
  sections?: Array<{
564
565
  type: "text" | "tools";
@@ -612,6 +613,7 @@ interface TokenUsage {
612
613
  input: number;
613
614
  output: number;
614
615
  cached: number;
616
+ cacheWrite?: number;
615
617
  }
616
618
  interface RunResult {
617
619
  status: "completed" | "error" | "cancelled";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poncho-ai/sdk",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Core types and utilities for building Poncho skills",
5
5
  "repository": {
6
6
  "type": "git",
package/src/index.ts CHANGED
@@ -34,6 +34,7 @@ export interface Message {
34
34
  timestamp?: number;
35
35
  tokenCount?: number;
36
36
  step?: number;
37
+ runId?: string;
37
38
  toolActivity?: string[];
38
39
  sections?: Array<{ type: "text" | "tools"; content: string | string[] }>;
39
40
  isCompactionSummary?: boolean;
@@ -110,6 +111,7 @@ export interface TokenUsage {
110
111
  input: number;
111
112
  output: number;
112
113
  cached: number;
114
+ cacheWrite?: number;
113
115
  }
114
116
 
115
117
  export interface RunResult {
@@ -1,6 +0,0 @@
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.
@@ -1,14 +0,0 @@
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
-