@agent-finops/core 0.5.8 → 0.6.0
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/README.md +6 -0
- package/dist/agentInventory.d.ts +11 -14
- package/dist/agentInventory.js +180 -46
- package/dist/analyze.js +165 -113
- package/dist/contextHealth.d.ts +10 -1
- package/dist/contextHealth.js +216 -44
- package/dist/cutList.d.ts +9 -3
- package/dist/cutList.js +99 -41
- package/dist/deadContext.d.ts +8 -4
- package/dist/deadContext.js +83 -26
- package/dist/discovery.d.ts +6 -2
- package/dist/discovery.js +36 -14
- package/dist/glance.d.ts +9 -2
- package/dist/glance.js +107 -24
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/insights.js +53 -30
- package/dist/localAgentLogs.d.ts +80 -2
- package/dist/localAgentLogs.js +480 -88
- package/dist/modelPricing.js +0 -1
- package/dist/providerConnectors.d.ts +3 -2
- package/dist/providerConnectors.js +673 -89
- package/dist/sampleData.js +32 -4
- package/dist/schema.d.ts +105 -27
- package/dist/schema.js +110 -2
- package/dist/sourceRegistry.d.ts +30 -5
- package/dist/sourceRegistry.js +250 -21
- package/dist/sourceStatus.d.ts +65 -0
- package/dist/sourceStatus.js +147 -0
- package/dist/stateTrust.d.ts +37 -0
- package/dist/stateTrust.js +277 -0
- package/dist/toolInvocations.d.ts +47 -18
- package/dist/toolInvocations.js +200 -48
- package/package.json +1 -1
- package/samples/anthropic-usage.csv +4 -4
- package/samples/openai-usage.csv +7 -7
package/dist/modelPricing.js
CHANGED
|
@@ -52,7 +52,6 @@ const pricingRules = [
|
|
|
52
52
|
// Open-weight models with NO canonical price (llama, qwen, mistral, glm):
|
|
53
53
|
// hosting rates vary several-fold by provider, so we deliberately return
|
|
54
54
|
// undefined -> costConfidence "missing" instead of inventing a number.
|
|
55
|
-
{ match: /codex/i, inputPerM: 1.25, outputPerM: 10, cacheReadPerM: 0.125 }
|
|
56
55
|
];
|
|
57
56
|
export function findPricingRule(model) {
|
|
58
57
|
return pricingRules.find((rule) => rule.match.test(model));
|
|
@@ -8,6 +8,7 @@ type ProviderResponse = {
|
|
|
8
8
|
get: (name: string) => string | null;
|
|
9
9
|
};
|
|
10
10
|
json: () => Promise<unknown>;
|
|
11
|
+
text?: () => Promise<string>;
|
|
11
12
|
};
|
|
12
13
|
export type ProviderQaPagination = {
|
|
13
14
|
label: string;
|
|
@@ -73,9 +74,9 @@ export type CreateProviderConnectionInput = {
|
|
|
73
74
|
sourceId?: string;
|
|
74
75
|
authReference: string;
|
|
75
76
|
verifiedRecordCount: number;
|
|
76
|
-
totalUsd: number;
|
|
77
|
+
totalUsd: number | null;
|
|
77
78
|
fetchedAt?: Date;
|
|
78
|
-
/** Record-derived completeness;
|
|
79
|
+
/** Record-derived completeness; this controls financial evidence, not connector validation. */
|
|
79
80
|
completeness?: ProviderConnectorResult["completeness"];
|
|
80
81
|
};
|
|
81
82
|
export type TokenResolver = (reference: string) => string;
|