@caupulican/pi-adaptative 0.80.91 → 0.80.94
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 +29 -0
- package/dist/core/agent-session.d.ts +18 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +134 -36
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +2 -2
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +15 -5
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/context/brain-curator.d.ts +21 -0
- package/dist/core/context/brain-curator.d.ts.map +1 -1
- package/dist/core/context/brain-curator.js +66 -0
- package/dist/core/context/brain-curator.js.map +1 -1
- package/dist/core/settings-manager.d.ts +8 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +25 -0
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +17 -10
- package/dist/modes/interactive/interactive-mode.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,32 @@
|
|
|
1
|
+
## [0.80.94] - 2026-07-02
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
|
|
5
|
+
- Fixed pi crashing with an uncaught ReferenceError when opening Manage Library: the profile
|
|
6
|
+
editor's universe builder referenced a helper before its initialization (TDZ). The editor path
|
|
7
|
+
is now covered by a regression test that executes it end to end.
|
|
8
|
+
- Fixed the selected profile not surviving pi restarts: /profiles selection was applied
|
|
9
|
+
runtime-only, so every new session started with no profile. Selecting a profile now persists it
|
|
10
|
+
to global settings (like model/theme selections), and selecting "(none)" persists the clear so
|
|
11
|
+
the old selection cannot resurrect on restart.
|
|
12
|
+
|
|
13
|
+
## [0.80.93] - 2026-07-02
|
|
14
|
+
|
|
15
|
+
## [0.80.92] - 2026-07-02
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- Added the brain-curation compaction pre-digest (design surface 3, runtime-gated): when curation
|
|
20
|
+
is enabled AND the curator model has proven itself in-session (>=5 jobs, <=5% parse failures on
|
|
21
|
+
top of the digest fitness gate), old conversation chunks are digested locally before the frontier
|
|
22
|
+
summarization call — digests plus the verbatim recent tail replace the full transcript. Any chunk
|
|
23
|
+
whose digest fails passes through verbatim (partial assist, never partial loss), and each
|
|
24
|
+
pre-digest persists an auditable session record with chars-before/after.
|
|
25
|
+
- Surfaced three silent profile situations in the /context dashboard: an extension loaded but fully
|
|
26
|
+
inert (profile denies all its tools and commands), an explicit tool grant that binds to no
|
|
27
|
+
registered tool (typo or ungranted owning extension), and profile grants overridden by the user's
|
|
28
|
+
own disable list — with the precedence now documented: a user disable ALWAYS beats a profile grant.
|
|
29
|
+
|
|
1
30
|
## [0.80.91] - 2026-07-02
|
|
2
31
|
|
|
3
32
|
## [0.80.90] - 2026-07-02
|
|
@@ -339,6 +339,9 @@ export declare class AgentSession {
|
|
|
339
339
|
* contextPolicy.curation setting is enabled AND the model passes the digest fitness gate. */
|
|
340
340
|
private readonly _brainCurator;
|
|
341
341
|
private _lastCurationSkipReason;
|
|
342
|
+
private _inertExtensionWarnings;
|
|
343
|
+
private _lastPreDigestSkipReason;
|
|
344
|
+
private _unboundToolGrantWarnings;
|
|
342
345
|
private _toolArtifactStore;
|
|
343
346
|
private _latestContextAuditReport;
|
|
344
347
|
private _latestPromptPolicyReport;
|
|
@@ -568,7 +571,21 @@ export declare class AgentSession {
|
|
|
568
571
|
* fitness probe on THIS host (design: unfit or unprobed models are refused with a visible
|
|
569
572
|
* reason, never silently degraded). Fire-and-forget; never throws into a turn.
|
|
570
573
|
*/
|
|
574
|
+
/**
|
|
575
|
+
* Resolve the curation model IFF every gate passes: setting enabled, model configured,
|
|
576
|
+
* resolvable+authed, and digest-fitness-proven on THIS host (canonical "provider/id" ref —
|
|
577
|
+
* runModelFitness stores reports under it, while settings.model may be a bare id or pattern).
|
|
578
|
+
* Sets _lastCurationSkipReason on refusal; never throws.
|
|
579
|
+
*/
|
|
580
|
+
private _resolveCurationModelIfFit;
|
|
571
581
|
private _maybeDrainBrainCuration;
|
|
582
|
+
/**
|
|
583
|
+
* Compaction pre-digest gate (design surface 3): everything the drain gate requires PLUS a
|
|
584
|
+
* RUNTIME reliability proof — the curator must have run >=5 jobs on this session with a parse
|
|
585
|
+
* failure rate <=5% before it is trusted to pre-digest compaction input. Returns undefined
|
|
586
|
+
* (verbatim compaction, byte-for-byte today's behavior) whenever any gate refuses.
|
|
587
|
+
*/
|
|
588
|
+
private _buildCompactionPreDigest;
|
|
572
589
|
private _drainBrainCuration;
|
|
573
590
|
/**
|
|
574
591
|
* Context composition dashboard data: decomposes the per-request payload (system prompt, tool
|
|
@@ -585,6 +602,7 @@ export declare class AgentSession {
|
|
|
585
602
|
model?: string;
|
|
586
603
|
telemetry: CurationTelemetrySnapshot;
|
|
587
604
|
lastSkipReason?: string;
|
|
605
|
+
lastPreDigestSkipReason?: string;
|
|
588
606
|
};
|
|
589
607
|
/** Read-only inspection of the latest prompt-enforcement report, for tests/debugging. */
|
|
590
608
|
getPromptEnforcementReport(): PromptEnforcementReport;
|