Commit f56a9c2
authored
Add cua to mode (#1432)
# why
Move cua to mode enum for consistency across modes
# what changed
deprecated cua: true, in favor of mode: "cua"
# test plan
tested locally
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Move CUA config from a boolean flag to the mode enum for consistency
across agent modes. Use mode: "cua"; cua: true is deprecated and now
emits a runtime warning.
- **Refactors**
- Added "cua" to AgentToolMode and updated public types/tests.
- Deprecated AgentConfig.cua with a deprecation warning.
- Centralized CUA detection (mode: "cua" or legacy cua: true) in
validation, cache, and agent creation.
- Improved agent logging to include mode and unified CUA feature checks.
- **Migration**
- Replace AgentConfig cua: true with mode: "cua".
<sup>Written for commit 1f1b807.
Summary will update automatically on new commits.</sup>
<!-- End of auto-generated description by cubic. -->1 parent e0e22e0 commit f56a9c2
File tree
6 files changed
+43
-12
lines changed- .changeset
- packages/core
- lib/v3
- agent/utils
- cache
- types/public
- tests/public-api
6 files changed
+43
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | | - | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
76 | | - | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
81 | | - | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
112 | 116 | | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
116 | | - | |
| 120 | + | |
117 | 121 | | |
118 | | - | |
| 122 | + | |
119 | 123 | | |
120 | 124 | | |
121 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| 404 | + | |
404 | 405 | | |
405 | | - | |
| 406 | + | |
406 | 407 | | |
407 | 408 | | |
408 | 409 | | |
| |||
418 | 419 | | |
419 | 420 | | |
420 | 421 | | |
421 | | - | |
| 422 | + | |
| 423 | + | |
422 | 424 | | |
423 | 425 | | |
424 | 426 | | |
| |||
442 | 444 | | |
443 | 445 | | |
444 | 446 | | |
445 | | - | |
| 447 | + | |
446 | 448 | | |
447 | 449 | | |
448 | 450 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1665 | 1665 | | |
1666 | 1666 | | |
1667 | 1667 | | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
1668 | 1684 | | |
1669 | 1685 | | |
1670 | 1686 | | |
1671 | 1687 | | |
1672 | 1688 | | |
1673 | | - | |
| 1689 | + | |
| 1690 | + | |
1674 | 1691 | | |
1675 | 1692 | | |
1676 | 1693 | | |
| |||
1687 | 1704 | | |
1688 | 1705 | | |
1689 | 1706 | | |
1690 | | - | |
1691 | | - | |
| 1707 | + | |
| 1708 | + | |
1692 | 1709 | | |
1693 | 1710 | | |
1694 | 1711 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| |||
0 commit comments