@sisu-ai/mw-usage-tracker 3.0.0 → 3.0.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.
Files changed (2) hide show
  1. package/README.md +11 -0
  2. package/package.json +12 -3
package/README.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # @sisu-ai/mw-usage-tracker
2
+ [![Tests](https://github.com/finger-gun/sisu/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/finger-gun/sisu/actions/workflows/tests.yml)
3
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/finger-gun/sisu/blob/main/LICENSE)
4
+ [![Downloads](https://img.shields.io/npm/dm/%40sisu-ai%2Fmw-usage-tracker)](https://www.npmjs.com/package/@sisu-ai/mw-usage-tracker)
5
+ [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/finger-gun/sisu/blob/main/CONTRIBUTING.md)
2
6
 
3
7
  Track token usage across your pipeline and estimate cost.
4
8
 
@@ -49,3 +53,10 @@ const app = new Agent()
49
53
  - Each adapter should map its native usage fields to `ModelResponse.usage`.
50
54
  - If a provider doesn’t return usage, you’ll get counts of calls only (no cost).
51
55
  - Image cost estimation is an approximation unless your adapter returns precise image token usage.
56
+
57
+ # Community & Support
58
+ - [Code of Conduct](https://github.com/finger-gun/sisu/blob/main/CODE_OF_CONDUCT.md)
59
+ - [Contributing Guide](https://github.com/finger-gun/sisu/blob/main/CONTRIBUTING.md)
60
+ - [License](https://github.com/finger-gun/sisu/blob/main/LICENSE)
61
+ - [Report a Bug](https://github.com/finger-gun/sisu/issues/new?template=bug_report.md)
62
+ - [Request a Feature](https://github.com/finger-gun/sisu/issues/new?template=feature_request.md)
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@sisu-ai/mw-usage-tracker",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
+ "license": "Apache-2.0",
4
5
  "type": "module",
5
6
  "main": "dist/index.js",
6
7
  "types": "dist/index.d.ts",
@@ -14,7 +15,7 @@
14
15
  "build": "tsc -b"
15
16
  },
16
17
  "peerDependencies": {
17
- "@sisu-ai/core": "1.0.0"
18
+ "@sisu-ai/core": "1.0.2"
18
19
  },
19
20
  "repository": {
20
21
  "type": "git",
@@ -24,5 +25,13 @@
24
25
  "homepage": "https://github.com/finger-gun/sisu#readme",
25
26
  "bugs": {
26
27
  "url": "https://github.com/finger-gun/sisu/issues"
27
- }
28
+ },
29
+ "keywords": [
30
+ "sisu",
31
+ "ai",
32
+ "ai-agent",
33
+ "agentic",
34
+ "middleware",
35
+ "usage-tracker"
36
+ ]
28
37
  }