@caupulican/pi-adaptative 0.80.84 → 0.80.85

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 (29) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/core/agent-session.d.ts +3 -0
  3. package/dist/core/agent-session.d.ts.map +1 -1
  4. package/dist/core/agent-session.js +42 -1
  5. package/dist/core/agent-session.js.map +1 -1
  6. package/dist/core/cost-guard.d.ts +1 -1
  7. package/dist/core/cost-guard.d.ts.map +1 -1
  8. package/dist/core/cost-guard.js +2 -2
  9. package/dist/core/cost-guard.js.map +1 -1
  10. package/dist/core/profile-registry.d.ts +2 -1
  11. package/dist/core/profile-registry.d.ts.map +1 -1
  12. package/dist/core/profile-registry.js +32 -2
  13. package/dist/core/profile-registry.js.map +1 -1
  14. package/dist/core/settings-manager.d.ts +2 -0
  15. package/dist/core/settings-manager.d.ts.map +1 -1
  16. package/dist/core/settings-manager.js +33 -3
  17. package/dist/core/settings-manager.js.map +1 -1
  18. package/dist/modes/interactive/components/profile-selector.d.ts.map +1 -1
  19. package/dist/modes/interactive/components/profile-selector.js +2 -0
  20. package/dist/modes/interactive/components/profile-selector.js.map +1 -1
  21. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  22. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  23. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  24. package/examples/extensions/sandbox/package-lock.json +2 -2
  25. package/examples/extensions/sandbox/package.json +1 -1
  26. package/examples/extensions/with-deps/package-lock.json +2 -2
  27. package/examples/extensions/with-deps/package.json +1 -1
  28. package/npm-shrinkwrap.json +12 -12
  29. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.80.85] - 2026-06-29
4
+
5
+ ### Fixed
6
+
7
+ - Fixed proactive cost-guard estimates treating model prices as per-token instead of per-million,
8
+ which could show impossible per-turn warnings in the footer.
9
+ - Fixed trusted external resource-root settings profiles not constraining startup tools, preventing
10
+ simple prompts from activating every external extension tool schema.
11
+ - Fixed active resource profiles so blocked extensions are excluded from the extension runtime itself,
12
+ preventing their commands, tools, handlers, shortcuts, and renderers from being visible or callable.
13
+ - Fixed the no-profile default runtime to expose only Pi's built-in default tools, with extension
14
+ commands, handlers, tools, and provider registrations disabled until an explicit profile enables them.
15
+ - Fixed profile-gated extension runtimes to preserve allowed provider-only, handler-only, shortcut-only,
16
+ and renderer-only extensions even when the active profile also restricts tools or slash commands.
17
+ - Fixed explicit empty active profile selections so they suppress trusted external-root profile fallback.
18
+ - Fixed no-profile extension gating to preserve explicitly supplied SDK inline extension factories while still suppressing configured/discovered extensions unless a profile selects them.
19
+
1
20
  ## [0.80.84] - 2026-06-29
2
21
 
3
22
  ### Added
@@ -682,6 +682,9 @@ export declare class AgentSession {
682
682
  * so reload() can re-apply it after a live settings/profile edit.
683
683
  */
684
684
  private _deriveToolProfileFilter;
685
+ private _isToolOrCommandAllowedByProfile;
686
+ private _hasToolOrCommandProfileGate;
687
+ private _filterExtensionsForRuntime;
685
688
  private _reapplyActiveProfileModelSettings;
686
689
  private _initializeMemory;
687
690
  /** Register a memory provider contributed by an extension; applied on the next memory (re)init. */