@ccusage/pi 17.2.0 → 18.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.
- package/LICENSE +21 -0
- package/dist/index.js +1 -1
- package/package.json +3 -12
- package/src/index.ts +0 -34
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 ryoppippi
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.js
CHANGED
|
@@ -896,7 +896,7 @@ async function executeCommand(cmd, ctx, name$2) {
|
|
|
896
896
|
await resolved.run(ctx);
|
|
897
897
|
}
|
|
898
898
|
var name = "@ccusage/pi";
|
|
899
|
-
var version = "
|
|
899
|
+
var version = "18.0.2";
|
|
900
900
|
var description = "Pi-agent usage tracking - unified Claude Max usage across Claude Code and pi-agent";
|
|
901
901
|
var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
902
902
|
let messages = [];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ccusage/pi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "18.0.2",
|
|
5
5
|
"description": "Pi-agent usage tracking - unified Claude Max usage across Claude Code and pi-agent",
|
|
6
6
|
"author": "ryoppippi",
|
|
7
7
|
"contributors": [
|
|
@@ -18,28 +18,19 @@
|
|
|
18
18
|
"url": "https://github.com/ryoppippi/ccusage/issues"
|
|
19
19
|
},
|
|
20
20
|
"exports": {
|
|
21
|
-
".": "./
|
|
21
|
+
".": "./dist/index.js",
|
|
22
22
|
"./package.json": "./package.json"
|
|
23
23
|
},
|
|
24
24
|
"main": "./dist/index.js",
|
|
25
25
|
"module": "./dist/index.js",
|
|
26
26
|
"types": "./dist/index.d.ts",
|
|
27
27
|
"bin": {
|
|
28
|
-
"ccusage-pi": "./
|
|
28
|
+
"ccusage-pi": "./dist/index.js"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"README.md",
|
|
32
32
|
"dist"
|
|
33
33
|
],
|
|
34
|
-
"publishConfig": {
|
|
35
|
-
"bin": {
|
|
36
|
-
"ccusage-pi": "./dist/index.js"
|
|
37
|
-
},
|
|
38
|
-
"exports": {
|
|
39
|
-
".": "./dist/index.js",
|
|
40
|
-
"./package.json": "./package.json"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
34
|
"engines": {
|
|
44
35
|
"node": ">=20.19.4"
|
|
45
36
|
}
|
package/src/index.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import process from 'node:process';
|
|
4
|
-
import { cli } from 'gunshi';
|
|
5
|
-
import { description, name, version } from '../package.json';
|
|
6
|
-
import { dailyCommand } from './commands/daily.ts';
|
|
7
|
-
import { monthlyCommand } from './commands/monthly.ts';
|
|
8
|
-
import { sessionCommand } from './commands/session.ts';
|
|
9
|
-
|
|
10
|
-
const subCommands = new Map([
|
|
11
|
-
['daily', dailyCommand],
|
|
12
|
-
['monthly', monthlyCommand],
|
|
13
|
-
['session', sessionCommand],
|
|
14
|
-
]);
|
|
15
|
-
|
|
16
|
-
const mainCommand = dailyCommand;
|
|
17
|
-
|
|
18
|
-
async function run(): Promise<void> {
|
|
19
|
-
let args = process.argv.slice(2);
|
|
20
|
-
if (args[0] === 'ccusage-pi') {
|
|
21
|
-
args = args.slice(1);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
await cli(args, mainCommand, {
|
|
25
|
-
name,
|
|
26
|
-
version,
|
|
27
|
-
description,
|
|
28
|
-
subCommands,
|
|
29
|
-
renderHeader: null,
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// eslint-disable-next-line antfu/no-top-level-await
|
|
34
|
-
await run();
|