Commit 63b54f5
committed
refactor: remove the ReScript CLI; the Elixir escript is the sole CLI
OPSM carried two parallel CLIs: the Elixir escript (Opsm.CLI, 807 tests,
`mix escript.build`) and a ReScript CLI (cli/Main.res.js, run via Deno).
The escript already covered the same surface — trust-pipeline commands
and the checky-monkey/oikos/palimpsest clients — so the ReScript copy
was redundant. Per the estate "no ReScript" policy, remove it (owner-
approved scope: the CLI only; opsm_mobile's ReScript is deferred to a
follow-up, recorded in STATE.a2ml next-actions).
Deleted:
- cli/*.res (+ compiled .res.js) — the ReScript CLI
- lib/ocaml/*.res (+ .cmj, rescript.lock) — a byte-identical dead
duplicate of cli/ (diff -q confirms 5/5 shared modules identical)
- rescript.json, deno.json, deno.lock — existed solely to build/run
that CLI (deno.json exports cli/Main.res.js; every task was rescript/
cli). No other main-tree code uses Deno; opsm_mobile has its own.
Rewired onto the escript:
- Justfile + .machine_readable/contractiles/Justfile: dropped build-cli,
build-cli-watch, test-cli, fmt-deno, deno-lint, opsm-cli, the deno
clean step, and .res references in loc/todos/doctor. `build` -> just
build-escript; `lint` -> `mix compile --warnings-as-errors` (credo is
not a dep, and `just lint` is a mandatory Mustfile check that must run)
- k9iser.toml: removed the deno.json [[source]] and the deno.imports
[[constraint]] (the "Validate K9 contracts" CI job would otherwise fail
on the missing file)
- echidna-validation.yml: dropped the now-dead `cli/**` push path trigger
- .bot_directives/sustainabot.a2ml: dropped deno.json/deno.lock watches
- docs/TOOLCHAIN.adoc: Deno's remaining consumer is opsm_mobile, not the
root CLI
Verified (OTP 28.3.1 / Elixir 1.19.5): `mix escript.build` succeeds and
`./opsm --help` runs; `mix compile --warnings-as-errors` clean;
`just toolchain-check` clean; no dangling refs to the deleted files in
any config/CI/manifest (opsm_mobile and vendored deps excluded).
Note: the governance ReScript check stays red on opsm_mobile/src/*.res
until the deferred follow-up removes/migrates those — owner-marked for
the next version.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kq24sZCEohSrNFXSuEuz6C1 parent 3409fa1 commit 63b54f5
43 files changed
Lines changed: 45 additions & 5109 deletions
File tree
- .bot_directives
- .github/workflows
- .machine_readable
- 6a2
- contractiles
- cli
- clients
- docs
- lib
- ocaml
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | 23 | | |
26 | 24 | | |
27 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
184 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
185 | 201 | | |
186 | 202 | | |
187 | 203 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 25 | + | |
34 | 26 | | |
35 | 27 | | |
36 | 28 | | |
| |||
56 | 48 | | |
57 | 49 | | |
58 | 50 | | |
59 | | - | |
| 51 | + | |
60 | 52 | | |
61 | 53 | | |
62 | 54 | | |
63 | | - | |
64 | 55 | | |
65 | 56 | | |
66 | 57 | | |
| |||
76 | 67 | | |
77 | 68 | | |
78 | 69 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | 70 | | |
84 | | - | |
| 71 | + | |
85 | 72 | | |
86 | 73 | | |
87 | 74 | | |
| |||
91 | 78 | | |
92 | 79 | | |
93 | 80 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 81 | + | |
99 | 82 | | |
100 | | - | |
| 83 | + | |
101 | 84 | | |
102 | 85 | | |
103 | 86 | | |
104 | 87 | | |
105 | 88 | | |
106 | 89 | | |
107 | | - | |
| 90 | + | |
108 | 91 | | |
109 | 92 | | |
110 | 93 | | |
| |||
114 | 97 | | |
115 | 98 | | |
116 | 99 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | 100 | | |
122 | 101 | | |
123 | 102 | | |
| |||
156 | 135 | | |
157 | 136 | | |
158 | 137 | | |
159 | | - | |
160 | 138 | | |
161 | 139 | | |
162 | 140 | | |
| |||
207 | 185 | | |
208 | 186 | | |
209 | 187 | | |
210 | | - | |
211 | 188 | | |
212 | 189 | | |
213 | 190 | | |
214 | 191 | | |
215 | 192 | | |
216 | | - | |
| 193 | + | |
217 | 194 | | |
218 | 195 | | |
219 | 196 | | |
| |||
234 | 211 | | |
235 | 212 | | |
236 | 213 | | |
237 | | - | |
| 214 | + | |
238 | 215 | | |
239 | 216 | | |
240 | 217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 26 | + | |
35 | 27 | | |
36 | 28 | | |
37 | 29 | | |
| |||
57 | 49 | | |
58 | 50 | | |
59 | 51 | | |
60 | | - | |
| 52 | + | |
61 | 53 | | |
62 | 54 | | |
63 | 55 | | |
64 | | - | |
65 | 56 | | |
66 | 57 | | |
67 | 58 | | |
| |||
77 | 68 | | |
78 | 69 | | |
79 | 70 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | 71 | | |
85 | | - | |
| 72 | + | |
86 | 73 | | |
87 | 74 | | |
88 | 75 | | |
| |||
92 | 79 | | |
93 | 80 | | |
94 | 81 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 82 | + | |
100 | 83 | | |
101 | | - | |
| 84 | + | |
102 | 85 | | |
103 | 86 | | |
104 | 87 | | |
105 | 88 | | |
106 | 89 | | |
107 | 90 | | |
108 | | - | |
| 91 | + | |
109 | 92 | | |
110 | 93 | | |
111 | 94 | | |
| |||
123 | 106 | | |
124 | 107 | | |
125 | 108 | | |
126 | | - | |
| 109 | + | |
127 | 110 | | |
128 | 111 | | |
129 | 112 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | 113 | | |
135 | 114 | | |
136 | 115 | | |
| |||
169 | 148 | | |
170 | 149 | | |
171 | 150 | | |
172 | | - | |
173 | 151 | | |
174 | 152 | | |
175 | 153 | | |
| |||
220 | 198 | | |
221 | 199 | | |
222 | 200 | | |
223 | | - | |
224 | 201 | | |
225 | | - | |
226 | 202 | | |
227 | 203 | | |
228 | 204 | | |
229 | | - | |
| 205 | + | |
230 | 206 | | |
231 | 207 | | |
232 | 208 | | |
| |||
247 | 223 | | |
248 | 224 | | |
249 | 225 | | |
250 | | - | |
| 226 | + | |
251 | 227 | | |
252 | 228 | | |
253 | 229 | | |
| |||
0 commit comments