@rubytech/create-maxy-code 0.1.263 → 0.1.264

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubytech/create-maxy-code",
3
- "version": "0.1.263",
3
+ "version": "0.1.264",
4
4
  "description": "Install Maxy — AI for Productive People",
5
5
  "bin": {
6
6
  "create-maxy-code": "./dist/index.js"
@@ -4915,8 +4915,16 @@ async function writeAdminUserAndPerson(params) {
4915
4915
  try {
4916
4916
  const result = await session.run(
4917
4917
  `MERGE (au:AdminUser {userId: $userId})
4918
- ON CREATE SET au.name = $fullName, au.createdAt = $now
4919
- ON MATCH SET au.name = $fullName, au.updatedAt = $now
4918
+ // Task 669 \u2014 stamp accountId/role at creation so the account-scoped
4919
+ // graph-write gate (MATCH (au:AdminUser {accountId:$accountId})) matches
4920
+ // on the operator's first memory write. Mirrors seed-neo4j.sh:175-181
4921
+ // and the sibling writers (neo4j-store.ts:537,:931). COALESCE on MATCH
4922
+ // preserves an already-stamped node.
4923
+ ON CREATE SET au.name = $fullName, au.createdAt = $now,
4924
+ au.accountId = $accountId, au.role = 'owner'
4925
+ ON MATCH SET au.name = $fullName, au.updatedAt = $now,
4926
+ au.accountId = COALESCE(au.accountId, $accountId),
4927
+ au.role = COALESCE(au.role, 'owner')
4920
4928
  WITH au
4921
4929
 
4922
4930
  // Case-insensitive Person reuse: same accountId, same givenName, same familyName
@@ -14,7 +14,7 @@ import {
14
14
  sanitizeClientCorrId,
15
15
  vncLog,
16
16
  websockifyLog
17
- } from "./chunk-ET3BKHKR.js";
17
+ } from "./chunk-ZC63DFWF.js";
18
18
  import "./chunk-HYQNUVGO.js";
19
19
 
20
20
  // server/edge.ts
@@ -93,7 +93,7 @@ import {
93
93
  vncLog,
94
94
  walkPremiumBundles,
95
95
  writeAdminUserAndPerson
96
- } from "./chunk-ET3BKHKR.js";
96
+ } from "./chunk-ZC63DFWF.js";
97
97
  import {
98
98
  __commonJS,
99
99
  __require,