mastracode 0.20.0-alpha.0 → 0.20.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.
Files changed (102) hide show
  1. package/CHANGELOG.md +111 -0
  2. package/dist/agents/memory.d.ts.map +1 -1
  3. package/dist/agents/workspace.d.ts.map +1 -1
  4. package/dist/analytics.d.ts +18 -0
  5. package/dist/analytics.d.ts.map +1 -0
  6. package/dist/{chunk-YJMT2SB2.js → chunk-7VEHWBDA.js} +42 -6
  7. package/dist/chunk-7VEHWBDA.js.map +1 -0
  8. package/dist/{chunk-6BXLJNXS.cjs → chunk-B4OZBWQJ.cjs} +42 -6
  9. package/dist/chunk-B4OZBWQJ.cjs.map +1 -0
  10. package/dist/{chunk-MVSBRHDQ.js → chunk-BAMGMQK2.js} +61 -79
  11. package/dist/chunk-BAMGMQK2.js.map +1 -0
  12. package/dist/{chunk-7DWQNHKH.cjs → chunk-BX3BAWTX.cjs} +95 -113
  13. package/dist/chunk-BX3BAWTX.cjs.map +1 -0
  14. package/dist/{chunk-OUYWAG74.cjs → chunk-C443IRUG.cjs} +2688 -1058
  15. package/dist/chunk-C443IRUG.cjs.map +1 -0
  16. package/dist/{chunk-NCQE7X5B.js → chunk-JNZUU423.js} +1888 -258
  17. package/dist/chunk-JNZUU423.js.map +1 -0
  18. package/dist/cli.cjs +158 -19
  19. package/dist/cli.cjs.map +1 -1
  20. package/dist/cli.js +142 -6
  21. package/dist/cli.js.map +1 -1
  22. package/dist/headless.d.ts.map +1 -1
  23. package/dist/index.cjs +3 -3
  24. package/dist/index.d.ts +9 -0
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/onboarding/settings.d.ts +14 -0
  28. package/dist/onboarding/settings.d.ts.map +1 -1
  29. package/dist/schema.d.ts +1 -0
  30. package/dist/schema.d.ts.map +1 -1
  31. package/dist/tui/chat-boundary-reconciliation.d.ts +4 -0
  32. package/dist/tui/chat-boundary-reconciliation.d.ts.map +1 -0
  33. package/dist/tui/command-dispatch.d.ts.map +1 -1
  34. package/dist/tui/commands/goal.d.ts.map +1 -1
  35. package/dist/tui/commands/login.d.ts.map +1 -1
  36. package/dist/tui/commands/mode.d.ts.map +1 -1
  37. package/dist/tui/commands/om.d.ts +1 -0
  38. package/dist/tui/commands/om.d.ts.map +1 -1
  39. package/dist/tui/commands/settings.d.ts.map +1 -1
  40. package/dist/tui/commands/threads.d.ts.map +1 -1
  41. package/dist/tui/commands/types.d.ts +2 -0
  42. package/dist/tui/commands/types.d.ts.map +1 -1
  43. package/dist/tui/components/ask-question-dialog.d.ts +4 -0
  44. package/dist/tui/components/ask-question-dialog.d.ts.map +1 -1
  45. package/dist/tui/components/assistant-message.d.ts +2 -0
  46. package/dist/tui/components/assistant-message.d.ts.map +1 -1
  47. package/dist/tui/components/chat-boundary-spacer.d.ts +13 -0
  48. package/dist/tui/components/chat-boundary-spacer.d.ts.map +1 -0
  49. package/dist/tui/components/chat-spacing.d.ts +9 -0
  50. package/dist/tui/components/chat-spacing.d.ts.map +1 -0
  51. package/dist/tui/components/idle-counter.d.ts +14 -0
  52. package/dist/tui/components/idle-counter.d.ts.map +1 -0
  53. package/dist/tui/components/om-marker.d.ts +1 -0
  54. package/dist/tui/components/om-marker.d.ts.map +1 -1
  55. package/dist/tui/components/om-settings.d.ts +2 -0
  56. package/dist/tui/components/om-settings.d.ts.map +1 -1
  57. package/dist/tui/components/plan-approval-inline.d.ts +3 -0
  58. package/dist/tui/components/plan-approval-inline.d.ts.map +1 -1
  59. package/dist/tui/components/settings.d.ts +2 -0
  60. package/dist/tui/components/settings.d.ts.map +1 -1
  61. package/dist/tui/components/subagent-execution.d.ts +5 -0
  62. package/dist/tui/components/subagent-execution.d.ts.map +1 -1
  63. package/dist/tui/components/task-progress.d.ts +4 -0
  64. package/dist/tui/components/task-progress.d.ts.map +1 -1
  65. package/dist/tui/components/tool-execution-enhanced.d.ts +95 -2
  66. package/dist/tui/components/tool-execution-enhanced.d.ts.map +1 -1
  67. package/dist/tui/components/tool-execution-interface.d.ts +17 -1
  68. package/dist/tui/components/tool-execution-interface.d.ts.map +1 -1
  69. package/dist/tui/components/user-message.d.ts +4 -0
  70. package/dist/tui/components/user-message.d.ts.map +1 -1
  71. package/dist/tui/event-dispatch.d.ts +0 -3
  72. package/dist/tui/event-dispatch.d.ts.map +1 -1
  73. package/dist/tui/goal-manager.d.ts +4 -0
  74. package/dist/tui/goal-manager.d.ts.map +1 -1
  75. package/dist/tui/handlers/agent-lifecycle.d.ts.map +1 -1
  76. package/dist/tui/handlers/message.d.ts.map +1 -1
  77. package/dist/tui/handlers/om.d.ts.map +1 -1
  78. package/dist/tui/handlers/prompts.d.ts.map +1 -1
  79. package/dist/tui/handlers/subagent.d.ts.map +1 -1
  80. package/dist/tui/handlers/tool.d.ts +0 -5
  81. package/dist/tui/handlers/tool.d.ts.map +1 -1
  82. package/dist/tui/handlers/types.d.ts +2 -0
  83. package/dist/tui/handlers/types.d.ts.map +1 -1
  84. package/dist/tui/mastra-tui.d.ts +8 -0
  85. package/dist/tui/mastra-tui.d.ts.map +1 -1
  86. package/dist/tui/modal-question.d.ts +2 -0
  87. package/dist/tui/modal-question.d.ts.map +1 -1
  88. package/dist/tui/render-messages.d.ts.map +1 -1
  89. package/dist/tui/setup.d.ts.map +1 -1
  90. package/dist/tui/state.d.ts +13 -1
  91. package/dist/tui/state.d.ts.map +1 -1
  92. package/dist/tui.cjs +19 -19
  93. package/dist/tui.js +2 -2
  94. package/dist/utils/signals-pubsub.d.ts +4 -0
  95. package/dist/utils/signals-pubsub.d.ts.map +1 -0
  96. package/package.json +13 -12
  97. package/dist/chunk-6BXLJNXS.cjs.map +0 -1
  98. package/dist/chunk-7DWQNHKH.cjs.map +0 -1
  99. package/dist/chunk-MVSBRHDQ.js.map +0 -1
  100. package/dist/chunk-NCQE7X5B.js.map +0 -1
  101. package/dist/chunk-OUYWAG74.cjs.map +0 -1
  102. package/dist/chunk-YJMT2SB2.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,116 @@
