mastracode 0.49.1-alpha.0 → 0.50.0-alpha.10
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 +155 -0
- package/dist/cli.cjs +3 -3
- package/dist/cli.js +3 -3
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/{login-command-EvJk2jIW.js → login-command-CT7RA_DY.js} +2 -2
- package/dist/{login-command-EvJk2jIW.js.map → login-command-CT7RA_DY.js.map} +1 -1
- package/dist/{login-command-COPViada.cjs → login-command-DvbCd7Pz.cjs} +2 -2
- package/dist/{login-command-COPViada.cjs.map → login-command-DvbCd7Pz.cjs.map} +1 -1
- package/dist/tui/commands/api-keys.d.ts.map +1 -1
- package/dist/tui/commands/goal.d.ts +7 -3
- package/dist/tui/commands/goal.d.ts.map +1 -1
- package/dist/tui/commands/settings.d.ts.map +1 -1
- package/dist/tui/components/custom-editor.d.ts +63 -1
- package/dist/tui/components/custom-editor.d.ts.map +1 -1
- package/dist/tui/components/github-pr-picker.d.ts +2 -0
- package/dist/tui/components/github-pr-picker.d.ts.map +1 -1
- package/dist/tui/components/login-account-manager.d.ts +2 -0
- package/dist/tui/components/login-account-manager.d.ts.map +1 -1
- package/dist/tui/components/login-mode-selector.d.ts +1 -1
- package/dist/tui/components/login-mode-selector.d.ts.map +1 -1
- package/dist/tui/components/login-selector.d.ts +2 -0
- package/dist/tui/components/login-selector.d.ts.map +1 -1
- package/dist/tui/components/mcp-selector.d.ts +4 -0
- package/dist/tui/components/mcp-selector.d.ts.map +1 -1
- package/dist/tui/components/model-selector.d.ts +3 -1
- package/dist/tui/components/model-selector.d.ts.map +1 -1
- package/dist/tui/components/picker-list.d.ts +34 -0
- package/dist/tui/components/picker-list.d.ts.map +1 -0
- package/dist/tui/components/plan-approval-inline.d.ts +4 -4
- package/dist/tui/components/plan-approval-inline.d.ts.map +1 -1
- package/dist/tui/components/settings.d.ts +8 -0
- package/dist/tui/components/settings.d.ts.map +1 -1
- package/dist/tui/components/thread-selector.d.ts +2 -1
- package/dist/tui/components/thread-selector.d.ts.map +1 -1
- package/dist/tui/components/wrapping-autocomplete-list.d.ts +10 -0
- package/dist/tui/components/wrapping-autocomplete-list.d.ts.map +1 -1
- package/dist/tui/components/wrapping-select-list.d.ts +6 -1
- package/dist/tui/components/wrapping-select-list.d.ts.map +1 -1
- package/dist/tui/handlers/prompts.d.ts.map +1 -1
- package/dist/tui/mastra-tui.d.ts.map +1 -1
- package/dist/tui/mouse/controller.d.ts +118 -0
- package/dist/tui/mouse/controller.d.ts.map +1 -0
- package/dist/tui/mouse/hit-test.d.ts +36 -0
- package/dist/tui/mouse/hit-test.d.ts.map +1 -0
- package/dist/tui/mouse/hover-marker.d.ts +7 -0
- package/dist/tui/mouse/hover-marker.d.ts.map +1 -0
- package/dist/tui/mouse/input-selection.d.ts +33 -0
- package/dist/tui/mouse/input-selection.d.ts.map +1 -0
- package/dist/tui/mouse/pi-tui-internals.d.ts +86 -0
- package/dist/tui/mouse/pi-tui-internals.d.ts.map +1 -0
- package/dist/tui/mouse/sgr.d.ts +25 -0
- package/dist/tui/mouse/sgr.d.ts.map +1 -0
- package/dist/tui/overlay.d.ts.map +1 -1
- package/dist/tui/render-messages.d.ts.map +1 -1
- package/dist/tui/setup.d.ts.map +1 -1
- package/dist/tui/state.d.ts +2 -0
- package/dist/tui/state.d.ts.map +1 -1
- package/dist/tui/status-line.d.ts.map +1 -1
- package/dist/tui/voice/engines/cloud-engine.d.ts.map +1 -1
- package/dist/tui/voice/transcribe.d.ts +4 -54
- package/dist/tui/voice/transcribe.d.ts.map +1 -1
- package/dist/{tui-D5ou9NB5.js → tui-B8QChoCW.js} +1455 -300
- package/dist/tui-B8QChoCW.js.map +1 -0
- package/dist/{tui-C0cxqVft.cjs → tui-BG2R7wps.cjs} +1453 -298
- package/dist/tui-BG2R7wps.cjs.map +1 -0
- package/dist/tui.cjs +1 -1
- package/dist/tui.js +1 -1
- package/package.json +12 -14
- package/dist/tui-C0cxqVft.cjs.map +0 -1
- package/dist/tui-D5ou9NB5.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,160 @@
|
|
|
1
1
|
# mastracode
|
|
2
2
|
|
|
3
|
+
## 0.50.0-alpha.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`1689ce3`](https://github.com/mastra-ai/mastra/commit/1689ce38e1d66df6f474acd5db65f46315a02c23), [`067314b`](https://github.com/mastra-ai/mastra/commit/067314bcb3372d763f087a74b79c912c9645ca08), [`38327de`](https://github.com/mastra-ai/mastra/commit/38327de07a169a6d5ce8ab8fc2075caec112d6f3), [`0da9a52`](https://github.com/mastra-ai/mastra/commit/0da9a5275d206aa1c0ebe14eb4ec09dd2283cca3), [`067314b`](https://github.com/mastra-ai/mastra/commit/067314bcb3372d763f087a74b79c912c9645ca08), [`aa49b04`](https://github.com/mastra-ai/mastra/commit/aa49b049d00a90851c3209e6dac1c6f30ddedceb), [`aa49b04`](https://github.com/mastra-ai/mastra/commit/aa49b049d00a90851c3209e6dac1c6f30ddedceb), [`aa49b04`](https://github.com/mastra-ai/mastra/commit/aa49b049d00a90851c3209e6dac1c6f30ddedceb), [`2053c88`](https://github.com/mastra-ai/mastra/commit/2053c881ed7a13c43d3932e1938e2f94ef226b4f), [`a169a80`](https://github.com/mastra-ai/mastra/commit/a169a8014cbbfcdeb8c559183c60458540737e74), [`2053c88`](https://github.com/mastra-ai/mastra/commit/2053c881ed7a13c43d3932e1938e2f94ef226b4f), [`4884ee0`](https://github.com/mastra-ai/mastra/commit/4884ee08a067dd82176c57ca54bdfec02eda97ea), [`259f142`](https://github.com/mastra-ai/mastra/commit/259f142f464a107b0a00a0afb302b3b7bc2f1b52), [`c8fecd5`](https://github.com/mastra-ai/mastra/commit/c8fecd5d6f87bef8e99988df863e71a763a7b24d), [`cd041a5`](https://github.com/mastra-ai/mastra/commit/cd041a5bb0d489451eec15b730c517f5482a7070), [`49e7108`](https://github.com/mastra-ai/mastra/commit/49e71082bd2c36cd20d7f4ba62bb3666e108968b), [`4cfa256`](https://github.com/mastra-ai/mastra/commit/4cfa256801f6b7e909daa5ed5d14c77b9fb24197), [`7f0d2fd`](https://github.com/mastra-ai/mastra/commit/7f0d2fd4b6c304ad851232b5969d96fdb20aa06a), [`b0ef22e`](https://github.com/mastra-ai/mastra/commit/b0ef22e7bfeb309c456d5c54528d579c4ac9e863), [`056d35d`](https://github.com/mastra-ai/mastra/commit/056d35d943316bdf657e4a504b2082cb6c14c075), [`0b3514e`](https://github.com/mastra-ai/mastra/commit/0b3514eb8a590278c07574729d6539c1e67d2887), [`a169a80`](https://github.com/mastra-ai/mastra/commit/a169a8014cbbfcdeb8c559183c60458540737e74), [`eb683b4`](https://github.com/mastra-ai/mastra/commit/eb683b45fe2ad645ae81c419d405aa2327a053e3)]:
|
|
8
|
+
- @mastra/core@1.83.0-alpha.9
|
|
9
|
+
- @mastra/code-sdk@1.19.0-alpha.11
|
|
10
|
+
- @mastra/observability@1.24.0-alpha.6
|
|
11
|
+
- @mastra/duckdb@1.19.0-alpha.4
|
|
12
|
+
- @mastra/pg@1.36.0-alpha.4
|
|
13
|
+
- @mastra/libsql@1.30.0-alpha.3
|
|
14
|
+
- @mastra/schema-compat@1.4.0-alpha.1
|
|
15
|
+
- @mastra/mcp@2.9.0-alpha.3
|
|
16
|
+
- @mastra/memory@1.41.1-alpha.4
|
|
17
|
+
|
|
18
|
+
## 0.50.0-alpha.9
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [[`c860b9b`](https://github.com/mastra-ai/mastra/commit/c860b9bb438d16fc8dcd81dbfabf1e481725cb6f), [`166ad37`](https://github.com/mastra-ai/mastra/commit/166ad37debf0266fad6121c2f939f8575aba1512), [`d0cc2fd`](https://github.com/mastra-ai/mastra/commit/d0cc2fdc13d09179e9747d8067e8e23ed1c5a2a2), [`b621401`](https://github.com/mastra-ai/mastra/commit/b62140115989dc564709a5f94c41357eb26bc778), [`59a60e4`](https://github.com/mastra-ai/mastra/commit/59a60e42d5985980d1a36cf0bcddeead09283703), [`9751742`](https://github.com/mastra-ai/mastra/commit/9751742c445864f42c400d235310bfc160342e44), [`7082623`](https://github.com/mastra-ai/mastra/commit/708262393a15c45a03bf2f58ea8c14b42aa1a2a4), [`166ad37`](https://github.com/mastra-ai/mastra/commit/166ad37debf0266fad6121c2f939f8575aba1512), [`afa19de`](https://github.com/mastra-ai/mastra/commit/afa19de57d0c578cb01ddc648baacddb6a5a87ae), [`c860b9b`](https://github.com/mastra-ai/mastra/commit/c860b9bb438d16fc8dcd81dbfabf1e481725cb6f), [`3b27a10`](https://github.com/mastra-ai/mastra/commit/3b27a10322c7ca39e0676a89deba8d9b0b48ffb7), [`562a451`](https://github.com/mastra-ai/mastra/commit/562a451e2299dc40c4723ff2acb6526aff6b7337), [`c860b9b`](https://github.com/mastra-ai/mastra/commit/c860b9bb438d16fc8dcd81dbfabf1e481725cb6f), [`4473677`](https://github.com/mastra-ai/mastra/commit/447367781ce5127a4945dcce95b6372d54d728ff)]:
|
|
23
|
+
- @mastra/core@1.83.0-alpha.8
|
|
24
|
+
- @mastra/observability@1.24.0-alpha.5
|
|
25
|
+
- @mastra/pg@1.36.0-alpha.3
|
|
26
|
+
- @mastra/duckdb@1.19.0-alpha.3
|
|
27
|
+
- @mastra/code-sdk@1.19.0-alpha.10
|
|
28
|
+
- @mastra/mcp@2.9.0-alpha.3
|
|
29
|
+
- @mastra/libsql@1.30.0-alpha.2
|
|
30
|
+
|
|
31
|
+
## 0.50.0-alpha.8
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- Updated dependencies [[`2fe9969`](https://github.com/mastra-ai/mastra/commit/2fe996990088c76ea9db7d1959ab3c09015176f3)]:
|
|
36
|
+
- @mastra/observability@1.24.0-alpha.4
|
|
37
|
+
- @mastra/code-sdk@1.19.0-alpha.8
|
|
38
|
+
- @mastra/mcp@2.9.0-alpha.3
|
|
39
|
+
|
|
40
|
+
## 0.50.0-alpha.7
|
|
41
|
+
|
|
42
|
+
### Minor Changes
|
|
43
|
+
|
|
44
|
+
- Approving a plan now starts it as a goal. The plan approval prompt offers only **Approve** and **Request changes**; the separate **Use as /goal** option is gone. When no goal judge model is configured, the current model judges the plan goal instead of prompting for one. ([#28037](https://github.com/mastra-ai/mastra/pull/28037))
|
|
45
|
+
|
|
46
|
+
- Added text selection in the prompt input box. Shift+arrow keys select characters and lines, Shift+Alt or Shift+Ctrl with ←/→ select by word, and Shift+Home/End select to the line edges; Backspace, typing and pasting then work on the selection like they do after a mouse drag. Keyboard selection works with the Mouse setting off. ([#29994](https://github.com/mastra-ai/mastra/pull/29994))
|
|
47
|
+
|
|
48
|
+
With input box mouse mode on, a double click selects the word under the pointer, a triple click selects the line and dragging after a double click grows the selection by whole words. Like a drag, these copy the selected text to the clipboard.
|
|
49
|
+
|
|
50
|
+
### Patch Changes
|
|
51
|
+
|
|
52
|
+
- Updated dependencies [[`4e7dbf9`](https://github.com/mastra-ai/mastra/commit/4e7dbf9cc3f10f8ae4d93f4cd4c2892bd2cd6554), [`d41d7ac`](https://github.com/mastra-ai/mastra/commit/d41d7ac33d29fa71ae8cd37d3af5e52b31b5c277), [`d41d7ac`](https://github.com/mastra-ai/mastra/commit/d41d7ac33d29fa71ae8cd37d3af5e52b31b5c277), [`2d16c84`](https://github.com/mastra-ai/mastra/commit/2d16c84823139420e6757f9e247d5a3f5061d37b), [`210458a`](https://github.com/mastra-ai/mastra/commit/210458a144ac5a934663db7bfe6cc650c0d2adaa), [`69f5d83`](https://github.com/mastra-ai/mastra/commit/69f5d8314707700ca48b38bcdea0d31580618cdc), [`42bc816`](https://github.com/mastra-ai/mastra/commit/42bc816c076197c376b0502cec85c9b8a2e22a43), [`bdd8fee`](https://github.com/mastra-ai/mastra/commit/bdd8fee1e28a3b23d2f62fa740e10bc771ea2fc8), [`ebbea50`](https://github.com/mastra-ai/mastra/commit/ebbea50d38f2f4996675fbf33c047d1fd63dfd05), [`a30ee08`](https://github.com/mastra-ai/mastra/commit/a30ee08ccd27aa8c6ff8721640ff0b8df9baae67), [`ac40e76`](https://github.com/mastra-ai/mastra/commit/ac40e762db7b6614076273221aae6681945f9da1), [`79906e7`](https://github.com/mastra-ai/mastra/commit/79906e7b9facd00c8745ea7fdeb3eb83a7e2308b), [`ce03237`](https://github.com/mastra-ai/mastra/commit/ce03237b34fa0db44de087b367a429c83e75e3b3)]:
|
|
53
|
+
- @mastra/core@1.83.0-alpha.7
|
|
54
|
+
- @mastra/code-sdk@1.19.0-alpha.7
|
|
55
|
+
|
|
56
|
+
## 0.50.0-alpha.6
|
|
57
|
+
|
|
58
|
+
### Patch Changes
|
|
59
|
+
|
|
60
|
+
- Removed comments from Factory work items. Cards no longer have a comment feed, mentions, or comment counts, and the mention and activity items are gone from the attention inbox. Slack `aside` messages are still ignored by the agent but are no longer copied onto the card, and Factory no longer mirrors card comments to Slack. ([#29062](https://github.com/mastra-ai/mastra/pull/29062))
|
|
61
|
+
|
|
62
|
+
Each card now has a single `description` instead. Set it with `description` on `POST /web/factory/projects/:id/work-items` and `PATCH /web/factory/work-items/:id` (a blank string clears it), or edit it from the card panel. Runs started on the card receive it in a `<work-item-description>` block after the skill instructions, in place of the old `<work-item-feed>` block.
|
|
63
|
+
|
|
64
|
+
Breaking changes for API and agent-tool callers:
|
|
65
|
+
|
|
66
|
+
- `factory_create_work_item` takes `description` instead of `brief`. `factory_update_work_item` also accepts `description`, and `factory_inspect_work_item` returns it in place of recent comments.
|
|
67
|
+
- The `/web/factory/work-items/:id/comments` and `/web/factory/projects/:id/mention-roster` routes are removed. `/web/factory/projects/:id/feed-events` stays and still refreshes open boards, but its frames no longer carry a `workItemId`.
|
|
68
|
+
- The `mention` and `activity` attention kinds are removed.
|
|
69
|
+
- Work items no longer include `commentCount` or `feedActivityAt`.
|
|
70
|
+
- Integrations can no longer declare a `feedPublisher`, and `IntegrationContext` no longer has `feed`.
|
|
71
|
+
- `factoryWorkItemUrl()` no longer accepts `commentId`.
|
|
72
|
+
|
|
73
|
+
- Updated dependencies [[`749c09c`](https://github.com/mastra-ai/mastra/commit/749c09cf9120ff36cfa965444e2f0472b37c00ee), [`023455e`](https://github.com/mastra-ai/mastra/commit/023455e2d45ba13aef1880364985c949308ae015), [`931c2bb`](https://github.com/mastra-ai/mastra/commit/931c2bb605a2a924844a4b75b2b8319673cc911b), [`931c2bb`](https://github.com/mastra-ai/mastra/commit/931c2bb605a2a924844a4b75b2b8319673cc911b), [`22b24cc`](https://github.com/mastra-ai/mastra/commit/22b24cc40ad2923b22e11cfa2b5264b4ae0f1ffc), [`ec60314`](https://github.com/mastra-ai/mastra/commit/ec603149745f7592d3d559447f69c65277580c31), [`5810337`](https://github.com/mastra-ai/mastra/commit/5810337c710fdba9f3e1c3fe982eec8907f2f444), [`ec60314`](https://github.com/mastra-ai/mastra/commit/ec603149745f7592d3d559447f69c65277580c31), [`08e677f`](https://github.com/mastra-ai/mastra/commit/08e677fdbe36c10118c54c0494c8412019d61955), [`c3ef10e`](https://github.com/mastra-ai/mastra/commit/c3ef10ee3094f9d30d2aca6d59ef224b0340d6ba), [`df4b70b`](https://github.com/mastra-ai/mastra/commit/df4b70bd4185ce7c56699aac76321e64e59d7cdd), [`6ef0741`](https://github.com/mastra-ai/mastra/commit/6ef07410a40f69ebe316db2bd3190cd43177a46a), [`c3ef10e`](https://github.com/mastra-ai/mastra/commit/c3ef10ee3094f9d30d2aca6d59ef224b0340d6ba), [`01b2b95`](https://github.com/mastra-ai/mastra/commit/01b2b958af4a2a609e20ae2e39c0201383631760), [`e344f15`](https://github.com/mastra-ai/mastra/commit/e344f157171c02d43c41bd6f4a4487e0215726af), [`5de12fc`](https://github.com/mastra-ai/mastra/commit/5de12fce63626abb87fcb09d7628951e7ad96b4a), [`6b8f215`](https://github.com/mastra-ai/mastra/commit/6b8f215e1fadcba2d0e3ad6a1a9222f8f2c6da79), [`04803ea`](https://github.com/mastra-ai/mastra/commit/04803ea00e168759ed3e28ce8a65977df7355df9), [`ab4c3fa`](https://github.com/mastra-ai/mastra/commit/ab4c3fafdbd5ff84dde97fa936e1e55d70ef3e4b), [`223204c`](https://github.com/mastra-ai/mastra/commit/223204cd3eb1b9e54a7be0130d2bf2e6c957b9cf), [`e349d05`](https://github.com/mastra-ai/mastra/commit/e349d05edd35a1889a4122f296693a15a8125a27)]:
|
|
74
|
+
- @mastra/core@1.83.0-alpha.6
|
|
75
|
+
- @mastra/code-sdk@1.19.0-alpha.6
|
|
76
|
+
- @mastra/memory@1.41.1-alpha.3
|
|
77
|
+
- @mastra/mcp@2.9.0-alpha.3
|
|
78
|
+
- @mastra/schema-compat@1.3.18-alpha.0
|
|
79
|
+
|
|
80
|
+
## 0.50.0-alpha.5
|
|
81
|
+
|
|
82
|
+
### Patch Changes
|
|
83
|
+
|
|
84
|
+
- Deleting a saved key in `/api-keys` now goes back to the key from your environment if the saved key overrode one, instead of leaving the provider without a key. ([#29432](https://github.com/mastra-ai/mastra/pull/29432))
|
|
85
|
+
|
|
86
|
+
- Updated dependencies [[`ce86e53`](https://github.com/mastra-ai/mastra/commit/ce86e5327a0e835e26792e238dacc2c15a777bbf), [`bfda77d`](https://github.com/mastra-ai/mastra/commit/bfda77de9773c383f23101cde8f4ee12af8bff19), [`66c620c`](https://github.com/mastra-ai/mastra/commit/66c620c086cd4a5d12347a832057290a19cb9db2), [`b3801a7`](https://github.com/mastra-ai/mastra/commit/b3801a79d35090231cc6e57752739f0e238d5a01), [`964e1ba`](https://github.com/mastra-ai/mastra/commit/964e1baa24a5a383c86b9f3aa639d488e8742b13), [`ec8d9b8`](https://github.com/mastra-ai/mastra/commit/ec8d9b8e7b8c259d96e1f1b2f7be4082cf13fb57), [`311d434`](https://github.com/mastra-ai/mastra/commit/311d4342cc61e9f5a621625e28e483a892fda6bc), [`6644a82`](https://github.com/mastra-ai/mastra/commit/6644a8274880f217ed7930d2e115e68056a565d6), [`9730315`](https://github.com/mastra-ai/mastra/commit/9730315a2fddf51580599030916d43b17e1ca553), [`bf9212b`](https://github.com/mastra-ai/mastra/commit/bf9212b308c1d418cac64d54aa380dac324db1bd), [`9730315`](https://github.com/mastra-ai/mastra/commit/9730315a2fddf51580599030916d43b17e1ca553), [`6563e7a`](https://github.com/mastra-ai/mastra/commit/6563e7abfc5afa8ede43c668be018edeabe8db65), [`92f9771`](https://github.com/mastra-ai/mastra/commit/92f9771a0fefaf6e23541ac702850da63bfe4ef9)]:
|
|
87
|
+
- @mastra/core@1.83.0-alpha.5
|
|
88
|
+
- @mastra/code-sdk@1.19.0-alpha.5
|
|
89
|
+
- @mastra/memory@1.41.1-alpha.2
|
|
90
|
+
- @mastra/libsql@1.30.0-alpha.2
|
|
91
|
+
- @mastra/mcp@2.9.0-alpha.2
|
|
92
|
+
|
|
93
|
+
## 0.50.0-alpha.4
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- Updated dependencies [[`3655736`](https://github.com/mastra-ai/mastra/commit/3655736ec9dc2e1d03d0af3c6be812ccddfc8223), [`2cfa924`](https://github.com/mastra-ai/mastra/commit/2cfa92405b0e0f8b644dd47c4f55abb4dce573c9), [`c0bad48`](https://github.com/mastra-ai/mastra/commit/c0bad48e3a7abef3d8f14fa2c194e09e0f431bba), [`e628d52`](https://github.com/mastra-ai/mastra/commit/e628d52a2ebbf1522c7cad51e31619feac97cac2), [`69f481c`](https://github.com/mastra-ai/mastra/commit/69f481cb1e83f67d50cf83dd0baa6c9333609d48), [`832fb19`](https://github.com/mastra-ai/mastra/commit/832fb190f72fe8e0fc82e48ade5aaacdd4dbb2f7), [`832fb19`](https://github.com/mastra-ai/mastra/commit/832fb190f72fe8e0fc82e48ade5aaacdd4dbb2f7), [`832fb19`](https://github.com/mastra-ai/mastra/commit/832fb190f72fe8e0fc82e48ade5aaacdd4dbb2f7), [`832fb19`](https://github.com/mastra-ai/mastra/commit/832fb190f72fe8e0fc82e48ade5aaacdd4dbb2f7)]:
|
|
98
|
+
- @mastra/core@1.83.0-alpha.4
|
|
99
|
+
- @mastra/observability@1.24.0-alpha.3
|
|
100
|
+
- @mastra/libsql@1.30.0-alpha.1
|
|
101
|
+
- @mastra/duckdb@1.19.0-alpha.2
|
|
102
|
+
- @mastra/code-sdk@1.19.0-alpha.4
|
|
103
|
+
- @mastra/mcp@2.9.0-alpha.1
|
|
104
|
+
|
|
105
|
+
## 0.50.0-alpha.3
|
|
106
|
+
|
|
107
|
+
### Minor Changes
|
|
108
|
+
|
|
109
|
+
- With the **Mouse** setting in `/settings` at **Input box only** or **Dialogs + input box**, typing or editing in the input box captures the mouse: click to move the cursor, drag to select text (the selection is copied to your clipboard), and type, paste, or press Backspace to replace or remove the selection. The right side of the status line shows `mouse mode: auto` while the mouse is captured and `mouse mode: off` while the terminal has it. ([#29701](https://github.com/mastra-ai/mastra/pull/29701))
|
|
110
|
+
|
|
111
|
+
The mouse goes back to the terminal when you send a message, scroll the mouse wheel, or click outside the input box, so the terminal's own scrolling and text selection come back as soon as you reach for them (that first wheel tick or click is used up handing the mouse back).
|
|
112
|
+
|
|
113
|
+
- Added opt-in mouse support. Pick **Mouse** in `/settings` and choose **Dialogs only**, **Input box only**, or **Dialogs + input box** (it's **Off** by default, so the terminal keeps the mouse). ([#29701](https://github.com/mastra-ai/mastra/pull/29701))
|
|
114
|
+
|
|
115
|
+
With dialogs on, click a row in the model picker, `/threads`, `/github`, `/login`, `/mcp`, `/settings`, or another list dialog to choose it. A click does the same as Enter (in multi-choice questions it toggles the checkbox). Click a slash command suggestion to fill it in, scroll with the mouse wheel to move the highlight, and hover to see which row a click will pick. The mouse is only captured while a dialog or suggestion list is open, so scrolling back and selecting text in the conversation work as before.
|
|
116
|
+
|
|
117
|
+
### Patch Changes
|
|
118
|
+
|
|
119
|
+
- Updated dependencies [[`6bd8cc4`](https://github.com/mastra-ai/mastra/commit/6bd8cc4c05bc09bb7b8d798ae0f684f79e9c8736), [`58a66b0`](https://github.com/mastra-ai/mastra/commit/58a66b01d9b08e7b59c27fc3ab68eb90be13c0ed), [`ac2a640`](https://github.com/mastra-ai/mastra/commit/ac2a6401a09e2177555369cff2f7ad15f2cc7286), [`94b1641`](https://github.com/mastra-ai/mastra/commit/94b1641919dd90455131b16cd0572ce28008781b), [`8279c30`](https://github.com/mastra-ai/mastra/commit/8279c3073737dd1c228b5df15416ca4ce7e0c00c), [`791cf60`](https://github.com/mastra-ai/mastra/commit/791cf606e91badea097b883949dc717689caa49d), [`bc9d8d4`](https://github.com/mastra-ai/mastra/commit/bc9d8d482cec626ef2107f1cbd5a05febceaa491), [`8a10dfe`](https://github.com/mastra-ai/mastra/commit/8a10dfe648610a6687d1e4ecc10a0a81e3d80c4c), [`d77893a`](https://github.com/mastra-ai/mastra/commit/d77893aed38eefe2dbac21e9fffd872137ee6b92), [`c9140d2`](https://github.com/mastra-ai/mastra/commit/c9140d2d4d16dfd674f163cd0a83e28593969c04), [`791cf60`](https://github.com/mastra-ai/mastra/commit/791cf606e91badea097b883949dc717689caa49d), [`6bc7614`](https://github.com/mastra-ai/mastra/commit/6bc7614a8f4355d17184d29f798f13e1d70609cd), [`b31cbe2`](https://github.com/mastra-ai/mastra/commit/b31cbe2888f890383629d20c853e21f870dee5a6), [`bfedbfe`](https://github.com/mastra-ai/mastra/commit/bfedbfe5a8e5721cba782efb4652be84e9fecc04), [`c9140d2`](https://github.com/mastra-ai/mastra/commit/c9140d2d4d16dfd674f163cd0a83e28593969c04), [`a836d09`](https://github.com/mastra-ai/mastra/commit/a836d09a43c3c471b5bfced711731355bf26db26), [`7b912d2`](https://github.com/mastra-ai/mastra/commit/7b912d293d50bb91e34c6e1c75e315fb6adaf125), [`4854e36`](https://github.com/mastra-ai/mastra/commit/4854e3641931c984a5b3941371a4f0fa58eafd0e), [`5e63a3b`](https://github.com/mastra-ai/mastra/commit/5e63a3b59de455b3a016840a557576dc5191053f), [`c9140d2`](https://github.com/mastra-ai/mastra/commit/c9140d2d4d16dfd674f163cd0a83e28593969c04), [`94d6258`](https://github.com/mastra-ai/mastra/commit/94d62580788929e783913433c574b6727f09356b), [`7358ad7`](https://github.com/mastra-ai/mastra/commit/7358ad73a381765572858d520f8170ab59e88514), [`f6bd808`](https://github.com/mastra-ai/mastra/commit/f6bd8089ba5e43b3c1216d982b04ee0027ddea84), [`b93d804`](https://github.com/mastra-ai/mastra/commit/b93d804a7a406d834389e686687b06d22ea2e4f1), [`ed1cecb`](https://github.com/mastra-ai/mastra/commit/ed1cecba5c26a73600640f74e9a1c9d322271b23), [`4cd4c46`](https://github.com/mastra-ai/mastra/commit/4cd4c46e546d44c556fce4d731cac03cad4f88c4), [`9e5b108`](https://github.com/mastra-ai/mastra/commit/9e5b1082cbe2454c377b3328cd8a0085e7452d1a), [`b31cbe2`](https://github.com/mastra-ai/mastra/commit/b31cbe2888f890383629d20c853e21f870dee5a6), [`28ddc16`](https://github.com/mastra-ai/mastra/commit/28ddc161a441fdc3ecbdcc1168dee773f1f25243), [`0f496bd`](https://github.com/mastra-ai/mastra/commit/0f496bd3c1cc7f07d2e4ecb3005d480406b3d342), [`de005a4`](https://github.com/mastra-ai/mastra/commit/de005a43d8703d36c5dd25d7ddd1f618ea98bf55)]:
|
|
120
|
+
- @mastra/code-sdk@1.19.0-alpha.3
|
|
121
|
+
- @mastra/core@1.83.0-alpha.3
|
|
122
|
+
- @mastra/memory@1.41.1-alpha.1
|
|
123
|
+
- @mastra/pg@1.36.0-alpha.2
|
|
124
|
+
- @mastra/observability@1.24.0-alpha.2
|
|
125
|
+
- @mastra/fastembed@1.3.7-alpha.0
|
|
126
|
+
- @mastra/libsql@1.30.0-alpha.0
|
|
127
|
+
- @mastra/mcp@2.9.0-alpha.1
|
|
128
|
+
|
|
129
|
+
## 0.50.0-alpha.2
|
|
130
|
+
|
|
131
|
+
### Patch Changes
|
|
132
|
+
|
|
133
|
+
- Updated dependencies:
|
|
134
|
+
- @mastra/core@1.83.0-alpha.2
|
|
135
|
+
- @mastra/code-sdk@1.19.0-alpha.2
|
|
136
|
+
|
|
137
|
+
## 0.50.0-alpha.1
|
|
138
|
+
|
|
139
|
+
### Minor Changes
|
|
140
|
+
|
|
141
|
+
- Added Mistral Voxtral as a speech-to-text provider for voice input. Pick `mistral` in `/voice` and set `MISTRAL_API_KEY` (or add a key with `/api-keys`) to dictate with `voxtral-mini-latest`. ([#29363](https://github.com/mastra-ai/mastra/pull/29363))
|
|
142
|
+
|
|
143
|
+
Fixed voice input with Groq and the other OpenAI-compatible hosts failing with "No API key provided for speech model" when `OPENAI_API_KEY` was not set.
|
|
144
|
+
|
|
145
|
+
Fixed voice input with NEAR AI ignoring `NEARAI_API_KEY`. `NEAR_AI_API_KEY` is no longer read; rename it to `NEARAI_API_KEY`.
|
|
146
|
+
|
|
147
|
+
### Patch Changes
|
|
148
|
+
|
|
149
|
+
- Updated dependencies [[`a0068a9`](https://github.com/mastra-ai/mastra/commit/a0068a9ad1fb0a31ae60a07ecbeae41a32ea4081), [`bb0fcd6`](https://github.com/mastra-ai/mastra/commit/bb0fcd6211a416cece10c20e11f6f3cb70b4c93b), [`459757f`](https://github.com/mastra-ai/mastra/commit/459757f07de6905c6abdfc3b08a7f48a808dcc6b), [`592a907`](https://github.com/mastra-ai/mastra/commit/592a9071cae12ef7d1defa5f7942f1a9cbdaa340), [`3cf319b`](https://github.com/mastra-ai/mastra/commit/3cf319b5af74aeebb1b70bd29ec539fbd2af4bb8), [`8960f55`](https://github.com/mastra-ai/mastra/commit/8960f55dec7ebf39b460ee8664509d2924065b86), [`b518fc9`](https://github.com/mastra-ai/mastra/commit/b518fc9abeb05093aff4b1bb3e74f018e3612078), [`68869db`](https://github.com/mastra-ai/mastra/commit/68869dbb53034aee5868bccef4691af61bf6656e), [`cd369c3`](https://github.com/mastra-ai/mastra/commit/cd369c334cf5af81597d7d61e7419b390f92365b), [`f94beac`](https://github.com/mastra-ai/mastra/commit/f94beac86288cb94e2973c9ed492c8f0d68b919d), [`544224c`](https://github.com/mastra-ai/mastra/commit/544224c38f61d08a0b9952d202366fb3c6cc5bd9), [`a873e2d`](https://github.com/mastra-ai/mastra/commit/a873e2df4335b4cd7d50d4d2d26b166f976af9e3), [`d6a5f98`](https://github.com/mastra-ai/mastra/commit/d6a5f98df3a1f6d11743e0bdf150358d7db4dd40), [`d6a5f98`](https://github.com/mastra-ai/mastra/commit/d6a5f98df3a1f6d11743e0bdf150358d7db4dd40), [`defb820`](https://github.com/mastra-ai/mastra/commit/defb82048f6e78bde95c10ffa0ca36f20d714f41), [`23308f9`](https://github.com/mastra-ai/mastra/commit/23308f9c193ef852c28f6ec1c6e872f75363c5f7), [`83b6997`](https://github.com/mastra-ai/mastra/commit/83b6997a2ac9e2a3d94bcfe4de181b32a26cf7c6), [`36bbc29`](https://github.com/mastra-ai/mastra/commit/36bbc291292170e68774d6e9a7c76b6a5d930dd8), [`f79db0d`](https://github.com/mastra-ai/mastra/commit/f79db0de42bc8205fe62b39c1fe78932661b5e14), [`e14e5df`](https://github.com/mastra-ai/mastra/commit/e14e5dfb7a50422ef84e3623c823d8b782dec330), [`8d07b0b`](https://github.com/mastra-ai/mastra/commit/8d07b0b293812d84c3f45c2806eb53ed45f58324), [`f7320ab`](https://github.com/mastra-ai/mastra/commit/f7320abd205aa865e3ae467b7bf82373af30a6aa), [`d6a5f98`](https://github.com/mastra-ai/mastra/commit/d6a5f98df3a1f6d11743e0bdf150358d7db4dd40), [`459757f`](https://github.com/mastra-ai/mastra/commit/459757f07de6905c6abdfc3b08a7f48a808dcc6b), [`2f93851`](https://github.com/mastra-ai/mastra/commit/2f93851c37410a9d9740263a636e802ef9ee2f8d), [`75983cd`](https://github.com/mastra-ai/mastra/commit/75983cdb05ffa4f70aac528220c7fbe5cfa2baf3)]:
|
|
150
|
+
- @mastra/core@1.83.0-alpha.1
|
|
151
|
+
- @mastra/code-sdk@1.19.0-alpha.1
|
|
152
|
+
- @mastra/mcp@2.9.0-alpha.1
|
|
153
|
+
- @mastra/pg@1.36.0-alpha.1
|
|
154
|
+
- @mastra/duckdb@1.19.0-alpha.1
|
|
155
|
+
- @mastra/observability@1.23.2-alpha.1
|
|
156
|
+
- @mastra/libsql@1.30.0-alpha.0
|
|
157
|
+
|
|
3
158
|
## 0.49.1-alpha.0
|
|
4
159
|
|
|
5
160
|
### Patch Changes
|
package/dist/cli.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const require_tui = require("./tui-
|
|
2
|
+
const require_tui = require("./tui-BG2R7wps.cjs");
|
|
3
3
|
let _mastra_code_sdk = require("@mastra/code-sdk");
|
|
4
4
|
let child_process = require("child_process");
|
|
5
5
|
let fs = require("fs");
|
|
@@ -265,7 +265,7 @@ async function runUpdateCommand({ args = [], output = process.stdout, errorOutpu
|
|
|
265
265
|
}
|
|
266
266
|
// src/version.ts
|
|
267
267
|
function getCurrentVersion() {
|
|
268
|
-
return "0.
|
|
268
|
+
return "0.50.0-alpha.10";
|
|
269
269
|
}
|
|
270
270
|
/** Whether the invocation is `mastracode --version` or `mastracode -v`. */
|
|
271
271
|
function isVersionCommand(argv) {
|
|
@@ -650,7 +650,7 @@ async function main() {
|
|
|
650
650
|
}
|
|
651
651
|
const loginIndex = process.argv.findIndex((arg, index) => index >= 2 && arg !== "--acp" && arg !== "--dangerous-auto-approve");
|
|
652
652
|
if (process.argv[loginIndex] === "login") {
|
|
653
|
-
const { runLoginCommand } = await Promise.resolve().then(() => require("./login-command-
|
|
653
|
+
const { runLoginCommand } = await Promise.resolve().then(() => require("./login-command-DvbCd7Pz.cjs"));
|
|
654
654
|
const code = await runLoginCommand({ args: process.argv.slice(loginIndex + 1) });
|
|
655
655
|
await new Promise((resolve) => process.stdout.write("", resolve));
|
|
656
656
|
return process.exit(code);
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { D as closeActiveBrowser, E as activeBrowserGeneration, O as discardBrowser, T as TUI_CO_AUTHOR, _ as normalizeThemePreference, a as formatUpdateHeader, g as applyThemePreference, i as formatUpToDate, k as replaceActiveBrowser, n as formatInstallingLabel, o as formatUpdateOutcome, r as formatRegistryError, t as MastraTUI } from "./tui-
|
|
2
|
+
import { D as closeActiveBrowser, E as activeBrowserGeneration, O as discardBrowser, T as TUI_CO_AUTHOR, _ as normalizeThemePreference, a as formatUpdateHeader, g as applyThemePreference, i as formatUpToDate, k as replaceActiveBrowser, n as formatInstallingLabel, o as formatUpdateOutcome, r as formatRegistryError, t as MastraTUI } from "./tui-B8QChoCW.js";
|
|
3
3
|
import { createMastraCode, resolveSubagentsSetting } from "@mastra/code-sdk";
|
|
4
4
|
import { spawn } from "child_process";
|
|
5
5
|
import fs from "fs";
|
|
@@ -264,7 +264,7 @@ async function runUpdateCommand({ args = [], output = process.stdout, errorOutpu
|
|
|
264
264
|
}
|
|
265
265
|
// src/version.ts
|
|
266
266
|
function getCurrentVersion() {
|
|
267
|
-
return "0.
|
|
267
|
+
return "0.50.0-alpha.10";
|
|
268
268
|
}
|
|
269
269
|
/** Whether the invocation is `mastracode --version` or `mastracode -v`. */
|
|
270
270
|
function isVersionCommand(argv) {
|
|
@@ -649,7 +649,7 @@ async function main() {
|
|
|
649
649
|
}
|
|
650
650
|
const loginIndex = process.argv.findIndex((arg, index) => index >= 2 && arg !== "--acp" && arg !== "--dangerous-auto-approve");
|
|
651
651
|
if (process.argv[loginIndex] === "login") {
|
|
652
|
-
const { runLoginCommand } = await import("./login-command-
|
|
652
|
+
const { runLoginCommand } = await import("./login-command-CT7RA_DY.js");
|
|
653
653
|
const code = await runLoginCommand({ args: process.argv.slice(loginIndex + 1) });
|
|
654
654
|
await new Promise((resolve) => process.stdout.write("", resolve));
|
|
655
655
|
return process.exit(code);
|
package/dist/docs/SKILL.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AuthStorage, getOAuthProviders } from "@mastra/code-sdk/auth/storage";
|
|
2
|
-
import { Writable } from "stream";
|
|
3
2
|
import { openUrlInBrowser } from "@mastra/code-sdk/utils/open-url";
|
|
4
3
|
import { parseArgs } from "util";
|
|
5
4
|
import { PROVIDER_REGISTRY } from "@mastra/core/llm";
|
|
6
5
|
import { createInterface } from "readline";
|
|
6
|
+
import { Writable } from "stream";
|
|
7
7
|
// src/login-command.ts
|
|
8
8
|
async function choose(ask, labels, say) {
|
|
9
9
|
labels.forEach((label, index) => say(` ${index + 1}. ${label}`));
|
|
@@ -94,4 +94,4 @@ async function runLoginCommand({ args = [], input = process.stdin, output = proc
|
|
|
94
94
|
}
|
|
95
95
|
export { runLoginCommand };
|
|
96
96
|
|
|
97
|
-
//# sourceMappingURL=login-command-
|
|
97
|
+
//# sourceMappingURL=login-command-CT7RA_DY.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-command-
|
|
1
|
+
{"version":3,"file":"login-command-CT7RA_DY.js","names":[],"sources":["../src/login-command.ts"],"sourcesContent":["import { createInterface } from 'node:readline';\nimport { Writable } from 'node:stream';\nimport type { Readable } from 'node:stream';\nimport { parseArgs } from 'node:util';\nimport { AuthStorage, getOAuthProviders } from '@mastra/code-sdk/auth/storage';\nimport type { OAuthProviderInterface } from '@mastra/code-sdk/auth/types';\nimport { openUrlInBrowser } from '@mastra/code-sdk/utils/open-url';\nimport { PROVIDER_REGISTRY } from '@mastra/core/llm';\n\ntype Ask = (prompt: string, options?: { secret?: boolean }) => Promise<string>;\n\ninterface LoginCommandOptions {\n args?: string[];\n input?: Readable & { isTTY?: boolean };\n output?: NodeJS.WritableStream;\n authStorage?: AuthStorage;\n openUrl?: (url: string) => void;\n}\n\nasync function choose(ask: Ask, labels: string[], say: (line: string) => void): Promise<number | undefined> {\n labels.forEach((label, index) => say(` ${index + 1}. ${label}`));\n const index = Number((await ask('Choose an option: ')).trim()) - 1;\n return Number.isInteger(index) && index >= 0 && index < labels.length ? index : undefined;\n}\n\nasync function signIn(\n ask: Ask,\n provider: OAuthProviderInterface,\n authStorage: AuthStorage,\n openUrl: (url: string) => void,\n say: (line: string) => void,\n): Promise<void> {\n const modes = provider.authModes ?? [];\n let authMode: string | undefined;\n if (modes.length > 1) {\n const index = await choose(\n ask,\n modes.map(mode => mode.name),\n say,\n );\n if (index === undefined) throw new Error('No sign-in method selected');\n authMode = modes[index]!.id;\n }\n await authStorage.login(provider.id, {\n authMode,\n onAuth: ({ url, instructions }) => {\n say(`Open ${url} to sign in`);\n if (instructions) say(instructions);\n openUrl(url);\n },\n onPrompt: ({ message, placeholder }) => ask(`${message}${placeholder ? ` (${placeholder})` : ''} `),\n onProgress: say,\n });\n say(`Signed in to ${provider.name}`);\n}\n\nasync function addApiKey(ask: Ask, authStorage: AuthStorage, say: (line: string) => void): Promise<void> {\n const providerId = (await ask('Provider (for example anthropic, openai, google): ')).trim();\n if (!(providerId in PROVIDER_REGISTRY)) throw new Error(`Unknown provider: ${providerId}`);\n const key = (await ask('API key: ', { secret: true })).trim();\n say('');\n if (!key) throw new Error('No API key entered');\n authStorage.setStoredApiKey(providerId, key);\n say(`Saved the ${providerId} API key`);\n}\n\nexport async function runLoginCommand({\n args = [],\n input = process.stdin,\n output = process.stdout,\n authStorage = new AuthStorage(),\n openUrl = openUrlInBrowser,\n}: LoginCommandOptions = {}): Promise<number> {\n let echo = false;\n const rl = createInterface({\n input,\n output: new Writable({\n write(chunk, encoding, callback) {\n if (echo) output.write(chunk, encoding);\n callback();\n },\n }),\n prompt: '',\n terminal: Boolean(input.isTTY),\n });\n rl.on('line', () => {\n echo = false;\n });\n const lines = rl[Symbol.asyncIterator]();\n const say = (line: string) => output.write(`${line}\\n`);\n const ask: Ask = async (prompt, { secret = false } = {}) => {\n output.write(prompt);\n echo = !secret;\n const line = await lines.next();\n echo = false;\n if (line.done) throw new Error('Input ended before sign-in finished');\n return line.value;\n };\n try {\n const providers = getOAuthProviders();\n const { values } = parseArgs({ args, options: { provider: { type: 'string' } } });\n if (values.provider !== undefined) {\n const provider = providers.find(({ id }) => id === values.provider);\n if (!provider) {\n const ids = providers.map(({ id }) => id).join(', ');\n throw new Error(`Unknown provider: ${values.provider}. Use one of: ${ids}`);\n }\n await signIn(ask, provider, authStorage, openUrl, say);\n return 0;\n }\n say('Sign in to Mastra Code');\n const index = await choose(ask, [...providers.map(provider => provider.name), 'Add an API key'], say);\n if (index === undefined) throw new Error('No option selected');\n const provider = providers[index];\n if (provider) {\n await signIn(ask, provider, authStorage, openUrl, say);\n } else {\n await addApiKey(ask, authStorage, say);\n }\n return 0;\n } catch (error) {\n say(`Sign-in failed: ${error instanceof Error ? error.message : String(error)}`);\n return 1;\n } finally {\n rl.close();\n }\n}\n"],"mappings":";;;;;;;AAmBA,eAAe,OAAO,KAAU,QAAkB,KAA0D;CAC1G,OAAO,SAAS,OAAO,UAAU,IAAI,KAAK,QAAQ,EAAE,IAAI,OAAO,CAAC;CAChE,MAAM,QAAQ,QAAQ,MAAM,IAAI,oBAAoB,EAAA,CAAG,KAAK,CAAC,IAAI;CACjE,OAAO,OAAO,UAAU,KAAK,KAAK,SAAS,KAAK,QAAQ,OAAO,SAAS,QAAQ,KAAA;AAClF;AAEA,eAAe,OACb,KACA,UACA,aACA,SACA,KACe;CACf,MAAM,QAAQ,SAAS,aAAa,CAAC;CACrC,IAAI;CACJ,IAAI,MAAM,SAAS,GAAG;EACpB,MAAM,QAAQ,MAAM,OAClB,KACA,MAAM,KAAI,SAAQ,KAAK,IAAI,GAC3B,GACF;EACA,IAAI,UAAU,KAAA,GAAW,MAAM,IAAI,MAAM,4BAA4B;EACrE,WAAW,MAAM,MAAM,CAAE;CAC3B;CACA,MAAM,YAAY,MAAM,SAAS,IAAI;EACnC;EACA,SAAS,EAAE,KAAK,mBAAmB;GACjC,IAAI,QAAQ,IAAI,YAAY;GAC5B,IAAI,cAAc,IAAI,YAAY;GAClC,QAAQ,GAAG;EACb;EACA,WAAW,EAAE,SAAS,kBAAk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CACA,IAAI;EACF,MAAM,YAAY,kBAAkB;EACpC,MAAM,EAAE,WAAW,UAAU;GAAE;GAAM,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,EAAE;EAAE,CAAC;EAChF,IAAI,OAAO,aAAa,KAAA,GAAW;GACjC,MAAM,WAAW,UAAU,MAAM,EAAE,SAAS,OAAO,OAAO,QAAQ;GAClE,IAAI,CAAC,UAAU;IACb,MAAM,MAAM,UAAU,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,KAAK,IAAI;IACnD,MAAM,IAAI,MAAM,qBAAqB,OAAO,SAAS,gBAAgB,KAAK;GAC5E;GACA,MAAM,OAAO,KAAK,UAAU,aAAa,SAAS,GAAG;GACrD,OAAO;EACT;EACA,IAAI,wBAAwB;EAC5B,MAAM,QAAQ,MAAM,OAAO,KAAK,CAAC,GAAG,UAAU,KAAI,aAAY,SAAS,IAAI,GAAG,gBAAgB,GAAG,GAAG;EACpG,IAAI,UAAU,KAAA,GAAW,MAAM,IAAI,MAAM,oBAAoB;EAC7D,MAAM,WAAW,UAAU;EAC3B,IAAI,UACF,MAAM,OAAO,KAAK,UAAU,aAAa,SAAS,GAAG;OAErD,MAAM,UAAU,KAAK,aAAa,GAAG;EAEvC,OAAO;CACT,SAAS,OAAO;EACd,IAAI,mBAAmB,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK,GAAG;EAC/E,OAAO;CACT,UAAU;EACR,GAAG,MAAM;CACX;AACF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
let _mastra_code_sdk_auth_storage = require("@mastra/code-sdk/auth/storage");
|
|
2
|
-
let stream = require("stream");
|
|
3
2
|
let _mastra_code_sdk_utils_open_url = require("@mastra/code-sdk/utils/open-url");
|
|
4
3
|
let util = require("util");
|
|
5
4
|
let _mastra_core_llm = require("@mastra/core/llm");
|
|
6
5
|
let readline = require("readline");
|
|
6
|
+
let stream = require("stream");
|
|
7
7
|
// src/login-command.ts
|
|
8
8
|
async function choose(ask, labels, say) {
|
|
9
9
|
labels.forEach((label, index) => say(` ${index + 1}. ${label}`));
|
|
@@ -94,4 +94,4 @@ async function runLoginCommand({ args = [], input = process.stdin, output = proc
|
|
|
94
94
|
}
|
|
95
95
|
exports.runLoginCommand = runLoginCommand;
|
|
96
96
|
|
|
97
|
-
//# sourceMappingURL=login-command-
|
|
97
|
+
//# sourceMappingURL=login-command-DvbCd7Pz.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-command-
|
|
1
|
+
{"version":3,"file":"login-command-DvbCd7Pz.cjs","names":["PROVIDER_REGISTRY","AuthStorage","openUrlInBrowser","createInterface","Writable","getOAuthProviders","parseArgs"],"sources":["../src/login-command.ts"],"sourcesContent":["import { createInterface } from 'node:readline';\nimport { Writable } from 'node:stream';\nimport type { Readable } from 'node:stream';\nimport { parseArgs } from 'node:util';\nimport { AuthStorage, getOAuthProviders } from '@mastra/code-sdk/auth/storage';\nimport type { OAuthProviderInterface } from '@mastra/code-sdk/auth/types';\nimport { openUrlInBrowser } from '@mastra/code-sdk/utils/open-url';\nimport { PROVIDER_REGISTRY } from '@mastra/core/llm';\n\ntype Ask = (prompt: string, options?: { secret?: boolean }) => Promise<string>;\n\ninterface LoginCommandOptions {\n args?: string[];\n input?: Readable & { isTTY?: boolean };\n output?: NodeJS.WritableStream;\n authStorage?: AuthStorage;\n openUrl?: (url: string) => void;\n}\n\nasync function choose(ask: Ask, labels: string[], say: (line: string) => void): Promise<number | undefined> {\n labels.forEach((label, index) => say(` ${index + 1}. ${label}`));\n const index = Number((await ask('Choose an option: ')).trim()) - 1;\n return Number.isInteger(index) && index >= 0 && index < labels.length ? index : undefined;\n}\n\nasync function signIn(\n ask: Ask,\n provider: OAuthProviderInterface,\n authStorage: AuthStorage,\n openUrl: (url: string) => void,\n say: (line: string) => void,\n): Promise<void> {\n const modes = provider.authModes ?? [];\n let authMode: string | undefined;\n if (modes.length > 1) {\n const index = await choose(\n ask,\n modes.map(mode => mode.name),\n say,\n );\n if (index === undefined) throw new Error('No sign-in method selected');\n authMode = modes[index]!.id;\n }\n await authStorage.login(provider.id, {\n authMode,\n onAuth: ({ url, instructions }) => {\n say(`Open ${url} to sign in`);\n if (instructions) say(instructions);\n openUrl(url);\n },\n onPrompt: ({ message, placeholder }) => ask(`${message}${placeholder ? ` (${placeholder})` : ''} `),\n onProgress: say,\n });\n say(`Signed in to ${provider.name}`);\n}\n\nasync function addApiKey(ask: Ask, authStorage: AuthStorage, say: (line: string) => void): Promise<void> {\n const providerId = (await ask('Provider (for example anthropic, openai, google): ')).trim();\n if (!(providerId in PROVIDER_REGISTRY)) throw new Error(`Unknown provider: ${providerId}`);\n const key = (await ask('API key: ', { secret: true })).trim();\n say('');\n if (!key) throw new Error('No API key entered');\n authStorage.setStoredApiKey(providerId, key);\n say(`Saved the ${providerId} API key`);\n}\n\nexport async function runLoginCommand({\n args = [],\n input = process.stdin,\n output = process.stdout,\n authStorage = new AuthStorage(),\n openUrl = openUrlInBrowser,\n}: LoginCommandOptions = {}): Promise<number> {\n let echo = false;\n const rl = createInterface({\n input,\n output: new Writable({\n write(chunk, encoding, callback) {\n if (echo) output.write(chunk, encoding);\n callback();\n },\n }),\n prompt: '',\n terminal: Boolean(input.isTTY),\n });\n rl.on('line', () => {\n echo = false;\n });\n const lines = rl[Symbol.asyncIterator]();\n const say = (line: string) => output.write(`${line}\\n`);\n const ask: Ask = async (prompt, { secret = false } = {}) => {\n output.write(prompt);\n echo = !secret;\n const line = await lines.next();\n echo = false;\n if (line.done) throw new Error('Input ended before sign-in finished');\n return line.value;\n };\n try {\n const providers = getOAuthProviders();\n const { values } = parseArgs({ args, options: { provider: { type: 'string' } } });\n if (values.provider !== undefined) {\n const provider = providers.find(({ id }) => id === values.provider);\n if (!provider) {\n const ids = providers.map(({ id }) => id).join(', ');\n throw new Error(`Unknown provider: ${values.provider}. Use one of: ${ids}`);\n }\n await signIn(ask, provider, authStorage, openUrl, say);\n return 0;\n }\n say('Sign in to Mastra Code');\n const index = await choose(ask, [...providers.map(provider => provider.name), 'Add an API key'], say);\n if (index === undefined) throw new Error('No option selected');\n const provider = providers[index];\n if (provider) {\n await signIn(ask, provider, authStorage, openUrl, say);\n } else {\n await addApiKey(ask, authStorage, say);\n }\n return 0;\n } catch (error) {\n say(`Sign-in failed: ${error instanceof Error ? error.message : String(error)}`);\n return 1;\n } finally {\n rl.close();\n }\n}\n"],"mappings":";;;;;;;AAmBA,eAAe,OAAO,KAAU,QAAkB,KAA0D;CAC1G,OAAO,SAAS,OAAO,UAAU,IAAI,KAAK,QAAQ,EAAE,IAAI,OAAO,CAAC;CAChE,MAAM,QAAQ,QAAQ,MAAM,IAAI,oBAAoB,EAAA,CAAG,KAAK,CAAC,IAAI;CACjE,OAAO,OAAO,UAAU,KAAK,KAAK,SAAS,KAAK,QAAQ,OAAO,SAAS,QAAQ,KAAA;AAClF;AAEA,eAAe,OACb,KACA,UACA,aACA,SACA,KACe;CACf,MAAM,QAAQ,SAAS,aAAa,CAAC;CACrC,IAAI;CACJ,IAAI,MAAM,SAAS,GAAG;EACpB,MAAM,QAAQ,MAAM,OAClB,KACA,MAAM,KAAI,SAAQ,KAAK,IAAI,GAC3B,GACF;EACA,IAAI,UAAU,KAAA,GAAW,MAAM,IAAI,MAAM,4BAA4B;EACrE,WAAW,MAAM,MAAM,CAAE;CAC3B;CACA,MAAM,YAAY,MAAM,SAAS,IAAI;EACnC;EACA,SAAS,EAAE,KAAK,mBAAmB;GACjC,IAAI,QAAQ,IAAI,YAAY;GAC5B,IAAI,cAAc,IAAI,YAAY;GAClC,QAAQ,GAAG;EACb;EACA,WAAW,EAAE,SAAS,kBAAkB,IAAI,GAAG,UAAU,cAAc,KAAK,YAAY,KAAK,GAAG,EAAE;EAClG,YAAY;CACd,CAAC;CACD,IAAI,gBAAgB,SAAS,MAAM;AACrC;AAEA,eAAe,UAAU,KAAU,aAA0B,KAA4C;CACvG,MAAM,cAAc,MAAM,IAAI,oDAAoD,EAAA,CA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E,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,GACxE,YAAY,EAAE,CA2BhB;AAsBD,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"api-keys.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/api-keys.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,UAAU,YAAY;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;CAC7C;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,mBAAmB,EACxB,MAAM,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,GACxE,YAAY,EAAE,CA2BhB;AAsBD,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CA+IlF"}
|
|
@@ -5,10 +5,14 @@ export declare function handleJudgeCommand(ctx: SlashCommandContext): Promise<vo
|
|
|
5
5
|
export declare function startGoalWithDefaults(ctx: SlashCommandContext, objective: string, cancelMessage?: string): Promise<void>;
|
|
6
6
|
/**
|
|
7
7
|
* Replace the thread's goal with `objective` without sending the goal reminder,
|
|
8
|
-
* asking for judge defaults only if they are unset.
|
|
9
|
-
*
|
|
8
|
+
* asking for judge defaults only if they are unset. With
|
|
9
|
+
* `useSessionModelAsJudge`, a missing judge default falls back to the session's
|
|
10
|
+
* current model instead of prompting. Resolves to `null` when the user cancels
|
|
11
|
+
* the defaults prompt or the goal could not be set.
|
|
10
12
|
*/
|
|
11
|
-
export declare function setGoalWithDefaults(ctx: SlashCommandContext, objective: string, cancelMessage?: string
|
|
13
|
+
export declare function setGoalWithDefaults(ctx: SlashCommandContext, objective: string, cancelMessage?: string, options?: {
|
|
14
|
+
useSessionModelAsJudge?: boolean;
|
|
15
|
+
}): Promise<GoalState | null>;
|
|
12
16
|
/**
|
|
13
17
|
* Send the canonical goal reminder for `goal`. It is delivered into an active
|
|
14
18
|
* run; on an idle thread it starts the goal run, or with `persistIfIdle` it is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"goal.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/goal.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAOpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA4G/F;AAiFD,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiBhF;AAOD,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,mBAAmB,EACxB,SAAS,EAAE,MAAM,EACjB,aAAa,SAAoB,GAChC,OAAO,CAAC,IAAI,CAAC,CAGf;AAED
|
|
1
|
+
{"version":3,"file":"goal.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/goal.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAOpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtD,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA4G/F;AAiFD,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiBhF;AAOD,wBAAsB,qBAAqB,CACzC,GAAG,EAAE,mBAAmB,EACxB,SAAS,EAAE,MAAM,EACjB,aAAa,SAAoB,GAChC,OAAO,CAAC,IAAI,CAAC,CAGf;AAED;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,mBAAmB,EACxB,SAAS,EAAE,MAAM,EACjB,aAAa,SAAoB,EACjC,OAAO,GAAE;IAAE,sBAAsB,CAAC,EAAE,OAAO,CAAA;CAAO,GACjD,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAM3B;AA0ID;;;;GAIG;AACH,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,mBAAmB,EACxB,IAAI,EAAE,SAAS,EACf,OAAO,GAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAO,GACxC,OAAO,CAAC,IAAI,CAAC,CAqBf;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/settings.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAsKtD,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/tui/commands/settings.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAsKtD,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiJnF"}
|
|
@@ -16,7 +16,7 @@ export interface VoiceInputHook {
|
|
|
16
16
|
startRecording(): void;
|
|
17
17
|
stopRecording(): void | Promise<void>;
|
|
18
18
|
}
|
|
19
|
-
export type AppAction = 'clear' | 'exit' | 'suspend' | 'undo' | 'toggleThinking' | 'expandTools' | 'openBackgroundActivityCenter' | 'clearFinishedBackgroundActivities' | 'followUp' | 'queueFollowUp' | 'cycleMode' | 'toggleYolo';
|
|
19
|
+
export type AppAction = 'clear' | 'exit' | 'suspend' | 'undo' | 'toggleThinking' | 'expandTools' | 'openBackgroundActivityCenter' | 'clearFinishedBackgroundActivities' | 'followUp' | 'queueFollowUp' | 'cycleMode' | 'toggleYolo' | 'editInput';
|
|
20
20
|
export declare class CustomEditor extends Editor {
|
|
21
21
|
private actionHandlers;
|
|
22
22
|
onCtrlD?: () => void;
|
|
@@ -42,12 +42,74 @@ export declare class CustomEditor extends Editor {
|
|
|
42
42
|
private voicePrefix;
|
|
43
43
|
private voiceSuffix;
|
|
44
44
|
private voiceDictationActive;
|
|
45
|
+
private lastCursorRow;
|
|
46
|
+
private lastRenderedRowCount;
|
|
47
|
+
private lastAutocompleteStartRow;
|
|
48
|
+
/** Autocomplete list row under the mouse pointer, so hover follows the pointer when the list scrolls. */
|
|
49
|
+
private hoveredAutocompleteRow;
|
|
50
|
+
private inputLayout;
|
|
51
|
+
private readonly selection;
|
|
52
|
+
/** Screen row of the first visible text row, captured when a mouse-mode press starts a drag. */
|
|
53
|
+
private dragFirstScreenRow;
|
|
54
|
+
/** The last press, to recognise double and triple clicks. */
|
|
55
|
+
private lastPress;
|
|
56
|
+
/** After a double or triple click, the word or line it selected; dragging extends by whole words or lines. */
|
|
57
|
+
private selectionUnit;
|
|
45
58
|
private _cachedModeColorHex?;
|
|
46
59
|
private _cachedColorFn?;
|
|
47
60
|
private requestEditorRender;
|
|
48
61
|
constructor(tui: TUI, theme: EditorTheme);
|
|
49
62
|
onAction(action: AppAction, handler: () => unknown): void;
|
|
50
63
|
render(width: number): string[];
|
|
64
|
+
private visibleAutocompleteList;
|
|
65
|
+
/**
|
|
66
|
+
* Resolves the autocomplete row `rowsFromCursor` rows below the hardware
|
|
67
|
+
* cursor (negative = above). A click applies that suggestion exactly as Tab
|
|
68
|
+
* would; a hover only marks it. Returns true when something changed.
|
|
69
|
+
*/
|
|
70
|
+
pointAutocompleteRow(rowsFromCursor: number, action: 'click' | 'hover'): boolean;
|
|
71
|
+
clearAutocompleteHover(): boolean;
|
|
72
|
+
private captureLayout;
|
|
73
|
+
/**
|
|
74
|
+
* Text position under the given row of visible text (0 = first visible row)
|
|
75
|
+
* and 1-based screen column, or undefined outside the text. With `clamp`,
|
|
76
|
+
* rows above/below the text resolve to its start/end, as a drag needs.
|
|
77
|
+
* With `cell`, the position is the start of the character under the pointer
|
|
78
|
+
* rather than the nearest gap between characters.
|
|
79
|
+
*/
|
|
80
|
+
private positionAt;
|
|
81
|
+
private moveCursorTo;
|
|
82
|
+
/**
|
|
83
|
+
* Mouse mode: a left press at `screenRow`/`screenCol` (1-based) while the
|
|
84
|
+
* terminal reports the hardware cursor on `cursorRow`. On text it places the
|
|
85
|
+
* cursor there and starts a selection ('text'); elsewhere in the input box
|
|
86
|
+
* it does nothing ('box'); 'outside' means the press missed the input box.
|
|
87
|
+
*/
|
|
88
|
+
pointerPress(cursorRow: number, screenRow: number, screenCol: number): 'text' | 'box' | 'outside';
|
|
89
|
+
/**
|
|
90
|
+
* The word (a run of letters, of spaces, or one other character; a paste marker counts as one)
|
|
91
|
+
* or logical line containing the character at `position`.
|
|
92
|
+
*/
|
|
93
|
+
private unitRangeAt;
|
|
94
|
+
/** Mouse mode: drag after pointerPress; extends the selection to the pointer. */
|
|
95
|
+
pointerDrag(screenRow: number, screenCol: number): boolean;
|
|
96
|
+
/** Mouse mode: release after pointerPress. Returns the selected text (paste markers expanded), if any. */
|
|
97
|
+
pointerRelease(screenRow: number, screenCol: number): string | undefined;
|
|
98
|
+
clearInputSelection(): void;
|
|
99
|
+
/**
|
|
100
|
+
* Shift+arrow, Shift+Home/End and Shift+Alt/Ctrl+arrow: moves the cursor like the plain key and
|
|
101
|
+
* selects from where the selection started (or the cursor) to the new position. Returns false for other keys.
|
|
102
|
+
*/
|
|
103
|
+
private handleSelectKey;
|
|
104
|
+
private highlightSelection;
|
|
105
|
+
/** Removes the selected text as one undoable edit. */
|
|
106
|
+
private deleteSelection;
|
|
107
|
+
/**
|
|
108
|
+
* Keys while a mouse selection exists. Backspace/Delete remove it, text or a
|
|
109
|
+
* paste replaces it, and any other key clears it and keeps its usual effect. Returns true when the key
|
|
110
|
+
* is fully handled.
|
|
111
|
+
*/
|
|
112
|
+
private handleSelectionInput;
|
|
51
113
|
private maybeHandleBracketedPaste;
|
|
52
114
|
private shouldPasteClipboardImage;
|
|
53
115
|
private getClipboardImageForPastedRemoteImageUrl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-editor.d.ts","sourceRoot":"","sources":["../../../src/tui/components/custom-editor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,
|
|
1
|
+
{"version":3,"file":"custom-editor.d.ts","sourceRoot":"","sources":["../../../src/tui/components/custom-editor.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,EAAiB,MAAM,EAA4B,MAAM,wBAAwB,CAAC;AACzF,OAAO,KAAK,EAAE,WAAW,EAAc,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAE3E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAwCvE;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,SAAS,IAAI,OAAO,CAAC;IACrB,WAAW,IAAI,OAAO,CAAC;IACvB,cAAc,IAAI,IAAI,CAAC;IACvB,aAAa,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvC;AAiED,MAAM,MAAM,SAAS,GACjB,OAAO,GACP,MAAM,GACN,SAAS,GACT,MAAM,GACN,gBAAgB,GAChB,aAAa,GACb,8BAA8B,GAC9B,mCAAmC,GACnC,UAAU,GACV,eAAe,GACf,WAAW,GACX,YAAY,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AO,CAAC,gBAAgB;IAKxB,OAAO,CAAC,mBAAmB;IAmB3B;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAmBrC;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAStB;;;OAGG;IACH,OAAO,CAAC,eAAe;IAYvB;;;;OAIG;IACH,OAAO,CAAC,eAAe;IAiBvB;;;OAGG;IACI,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAI/C;IAED;;;;OAIG;IACI,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAKhD;IAED;;;;OAIG;IACH,OAAO,CAAC,cAAc;IAWtB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,eAAe;IAqEvB;;;;OAIG;IACI,iBAAiB,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAejD;IAED;;;;;;;;;OASG;IACH,OAAO,CAAC,qBAAqB;IA4C7B,OAAO,CAAC,oBAAoB;IAa5B,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAoK9B;CACF"}
|
|
@@ -30,6 +30,7 @@ export declare function githubPRId(pr: {
|
|
|
30
30
|
export declare class GithubPRPickerDialog extends Box implements Focusable {
|
|
31
31
|
private searchInput;
|
|
32
32
|
private listContainer;
|
|
33
|
+
private list;
|
|
33
34
|
private viewTabs;
|
|
34
35
|
private currentView;
|
|
35
36
|
private myPullRequests;
|
|
@@ -65,6 +66,7 @@ export declare class GithubPRPickerDialog extends Box implements Focusable {
|
|
|
65
66
|
private getSelectedPullRequests;
|
|
66
67
|
private confirmSelection;
|
|
67
68
|
private updateList;
|
|
69
|
+
private renderPullRequest;
|
|
68
70
|
handleInput(keyData: string): void;
|
|
69
71
|
}
|
|
70
72
|
//# sourceMappingURL=github-pr-picker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"github-pr-picker.d.ts","sourceRoot":"","sources":["../../../src/tui/components/github-pr-picker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,G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OAAO,CAAC,uBAAuB;IAU/B,OAAO,CAAC,gBAAgB;IAWxB,OAAO,CAAC,UAAU;IAgBlB,OAAO,CAAC,iBAAiB;IAiBzB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAyCjC;CACF"}
|
|
@@ -21,6 +21,7 @@ export interface LoginAccountManagerCallbacks {
|
|
|
21
21
|
}
|
|
22
22
|
export declare class LoginAccountManagerComponent extends Box {
|
|
23
23
|
private listContainer;
|
|
24
|
+
private list;
|
|
24
25
|
private mode;
|
|
25
26
|
private accounts;
|
|
26
27
|
private selectedIndex;
|
|
@@ -34,6 +35,7 @@ export declare class LoginAccountManagerComponent extends Box {
|
|
|
34
35
|
private rows;
|
|
35
36
|
private backToMenu;
|
|
36
37
|
private updateList;
|
|
38
|
+
private renderRow;
|
|
37
39
|
handleInput(keyData: string): void;
|
|
38
40
|
}
|
|
39
41
|
//# sourceMappingURL=login-account-manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-account-manager.d.ts","sourceRoot":"","sources":["../../../src/tui/components/login-account-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,GAAG,EAA2C,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"login-account-manager.d.ts","sourceRoot":"","sources":["../../../src/tui/components/login-account-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,GAAG,EAA2C,MAAM,wBAAwB,CAAC;AAItF,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,4BAA4B;IAC3C,YAAY,IAAI,IAAI,CAAC;IACrB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,MAAM,IAAI,IAAI,CAAC;CAChB;AAID,qBAAa,4BAA6B,SAAQ,GAAG;IACnD,OAAO,CAAC,aAAa,CAAY;IACjC,OAAO,CAAC,IAAI,CAAoD;IAChE,OAAO,CAAC,IAAI,CAAuB;IACnC,OAAO,CAAC,QAAQ,CAAmB;IACnC,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,SAAS,CAA+B;IAChD,OAAO,CAAC,eAAe,CAAC,CAAiB;IACzC,OAAO,CAAC,aAAa,CAAC,CAAiB;IACvC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAS;IAEtC,YAAY,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,SAAS,EAAE,4BAA4B,EA0BpG;IAED,gFAAgF;IAChF,WAAW,CAAC,QAAQ,EAAE,cAAc,EAAE,GAAG,IAAI,CAQ5C;IAED,OAAO,CAAC,IAAI;IAiDZ,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,UAAU;IAgBlB,OAAO,CAAC,SAAS;IAMjB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAmBjC;CACF"}
|
|
@@ -8,7 +8,7 @@ import { Box } from '@earendil-works/pi-tui';
|
|
|
8
8
|
import type { TUI } from '@earendil-works/pi-tui';
|
|
9
9
|
import type { AuthMode } from '@mastra/code-sdk/auth/types';
|
|
10
10
|
export declare class LoginModeSelectorComponent extends Box {
|
|
11
|
-
private
|
|
11
|
+
private list;
|
|
12
12
|
private modes;
|
|
13
13
|
private selectedIndex;
|
|
14
14
|
private onSelectCallback;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-mode-selector.d.ts","sourceRoot":"","sources":["../../../src/tui/components/login-mode-selector.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"login-mode-selector.d.ts","sourceRoot":"","sources":["../../../src/tui/components/login-mode-selector.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAgC,MAAM,wBAAwB,CAAC;AAC3E,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAK5D,qBAAa,0BAA2B,SAAQ,GAAG;IACjD,OAAO,CAAC,IAAI,CAAuB;IACnC,OAAO,CAAC,KAAK,CAA0B;IACvC,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,gBAAgB,CAA2B;IACnD,OAAO,CAAC,gBAAgB,CAAa;IAErC,YACE,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,aAAa,CAAC,QAAQ,CAAC,EAC9B,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,EAClC,QAAQ,EAAE,MAAM,IAAI,EAgCrB;IAED,OAAO,CAAC,UAAU;IAIlB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAiBjC;CACF;AAED;;;;GAIG;AACH,wBAAsB,cAAc,CAClC,GAAG,EAAE,GAAG,EACR,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,SAAS,GACzC,OAAO,CAAC,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC,CAqBpC"}
|
|
@@ -15,6 +15,7 @@ export interface AuthProviderSource {
|
|
|
15
15
|
}
|
|
16
16
|
export declare class LoginSelectorComponent extends Box {
|
|
17
17
|
private listContainer;
|
|
18
|
+
private list;
|
|
18
19
|
private allProviders;
|
|
19
20
|
private selectedIndex;
|
|
20
21
|
private mode;
|
|
@@ -24,6 +25,7 @@ export declare class LoginSelectorComponent extends Box {
|
|
|
24
25
|
constructor(mode: 'login' | 'logout', authSource: AuthProviderSource, onSelect: (providerId: string) => void, onCancel: () => void);
|
|
25
26
|
private loadProviders;
|
|
26
27
|
private updateList;
|
|
28
|
+
private renderProvider;
|
|
27
29
|
handleInput(keyData: string): void;
|
|
28
30
|
}
|
|
29
31
|
//# sourceMappingURL=login-selector.d.ts.map
|