mstro-app 0.3.8 → 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.
Files changed (109) hide show
  1. package/LICENSE +191 -21
  2. package/PRIVACY.md +286 -62
  3. package/README.md +81 -58
  4. package/bin/commands/status.js +1 -1
  5. package/dist/server/cli/headless/claude-invoker.d.ts.map +1 -1
  6. package/dist/server/cli/headless/claude-invoker.js +22 -12
  7. package/dist/server/cli/headless/claude-invoker.js.map +1 -1
  8. package/dist/server/cli/headless/headless-logger.d.ts +10 -0
  9. package/dist/server/cli/headless/headless-logger.d.ts.map +1 -0
  10. package/dist/server/cli/headless/headless-logger.js +66 -0
  11. package/dist/server/cli/headless/headless-logger.js.map +1 -0
  12. package/dist/server/cli/headless/mcp-config.d.ts.map +1 -1
  13. package/dist/server/cli/headless/mcp-config.js +6 -5
  14. package/dist/server/cli/headless/mcp-config.js.map +1 -1
  15. package/dist/server/cli/headless/runner.d.ts.map +1 -1
  16. package/dist/server/cli/headless/runner.js +4 -0
  17. package/dist/server/cli/headless/runner.js.map +1 -1
  18. package/dist/server/cli/headless/stall-assessor.d.ts +21 -0
  19. package/dist/server/cli/headless/stall-assessor.d.ts.map +1 -1
  20. package/dist/server/cli/headless/stall-assessor.js +100 -24
  21. package/dist/server/cli/headless/stall-assessor.js.map +1 -1
  22. package/dist/server/cli/headless/tool-watchdog.d.ts +0 -12
  23. package/dist/server/cli/headless/tool-watchdog.d.ts.map +1 -1
  24. package/dist/server/cli/headless/tool-watchdog.js +22 -9
  25. package/dist/server/cli/headless/tool-watchdog.js.map +1 -1
  26. package/dist/server/cli/headless/types.d.ts +8 -1
  27. package/dist/server/cli/headless/types.d.ts.map +1 -1
  28. package/dist/server/cli/improvisation-session-manager.d.ts +16 -0
  29. package/dist/server/cli/improvisation-session-manager.d.ts.map +1 -1
  30. package/dist/server/cli/improvisation-session-manager.js +94 -11
  31. package/dist/server/cli/improvisation-session-manager.js.map +1 -1
  32. package/dist/server/mcp/bouncer-cli.d.ts +3 -0
  33. package/dist/server/mcp/bouncer-cli.d.ts.map +1 -0
  34. package/dist/server/mcp/bouncer-cli.js +54 -0
  35. package/dist/server/mcp/bouncer-cli.js.map +1 -0
  36. package/dist/server/services/plan/composer.d.ts +4 -0
  37. package/dist/server/services/plan/composer.d.ts.map +1 -0
  38. package/dist/server/services/plan/composer.js +181 -0
  39. package/dist/server/services/plan/composer.js.map +1 -0
  40. package/dist/server/services/plan/dependency-resolver.d.ts +28 -0
  41. package/dist/server/services/plan/dependency-resolver.d.ts.map +1 -0
  42. package/dist/server/services/plan/dependency-resolver.js +154 -0
  43. package/dist/server/services/plan/dependency-resolver.js.map +1 -0
  44. package/dist/server/services/plan/executor.d.ts +110 -0
  45. package/dist/server/services/plan/executor.d.ts.map +1 -0
  46. package/dist/server/services/plan/executor.js +641 -0
  47. package/dist/server/services/plan/executor.js.map +1 -0
  48. package/dist/server/services/plan/parser.d.ts +11 -0
  49. package/dist/server/services/plan/parser.d.ts.map +1 -0
  50. package/dist/server/services/plan/parser.js +445 -0
  51. package/dist/server/services/plan/parser.js.map +1 -0
  52. package/dist/server/services/plan/state-reconciler.d.ts +2 -0
  53. package/dist/server/services/plan/state-reconciler.d.ts.map +1 -0
  54. package/dist/server/services/plan/state-reconciler.js +145 -0
  55. package/dist/server/services/plan/state-reconciler.js.map +1 -0
  56. package/dist/server/services/plan/types.d.ts +121 -0
  57. package/dist/server/services/plan/types.d.ts.map +1 -0
  58. package/dist/server/services/plan/types.js +4 -0
  59. package/dist/server/services/plan/types.js.map +1 -0
  60. package/dist/server/services/plan/watcher.d.ts +14 -0
  61. package/dist/server/services/plan/watcher.d.ts.map +1 -0
  62. package/dist/server/services/plan/watcher.js +69 -0
  63. package/dist/server/services/plan/watcher.js.map +1 -0
  64. package/dist/server/services/websocket/file-explorer-handlers.js +20 -0
  65. package/dist/server/services/websocket/file-explorer-handlers.js.map +1 -1
  66. package/dist/server/services/websocket/handler.d.ts.map +1 -1
  67. package/dist/server/services/websocket/handler.js +21 -0
  68. package/dist/server/services/websocket/handler.js.map +1 -1
  69. package/dist/server/services/websocket/plan-handlers.d.ts +6 -0
  70. package/dist/server/services/websocket/plan-handlers.d.ts.map +1 -0
  71. package/dist/server/services/websocket/plan-handlers.js +494 -0
  72. package/dist/server/services/websocket/plan-handlers.js.map +1 -0
  73. package/dist/server/services/websocket/quality-handlers.d.ts.map +1 -1
  74. package/dist/server/services/websocket/quality-handlers.js +384 -12
  75. package/dist/server/services/websocket/quality-handlers.js.map +1 -1
  76. package/dist/server/services/websocket/quality-persistence.d.ts +45 -0
  77. package/dist/server/services/websocket/quality-persistence.d.ts.map +1 -0
  78. package/dist/server/services/websocket/quality-persistence.js +187 -0
  79. package/dist/server/services/websocket/quality-persistence.js.map +1 -0
  80. package/dist/server/services/websocket/quality-service.d.ts +12 -2
  81. package/dist/server/services/websocket/quality-service.d.ts.map +1 -1
  82. package/dist/server/services/websocket/quality-service.js +162 -18
  83. package/dist/server/services/websocket/quality-service.js.map +1 -1
  84. package/dist/server/services/websocket/types.d.ts +2 -2
  85. package/dist/server/services/websocket/types.d.ts.map +1 -1
  86. package/package.json +3 -3
  87. package/server/cli/headless/claude-invoker.ts +25 -12
  88. package/server/cli/headless/headless-logger.ts +78 -0
  89. package/server/cli/headless/mcp-config.ts +6 -5
  90. package/server/cli/headless/runner.ts +4 -0
  91. package/server/cli/headless/stall-assessor.ts +131 -24
  92. package/server/cli/headless/tool-watchdog.ts +10 -9
  93. package/server/cli/headless/types.ts +10 -1
  94. package/server/cli/improvisation-session-manager.ts +118 -11
  95. package/server/mcp/bouncer-cli.ts +73 -0
  96. package/server/services/plan/composer.ts +199 -0
  97. package/server/services/plan/dependency-resolver.ts +182 -0
  98. package/server/services/plan/executor.ts +700 -0
  99. package/server/services/plan/parser.ts +491 -0
  100. package/server/services/plan/state-reconciler.ts +174 -0
  101. package/server/services/plan/types.ts +166 -0
  102. package/server/services/plan/watcher.ts +73 -0
  103. package/server/services/websocket/file-explorer-handlers.ts +20 -0
  104. package/server/services/websocket/handler.ts +21 -0
  105. package/server/services/websocket/plan-handlers.ts +592 -0
  106. package/server/services/websocket/quality-handlers.ts +450 -12
  107. package/server/services/websocket/quality-persistence.ts +250 -0
  108. package/server/services/websocket/quality-service.ts +183 -18
  109. package/server/services/websocket/types.ts +48 -2
