@pi-archimedes/footer 0.4.0 → 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/package.json +2 -2
- package/src/utils/format.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-archimedes/footer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"./config": "./src/config.ts"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@pi-archimedes/core": "0.
|
|
18
|
+
"@pi-archimedes/core": "0.6.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@earendil-works/pi-coding-agent": ">=0.1.0",
|
package/src/utils/format.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { footerIcons, gitDisplayIcons, gitStatusColors, thinkingLevelColors, type ColorFn } from "./icons.js";
|
|
2
2
|
|
|
3
|
-
// Token counts use
|
|
4
|
-
const TOKEN_K =
|
|
5
|
-
const TOKEN_M =
|
|
3
|
+
// Token counts use binary units (1K = 1024)
|
|
4
|
+
const TOKEN_K = 1_024;
|
|
5
|
+
const TOKEN_M = 1_048_576;
|
|
6
6
|
|
|
7
7
|
export function formatTokenCount(count: number): string {
|
|
8
8
|
if (count < TOKEN_K) return count.toString();
|