@agent-finops/core 0.7.1 → 0.7.3
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/dist/activitySnapshot.d.ts +11 -28
- package/dist/activitySnapshot.js +19 -10
- package/dist/contextHealth.js +3 -1
- package/dist/glance.js +16 -16
- package/dist/index.d.ts +4 -1
- package/dist/index.js +2 -1
- package/dist/localAgentFormats/registry.d.ts +8 -0
- package/dist/localAgentFormats/registry.js +219 -0
- package/dist/localAgentFormats/runtimeRegistry.d.ts +4 -0
- package/dist/localAgentFormats/runtimeRegistry.js +55 -0
- package/dist/localAgentFormats/types.d.ts +84 -0
- package/dist/localAgentFormats/types.js +2 -0
- package/dist/localAgentLogs.d.ts +19 -2
- package/dist/localAgentLogs.js +234 -172
- package/dist/sourceStatus.d.ts +2 -1
- package/dist/sourceStatus.js +7 -13
- package/package.json +1 -1
package/dist/sourceStatus.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CostConfidence, UsageRecord } from "./schema.js";
|
|
2
|
+
import type { LocalAgentFormatId } from "./localAgentFormats/types.js";
|
|
2
3
|
/**
|
|
3
4
|
* How thoroughly an ingestion path itself has been exercised.
|
|
4
5
|
*
|
|
@@ -11,7 +12,7 @@ export type SourceValidationCoverage = typeof sourceValidationCoverageValues[num
|
|
|
11
12
|
export type FinancialEvidenceStatus = CostConfidence;
|
|
12
13
|
export declare const sourceFreshnessStatusValues: readonly ["fresh", "stale", "not_checked"];
|
|
13
14
|
export type SourceFreshnessStatus = typeof sourceFreshnessStatusValues[number];
|
|
14
|
-
export type SourceStatusId =
|
|
15
|
+
export type SourceStatusId = LocalAgentFormatId | "openai" | "anthropic" | "cursor" | "github-copilot";
|
|
15
16
|
export type SourceStatusDefinition = {
|
|
16
17
|
id: SourceStatusId;
|
|
17
18
|
label: string;
|
package/dist/sourceStatus.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { localAgentFormatDescriptors } from "./localAgentFormats/registry.js";
|
|
1
2
|
/**
|
|
2
3
|
* How thoroughly an ingestion path itself has been exercised.
|
|
3
4
|
*
|
|
@@ -17,20 +18,13 @@ export const sourceFreshnessStatusValues = ["fresh", "stale", "not_checked"];
|
|
|
17
18
|
* reconciliation.
|
|
18
19
|
*/
|
|
19
20
|
export const sourceStatusDefinitions = [
|
|
20
|
-
{
|
|
21
|
-
id:
|
|
22
|
-
label:
|
|
23
|
-
validationCoverage:
|
|
24
|
-
validationNote:
|
|
21
|
+
...localAgentFormatDescriptors.map((descriptor) => ({
|
|
22
|
+
id: descriptor.id,
|
|
23
|
+
label: `${descriptor.label} local logs`,
|
|
24
|
+
validationCoverage: descriptor.confidenceDefaults.validationCoverage,
|
|
25
|
+
validationNote: descriptor.validationNote,
|
|
25
26
|
staleAfterHours: 72
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
id: "codex",
|
|
29
|
-
label: "Codex local logs",
|
|
30
|
-
validationCoverage: "live_verified",
|
|
31
|
-
validationNote: "Local parsing was replayed against live logs; total-only token shapes and unknown aliases remain missing rather than becoming estimated $0.",
|
|
32
|
-
staleAfterHours: 72
|
|
33
|
-
},
|
|
27
|
+
})),
|
|
34
28
|
{
|
|
35
29
|
id: "openai",
|
|
36
30
|
label: "OpenAI Costs and Usage API",
|