Commit 0ea0bc7
Phase C: streaming/MCP/shape cleanups + disable quicktype combineClasses
Mirrors PR #1357 Phase C (TypeScript SDK API review).
Changes:
* `SessionConfig.streaming` and `ResumeSessionConfig.streaming` now document
`Defaults to False` (matches TS PR #1357 4.2).
* `ToolBinaryResult.type` tightened from `str` to `Literal["image", "resource"]`
with `"image"` default (matches TS PR #1357 2.6).
* `scripts/codegen/python.ts` now sets `inferenceFlags: { combineClasses: false }`
when invoking quicktype. Previously quicktype's default structural-equality
merging produced fuzzy synthesized names (e.g.
`PermissionDecisionApproveForIonApproval` for the merge of
`PermissionDecisionApproveFor{Session,Location}Approval`), which are
unstable: any future divergence between the schema variants would silently
change the generated class name. We rely on the schema's named definitions
and resolve structural unions explicitly via
`postProcessRefBasedDiscriminatedUnionsForPython`, so the merging is also
redundant. Removed the `Session→Ion` / `Location→Ion` acronym hack we
needed when the merging was on.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 9885b92 commit 0ea0bc7
4 files changed
Lines changed: 130 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
980 | 980 | | |
981 | 981 | | |
982 | 982 | | |
983 | | - | |
| 983 | + | |
984 | 984 | | |
985 | | - | |
| 985 | + | |
| 986 | + | |
986 | 987 | | |
987 | 988 | | |
988 | 989 | | |
| |||
1071 | 1072 | | |
1072 | 1073 | | |
1073 | 1074 | | |
1074 | | - | |
| 1075 | + | |
1075 | 1076 | | |
1076 | 1077 | | |
1077 | 1078 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | 362 | | |
371 | 363 | | |
372 | 364 | | |
| |||
459 | 451 | | |
460 | 452 | | |
461 | 453 | | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | 454 | | |
504 | 455 | | |
505 | 456 | | |
| |||
2789 | 2740 | | |
2790 | 2741 | | |
2791 | 2742 | | |
| 2743 | + | |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
| 2749 | + | |
| 2750 | + | |
2792 | 2751 | | |
2793 | 2752 | | |
2794 | 2753 | | |
| |||
0 commit comments