package/LICENSE CHANGED
@@ -1,21 +1,191 @@
1
- MIT License
2
-
3
- Copyright (c) 2025-present Mstro
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to the Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by the Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding any notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ Copyright 2025-present Mstro, Inc.
180
+
181
+ Licensed under the Apache License, Version 2.0 (the "License");
182
+ you may not use this file except in compliance with the License.
183
+ You may obtain a copy of the License at
184
+
185
+ http://www.apache.org/licenses/LICENSE-2.0
186
+
187
+ Unless required by applicable law or agreed to in writing, software
188
+ distributed under the License is distributed on an "AS IS" BASIS,
189
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
+ See the License for the specific language governing permissions and
191
+ limitations under the License.
package/PRIVACY.md CHANGED
@@ -1,21 +1,67 @@
1
1
  # Mstro Privacy Policy
2
2
 
3
- **Effective Date:** February 2026
3
+ **Effective Date:** March 2026
4
+ **Last Updated:** March 2026
4
5
 
5
- ## Overview
6
+ ---
7
+
8
+ ## 1. Introduction
9
+
10
+ Mstro, Inc. ("we", "us", "our", "Mstro") is committed to protecting your privacy and handling your personal data with transparency and care. This Privacy Policy explains how we collect, use, store, share, and protect your information when you use the Mstro platform, including the Mstro CLI, the mstro.app web application, and all related services (collectively, the "Service").
11
+
12
+ We are the **data controller** for personal data processed through the Service. Our registered place of business is in the United States.
13
+
14
+ **Privacy contact:** privacy@mstro.app
15
+ **Website:** https://mstro.app
16
+
17
+ If you have questions about how we handle your data, please contact us before using the Service.
18
+
19
+ ---
20
+
21
+ ## 2. Scope and Applicability
22
+
23
+ This policy applies to:
24
+
25
+ - Users who access mstro.app from any jurisdiction, including the European Union, United Kingdom, and European Economic Area (EEA)
26
+ - Users who install and run the Mstro CLI on their local machines
27
+ - Visitors to our website and GitHub repositories
28
+
29
+ This policy does not apply to third-party services, websites, or tools that you may access through or alongside Mstro.
30
+
31
+ ---
32
+
33
+ ## 3. Data We Collect and Lawful Basis
6
34
 
