@agent-finops/core 0.4.1 → 0.4.2

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.
@@ -6,6 +6,8 @@ export type DeadContextItem = {
6
6
  name: string;
7
7
  alwaysLoadedTokens: number;
8
8
  weightConfidence: InventoryItem["weightConfidence"];
9
+ /** Config file the item is loaded from — the place to remove it. */
10
+ path?: string;
9
11
  };
10
12
  export type DeadContextResult = {
11
13
  /** True when we found inventory + transcripts AND at least one dead item. */
@@ -83,7 +83,8 @@ export function computeDeadContext(items, invocations, config) {
83
83
  kind: item.kind,
84
84
  name: item.name,
85
85
  alwaysLoadedTokens: item.alwaysLoadedTokens,
86
- weightConfidence: item.weightConfidence
86
+ weightConfidence: item.weightConfidence,
87
+ path: item.path
87
88
  });
88
89
  }
89
90
  dead.sort((a, b) => b.alwaysLoadedTokens - a.alwaysLoadedTokens);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-finops/core",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",