@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.
- package/.turbo/turbo-build.log +5 -5
- package/.turbo/turbo-lint.log +6 -0
- package/.turbo/turbo-test.log +14 -0
- package/CHANGELOG.md +14 -0
- package/dist/index.d.ts +9 -3
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/config-registry.ts +2 -2
- package/src/index.ts +7 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @poncho-ai/sdk@1.6.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
[34mCLI[39m tsup v8.5.1
|
|
8
8
|
[34mCLI[39m Target: es2022
|
|
9
9
|
[34mESM[39m Build start
|
|
10
|
-
[32mESM[39m [1mdist/index.js [22m[32m11.
|
|
11
|
-
[32mESM[39m ⚡️ Build success in
|
|
10
|
+
[32mESM[39m [1mdist/index.js [22m[32m11.50 KB[39m
|
|
11
|
+
[32mESM[39m ⚡️ Build success in 62ms
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
14
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m22.
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 927ms
|
|
14
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m22.58 KB[39m
|
|
@@ -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
|
+
[7m[1m[36m RUN [39m[22m[27m [36mv1.6.1[39m [90m/Users/cesar/Dev/latitude/poncho-ai/packages/sdk[39m
|
|
7
|
+
|
|
8
|
+
[32m✓[39m test/sdk.test.ts [2m ([22m[2m1 test[22m[2m)[22m[90m 1[2mms[22m[39m
|
|
9
|
+
|
|
10
|
+
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
11
|
+
[2m Tests [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
12
|
+
[2m Start at [22m 15:57:51
|
|
13
|
+
[2m Duration [22m 401ms[2m (transform 116ms, setup 0ms, collect 115ms, tests 1ms, environment 0ms, prepare 80ms)[22m
|
|
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
|
|
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
package/src/config-registry.ts
CHANGED
|
@@ -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
|
|
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 {
|