Commit bfed6ec
authored
Merge pull request #106 from mihaelamj/feat/99-availability
## Summary
- Add platform availability filtering for all 5 Apple platforms (iOS, macOS, tvOS, watchOS, visionOS)
- Implement `cupertino fetch --type availability` to fetch API availability data from Apple's documentation API
- Add `--min-ios`, `--min-macos`, `--min-tvos`, `--min-watchos`, `--min-visionos` filters to CLI search and MCP tools
## Features
### Availability Fetching
- New `fetch --type availability` command fetches minimum platform versions from Apple's API
- Concurrent fetching with configurable concurrency (default 50 requests)
- Progress reporting with statistics (success rate, duration, documents processed)
- Skip existing data with `--skip-existing` flag for incremental updates
### Search Filtering
- Filter search results by minimum platform version
- Works with CLI: `cupertino search "View" --min-ios 15.0`
- Works with MCP tool: `search_docs` with `min_ios`, `min_macos`, `min_tvos`, `min_watchos`, `min_visionos` parameters
- Results show availability info per platform
### Code Quality
- Added `FrameworkAvailability` struct to replace large tuples
- Fixed SwiftLint violations (identifier_name, line_length, large_tuple)
- Comprehensive test coverage for availability typeFile tree
44 files changed
+3379
-54
lines changed- Packages
- Sources
- Availability
- CLI
- Commands
- Core
- Transformers
- MockAIAgent
- SearchToolProvider
- Search
- Services
- Formatters
- TUI
- Routing
- Tests
- AvailabilityTests
- CLITests
- docs
- artifacts
- folders/docs
- commands
- fetch/option (--)
- type (=value)
- search
- option (--)
- tools/search_docs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
44 files changed
+3379
-54
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
1 | 33 | | |
2 | 34 | | |
3 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
181 | 191 | | |
182 | 192 | | |
183 | 193 | | |
| |||
189 | 199 | | |
190 | 200 | | |
191 | 201 | | |
| 202 | + | |
192 | 203 | | |
193 | 204 | | |
194 | 205 | | |
| |||
296 | 307 | | |
297 | 308 | | |
298 | 309 | | |
| 310 | + | |
| 311 | + | |
299 | 312 | | |
300 | 313 | | |
301 | 314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
0 commit comments