7
- Mstro, Inc. ("we", "us", "our") is committed to protecting your privacy. This Privacy Policy explains how we collect, use, and safeguard information when you use the Mstro CLI and related services.
35
+ We only process personal data where we have a valid lawful basis under Article 6 of the GDPR (or equivalent applicable law). The lawful basis for each category of processing is identified below.
8
36
 
9
- ## Information We Collect
37
+ ### 3.1 Account Information
10
38
 
11
- ### 1. Account Information
12
- When you create an account, we collect:
39
+ **What we collect:**
13
40
  - Email address
14
- - Name (optional)
15
- - Device identifiers (for authentication)
41
+ - Name (optional, if provided during registration)
42
+ - Clerk user ID (assigned by our authentication provider)
43
+ - Device identifiers and hashed device tokens (for the device code authentication flow)
16
44
 
17
- ### 2. Telemetry Data (Anonymous)
18
- By default, Mstro collects anonymous telemetry to improve the software:
45
+ **Lawful basis:** Performance of a contract (Article 6(1)(b) GDPR) -- this data is necessary to create and maintain your account and provide the Service.
46
+
47
+ **Storage:** Neon Postgres (platform database), managed by Fly.io infrastructure.
48
+
49
+ ### 3.2 Session and Workspace Data
50
+
51
+ **What we collect:**
52
+ - Orchestra configurations (workspace relay settings)
53
+ - Session metadata (connection timestamps, session identifiers, tab state)
54
+ - WebSocket connection state (held temporarily in Redis for active sessions)
55
+
56
+ **What we do NOT store:** File contents and source code transmitted through the WebSocket relay pass through our platform servers in transit but are **not stored** on our servers. They exist only in your active session.
57
+
58
+ **Lawful basis:** Performance of a contract (Article 6(1)(b) GDPR) -- session data is necessary to provide real-time workspace relay functionality.
59
+
60
+ **Storage:** Neon Postgres (persistent session metadata), Redis (ephemeral active-session state, not persisted beyond the session lifecycle).
61
+
62
+ ### 3.3 Anonymous Telemetry Data
63
+
64
+ By default, Mstro collects anonymous telemetry to improve the software. We process two categories of telemetry:
19
65
 
20
66
  **Error Reporting (via Sentry):**
21
67
  - Stack traces and error messages
@@ -34,20 +80,13 @@ By default, Mstro collects anonymous telemetry to improve the software:
34
80
  - Personal identifying information in error reports
35
81
  - IP addresses (stripped before storage)
36
82
 
37
- ### 3. Session Data
38
- When using mstro.app:
39
- - Orchestra configurations
40
- - Session metadata
41
- - Connection timestamps
42
-
43
- ## How to Opt Out of Telemetry
83
+ **Lawful basis:** Legitimate interests (Article 6(1)(f) GDPR) -- we have a legitimate interest in understanding how the software is used and identifying bugs in order to improve reliability and performance. This interest is not overridden by your rights because telemetry is anonymised before processing, you retain the ability to opt out at any time, and we collect the minimum data necessary.
44
84
 
