Skip to content

Commit 4267df1

Browse files
Merge remote-tracking branch 'origin/main' into add-emoji-and-text-burn-rate-to-statusline
2 parents 176b962 + 8eff9d9 commit 4267df1

14 files changed

Lines changed: 487 additions & 229 deletions

File tree

‎.githooks/pre-commit‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
npx --no-install lint-staged

‎.github/workflows/check-pr-title.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: Validate PR title
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3
19+
- uses: amannn/action-semantic-pull-request@fdd4d3ddf614fbcd8c29e4b106d3bbe0cb2c605d # v6.0.1
2020
env:
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2222
with:

‎.github/workflows/ci.yaml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
12+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1313
- uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2
1414
with:
1515
bun-version: latest
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222

2323
steps:
24-
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
24+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2525
- uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2
2626
with:
2727
bun-version: latest
@@ -38,7 +38,7 @@ jobs:
3838
runs-on: ubuntu-latest
3939

4040
steps:
41-
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
41+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4242
- uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2
4343
with:
4444
bun-version: latest
@@ -49,7 +49,7 @@ jobs:
4949
runs-on: ubuntu-latest
5050
steps:
5151
- name: Checkout Actions Repository
52-
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
52+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
5353

5454
- uses: crate-ci/typos@master
5555
with:

‎.github/workflows/release.yaml‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
contents: read
1414
id-token: write
1515
steps:
16-
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
16+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1717
with:
1818
fetch-depth: 0
1919
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
@@ -24,8 +24,6 @@ jobs:
2424
- run: npm install -g npm@latest
2525
- run: bun install --frozen-lockfile
2626
- run: npm publish --provenance --no-git-checks --access public
27-
env:
28-
NPM_CONFIG_PROVENANCE: true
2927
working-directory: ${{env.PACKAGE_DIR}}
3028

3129
release:
@@ -35,7 +33,7 @@ jobs:
3533
permissions:
3634
contents: write
3735
steps:
38-
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
36+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3937
with:
4038
fetch-depth: 0
4139
- uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2

‎.mcp.json‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@
2121
"-p",
2222
"tsgo"
2323
]
24+
},
25+
"@praha/byethrow": {
26+
"type": "stdio",
27+
"command": "bun",
28+
"args": [
29+
"byethrow-mcp"
30+
],
31+
"env": {}
2432
}
2533
}
2634
}

‎CLAUDE.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ This is a CLI tool that analyzes Claude Code usage data from local JSONL files s
156156
- **ESLint MCP**: Lint TypeScript/JavaScript files directly through Claude Code tools
157157
- **Context7 MCP**: Look up documentation for libraries and frameworks
158158
- **Gunshi MCP**: Access gunshi.dev documentation and examples
159+
- **Byethrow MCP**: Access @praha/byethrow documentation and examples for functional error handling
159160
- **TypeScript MCP (lsmcp)**: Search for TypeScript functions, types, and symbols across the codebase
160161

161162
## Code Style Notes
@@ -170,7 +171,7 @@ This is a CLI tool that analyzes Claude Code usage data from local JSONL files s
170171
**Error Handling:**
171172

172173
- **Prefer @praha/byethrow Result type** over traditional try-catch for functional error handling
173-
- Documentation: https://praha-inc.github.io/byethrow/llms.txt
174+
- Documentation: Available via byethrow MCP server
174175
- Use `Result.try()` for wrapping operations that may throw (JSON parsing, etc.)
175176
- Use `Result.isFailure()` for checking errors (more readable than `!Result.isSuccess()`)
176177
- Use early return pattern (`if (Result.isFailure(result)) continue;`) instead of ternary operators

‎bun.lock‎

Lines changed: 45 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎docs/package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"typedoc-plugin-markdown": "^4.8.1",
2020
"typedoc-vitepress-theme": "^1.1.2",
2121
"vitepress": "^1.6.4",
22-
"vitepress-plugin-group-icons": "^1.6.2",
23-
"vitepress-plugin-llms": "^1.7.2",
22+
"vitepress-plugin-group-icons": "^1.6.3",
23+
"vitepress-plugin-llms": "^1.7.3",
2424
"vitepress-plugin-mermaid": "^2.0.17",
25-
"wrangler": "^4.28.1"
25+
"wrangler": "^4.30.0"
2626
}
2727
}

