@caupulican/pi-adaptative 0.80.59 → 0.80.61

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 (48) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/core/agent-session.d.ts +6 -0
  3. package/dist/core/agent-session.d.ts.map +1 -1
  4. package/dist/core/agent-session.js +42 -6
  5. package/dist/core/agent-session.js.map +1 -1
  6. package/dist/core/extension-metadata.d.ts +20 -0
  7. package/dist/core/extension-metadata.d.ts.map +1 -0
  8. package/dist/core/extension-metadata.js +115 -0
  9. package/dist/core/extension-metadata.js.map +1 -0
  10. package/dist/core/extensions/runner.d.ts +1 -0
  11. package/dist/core/extensions/runner.d.ts.map +1 -1
  12. package/dist/core/extensions/runner.js +3 -0
  13. package/dist/core/extensions/runner.js.map +1 -1
  14. package/dist/core/memory/providers/transcript-recall.d.ts +27 -0
  15. package/dist/core/memory/providers/transcript-recall.d.ts.map +1 -0
  16. package/dist/core/memory/providers/transcript-recall.js +154 -0
  17. package/dist/core/memory/providers/transcript-recall.js.map +1 -0
  18. package/dist/core/memory/transcript-index.d.ts +22 -0
  19. package/dist/core/memory/transcript-index.d.ts.map +1 -0
  20. package/dist/core/memory/transcript-index.js +85 -0
  21. package/dist/core/memory/transcript-index.js.map +1 -0
  22. package/dist/core/resource-loader.d.ts +26 -0
  23. package/dist/core/resource-loader.d.ts.map +1 -1
  24. package/dist/core/resource-loader.js +53 -14
  25. package/dist/core/resource-loader.js.map +1 -1
  26. package/dist/core/system-prompt.d.ts +3 -0
  27. package/dist/core/system-prompt.d.ts.map +1 -1
  28. package/dist/core/system-prompt.js +54 -7
  29. package/dist/core/system-prompt.js.map +1 -1
  30. package/dist/modes/interactive/components/profile-resource-editor.d.ts.map +1 -1
  31. package/dist/modes/interactive/components/profile-resource-editor.js +6 -2
  32. package/dist/modes/interactive/components/profile-resource-editor.js.map +1 -1
  33. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  34. package/dist/modes/interactive/interactive-mode.js +6 -3
  35. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  36. package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
  37. package/dist/modes/rpc/rpc-mode.js +1 -1
  38. package/dist/modes/rpc/rpc-mode.js.map +1 -1
  39. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  40. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  41. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  42. package/examples/extensions/sandbox/package-lock.json +2 -2
  43. package/examples/extensions/sandbox/package.json +1 -1
  44. package/examples/extensions/with-deps/package-lock.json +2 -2
  45. package/examples/extensions/with-deps/package.json +1 -1
  46. package/examples/sdk/12-full-control.ts +3 -0
  47. package/npm-shrinkwrap.json +12 -12
  48. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ ## [0.80.61] - 2026-06-27
2
+
3
+ ### Added
4
+
5
+ - 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.
6
+
7
+ ## [0.80.60] - 2026-06-27
8
+
9
+ ### Fixed
10
+
11
+ - Resource profiles are now the final authority everywhere: a profile-blocked skill, prompt, theme, or extension can no longer be selected or invoked by the user or the agent — including after a runtime profile switch. Skills/prompts/themes load fully (so the profile editor can show them) but are filtered at every use surface; extensions stay load-gated (a blocked extension is never loaded or allowed to run).
12
+ - The profile resource editor can now be cancelled/aborted (Ctrl+Q / Esc / interrupt) without saving; the footer advertises it.
13
+
14
+ ### Added
15
+
16
+ - The system prompt now lists the agent's loaded capabilities — active skills, tools, and extensions (with names and descriptions) — so the agent can answer "list your capabilities" accurately. Extensions show a real name/description instead of `index.ts`.
17
+
1
18
  ## [0.80.59] - 2026-06-27
2
19
 
3
20
  ### Added
@@ -431,6 +431,12 @@ export declare class AgentSession {
431
431
  * @throws Error if no model selected or no API key available (when not streaming)
432
432
  */
433
433
  prompt(text: string, options?: PromptOptions): Promise<void>;
434
+ /**
435
+ * Zero-I/O gate for cross-session recall (R3): skip trivial turns (short acks, slash commands) so
436
+ * recall only runs when it could plausibly help. The provider's similarity cutoff is the real
437
+ * filter — this just avoids the index query on turns that obviously don't warrant it.
438
+ */
439
+ private _shouldAttemptRecall;
434
440
  private _promptUnserialized;
435
441
  /**
436
442
  * Try to execute an extension command. Returns true if command was found and executed.