mastracode 0.20.0-alpha.8 → 0.20.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.
Files changed (60) hide show
  1. package/CHANGELOG.md +117 -0
  2. package/dist/{chunk-PTEMRGV5.js → chunk-47OHSMYD.js} +1136 -507
  3. package/dist/chunk-47OHSMYD.js.map +1 -0
  4. package/dist/{chunk-BX3BAWTX.cjs → chunk-5Y65J65P.cjs} +38 -38
  5. package/dist/{chunk-BX3BAWTX.cjs.map → chunk-5Y65J65P.cjs.map} +1 -1
  6. package/dist/{chunk-BAMGMQK2.js → chunk-MIZLLGL7.js} +3 -3
  7. package/dist/{chunk-BAMGMQK2.js.map → chunk-MIZLLGL7.js.map} +1 -1
  8. package/dist/{chunk-7VEHWBDA.js → chunk-N52MOFO3.js} +10 -3
  9. package/dist/chunk-N52MOFO3.js.map +1 -0
  10. package/dist/{chunk-OXPA6TJA.cjs → chunk-NRSX4XNE.cjs} +2007 -1378
  11. package/dist/chunk-NRSX4XNE.cjs.map +1 -0
  12. package/dist/{chunk-B4OZBWQJ.cjs → chunk-UPOCX7P4.cjs} +10 -2
  13. package/dist/chunk-UPOCX7P4.cjs.map +1 -0
  14. package/dist/cli.cjs +18 -18
  15. package/dist/cli.js +3 -3
  16. package/dist/index.cjs +3 -3
  17. package/dist/index.js +1 -1
  18. package/dist/tui/commands/goal.d.ts.map +1 -1
  19. package/dist/tui/commands/mode.d.ts.map +1 -1
  20. package/dist/tui/commands/settings.d.ts.map +1 -1
  21. package/dist/tui/components/ansi.d.ts.map +1 -1
  22. package/dist/tui/components/api-key-dialog.d.ts.map +1 -1
  23. package/dist/tui/components/ask-question-dialog.d.ts.map +1 -1
  24. package/dist/tui/components/chat-spacing.d.ts +1 -1
  25. package/dist/tui/components/chat-spacing.d.ts.map +1 -1
  26. package/dist/tui/components/goal-cycles-dialog.d.ts.map +1 -1
  27. package/dist/tui/components/idle-counter.d.ts.map +1 -1
  28. package/dist/tui/components/login-dialog.d.ts.map +1 -1
  29. package/dist/tui/components/login-mode-selector.d.ts.map +1 -1
  30. package/dist/tui/components/login-selector.d.ts.map +1 -1
  31. package/dist/tui/components/mcp-selector.d.ts.map +1 -1
  32. package/dist/tui/components/model-selector.d.ts.map +1 -1
  33. package/dist/tui/components/plan-approval-inline.d.ts +2 -1
  34. package/dist/tui/components/plan-approval-inline.d.ts.map +1 -1
  35. package/dist/tui/components/subagent-execution.d.ts +5 -0
  36. package/dist/tui/components/subagent-execution.d.ts.map +1 -1
  37. package/dist/tui/components/task-progress.d.ts.map +1 -1
  38. package/dist/tui/components/thread-selector.d.ts.map +1 -1
  39. package/dist/tui/components/tool-approval-dialog.d.ts.map +1 -1
  40. package/dist/tui/components/tool-execution-enhanced.d.ts +34 -1
  41. package/dist/tui/components/tool-execution-enhanced.d.ts.map +1 -1
  42. package/dist/tui/components/tool-execution-interface.d.ts +1 -0
  43. package/dist/tui/components/tool-execution-interface.d.ts.map +1 -1
  44. package/dist/tui/goal-manager.d.ts +3 -0
  45. package/dist/tui/goal-manager.d.ts.map +1 -1
  46. package/dist/tui/handlers/message.d.ts.map +1 -1
  47. package/dist/tui/handlers/prompts.d.ts.map +1 -1
  48. package/dist/tui/handlers/subagent.d.ts.map +1 -1
  49. package/dist/tui/handlers/tool.d.ts.map +1 -1
  50. package/dist/tui/mastra-tui.d.ts.map +1 -1
  51. package/dist/tui/render-messages.d.ts.map +1 -1
  52. package/dist/tui/theme.d.ts +10 -0
  53. package/dist/tui/theme.d.ts.map +1 -1
  54. package/dist/tui.cjs +19 -19
  55. package/dist/tui.js +2 -2
  56. package/package.json +14 -14
  57. package/dist/chunk-7VEHWBDA.js.map +0 -1
  58. package/dist/chunk-B4OZBWQJ.cjs.map +0 -1
  59. package/dist/chunk-OXPA6TJA.cjs.map +0 -1
  60. package/dist/chunk-PTEMRGV5.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,122 @@
