Commit 9c3e5be
feat: Implement proper LocalTransport and RemoteTransport separation
Create clean separation with proper inheritance/composition:
- **LocalTransport**: Union of StdioTransport | StreamableHttpTransport | SseTransport
- Used in Package context for local/package transports
- Non-breaking rename of existing concepts
- **RemoteTransport**: Extends StreamableHttpTransport | SseTransport + variables
- Reuses base transport definitions via allOf composition
- Adds variables object for URL templating
- Only supports streamable-http and sse (no stdio for remotes)
Benefits:
- ✅ Proper code reuse - shares StreamableHttp/Sse definitions
- ✅ Clear naming - LocalTransport vs RemoteTransport
- ✅ Non-breaking - just renames Package transport concept
- ✅ DRY design - no duplication between transport types
- ✅ Type safety - RemoteTransport can't use stdio
This addresses feedback about wanting proper inheritance and clearer
separation between local vs remote transport contexts.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 4601c54 commit 9c3e5be
1 file changed
+64
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 137 | + | |
148 | 138 | | |
149 | 139 | | |
150 | 140 | | |
| |||
419 | 409 | | |
420 | 410 | | |
421 | 411 | | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
436 | 416 | | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
| 417 | + | |
| 418 | + | |
441 | 419 | | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
448 | 451 | | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
455 | 476 | | |
456 | | - | |
| 477 | + | |
| 478 | + | |
457 | 479 | | |
458 | 480 | | |
459 | 481 | | |
| |||
0 commit comments