@caupulican/pi-adaptative 0.81.23 → 0.81.25
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 +10 -0
- package/dist/core/agent-session.d.ts +8 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +4 -3
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/autonomy/status.d.ts +2 -3
- package/dist/core/autonomy/status.d.ts.map +1 -1
- package/dist/core/autonomy/status.js +3 -12
- package/dist/core/autonomy/status.js.map +1 -1
- package/dist/core/autonomy-telemetry.d.ts +3 -8
- package/dist/core/autonomy-telemetry.d.ts.map +1 -1
- package/dist/core/autonomy-telemetry.js +15 -20
- package/dist/core/autonomy-telemetry.js.map +1 -1
- package/dist/core/cost/cost-summary.d.ts +26 -0
- package/dist/core/cost/cost-summary.d.ts.map +1 -0
- package/dist/core/cost/cost-summary.js +85 -0
- package/dist/core/cost/cost-summary.js.map +1 -0
- package/dist/core/cost/session-usage.d.ts.map +1 -1
- package/dist/core/cost/session-usage.js +8 -2
- package/dist/core/cost/session-usage.js.map +1 -1
- package/dist/core/session-analytics.d.ts +4 -1
- package/dist/core/session-analytics.d.ts.map +1 -1
- package/dist/core/session-analytics.js +56 -18
- package/dist/core/session-analytics.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +4 -20
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/report-commands.d.ts.map +1 -1
- package/dist/modes/interactive/report-commands.js +13 -8
- package/dist/modes/interactive/report-commands.js.map +1 -1
- package/dist/modes/interactive/session-flow-commands.d.ts +1 -2
- package/dist/modes/interactive/session-flow-commands.d.ts.map +1 -1
- package/dist/modes/interactive/session-flow-commands.js +8 -4
- package/dist/modes/interactive/session-flow-commands.js.map +1 -1
- package/docs/usage.md +6 -0
- 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,13 @@
|
|
|
1
|
+
## [0.81.25] - 2026-07-09
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
- Added session-level compaction gate failure and deterministic gap-fill telemetry to make nonzero gate-failure rates visible in stats and `/session` output.
|
|
5
|
+
|
|
6
|
+
## [0.81.24] - 2026-07-09
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
- Fixed cost displays to use one CURRENT/TODAY/SUBAGENTS summary across the footer and autonomy cost line, with subagent cost included in CURRENT and local-midnight TODAY rollover.
|
|
10
|
+
|
|
1
11
|
## [0.81.23] - 2026-07-09
|
|
2
12
|
|
|
3
13
|
### Added
|
|
@@ -14,6 +14,7 @@ import type { PromptPolicyGcCorrelationReport, PromptPolicyShadowReport } from "
|
|
|
14
14
|
import type { MemoryPromptInclusionReport } from "./context/memory-diagnostics.ts";
|
|
15
15
|
import type { MemoryRetrievalReport } from "./context/memory-retrieval.ts";
|
|
16
16
|
import type { ContextGcReport } from "./context-gc.ts";
|
|
17
|
+
import type { SessionCostSummary } from "./cost/cost-summary.ts";
|
|
17
18
|
import type { DailyUsageTotals } from "./cost/daily-usage.ts";
|
|
18
19
|
import { type CostGuardDecision } from "./cost-guard.ts";
|
|
19
20
|
import type { WorkerRunOutcome } from "./delegation/worker-runner.ts";
|
|
@@ -219,6 +220,11 @@ export interface ModelCycleResult {
|
|
|
219
220
|
isScoped: boolean;
|
|
220
221
|
}
|
|
221
222
|
/** Session statistics for /session command */
|
|
223
|
+
export interface CompactionGateStats {
|
|
224
|
+
gateFailures: number;
|
|
225
|
+
deterministicGapFills: number;
|
|
226
|
+
compactionsWithGateFailures: number;
|
|
227
|
+
}
|
|
222
228
|
export interface SessionStats {
|
|
223
229
|
sessionFile: string | undefined;
|
|
224
230
|
sessionId: string;
|
|
@@ -237,6 +243,7 @@ export interface SessionStats {
|
|
|
237
243
|
cost: number;
|
|
238
244
|
contextUsage?: ContextUsage;
|
|
239
245
|
toolArgumentValidation: ToolArgumentValidationStats;
|
|
246
|
+
compactionGates: CompactionGateStats;
|
|
240
247
|
}
|
|
241
248
|
/** customType for spawned-usage roll-up entries (Cost Aggregation, Model A). */
|
|
242
249
|
export declare const SPAWNED_USAGE_CUSTOM_TYPE = "spawned_usage";
|
|
@@ -1042,6 +1049,7 @@ export declare class AgentSession {
|
|
|
1042
1049
|
}): string | undefined;
|
|
1043
1050
|
getSpawnedUsage(): SpawnedUsageTotals;
|
|
1044
1051
|
getDailyUsageTotals(now?: Date): DailyUsageTotals;
|
|
1052
|
+
getCostSummary(now?: Date): SessionCostSummary;
|
|
1045
1053
|
getDailyUsageBreakdown(formatLabel?: (label: string) => string, now?: Date): string;
|
|
1046
1054
|
/**
|
|
1047
1055
|
* Save a snapshot of the goal state to the session log.
|