mastracode 0.3.0 → 0.4.0
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 +132 -0
- package/README.md +60 -12
- package/dist/agents/instructions.d.ts.map +1 -1
- package/dist/agents/model.d.ts +4 -1
- package/dist/agents/model.d.ts.map +1 -1
- package/dist/auth/claude-max-warning.d.ts +9 -0
- package/dist/auth/claude-max-warning.d.ts.map +1 -0
- package/dist/{chunk-7TFV3VBB.cjs → chunk-C4X3C2DL.cjs} +1091 -607
- package/dist/chunk-C4X3C2DL.cjs.map +1 -0
- package/dist/{chunk-7K5VFY2N.cjs → chunk-K4WJUBEC.cjs} +151 -48
- package/dist/chunk-K4WJUBEC.cjs.map +1 -0
- package/dist/{chunk-HHX6BKLR.js → chunk-M5LKPQB4.js} +12 -11
- package/dist/chunk-M5LKPQB4.js.map +1 -0
- package/dist/{chunk-V4HZ2AVV.js → chunk-REVOTI2T.js} +143 -38
- package/dist/chunk-REVOTI2T.js.map +1 -0
- package/dist/{chunk-C6XKRHRK.cjs → chunk-S5ZLN7DR.cjs} +6 -2
- package/dist/chunk-S5ZLN7DR.cjs.map +1 -0
- package/dist/{chunk-VRZZSUQE.js → chunk-SM3QCOA7.js} +6 -3
- package/dist/chunk-SM3QCOA7.js.map +1 -0
- package/dist/{chunk-LYETHS2L.js → chunk-X3BGE7CL.js} +877 -394
- package/dist/chunk-X3BGE7CL.js.map +1 -0
- package/dist/{chunk-VZFPT5N7.cjs → chunk-Z4QRXVST.cjs} +62 -61
- package/dist/chunk-Z4QRXVST.cjs.map +1 -0
- package/dist/cli.cjs +20 -10
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +14 -4
- package/dist/cli.js.map +1 -1
- package/dist/docs/SKILL.md +30 -0
- package/dist/docs/assets/SOURCE_MAP.json +11 -0
- package/dist/docs/references/docs-mastra-code-configuration.md +299 -0
- package/dist/docs/references/docs-mastra-code-customization.md +228 -0
- package/dist/docs/references/docs-mastra-code-modes.md +104 -0
- package/dist/docs/references/docs-mastra-code-overview.md +135 -0
- package/dist/docs/references/docs-mastra-code-tools.md +229 -0
- package/dist/docs/references/reference-mastra-code-createMastraCode.md +108 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/onboarding/onboarding-inline.d.ts +5 -0
- package/dist/onboarding/onboarding-inline.d.ts.map +1 -1
- package/dist/onboarding/settings.d.ts +3 -0
- package/dist/onboarding/settings.d.ts.map +1 -1
- package/dist/providers/openai-codex.d.ts +5 -1
- package/dist/providers/openai-codex.d.ts.map +1 -1
- package/dist/schema.d.ts +7 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/storage-PO4VN5NF.cjs +24 -0
- package/dist/{storage-JFFX7LJJ.cjs.map → storage-PO4VN5NF.cjs.map} +1 -1
- package/dist/storage-PQOHJLBI.js +3 -0
- package/dist/{storage-52Y5MKTG.js.map → storage-PQOHJLBI.js.map} +1 -1
- package/dist/tui/claude-max-warning.d.ts +18 -0
- package/dist/tui/claude-max-warning.d.ts.map +1 -0
- package/dist/tui/command-dispatch.d.ts.map +1 -1
- package/dist/tui/commands/index.d.ts +1 -0
- package/dist/tui/commands/index.d.ts.map +1 -1
- package/dist/tui/commands/login.d.ts.map +1 -1
- package/dist/tui/commands/models-pack.d.ts.map +1 -1
- package/dist/tui/commands/settings.d.ts.map +1 -1
- package/dist/tui/commands/skills.d.ts.map +1 -1
- package/dist/tui/commands/theme.d.ts +6 -0
- package/dist/tui/commands/theme.d.ts.map +1 -0
- package/dist/tui/commands/think.d.ts +1 -1
- package/dist/tui/commands/think.d.ts.map +1 -1
- package/dist/tui/components/banner.d.ts.map +1 -1
- package/dist/tui/components/diff-output.d.ts.map +1 -1
- package/dist/tui/components/help-overlay.d.ts.map +1 -1
- package/dist/tui/components/obi-loader.d.ts.map +1 -1
- package/dist/tui/components/settings.d.ts +1 -0
- package/dist/tui/components/settings.d.ts.map +1 -1
- package/dist/tui/components/shell-output.d.ts.map +1 -1
- package/dist/tui/components/task-progress.d.ts.map +1 -1
- package/dist/tui/components/thinking-settings.d.ts +11 -22
- package/dist/tui/components/thinking-settings.d.ts.map +1 -1
- package/dist/tui/components/tool-execution-enhanced.d.ts.map +1 -1
- package/dist/tui/detect-theme.d.ts +17 -0
- package/dist/tui/detect-theme.d.ts.map +1 -0
- package/dist/tui/event-dispatch.d.ts.map +1 -1
- package/dist/tui/handlers/agent-lifecycle.d.ts.map +1 -1
- package/dist/tui/index.d.ts +2 -2
- package/dist/tui/index.d.ts.map +1 -1
- package/dist/tui/mastra-tui.d.ts +8 -0
- package/dist/tui/mastra-tui.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/status-line.d.ts.map +1 -1
- package/dist/tui/theme.d.ts +33 -20
- package/dist/tui/theme.d.ts.map +1 -1
- package/dist/tui.cjs +27 -19
- package/dist/tui.js +2 -2
- package/dist/utils/project.d.ts +5 -0
- package/dist/utils/project.d.ts.map +1 -1
- package/dist/utils/slash-command-processor.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/chunk-7K5VFY2N.cjs.map +0 -1
- package/dist/chunk-7TFV3VBB.cjs.map +0 -1
- package/dist/chunk-C6XKRHRK.cjs.map +0 -1
- package/dist/chunk-HHX6BKLR.js.map +0 -1
- package/dist/chunk-LYETHS2L.js.map +0 -1
- package/dist/chunk-V4HZ2AVV.js.map +0 -1
- package/dist/chunk-VRZZSUQE.js.map +0 -1
- package/dist/chunk-VZFPT5N7.cjs.map +0 -1
- package/dist/storage-52Y5MKTG.js +0 -3
- package/dist/storage-JFFX7LJJ.cjs +0 -24
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,137 @@
|
|
|
1
1
|
# mastracode
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Added light theme support and automatic terminal theme detection. Mastra Code now detects your terminal's color scheme and applies a matching dark or light theme. Use the new `/theme` slash command to switch between `auto`, `dark`, and `light` modes. The choice is persisted across sessions. You can also set the `MASTRA_THEME` environment variable to override the detected theme. ([#13487](https://github.com/mastra-ai/mastra/pull/13487))
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
# Switch theme at runtime via slash command
|
|
11
|
+
/theme auto # detect from terminal background
|
|
12
|
+
/theme dark # force dark theme
|
|
13
|
+
/theme light # force light theme
|
|
14
|
+
|
|
15
|
+
# Or override via environment variable
|
|
16
|
+
MASTRA_THEME=light mastracode
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
- Added reasoning effort support for OpenAI Codex models. The `/think` command now controls the reasoning depth (off, low, medium, high, xhigh) sent to the Codex API via the `reasoningEffort` parameter. Without this, gpt-5.3-codex skips tool calls and narrates instead of acting. ([#13490](https://github.com/mastra-ai/mastra/pull/13490))
|
|
20
|
+
|
|
21
|
+
**Other improvements:**
|
|
22
|
+
- `/think` now shows an inline selector list when run without arguments, or accepts a level directly (e.g. `/think high`)
|
|
23
|
+
- Dropped `minimal` level (was redundantly mapping to same API value as `low`)
|
|
24
|
+
- Added `xhigh` level for GPT-5.2+ and Codex models
|
|
25
|
+
- Provider-specific values (e.g. `none`, `xhigh`) shown next to labels when an OpenAI model is selected
|
|
26
|
+
- Switching to an OpenAI model pack auto-enables reasoning at `low` if it was off
|
|
27
|
+
- Updated default Codex model from gpt-5.2 to gpt-5.3
|
|
28
|
+
- Shows a warning when the current model doesn't support reasoning
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- Added Claude Max OAuth warning for Anthropic authentication ([#13505](https://github.com/mastra-ai/mastra/pull/13505))
|
|
33
|
+
|
|
34
|
+
A warning now appears when authenticating with Anthropic via OAuth, alerting that using a Claude Max subscription through OAuth is a grey area that may violate Anthropic's Terms of Service.
|
|
35
|
+
- During `/login` or onboarding: **Continue** proceeds with OAuth, **Cancel** returns to the provider selection screen.
|
|
36
|
+
- At startup (when existing Anthropic OAuth credentials are detected and the warning has not been acknowledged): **Continue** keeps credentials, **Remove OAuth** logs out from Anthropic.
|
|
37
|
+
- The startup warning only appears once — acknowledging it persists the choice in settings.
|
|
38
|
+
|
|
39
|
+
- Fixed `/skills` so it lists skills even before the first message is sent. ([#13457](https://github.com/mastra-ai/mastra/pull/13457))
|
|
40
|
+
|
|
41
|
+
- Fixed `@` file autocomplete so fuzzy file search works when `fd` or `fdfind` is installed. ([#13460](https://github.com/mastra-ai/mastra/pull/13460))
|
|
42
|
+
|
|
43
|
+
- Fixed onboarding to allow API-key-only setup without requiring OAuth login. Previously, users with API keys configured as environment variables were blocked at the model pack selection step if they skipped OAuth login during onboarding. The auth step now clearly indicates that OAuth is optional when API keys are set. ([#13500](https://github.com/mastra-ai/mastra/pull/13500))
|
|
44
|
+
|
|
45
|
+
- Updated default observational memory settings: bufferTokens 1/5, bufferActivation 2000, blockAfter 2. ([#13476](https://github.com/mastra-ai/mastra/pull/13476))
|
|
46
|
+
|
|
47
|
+
- Fixed a fatal crash on startup that caused the TUI to fail immediately on launch. ([#13503](https://github.com/mastra-ai/mastra/pull/13503))
|
|
48
|
+
|
|
49
|
+
- Fixed stale git branch in system prompt and TUI status bar. The branch is now refreshed on every agent request and when switching threads, so both the system prompt and status bar reflect the current branch. Also improved the status line to show abbreviated branch names instead of hiding the branch entirely when the name is too long. ([#13456](https://github.com/mastra-ai/mastra/pull/13456))
|
|
50
|
+
|
|
51
|
+
- Fixed Mastra Code TUI hook triggering so `Stop` runs on every `agent_end` reason (`complete`, `aborted`, `error`) and `UserPromptSubmit` runs before sending non-command user prompts with block handling. ([#13442](https://github.com/mastra-ai/mastra/pull/13442))
|
|
52
|
+
|
|
53
|
+
- Updated thinking-level labels in Mastra Code UI to be provider-aware for OpenAI models. ([#13490](https://github.com/mastra-ai/mastra/pull/13490))
|
|
54
|
+
- `/think` and Settings now use shared label metadata
|
|
55
|
+
- OpenAI models show provider-specific labels (for example, `Very High (xhigh)`)
|
|
56
|
+
- Stored `thinkingLevel` values remain unchanged (`off`, `low`, `medium`, `high`, `xhigh`)
|
|
57
|
+
|
|
58
|
+
- Strengthened the Anthropic Claude Max OAuth warning language to explicitly call out account-ban risk and potential Terms of Service violations before users continue with OAuth. ([#13508](https://github.com/mastra-ai/mastra/pull/13508))
|
|
59
|
+
|
|
60
|
+
- Fixed slash command arguments being silently discarded when the command template doesn't use $ARGUMENTS or positional variables ($1, $2, etc.). Arguments are now appended to the output so the model can see what the user provided. ([#13493](https://github.com/mastra-ai/mastra/pull/13493))
|
|
61
|
+
|
|
62
|
+
- Updated dependencies [[`df170fd`](https://github.com/mastra-ai/mastra/commit/df170fd139b55f845bfd2de8488b16435bd3d0da), [`ae55343`](https://github.com/mastra-ai/mastra/commit/ae5534397fc006fd6eef3e4f80c235bcdc9289ef), [`b8621e2`](https://github.com/mastra-ai/mastra/commit/b8621e25e70cae69a9343353f878a9112493a2fe), [`c290cec`](https://github.com/mastra-ai/mastra/commit/c290cec5bf9107225de42942b56b487107aa9dce), [`c290cec`](https://github.com/mastra-ai/mastra/commit/c290cec5bf9107225de42942b56b487107aa9dce), [`f03e794`](https://github.com/mastra-ai/mastra/commit/f03e794630f812b56e95aad54f7b1993dc003add), [`aa4a5ae`](https://github.com/mastra-ai/mastra/commit/aa4a5aedb80d8d6837bab8cbb2e301215d1ba3e9), [`de3f584`](https://github.com/mastra-ai/mastra/commit/de3f58408752a8d80a295275c7f23fc306cf7f4f), [`74ae019`](https://github.com/mastra-ai/mastra/commit/74ae0197a6895f8897c369038c643d7e32dd84c2), [`d3fb010`](https://github.com/mastra-ai/mastra/commit/d3fb010c98f575f1c0614452667396e2653815f6), [`702ee1c`](https://github.com/mastra-ai/mastra/commit/702ee1c41be67cc532b4dbe89bcb62143508f6f0), [`f495051`](https://github.com/mastra-ai/mastra/commit/f495051eb6496a720f637fc85b6d69941c12554c), [`60b45e0`](https://github.com/mastra-ai/mastra/commit/60b45e0af29485c69f70f77b15d6643aaa5a9da7), [`e622f1d`](https://github.com/mastra-ai/mastra/commit/e622f1d3ab346a8e6aca6d1fe2eac99bd961e50b), [`861f111`](https://github.com/mastra-ai/mastra/commit/861f11189211b20ddb70d8df81a6b901fc78d11e), [`00f43e8`](https://github.com/mastra-ai/mastra/commit/00f43e8e97a80c82b27d5bd30494f10a715a1df9), [`1b6f651`](https://github.com/mastra-ai/mastra/commit/1b6f65127d4a0d6c38d0a1055cb84527db529d6b), [`96a1702`](https://github.com/mastra-ai/mastra/commit/96a1702ce362c50dda20c8b4a228b4ad1a36a17a), [`cb9f921`](https://github.com/mastra-ai/mastra/commit/cb9f921320913975657abb1404855d8c510f7ac5), [`114e7c1`](https://github.com/mastra-ai/mastra/commit/114e7c146ac682925f0fb37376c1be70e5d6e6e5), [`cb9f921`](https://github.com/mastra-ai/mastra/commit/cb9f921320913975657abb1404855d8c510f7ac5), [`1b6f651`](https://github.com/mastra-ai/mastra/commit/1b6f65127d4a0d6c38d0a1055cb84527db529d6b), [`c290cec`](https://github.com/mastra-ai/mastra/commit/c290cec5bf9107225de42942b56b487107aa9dce), [`72df4a8`](https://github.com/mastra-ai/mastra/commit/72df4a8f9bf1a20cfd3d9006a4fdb597ad56d10a)]:
|
|
63
|
+
- @mastra/core@1.8.0
|
|
64
|
+
- @mastra/mcp@1.0.2
|
|
65
|
+
- @mastra/pg@1.7.0
|
|
66
|
+
- @mastra/libsql@1.6.2
|
|
67
|
+
- @mastra/memory@1.5.2
|
|
68
|
+
|
|
69
|
+
## 0.4.0-alpha.0
|
|
70
|
+
|
|
71
|
+
### Minor Changes
|
|
72
|
+
|
|
73
|
+
- Added light theme support and automatic terminal theme detection. Mastra Code now detects your terminal's color scheme and applies a matching dark or light theme. Use the new `/theme` slash command to switch between `auto`, `dark`, and `light` modes. The choice is persisted across sessions. You can also set the `MASTRA_THEME` environment variable to override the detected theme. ([#13487](https://github.com/mastra-ai/mastra/pull/13487))
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
# Switch theme at runtime via slash command
|
|
77
|
+
/theme auto # detect from terminal background
|
|
78
|
+
/theme dark # force dark theme
|
|
79
|
+
/theme light # force light theme
|
|
80
|
+
|
|
81
|
+
# Or override via environment variable
|
|
82
|
+
MASTRA_THEME=light mastracode
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
- Added reasoning effort support for OpenAI Codex models. The `/think` command now controls the reasoning depth (off, low, medium, high, xhigh) sent to the Codex API via the `reasoningEffort` parameter. Without this, gpt-5.3-codex skips tool calls and narrates instead of acting. ([#13490](https://github.com/mastra-ai/mastra/pull/13490))
|
|
86
|
+
|
|
87
|
+
**Other improvements:**
|
|
88
|
+
- `/think` now shows an inline selector list when run without arguments, or accepts a level directly (e.g. `/think high`)
|
|
89
|
+
- Dropped `minimal` level (was redundantly mapping to same API value as `low`)
|
|
90
|
+
- Added `xhigh` level for GPT-5.2+ and Codex models
|
|
91
|
+
- Provider-specific values (e.g. `none`, `xhigh`) shown next to labels when an OpenAI model is selected
|
|
92
|
+
- Switching to an OpenAI model pack auto-enables reasoning at `low` if it was off
|
|
93
|
+
- Updated default Codex model from gpt-5.2 to gpt-5.3
|
|
94
|
+
- Shows a warning when the current model doesn't support reasoning
|
|
95
|
+
|
|
96
|
+
### Patch Changes
|
|
97
|
+
|
|
98
|
+
- Added Claude Max OAuth warning for Anthropic authentication ([#13505](https://github.com/mastra-ai/mastra/pull/13505))
|
|
99
|
+
|
|
100
|
+
A warning now appears when authenticating with Anthropic via OAuth, alerting that using a Claude Max subscription through OAuth is a grey area that may violate Anthropic's Terms of Service.
|
|
101
|
+
- During `/login` or onboarding: **Continue** proceeds with OAuth, **Cancel** returns to the provider selection screen.
|
|
102
|
+
- At startup (when existing Anthropic OAuth credentials are detected and the warning has not been acknowledged): **Continue** keeps credentials, **Remove OAuth** logs out from Anthropic.
|
|
103
|
+
- The startup warning only appears once — acknowledging it persists the choice in settings.
|
|
104
|
+
|
|
105
|
+
- Fixed `/skills` so it lists skills even before the first message is sent. ([#13457](https://github.com/mastra-ai/mastra/pull/13457))
|
|
106
|
+
|
|
107
|
+
- Fixed `@` file autocomplete so fuzzy file search works when `fd` or `fdfind` is installed. ([#13460](https://github.com/mastra-ai/mastra/pull/13460))
|
|
108
|
+
|
|
109
|
+
- Fixed onboarding to allow API-key-only setup without requiring OAuth login. Previously, users with API keys configured as environment variables were blocked at the model pack selection step if they skipped OAuth login during onboarding. The auth step now clearly indicates that OAuth is optional when API keys are set. ([#13500](https://github.com/mastra-ai/mastra/pull/13500))
|
|
110
|
+
|
|
111
|
+
- Updated default observational memory settings: bufferTokens 1/5, bufferActivation 2000, blockAfter 2. ([#13476](https://github.com/mastra-ai/mastra/pull/13476))
|
|
112
|
+
|
|
113
|
+
- Fixed a fatal crash on startup that caused the TUI to fail immediately on launch. ([#13503](https://github.com/mastra-ai/mastra/pull/13503))
|
|
114
|
+
|
|
115
|
+
- Fixed stale git branch in system prompt and TUI status bar. The branch is now refreshed on every agent request and when switching threads, so both the system prompt and status bar reflect the current branch. Also improved the status line to show abbreviated branch names instead of hiding the branch entirely when the name is too long. ([#13456](https://github.com/mastra-ai/mastra/pull/13456))
|
|
116
|
+
|
|
117
|
+
- Fixed Mastra Code TUI hook triggering so `Stop` runs on every `agent_end` reason (`complete`, `aborted`, `error`) and `UserPromptSubmit` runs before sending non-command user prompts with block handling. ([#13442](https://github.com/mastra-ai/mastra/pull/13442))
|
|
118
|
+
|
|
119
|
+
- Updated thinking-level labels in Mastra Code UI to be provider-aware for OpenAI models. ([#13490](https://github.com/mastra-ai/mastra/pull/13490))
|
|
120
|
+
- `/think` and Settings now use shared label metadata
|
|
121
|
+
- OpenAI models show provider-specific labels (for example, `Very High (xhigh)`)
|
|
122
|
+
- Stored `thinkingLevel` values remain unchanged (`off`, `low`, `medium`, `high`, `xhigh`)
|
|
123
|
+
|
|
124
|
+
- Strengthened the Anthropic Claude Max OAuth warning language to explicitly call out account-ban risk and potential Terms of Service violations before users continue with OAuth. ([#13508](https://github.com/mastra-ai/mastra/pull/13508))
|
|
125
|
+
|
|
126
|
+
- Fixed slash command arguments being silently discarded when the command template doesn't use $ARGUMENTS or positional variables ($1, $2, etc.). Arguments are now appended to the output so the model can see what the user provided. ([#13493](https://github.com/mastra-ai/mastra/pull/13493))
|
|
127
|
+
|
|
128
|
+
- Updated dependencies [[`df170fd`](https://github.com/mastra-ai/mastra/commit/df170fd139b55f845bfd2de8488b16435bd3d0da), [`ae55343`](https://github.com/mastra-ai/mastra/commit/ae5534397fc006fd6eef3e4f80c235bcdc9289ef), [`b8621e2`](https://github.com/mastra-ai/mastra/commit/b8621e25e70cae69a9343353f878a9112493a2fe), [`c290cec`](https://github.com/mastra-ai/mastra/commit/c290cec5bf9107225de42942b56b487107aa9dce), [`c290cec`](https://github.com/mastra-ai/mastra/commit/c290cec5bf9107225de42942b56b487107aa9dce), [`f03e794`](https://github.com/mastra-ai/mastra/commit/f03e794630f812b56e95aad54f7b1993dc003add), [`aa4a5ae`](https://github.com/mastra-ai/mastra/commit/aa4a5aedb80d8d6837bab8cbb2e301215d1ba3e9), [`de3f584`](https://github.com/mastra-ai/mastra/commit/de3f58408752a8d80a295275c7f23fc306cf7f4f), [`74ae019`](https://github.com/mastra-ai/mastra/commit/74ae0197a6895f8897c369038c643d7e32dd84c2), [`d3fb010`](https://github.com/mastra-ai/mastra/commit/d3fb010c98f575f1c0614452667396e2653815f6), [`702ee1c`](https://github.com/mastra-ai/mastra/commit/702ee1c41be67cc532b4dbe89bcb62143508f6f0), [`f495051`](https://github.com/mastra-ai/mastra/commit/f495051eb6496a720f637fc85b6d69941c12554c), [`60b45e0`](https://github.com/mastra-ai/mastra/commit/60b45e0af29485c69f70f77b15d6643aaa5a9da7), [`e622f1d`](https://github.com/mastra-ai/mastra/commit/e622f1d3ab346a8e6aca6d1fe2eac99bd961e50b), [`861f111`](https://github.com/mastra-ai/mastra/commit/861f11189211b20ddb70d8df81a6b901fc78d11e), [`00f43e8`](https://github.com/mastra-ai/mastra/commit/00f43e8e97a80c82b27d5bd30494f10a715a1df9), [`1b6f651`](https://github.com/mastra-ai/mastra/commit/1b6f65127d4a0d6c38d0a1055cb84527db529d6b), [`96a1702`](https://github.com/mastra-ai/mastra/commit/96a1702ce362c50dda20c8b4a228b4ad1a36a17a), [`cb9f921`](https://github.com/mastra-ai/mastra/commit/cb9f921320913975657abb1404855d8c510f7ac5), [`114e7c1`](https://github.com/mastra-ai/mastra/commit/114e7c146ac682925f0fb37376c1be70e5d6e6e5), [`cb9f921`](https://github.com/mastra-ai/mastra/commit/cb9f921320913975657abb1404855d8c510f7ac5), [`1b6f651`](https://github.com/mastra-ai/mastra/commit/1b6f65127d4a0d6c38d0a1055cb84527db529d6b), [`c290cec`](https://github.com/mastra-ai/mastra/commit/c290cec5bf9107225de42942b56b487107aa9dce), [`72df4a8`](https://github.com/mastra-ai/mastra/commit/72df4a8f9bf1a20cfd3d9006a4fdb597ad56d10a)]:
|
|
129
|
+
- @mastra/core@1.8.0-alpha.0
|
|
130
|
+
- @mastra/mcp@1.0.2-alpha.0
|
|
131
|
+
- @mastra/pg@1.7.0-alpha.0
|
|
132
|
+
- @mastra/libsql@1.6.2-alpha.0
|
|
133
|
+
- @mastra/memory@1.5.2-alpha.0
|
|
134
|
+
|
|
3
135
|
## 0.3.0
|
|
4
136
|
|
|
5
137
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -34,25 +34,73 @@ On first launch, an interactive onboarding wizard guides you through:
|
|
|
34
34
|
|
|
35
35
|
You can re-run setup anytime with `/setup`.
|
|
36
36
|
|
|
37
|
+
## Prerequisites
|
|
38
|
+
|
|
39
|
+
### Optional: `fd` for file autocomplete
|
|
40
|
+
|
|
41
|
+
The `@` file autocomplete feature uses [`fd`](https://github.com/sharkdp/fd), a fast file finder that respects `.gitignore`. Without it, `@` autocomplete silently does nothing.
|
|
42
|
+
|
|
43
|
+
Install with your package manager:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# macOS
|
|
47
|
+
brew install fd
|
|
48
|
+
|
|
49
|
+
# Ubuntu/Debian
|
|
50
|
+
sudo apt install fd-find
|
|
51
|
+
|
|
52
|
+
# Arch
|
|
53
|
+
sudo pacman -S fd
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
On Ubuntu/Debian the binary is called `fdfind` — mastracode detects both `fd` and `fdfind` automatically.
|
|
57
|
+
|
|
37
58
|
## Usage
|
|
38
59
|
|
|
39
60
|
### Starting a conversation
|
|
40
61
|
|
|
41
|
-
|
|
62
|
+
Type your message and press Enter. The agent responds with streaming text.
|
|
63
|
+
|
|
64
|
+
### `@` file references
|
|
65
|
+
|
|
66
|
+
Type `@` followed by a partial filename to fuzzy-search project files and reference them in your message. This requires `fd` to be installed (see [Prerequisites](#prerequisites)).
|
|
67
|
+
|
|
68
|
+
- `@setup` — fuzzy-matches files like `setup.ts`, `setup.py`, etc.
|
|
69
|
+
- `@src/tui` — scoped search within a directory
|
|
70
|
+
- `@"path with spaces"` — quoted form for paths containing spaces
|
|
71
|
+
|
|
72
|
+
Select a suggestion with arrow keys and press Tab to insert it.
|
|
42
73
|
|
|
43
74
|
### Slash commands
|
|
44
75
|
|
|
45
|
-
| Command
|
|
46
|
-
|
|
|
47
|
-
| `/new`
|
|
48
|
-
| `/threads`
|
|
49
|
-
| `/models`
|
|
50
|
-
| `/
|
|
51
|
-
| `/
|
|
52
|
-
| `/
|
|
53
|
-
| `/
|
|
54
|
-
| `/
|
|
55
|
-
| `/
|
|
76
|
+
| Command | Description |
|
|
77
|
+
| ----------------- | -------------------------------------------- |
|
|
78
|
+
| `/new` | Start a new conversation thread |
|
|
79
|
+
| `/threads` | List and switch between threads |
|
|
80
|
+
| `/models` | Configure model (global/thread/mode) |
|
|
81
|
+
| `/models:pack` | Switch model pack |
|
|
82
|
+
| `/mode` | Switch agent mode |
|
|
83
|
+
| `/subagents` | Configure subagent model defaults |
|
|
84
|
+
| `/om` | Configure Observational Memory models |
|
|
85
|
+
| `/think` | Set thinking level (Anthropic) |
|
|
86
|
+
| `/skills` | List available skills |
|
|
87
|
+
| `/diff` | Show modified files or git diff |
|
|
88
|
+
| `/name` | Rename current thread |
|
|
89
|
+
| `/cost` | Show token usage and estimated costs |
|
|
90
|
+
| `/review` | Review a GitHub pull request |
|
|
91
|
+
| `/hooks` | Show/reload configured hooks |
|
|
92
|
+
| `/mcp` | Show/reload MCP server connections |
|
|
93
|
+
| `/sandbox` | Manage allowed paths (add/remove dirs) |
|
|
94
|
+
| `/permissions` | View/manage tool approval permissions |
|
|
95
|
+
| `/settings` | General settings (notifications, YOLO, etc.) |
|
|
96
|
+
| `/yolo` | Toggle YOLO mode (auto-approve all tools) |
|
|
97
|
+
| `/resource` | Show/switch resource ID (tag for sharing) |
|
|
98
|
+
| `/thread:tag-dir` | Tag current thread with this directory |
|
|
99
|
+
| `/login` | Authenticate with OAuth providers |
|
|
100
|
+
| `/logout` | Log out from a provider |
|
|
101
|
+
| `/setup` | Re-run the interactive setup wizard |
|
|
102
|
+
| `/help` | Show available commands |
|
|
103
|
+
| `/exit` | Exit the TUI |
|
|
56
104
|
|
|
57
105
|
### Keyboard shortcuts
|
|
58
106
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../../src/agents/instructions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../../src/agents/instructions.ts"],"names":[],"mappings":"AAMA,wBAAgB,sBAAsB,CAAC,EAAE,cAAc,EAAE,EAAE;IAAE,cAAc,EAAE;QAAE,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;CAAE,UAsB3G"}
|
package/dist/agents/model.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { LanguageModelV1 } from '@ai-sdk/provider';
|
|
2
2
|
import type { MastraLanguageModel } from '@mastra/core/agent';
|
|
3
3
|
import type { RequestContext } from '@mastra/core/request-context';
|
|
4
|
+
import type { ThinkingLevel } from '../providers/openai-codex.js';
|
|
4
5
|
/**
|
|
5
6
|
* Resolve a model ID to the correct provider instance.
|
|
6
7
|
* Shared by the main agent, observer, and reflector.
|
|
@@ -10,7 +11,9 @@ import type { RequestContext } from '@mastra/core/request-context';
|
|
|
10
11
|
* - For moonshotai/* models: Uses Moonshot AI Anthropic-compatible endpoint
|
|
11
12
|
* - For all other providers: Uses Mastra's model router (models.dev gateway)
|
|
12
13
|
*/
|
|
13
|
-
export declare function resolveModel(modelId: string
|
|
14
|
+
export declare function resolveModel(modelId: string, options?: {
|
|
15
|
+
thinkingLevel?: ThinkingLevel;
|
|
16
|
+
}): LanguageModelV1 | MastraLanguageModel;
|
|
14
17
|
/**
|
|
15
18
|
* Dynamic model function that reads the current model from harness state.
|
|
16
19
|
* This allows runtime model switching via the /models picker.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/agents/model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAG9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/agents/model.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAG9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAInE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAKlE;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE;IAAE,aAAa,CAAC,EAAE,aAAa,CAAA;CAAE,GAC1C,eAAe,GAAG,mBAAmB,CAwBvC;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAC9B,cAAc,GACf,EAAE;IACD,cAAc,EAAE,cAAc,CAAC;CAChC,GAAG,eAAe,GAAG,mBAAmB,CAWxC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Claude Max OAuth warning constants.
|
|
3
|
+
*
|
|
4
|
+
* Shared between the TUI startup check, the /login command, and onboarding so
|
|
5
|
+
* the provider ID and user-facing message stay in sync.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ANTHROPIC_OAUTH_PROVIDER_ID = "anthropic";
|
|
8
|
+
export declare const CLAUDE_MAX_OAUTH_WARNING_MESSAGE = "OAuth with a Claude Max plan is a grey area. Anthropic has reportedly banned users for using Claude max credentials outside of Claude Code, and it may violate Anthropic Terms of Service. Proceed at your own risk.";
|
|
9
|
+
//# sourceMappingURL=claude-max-warning.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-max-warning.d.ts","sourceRoot":"","sources":["../../src/auth/claude-max-warning.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,2BAA2B,cAAc,CAAC;AAEvD,eAAO,MAAM,gCAAgC,yNAC2K,CAAC"}
|