1
1
  # mastracode
2
2
 
3
+ ## 0.20.0-alpha.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`5d8003c`](https://github.com/mastra-ai/mastra/commit/5d8003c7b082e0b916458cbaf0fa274f226b0734), [`9aee493`](https://github.com/mastra-ai/mastra/commit/9aee493ed6089b5133472623dcce49934bf2d509)]:
8
+ - @mastra/duckdb@1.4.0-alpha.1
9
+ - @mastra/core@1.36.0-alpha.8
10
+
11
+ ## 0.20.0-alpha.9
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [[`a935b0a`](https://github.com/mastra-ai/mastra/commit/a935b0a0977ae3f196b33ec7621f528069c82db0)]:
16
+ - @mastra/core@1.36.0-alpha.7
17
+
18
+ ## 0.20.0-alpha.8
19
+
20
+ ### Patch Changes
21
+
22
+ - 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))
23
+
24
+ ```ts
25
+ await createMastraCode({ unixSocketPubSub: true });
26
+ ```
27
+
28
+ - Updated dependencies [[`71a820b`](https://github.com/mastra-ai/mastra/commit/71a820b2353fa1406772c50760a3732058a8b337)]:
29
+ - @mastra/core@1.36.0-alpha.6
30
+
31
+ ## 0.20.0-alpha.7
32
+
33
+ ### Minor Changes
34
+
35
+ - 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))
36
+
37
+ ### Patch Changes
38
+
39
+ - Improved MastraCode quiet mode so terminal sessions are easier to scan. ([#16771](https://github.com/mastra-ai/mastra/pull/16771))
40
+ - Quiet mode is now the default for new installs, and existing classic users get a one-time prompt to choose whether to enable it.
41
+ - Added compact tool previews with a configurable preview-line limit, including an option to hide previews.
42
+ - Improved repeated tool-call rendering, path continuation handling, task wrapping, shell/error previews, and spacing between tools, messages, plans, and completed subagents.
43
+ - Added edited line ranges to workspace edit results so tool UIs can show where replacements happened.
44
+
45
+ - Updated dependencies [[`ac79462`](https://github.com/mastra-ai/mastra/commit/ac79462b98f1062394c45093aa515b0766f27ee2), [`19281c7`](https://github.com/mastra-ai/mastra/commit/19281c70424f757219782de16c2699743c5e04d0)]:
46
+ - @mastra/core@1.36.0-alpha.5
47
+
48
+ ## 0.20.0-alpha.6
49
+
50
+ ### Minor Changes
51
+
52
+ - Added automatic return to Plan mode when a goal started from an approved plan finishes. ([#16676](https://github.com/mastra-ai/mastra/pull/16676))
53
+
54
+ ### Patch Changes
55
+
56
+ - Add an "Observe attachments" toggle in `/om` settings that controls whether ([#16682](https://github.com/mastra-ai/mastra/pull/16682))
57
+ file and image attachments are forwarded to the Observer LLM. Turn it off when
58
+ running with a text-only observer model. Stored as `omObserveAttachments` in
59
+ global settings and seeded into the harness state at startup.
60
+
61
+ - Updated MastraCode to use provider-aware Observational Memory idle activation. ([#16663](https://github.com/mastra-ai/mastra/pull/16663))
62
+
63
+ 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.
64
+
65
+ - Updated dependencies [[`c272d50`](https://github.com/mastra-ai/mastra/commit/c272d50610a54496b6b6d92ccd4d37b333a2613a), [`d8692af`](https://github.com/mastra-ai/mastra/commit/d8692afa253028e39cdce2aafa0ac414071a762e), [`14b69c6`](https://github.com/mastra-ai/mastra/commit/14b69c6b05ce1e50c140b030a48cafb41d0746e3), [`4bd4e8e`](https://github.com/mastra-ai/mastra/commit/4bd4e8e042f6687559f49a560a7914cee9b85447), [`841a222`](https://github.com/mastra-ai/mastra/commit/841a222560d8c19238f8213713f30535cdd82284), [`96d225b`](https://github.com/mastra-ai/mastra/commit/96d225b05ed52ff250e0a342a7e6398e291945f0)]:
66
+ - @mastra/core@1.36.0-alpha.4
67
+ - @mastra/memory@1.19.0-alpha.1
68
+ - @mastra/mcp@1.8.0-alpha.1
69
+ - @mastra/fastembed@1.1.0-alpha.0
70
+
71
+ ## 0.20.0-alpha.5
72
+
73
+ ### Patch Changes
74
+
75
+ - 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))
76
+
77
+ - 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))
78
+
79
+ - Updated dependencies [[`5556cc1`](https://github.com/mastra-ai/mastra/commit/5556cc1befec71518d84f826b3bfe3a079a9daf7), [`5499303`](https://github.com/mastra-ai/mastra/commit/54993032c1ebc09642625b78d2014e0cf84a3cae), [`e47bca7`](https://github.com/mastra-ai/mastra/commit/e47bca7b72866d3abd173b9f530ac4318113a8ff), [`0031d0f`](https://github.com/mastra-ai/mastra/commit/0031d0f13831d7843ac5d498734a7d92862e2ce3), [`3498b49`](https://github.com/mastra-ai/mastra/commit/3498b4946be94f4313cd817733589680dcda5278), [`359439b`](https://github.com/mastra-ai/mastra/commit/359439bb8c635e048176306828195f8297f50021), [`3552b1c`](https://github.com/mastra-ai/mastra/commit/3552b1c872988885f1c33d97122323567e2aff8e)]:
80
+ - @mastra/core@1.36.0-alpha.3
81
+ - @mastra/duckdb@1.4.0-alpha.0
82
+ - @mastra/observability@1.13.0-alpha.1
83
+
84
+ ## 0.20.0-alpha.4
85
+
86
+ ### Patch Changes
87
+
88
+ - Updated dependencies [[`5ba7253`](https://github.com/mastra-ai/mastra/commit/5ba7253745c85e8df8012a76d954c640ffa336f7), [`f73980d`](https://github.com/mastra-ai/mastra/commit/f73980d651eb5f7f1ab20582de4615a1b6f10fce), [`9c88701`](https://github.com/mastra-ai/mastra/commit/9c8870195b41a38dc40b6ba2aa55eda04df8fa69), [`4e88dc6`](https://github.com/mastra-ai/mastra/commit/4e88dc6b89f154c0eae37221c8126be0c23c569f), [`19018f0`](https://github.com/mastra-ai/mastra/commit/19018f05722af74a5978781a7731a654b26f7f2a)]:
89
+ - @mastra/core@1.36.0-alpha.2
90
+
91
+ ## 0.20.0-alpha.3
92
+
93
+ ### Patch Changes
94
+
95
+ - Updated dependencies [[`8cdb86c`](https://github.com/mastra-ai/mastra/commit/8cdb86ceed1137bc2768e147dce85a0692b9fb26), [`eda90c5`](https://github.com/mastra-ai/mastra/commit/eda90c5bfd7de11805ecc9f4552716c895fbaf78), [`eda90c5`](https://github.com/mastra-ai/mastra/commit/eda90c5bfd7de11805ecc9f4552716c895fbaf78), [`afc004f`](https://github.com/mastra-ai/mastra/commit/afc004f5cc7e30697809e7021820b9f5881e6719), [`408be73`](https://github.com/mastra-ai/mastra/commit/408be73449dfab92b51eab8c6623b6c443debc25)]:
96
+ - @mastra/core@1.36.0-alpha.1
97
+ - @mastra/observability@1.13.0-alpha.0
98
+
99
+ ## 0.20.0-alpha.2
100
+
101
+ ### Patch Changes
102
+
103
+ - Updated dependencies [[`9430352`](https://github.com/mastra-ai/mastra/commit/94303523460cb09dcd0d8139c11926029631d6ba), [`7f6a053`](https://github.com/mastra-ai/mastra/commit/7f6a053b6a76f12b8ab0f25da1709adbd5134cd6)]:
104
+ - @mastra/mcp@1.7.1-alpha.0
105
+ - @mastra/memory@1.18.3-alpha.0
106
+
107
+ ## 0.20.0-alpha.1
108
+
109
+ ### Patch Changes
110
+
111
+ - Updated dependencies [[`6b8a53e`](https://github.com/mastra-ai/mastra/commit/6b8a53eea3b255a4fd0b29bc0237cdd1906bf55c)]:
112
+ - @mastra/stagehand@0.2.3-alpha.0
113
+
3
114
  ## 0.20.0-alpha.0
4
115
 
5
116
  ### Minor Changes
@@ -1 +1 @@
1
- {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/agents/memory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAuExC;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,oBAAoB,EAAE,MAAM,CAAC,EAAE,YAAY,IAC3E,oBAAoB;IAAE,cAAc,EAAE,cAAc,CAAA;CAAE,YA0D/D"}
1
+ {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/agents/memory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAuExC;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,oBAAoB,EAAE,MAAM,CAAC,EAAE,YAAY,IAC3E,oBAAoB;IAAE,cAAc,EAAE,cAAc,CAAA;CAAE,YA4D/D"}
@@ -1 +1 @@
1
- {"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/agents/workspace.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAkHlF,eAAO,MAAM,UAAU,UAOtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAa,CAAC;AA6B5C,wBAAgB,mBAAmB,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE;IAAE,cAAc,EAAE,cAAc,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,uDAgElH"}
1
+ {"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/agents/workspace.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAgDlF,eAAO,MAAM,UAAU,UAOtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAa,CAAC;AA6B5C,wBAAgB,mBAAmB,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE;IAAE,cAAc,EAAE,cAAc,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,uDAgElH"}
@@ -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"}
@@ -25,7 +25,8 @@ var DEFAULTS = {
25
25
  skippedAt: null,
26
26
  version: 0,
27
27
  modePackId: null,
28
- omPackId: null
28
+ omPackId: null,
29
+ quietModePreferenceSelected: true
29
30
  },
30
31
  models: {
31
32
  activeModelPackId: null,
@@ -37,6 +38,7 @@ var DEFAULTS = {
37
38
  omObservationThreshold: null,
38
39
  omReflectionThreshold: null,
39
40
  omCavemanObservations: null,
41
+ omObserveAttachments: null,
40
42
  subagentModels: {},
41
43
  goalJudgeModel: null,
42
44
  goalMaxTurns: null
@@ -45,7 +47,8 @@ var DEFAULTS = {
45
47
  yolo: null,
46
48
  theme: "auto",
47
49
  thinkingLevel: "off",
48
- quietMode: false
50
+ quietMode: false,
51
+ quietModeMaxToolPreviewLines: 2
49
52
  },
50
53
  storage: { ...STORAGE_DEFAULTS },
51
54
  customModelPacks: [],
@@ -61,20 +64,42 @@ var DEFAULTS = {
61
64
  viewport: { width: 1280, height: 720 },
62
65
  stagehand: { env: "LOCAL" }
63
66
  },
67
+ signals: { unixSocketPubSub: false },
64
68
  observability: { resources: {}, localTracing: false }
65
69
  };
66
70
  var THINKING_LEVEL_VALUES = ["off", "low", "medium", "high", "xhigh"];
71
+ var QUIET_MODE_MAX_TOOL_PREVIEW_LINES_MAX = 8;
67
72
  function parseThinkingLevel(value) {
68
73
  return typeof value === "string" && THINKING_LEVEL_VALUES.includes(value) ? value : DEFAULTS.preferences.thinkingLevel;
69
74
  }
75
+ function parseQuietModeMaxToolPreviewLines(value) {
76
+ const rawValue = typeof value === "number" && Number.isFinite(value) ? value : DEFAULTS.preferences.quietModeMaxToolPreviewLines;
77
+ return Math.min(QUIET_MODE_MAX_TOOL_PREVIEW_LINES_MAX, Math.max(0, Math.floor(rawValue)));
78
+ }
70
79
  function parsePreferences(rawPreferences) {
71
80
  const raw = rawPreferences && typeof rawPreferences === "object" ? rawPreferences : {};
72
81
  return {
73
82
  ...DEFAULTS.preferences,
74
83
  ...raw,
75
- thinkingLevel: parseThinkingLevel(raw.thinkingLevel)
84
+ thinkingLevel: parseThinkingLevel(raw.thinkingLevel),
85
+ quietModeMaxToolPreviewLines: parseQuietModeMaxToolPreviewLines(raw.quietModeMaxToolPreviewLines)
76
86
  };
77
87
  }
88
+ function hasQuietModePreferenceSelected(rawOnboarding) {
89
+ return Boolean(
90
+ rawOnboarding && typeof rawOnboarding === "object" && Object.prototype.hasOwnProperty.call(rawOnboarding, "quietModePreferenceSelected")
91
+ );
92
+ }
93
+ function applyQuietModePreferenceRollout(settings, rawOnboarding) {
94
+ if (hasQuietModePreferenceSelected(rawOnboarding)) return;
95
+ settings.onboarding.quietModePreferenceSelected = settings.preferences.quietMode === true;
96
+ }
97
+ function getNewInstallDefaults() {
98
+ const settings = structuredClone(DEFAULTS);
99
+ settings.preferences.quietMode = true;
100
+ settings.onboarding.quietModePreferenceSelected = true;
101
+ return settings;
102
+ }
78
103
  function getSettingsPath() {
79
104
  return join(getAppDataDir(), "settings.json");
80
105
  }
@@ -203,8 +228,12 @@ function migrateFromAuth(settingsPath) {
203
228
  memoryGateway: raw.memoryGateway && typeof raw.memoryGateway === "object" ? raw.memoryGateway : {},
204
229
  lsp: raw.lsp && typeof raw.lsp === "object" ? raw.lsp : void 0,
205
230
  browser: parseBrowserSettings(raw.browser),
231
+ signals: {
232
+ unixSocketPubSub: raw.signals && typeof raw.signals === "object" && typeof raw.signals.unixSocketPubSub === "boolean" ? raw.signals.unixSocketPubSub : DEFAULTS.signals.unixSocketPubSub
233
+ },
206
234
  observability: parseObservabilitySettings(raw.observability)
207
235
  };
236
+ applyQuietModePreferenceRollout(settings, raw.onboarding);
208
237
  } catch {
209
238
  settings = structuredClone(DEFAULTS);
210
239
  }
@@ -276,7 +305,7 @@ function migrateLegacyVariedPack(settings) {
276
305
  }
277
306
  function loadSettings(filePath = getSettingsPath()) {
278
307
  migrateFromAuth(filePath);
279
- if (!existsSync(filePath)) return structuredClone(DEFAULTS);
308
+ if (!existsSync(filePath)) return getNewInstallDefaults();
280
309
  try {
281
310
  const raw = JSON.parse(readFileSync(filePath, "utf-8"));
282
311
  const settings = {
@@ -297,9 +326,16 @@ function loadSettings(filePath = getSettingsPath()) {
297
326
  memoryGateway: raw.memoryGateway && typeof raw.memoryGateway === "object" ? raw.memoryGateway : {},
298
327
  lsp: raw.lsp && typeof raw.lsp === "object" ? raw.lsp : void 0,
299
328
  browser: parseBrowserSettings(raw.browser),
329
+ signals: {
330
+ unixSocketPubSub: raw.signals && typeof raw.signals === "object" && typeof raw.signals.unixSocketPubSub === "boolean" ? raw.signals.unixSocketPubSub : DEFAULTS.signals.unixSocketPubSub
331
+ },
300
332
  observability: parseObservabilitySettings(raw.observability)
301
333
  };
302
334
  let settingsChanged = false;
335
+ if (!hasQuietModePreferenceSelected(raw.onboarding)) {
336
+ applyQuietModePreferenceRollout(settings, raw.onboarding);
337
+ settingsChanged = true;
338
+ }
303
339
  if (raw.models?.omModelId && !settings.models.omModelOverride) {
304
340
  settings.models.omModelOverride = raw.models.omModelId;
305
341
  settingsChanged = true;
@@ -1782,5 +1818,5 @@ function releaseAllThreadLocks() {
1782
1818
  }
1783
1819
 
1784
1820
  export { BOX_INDENT, BOX_INDENT_STR, CHAT_INDENT, MEMORY_GATEWAY_DEFAULT_URL, MEMORY_GATEWAY_PROVIDER, OBSERVABILITY_AUTH_PREFIX, ONBOARDING_VERSION, TERM_WIDTH_BUFFER, THREAD_ACTIVE_MODEL_PACK_ID_KEY, ThreadLockError, acquireThreadLock, applyThemeMode, checkProfileProviderMismatch, createBrowserFromSettings, getAvailableModePacks, getAvailableOmPacks, getCopilotModelCatalog, getCustomProviderId, getDynamicModel, getEditorTheme, getMarkdownTheme, getSelectListTheme, getSettingsListTheme, getTermWidth, getThemeMode, loadSettings, luminance, mastra, mastraBrand, releaseAllThreadLocks, releaseThreadLock, resolveModel, resolveModelDefaults, resolveOmRoleModel, resolveThreadActiveModelPackId, restoreTerminalForeground, saveSettings, setAuthStorage, setAuthStorage2, setAuthStorage3, setProfileProvider, theme, tintHex, toCustomProviderModelId };
1785
- //# sourceMappingURL=chunk-YJMT2SB2.js.map
1786
- //# sourceMappingURL=chunk-YJMT2SB2.js.map
1821
+ //# sourceMappingURL=chunk-7VEHWBDA.js.map
1822
+ //# sourceMappingURL=chunk-7VEHWBDA.js.map