‎eslint.config.js‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ export default ryoppippi({
88
},
99
ignores: [
1010
'docs/**',
11+
'.lsmcp',
12+
'.claude/settings.local.json',
1113
],
1214
}, {
1315
rules: {

‎package.json‎

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ccusage",
33
"type": "module",
4-
"version": "15.9.7",
4+
"version": "15.9.9",
55
"description": "Usage analysis tool for Claude Code",
66
"author": "ryoppippi",
77
"license": "MIT",
@@ -45,10 +45,11 @@
4545
"docs:dev": "cd docs && bun run dev",
4646
"docs:preview": "cd docs && bun run preview",
4747
"format": "bun run lint --fix",
48+
"preinstall": "npx only-allow bun",
4849
"lint": "eslint --cache .",
4950
"mcp": "bunx @modelcontextprotocol/inspector bun run start mcp",
50-
"prepack": "bun run build && clean-pkg-json",
51-
"prepare": "simple-git-hooks",
51+
"prepack": "bun run build && bun clean-pkg-json -r scripts.preinstall",
52+
"prepare": "git config --local core.hooksPath .githooks",
5253
"release": "bun lint && bun typecheck && vitest run && bun run build && bumpp",
5354
"start": "bun run ./src/index.ts",
5455
"test": "TZ=UTC vitest",
@@ -61,17 +62,19 @@
6162
},
6263
"devDependencies": {
6364
"@antfu/utils": "^9.2.0",
64-
"@core/errorutil": "npm:@jsr/core__errorutil",
65+
"@core/errorutil": "npm:@jsr/core__errorutil@^1.2.1",
6566
"@hono/mcp": "^0.1.0",
66-
"@hono/node-server": "^1.18.1",
67-
"@jsr/std__async": "1",
67+
"@hono/node-server": "^1.18.2",
6868
"@mizchi/lsmcp": "^0.9.4",
69-
"@modelcontextprotocol/sdk": "^1.17.2",
70-
"@oxc-project/runtime": "^0.82.0",
69+
"@modelcontextprotocol/sdk": "^1.17.3",
70+
"@oxc-project/runtime": "^0.82.1",
7171
"@praha/byethrow": "^0.6.3",
72+
"@praha/byethrow-mcp": "^0.1.2",
7273
"@ryoppippi/eslint-config": "^0.3.7",
74+
"@ryoppippi/limo": "npm:@jsr/ryoppippi__limo@^0.2.2",
75+
"@std/async": "npm:@jsr/std__async@^1.0.14",
7376
"@types/bun": "^1.2.20",
74-
"@typescript/native-preview": "^7.0.0-dev.20250812.1",
77+
"@typescript/native-preview": "^7.0.0-dev.20250815.1",
7578
"ansi-escapes": "^7.0.0",
7679
"bumpp": "^10.2.3",
7780
"clean-pkg-json": "^1.3.0",
@@ -84,14 +87,13 @@
8487
"fs-fixture": "^2.8.1",
8588
"get-stdin": "^9.0.0",
8689
"gunshi": "^0.26.3",
87-
"hono": "^4.9.0",
90+
"hono": "^4.9.2",
8891
"lint-staged": "^16.1.5",
8992
"nano-spawn": "^1.0.2",
9093
"path-type": "^6.0.0",
9194
"picocolors": "^1.1.1",
9295
"pretty-ms": "^9.2.0",
9396
"publint": "^0.3.12",
94-
"simple-git-hooks": "^2.13.1",
9597
"sort-package-json": "^3.4.0",
9698
"string-width": "^7.2.0",
9799
"tinyglobby": "^0.2.14",
@@ -103,18 +105,12 @@
103105
"xdg-basedir": "^5.1.0",
104106
"zod": "^3.25.67"
105107
},
106-
"simple-git-hooks": {
107-
"pre-commit": "bun lint-staged"
108-
},
109108
"lint-staged": {
110109
"*": [
111110
"eslint --cache --fix"
112111
],
113112
"package.json": [
114113
"sort-package-json"
115114
]
116-
},
117-
"trustedDependencies": [
118-
"simple-git-hooks"
119-
]
115+
}
120116
}

0 commit comments

Comments
 (0)