1
1
  # mastracode
2
2
 
3
+ ## 0.20.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Added automatic return to Plan mode when a goal started from an approved plan finishes. ([#16676](https://github.com/mastra-ai/mastra/pull/16676))
8
+
9
+ - Added the `/skill/<name>` command to explicitly activate an installed workspace skill in the current conversation. This complements automatic skill activation. ([#16618](https://github.com/mastra-ai/mastra/pull/16618))
10
+
11
+ ```text
12
+ /skill/github-triage
13
+ /skill/release-check focus tests
14
+ ```
15
+
16
+ The command loads the skill's instructions (plus any `references/`, `scripts/`, and `assets/` paths the skill ships) and sends them to the agent. Use `/skills` to list available skills.
17
+
18
+ Skills can opt out of direct user invocation by setting `user-invocable: false` in their frontmatter — those skills remain available for automatic activation by the agent but do not appear in `/skill/<name>` autocomplete, the `/skills` listing, or accept direct invocation.
19
+
20
+ ```md title=".mastracode/skills/internal-helper/SKILL.md"
21
+ ---
22
+ name: internal-helper
23
+ description: Used by the agent internally; not for direct user invocation.
24
+ user-invocable: false
25
+ ---
26
+ ```
27
+
28
+ Closes #16344.
29
+
30
+ - Added PostHog product analytics for MastraCode sessions, prompts, thread changes, command usage, and interactive prompts. Set MASTRA_TELEMETRY_DISABLED=1 to disable telemetry. ([#15173](https://github.com/mastra-ai/mastra/pull/15173))
31
+
32
+ ### Patch Changes
33
+
34
+ - Fixed goal judge evaluations so they complete more reliably and retry when no structured decision is returned. Fixed `/goal resume` to retrigger judge evaluation after judge-related pauses instead of sending a normal continuation. ([#16843](https://github.com/mastra-ai/mastra/pull/16843))
35
+
36
+ - Improved quiet mode readability: use WCAG contrast-adapted 'muted' color for task counters and pending text, de-emphasize completed tasks, use visibleWidth for accurate task alignment, and adapt compact tool connector glyphs on non-black terminal backgrounds ([#16839](https://github.com/mastra-ai/mastra/pull/16839))
37
+
38
+ - Improved MastraCode rendering responsiveness during large streamed tool previews by upgrading the terminal UI renderer. ([#16835](https://github.com/mastra-ai/mastra/pull/16835))
39
+
40
+ - Add an "Observe attachments" toggle in `/om` settings that controls whether ([#16682](https://github.com/mastra-ai/mastra/pull/16682))
41
+ file and image attachments are forwarded to the Observer LLM. Turn it off when
42
+ running with a text-only observer model. Stored as `omObserveAttachments` in
43
+ global settings and seeded into the harness state at startup.
44
+
45
+ - Improved MastraCode quiet mode so terminal sessions are easier to scan. ([#16771](https://github.com/mastra-ai/mastra/pull/16771))
46
+ - Quiet mode is now the default for new installs, and existing classic users get a one-time prompt to choose whether to enable it.
47
+ - Added compact tool previews with a configurable preview-line limit, including an option to hide previews.
48
+ - Improved repeated tool-call rendering, path continuation handling, task wrapping, shell/error previews, and spacing between tools, messages, plans, and completed subagents.
49
+ - Added edited line ranges to workspace edit results so tool UIs can show where replacements happened.
50
+
51
+ - Updated MastraCode to use provider-aware Observational Memory idle activation. ([#16663](https://github.com/mastra-ai/mastra/pull/16663))
52
+
53
+ MastraCode now sets `activateAfterIdle: "auto"`, shows an idle-time counter above the input after one minute of inactivity, and combines back-to-back OM activation markers into a single line.
54
+
55
+ - Restore MastraCode local command execution to inherit parent environment variables while redacting env-shaped and secret-looking workspace trace data. ([#16691](https://github.com/mastra-ai/mastra/pull/16691))
56
+
57
+ - Fixed goal pursuit timers so they only count active work and stay paused while waiting for user input. ([#16690](https://github.com/mastra-ai/mastra/pull/16690))
58
+
59
+ - Added a Unix socket PubSub transport and wired the Mastra Code TUI through a per-resource socket so local sessions can coordinate thread streams across processes. Programmatic `createMastraCode` usage remains opt-in: ([#16669](https://github.com/mastra-ai/mastra/pull/16669))
60
+
61
+ ```ts
62
+ await createMastraCode({ unixSocketPubSub: true });
63
+ ```
64
+
65
+ - Fixed terminal rendering so command output, task lists, and plan feedback input stay aligned while redrawing. ([#16849](https://github.com/mastra-ai/mastra/pull/16849))
66
+
67
+ - Improved thread signal handling in the TUI to work with the simplified signal contents shape. ([#16622](https://github.com/mastra-ai/mastra/pull/16622))
68
+
69
+ - Updated dependencies [[`452036a`](https://github.com/mastra-ai/mastra/commit/452036a0d965b4f4c1efd93606e4f03b50b807a5), [`c272d50`](https://github.com/mastra-ai/mastra/commit/c272d50610a54496b6b6d92ccd4d37b333a2613a), [`27fd1b7`](https://github.com/mastra-ai/mastra/commit/27fd1b79ac62eb7694f92587eb7d1be05b59be01), [`5ba7253`](https://github.com/mastra-ai/mastra/commit/5ba7253745c85e8df8012a76d954c640ffa336f7), [`5556cc1`](https://github.com/mastra-ai/mastra/commit/5556cc1befec71518d84f826b3bfe3a079a9daf7), [`f73980d`](https://github.com/mastra-ai/mastra/commit/f73980d651eb5f7f1ab20582de4615a1b6f10fce), [`5499303`](https://github.com/mastra-ai/mastra/commit/54993032c1ebc09642625b78d2014e0cf84a3cae), [`a702009`](https://github.com/mastra-ai/mastra/commit/a702009d3cfaa745120f501e21c783ed4d6a3072), [`46cbb7e`](https://github.com/mastra-ai/mastra/commit/46cbb7e84a0fadcf8c26ddfad38278732c22143e), [`9430352`](https://github.com/mastra-ai/mastra/commit/94303523460cb09dcd0d8139c11926029631d6ba), [`5d8003c`](https://github.com/mastra-ai/mastra/commit/5d8003c7b082e0b916458cbaf0fa274f226b0734), [`9aee493`](https://github.com/mastra-ai/mastra/commit/9aee493ed6089b5133472623dcce49934bf2d509), [`d8692af`](https://github.com/mastra-ai/mastra/commit/d8692afa253028e39cdce2aafa0ac414071a762e), [`1a9cc60`](https://github.com/mastra-ai/mastra/commit/1a9cc6069f9910fc3d59e4953ac8cd95d89ad6f5), [`8cdb86c`](https://github.com/mastra-ai/mastra/commit/8cdb86ceed1137bc2768e147dce85a0692b9fb26), [`8534d79`](https://github.com/mastra-ai/mastra/commit/8534d791fa1cb70fe1c19e2604c4b63cc10dd051), [`eda90c5`](https://github.com/mastra-ai/mastra/commit/eda90c5bfd7de11805ecc9f4552716c895fbaf78), [`a935b0a`](https://github.com/mastra-ai/mastra/commit/a935b0a0977ae3f196b33ec7621f528069c82db0), [`9c88701`](https://github.com/mastra-ai/mastra/commit/9c8870195b41a38dc40b6ba2aa55eda04df8fa69), [`7f6a053`](https://github.com/mastra-ai/mastra/commit/7f6a053b6a76f12b8ab0f25da1709adbd5134cd6), [`c78f8cd`](https://github.com/mastra-ai/mastra/commit/c78f8cd6222a86e6c60ae5210b6929ad5221b6fb), [`14b69c6`](https://github.com/mastra-ai/mastra/commit/14b69c6b05ce1e50c140b030a48cafb41d0746e3), [`e146aad`](https://github.com/mastra-ai/mastra/commit/e146aadbba66c410ba0e74bac4c50135495cb8dd), [`4bd4e8e`](https://github.com/mastra-ai/mastra/commit/4bd4e8e042f6687559f49a560a7914cee9b85447), [`ac79462`](https://github.com/mastra-ai/mastra/commit/ac79462b98f1062394c45093aa515b0766f27ee2), [`6b8a53e`](https://github.com/mastra-ai/mastra/commit/6b8a53eea3b255a4fd0b29bc0237cdd1906bf55c), [`1a0ec78`](https://github.com/mastra-ai/mastra/commit/1a0ec789a26cae443744e9abbd62ed6ee676af39), [`e47bca7`](https://github.com/mastra-ai/mastra/commit/e47bca7b72866d3abd173b9f530ac4318113a8ff), [`eda90c5`](https://github.com/mastra-ai/mastra/commit/eda90c5bfd7de11805ecc9f4552716c895fbaf78), [`afc004f`](https://github.com/mastra-ai/mastra/commit/afc004f5cc7e30697809e7021820b9f5881e6719), [`0031d0f`](https://github.com/mastra-ai/mastra/commit/0031d0f13831d7843ac5d498734a7d92862e2ce3), [`841a222`](https://github.com/mastra-ai/mastra/commit/841a222560d8c19238f8213713f30535cdd82284), [`64c1e0b`](https://github.com/mastra-ai/mastra/commit/64c1e0b35165c96b659818bd0177aa18794ef11f), [`40d83a9`](https://github.com/mastra-ai/mastra/commit/40d83a90d9be31a1b83e04649edb703eb7753e33), [`4e88dc6`](https://github.com/mastra-ai/mastra/commit/4e88dc6b89f154c0eae37221c8126be0c23c569f), [`19018f0`](https://github.com/mastra-ai/mastra/commit/19018f05722af74a5978781a7731a654b26f7f2a), [`19281c7`](https://github.com/mastra-ai/mastra/commit/19281c70424f757219782de16c2699743c5e04d0), [`3498b49`](https://github.com/mastra-ai/mastra/commit/3498b4946be94f4313cd817733589680dcda5278), [`d52b6fe`](https://github.com/mastra-ai/mastra/commit/d52b6fe1c56853eb38864baae0bbfa75cc739ccb), [`408be73`](https://github.com/mastra-ai/mastra/commit/408be73449dfab92b51eab8c6623b6c443debc25), [`359439b`](https://github.com/mastra-ai/mastra/commit/359439bb8c635e048176306828195f8297f50021), [`96d225b`](https://github.com/mastra-ai/mastra/commit/96d225b05ed52ff250e0a342a7e6398e291945f0), [`71a820b`](https://github.com/mastra-ai/mastra/commit/71a820b2353fa1406772c50760a3732058a8b337), [`3552b1c`](https://github.com/mastra-ai/mastra/commit/3552b1c872988885f1c33d97122323567e2aff8e), [`1698f5e`](https://github.com/mastra-ai/mastra/commit/1698f5ec141d34f22a873efdb145ce3cdf848a5e)]:
70
+ - @mastra/core@1.36.0
71
+ - @mastra/memory@1.19.0
72
+ - @mastra/mcp@1.8.0
73
+ - @mastra/duckdb@1.4.0
74
+ - @mastra/stagehand@0.2.3
75
+ - @mastra/observability@1.13.0
76
+ - @mastra/libsql@1.11.1
77
+ - @mastra/pg@1.11.1
78
+ - @mastra/fastembed@1.1.0
79
+
80
+ ## 0.20.0-alpha.12
81
+
82
+ ### Patch Changes
83
+
84
+ - Fixed goal judge evaluations so they complete more reliably and retry when no structured decision is returned. Fixed `/goal resume` to retrigger judge evaluation after judge-related pauses instead of sending a normal continuation. ([#16843](https://github.com/mastra-ai/mastra/pull/16843))
85
+
86
+ - Improved quiet mode readability: use WCAG contrast-adapted 'muted' color for task counters and pending text, de-emphasize completed tasks, use visibleWidth for accurate task alignment, and adapt compact tool connector glyphs on non-black terminal backgrounds ([#16839](https://github.com/mastra-ai/mastra/pull/16839))
87
+
88
+ - Fixed terminal rendering so command output, task lists, and plan feedback input stay aligned while redrawing. ([#16849](https://github.com/mastra-ai/mastra/pull/16849))
89
+
90
+ - Updated dependencies [[`27fd1b7`](https://github.com/mastra-ai/mastra/commit/27fd1b79ac62eb7694f92587eb7d1be05b59be01), [`a702009`](https://github.com/mastra-ai/mastra/commit/a702009d3cfaa745120f501e21c783ed4d6a3072), [`46cbb7e`](https://github.com/mastra-ai/mastra/commit/46cbb7e84a0fadcf8c26ddfad38278732c22143e), [`8534d79`](https://github.com/mastra-ai/mastra/commit/8534d791fa1cb70fe1c19e2604c4b63cc10dd051), [`c78f8cd`](https://github.com/mastra-ai/mastra/commit/c78f8cd6222a86e6c60ae5210b6929ad5221b6fb), [`e146aad`](https://github.com/mastra-ai/mastra/commit/e146aadbba66c410ba0e74bac4c50135495cb8dd), [`1a0ec78`](https://github.com/mastra-ai/mastra/commit/1a0ec789a26cae443744e9abbd62ed6ee676af39), [`d52b6fe`](https://github.com/mastra-ai/mastra/commit/d52b6fe1c56853eb38864baae0bbfa75cc739ccb)]:
91
+ - @mastra/core@1.36.0-alpha.10
92
+ - @mastra/mcp@1.8.0-alpha.2
93
+ - @mastra/libsql@1.11.1-alpha.0
94
+ - @mastra/pg@1.11.1-alpha.0
95
+
96
+ ## 0.20.0-alpha.11
97
+
98
+ ### Patch Changes
99
+
100
+ - Improved MastraCode rendering responsiveness during large streamed tool previews by upgrading the terminal UI renderer. ([#16835](https://github.com/mastra-ai/mastra/pull/16835))
101
+
102
+ - Updated dependencies [[`1698f5e`](https://github.com/mastra-ai/mastra/commit/1698f5ec141d34f22a873efdb145ce3cdf848a5e)]:
103
+ - @mastra/core@1.36.0-alpha.9
104
+
105
+ ## 0.20.0-alpha.10
106
+
107
+ ### Patch Changes
108
+
109
+ - Updated dependencies [[`5d8003c`](https://github.com/mastra-ai/mastra/commit/5d8003c7b082e0b916458cbaf0fa274f226b0734), [`9aee493`](https://github.com/mastra-ai/mastra/commit/9aee493ed6089b5133472623dcce49934bf2d509)]:
110
+ - @mastra/duckdb@1.4.0-alpha.1
111
+ - @mastra/core@1.36.0-alpha.8
112
+
113
+ ## 0.20.0-alpha.9
114
+
115
+ ### Patch Changes
116
+
117
+ - Updated dependencies [[`a935b0a`](https://github.com/mastra-ai/mastra/commit/a935b0a0977ae3f196b33ec7621f528069c82db0)]:
118
+ - @mastra/core@1.36.0-alpha.7
119
+
3
120
  ## 0.20.0-alpha.8
4
121
 
5
122
  ### Patch Changes