Commit 79b3443
effect(zod-adapter-removal): drop fromZod shim and unused zod dep
Replace the last fromZod consumer (LeaseMutableEffectSchema in
messages/events.ts) with a native Effect schema that uses Schema.mutable
on the record and the inner array so DelegateBody.lease_request stays
assignment-compatible with the zod-derived Lease = Record<string, string[]>
contract used across runtime/job-runner.ts. Delete messages/zod-adapter.ts
and its dedicated test file. Drop zod from @arcp/client/package.json
(client/src has zero direct zod imports).
zod remains a direct dep of @arcp/core and @arcp/runtime because
envelope.ts, brands.ts, errors.ts, messages/{lease-schema,events,session,
execution,index}.ts, store/eventlog.ts, and runtime/session-context.ts
still consume zod schemas. Full removal would require migrating envelope.ts
+ brands.ts + every messageEnvelope() payload twin + every .safeParse
caller (client-dispatch.ts, session-context.ts) — deferred to a follow-up
since it cascades beyond the 600 LOC slice budget.
All gates green: lint, typecheck, build, 442/442 tests including SDK
integration 45/45.
Closes #50
Closes #30
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f367067 commit 79b3443
6 files changed
Lines changed: 17 additions & 101 deletions
File tree
- packages
- client
- core
- src/messages
- test/messages
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
103 | 110 | | |
104 | 111 | | |
105 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments