@caupulican/pi-adaptative 0.80.90 → 0.80.93
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 +33 -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 -35
- 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/context/context-composition.d.ts +2 -0
- package/dist/core/context/context-composition.d.ts.map +1 -1
- package/dist/core/context/context-composition.js +1 -1
- package/dist/core/context/context-composition.js.map +1 -1
- package/dist/core/profile-resource-selection.d.ts.map +1 -1
- package/dist/core/profile-resource-selection.js +19 -6
- package/dist/core/profile-resource-selection.js.map +1 -1
- package/dist/core/resource-loader.d.ts +22 -0
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +54 -0
- package/dist/core/resource-loader.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/components/profile-resource-editor.d.ts.map +1 -1
- package/dist/modes/interactive/components/profile-resource-editor.js +11 -4
- package/dist/modes/interactive/components/profile-resource-editor.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +65 -14
- 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/examples/sdk/12-full-control.ts +4 -0
- package/npm-shrinkwrap.json +12 -12
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,40 @@
|
|
|
1
|
+
## [0.80.93] - 2026-07-02
|
|
2
|
+
|
|
3
|
+
## [0.80.92] - 2026-07-02
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Added the brain-curation compaction pre-digest (design surface 3, runtime-gated): when curation
|
|
8
|
+
is enabled AND the curator model has proven itself in-session (>=5 jobs, <=5% parse failures on
|
|
9
|
+
top of the digest fitness gate), old conversation chunks are digested locally before the frontier
|
|
10
|
+
summarization call — digests plus the verbatim recent tail replace the full transcript. Any chunk
|
|
11
|
+
whose digest fails passes through verbatim (partial assist, never partial loss), and each
|
|
12
|
+
pre-digest persists an auditable session record with chars-before/after.
|
|
13
|
+
- Surfaced three silent profile situations in the /context dashboard: an extension loaded but fully
|
|
14
|
+
inert (profile denies all its tools and commands), an explicit tool grant that binds to no
|
|
15
|
+
registered tool (typo or ungranted owning extension), and profile grants overridden by the user's
|
|
16
|
+
own disable list — with the precedence now documented: a user disable ALWAYS beats a profile grant.
|
|
17
|
+
|
|
18
|
+
## [0.80.91] - 2026-07-02
|
|
19
|
+
|
|
1
20
|
## [0.80.90] - 2026-07-02
|
|
2
21
|
|
|
3
22
|
### Fixed
|
|
4
23
|
|
|
24
|
+
- Fixed the profile editor's universe collapsing under strict UAC: the Skills/Prompts/Agents lists
|
|
25
|
+
were built from the profile-NARROWED loaded getters, so while any restrictive profile was active
|
|
26
|
+
you could not see — let alone grant — currently-blocked resources, including expanding the very
|
|
27
|
+
profile you were running under. Discovery is now profile-independent (full pre-filter path sets,
|
|
28
|
+
mirroring the existing extensions fix), and the editor's Tools list now includes registered
|
|
29
|
+
extension tools.
|
|
30
|
+
- Fixed profile-editor saves silently corrupting profiles: grants referenced outside the currently
|
|
31
|
+
visible universe were dropped on save, and a fully-granted kind re-encoded to an omitted kind —
|
|
32
|
+
which under strict UAC means DENY-ALL. Selection encode/decode is now strict-UAC-coherent
|
|
33
|
+
(unmentioned decodes as denied; grant-all encodes as an explicit allow:["*"]; profile-referenced
|
|
34
|
+
ids outside the visible universe survive decode/encode round-trips).
|
|
35
|
+
- Surfaced the silent strict-UAC denial of AGENTS.md/CLAUDE.md context files: when the active
|
|
36
|
+
profile does not mention the "agents" kind, the withheld files now produce a loader warning and
|
|
37
|
+
a /context dashboard observation instead of instructions vanishing without a trace.
|
|
5
38
|
- Fixed profile tool grants never ACTIVATING: activation was only ever the requested defaults
|
|
6
39
|
intersected with the profile allow-list, so a profile granting non-default tools (e.g. a
|
|
7
40
|
search-only profile allowing grep/find) produced an empty or truncated "Available tools" set on
|
|
@@ -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;
|