mastracode 0.20.0-alpha.6 → 0.20.0-alpha.7

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 (74) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/analytics.d.ts +18 -0
  3. package/dist/analytics.d.ts.map +1 -0
  4. package/dist/{chunk-NHOZTX3H.js → chunk-IF34ACMO.js} +3 -3
  5. package/dist/{chunk-NHOZTX3H.js.map → chunk-IF34ACMO.js.map} +1 -1
  6. package/dist/{chunk-Z7PZS23L.cjs → chunk-KNG5WGWI.cjs} +34 -6
  7. package/dist/chunk-KNG5WGWI.cjs.map +1 -0
  8. package/dist/{chunk-PAOLP5EY.cjs → chunk-O35I4LJB.cjs} +1962 -1011
  9. package/dist/chunk-O35I4LJB.cjs.map +1 -0
  10. package/dist/{chunk-EOBCOAWI.cjs → chunk-RGAZFJ3A.cjs} +38 -38
  11. package/dist/{chunk-EOBCOAWI.cjs.map → chunk-RGAZFJ3A.cjs.map} +1 -1
  12. package/dist/{chunk-P4IRGY3S.js → chunk-UFGZAHVG.js} +1154 -203
  13. package/dist/chunk-UFGZAHVG.js.map +1 -0
  14. package/dist/{chunk-KZHLKVWQ.js → chunk-YWSTUM47.js} +34 -6
  15. package/dist/chunk-YWSTUM47.js.map +1 -0
  16. package/dist/cli.cjs +148 -18
  17. package/dist/cli.cjs.map +1 -1
  18. package/dist/cli.js +131 -4
  19. package/dist/cli.js.map +1 -1
  20. package/dist/index.cjs +3 -3
  21. package/dist/index.js +1 -1
  22. package/dist/onboarding/settings.d.ts +3 -0
  23. package/dist/onboarding/settings.d.ts.map +1 -1
  24. package/dist/tui/chat-boundary-reconciliation.d.ts +4 -0
  25. package/dist/tui/chat-boundary-reconciliation.d.ts.map +1 -0
  26. package/dist/tui/command-dispatch.d.ts.map +1 -1
  27. package/dist/tui/commands/login.d.ts.map +1 -1
  28. package/dist/tui/commands/settings.d.ts.map +1 -1
  29. package/dist/tui/commands/threads.d.ts.map +1 -1
  30. package/dist/tui/commands/types.d.ts +2 -0
  31. package/dist/tui/commands/types.d.ts.map +1 -1
  32. package/dist/tui/components/ask-question-dialog.d.ts +4 -0
  33. package/dist/tui/components/ask-question-dialog.d.ts.map +1 -1
  34. package/dist/tui/components/assistant-message.d.ts +2 -0
  35. package/dist/tui/components/assistant-message.d.ts.map +1 -1
  36. package/dist/tui/components/chat-boundary-spacer.d.ts +13 -0
  37. package/dist/tui/components/chat-boundary-spacer.d.ts.map +1 -0
  38. package/dist/tui/components/chat-spacing.d.ts +9 -0
  39. package/dist/tui/components/chat-spacing.d.ts.map +1 -0
  40. package/dist/tui/components/plan-approval-inline.d.ts +3 -0
  41. package/dist/tui/components/plan-approval-inline.d.ts.map +1 -1
  42. package/dist/tui/components/settings.d.ts +2 -0
  43. package/dist/tui/components/settings.d.ts.map +1 -1
  44. package/dist/tui/components/task-progress.d.ts +4 -0
  45. package/dist/tui/components/task-progress.d.ts.map +1 -1
  46. package/dist/tui/components/tool-execution-enhanced.d.ts +64 -2
  47. package/dist/tui/components/tool-execution-enhanced.d.ts.map +1 -1
  48. package/dist/tui/components/tool-execution-interface.d.ts +16 -1
  49. package/dist/tui/components/tool-execution-interface.d.ts.map +1 -1
  50. package/dist/tui/components/user-message.d.ts +4 -0
  51. package/dist/tui/components/user-message.d.ts.map +1 -1
  52. package/dist/tui/event-dispatch.d.ts +0 -3
  53. package/dist/tui/event-dispatch.d.ts.map +1 -1
  54. package/dist/tui/handlers/message.d.ts.map +1 -1
  55. package/dist/tui/handlers/om.d.ts.map +1 -1
  56. package/dist/tui/handlers/tool.d.ts +0 -5
  57. package/dist/tui/handlers/tool.d.ts.map +1 -1
  58. package/dist/tui/handlers/types.d.ts +2 -0
  59. package/dist/tui/handlers/types.d.ts.map +1 -1
  60. package/dist/tui/mastra-tui.d.ts +4 -0
  61. package/dist/tui/mastra-tui.d.ts.map +1 -1
  62. package/dist/tui/modal-question.d.ts +2 -0
  63. package/dist/tui/modal-question.d.ts.map +1 -1
  64. package/dist/tui/render-messages.d.ts.map +1 -1
  65. package/dist/tui/setup.d.ts.map +1 -1
  66. package/dist/tui/state.d.ts +5 -0
  67. package/dist/tui/state.d.ts.map +1 -1
  68. package/dist/tui.cjs +19 -19
  69. package/dist/tui.js +2 -2
  70. package/package.json +10 -9
  71. package/dist/chunk-KZHLKVWQ.js.map +0 -1
  72. package/dist/chunk-P4IRGY3S.js.map +0 -1
  73. package/dist/chunk-PAOLP5EY.cjs.map +0 -1
  74. package/dist/chunk-Z7PZS23L.cjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # mastracode
