@caupulican/pi-adaptative 0.81.22 → 0.81.24
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 +13 -0
- package/dist/core/agent-session.d.ts +5 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +28 -20
- 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/failure-corpus.d.ts +10 -1
- package/dist/core/failure-corpus.d.ts.map +1 -1
- package/dist/core/failure-corpus.js +32 -26
- package/dist/core/failure-corpus.js.map +1 -1
- package/dist/core/session-analytics.d.ts +10 -2
- package/dist/core/session-analytics.d.ts.map +1 -1
- package/dist/core/session-analytics.js +75 -29
- package/dist/core/session-analytics.js.map +1 -1
- package/dist/core/settings-manager.d.ts +1 -1
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/tool-recovery-log-records.d.ts +24 -0
- package/dist/core/tool-recovery-log-records.d.ts.map +1 -0
- package/dist/core/tool-recovery-log-records.js +63 -0
- package/dist/core/tool-recovery-log-records.js.map +1 -0
- package/dist/core/tool-recovery-log-worker.d.ts +2 -0
- package/dist/core/tool-recovery-log-worker.d.ts.map +1 -0
- package/dist/core/tool-recovery-log-worker.js +44 -0
- package/dist/core/tool-recovery-log-worker.js.map +1 -0
- package/dist/core/tool-recovery-logger.d.ts +59 -0
- package/dist/core/tool-recovery-logger.d.ts.map +1 -0
- package/dist/core/tool-recovery-logger.js +197 -0
- package/dist/core/tool-recovery-logger.js.map +1 -0
- package/dist/core/tool-repair-health.d.ts +2 -1
- package/dist/core/tool-repair-health.d.ts.map +1 -1
- package/dist/core/tool-repair-health.js +13 -4
- package/dist/core/tool-repair-health.js.map +1 -1
- package/dist/core/tool-repair-settings.d.ts +1 -0
- package/dist/core/tool-repair-settings.d.ts.map +1 -1
- package/dist/core/tool-repair-settings.js +2 -1
- package/dist/core/tool-repair-settings.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 +7 -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/settings.md +6 -4
- package/docs/tool-repair.md +8 -7
- 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,16 @@
|
|
|
1
|
+
## [0.81.24] - 2026-07-09
|
|
2
|
+
|
|
3
|
+
### Fixed
|
|
4
|
+
- 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.
|
|
5
|
+
|
|
6
|
+
## [0.81.23] - 2026-07-09
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- Added background worker-thread tool-recovery logging with bounded queue/drop counters surfaced in `/toolhealth`.
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
- Made tool-argument repair a built-in path by removing the `toolRepair.repair` setting; `toolRepair.logging` now controls only recovery log writes.
|
|
13
|
+
|
|
1
14
|
## [0.81.22] - 2026-07-09
|
|
2
15
|
|
|
3
16
|
### Fixed
|
|
@@ -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";
|
|
@@ -419,6 +420,8 @@ export declare class AgentSession {
|
|
|
419
420
|
private readonly _modelRouter;
|
|
420
421
|
private readonly _billingFailover;
|
|
421
422
|
private readonly _failureCorpus;
|
|
423
|
+
private readonly _toolRecoveryLogger;
|
|
424
|
+
private readonly _toolRecoveryEventLogPath;
|
|
422
425
|
private _skillCuratorInstance?;
|
|
423
426
|
private _disposed;
|
|
424
427
|
private readonly _reflectionAbort;
|
|
@@ -534,7 +537,6 @@ export declare class AgentSession {
|
|
|
534
537
|
private _handleTextToolProtocolValidationOutcome;
|
|
535
538
|
private _recordTextToolProtocolParseOutcomeFromLastAssistant;
|
|
536
539
|
private _looksLikeTextToolProtocolAttempt;
|
|
537
|
-
private _recordToolValidationBounce;
|
|
538
540
|
private _tagModelAdaptationRuleTeaching;
|
|
539
541
|
private _repairSessionCount;
|
|
540
542
|
private _handleModelAdaptationTelemetry;
|
|
@@ -590,6 +592,7 @@ export declare class AgentSession {
|
|
|
590
592
|
/** Bounded plain-text rendering of {@link getContextCompositionReport} for the /context command. */
|
|
591
593
|
formatContextCompositionDashboard(): string;
|
|
592
594
|
formatToolRepairHealthReport(): string;
|
|
595
|
+
flushToolRecoveryLogsForTests(timeoutMs?: number): Promise<void>;
|
|
593
596
|
removeToolRepairRule(model: string, mode: string): boolean;
|
|
594
597
|
resetToolProtocolCalibration(model: string): boolean;
|
|
595
598
|
/** Curation status for diagnostics/dashboard: settings, live telemetry, last refusal reason. */
|
|
@@ -1040,6 +1043,7 @@ export declare class AgentSession {
|
|
|
1040
1043
|
}): string | undefined;
|
|
1041
1044
|
getSpawnedUsage(): SpawnedUsageTotals;
|
|
1042
1045
|
getDailyUsageTotals(now?: Date): DailyUsageTotals;
|
|
1046
|
+
getCostSummary(now?: Date): SessionCostSummary;
|
|
1043
1047
|
getDailyUsageBreakdown(formatLabel?: (label: string) => string, now?: Date): string;
|
|
1044
1048
|
/**
|
|
1045
1049
|
* Save a snapshot of the goal state to the session log.
|