@ai-sdk/tui 0.0.0-07500555-20260730161446

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,490 @@
1
+ # @ai-sdk/tui
2
+
3
+ ## 0.0.0-07500555-20260730161446
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [589d87c]
8
+ - Updated dependencies [7f6650b]
9
+ - Updated dependencies [106ea59]
10
+ - ai@0.0.0-07500555-20260730161446
11
+
12
+ ## 1.0.35
13
+
14
+ ### Patch Changes
15
+
16
+ - ai@7.0.34
17
+
18
+ ## 1.0.34
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [76cb673]
23
+ - Updated dependencies [e808fa5]
24
+ - Updated dependencies [33647d7]
25
+ - ai@7.0.33
26
+
27
+ ## 1.0.33
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [6cd7c74]
32
+ - Updated dependencies [e35bcae]
33
+ - Updated dependencies [a4eb3f3]
34
+ - ai@7.0.32
35
+
36
+ ## 1.0.32
37
+
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies [70f18c3]
41
+ - Updated dependencies [cd06458]
42
+ - ai@7.0.31
43
+
44
+ ## 1.0.31
45
+
46
+ ### Patch Changes
47
+
48
+ - ai@7.0.30
49
+
50
+ ## 1.0.30
51
+
52
+ ### Patch Changes
53
+
54
+ - ai@7.0.29
55
+
56
+ ## 1.0.29
57
+
58
+ ### Patch Changes
59
+
60
+ - 6175a94: Allow `runAgentTUI` to communicate with remote agents through a `ChatTransport`.
61
+
62
+ ## 1.0.28
63
+
64
+ ### Patch Changes
65
+
66
+ - Updated dependencies [0bc8d4f]
67
+ - ai@7.0.28
68
+
69
+ ## 1.0.27
70
+
71
+ ### Patch Changes
72
+
73
+ - Updated dependencies [ac01b79]
74
+ - Updated dependencies [2696562]
75
+ - ai@7.0.27
76
+
77
+ ## 1.0.26
78
+
79
+ ### Patch Changes
80
+
81
+ - Updated dependencies [27d294d]
82
+ - ai@7.0.26
83
+
84
+ ## 1.0.25
85
+
86
+ ### Patch Changes
87
+
88
+ - Updated dependencies [7805e4a]
89
+ - Updated dependencies [f8e82fd]
90
+ - ai@7.0.25
91
+
92
+ ## 1.0.24
93
+
94
+ ### Patch Changes
95
+
96
+ - Updated dependencies [e193290]
97
+ - ai@7.0.24
98
+
99
+ ## 1.0.23
100
+
101
+ ### Patch Changes
102
+
103
+ - Updated dependencies [930f949]
104
+ - ai@7.0.23
105
+
106
+ ## 1.0.22
107
+
108
+ ### Patch Changes
109
+
110
+ - Updated dependencies [8f89c25]
111
+ - ai@7.0.22
112
+
113
+ ## 1.0.21
114
+
115
+ ### Patch Changes
116
+
117
+ - 308a519: chore: enforce consistent imports from `zod/v4` instead of `zod`
118
+ - Updated dependencies [308a519]
119
+ - ai@7.0.21
120
+
121
+ ## 1.0.20
122
+
123
+ ### Patch Changes
124
+
125
+ - Updated dependencies [b9ac19f]
126
+ - Updated dependencies [a4186d6]
127
+ - ai@7.0.20
128
+
129
+ ## 1.0.19
130
+
131
+ ### Patch Changes
132
+
133
+ - Updated dependencies [be7f05a]
134
+ - Updated dependencies [ee55a07]
135
+ - Updated dependencies [aad737d]
136
+ - Updated dependencies [0f93c57]
137
+ - ai@7.0.19
138
+
139
+ ## 1.0.18
140
+
141
+ ### Patch Changes
142
+
143
+ - ai@7.0.18
144
+
145
+ ## 1.0.17
146
+
147
+ ### Patch Changes
148
+
149
+ - ai@7.0.17
150
+
151
+ ## 1.0.16
152
+
153
+ ### Patch Changes
154
+
155
+ - Updated dependencies [a8f9b6d]
156
+ - ai@7.0.16
157
+
158
+ ## 1.0.15
159
+
160
+ ### Patch Changes
161
+
162
+ - ai@7.0.15
163
+
164
+ ## 1.0.14
165
+
166
+ ### Patch Changes
167
+
168
+ - Updated dependencies [5c5c0f5]
169
+ - ai@7.0.14
170
+
171
+ ## 1.0.13
172
+
173
+ ### Patch Changes
174
+
175
+ - ai@7.0.13
176
+
177
+ ## 1.0.12
178
+
179
+ ### Patch Changes
180
+
181
+ - Updated dependencies [ecfeb6f]
182
+ - Updated dependencies [a193137]
183
+ - ai@7.0.12
184
+
185
+ ## 1.0.11
186
+
187
+ ### Patch Changes
188
+
189
+ - Updated dependencies [0a87626]
190
+ - ai@7.0.11
191
+
192
+ ## 1.0.10
193
+
194
+ ### Patch Changes
195
+
196
+ - Updated dependencies [8c616f0]
197
+ - ai@7.0.10
198
+
199
+ ## 1.0.9
200
+
201
+ ### Patch Changes
202
+
203
+ - ai@7.0.9
204
+
205
+ ## 1.0.8
206
+
207
+ ### Patch Changes
208
+
209
+ - Updated dependencies [0274f34]
210
+ - ai@7.0.8
211
+
212
+ ## 1.0.7
213
+
214
+ ### Patch Changes
215
+
216
+ - Updated dependencies [d598481]
217
+ - ai@7.0.7
218
+
219
+ ## 1.0.6
220
+
221
+ ### Patch Changes
222
+
223
+ - Updated dependencies [989402d]
224
+ - ai@7.0.6
225
+
226
+ ## 1.0.5
227
+
228
+ ### Patch Changes
229
+
230
+ - Updated dependencies [a2750db]
231
+ - ai@7.0.5
232
+
233
+ ## 1.0.4
234
+
235
+ ### Patch Changes
236
+
237
+ - ai@7.0.4
238
+
239
+ ## 1.0.3
240
+
241
+ ### Patch Changes
242
+
243
+ - ai@7.0.3
244
+
245
+ ## 1.0.2
246
+
247
+ ### Patch Changes
248
+
249
+ - ai@7.0.2
250
+
251
+ ## 1.0.1
252
+
253
+ ### Patch Changes
254
+
255
+ - ai@7.0.1
256
+
257
+ ## 1.0.0
258
+
259
+ ### Patch Changes
260
+
261
+ - e757741: feat: agent tui
262
+ - b8396f0: trigger initial beta release
263
+ - e150ad7: Allow `runAgentTUI` to accept any AI SDK `Agent` generic combination.
264
+ - b06e092: Add a `sandbox` option to `runAgentTUI` and forward it to every agent stream call for tool execution.
265
+
266
+ ## 1.0.0-beta.23
267
+
268
+ ### Patch Changes
269
+
270
+ - ai@7.0.0-beta.187
271
+
272
+ ## 1.0.0-beta.22
273
+
274
+ ### Patch Changes
275
+
276
+ - ai@7.0.0-beta.186
277
+
278
+ ## 1.0.0-beta.21
279
+
280
+ ### Patch Changes
281
+
282
+ - Updated dependencies [75763b0]
283
+ - ai@7.0.0-beta.185
284
+
285
+ ## 1.0.0-beta.20
286
+
287
+ ### Patch Changes
288
+
289
+ - Updated dependencies [0416e3e]
290
+ - ai@7.0.0-beta.184
291
+
292
+ ## 1.0.0-beta.19
293
+
294
+ ### Patch Changes
295
+
296
+ - ai@7.0.0-beta.183
297
+
298
+ ## 1.0.0-beta.18
299
+
300
+ ### Patch Changes
301
+
302
+ - e150ad7: Allow `runAgentTUI` to accept any AI SDK `Agent` generic combination.
303
+ - b06e092: Add a `sandbox` option to `runAgentTUI` and forward it to every agent stream call for tool execution.
304
+
305
+ ## 1.0.0-beta.17
306
+
307
+ ### Patch Changes
308
+
309
+ - Updated dependencies [cc6ab90]
310
+ - ai@7.0.0-beta.182
311
+
312
+ ## 1.0.0-beta.16
313
+
314
+ ### Patch Changes
315
+
316
+ - Updated dependencies [6a2caf9]
317
+ - ai@7.0.0-beta.181
318
+
319
+ ## 1.0.0-beta.15
320
+
321
+ ### Patch Changes
322
+
323
+ - Updated dependencies [81a284b]
324
+ - ai@7.0.0-beta.180
325
+
326
+ ## 1.0.0-beta.14
327
+
328
+ ### Patch Changes
329
+
330
+ - ai@7.0.0-beta.179
331
+
332
+ ## 1.0.0-beta.13
333
+
334
+ ### Patch Changes
335
+
336
+ - Updated dependencies [b097c52]
337
+ - ai@7.0.0-beta.178
338
+
339
+ ## 1.0.0-beta.12
340
+
341
+ ### Patch Changes
342
+
343
+ - b8396f0: trigger initial beta release
344
+ - Updated dependencies [b8396f0]
345
+ - ai@7.0.0-beta.177
346
+
347
+ ## 1.0.0-canary.11
348
+
349
+ ### Patch Changes
350
+
351
+ - ai@7.0.0-canary.176
352
+
353
+ ## 1.0.0-canary.10
354
+
355
+ ### Patch Changes
356
+
357
+ - Updated dependencies [6ec57f5]
358
+ - ai@7.0.0-canary.175
359
+
360
+ ## 1.0.0-canary.9
361
+
362
+ ### Patch Changes
363
+
364
+ - ai@7.0.0-canary.174
365
+
366
+ ## 1.0.0-canary.8
367
+
368
+ ### Patch Changes
369
+
370
+ - ai@7.0.0-canary.173
371
+
372
+ ## 1.0.0-canary.7
373
+
374
+ ### Patch Changes
375
+
376
+ - Updated dependencies [25a64f8]
377
+ - Updated dependencies [375fdd7]
378
+ - Updated dependencies [f18b08f]
379
+ - Updated dependencies [b4507d5]
380
+ - ai@7.0.0-canary.172
381
+
382
+ ## 1.0.0-canary.6
383
+
384
+ ### Patch Changes
385
+
386
+ - Updated dependencies [89ad56f]
387
+ - Updated dependencies [f9a496f]
388
+ - Updated dependencies [3295831]
389
+ - ai@7.0.0-canary.171
390
+
391
+ ## 1.0.0-canary.5
392
+
393
+ ### Patch Changes
394
+
395
+ - Updated dependencies [bae5e2b]
396
+ - Updated dependencies [69d7128]
397
+ - ai@7.0.0-canary.170
398
+
399
+ ## 1.0.0-canary.4
400
+
401
+ ### Patch Changes
402
+
403
+ - Updated dependencies [a5018ab]
404
+ - Updated dependencies [21d3d60]
405
+ - Updated dependencies [426dbbb]
406
+ - Updated dependencies [7fd3360]
407
+ - ai@7.0.0-canary.169
408
+
409
+ ## 1.0.0-canary.3
410
+
411
+ ### Patch Changes
412
+
413
+ - Updated dependencies [1e4b350]
414
+ - ai@7.0.0-canary.168
415
+
416
+ ## 1.0.0-canary.2
417
+
418
+ ### Patch Changes
419
+
420
+ - Updated dependencies [4757690]
421
+ - Updated dependencies [eeefc3f]
422
+ - Updated dependencies [b79b6a8]
423
+ - ai@7.0.0-canary.167
424
+
425
+ ## 1.0.0-canary.1
426
+
427
+ ### Patch Changes
428
+
429
+ - e757741: feat: agent tui
430
+ - Updated dependencies [19736ee]
431
+ - Updated dependencies [d66ae02]
432
+ - Updated dependencies [e4182bd]
433
+ - ai@7.0.0-canary.166
434
+
435
+ ## 0.4.7
436
+
437
+ ### Patch Changes
438
+
439
+ - 852b8ac: Use conventional TUI shortcuts for repaint, exit, and page scrolling.
440
+
441
+ ## 0.4.6
442
+
443
+ ### Patch Changes
444
+
445
+ - 055e2f4: Fix terminal UI agent typing for agents created with separate AI SDK installs.
446
+
447
+ ## 0.4.5
448
+
449
+ ### Patch Changes
450
+
451
+ - de0e0f0: Update AI SDK compatibility for response performance metadata.
452
+
453
+ ## 0.4.4
454
+
455
+ ### Patch Changes
456
+
457
+ - dd23c1a: Move `ai` to a peer dependency so consumers use a single AI SDK type instance.
458
+
459
+ ## 0.4.3
460
+
461
+ ### Patch Changes
462
+
463
+ - 95f9eb8: Show tool-result processing status immediately after tool execution finishes.
464
+ - 12db3db: Preserve manual scroll position while new terminal output streams.
465
+
466
+ ## 0.4.2
467
+
468
+ ### Patch Changes
469
+
470
+ - f0da54f: Show "Processing tool results..." after a tool turn completes and the next step starts.
471
+ - f7b47df: Add auto-collapsed terminal display mode for tools and reasoning parts.
472
+
473
+ ## 0.4.1
474
+
475
+ ### Patch Changes
476
+
477
+ - 6442142: Show tool execution and next-step processing statuses while agent streams continue.
478
+
479
+ Allow configuring the context window size so the terminal UI can show token usage as a percentage.
480
+
481
+ ## 0.4.0
482
+
483
+ ### Minor Changes
484
+
485
+ - 5f0835b: Support interrupting active streams with Ctrl+C, including aborting the underlying agent request and cleaning up the terminal renderer immediately.
486
+ - 5f0835b: Surface total token usage in assistant response metadata and show the conversation token count in the terminal UI frame.
487
+
488
+ ### Patch Changes
489
+
490
+ - 1d48500: Show processing input status until assistant streaming output begins.
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.