memhouse 0.12.6 → 0.12.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/memhouse.js
CHANGED
|
@@ -667,15 +667,13 @@ CREATE USER IF NOT EXISTS ${member} IDENTIFIED BY '${password.replace(/'/g, "\\'
|
|
|
667
667
|
|
|
668
668
|
${rooms.trim()}
|
|
669
669
|
|
|
670
|
-
-- The whole database. ALL on your own house reaches nothing outside it
|
|
671
|
-
-- the boundary — and it
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
--
|
|
675
|
-
--
|
|
676
|
-
|
|
677
|
-
-- they can open a read-only window into their own memory and can hand on nothing more.
|
|
678
|
-
GRANT SELECT ON ${db}.* TO ${member} WITH GRANT OPTION;
|
|
670
|
+
-- The whole database, WITH GRANT OPTION. ALL on your own house reaches nothing outside it
|
|
671
|
+
-- — the database is the boundary — and it lets the shipper create and evolve its own
|
|
672
|
+
-- tables. The grant option makes the member the real owner: they can hand on any of their
|
|
673
|
+
-- own data (\`/mem:share\` still opens only a read-only SELECT window, but the owner is not
|
|
674
|
+
-- boxed into read-only sharing of their own house). Scoped to this db, and no CREATE USER
|
|
675
|
+
-- rides with it — a member still cannot mint accounts or reach another house.
|
|
676
|
+
GRANT ALL ON ${db}.* TO ${member} WITH GRANT OPTION;
|
|
679
677
|
|
|
680
678
|
-- Self-scoped ALTER USER: the member may change THEIR OWN password and no one else's.
|
|
681
679
|
-- \`ON ${member}\` names exactly this user, so \`memhouse passwd\` needs no admin, and an
|
|
@@ -788,11 +786,12 @@ async function adminBootstrap(cfg, admin) {
|
|
|
788
786
|
// reaches nothing outside the database, and it is what lets the member's own shipper
|
|
789
787
|
// create and evolve the rooms (--ensure-schema below).
|
|
790
788
|
try {
|
|
791
|
-
|
|
792
|
-
//
|
|
793
|
-
//
|
|
794
|
-
//
|
|
795
|
-
|
|
789
|
+
// ALL, WITH GRANT OPTION: the database is theirs, so they may do anything with their
|
|
790
|
+
// own data AND hand any of it on. /mem:share still opens only a read-only window (it
|
|
791
|
+
// grants SELECT), but the owner is not boxed into read-only sharing of their own house.
|
|
792
|
+
// Scoped to their db: the grant option reaches nothing outside it, and no CREATE USER
|
|
793
|
+
// comes with it, so a member still cannot mint accounts or touch another house.
|
|
794
|
+
await q(`GRANT ALL ON ${cfg.db}.* TO ${admin.member} WITH GRANT OPTION`, { database: '' });
|
|
796
795
|
// Self-scoped ALTER USER — the member owns their own password (memhouse passwd needs
|
|
797
796
|
// no admin; an invitee can rotate the password the inviter set). Non-escalating: the
|
|
798
797
|
// grant names this one user, so it reaches no other account. Best-effort: a house on
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mem",
|
|
3
3
|
"description": "Conversation memory for AI agents over the memhouse typed ClickHouse store: ask, search, browse, analyze, check, share, and invite across all 17 supported editors and machines. Skills install as /mem:hello, /mem:ask, /mem:search, /mem:sessions, /mem:share, /mem:invite, /mem:sql, /mem:status, and /mem:users.",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.7",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Ramazan Polat"
|
|
7
7
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "memhouse",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.7",
|
|
4
4
|
"description": "memhouse — agent conversation memory across 17 editors: parse-on-client shippers, a typed ClickHouse store with one set of rooms per member, kernel-agency install, and the agentlytics dashboard",
|
|
5
5
|
"main": "bin/memhouse.js",
|
|
6
6
|
"bin": {
|