costhawk 1.5.13 → 1.5.15

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 CHANGED
@@ -168,9 +168,13 @@ COSTHAWK_GIT_SHA=$(git rev-parse --short HEAD) npm run build
168
168
  | Tool | Description |
169
169
  |------|-------------|
170
170
  | `costhawk_get_usage_summary` | Get usage and costs over a time period (by provider/model) |
171
- | `costhawk_get_usage_by_tag` | Get usage grouped by custom tags (user_id, feature, etc.) |
171
+ | `costhawk_get_usage_by_tag` | Get usage grouped by attribution fields and custom metadata (`project`, `feature`, `team`, `environment`, `user_id`, etc.) |
172
172
  | `costhawk_detect_anomalies` | Check for cost anomalies and unusual usage patterns |
173
173
 
174
+ `costhawk_get_usage_by_tag` has two data sources:
175
+ - Standard attribution fields like `feature`, `project`, `team`, and `environment` can come from wrapped-key or scoped API key attribution.
176
+ - Arbitrary custom tag keys only appear when you send request metadata through the proxy, such as `costhawk_metadata.feature` or `costhawk_metadata.user_id`.
177
+
174
178
  ### Claude Code Local Tracking (Optional Auto-Sync)
175
179
 
176
180
  These tools parse your local Claude Code transcripts from `~/.claude/projects/` to track token usage - including the 4 token types Claude Code uses.
@@ -1,2 +1,2 @@
1
- export declare const BUILD_COMMIT_SHA = "1ed40d7";
1
+ export declare const BUILD_COMMIT_SHA = "7a15693";
2
2
  //# sourceMappingURL=build-info.d.ts.map
@@ -1,3 +1,3 @@
1
1
  // Auto-generated during release builds. Values may be empty in dev.
2
- export const BUILD_COMMIT_SHA = "1ed40d7";
2
+ export const BUILD_COMMIT_SHA = "7a15693";
3
3
  //# sourceMappingURL=build-info.js.map