Repository navigation
Commit 6a6f267
committed
refactor(commands): keep bindCommands as the only catalog surface
`commands` was an `@internal` aggregate of the unbound command tables, kept alive by
nothing but two probe tests: `commands/interaction/runtime/index.test.ts` read
`typeof` off it, and `runtime-public.test.ts` asserted `typeof ... === 'function'`
for 38 entries. A production caller cannot reach an unbound table — every real path
goes through `bindCommands`, which ADR 0023 keeps as the command catalog boundary —
so those assertions cannot fail for a reason worth hearing.
Drop the const, its `AgentDeviceCommands` type, and the imports only it consumed.
`bindCommands`, `BoundAgentDeviceCommands`, and the `ScreenshotCommandOptions`
re-export are unchanged. The runtime coverage the probes stood in front of already
lives at the owners: `commands/interaction/runtime/interactions.test.ts` drives
bound `device.interactions.*` calls through real runtimes, and `package-exports` plus
`runtime-public` exercise the published surface.
`runtime-public.test.ts` keeps the part that was not a probe: the `satisfies
ScreenshotCommandOptions` literal, which pins the option shape.1 parent 2db7c42 commit 6a6f267
3 files changed
Lines changed: 6 additions & 102 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
237 | 238 | | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | 239 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 3 | + | |
9 | 4 | | |
10 | 5 | | |
11 | 6 | | |
12 | | - | |
13 | | - | |
14 | 7 | | |
15 | 8 | | |
16 | | - | |
17 | | - | |
18 | 9 | | |
19 | 10 | | |
20 | 11 | | |
21 | | - | |
22 | 12 | | |
23 | | - | |
24 | | - | |
25 | 13 | | |
26 | 14 | | |
27 | 15 | | |
28 | 16 | | |
29 | 17 | | |
30 | 18 | | |
31 | | - | |
32 | 19 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 20 | + | |
| 21 | + | |
43 | 22 | | |
44 | 23 | | |
45 | 24 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | 25 | | |
58 | 26 | | |
59 | 27 | | |
| |||
65 | 33 | | |
66 | 34 | | |
67 | 35 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 36 | | |
83 | 37 | | |
84 | 38 | | |
| |||
This file was deleted.
0 commit comments