45
- You can disable all telemetry at any time:
85
+ **How to opt out:**
46
86
 
47
87
  ```bash
48
88
  mstro telemetry off
49
-
50
- # Or via environment variable
89
+ # or
51
90
  export MSTRO_TELEMETRY=0
52
91
  ```
53
92
 
@@ -56,71 +95,256 @@ When telemetry is disabled:
56
95
  - No usage analytics are sent to PostHog
57
96
  - Core functionality remains unchanged
58
97
 
59
- ## How We Use Your Information
98
+ ### 3.4 Security Bouncer Audit Logs
99
+
100
+ The Mstro CLI includes a Security Bouncer component that evaluates and approves tool calls made by Claude Code running on your local machine. Audit records of these decisions are written to a local log file at:
101
+
102
+ ```
103
+ ~/.mstro/logs/bouncer-audit.jsonl
104
+ ```
60
105
 
61
- We use collected information to:
62
- - Provide and maintain the Mstro service
106
+ **Important:** These audit logs are stored **only on your local machine**. They are never transmitted to Mstro servers. However, because they may record the content of tool calls (for example, file paths, command arguments, or code snippets), they may incidentally contain personal data.
107
+
108
+ You are responsible for the security and retention of these local files. You may delete them at any time. We recommend reviewing this log periodically if you operate in a sensitive environment.
109
+
110
+ **Lawful basis:** Not applicable for platform purposes -- this data is not processed by Mstro, Inc. It is retained locally on your device and is outside our control.
111
+
112
+ ### 3.5 Credentials
113
+
114
+ Authentication credentials (including device tokens and session keys) are stored locally on your machine at `~/.mstro/credentials.json` with restrictive file permissions (chmod 600). These credentials are not transmitted to or stored on Mstro's platform servers beyond what is necessary for active authentication verification.
115
+
116
+ **Lawful basis:** Performance of a contract (Article 6(1)(b) GDPR) -- credentials are necessary to authenticate your access to the Service.
117
+
118
+ ### 3.6 Payment and Financial Data
119
+
120
+ For paid features of the Service, we collect and process payment information. This currently includes, and may in future include:
121
+
122
+ - Billing contact information (name, email, billing address)
123
+ - Payment method details (processed by Stripe; we do not store raw card numbers)
124
+ - Cryptocurrency wallet interactions (via Coinbase Smart Wallet integration, where applicable)
125
+ - Transaction history and subscription status
126
+
127
+ **Lawful basis:** Performance of a contract (Article 6(1)(b) GDPR) for billing and subscription management; Legal obligation (Article 6(1)(c) GDPR) for financial record-keeping and tax compliance.
128
+
129
+ **Note:** Payment processing is handled by third-party processors (Stripe, Coinbase). Their privacy policies govern the data they collect independently.
130
+
131
+ ---
132
+
133
+ ## 4. Cookies and Tracking Technologies
134
+
135
+ When you use mstro.app, we and our third-party service providers use cookies and similar tracking technologies.
136
+
137
+ ### 4.1 Types of Cookies We Use
138
+
139
+ | Category | Purpose | Examples | Can be disabled? |
140
+ |---|---|---|---|
141
+ | Strictly necessary | Authentication, session management, security | Clerk session cookies | No -- required for the Service |
142
+ | Analytics | Understanding how users interact with the platform | PostHog analytics cookies | Yes -- via telemetry opt-out or browser settings |
143
+ | Error tracking | Capturing errors for debugging | Sentry session replay (if enabled) | Yes -- via telemetry opt-out |
144
+
145
+ ### 4.2 Managing Cookies
146
+
147
+ You can control cookies through:
148
+
149
+ - **Browser settings:** Most browsers allow you to block or delete cookies. Blocking strictly necessary cookies will prevent the Service from functioning.
150
+ - **Telemetry opt-out:** Running `mstro telemetry off` or setting `MSTRO_TELEMETRY=0` disables analytics and error tracking cookies.
151
+ - **Do Not Track:** We respect browser-level Do Not Track signals for analytics processing.
152
+
153
+ We do not use cookies for advertising or cross-site tracking.
154
+
155
+ ---
156
+
157
+ ## 5. How We Use Your Information
158
+
159
+ We use personal data only for the purposes for which it was collected or for compatible purposes. Specifically:
160
+
161
+ - Provide, operate, and maintain the Mstro Service
162
+ - Authenticate your identity and manage your devices
163
+ - Process payments and manage subscriptions
63
164
  - Identify and fix bugs and crashes
