Commit 1f2a79f
Phase 3: Type Safety Hardening - bulk z.any() → z.unknown() migration
- 3.1: Replaced z.record(z.string(), z.any()) → z.record(z.string(), z.unknown()) across all .zod.ts files
- 3.2: Tightened id fields in data-engine.zod.ts to z.union([z.string(), z.number()])
- 3.3a: Updated kernel/plugin.zod.ts metadata/events records (service methods kept as z.any())
- 3.3b: Replaced z.promise(z.any()) and z.function().args(z.any()) in data/driver.zod.ts
- 3.3c: Replaced z.promise(z.any()) returns and z.record data patterns in data-engine.zod.ts
- 3.3d: Replaced payload, handler, filter, transform z.any() in kernel/events.zod.ts
- 3.3e: Replaced config-related z.any() in kernel/manifest.zod.ts
- 3.4: Replaced z.array(z.any()) in UI schemas (component, app, view)
- 3.5: Deprecated location field in ui/action.zod.ts with z.unknown()
- Also migrated standalone z.any() for data fields across ai/, api/, system/, automation/, shared/
Final counts: z.any()=62 (down from 394), z.unknown()=340
Remaining z.any() are legitimate: service methods, filter operators, lifecycle hooks
All 3073 tests pass, build succeeds
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent c3d0cf2 commit 1f2a79f
112 files changed
Lines changed: 403 additions & 340 deletions
File tree
- packages/spec
- json-schema
- ai
- api
- data
- kernel
- system
- ui
- src
- ai
- api
- automation
- data
- driver
- hub
- identity
- integration
- connector
- kernel
- security
- system
- ui
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 | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
| 323 | + | |
| 324 | + | |
324 | 325 | | |
325 | 326 | | |
326 | 327 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| |||
709 | 710 | | |
710 | 711 | | |
711 | 712 | | |
| 713 | + | |
712 | 714 | | |
713 | 715 | | |
714 | 716 | | |
| |||
1266 | 1268 | | |
1267 | 1269 | | |
1268 | 1270 | | |
| 1271 | + | |
1269 | 1272 | | |
1270 | 1273 | | |
1271 | 1274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| 357 | + | |
357 | 358 | | |
358 | 359 | | |
359 | 360 | | |
360 | 361 | | |
| 362 | + | |
361 | 363 | | |
362 | 364 | | |
363 | 365 | | |
| |||
0 commit comments