Commit 15da12a
committed
refactor(rest): narrow the REST protocol dependency to DataProtocol & MetadataProtocol (ADR-0076 D9/A1.5, #2462)
The REST layer was typed against the full ObjectStackProtocol god-union
while actually calling only the data CRUD + metadata control-plane slices
(server-only extensions are feature-detected via casts). Introduce
RestProtocol = DataProtocol & MetadataProtocol, thread it through
RestServer / rest-api-plugin, and export it from the package barrel, per
the D9 incremental narrowing guidance. Type-level only.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A1BtxNeUaGmvUYr8FwtUNu1 parent fae5dd0 commit 15da12a
3 files changed
Lines changed: 22 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
11 | 20 | | |
12 | 21 | | |
13 | 22 | | |
| |||
693 | 702 | | |
694 | 703 | | |
695 | 704 | | |
696 | | - | |
| 705 | + | |
697 | 706 | | |
698 | 707 | | |
699 | 708 | | |
| |||
749 | 758 | | |
750 | 759 | | |
751 | 760 | | |
752 | | - | |
| 761 | + | |
753 | 762 | | |
754 | 763 | | |
755 | 764 | | |
| |||
876 | 885 | | |
877 | 886 | | |
878 | 887 | | |
879 | | - | |
| 888 | + | |
880 | 889 | | |
881 | 890 | | |
882 | 891 | | |
883 | 892 | | |
884 | | - | |
| 893 | + | |
885 | 894 | | |
886 | 895 | | |
887 | 896 | | |
| |||
998 | 1007 | | |
999 | 1008 | | |
1000 | 1009 | | |
1001 | | - | |
| 1010 | + | |
1002 | 1011 | | |
1003 | 1012 | | |
1004 | 1013 | | |
| |||
0 commit comments