memhouse 0.18.12 → 0.20.1

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 (169) hide show
  1. package/AGENTS.md +22 -151
  2. package/CHANGELOG.md +263 -29
  3. package/LICENSE +202 -22
  4. package/LICENSES/agentlytics-MIT.txt +21 -0
  5. package/LICENSES/memhouse-MIT-until-0.18.11.txt +22 -0
  6. package/LICENSES/models.dev-MIT.txt +22 -0
  7. package/NOTICE +28 -0
  8. package/README.md +42 -20
  9. package/SECURITY.md +21 -8
  10. package/bin/memhouse.js +2223 -311
  11. package/docs/README.md +11 -9
  12. package/docs/guides/admin-password.md +37 -10
  13. package/docs/guides/configuration.md +13 -6
  14. package/docs/guides/daemons.md +64 -3
  15. package/docs/guides/import-claude-ai.md +204 -0
  16. package/docs/guides/install.md +11 -6
  17. package/docs/guides/invite.md +21 -7
  18. package/docs/guides/operate.md +114 -7
  19. package/docs/guides/search-and-resume.md +72 -3
  20. package/docs/guides/share.md +91 -52
  21. package/docs/guides/storage.md +44 -4
  22. package/docs/guides/troubleshooting.md +121 -14
  23. package/docs/guides/uninstall.md +4 -3
  24. package/docs/guides/update.md +16 -0
  25. package/docs/guides/upgrade-to-0.20.md +188 -0
  26. package/docs/releases/README.md +2 -1
  27. package/docs/releases/v0.18.10.md +5 -5
  28. package/docs/releases/v0.18.11.md +3 -3
  29. package/docs/releases/v0.20.0.md +627 -0
  30. package/docs/releases/v0.20.1.md +114 -0
  31. package/docs/tutorials/01-first-house.md +10 -7
  32. package/docs/tutorials/02-join-a-house.md +24 -15
  33. package/docs/tutorials/03-share-your-memory.md +40 -31
  34. package/editors/antigravity.js +1 -80
  35. package/editors/base.js +463 -9
  36. package/editors/bridge.js +119 -0
  37. package/editors/claude.js +273 -105
  38. package/editors/codex.js +278 -52
  39. package/editors/copilot.js +1 -70
  40. package/editors/cursor.js +1 -75
  41. package/editors/derive-fingerprints.json +18 -0
  42. package/editors/harness-paths.js +69 -0
  43. package/editors/index.js +1 -20
  44. package/editors/normalise/agy.js +910 -0
  45. package/editors/normalise/copilot-cli.js +321 -0
  46. package/editors/normalise/cursor-agent.js +852 -0
  47. package/editors/normalise/cursor.js +474 -0
  48. package/editors/normalise/devin.js +575 -0
  49. package/editors/normalise/gemini-cli.js +602 -0
  50. package/editors/normalise/goose.js +673 -0
  51. package/editors/normalise/opencode.js +633 -0
  52. package/editors/normalise/vscode.js +549 -0
  53. package/editors/normalise/zed.js +473 -0
  54. package/editors/opencode-v4.js +119 -0
  55. package/editors/scope.js +14 -3
  56. package/editors/sessions-log.js +349 -0
  57. package/editors/sqlite.js +28 -1
  58. package/editors/vscode.js +1 -72
  59. package/editors/windsurf.js +1 -143
  60. package/examples/01-local-one-machine/README.md +24 -19
  61. package/examples/01-local-one-machine/run.sh +1 -1
  62. package/examples/02-existing-clickhouse/README.md +30 -22
  63. package/examples/02-existing-clickhouse/run.sh +5 -4
  64. package/examples/03-team-house/README.md +44 -37
  65. package/examples/03-team-house/run.sh +35 -18
  66. package/examples/04-self-hosted-team/README.md +29 -14
  67. package/examples/04-self-hosted-team/compose.yml +5 -2
  68. package/examples/04-self-hosted-team/smoke.sh +26 -12
  69. package/examples/README.md +8 -4
  70. package/examples/fixtures/README.md +4 -1
  71. package/examples/fixtures/make-sessions.js +8 -5
  72. package/memhouse/admin-secret.js +89 -24
  73. package/memhouse/argv-secrets.js +64 -0
  74. package/memhouse/channel.js +49 -9
  75. package/memhouse/codex-plugin.js +194 -0
  76. package/memhouse/delivery/AGENT-INSTALL-PROMPT.md +2 -1
  77. package/memhouse/delivery/AGENT-INSTALL.md +22 -11
  78. package/memhouse/delivery/INVITATION.md.tpl +44 -45
  79. package/memhouse/delivery/PROMPT.md +53 -5
  80. package/memhouse/delivery/UPGRADE.md.tpl +1 -1
  81. package/memhouse/delivery/codex/AGENTS-BLOCK.md +11 -0
  82. package/memhouse/delivery/codex/SKILL.md +50 -0
  83. package/memhouse/delivery/kernel-install.md +17 -9
  84. package/memhouse/delivery/plugin/.claude-plugin/plugin.json +2 -2
  85. package/memhouse/delivery/plugin/reference/HOUSE.md +168 -41
  86. package/memhouse/delivery/plugin/skills/access/SKILL.md +13 -5
  87. package/memhouse/delivery/plugin/skills/admin/SKILL.md +14 -6
  88. package/memhouse/delivery/plugin/skills/house/SKILL.md +25 -8
  89. package/memhouse/delivery/plugin/skills/recall/SKILL.md +66 -8
  90. package/memhouse/delivery/plugin/skills/sql/SKILL.md +66 -7
  91. package/memhouse/deploy.js +1 -1
  92. package/memhouse/flags.js +35 -18
  93. package/memhouse/help.js +37 -0
  94. package/memhouse/host.js +82 -2
  95. package/memhouse/house/HOUSE.md +2 -2
  96. package/memhouse/house/convert-profile.js +638 -0
  97. package/memhouse/house/convert-v3.js +742 -0
  98. package/memhouse/house/doctor-v3.js +324 -0
  99. package/memhouse/house/host-alias.js +85 -0
  100. package/memhouse/house/house.js +3 -3
  101. package/memhouse/house/migrate.js +2 -2
  102. package/memhouse/house/profile-dedupe.js +183 -0
  103. package/memhouse/house/profile-edges.js +554 -0
  104. package/memhouse/house/profile-house.js +430 -0
  105. package/memhouse/house/profile-rollup.js +190 -0
  106. package/memhouse/house/q-cli.js +863 -0
  107. package/memhouse/house/queries-v3.js +1013 -0
  108. package/memhouse/house/reconcile-v3.js +192 -0
  109. package/memhouse/house/records-to-profile.js +174 -0
  110. package/memhouse/house/records-to-rows.js +169 -0
  111. package/memhouse/house/relocate.js +2 -1
  112. package/memhouse/house/schema-choice.js +121 -0
  113. package/memhouse/house/schema-profile.js +290 -0
  114. package/memhouse/house/schema-profile.sql.tpl +398 -0
  115. package/memhouse/house/schema-v3.js +267 -0
  116. package/memhouse/house/schema-v3.sql.tpl +213 -0
  117. package/memhouse/import/claude-ai.js +420 -0
  118. package/memhouse/import/import.js +372 -0
  119. package/memhouse/import/pyjson.js +206 -0
  120. package/memhouse/import/records.js +64 -0
  121. package/memhouse/import/writer-profile.js +192 -0
  122. package/memhouse/import/writer-v3.js +240 -0
  123. package/memhouse/import/zip.js +112 -0
  124. package/memhouse/invitation.js +102 -0
  125. package/memhouse/invitefile.js +5 -2
  126. package/memhouse/plugin-copies.js +176 -0
  127. package/memhouse/provision.js +7 -2
  128. package/memhouse/release-hint.js +24 -0
  129. package/memhouse/resume.js +4 -4
  130. package/memhouse/server/api-v3.js +632 -0
  131. package/memhouse/server/dashboard-auth.js +181 -0
  132. package/memhouse/server/dashboard-port.js +91 -0
  133. package/memhouse/server/queries.js +30 -0
  134. package/memhouse/server/server.js +118 -20
  135. package/memhouse/service.js +1 -1
  136. package/memhouse/share.js +687 -1
  137. package/memhouse/shipper/adapter-capture.js +756 -0
  138. package/memhouse/shipper/capture.js +2571 -0
  139. package/memhouse/shipper/dedupe-profile.js +237 -0
  140. package/memhouse/shipper/dedupe-v3.js +1027 -0
  141. package/memhouse/shipper/forks.js +233 -0
  142. package/memhouse/shipper/log-adapter.js +219 -0
  143. package/memhouse/shipper/maintenance.js +49 -0
  144. package/memhouse/shipper/normalise-run.js +148 -0
  145. package/memhouse/shipper/passlog.js +68 -5
  146. package/memhouse/shipper/profile-capture.js +903 -0
  147. package/memhouse/shipper/ship.js +91 -8
  148. package/memhouse/shipper/snapshots.js +193 -0
  149. package/memhouse/shipper/source-roots.js +111 -0
  150. package/memhouse/version-notice.js +66 -0
  151. package/package.json +14 -7
  152. package/public/THIRD_PARTY_NOTICES.txt +2 -2
  153. package/public/assets/index-CcNnhfM3.js +78 -0
  154. package/public/index.html +1 -1
  155. package/ui/package-lock.json +56 -37
  156. package/ui/package.json +1 -0
  157. package/ui/src/App.jsx +29 -14
  158. package/ui/src/components/ChatSidebar.jsx +69 -12
  159. package/ui/src/lib/api.js +76 -0
  160. package/ui/src/lib/dashboard-token.js +41 -0
  161. package/ui/src/main.jsx +22 -5
  162. package/ui/src/pages/Dashboard.jsx +22 -36
  163. package/ui/third-party-notices.js +119 -0
  164. package/ui/vite.config.js +5 -1
  165. package/docs/releases/v0.18.12.md +0 -59
  166. package/memhouse/COMPETITION.md +0 -221
  167. package/memhouse/DESIGN.md +0 -222
  168. package/memhouse/RESUME-AND-UPDATE.md +0 -182
  169. package/public/assets/index-CnWzrjF3.js +0 -78