64
165
  - Improve software performance and features
65
- - Communicate service updates and changes
66
- - Ensure security and prevent abuse
166
+ - Communicate service updates, security notices, and changes to this policy
167
+ - Ensure security, detect abuse, and protect against fraud
168
+ - Comply with applicable legal obligations
67
169
 
68
- ## Data Sharing
170
+ We do not use your personal data for automated decision-making or profiling that produces legal or similarly significant effects.
69
171
 
70
- We do not sell your personal information. We may share data with:
172
+ ---
71
173
 
72
- - **Service Providers:** Third-party services that help operate Mstro (e.g., Sentry for error tracking, PostHog for analytics)
73
- - **Legal Requirements:** When required by law or to protect our rights
74
- - **Business Transfers:** In connection with a merger or acquisition
174
+ ## 6. Data Sharing and Processors
75
175
 
76
- ## Data Retention
176
+ We do not sell your personal information. We do not share personal data with third parties for their own marketing purposes.
77
177
 
78
- - **Account Data:** Retained while your account is active
79
- - **Telemetry Data:** Retained for up to 90 days
80
- - **Error Reports:** Retained for up to 30 days
178
+ We engage the following data processors, each bound by data processing agreements and appropriate contractual safeguards:
81
179
 
82
- ## Data Security
180
+ | Processor | Role | Data Processed | Location |
181
+ |---|---|---|---|
182
+ | **Clerk** | Authentication and identity management | Email, name, device identifiers, session tokens | United States |
183
+ | **Neon** | Managed Postgres database | Account data, session metadata, device records | United States |
184
+ | **Fly.io** | Platform server hosting and infrastructure | All server-side data in transit and at rest | United States (primary) |
185
+ | **Vercel** | Web frontend hosting (mstro.app) | Web request logs, static asset delivery | United States / Global CDN |
186
+ | **Sentry** | Error tracking and monitoring | Anonymised error reports, stack traces | United States |
187
+ | **PostHog** | Product analytics | Anonymised usage events | United States (EU hosting option available) |
188
+ | **Stripe** | Payment processing | Billing information, payment method data | United States |
189
+ | **Coinbase** | Cryptocurrency wallet integration | Wallet interaction data (where applicable) | United States |
83
190
 
84
- We implement appropriate security measures including:
85
- - Encryption in transit (TLS/HTTPS)
86
- - Secure credential storage (chmod 600)
87
- - Regular security audits
88
- - Minimal data collection principles
191
+ We may also disclose personal data in the following circumstances:
89
192
 
90
- ## Your Rights
193
+ - **Legal requirements:** Where required by applicable law, court order, or regulatory authority, including to comply with valid legal process.
194
+ - **Protection of rights:** Where necessary to protect the rights, property, or safety of Mstro, our users, or the public.
195
+ - **Business transfers:** In connection with a merger, acquisition, or sale of all or a portion of our assets, in which case we will provide notice before personal data is transferred and becomes subject to a different privacy policy.
91
196
 
92
- Depending on your jurisdiction, you may have rights to:
93
- - Access your personal data
94
- - Correct inaccurate data
95
- - Delete your data
96
- - Export your data
97
- - Opt out of data collection
197
+ ---
98
198
 
99
- To exercise these rights, contact us at the information below.
199
+ ## 7. International Data Transfers
100
200
 
101
- ## Children's Privacy
201
+ Mstro, Inc. is based in the United States. If you are located in the European Union, United Kingdom, EEA, or other jurisdictions with data transfer restrictions, your personal data is transferred to and processed in the United States.
102
202
 
103
- Mstro is not intended for users under 13 years of age. We do not knowingly collect information from children.
203
+ We ensure that such transfers are subject to appropriate safeguards as required by applicable law. Specifically:
104
204
 
105
- ## International Users
205
+ - **Standard Contractual Clauses (SCCs):** We rely on the European Commission-approved Standard Contractual Clauses (including, where applicable, the UK International Data Transfer Addendum) as the transfer mechanism for personal data transferred from the EU/EEA/UK to the United States.
206
+ - **Processor agreements:** All third-party processors who receive personal data from EU/EEA/UK users are required to maintain SCCs or another valid transfer mechanism.
106
207
 
