Commit 79d67c6
feat(protocol): reconcile schemas with factory-mono-alpha source of truth
Adds missing fields/enum members detected by mono's verify-sdk-parity
audit so the SDK is bit-equivalent to mono's wire schemas:
- enums.ts: add ModelID entries ORIEL_0601, OXIDE_0601, OXBOW_0601,
OCELOT_0601 (Olympus families released after the previous port).
- general-settings.ts: add McpAutonomyUrlOverrideSchema +
mcpAutonomyUrlOverrides on ManagedSettingsBaseSchema, and
dismissedNewModels on GeneralSettingsSchema.
- daemon/droid.ts:
- DaemonGetGitDiffDataSchema: add committedDiff / committedFiles /
committedTotalAdditions / committedTotalDeletions for the
committed-only diff section the frontend renders.
- DaemonGetGitDiffRequestParamsSchema: add statsOnly.
- DaemonGetWorkspaceFileContentRequestParamsSchema: add encoding
(utf8|base64) for binary file previews.
- DaemonGetWorkspaceFileContentResultSchema: add encoding, mimeType,
isBinary so the frontend can guard binary content properly.
After this change factory-mono-alpha reports 265/265 schema MATCH and
0 MISMATCH against @factory/droid-sdk/protocol.
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>1 parent ef8bb8b commit 79d67c6
3 files changed
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
| 569 | + | |
569 | 570 | | |
570 | 571 | | |
571 | 572 | | |
| |||
593 | 594 | | |
594 | 595 | | |
595 | 596 | | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
596 | 601 | | |
597 | 602 | | |
598 | 603 | | |
| |||
832 | 837 | | |
833 | 838 | | |
834 | 839 | | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
835 | 847 | | |
836 | 848 | | |
837 | 849 | | |
838 | 850 | | |
839 | 851 | | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
840 | 866 | | |
841 | 867 | | |
842 | 868 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
574 | 578 | | |
575 | 579 | | |
576 | 580 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
174 | 179 | | |
175 | 180 | | |
176 | 181 | | |
| |||
192 | 197 | | |
193 | 198 | | |
194 | 199 | | |
| 200 | + | |
195 | 201 | | |
196 | 202 | | |
197 | 203 | | |
| |||
255 | 261 | | |
256 | 262 | | |
257 | 263 | | |
| 264 | + | |
258 | 265 | | |
259 | 266 | | |
260 | 267 | | |
| |||
0 commit comments