@caupulican/pi-adaptative 0.80.60 → 0.80.62

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [0.80.62] - 2026-06-27
2
+
3
+ ### Added
4
+
5
+ - Adaptive recall feedback: pi now tracks whether the cross-session context it recalled was actually used in its answer, and tunes how eagerly it recalls — leaning in when recall helps, backing off when it doesn't.
6
+
7
+ ## [0.80.61] - 2026-06-27
8
+
9
+ ### Added
10
+
11
+ - Cross-session memory recall: pi now indexes your recent past sessions (same project) and, when a turn is relevant, injects a small read-only recall page from that history — so it can draw on what you did before without you re-explaining. Local, dependency-free, and scoped to the current working directory; the current session and background-learning sessions are excluded.
12
+
1
13
  ## [0.80.60] - 2026-06-27
2
14
 
3
15
  ### Fixed
@@ -274,6 +274,8 @@ export declare class AgentSession {
274
274
  private readonly _isExplicitThinking;
275
275
  /** Plug-and-play memory subsystem. Recreated on each (re)initialize so reload is safe. */
276
276
  private _memoryManager;
277
+ /** R4: tracks whether injected recall is actually used, to adapt the recall gate. */
278
+ private readonly _effectivenessTracker;
277
279
  private readonly _isChildSession;
278
280
  /** Memory providers registered by extensions via pi.registerMemoryProvider, applied on (re)init. */
279
281
  private _pendingMemoryProviders;
@@ -431,6 +433,12 @@ export declare class AgentSession {
431
433
  * @throws Error if no model selected or no API key available (when not streaming)
432
434
  */
433
435
  prompt(text: string, options?: PromptOptions): Promise<void>;
436
+ /**
437
+ * Zero-I/O gate for cross-session recall (R3): skip trivial turns (short acks, slash commands) so
438
+ * recall only runs when it could plausibly help. The provider's similarity cutoff is the real
439
+ * filter — this just avoids the index query on turns that obviously don't warrant it.
440
+ */
441
+ private _shouldAttemptRecall;
434
442
  private _promptUnserialized;
435
443
  /**
436
444
  * Try to execute an extension command. Returns true if command was found and executed.