2
2
 
3
+ ## 0.20.0-alpha.7
4
+
5
+ ### Minor Changes
6
+
7
+ - 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))
8
+
9
+ ### Patch Changes
10
+
11
+ - Improved MastraCode quiet mode so terminal sessions are easier to scan. ([#16771](https://github.com/mastra-ai/mastra/pull/16771))
12
+ - Quiet mode is now the default for new installs, and existing classic users get a one-time prompt to choose whether to enable it.
13
+ - Added compact tool previews with a configurable preview-line limit, including an option to hide previews.
14
+ - Improved repeated tool-call rendering, path continuation handling, task wrapping, shell/error previews, and spacing between tools, messages, plans, and completed subagents.
15
+ - Added edited line ranges to workspace edit results so tool UIs can show where replacements happened.
16
+
17
+ - Updated dependencies [[`ac79462`](https://github.com/mastra-ai/mastra/commit/ac79462b98f1062394c45093aa515b0766f27ee2), [`19281c7`](https://github.com/mastra-ai/mastra/commit/19281c70424f757219782de16c2699743c5e04d0)]:
18
+ - @mastra/core@1.36.0-alpha.5
19
+
3
20
  ## 0.20.0-alpha.6
4
21
 
5
22
  ### Minor Changes
@@ -0,0 +1,18 @@
1
+ export declare function getMastraAnalyticsDistinctId(hostname?: string): string;
2
+ export type MastraCodeAnalyticsEvent = 'mastracode_session_started' | 'mastracode_prompt_submitted' | 'mastracode_thread_changed' | 'mastracode_model_changed' | 'mastracode_command_used' | 'mastracode_interactive_prompt_shown';
3
+ export interface MastraCodeAnalytics {
4
+ capture(event: MastraCodeAnalyticsEvent, properties?: Record<string, unknown>): void;
5
+ trackCommand(command: string, properties?: Record<string, unknown>): void;
6
+ trackInteractivePrompt(promptType: string, properties?: Record<string, unknown>): void;
7
+ shutdown(): Promise<void>;
8
+ isEnabled(): boolean;
9
+ }
10
+ interface MastraCodeAnalyticsOptions {
11
+ version: string;
12
+ host?: string;
13
+ apiKey?: string;
14
+ }
15
+ export declare function isTelemetryDisabled(env?: NodeJS.ProcessEnv): boolean;
16
+ export declare function createMastraCodeAnalytics(options: MastraCodeAnalyticsOptions): MastraCodeAnalytics;
17
+ export {};
18
+ //# sourceMappingURL=analytics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../src/analytics.ts"],"names":[],"mappings":"AAUA,wBAAgB,4BAA4B,CAAC,QAAQ,SAAgB,GAAG,MAAM,CAE7E;AAeD,MAAM,MAAM,wBAAwB,GAChC,4BAA4B,GAC5B,6BAA6B,GAC7B,2BAA2B,GAC3B,0BAA0B,GAC1B,yBAAyB,GACzB,qCAAqC,CAAC;AAE1C,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,KAAK,EAAE,wBAAwB,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACrF,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAC1E,sBAAsB,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IACvF,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,SAAS,IAAI,OAAO,CAAC;CACtB;AAED,UAAU,0BAA0B;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA8FD,wBAAgB,mBAAmB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,OAAO,CAOjF;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,0BAA0B,GAAG,mBAAmB,CAOlG"}
@@ -1,4 +1,4 @@
1
- import { setAuthStorage, setAuthStorage3, setAuthStorage2, loadSettings, MEMORY_GATEWAY_PROVIDER, getDynamicModel, getAvailableModePacks, getAvailableOmPacks, resolveModelDefaults, resolveOmRoleModel, mastra, releaseThreadLock, acquireThreadLock, getCustomProviderId, toCustomProviderModelId, getCopilotModelCatalog, saveSettings, resolveModel, OBSERVABILITY_AUTH_PREFIX } from './chunk-KZHLKVWQ.js';
1
+ import { setAuthStorage, setAuthStorage3, setAuthStorage2, loadSettings, MEMORY_GATEWAY_PROVIDER, getDynamicModel, getAvailableModePacks, getAvailableOmPacks, resolveModelDefaults, resolveOmRoleModel, mastra, releaseThreadLock, acquireThreadLock, getCustomProviderId, toCustomProviderModelId, getCopilotModelCatalog, saveSettings, resolveModel, OBSERVABILITY_AUTH_PREFIX } from './chunk-YWSTUM47.js';
2
2
  import { AuthStorage, detectProject, getResourceIdOverride, getStorageConfig, getObservabilityDatabasePath, getVectorDatabasePath, getCurrentGitBranch, getOmScope, getDatabasePath, getAppDataDir } from './chunk-5YJR6NJL.js';
3
3
  import { MC_TOOLS, getToolCategory, TOOL_NAME_OVERRIDES } from './chunk-TTAAM2XR.js';
4
4
  import * as path from 'path';
@@ -3281,5 +3281,5 @@ async function createMastraCode(config) {
3281
3281
  }
3282
3282
 
3283
3283
  export { createAuthStorage, createMastraCode };
3284
- //# sourceMappingURL=chunk-NHOZTX3H.js.map
3285
- //# sourceMappingURL=chunk-NHOZTX3H.js.map
3284
+ //# sourceMappingURL=chunk-IF34ACMO.js.map
3285
+ //# sourceMappingURL=chunk-IF34ACMO.js.map