107
- Mstro is operated from the United States. By using the service, you consent to the transfer of your information to the United States.
208
+ You may request a copy of the applicable transfer safeguards by contacting us at privacy@mstro.app.
108
209
 
109
- ## Changes to This Policy
210
+ ---
211
+
212
+ ## 8. Data Retention
213
+
214
+ We retain personal data only for as long as necessary for the purposes for which it was collected, or as required by law.
215
+
216
+ | Data Category | Retention Period |
217
+ |---|---|
218
+ | Account data (email, name, Clerk ID) | Retained while your account is active; deleted within 30 days of account deletion |
219
+ | Device records and hashed tokens | Deleted upon device deregistration or account deletion |
220
+ | Session metadata | Retained for up to 12 months from the session date |
221
+ | Redis session state | Ephemeral; purged at session end |
222
+ | Telemetry -- error reports (Sentry) | Up to 30 days |
223
+ | Telemetry -- usage analytics (PostHog) | Up to 90 days |
224
+ | Payment records | Retained for up to 7 years as required by applicable tax and financial regulations |
225
+ | Local audit logs (`bouncer-audit.jsonl`) | Stored only on your machine; not subject to our retention schedule |
226
+
227
+ When your account is deleted, we will delete or anonymise your personal data within 30 days, unless a longer retention period is required by law or legitimate business necessity (for example, for fraud investigation or to resolve outstanding disputes).
228
+
229
+ ---
230
+
231
+ ## 9. Your Rights Under GDPR and Applicable Law
232
+
233
+ If you are located in the European Union, United Kingdom, or EEA, you have the following rights with respect to your personal data:
234
+
235
+ | Right | Description |
236
+ |---|---|
237
+ | **Right of access** | Request a copy of the personal data we hold about you |
238
+ | **Right to rectification** | Request correction of inaccurate or incomplete personal data |
239
+ | **Right to erasure** | Request deletion of your personal data ("right to be forgotten"), subject to legal retention obligations |
240
+ | **Right to restriction** | Request that we restrict processing of your personal data in certain circumstances |
241
+ | **Right to data portability** | Receive your personal data in a structured, commonly used, machine-readable format |
242
+ | **Right to object** | Object to processing based on legitimate interests; object to direct marketing at any time |
243
+ | **Right to withdraw consent** | Where processing is based on consent, withdraw it at any time without affecting prior processing |
244
+ | **Right not to be subject to automated decisions** | Not be subject to solely automated decisions that produce legal or similarly significant effects |
245
+
246
+ **Response timeframe:** We will respond to all valid data subject requests within **30 days** of receipt. Where requests are complex or numerous, we may extend this period by a further two months, in which case we will notify you within the initial 30-day period.
247
+
248
+ **How to exercise your rights:** Submit a request by email to privacy@mstro.app. We may need to verify your identity before processing your request.
249
+
250
+ **Residents of other jurisdictions:** If you are a California resident, you may have additional rights under the CCPA/CPRA, including the right to know, delete, correct, and opt out of sale (we do not sell data). Contact us at privacy@mstro.app for jurisdiction-specific requests.
251
+
252
+ ---
253
+
254
+ ## 10. Right to Lodge a Complaint
255
+
256
+ If you believe we have not handled your personal data in accordance with applicable law, you have the right to lodge a complaint with a supervisory authority.
257
+
258
+ - **EU:** Contact the data protection authority in your EU member state. A list of EU supervisory authorities is available at: https://edpb.europa.eu/about-edpb/about-edpb/members_en
259
+ - **UK:** Contact the Information Commissioner's Office (ICO) at https://ico.org.uk
260
+
261
+ We ask that you contact us first at privacy@mstro.app so that we have the opportunity to address your concern before you escalate to a supervisory authority.
262
+
263
+ ---
264
+
265
+ ## 11. Data Protection Officer
266
+
267
+ At Mstro's current scale and given the nature of our processing activities, we are not required to appoint a Data Protection Officer (DPO) under Article 37 of the GDPR. We nonetheless take privacy obligations seriously and have designated a privacy contact to handle data protection matters.
268
+
269
+ **Privacy contact:** privacy@mstro.app
270
+
271
+ If our processing activities change in a way that triggers the DPO requirement, we will appoint a DPO and update this policy accordingly.
272
+
273
+ ---
274
+
275
+ ## 12. Data Security
276
+
277
+ We implement appropriate technical and organisational measures to protect your personal data against unauthorised access, accidental loss, destruction, or disclosure:
278
+
279
+ - Encryption in transit using TLS/HTTPS for all platform communications
280
+ - Secure local credential storage with restrictive file permissions (chmod 600)
281
+ - Hashed device tokens (SHA-256) -- plaintext tokens are never stored
282
+ - Neon Postgres encryption at rest
283
+ - Regular security reviews of platform infrastructure
284
+ - Minimal data collection -- we do not collect what we do not need
285
+ - Access controls limiting personnel access to personal data on a need-to-know basis
286
+
287
+ No method of electronic transmission or storage is 100% secure. We cannot guarantee absolute security, but we are committed to maintaining industry-standard protections.
288
+
289
+ ---
290
+
291
+ ## 13. Data Breach Notification
292
+
293
+ In the event of a personal data breach that is likely to result in a risk to the rights and freedoms of individuals, we will:
294
+
295
+ - Notify the relevant supervisory authority **within 72 hours** of becoming aware of the breach, as required by Article 33 of the GDPR
296
+ - Notify affected individuals **without undue delay** where the breach is likely to result in a high risk to their rights and freedoms, as required by Article 34 of the GDPR
297
+ - Document all data breaches in our internal breach register, regardless of whether notification is required
298
+
299
+ Breach notifications to affected users will be sent to the email address associated with your account. We recommend keeping your account email address current.
300
+
301
+ ---
302
+
303
+ ## 14. Children's Privacy
304
+
305
+ **General use:** The Service is not directed to children under the age of **13**. We do not knowingly collect personal data from children under 13. If you believe a child under 13 has provided us with personal data, please contact us at privacy@mstro.app and we will promptly delete that information.
306
+
307
+ **Payment features:** Access to paid features and any functionality involving financial transactions requires users to be at least **18 years of age** (or the age of majority in their jurisdiction, if higher). We do not knowingly permit minors to engage in payment-related activities on the platform.
308
+
309
+ If you are a parent or guardian and believe your child has used or registered for the Service in violation of this policy, please contact us.
310
+
311
+ ---
312
+
313
+ ## 15. Open Source
314
+
315
+ The Mstro CLI is open source software, licensed under the **Apache License, Version 2.0**. The source code is available at https://github.com/mstro-app/mstro.
316
+
317
+ Your use of the open source CLI code is governed by the Apache 2.0 License terms. This Privacy Policy applies to your use of the hosted Service (mstro.app platform, relay server) and any personal data processed in connection with your Mstro account, regardless of whether you use the open source CLI or another client.
318
+
319
+ ---
320
+
321
+ ## 16. Changes to This Policy
322
+
323
+ We may update this Privacy Policy from time to time to reflect changes in our practices, technology, legal requirements, or other factors.
324
+
325
+ When we make material changes, we will:
326
+
327
+ - Update the "Last Updated" date at the top of this policy
328
+ - Notify registered users by email at least **14 days** before the changes take effect (for material changes affecting your rights)
329
+ - Display a notice on mstro.app
330
+
331
+ Your continued use of the Service after the effective date of a revised policy constitutes your acknowledgment of the changes. If you do not agree to the revised policy, you should discontinue use of the Service and may request deletion of your account.
332
+
333
+ ---
110
334
 
111
- We may update this Privacy Policy periodically. We will notify users of significant changes through the CLI or our website.
335
+ ## 17. Contact Us
112
336
 
113
- ## Open Source
337
+ For privacy-related questions, data subject requests, or concerns about this policy:
114
338
 
115
- Mstro CLI is open source under the MIT License. You can review the code at:
116
- https://github.com/mstro-app/mstro
339
+ **Email:** privacy@mstro.app
340
+ **Website:** https://mstro.app
341
+ **GitHub Issues:** https://github.com/mstro-app/mstro/issues
117
342
 
118
- ## Contact Us
343
+ **Mstro, Inc.**
344
+ United States
119
345
 
120
- For privacy-related questions or concerns:
121
- - Website: https://mstro.app
122
- - GitHub: https://github.com/mstro-app/mstro/issues
346
+ For formal data subject requests under GDPR or applicable law, please include "Privacy Request" in the subject line of your email.
123
347
 
124
348
  ---
125
349
 
126
- Copyright (c) 2025-present Mstro, Inc. All rights reserved.
350
+ *Copyright (c) 2025-present Mstro, Inc. All rights reserved.*