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: .claude/skills/updating-checksums/SKILL.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
name: updating-checksums
3
3
description: >
4
-
Syncs SHA-256 checksums from GitHub releases to external-tools.json.
4
+
Syncs SHA-256 checksums from GitHub releases to bundle-tools.json.
5
5
Triggers when user mentions "update checksums", "sync checksums", or after
6
6
releasing new tool versions.
7
7
user-invocable: true
@@ -11,7 +11,7 @@ allowed-tools: Bash, Read, Edit
11
11
# updating-checksums
12
12
13
13
<task>
14
-
Your task is to sync SHA-256 checksums from GitHub releases to the embedded `external-tools.json` file, ensuring SEA builds have up-to-date integrity verification.
14
+
Your task is to sync SHA-256 checksums from GitHub releases to the embedded `bundle-tools.json` file, ensuring SEA builds have up-to-date integrity verification.
15
15
</task>
16
16
17
17
<constraints>
@@ -24,10 +24,10 @@ Your task is to sync SHA-256 checksums from GitHub releases to the embedded `ext
24
24
25
25
## Phases
26
26
27
-
1.**Check Current State** - Review current checksums and tool versions in `packages/cli/external-tools.json`.
27
+
1.**Check Current State** - Review current checksums and tool versions in `packages/cli/bundle-tools.json`.
28
28
2.**Sync Checksums** - Run `node packages/cli/scripts/sync-checksums.mjs`. Tries `checksums.txt` from the release first; falls back to downloading assets and computing SHA-256.
Copy file name to clipboardExpand all lines: .claude/skills/updating-checksums/reference.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,15 +46,15 @@ This document provides detailed information about external tool checksums, the s
46
46
47
47
### How It Works
48
48
49
-
1. Reads `packages/cli/external-tools.json`
49
+
1. Reads `packages/cli/bundle-tools.json`
50
50
2. Filters tools with `type: "github-release"`
51
51
3. For each tool:
52
52
a. Fetches the GitHub release by tag
53
53
b. Looks for `checksums.txt` asset
54
54
c. If found: parses SHA-256 hashes from checksums.txt
55
55
d. If not found: downloads each release asset and computes SHA-256 via `crypto.createHash('sha256')`
56
56
4. Compares new checksums with existing
57
-
5. Writes updated checksums to external-tools.json
57
+
5. Writes updated checksums to bundle-tools.json
58
58
59
59
### Command Reference
60
60
@@ -146,7 +146,7 @@ Each tool has specific asset naming conventions:
146
146
147
147
### Checksum Storage Format
148
148
149
-
In `external-tools.json`, checksums are stored as:
149
+
In `bundle-tools.json`, checksums are stored as:
150
150
151
151
```json
152
152
{
@@ -192,7 +192,7 @@ stream.pipe(hash)
192
192
193
193
### Tool with Dual Configuration (sfw)
194
194
195
-
The `sfw` tool has both a GitHub release binary (`SocketDev/sfw-free`) and an npm package (`sfw` on npmjs.com). Both are tracked in the same `external-tools.json` entry via `type: "github-release"` for the binary checksums and `npmPackage`/`npmVersion` fields for the npm component. The checksums skill only handles the GitHub release binary checksums; the npm package version is updated separately via `pnpm run update`.
195
+
The `sfw` tool has both a GitHub release binary (`SocketDev/sfw-free`) and an npm package (`sfw` on npmjs.com). Both are tracked in the same `bundle-tools.json` entry via `type: "github-release"` for the binary checksums and `npmPackage`/`npmVersion` fields for the npm component. The checksums skill only handles the GitHub release binary checksums; the npm package version is updated separately via `pnpm run update`.
196
196
197
197
### python-build-standalone
198
198
@@ -206,11 +206,11 @@ This tool has no checksums.txt in releases. The sync script must:
206
206
Different tools use different tag formats:
207
207
- Most use `v{version}` (e.g., `v1.16.0`)
208
208
- python-build-standalone uses bare version (e.g., `3.11.14`)
209
-
- The `githubRelease` field in external-tools.json stores the exact tag
209
+
- The `githubRelease` field in bundle-tools.json stores the exact tag
210
210
211
211
### Stale Checksums After Version Bump
212
212
213
-
If someone updates a tool version in external-tools.json but forgets to sync checksums:
213
+
If someone updates a tool version in bundle-tools.json but forgets to sync checksums:
214
214
- SEA builds will fail integrity verification
215
215
- Always run checksum sync after any version change
216
216
@@ -237,7 +237,7 @@ Authenticated requests get 5,000 requests/hour vs 60 for unauthenticated.
237
237
238
238
**Symptom:** Script reports release not found for a tool.
239
239
240
-
**Cause:** The `githubRelease` tag in external-tools.json doesn't match any release.
240
+
**Cause:** The `githubRelease` tag in bundle-tools.json doesn't match any release.
0 commit comments