Commit cc8ffa2
fix: restore Python entry point as Rust trampoline + tool input validation
The Python prism entry point MUST stay — removing it breaks upgrades
because pip/uv removes the executable. The bootstrap.py already
delegates to the Rust binary via execvp when it's available.
Flow: pip installs Python 'prism' → bootstrap.py finds Rust binary →
execvp replaces process with Rust → user sees Rust CLI.
If Rust binary missing: Python CLI runs with fallback commands that
tell user to install the Rust binary.
Also: added tool input validation (2.2) — validates required fields
and types against tool input_schema before execution.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b3245ff commit cc8ffa2
2 files changed
Lines changed: 33 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
29 | 55 | | |
30 | 56 | | |
31 | 57 | | |
| |||
143 | 169 | | |
144 | 170 | | |
145 | 171 | | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
146 | 177 | | |
147 | 178 | | |
148 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 97 | + | |
| 98 | + | |
101 | 99 | | |
102 | 100 | | |
103 | 101 | | |
| |||
0 commit comments