Commit f50c3cb
committed
feat: implement centralized SHA management system with automated updates
## Major Features Added
### 🔧 Centralized Checksum Management
- **NEW**: `/checksums/` directory with JSON-based tool registry
- **NEW**: Centralized API in `checksums/registry.bzl` for all tools
- **NEW**: Support for multiple tool versions and platforms
- **NEW**: Real verified SHA256 checksums for latest tool releases
### 🤖 Automated Checksum Generator
- **NEW**: Rust-based checksum updater with GitHub API integration
- **NEW**: Automatic detection of new tool releases
- **NEW**: Real-time SHA256 calculation and verification
- **NEW**: JSON file updates with validated checksums
- **PROVEN**: Successfully updated wasm-tools to 1.236.0 and wasmtime to 35.0.0
### 🚀 Wasmtime Runtime Support
- **NEW**: Complete wasmtime toolchain integration (v35.0.0)
- **NEW**: Download and validation with verified checksums
- **NEW**: Cross-platform support (darwin_amd64, darwin_arm64, linux_amd64, linux_arm64, windows_amd64)
- **NEW**: Bazel module extension and toolchain registration
- **TESTED**: Binary downloads and executes correctly
## Technical Improvements
### 📋 Enhanced Toolchain Infrastructure
- **NEW**: Wasmtime toolchain extension in `wasm/extensions.bzl`
- **NEW**: Automatic tool version detection and updates
- **IMPROVED**: JavaScript component build fixes (TypeScript → JavaScript conversion)
- **IMPROVED**: JCO toolchain integration with proper npm dependencies
- **IMPROVED**: WKG command fixes (fetch → get) with proper syntax
### 🔒 Security & Reliability
- **NEW**: Multiple checksum verification layers
- **NEW**: GitHub API rate limiting and error handling
- **NEW**: Platform-specific binary validation
- **IMPROVED**: Tool download retry mechanisms
- **VERIFIED**: All checksums validated against official releases
## Infrastructure Updates
### 📦 Build System Enhancements
- **NEW**: Rust dependencies for checksum generator in wizer workspace
- **NEW**: Wasmtime toolchain type registration
- **IMPROVED**: MODULE.bazel with wasmtime extension registration
- **IMPROVED**: Pre-commit validation (all checks passing)
- **IMPROVED**: Cross-platform compatibility improvements
### 🧹 Code Quality & Maintenance
- **FIXED**: JavaScript component TypeScript syntax issues
- **FIXED**: JCO command-line argument parsing (kebab-case → camelCase)
- **FIXED**: WKG package format and cache directory handling
- **IMPROVED**: Consistent code formatting across all languages
- **VERIFIED**: All pre-commit hooks passing with new changes
## Production Readiness
This implementation provides a **complete foundation** for:
- ✅ **Automated weekly checksum updates** (infrastructure ready)
- ✅ **Real-world wasmtime component execution** (toolchain working)
- ✅ **Multi-language WebAssembly development** (all toolchains integrated)
- ✅ **Secure, verified tool downloads** (SHA256 validation working)
**Next Steps**: CI workflow automation and enhanced examples with wasmtime execution.1 parent 8b87fa0 commit f50c3cb
File tree
41 files changed
+7799
-309
lines changed- checksums
- generator
- src
- tools
- examples
- js_component
- src
- wit
- wac_remote_compose
- wizer_example
- src
- js
- node_modules/.cache/prettier/.prettier-caches
- toolchains
- tools/wizer_initializer
- src
- wasm
- wkg
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
41 files changed
+7799
-309
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| |||
67 | 72 | | |
68 | 73 | | |
69 | 74 | | |
70 | | - | |
| 75 | + | |
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
| |||
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
82 | | - | |
| 87 | + | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
| 93 | + | |
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
| |||
93 | 99 | | |
94 | 100 | | |
95 | 101 | | |
| 102 | + | |
96 | 103 | | |
97 | 104 | | |
98 | 105 | | |
99 | 106 | | |
100 | 107 | | |
| 108 | + | |
101 | 109 | | |
102 | 110 | | |
103 | | - | |
| 111 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
109 | 120 | | |
110 | 121 | | |
111 | 122 | | |
| |||
117 | 128 | | |
118 | 129 | | |
119 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
120 | 142 | | |
121 | 143 | | |
122 | 144 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments