Commit b168934
authored
refactor: migrate agent schema and liveness utilities to TypeScript (#996)
## Summary
- migrate quality-gate schema construction and schema normalization
utilities from JavaScript to strict TypeScript
- migrate context metrics and liveness polling with explicit runtime
boundary types
- preserve CommonJS entrypoints and verify compiled outputs remain in
the npm package
## Validation
- `npm run prepack`
- `npm test` (2,901 passing; 18 pending)
- `npm run typecheck`
- targeted ESLint and Prettier checks
- direct old/new behavior and export parity for every migrated module
- liveness parity across 10 state-machine scenarios
- `npx mocha tests/agent-stuck-recovery.test.js
tests/isolated-task-recovery.test.js` (26 passing)
- Opcore hypothetical, changed, Sense, graph update, introduced-change,
and staged gates
- npm package dry-run smoke (all four compiled runtime outputs present)1 parent 83005a5 commit b168934
8 files changed
Lines changed: 537 additions & 322 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
178 | 182 | | |
179 | 183 | | |
180 | 184 | | |
| |||
Lines changed: 79 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 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 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
2 | 67 | | |
3 | | - | |
| 68 | + | |
4 | 69 | | |
5 | 70 | | |
6 | 71 | | |
7 | 72 | | |
8 | 73 | | |
9 | 74 | | |
10 | 75 | | |
11 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
12 | 82 | | |
13 | 83 | | |
14 | 84 | | |
15 | 85 | | |
16 | 86 | | |
17 | | - | |
| 87 | + | |
18 | 88 | | |
19 | 89 | | |
20 | 90 | | |
| |||
24 | 94 | | |
25 | 95 | | |
26 | 96 | | |
27 | | - | |
| 97 | + | |
28 | 98 | | |
29 | 99 | | |
30 | 100 | | |
| |||
41 | 111 | | |
42 | 112 | | |
43 | 113 | | |
44 | | - | |
| 114 | + | |
45 | 115 | | |
46 | 116 | | |
47 | 117 | | |
| |||
56 | 126 | | |
57 | 127 | | |
58 | 128 | | |
59 | | - | |
| 129 | + | |
60 | 130 | | |
61 | 131 | | |
62 | 132 | | |
| |||
72 | 142 | | |
73 | 143 | | |
74 | 144 | | |
75 | | - | |
| 145 | + | |
76 | 146 | | |
77 | 147 | | |
78 | 148 | | |
| |||
90 | 160 | | |
91 | 161 | | |
92 | 162 | | |
93 | | - | |
| 163 | + | |
Lines changed: 40 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 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 | + | |
2 | 35 | | |
3 | 36 | | |
4 | 37 | | |
| |||
59 | 92 | | |
60 | 93 | | |
61 | 94 | | |
62 | | - | |
| 95 | + | |
63 | 96 | | |
64 | 97 | | |
65 | 98 | | |
66 | | - | |
| 99 | + | |
67 | 100 | | |
68 | 101 | | |
69 | 102 | | |
70 | 103 | | |
71 | 104 | | |
72 | | - | |
| 105 | + | |
73 | 106 | | |
74 | 107 | | |
75 | 108 | | |
| |||
80 | 113 | | |
81 | 114 | | |
82 | 115 | | |
83 | | - | |
| 116 | + | |
84 | 117 | | |
85 | 118 | | |
86 | 119 | | |
| |||
91 | 124 | | |
92 | 125 | | |
93 | 126 | | |
94 | | - | |
| 127 | + | |
95 | 128 | | |
96 | 129 | | |
97 | 130 | | |
98 | 131 | | |
99 | | - | |
| 132 | + | |
100 | 133 | | |
101 | 134 | | |
102 | 135 | | |
This file was deleted.
0 commit comments