You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ A web application for previewing and comparing your future GitHub Copilot bills
22
22
## Getting Started
23
23
24
24
### Prerequisites
25
-
- Node.js 18+
25
+
- Node.js 20+
26
26
- npm or yarn
27
27
28
28
### Installation
@@ -47,6 +47,12 @@ npm run build
47
47
48
48
The production build will be created in the `dist/` directory.
49
49
50
+
### Test
51
+
52
+
```bash
53
+
npm run test
54
+
```
55
+
50
56
### Preview Production Build
51
57
52
58
```bash
@@ -60,7 +66,7 @@ npm run preview
60
66
3. The app will parse the report and compare request-based and AI Credits-based billing signals
61
67
4. Explore the visualizations and data views to preview how future bills may look after the AI Credits transition
62
68
63
-
Sample reports are available in the `examples/` directory. Older examples without `aic_quantity` still load, but AI Credits will remain `0` for those rows.
69
+
If you don't have your own data yet, export a GitHub Copilot billing CSV from your organization that matches the current format, including the `aic_quantity` and `aic_gross_amount` columns.
64
70
65
71
## CSV Report Format
66
72
@@ -82,8 +88,6 @@ The application expects CSV files with the following required columns:
82
88
-`organization` - Organization slug
83
89
-`cost_center_name` - Optional cost center identifier
84
90
85
-
Newer exports may also include these AI Credit columns:
86
-
87
91
-`aic_quantity` - AI Credits for the same usage row
88
92
-`aic_gross_amount` - AI Credit gross cost for the same usage row
Copy file name to clipboardExpand all lines: docs/report-format.md
+2-10Lines changed: 2 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,20 +21,12 @@ Source examples: files in `examples/`. Some existing sample exports still use th
21
21
|`total_monthly_quota`| number | Monthly quota for the user or plan applicable to the row. |
22
22
|`organization`| string | Organization slug associated with the usage. |
23
23
|`cost_center_name`| string | Optional cost center or tagging field. |
24
-
## Optional AI Credit columns
25
-
26
-
| Column | Status | Notes |
27
-
| --- | --- | --- |
28
24
|`aic_quantity`| Present in newer previews | Same usage converted to AI Credits. |
29
25
|`aic_gross_amount`| Present in newer previews | Used for AI Credit gross cost when present. |
30
-
|`total_input_tokens`| Legacy / optional | Older token-oriented export field; ignored by the app. |
31
-
|`total_output_tokens`| Legacy / optional | Older token-oriented export field; ignored by the app. |
32
-
|`total_cache_creation_tokens`| Legacy / optional | Older token-oriented export field; ignored by the app. |
33
-
|`total_cache_read_tokens`| Legacy / optional | Older token-oriented export field; ignored by the app. |
34
26
35
27
## Notes
36
28
- Header row is single-lined; subsequent rows are usage records. Values are comma-separated, double-quoted where needed.
37
29
- Monetary fields are decimals. `aic_quantity` may also be fractional.
38
30
- The app streams the file, treats the first row as the header, and counts subsequent data rows without loading the entire file into memory.
39
-
- Current calculations support both row types: on `requests` rows, `quantity` and `applied_cost_per_quantity` describe PRU usage while `aic_quantity` and `aic_gross_amount` remain reference/comparison values and stay `0` when those AI Credit fields are absent; on `ai-units` rows, Premium Requests and generic PRU gross/discount/net totals are counted as `0`, while AI Credits and AI Credit gross cost are taken from the AI-specific fields (`aic_quantity` / `aic_gross_amount`, with fallback to `quantity` / `gross_amount` only when those AI-specific fields are absent).
40
-
-Reports without `aic_quantity` still load, but AI Credit summaries will display `0`.
31
+
- Current calculations support both row types: on `requests` rows, `quantity` and `applied_cost_per_quantity` describe PRU usage while `aic_quantity` and `aic_gross_amount` remain reference/comparison values; on `ai-units` rows, Premium Requests and generic PRU gross/discount/net totals are counted as `0`, while AI Credits and AI Credit gross cost are taken from the AI-specific fields (`aic_quantity` / `aic_gross_amount`), with fallback to `quantity` / `gross_amount` only when those AI-specific fields are present but blank.
32
+
-The current app expects the current CSV format, including `aic_quantity` and `aic_gross_amount`.
0 commit comments