@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.
@@ -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 = "claude-code" | "codex" | "openai" | "anthropic" | "cursor" | "github-copilot";
15
+ export type SourceStatusId = LocalAgentFormatId | "openai" | "anthropic" | "cursor" | "github-copilot";
15
16
  export type SourceStatusDefinition = {
16
17
  id: SourceStatusId;
17
18
  label: string;
@@ -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: "claude-code",
22
- label: "Claude Code local logs",
23
- validationCoverage: "live_verified",
24
- validationNote: "Local transcript parsing is exercised against live logs; dollar values remain API-rate estimates.",
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-finops/core",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",