Commit ae0eea9
committed
feat(storage): extract provider selection to synapse-core and update docs for multi-copy
Move provider selection logic (selectProviders, fetchProviderSelectionInput,
findMatchingDataSets) from SDK internals to synapse-core as public API for
DIY users. Simplify selection from 4-tier fallback to 2-tier preference
(existing dataset -> new dataset) since endorsedIds already controls the
eligible pool. Clean up createContexts() to three explicit paths (dataSetIds,
providerIds, smartSelect) with count validation and duplicate-provider guard.
Update storage docs to reflect multi-copy as the default upload path.1 parent cf6babd commit ae0eea9
26 files changed
Lines changed: 1855 additions & 869 deletions
File tree
- docs/src/content/docs
- developer-guides
- storage
- getting-started
- packages
- synapse-core
- src/warm-storage
- test
- synapse-sdk/src
- storage
- test
- utils
- utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
166 | | - | |
| 165 | + | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| |||
0 commit comments