package/LICENSE CHANGED
@@ -1,22 +1,202 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Fatih Kadir Akın (agentlytics — original work)
4
- Copyright (c) 2026 Ramazan Polat (memhouse — derivative work)
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all
14
- copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- 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 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 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 those 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
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Fatih Kadir Akın
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.
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Fatih Kadir Akın (agentlytics — original work)
4
+ Copyright (c) 2026 Ramazan Polat (memhouse — derivative work)
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 models.dev
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.
22
+
package/NOTICE ADDED
@@ -0,0 +1,28 @@
1
+ memhouse
2
+ Copyright 2026 Ramazan Polat
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE), from
5
+ version 0.19.0. Releases up to and including 0.18.11 were published under the MIT
6
+ License; that text is kept in LICENSES/memhouse-MIT-until-0.18.11.txt and continues to
7
+ apply to those releases.
8
+
9
+ ------------------------------------------------------------------------------------
10
+ This product includes software from agentlytics
11
+ (https://github.com/f/agentlytics), MIT (declared in its README:
12
+ https://github.com/f/agentlytics/blob/master/README.md#license), Copyright (c) 2026
13
+ Fatih Kadir Akın. See LICENSES/agentlytics-MIT.txt.
14
+
15
+ memhouse was forked from agentlytics at commit 4cba3d8 (2026-06-21); the editor
16
+ adapters, the dashboard and the cost engine originate there, and this repository's
17
+ history carries that lineage. Every commit on main by an author other than Ramazan
18
+ Polat predates the fork.
19
+
20
+ ------------------------------------------------------------------------------------
21
+ pricing.json is derived from the models.dev model catalog
22
+ (https://github.com/anomalyco/models.dev), Copyright (c) 2025 models.dev, licensed
23
+ under the MIT License. See LICENSES/models.dev-MIT.txt.
24
+
25
+ ------------------------------------------------------------------------------------
26
+ The built dashboard (public/) bundles third-party packages (React, chart.js,
27
+ lucide-react, react-markdown, tailwindcss and others) under their own licenses. Their
28
+ notices are in public/THIRD_PARTY_NOTICES.txt, generated at build time.
package/README.md CHANGED
@@ -13,9 +13,19 @@ Cloud. memhouse runs no service of its own and proxies nothing. Then you, and yo
13
13
  can search every past session, see what it cost, and reopen the one that solved this
14
14
  before.
15
15
 
16
- Every row says where it came from, in a way no client can fake. `user_id` is stamped by
17
- the server (`MATERIALIZED currentUser()`), and `host` is a fingerprint derived from
18
- the machine's own id. A team pointed at one house gets a shared memory with real attribution.
16
+ Every row says where it came from, in a way no client can fake. The server stamps the writing
17
+ user on every conversation and archive row (`writer`, `MATERIALIZED currentUser()`; `user_id` on the 0.18 rooms), and
18
+ `host` is a fingerprint derived from the machine's own id. A team pointed at one house gets a shared memory with real attribution.
19
+
20
+ ## New in 0.20
21
+
22
+ - **A session is its store.** Every session is keyed by the machine, the harness, the harness's data folder (for OpenCode, its database file) and its own id. Two machines, or two data folders on one machine, never merge into one session.
23
+ - **Ten editors read as they store their sessions:** agy, Copilot CLI, Cursor, cursor-agent, Devin, Gemini CLI, Goose, OpenCode, VS Code and Zed. Each gets a normaliser that reads its store directly. Claude Code and Codex are read natively. The rest go through the 0.18 readers.
24
+ - **Nothing is cut or lost.** Tool output is kept in full. A message an editor reverts, rewinds or deletes stays in the house as a removed version: searchable with `memhouse q removed`, never counted.
25
+ - **A fork is billed once.** Where one session copies another (a fork, a rewind copy), the copied prefix counts only in the original.
26
+ - **Sharing is narrower.** A share is `SELECT` on exactly six conversation tables, full or scoped, and never reaches the capture archive or memhouse's own tables.
27
+ - **Import a claude.ai export** with `memhouse import claude-ai`: [the guide](https://unpkg.com/memhouse/docs/guides/import-claude-ai.md).
28
+ - **New houses start on schema 3.** An existing 0.18 house keeps working on 0.20 as it is until its admin converts it: see [Upgrade to 0.20](https://unpkg.com/memhouse/docs/guides/upgrade-to-0.20.md).
19
29
 
20
30
  ## Install
21
31
 
@@ -26,30 +36,32 @@ memhouse onboard # finds your editors, sets up a house, ships, start
26
36
 
27
37
  No ClickHouse yet? `memhouse deploy --local` runs one in docker or podman, bound to
28
38
  loopback, and installs against it. Already have one, or an invite from someone who does?
29
- See [install and onboard](docs/guides/install.md).
39
+ See [install and onboard](https://unpkg.com/memhouse/docs/guides/install.md).
30
40
 
31
41
  ## What you get
32
42
 
33
43
  ```bash
34
44
  memhouse status # is it shipping, and how fresh
35
45
  memhouse search "auth error" # full-text across every session, every machine
46
+ memhouse q recent # the latest sessions; `memhouse q` lists every named query
36
47
  memhouse resume claude-code:6b1f… # prints the command that reopens that session
37
- memhouse plugins install claude # /mem:recall and four more skills for your agents
48
+ memhouse plugins install claude # /mem:recall and four more skills, for Claude Code
38
49
  ```
39
50
 
40
- The dashboard is at `http://localhost:4640`, showing sessions, cost, models, tools and
41
- machines. From any Claude Code session, `/mem:recall how did I fix the ClickHouse auth
42
- error` answers from your own history.
51
+ `memhouse dashboard` opens the dashboard in your browser, showing sessions, cost, models,
52
+ tools and machines. From any Claude Code session, `/mem:recall how did I fix the ClickHouse
53
+ auth error` answers from your own history.
43
54
 
44
55
  ## Documentation
45
56
 
46
57
  | | |
47
58
  |---|---|
48
- | [Tutorials](docs/README.md#tutorials) | your first house, joining a team's house, sharing memory |
49
- | [Guides](docs/README.md#guides) | install, update, invite, share, admin credentials, daemons, search, troubleshooting |
50
- | [Examples](examples/README.md) | runnable setups, from one machine up to a self-hosted team house |
51
- | [Release notes](docs/releases/) | what changed in each version, and how to upgrade |
52
- | [`AGENTS.md`](AGENTS.md) | installing memhouse as an agent, and working on this repository |
59
+ | [Tutorials](https://unpkg.com/memhouse/docs/README.md) | your first house, joining a team's house, sharing memory |
60
+ | [Guides](https://unpkg.com/memhouse/docs/README.md) | install, update, upgrade to 0.20, invite, share, admin credentials, daemons, search, claude.ai import, troubleshooting |
61
+ | [Examples](https://unpkg.com/memhouse/examples/README.md) | runnable setups, from one machine up to a self-hosted team house |
62
+ | [Release notes](https://unpkg.com/memhouse/docs/releases/) | what changed in each version, and how to upgrade |
63
+ | [`AGENTS.md`](https://unpkg.com/memhouse/AGENTS.md) | installing and deploying memhouse, for an agent doing it for its principal |
64
+ | `CONTRIBUTING.md` | working on this repository (in the repository, not in the npm package) |
53
65
 
54
66
  Any command's own usage: `memhouse <command> --help`. Every command works both ways:
55
67
  interactive for you, and `--yes` / flags / `--json` for an agent.
@@ -72,12 +84,22 @@ node bin/memhouse.js …
72
84
  npm test # syntax gate + unit checks
73
85
  ```
74
86
 
75
- See [`AGENTS.md`](AGENTS.md) before your first change. Deeper reading:
76
- `memhouse/DESIGN.md` (the design and why), `memhouse/house/HOUSE.md` (layout and schema),
77
- `SECURITY.md` (what holds, and what does not).
87
+ See `CONTRIBUTING.md` (repository) before your first change. Deeper reading:
88
+ `memhouse/DESIGN.md` (the design and why; in the repository only), `memhouse/house/HOUSE.md`
89
+ (layout and schema), `SECURITY.md` (what holds, and what does not).
90
+
91
+ ## License
92
+
93
+ memhouse is licensed under the [Apache License 2.0](https://unpkg.com/memhouse/LICENSE): the CLI, the shipper, the
94
+ dashboard, the tools and the docs alike. See [`NOTICE`](https://unpkg.com/memhouse/NOTICE).
78
95
 
79
- ## Heritage and license
96
+ **Relicensed from MIT to Apache-2.0 from 0.19.0 (the first release under it is 0.20.0); releases up to and including 0.18.11
97
+ remain MIT** (the text is kept in
98
+ [`LICENSES/memhouse-MIT-until-0.18.11.txt`](https://unpkg.com/memhouse/LICENSES/memhouse-MIT-until-0.18.11.txt)).
80
99
 
81
- Built on [agentlytics](https://github.com/f/agentlytics) by Fatih Kadir Akın (MIT). The
82
- adapters, dashboard and cost engine come from there, and this repository's history carries
83
- the full lineage. MIT.
100
+ Built on [agentlytics](https://github.com/f/agentlytics) by Fatih Kadir Akın (MIT; see
101
+ [`LICENSES/agentlytics-MIT.txt`](https://unpkg.com/memhouse/LICENSES/agentlytics-MIT.txt)). The adapters, dashboard
102
+ and cost engine come from there, and this repository's history carries the full lineage.
103
+ Model prices come from [models.dev](https://github.com/anomalyco/models.dev) (MIT). The
104
+ built dashboard's bundled packages are listed with their licenses in
105
+ `public/THIRD_PARTY_NOTICES.txt`.
package/SECURITY.md CHANGED
@@ -28,6 +28,11 @@ makes the security model short, and worth stating without varnish.
28
28
  stores it empty; measured on 25.11).
29
29
  - **The dashboard binds loopback** (`127.0.0.1`) by default, and `deploy --local`
30
30
  binds the ClickHouse container to loopback too.
31
+ - **The dashboard requires a per-user token** on every /api request, as a Bearer header: a
32
+ random secret in `$MEMHOUSE_HOME/dashboard-token`, mode 600 (a file other users can read is
33
+ refused). No cookie is set or accepted. `memhouse dashboard` first has the server on
34
+ `127.0.0.1` prove it holds the token, then opens the dashboard through a mode-600 page with the
35
+ token in the URL's fragment, never on a command line, and prints the token only to a terminal.
31
36
  - **Credentials are never printed.** The skills are under standing instruction not to
32
37
  echo the env file, and the API's responses and error bodies were checked for
33
38
  credential leakage under the acceptance suite.
@@ -35,10 +40,11 @@ makes the security model short, and worth stating without varnish.
35
40
 
36
41
  ## What you must know
37
42
 
38
- - **The dashboard has no authentication.** Loopback-only is the protection. If you
39
- expose `MEMHOUSE_HOST=0.0.0.0`, anyone who can reach the port can read every
40
- transcript in the house and run read-only SQL. Do not expose it; put a reverse proxy
41
- with auth in front if you must.
43
+ - **The dashboard's token is house access.** It opens every transcript in the house and the
44
+ read-only SQL console. The page keeps it for its browser tab only and sends it as a Bearer
45
+ header; no cookie is set. The dashboard serves plain HTTP and binds `127.0.0.1`: to use it
46
+ from another machine, forward the port over SSH (`ssh -L 4640:127.0.0.1:4640 <host>`) rather
47
+ than setting `MEMHOUSE_HOST=0.0.0.0`, which would send the token over the network unencrypted.
42
48
  - **`/api/query` is read-only by enforcement, within limits.** Writes and table
43
49
  functions (`url()`, `file()`, …) are refused server-side per request; resource use is
44
50
  capped per query. It is still full SQL over your own house — treat dashboard access
@@ -61,10 +67,17 @@ makes the security model short, and worth stating without varnish.
61
67
  and in a shared house the names are guessable anyway (`<member>_messages`), while
62
68
  `SHOW USERS` is granted to members deliberately so `/mem:house` can list who to share
63
69
  with. Treat membership as public and content as private.
70
+ - **What a member can see of the other members.** Their user names and their table names, as
71
+ above. Not their grants: a member cannot read `system.grants`. Not their scoped shares (who
72
+ reads them, under which filter): a member holds no `SHOW ROW POLICIES`, so
73
+ `system.row_policies` is closed to it. It sees its own shares through memhouse's record
74
+ (`memhouse share --list`). Not their rows, except what they share with it. A member made
75
+ before 0.20 held `SHOW ROW POLICIES` until its admin runs `memhouse migrate --v3-shares`
76
+ ([release notes](docs/releases/v0.20.0.md#security)).
64
77
 
65
78
  ## Reporting
66
79
 
67
- The repository is private during beta. Report a security issue privately, never in a
68
- public issue or channel: once the repository is public, through GitHub's private
69
- vulnerability reporting (the **Security** tab, **Report a vulnerability**); until then,
70
- to the maintainer through the channel that gave you access.
80
+ Report a security issue privately, never in a public issue or channel: by e-mail to
81
+ **security@memhouse.io**. The repository is private during beta; once it is public, GitHub's
82
+ private vulnerability reporting (the **Security** tab, **Report a vulnerability**) is a
83
+ second route.