@caupulican/pi-adaptative 0.80.70 → 0.80.72
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 +16 -0
- package/dist/core/agent-session.d.ts +11 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +38 -5
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/catalog-manager.d.ts +1 -1
- package/dist/core/catalog-manager.d.ts.map +1 -1
- package/dist/core/catalog-manager.js +0 -0
- package/dist/core/catalog-manager.js.map +1 -1
- package/dist/core/gateways/channel-provider.d.ts.map +1 -1
- package/dist/core/gateways/channel-provider.js +7 -0
- package/dist/core/gateways/channel-provider.js.map +1 -1
- package/dist/core/memory/effectiveness-tracker.d.ts.map +1 -1
- package/dist/core/memory/effectiveness-tracker.js +11 -2
- package/dist/core/memory/effectiveness-tracker.js.map +1 -1
- package/dist/core/memory/providers/file-store.d.ts.map +1 -1
- package/dist/core/memory/providers/file-store.js +4 -0
- package/dist/core/memory/providers/file-store.js.map +1 -1
- package/dist/core/memory/providers/transcript-recall.d.ts.map +1 -1
- package/dist/core/memory/providers/transcript-recall.js +12 -2
- package/dist/core/memory/providers/transcript-recall.js.map +1 -1
- package/dist/core/security/untrusted-boundary.d.ts.map +1 -1
- package/dist/core/security/untrusted-boundary.js +5 -3
- package/dist/core/security/untrusted-boundary.js.map +1 -1
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +4 -3
- package/dist/core/settings-manager.js.map +1 -1
- package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/sandbox/package-lock.json +2 -2
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package-lock.json +2 -2
- package/examples/extensions/with-deps/package.json +1 -1
- package/npm-shrinkwrap.json +12 -12
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## [0.80.72] - 2026-06-28
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
|
|
5
|
+
- Long-session performance: the footer's spawned-cost total is now cached by entry count instead of re-scanning all session entries on every render frame, fixing typing lag and CPU spikes in long sessions.
|
|
6
|
+
- Long-session stability: disposing a session now releases the hooks it installed on the shared agent (so the session and its history can be garbage-collected) and aborts any in-flight background reflection so it can't keep spending tokens or write memory/skills against a closed session.
|
|
7
|
+
|
|
8
|
+
## [0.80.71] - 2026-06-28
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Security (untrusted boundary): closed a fence-spoofing bypass — closing tags in case/whitespace variants (e.g. `</UNTRUSTED_CONTENT >`) are now neutralized — and widened the set of tool names treated as untrusted (download/exec/scrape/etc.).
|
|
13
|
+
- Security (cross-session recall): recalled past-session text is now fenced as untrusted data so an injected payload in old history can't be replayed as a current instruction; recall pages are no longer re-indexed into the recall corpus (no recirculation).
|
|
14
|
+
- Memory: a remembered fact can no longer overwrite Markdown section headers; the recall-effectiveness metric no longer unfairly penalizes long snippets; situational souls follow first-wins profile precedence instead of concatenating.
|
|
15
|
+
- Stability: the resource catalog no longer crashes on a circular symlink (cycle-guarded hashing) and never leaves a partially-copied resource on a failed install/backup (atomic swap); gateway re-registration stops the replaced provider (no listener leak).
|
|
16
|
+
|
|
1
17
|
## [0.80.70] - 2026-06-28
|
|
2
18
|
|
|
3
19
|
### Fixed
|
|
@@ -279,6 +279,12 @@ export declare class AgentSession {
|
|
|
279
279
|
private readonly _effectivenessTracker;
|
|
280
280
|
/** R8: registry for deployment-supplied gateway channels + schedulers (lifecycle driven by the host runner). */
|
|
281
281
|
private readonly _gatewayRegistry;
|
|
282
|
+
/** Cache for getSpawnedUsage(), keyed by session entry count (Bug #22 — avoid O(N) per render frame). */
|
|
283
|
+
private _spawnedUsageCache?;
|
|
284
|
+
/** Set on dispose so in-flight background reflection bails instead of writing to a dead session (Bug #21). */
|
|
285
|
+
private _disposed;
|
|
286
|
+
/** Aborts in-flight background reflection completions on dispose (Bug #21). */
|
|
287
|
+
private readonly _reflectionAbort;
|
|
282
288
|
private readonly _isChildSession;
|
|
283
289
|
/** Memory providers registered by extensions via pi.registerMemoryProvider, applied on (re)init. */
|
|
284
290
|
private _pendingMemoryProviders;
|
|
@@ -777,7 +783,11 @@ export declare class AgentSession {
|
|
|
777
783
|
sourceSessionId?: string;
|
|
778
784
|
reportId?: string;
|
|
779
785
|
}): string | undefined;
|
|
780
|
-
/**
|
|
786
|
+
/**
|
|
787
|
+
* Aggregate all recorded spawned-usage reports (see {@link addSpawnedUsage}). Cached by the session
|
|
788
|
+
* entry count so the interactive footer (which calls this every render frame) is O(1) between turns
|
|
789
|
+
* instead of an O(N) scan on every keystroke (Bug #22). Recomputes only when entries change.
|
|
790
|
+
*/
|
|
781
791
|
getSpawnedUsage(): SpawnedUsageTotals;
|
|
782
792
|
/**
|
|
783
793
|
* Run a one-shot LLM completion fully ISOLATED from the main session — the load-bearing
|