@poncho-ai/sdk 1.16.0 → 1.17.0
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 +4 -4
- package/CHANGELOG.md +29 -0
- package/dist/index.d.ts +7 -0
- package/package.json +1 -1
- package/src/index.ts +7 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @poncho-ai/sdk@1.
|
|
2
|
+
> @poncho-ai/sdk@1.17.0 build /home/runner/work/poncho-ai/poncho-ai/packages/sdk
|
|
3
3
|
> tsup src/index.ts --format esm --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2022
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[32mESM[39m [1mdist/index.js [22m[32m17.24 KB[39m
|
|
11
|
-
[32mESM[39m ⚡️ Build success in
|
|
11
|
+
[32mESM[39m ⚡️ Build success in 22ms
|
|
12
12
|
[34mDTS[39m Build start
|
|
13
|
-
[32mDTS[39m ⚡️ Build success in
|
|
14
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m33.
|
|
13
|
+
[32mDTS[39m ⚡️ Build success in 1468ms
|
|
14
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m33.95 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @poncho-ai/sdk
|
|
2
2
|
|
|
3
|
+
## 1.17.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#192](https://github.com/cesr/poncho-ai/pull/192) [`bfd8012`](https://github.com/cesr/poncho-ai/commit/bfd80125ad71cd4401221c598faebf71afda2078) Thanks [@cesr](https://github.com/cesr)! - Fix context-compaction correctness so the agent stops losing context and
|
|
8
|
+
mislabeling failed work after a compaction:
|
|
9
|
+
- **Turn-based retention.** Compaction now preserves the last N whole _turns_
|
|
10
|
+
verbatim (new `compaction.keepRecentTurns`, default 4) instead of N messages,
|
|
11
|
+
which in tool-heavy turns collapsed to just the summary. The preserved side is
|
|
12
|
+
bounded by a token budget (≤ 50% of the context window) so keeping recent turns
|
|
13
|
+
can't leave the post-compaction context above the trigger (re-compaction
|
|
14
|
+
thrash / overflow). Adds exported `findSafeSplitPointByTurns`.
|
|
15
|
+
- **Faithful summaries.** The summarization output cap is raised 768 → 8192
|
|
16
|
+
tokens (768 physically truncated summaries mid-content); per-message truncation
|
|
17
|
+
1200 → 4000 chars, with a total summarizer-input budget that drops the oldest
|
|
18
|
+
non-error messages first. The prompt now requires a non-omittable "Unresolved
|
|
19
|
+
errors & failures" section, a "Pending promises" section, forbids claiming
|
|
20
|
+
unconfirmed completion, and preserves identifiers verbatim.
|
|
21
|
+
- **Structured subagent task outcome.** New `PendingSubagentResult.taskOutcome`
|
|
22
|
+
(`succeeded | failed | partial | unknown`) distinct from run status: a subagent
|
|
23
|
+
that ran but failed its task is no longer recorded as "completed". Subagents
|
|
24
|
+
self-report a machine-readable verdict; it is parsed deterministically
|
|
25
|
+
(defaulting to "unknown", never success) and rendered in the callback header
|
|
26
|
+
and compaction ledger. The subagent digest is enlarged (2000 chars, ungated on
|
|
27
|
+
status) so the failure reason survives compaction.
|
|
28
|
+
- **Per-run `maxSteps` override.** New `RunInput.maxSteps` lets a caller raise the
|
|
29
|
+
step ceiling for foreground turns without raising it for background/job turns
|
|
30
|
+
that share the same agent definition.
|
|
31
|
+
|
|
3
32
|
## 1.16.0
|
|
4
33
|
|
|
5
34
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -764,6 +764,13 @@ interface RunInput {
|
|
|
764
764
|
conversationId?: string;
|
|
765
765
|
/** When true, ignores PONCHO_MAX_DURATION soft deadline (used for background subagent runs). */
|
|
766
766
|
disableSoftDeadline?: boolean;
|
|
767
|
+
/**
|
|
768
|
+
* Per-run override for the step ceiling. Takes precedence over the agent
|
|
769
|
+
* definition's `limits.maxSteps` (default 20). Lets one harness instance run
|
|
770
|
+
* foreground turns with a higher ceiling than background/job turns without a
|
|
771
|
+
* frontmatter mutation that would affect concurrent runs.
|
|
772
|
+
*/
|
|
773
|
+
maxSteps?: number;
|
|
767
774
|
/**
|
|
768
775
|
* When true, skip the Anthropic message-history prompt-cache breakpoints
|
|
769
776
|
* for this run (the 1h static/memory system breakpoints stay on).
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -145,6 +145,13 @@ export interface RunInput {
|
|
|
145
145
|
conversationId?: string;
|
|
146
146
|
/** When true, ignores PONCHO_MAX_DURATION soft deadline (used for background subagent runs). */
|
|
147
147
|
disableSoftDeadline?: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Per-run override for the step ceiling. Takes precedence over the agent
|
|
150
|
+
* definition's `limits.maxSteps` (default 20). Lets one harness instance run
|
|
151
|
+
* foreground turns with a higher ceiling than background/job turns without a
|
|
152
|
+
* frontmatter mutation that would affect concurrent runs.
|
|
153
|
+
*/
|
|
154
|
+
maxSteps?: number;
|
|
148
155
|
/**
|
|
149
156
|
* When true, skip the Anthropic message-history prompt-cache breakpoints
|
|
150
157
|
* for this run (the 1h static/memory system breakpoints stay on).
|