@earendil-works/pi-coding-agent 0.81.0 → 0.81.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/core/agent-session.d.ts +22 -0
  3. package/dist/core/agent-session.d.ts.map +1 -1
  4. package/dist/core/agent-session.js +32 -2
  5. package/dist/core/agent-session.js.map +1 -1
  6. package/dist/core/compaction/branch-summarization.d.ts +5 -0
  7. package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
  8. package/dist/core/compaction/branch-summarization.js +5 -7
  9. package/dist/core/compaction/branch-summarization.js.map +1 -1
  10. package/dist/core/compaction/compaction.d.ts +13 -4
  11. package/dist/core/compaction/compaction.d.ts.map +1 -1
  12. package/dist/core/compaction/compaction.js +21 -17
  13. package/dist/core/compaction/compaction.js.map +1 -1
  14. package/dist/core/sdk.d.ts.map +1 -1
  15. package/dist/core/sdk.js +7 -3
  16. package/dist/core/sdk.js.map +1 -1
  17. package/dist/main.d.ts.map +1 -1
  18. package/dist/main.js +2 -1
  19. package/dist/main.js.map +1 -1
  20. package/dist/modes/interactive/interactive-mode.d.ts +1 -0
  21. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  22. package/dist/modes/interactive/interactive-mode.js +34 -4
  23. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  24. package/docs/json.md +5 -1
  25. package/docs/rpc.md +33 -0
  26. package/docs/sdk.md +3 -0
  27. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  28. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  29. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  30. package/examples/extensions/gondolin/package-lock.json +2 -2
  31. package/examples/extensions/gondolin/package.json +1 -1
  32. package/examples/extensions/sandbox/package-lock.json +2 -2
  33. package/examples/extensions/sandbox/package.json +1 -1
  34. package/examples/extensions/with-deps/package-lock.json +2 -2
  35. package/examples/extensions/with-deps/package.json +1 -1
  36. package/npm-shrinkwrap.json +12 -12
  37. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.81.1] - 2026-07-21
4
+
5
+ ### New Features
6
+
7
+ - **Verifiable release source archives** — GitHub releases now include deterministic, checksummed source archives with instructions for rebuilding standalone binaries. See [Building standalone binaries from release source](../../README.md#building-standalone-binaries-from-release-source).
8
+ - **Resilient compaction and branch summaries** — Transient provider failures now follow the configured retry policy, with retry lifecycle events available to interactive, JSON, RPC, and SDK consumers. See [Compaction & Branch Summarization](docs/compaction.md) and [RPC retry events](docs/rpc.md#summarization_retry_scheduled--summarization_retry_attempt_start--summarization_retry_finished).
9
+
10
+ ### Added
11
+
12
+ - Added deterministic, checksummed source archives to GitHub releases with documented standalone binary rebuild instructions ([#6913](https://github.com/earendil-works/pi/pull/6913) by [@christianklotz](https://github.com/christianklotz)).
13
+
14
+ ### Fixed
15
+
16
+ - Fixed compaction and branch summarization to retry transient provider failures using the configured retry policy, with retry lifecycle events exposed to interactive, JSON, RPC, and SDK consumers ([#6901](https://github.com/earendil-works/pi/pull/6901) by [@davidbrai](https://github.com/davidbrai)).
17
+ - Fixed interactive startup waiting for background model catalog refresh while computing the footer provider count.
18
+ - Restored the default stream fallback for extensions using the pre-0.81 agent-core API ([#6915](https://github.com/earendil-works/pi/issues/6915)).
19
+ - Fixed inherited Kimi K3 models from Moonshot AI and Moonshot AI China to use the OpenAI thinking format and expose reasoning effort support.
20
+
3
21
  ## [0.81.0] - 2026-07-21
4
22
 
5
23
  ### New Features
@@ -79,6 +79,21 @@ export type AgentSessionEvent = Exclude<AgentEvent, {
79
79
  success: boolean;
80
80
  attempt: number;
81
81
  finalError?: string;
82
+ } | {
83
+ type: "summarization_retry_scheduled";
84
+ attempt: number;
85
+ maxAttempts: number;
86
+ delayMs: number;
87
+ errorMessage: string;
88
+ } | {
89
+ type: "summarization_retry_attempt_start";
90
+ source: "branchSummary";
91
+ } | {
92
+ type: "summarization_retry_attempt_start";
93
+ source: "compaction";
94
+ reason: "manual" | "threshold" | "overflow";
95
+ } | {
96
+ type: "summarization_retry_finished";
82
97
  };
83
98
  /** Listener function for agent session events */
84
99
  export type AgentSessionEventListener = (event: AgentSessionEvent) => void;
@@ -503,6 +518,13 @@ export declare class AgentSession {
503
518
  * Context overflow errors are NOT retryable (handled by compaction instead).
504
519
  */
505
520
  private _isRetryableError;
521
+ /**
522
+ * Retry policy + callbacks shared by compaction and branch-summary summarization calls.
523
+ * Uses the same `settings.retry` budget/backoff as agent-turn retries so a single transient
524
+ * stream drop no longer fails the whole operation. `source` carries the context
525
+ * the TUI needs to render the retry and recreate the underlying indicator.
526
+ */
527
+ private _summarizationRetryCallbacks;
506
528
  private _prepareRetry;
507
529
  /**
508
530
  * Cancel in-progress retry.