@rubytech/create-maxy-code 0.1.329 → 0.1.331

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 (130) hide show
  1. package/dist/index.js +19 -2
  2. package/package.json +1 -1
  3. package/payload/platform/config/brand.json +1 -0
  4. package/payload/platform/lib/account-enumeration/dist/index.d.ts +33 -0
  5. package/payload/platform/lib/account-enumeration/dist/index.d.ts.map +1 -1
  6. package/payload/platform/lib/account-enumeration/dist/index.js +76 -0
  7. package/payload/platform/lib/account-enumeration/dist/index.js.map +1 -1
  8. package/payload/platform/lib/account-enumeration/src/index.ts +78 -0
  9. package/payload/platform/plugins/admin/.claude-plugin/plugin.json +1 -1
  10. package/payload/platform/plugins/admin/PLUGIN.md +13 -1
  11. package/payload/platform/plugins/admin/mcp/dist/__tests__/admin-authoring-skill-gate.test.js +1 -2
  12. package/payload/platform/plugins/admin/mcp/dist/__tests__/admin-authoring-skill-gate.test.js.map +1 -1
  13. package/payload/platform/plugins/admin/mcp/dist/content-producer-authoring-skills.d.ts +1 -1
  14. package/payload/platform/plugins/admin/mcp/dist/content-producer-authoring-skills.d.ts.map +1 -1
  15. package/payload/platform/plugins/admin/mcp/dist/content-producer-authoring-skills.js +18 -13
  16. package/payload/platform/plugins/admin/mcp/dist/content-producer-authoring-skills.js.map +1 -1
  17. package/payload/platform/plugins/admin/mcp/dist/index.js +102 -0
  18. package/payload/platform/plugins/admin/mcp/dist/index.js.map +1 -1
  19. package/payload/platform/plugins/admin/mcp/dist/tools/__tests__/account-lifecycle.test.d.ts +2 -0
  20. package/payload/platform/plugins/admin/mcp/dist/tools/__tests__/account-lifecycle.test.d.ts.map +1 -0
  21. package/payload/platform/plugins/admin/mcp/dist/tools/__tests__/account-lifecycle.test.js +57 -0
  22. package/payload/platform/plugins/admin/mcp/dist/tools/__tests__/account-lifecycle.test.js.map +1 -0
  23. package/payload/platform/plugins/admin/mcp/dist/tools/account-lifecycle.d.ts +34 -0
  24. package/payload/platform/plugins/admin/mcp/dist/tools/account-lifecycle.d.ts.map +1 -0
  25. package/payload/platform/plugins/admin/mcp/dist/tools/account-lifecycle.js +78 -0
  26. package/payload/platform/plugins/admin/mcp/dist/tools/account-lifecycle.js.map +1 -0
  27. package/payload/platform/plugins/admin/skills/plainly/SKILL.md +7 -0
  28. package/payload/platform/plugins/admin/skills/platform-architecture/SKILL.md +2 -2
  29. package/payload/platform/plugins/contacts/mcp/dist/index.js +1 -1
  30. package/payload/platform/plugins/contacts/mcp/dist/index.js.map +1 -1
  31. package/payload/platform/plugins/contacts/mcp/dist/tools/__tests__/contact-lookup.test.d.ts +2 -0
  32. package/payload/platform/plugins/contacts/mcp/dist/tools/__tests__/contact-lookup.test.d.ts.map +1 -0
  33. package/payload/platform/plugins/contacts/mcp/dist/tools/__tests__/contact-lookup.test.js +71 -0
  34. package/payload/platform/plugins/contacts/mcp/dist/tools/__tests__/contact-lookup.test.js.map +1 -0
  35. package/payload/platform/plugins/contacts/mcp/dist/tools/contact-lookup.d.ts +1 -0
  36. package/payload/platform/plugins/contacts/mcp/dist/tools/contact-lookup.d.ts.map +1 -1
  37. package/payload/platform/plugins/contacts/mcp/dist/tools/contact-lookup.js +10 -3
  38. package/payload/platform/plugins/contacts/mcp/dist/tools/contact-lookup.js.map +1 -1
  39. package/payload/platform/plugins/contacts/mcp/package.json +4 -2
  40. package/payload/platform/plugins/docs/references/admin-ui.md +1 -1
  41. package/payload/platform/plugins/memory/.claude-plugin/plugin.json +1 -1
  42. package/payload/platform/plugins/memory/PLUGIN.md +1 -1
  43. package/payload/platform/plugins/memory/mcp/dist/index.js +3 -1
  44. package/payload/platform/plugins/memory/mcp/dist/index.js.map +1 -1
  45. package/payload/platform/plugins/memory/mcp/dist/tools/__tests__/memory-lookup-by-name.test.js +39 -0
  46. package/payload/platform/plugins/memory/mcp/dist/tools/__tests__/memory-lookup-by-name.test.js.map +1 -1
  47. package/payload/platform/plugins/memory/mcp/dist/tools/memory-lookup-by-name.d.ts.map +1 -1
  48. package/payload/platform/plugins/memory/mcp/dist/tools/memory-lookup-by-name.js +13 -1
  49. package/payload/platform/plugins/memory/mcp/dist/tools/memory-lookup-by-name.js.map +1 -1
  50. package/payload/platform/plugins/slides/skills/deck-system/SKILL.md +1 -1
  51. package/payload/platform/scripts/__tests__/provision-role-stamp.test.sh +40 -0
  52. package/payload/platform/scripts/__tests__/sweep-durability.test.sh +103 -0
  53. package/payload/platform/scripts/lib/provision-account-dir.sh +319 -0
  54. package/payload/platform/scripts/lib/resolve-account-dir.sh +79 -132
  55. package/payload/platform/scripts/setup-account.sh +28 -361
  56. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.d.ts.map +1 -1
  57. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.js +4 -0
  58. package/payload/platform/services/claude-session-manager/dist/canonical-tool-names.generated.js.map +1 -1
  59. package/payload/platform/services/claude-session-manager/dist/config.d.ts +18 -0
  60. package/payload/platform/services/claude-session-manager/dist/config.d.ts.map +1 -1
  61. package/payload/platform/services/claude-session-manager/dist/config.js +63 -7
  62. package/payload/platform/services/claude-session-manager/dist/config.js.map +1 -1
  63. package/payload/platform/services/claude-session-manager/dist/http-server.d.ts.map +1 -1
  64. package/payload/platform/services/claude-session-manager/dist/http-server.js +44 -2
  65. package/payload/platform/services/claude-session-manager/dist/http-server.js.map +1 -1
  66. package/payload/platform/services/claude-session-manager/dist/index.js +50 -2
  67. package/payload/platform/services/claude-session-manager/dist/index.js.map +1 -1
  68. package/payload/platform/services/claude-session-manager/dist/rc-child-log.d.ts +13 -0
  69. package/payload/platform/services/claude-session-manager/dist/rc-child-log.d.ts.map +1 -0
  70. package/payload/platform/services/claude-session-manager/dist/rc-child-log.js +52 -0
  71. package/payload/platform/services/claude-session-manager/dist/rc-child-log.js.map +1 -0
  72. package/payload/platform/services/claude-session-manager/dist/rc-daemon.d.ts.map +1 -1
  73. package/payload/platform/services/claude-session-manager/dist/rc-daemon.js +7 -0
  74. package/payload/platform/services/claude-session-manager/dist/rc-daemon.js.map +1 -1
  75. package/payload/platform/services/claude-session-manager/dist/session-sidecar.d.ts +5 -0
  76. package/payload/platform/services/claude-session-manager/dist/session-sidecar.d.ts.map +1 -1
  77. package/payload/platform/services/claude-session-manager/dist/session-sidecar.js +8 -0
  78. package/payload/platform/services/claude-session-manager/dist/session-sidecar.js.map +1 -1
  79. package/payload/platform/services/claude-session-manager/dist/stuck-turn.d.ts +70 -0
  80. package/payload/platform/services/claude-session-manager/dist/stuck-turn.d.ts.map +1 -0
  81. package/payload/platform/services/claude-session-manager/dist/stuck-turn.js +213 -0
  82. package/payload/platform/services/claude-session-manager/dist/stuck-turn.js.map +1 -0
  83. package/payload/platform/services/webchat-channel/dist/instructions.d.ts.map +1 -1
  84. package/payload/platform/services/webchat-channel/dist/instructions.js +25 -1
  85. package/payload/platform/services/webchat-channel/dist/instructions.js.map +1 -1
  86. package/payload/platform/services/webchat-channel/dist/notification.d.ts +17 -0
  87. package/payload/platform/services/webchat-channel/dist/notification.d.ts.map +1 -1
  88. package/payload/platform/services/webchat-channel/dist/notification.js +14 -0
  89. package/payload/platform/services/webchat-channel/dist/notification.js.map +1 -1
  90. package/payload/platform/services/webchat-channel/dist/server.d.ts.map +1 -1
  91. package/payload/platform/services/webchat-channel/dist/server.js +66 -2
  92. package/payload/platform/services/webchat-channel/dist/server.js.map +1 -1
  93. package/payload/platform/services/webchat-channel/dist/turn-follow.d.ts +28 -0
  94. package/payload/platform/services/webchat-channel/dist/turn-follow.d.ts.map +1 -0
  95. package/payload/platform/services/webchat-channel/dist/turn-follow.js +188 -0
  96. package/payload/platform/services/webchat-channel/dist/turn-follow.js.map +1 -0
  97. package/payload/platform/services/whatsapp-channel/dist/notification.d.ts.map +1 -1
  98. package/payload/platform/services/whatsapp-channel/dist/notification.js +24 -1
  99. package/payload/platform/services/whatsapp-channel/dist/notification.js.map +1 -1
  100. package/payload/platform/templates/account.json +2 -0
  101. package/payload/premium-plugins/management-consulting/skills/pitch-deck/SKILL.md +44 -37
  102. package/payload/server/public/assets/AdminLoginScreens-DexSvtjD.js +1 -0
  103. package/payload/server/public/assets/AdminShell-Bf9tndNg.js +1 -0
  104. package/payload/server/public/assets/{Checkbox-DWGpkJD5.js → Checkbox-D58GsKoQ.js} +1 -1
  105. package/payload/server/public/assets/{OperatorConversations-BWu6GMQM.css → OperatorConversations-CDdp2nVn.css} +1 -1
  106. package/payload/server/public/assets/OperatorConversations-RmqANYz8.js +9 -0
  107. package/payload/server/public/assets/{admin-CnIlm4Yi.js → admin-CH5Vkkt4.js} +1 -1
  108. package/payload/server/public/assets/{browser-ePr5LxPd.js → browser-BwDtzSlr.js} +1 -1
  109. package/payload/server/public/assets/chat-3GY0LmYH.js +1 -0
  110. package/payload/server/public/assets/data-CttrzhfL.js +1 -0
  111. package/payload/server/public/assets/{graph-B5uxt5YB.js → graph-CZSdF2jv.js} +3 -3
  112. package/payload/server/public/assets/{graph-labels-fx-bv3Y-.js → graph-labels-Bi0fu8Ns.js} +1 -1
  113. package/payload/server/public/assets/operator-BEivxmRy.js +1 -0
  114. package/payload/server/public/assets/page-DUvT07SB.js +30 -0
  115. package/payload/server/public/assets/{public-DXAdRKJe.js → public-B3eIlVbd.js} +1 -1
  116. package/payload/server/public/browser.html +4 -4
  117. package/payload/server/public/chat.html +5 -5
  118. package/payload/server/public/data.html +4 -4
  119. package/payload/server/public/graph.html +6 -6
  120. package/payload/server/public/index.html +6 -6
  121. package/payload/server/public/operator.html +7 -7
  122. package/payload/server/public/public.html +5 -5
  123. package/payload/server/server.js +314 -222
  124. package/payload/server/public/assets/AdminLoginScreens-DstNf4M-.js +0 -1
  125. package/payload/server/public/assets/AdminShell-B5EcXCYR.js +0 -1
  126. package/payload/server/public/assets/OperatorConversations-CSQnX7Dx.js +0 -9
  127. package/payload/server/public/assets/chat-XjXSornk.js +0 -1
  128. package/payload/server/public/assets/data-DuObS80U.js +0 -1
  129. package/payload/server/public/assets/operator-CIGXegWd.js +0 -1
  130. package/payload/server/public/assets/page-BVOAwj-e.js +0 -30
@@ -1,12 +1,17 @@
1
1
  #!/usr/bin/env bash
2
2
  # ============================================================
3
3
  # setup-account.sh — Phase 0 account setup
4
- # Creates the account directory from templates, writes the
5
- # Claude Code project settings file (hooks only — no permission
6
- # allowlist; native agent frontmatter is the permission surface),
7
- # installs specialist plugin templates, seeds account.json
8
- # defaults, and resolves the owner userId. Neo4j seeding lives
9
- # in `seed-neo4j.sh`; this script does no Neo4j work.
4
+ # Resolves (or mints) the HOUSE account directory, then scaffolds it via
5
+ # `provision_account_dir`: Claude Code project settings (hooks only — no
6
+ # permission allowlist; native agent frontmatter is the permission surface),
7
+ # specialist plugin templates, account.json defaults (stamping role:"house"),
8
+ # and the owner userId. Neo4j seeding lives in `seed-neo4j.sh`; this script does
9
+ # no Neo4j work.
10
+ #
11
+ # Multi-account managed service (Task 983): an install may host N accounts, but
12
+ # this default-install path only provisions the single role:"house" account.
13
+ # Client accounts are provisioned by the admin-core `account_create` tool, which
14
+ # calls the same `provision_account_dir` with role:"client".
10
15
  # ============================================================
11
16
 
12
17
  set -euo pipefail
@@ -19,370 +24,32 @@ INSTALL_DIR="$(dirname "$PROJECT_DIR")"
19
24
  ACCOUNTS_DIR="$INSTALL_DIR/data/accounts"
20
25
 
21
26
  # ------------------------------------------------------------------
22
- # 1. Resolve / create account directory
27
+ # 1. Resolve the HOUSE account directory (or mint on fresh install)
23
28
  # ------------------------------------------------------------------
24
- # Resolve existing account by identity (users.json[0].userId) or mint a new one on fresh install.
25
- # Orphan siblings under data/accounts/ non-matching dirs left behind by the userId
26
- # regeneration are swept to data/accounts/.trash/<uuid>-<ISO8601-ts>/. Multi-candidate with
27
- # no identity match aborts loud; .trash/ is operator-emptied, never auto-cleaned.
29
+ # Registry-membership model: every account dir with a parseable account.json is
30
+ # durable and never swept. The resolver returns the single role:"house" account
31
+ # (or the sole account in the pre-migration window). Orphan dirs (no account.json)
32
+ # are reported, not deleted (sweep is log-only this sprint — see resolve-account-dir.sh).
28
33
  # shellcheck source=lib/resolve-account-dir.sh
29
34
  . "$SCRIPT_DIR/lib/resolve-account-dir.sh"
35
+ # shellcheck source=lib/provision-account-dir.sh
36
+ . "$SCRIPT_DIR/lib/provision-account-dir.sh"
30
37
  # shellcheck source=lib/read-brand-json.sh
31
38
  . "$SCRIPT_DIR/lib/read-brand-json.sh"
32
39
  # Resolve brand-aware persistent users.json path before the resolver runs.
33
- _RESOLVER_CONFIG_DIR_NAME=".maxy"
34
- read_brand_json_key "$PROJECT_DIR/config/brand.json" "configDir"
35
- [ -n "$BRAND_JSON_VALUE" ] && _RESOLVER_CONFIG_DIR_NAME="$BRAND_JSON_VALUE"
36
- USERS_FILE="$HOME/$_RESOLVER_CONFIG_DIR_NAME/users.json" resolve_and_sweep_account_dir
37
-
38
- mkdir -p "$ACCOUNT_DIR/agents/admin" "$ACCOUNT_DIR/.claude" "$ACCOUNT_DIR/specialists/.claude-plugin" "$ACCOUNT_DIR/specialists/agents"
39
-
40
- # Claude Code discovers project-level .claude/ (agents, settings) relative to the
41
- # nearest .git root. Without a .git in the account directory, Claude Code traverses
42
- # up to ~/maxy/.git and misses everything in accountDir/.claude/. Initialise a git
43
- # repo so the account directory IS the project root for Claude Code.
44
- [ -d "$ACCOUNT_DIR/.git" ] || git init -q "$ACCOUNT_DIR"
45
-
46
- # ------------------------------------------------------------------
47
- # 2. Write project-level .claude/settings.json (permissions + hooks)
48
- # ------------------------------------------------------------------
49
- # Task 453 removed `permissions.allow` because its short-prefix entries
50
- # (mcp__memory__*, mcp__contacts__*, …) never matched the plugin-manifest
51
- # long-prefix tool names Claude Code actually emits (mcp__plugin_memory_memory__…),
52
- # so every Task-subagent plugin call was denied at use-time.
53
- #
54
- # Task 583 reinstated a `permissions` block; Task 664 trims it to
55
- # `allow: []` plus `defaultMode: "bypassPermissions"`. `bypassPermissions`
56
- # is the load-bearing key: it resolves to skip_all_permission_checks before
57
- # any allow/deny matching, short-circuiting Stage 1 of the local matcher so
58
- # claude.ai/code sessions never fall through to the Anthropic remote
59
- # auto-classifier (which routes Agent dispatch to `ask` and surfaces a
60
- # permission prompt no unattended operator clicks). The Task 583
61
- # belt-and-suspenders `allow: ["*"]` was redundant and is rejected by
62
- # Claude Code >= 2.1.167: `"*"` is not a legal allow token, so the CLI
63
- # renders a blocking "Settings Warning" screen that no PTY operator
64
- # dismisses — the stdout bind banner never prints and every rc-spawn times
65
- # out (Task 664). The allow array MUST stay empty and "*"-free. Per-agent
66
- # frontmatter `tools:` lists remain the permission surface for what each
67
- # subagent is allowed to invoke.
68
- #
69
- # Hook commands use $PLATFORM_ROOT (set by claude-agent.ts at spawn time)
70
- # to locate scripts relative to the platform installation, not the account dir.
71
- ACCOUNT_SETTINGS="$ACCOUNT_DIR/.claude/settings.json"
72
- HOOKS_PATH="\$PLATFORM_ROOT/plugins/admin/hooks"
73
- cat > "$ACCOUNT_SETTINGS" << SETTINGS_EOF
74
- {
75
- "permissions": {
76
- "defaultMode": "bypassPermissions",
77
- "allow": [],
78
- "deny": []
79
- },
80
- "hooks": {
81
- "PreToolUse": [
82
- {
83
- "matcher": "Write",
84
- "hooks": [
85
- { "type": "command", "command": "bash $HOOKS_PATH/archive-ingest-surface-gate.sh" }
86
- ]
87
- },
88
- {
89
- "matcher": "Edit",
90
- "hooks": [
91
- { "type": "command", "command": "bash $HOOKS_PATH/archive-ingest-surface-gate.sh" }
92
- ]
93
- },
94
- {
95
- "matcher": "NotebookEdit",
96
- "hooks": [
97
- { "type": "command", "command": "bash $HOOKS_PATH/archive-ingest-surface-gate.sh" }
98
- ]
99
- },
100
- {
101
- "matcher": "Bash",
102
- "hooks": [
103
- { "type": "command", "command": "bash $HOOKS_PATH/archive-ingest-surface-gate.sh" }
104
- ]
105
- },
106
- {
107
- "hooks": [
108
- { "type": "command", "command": "bash $HOOKS_PATH/archive-ingest-surface-gate.sh" }
109
- ]
110
- },
111
- {
112
- "matcher": "WebFetch",
113
- "hooks": [
114
- { "type": "command", "command": "node $HOOKS_PATH/webfetch-preflight.mjs" }
115
- ]
116
- },
117
- {
118
- "matcher": "AskUserQuestion",
119
- "hooks": [
120
- { "type": "command", "command": "bash $HOOKS_PATH/askuserquestion-investigate-gate.sh" }
121
- ]
122
- }
123
- ],
124
- "PostToolUse": [
125
- {
126
- "matcher": "Agent",
127
- "hooks": [
128
- { "type": "command", "command": "bash $HOOKS_PATH/post-tool-use-agent.sh" }
129
- ]
130
- },
131
- {
132
- "matcher": "mcp__.*__.*-(export|import)-parse$",
133
- "hooks": [
134
- { "type": "command", "command": "bash $HOOKS_PATH/archive-ingest-surface-gate.sh" }
135
- ]
136
- },
137
- {
138
- "matcher": "mcp__.*",
139
- "hooks": [
140
- { "type": "command", "command": "bash $HOOKS_PATH/mcp-tool-missing.sh" }
141
- ]
142
- },
143
- {
144
- "matcher": "Write",
145
- "hooks": [
146
- { "type": "command", "command": "bash $HOOKS_PATH/admin-authoring-observer.sh" }
147
- ]
148
- },
149
- {
150
- "matcher": "Edit",
151
- "hooks": [
152
- { "type": "command", "command": "bash $HOOKS_PATH/admin-authoring-observer.sh" }
153
- ]
154
- }
155
- ],
156
- "UserPromptSubmit": [
157
- {
158
- "hooks": [
159
- { "type": "command", "command": "bash $HOOKS_PATH/archive-ingest-surface-gate.sh" },
160
- { "type": "command", "command": "bash $HOOKS_PATH/prompt-optimiser-directive.sh" }
161
- ]
162
- }
163
- ],
164
- "Stop": [
165
- {
166
- "hooks": [
167
- { "type": "command", "command": "bash $HOOKS_PATH/prompt-optimiser-compliance.sh" }
168
- ]
169
- }
170
- ]
171
- }
172
- }
173
- SETTINGS_EOF
174
-
175
- # ------------------------------------------------------------------
176
- # 3. Install agent identities and specialist plugin templates
177
- # ------------------------------------------------------------------
178
- # Always overwrite IDENTITY.md — Rubytech-controlled, pure behaviour.
179
- cp "$TEMPLATES_DIR/agents/admin/IDENTITY.md" "$ACCOUNT_DIR/agents/admin/IDENTITY.md"
180
-
181
- # Task 618 — public agents are authored entirely client-side by the admin via
182
- # public-agent-manager; the installer never creates a public agent dir or seeds
183
- # its SOUL/KNOWLEDGE/config. On upgrade, re-sync the Rubytech-controlled
184
- # IDENTITY.md for every already-existing non-admin agent dir (security-load-
185
- # bearing toolless directive — Task 615). Never create dirs; never write
186
- # SOUL/KNOWLEDGE/config.
187
- for _AGENT_DIR in "$ACCOUNT_DIR/agents"/*/; do
188
- [ -d "$_AGENT_DIR" ] || continue
189
- _AGENT_NAME="$(basename "$_AGENT_DIR")"
190
- [ "$_AGENT_NAME" = "admin" ] && continue
191
- [ -f "$_AGENT_DIR/IDENTITY.md" ] || continue
192
- cp "$TEMPLATES_DIR/agents/public/IDENTITY.md" "$_AGENT_DIR/IDENTITY.md"
193
- echo " agents/$_AGENT_NAME/IDENTITY.md re-synced"
194
- done
195
-
196
- # Always overwrite specialist plugin — Rubytech-controlled, not user-editable.
197
- # Specialists are a Claude Code plugin loaded via --plugin-dir. The plugin lives at
198
- # accountDir/specialists/ with .claude-plugin/plugin.json and agents/*.md.
199
- # The admin agent dispatches them as specialists:{name} via the Agent tool.
200
- cp "$TEMPLATES_DIR/specialists/.claude-plugin/plugin.json" "$ACCOUNT_DIR/specialists/.claude-plugin/plugin.json"
201
-
202
- # Remove orphaned core specialist files before copying fresh templates.
203
- # Core specialists (no '--' in filename) are Rubytech-controlled and fully replaced
204
- # on every seed. Premium plugin agents (filename contains '--') are preserved —
205
- # they are managed by the admin agent when plugins are activated/deactivated.
206
- for _existing in "$ACCOUNT_DIR/specialists/agents/"*.md; do
207
- [ -f "$_existing" ] || continue
208
- case "$(basename "$_existing")" in
209
- *--*) continue ;; # Premium plugin agent — preserve
210
- esac
211
- rm -f "$_existing"
212
- done
213
-
214
- for specialist in "$TEMPLATES_DIR/specialists/agents/"*.md; do
215
- [ -f "$specialist" ] && cp "$specialist" "$ACCOUNT_DIR/specialists/agents/$(basename "$specialist")"
216
- done
217
-
218
- # Clean up stale .claude/agents/*.md from previous seed format.
219
- # The old format placed specialists here as slash-command agents — that never worked
220
- # for programmatic dispatch. Safe to remove; .claude/ dir stays for settings.json.
221
- rm -f "$ACCOUNT_DIR/.claude/agents/"*.md 2>/dev/null || true
222
-
223
- # SOUL.md — user-controlled personalisation. Only create if missing. Never overwrite.
224
- if [ -f "$ACCOUNT_DIR/agents/admin/SOUL.md" ]; then
225
- echo " agents/admin/SOUL.md preserved ($(wc -c < "$ACCOUNT_DIR/agents/admin/SOUL.md" | tr -d ' ') bytes)"
226
- else
227
- cp "$TEMPLATES_DIR/agents/admin/SOUL.md" "$ACCOUNT_DIR/agents/admin/SOUL.md"
228
- echo " agents/admin/SOUL.md created ($(wc -c < "$ACCOUNT_DIR/agents/admin/SOUL.md" | tr -d ' ') bytes)"
229
- fi
230
-
231
- # AGENTS.md — specialist registry. Bootstrap on first seed; idempotent
232
- # additive update on re-seed. Doctrine (Task 486): every core specialist
233
- # under $ACCOUNT_DIR/specialists/agents/ has exactly one line in AGENTS.md;
234
- # operator-tuned lines survive re-seed. Logic is factored into a helper so
235
- # the same code path runs from the test suite.
236
- bash "$SCRIPT_DIR/lib/agents-md-bootstrap.sh" "$ACCOUNT_DIR"
237
-
238
- # ADMIN-SKILLS.md — admin-usable skills list (Task 698). Derived from every
239
- # installed SKILL.md "Invoked by/from" declaration: a declaration naming a
240
- # specialist excludes the skill; no parseable declaration excludes it and is
241
- # reported (fail-safe). The per-turn routing-ladder hook re-emits this list each
242
- # turn. Regenerated on every (re-)seed; a plugin add/remove since the last seed
243
- # leaves the list stale until the next setup run.
244
- bash "$SCRIPT_DIR/lib/admin-skills-bootstrap.sh" "$ACCOUNT_DIR" "$PROJECT_DIR/plugins"
245
-
246
- # ------------------------------------------------------------------
247
- # 4. Create / backfill account.json
248
- # ------------------------------------------------------------------
249
- # Create account.json only if it doesn't exist (business config is in the graph).
250
- # Reads defaults from the template so there is a single source of truth.
251
- if [ ! -f "$ACCOUNT_DIR/account.json" ]; then
252
- TEMPLATE="$TEMPLATES_DIR/account.json"
253
- if [ -f "$TEMPLATE" ]; then
254
- sed "s/\"accountId\": *\"[^\"]*\"/\"accountId\":\"$ACCOUNT_ID\"/" "$TEMPLATE" \
255
- | sed "s/\"tier\": *\"[^\"]*\"/\"tier\":\"solo\"/" \
256
- > "$ACCOUNT_DIR/account.json"
257
- else
258
- echo "ERROR: account.json template not found at $TEMPLATE" >&2
259
- exit 1
260
- fi
261
- fi
262
-
263
- # ------------------------------------------------------------------
264
- # 5. Seed enabledPlugins from brand.json plugins.defaultEnabled
265
- # ------------------------------------------------------------------
266
- # Fresh accounts: replaces the template's empty [] with defaultEnabled.
267
- # Existing accounts: additive merge — adds missing defaultEnabled entries,
268
- # never removes plugins the user enabled manually.
269
- # Dependency validation: skips any defaultEnabled plugin whose PLUGIN.md
270
- # `requires:` dependencies are not satisfied by core or defaultEnabled.
271
- BRAND_JSON="$PROJECT_DIR/config/brand.json"
272
- if [ -f "$BRAND_JSON" ] && [ -f "$ACCOUNT_DIR/account.json" ]; then
273
- python3 -c "
274
- import json, os, sys
275
-
276
- brand_path = '$BRAND_JSON'
277
- account_path = '$ACCOUNT_DIR/account.json'
278
- plugins_dir = '$PROJECT_DIR/plugins'
279
-
280
- with open(brand_path) as f:
281
- brand = json.load(f)
282
-
283
- plugins_cfg = brand.get('plugins', {})
284
- default_enabled = plugins_cfg.get('defaultEnabled', [])
285
- core = set(plugins_cfg.get('core', []))
286
-
287
- if not default_enabled:
288
- print(' [setup] no defaultEnabled plugins in brand.json — skipping')
289
- sys.exit(0)
290
-
291
- # Dependency validation: check each plugin's PLUGIN.md requires field.
292
- # A dependency is satisfied if it appears in core or in defaultEnabled.
293
- satisfied = core | set(default_enabled)
294
- validated = []
295
- for plugin in default_enabled:
296
- plugin_md = os.path.join(plugins_dir, plugin, 'PLUGIN.md')
297
- requires = []
298
- if os.path.isfile(plugin_md):
299
- in_frontmatter = False
300
- in_requires = False
301
- with open(plugin_md) as f:
302
- for line in f:
303
- stripped = line.rstrip()
304
- if stripped == '---':
305
- if in_frontmatter:
306
- break
307
- in_frontmatter = True
308
- continue
309
- if not in_frontmatter:
310
- continue
311
- if stripped.startswith('requires:'):
312
- # Handle inline list: requires: [a, b]
313
- inline = stripped.split(':', 1)[1].strip()
314
- if inline.startswith('['):
315
- requires = [x.strip().strip('\"').strip(\"'\") for x in inline.strip('[]').split(',') if x.strip()]
316
- in_requires = False
317
- else:
318
- in_requires = True
319
- continue
320
- if in_requires:
321
- if stripped.startswith(' - '):
322
- requires.append(stripped.lstrip(' -').strip())
323
- else:
324
- in_requires = False
325
- unmet = [r for r in requires if r not in satisfied]
326
- if unmet:
327
- print(f' [setup] WARNING: skipping defaultEnabled plugin \"{plugin}\" — unmet requires: {unmet}')
328
- else:
329
- validated.append(plugin)
330
-
331
- with open(account_path) as f:
332
- account = json.load(f)
333
-
334
- existing = account.get('enabledPlugins', [])
335
- existing_set = set(existing)
336
- added = [p for p in validated if p not in existing_set]
337
- account['enabledPlugins'] = existing + added
338
-
339
- with open(account_path, 'w') as f:
340
- json.dump(account, f, indent=2)
341
- f.write('\n')
342
-
343
- if not existing:
344
- print(f' [setup] seeded enabledPlugins: {validated}')
345
- elif added:
346
- print(f' [setup] merged into enabledPlugins: +{added} (existing: {existing})')
347
- else:
348
- print(f' [setup] enabledPlugins already contains all defaultEnabled entries')
349
- "
350
- fi
351
-
352
- # ------------------------------------------------------------------
353
- # 6. Stamp first admin userId into account.json (if users.json present)
354
- # ------------------------------------------------------------------
355
- # users.json is created by the set-pin POST during onboarding. This
356
- # script reads it to stamp the owner into account.json admins[]; the
357
- # matching :AdminUser graph node is created by seed-neo4j.sh.
358
- CONFIG_DIR="$PROJECT_DIR/config"
359
40
  _CONFIG_DIR_NAME=".maxy"
360
- read_brand_json_key "$CONFIG_DIR/brand.json" "configDir"
41
+ read_brand_json_key "$PROJECT_DIR/config/brand.json" "configDir"
361
42
  [ -n "$BRAND_JSON_VALUE" ] && _CONFIG_DIR_NAME="$BRAND_JSON_VALUE"
362
43
  USERS_FILE="$HOME/$_CONFIG_DIR_NAME/users.json"
363
44
  mkdir -p "$HOME/$_CONFIG_DIR_NAME"
364
45
 
365
- if [ -f "$USERS_FILE" ]; then
366
- USER_ID=$(python3 -c "import json; print(json.load(open('$USERS_FILE'))[0]['userId'])" 2>/dev/null || true)
367
- [ -n "$USER_ID" ] && echo " Existing users.json found, userId=$USER_ID"
368
-
369
- # Ensure account.json admins[] contains the owner. Idempotent.
370
- if [ -n "$USER_ID" ] && [ -f "$ACCOUNT_DIR/account.json" ]; then
371
- python3 -c "
372
- import json
373
- with open('$ACCOUNT_DIR/account.json', 'r') as f:
374
- config = json.load(f)
375
- config.setdefault('admins', [])
376
- if not any(a.get('userId') == '$USER_ID' for a in config['admins']):
377
- config['admins'].append({'userId': '$USER_ID', 'role': 'owner'})
378
- with open('$ACCOUNT_DIR/account.json', 'w') as f:
379
- json.dump(config, f, indent=2)
380
- f.write('\n')
381
- print(' Stamped userId=$USER_ID as owner in account.json admins')
382
- "
383
- fi
384
- else
385
- echo " No users.json found — skipping owner stamp (set-pin POST creates it)"
386
- fi
46
+ USERS_FILE="$USERS_FILE" resolve_and_sweep_account_dir
387
47
 
388
- echo " Account $ACCOUNT_ID at $ACCOUNT_DIR"
48
+ # ------------------------------------------------------------------
49
+ # 2. Scaffold the resolved house account
50
+ # ------------------------------------------------------------------
51
+ # `provision_account_dir` reads TEMPLATES_DIR / PROJECT_DIR / SCRIPT_DIR /
52
+ # USERS_FILE from the environment (set above). role="house" stamps the
53
+ # designation (migrating a legacy unlabelled account in the same step).
54
+ export TEMPLATES_DIR PROJECT_DIR SCRIPT_DIR USERS_FILE
55
+ provision_account_dir "$ACCOUNT_DIR" "$ACCOUNT_ID" "house"
@@ -1 +1 @@
1
- {"version":3,"file":"canonical-tool-names.generated.d.ts","sourceRoot":"","sources":["../src/canonical-tool-names.generated.ts"],"names":[],"mappings":"AAQA,+EAA+E;AAC/E,eAAO,MAAM,gBAAgB,EAAE,SAAS,MAAM,EAkB7C,CAAA;AAED,gEAAgE;AAChE,eAAO,MAAM,yBAAyB,EAAE,SAAS,MAAM,EAgMtD,CAAA"}
1
+ {"version":3,"file":"canonical-tool-names.generated.d.ts","sourceRoot":"","sources":["../src/canonical-tool-names.generated.ts"],"names":[],"mappings":"AAQA,+EAA+E;AAC/E,eAAO,MAAM,gBAAgB,EAAE,SAAS,MAAM,EAkB7C,CAAA;AAED,gEAAgE;AAChE,eAAO,MAAM,yBAAyB,EAAE,SAAS,MAAM,EAoMtD,CAAA"}
@@ -29,6 +29,10 @@ export const MAXY_MCP_PLUGINS = [
29
29
  export const CANONICAL_MAXY_TOOL_NAMES = [
30
30
  "mcp__plugin_admin_admin__account-manage",
31
31
  "mcp__plugin_admin_admin__account-update",
32
+ "mcp__plugin_admin_admin__account_create",
33
+ "mcp__plugin_admin_admin__account_delete",
34
+ "mcp__plugin_admin_admin__account_list",
35
+ "mcp__plugin_admin_admin__account_purge",
32
36
  "mcp__plugin_admin_admin__action-approve",
33
37
  "mcp__plugin_admin_admin__action-edit",
34
38
  "mcp__plugin_admin_admin__action-pending",
@@ -1 +1 @@
1
- {"version":3,"file":"canonical-tool-names.generated.js","sourceRoot":"","sources":["../src/canonical-tool-names.generated.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,kEAAkE;AAClE,yDAAyD;AACzD,kFAAkF;AAClF,EAAE;AACF,yEAAyE;AACzE,6DAA6D;AAE7D,+EAA+E;AAC/E,MAAM,CAAC,MAAM,gBAAgB,GAAsB;IACjD,OAAO;IACP,KAAK;IACL,SAAS;IACT,UAAU;IACV,OAAO;IACP,OAAO;IACP,cAAc;IACd,QAAQ;IACR,SAAS;IACT,YAAY;IACZ,WAAW;IACX,YAAY;IACZ,UAAU;IACV,SAAS;IACT,UAAU;IACV,MAAM;IACN,WAAW;CACZ,CAAA;AAED,gEAAgE;AAChE,MAAM,CAAC,MAAM,yBAAyB,GAAsB;IAC1D,yCAAyC;IACzC,yCAAyC;IACzC,yCAAyC;IACzC,sCAAsC;IACtC,yCAAyC;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uCAAuC;IACvC,oCAAoC;IACpC,qCAAqC;IACrC,uCAAuC;IACvC,qCAAqC;IACrC,qCAAqC;IACrC,sCAAsC;IACtC,oCAAoC;IACpC,iCAAiC;IACjC,kCAAkC;IAClC,mCAAmC;IACnC,oCAAoC;IACpC,oCAAoC;IACpC,kDAAkD;IAClD,kDAAkD;IAClD,mDAAmD;IACnD,+CAA+C;IAC/C,gDAAgD;IAChD,gDAAgD;IAChD,kDAAkD;IAClD,oDAAoD;CACrD,CAAA"}
1
+ {"version":3,"file":"canonical-tool-names.generated.js","sourceRoot":"","sources":["../src/canonical-tool-names.generated.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,kEAAkE;AAClE,yDAAyD;AACzD,kFAAkF;AAClF,EAAE;AACF,yEAAyE;AACzE,6DAA6D;AAE7D,+EAA+E;AAC/E,MAAM,CAAC,MAAM,gBAAgB,GAAsB;IACjD,OAAO;IACP,KAAK;IACL,SAAS;IACT,UAAU;IACV,OAAO;IACP,OAAO;IACP,cAAc;IACd,QAAQ;IACR,SAAS;IACT,YAAY;IACZ,WAAW;IACX,YAAY;IACZ,UAAU;IACV,SAAS;IACT,UAAU;IACV,MAAM;IACN,WAAW;CACZ,CAAA;AAED,gEAAgE;AAChE,MAAM,CAAC,MAAM,yBAAyB,GAAsB;IAC1D,yCAAyC;IACzC,yCAAyC;IACzC,yCAAyC;IACzC,yCAAyC;IACzC,uCAAuC;IACvC,wCAAwC;IACxC,yCAAyC;IACzC,sCAAsC;IACtC,yCAAyC;IACzC,wCAAwC;IACxC,oCAAoC;IACpC,qCAAqC;IACrC,uCAAuC;IACvC,2CAA2C;IAC3C,4CAA4C;IAC5C,qCAAqC;IACrC,yCAAyC;IACzC,4CAA4C;IAC5C,oCAAoC;IACpC,sCAAsC;IACtC,0CAA0C;IAC1C,uCAAuC;IACvC,sCAAsC;IACtC,sDAAsD;IACtD,mDAAmD;IACnD,6CAA6C;IAC7C,wCAAwC;IACxC,yCAAyC;IACzC,qCAAqC;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oD;CACrD,CAAA"}
@@ -51,5 +51,23 @@ export interface ManagerConfig {
51
51
  * as `<productName> · <id>` in the composer instead of the OS hostname. */
52
52
  brandProductName: string;
53
53
  }
54
+ /** Registry census — house / client / total counts of the valid accounts under
55
+ * `accountsRoot`. A dir counts when it holds a parseable `account.json`;
56
+ * `clients` counts `role:"client"`, and an account with any other or absent
57
+ * role (the pre-migration unlabelled window) is neither house nor client but
58
+ * still counted in `total`. Reads roles fresh — house designation is
59
+ * runtime-mutable via the lifecycle tools. Mirrors `resolveAccountDir`'s inline
60
+ * scan (the manager has no rootDir-clean import path for the account-enumeration
61
+ * lib). A missing accounts root reads as an empty registry, not a throw. */
62
+ export interface RegistryCensus {
63
+ houses: number;
64
+ clients: number;
65
+ total: number;
66
+ }
67
+ export declare function censusAccountsRoot(accountsRoot: string): RegistryCensus;
68
+ /** The standing census log line body. `houses != 1` is the drift signature the
69
+ * boot emitter checks. Pure formatter so the emitter and its test share one
70
+ * wording. */
71
+ export declare function formatRegistryCensus(c: RegistryCensus): string;
54
72
  export declare function loadConfig(env?: NodeJS.ProcessEnv): ManagerConfig;
55
73
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,yBAAyB,CAAA;AAGhC,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD;;4DAEwD;IACxD,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;CACjC;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,WAAW,EAAE,MAAM,CAAA;IAC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A;IACpB;;;;;;;8BAO0B;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB;;;qDAGiD;IACjD,iBAAiB,EAAE,iBAAiB,CAAA;IACpC;;gFAE4E;IAC5E,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAwLD;;;;;;;6EAO6E;AAC7E,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,cAAc,CAyBvE;AAED;;eAEe;AACf,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,cAAc,GAAG,MAAM,CAE9D;AAUD,wBAAgB,UAAU,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,aAAa,CAuE9E"}
@@ -128,11 +128,14 @@ function resolveLanIPv4() {
128
128
  const names = Object.keys(ifaces).join(',') || '(no interfaces detected)';
129
129
  return { ip: null, diagnostic: `no non-loopback IPv4 across interfaces: ${names}` };
130
130
  }
131
- /** walk `<installDir>/data/accounts/` for the first sub-directory
132
- * containing `account.json`. Mirrors the installer's `resolveInstallAccountId`
133
- * (packages/create-maxy-code/src/index.ts) so the runtime reads the same
134
- * account the installer wrote. Returns null when no account is found; the
135
- * caller surfaces `account-dir-unresolved` and refuses to start.
131
+ /** Resolve `<installDir>/data/accounts/` to the boot account dir under the
132
+ * managed-service model: the single `role:"house"` account, or the sole
133
+ * account in the pre-migration window (before `setup-account.sh` stamps the
134
+ * role). Mirrors the installer's `resolveInstallAccountId` so the runtime reads
135
+ * the same account the installer wrote. Returns null on no accounts OR genuine
136
+ * drift (zero-house with >1 candidate, or multiple houses); the caller
137
+ * surfaces `account-dir-unresolved` and refuses to start, and the boot census
138
+ * (`[account-registry] op=census`) makes the drift visible in journalctl.
136
139
  *
137
140
  * `installDir` = parent of `PLATFORM_ROOT` (the systemd unit passes
138
141
  * `PLATFORM_ROOT=<installDir>/platform`, so `dirname()` is exact). */
@@ -148,13 +151,66 @@ function resolveAccountDir(platformRoot) {
148
151
  catch {
149
152
  return null;
150
153
  }
154
+ const candidates = [];
155
+ const houses = [];
151
156
  for (const entry of entries) {
152
157
  const candidate = join(accountsRoot, entry);
153
- if (existsSync(join(candidate, 'account.json')))
154
- return candidate;
158
+ const configPath = join(candidate, 'account.json');
159
+ if (!existsSync(configPath))
160
+ continue;
161
+ candidates.push(candidate);
162
+ try {
163
+ const cfg = JSON.parse(readFileSync(configPath, 'utf-8'));
164
+ if (cfg.role === 'house')
165
+ houses.push(candidate);
166
+ }
167
+ catch {
168
+ // unparseable account.json — not a house candidate
169
+ }
155
170
  }
171
+ if (houses.length === 1)
172
+ return houses[0];
173
+ if (houses.length === 0 && candidates.length === 1)
174
+ return candidates[0];
156
175
  return null;
157
176
  }
177
+ export function censusAccountsRoot(accountsRoot) {
178
+ let entries;
179
+ try {
180
+ entries = readdirSync(accountsRoot);
181
+ }
182
+ catch {
183
+ return { houses: 0, clients: 0, total: 0 };
184
+ }
185
+ let houses = 0;
186
+ let clients = 0;
187
+ let total = 0;
188
+ for (const entry of entries) {
189
+ const configPath = join(accountsRoot, entry, 'account.json');
190
+ if (!existsSync(configPath))
191
+ continue;
192
+ let cfg;
193
+ try {
194
+ cfg = JSON.parse(readFileSync(configPath, 'utf-8'));
195
+ }
196
+ catch {
197
+ // unparseable account.json — excluded from the registry entirely
198
+ continue;
199
+ }
200
+ total++;
201
+ if (cfg.role === 'house')
202
+ houses++;
203
+ else if (cfg.role === 'client')
204
+ clients++;
205
+ }
206
+ return { houses, clients, total };
207
+ }
208
+ /** The standing census log line body. `houses != 1` is the drift signature the
209
+ * boot emitter checks. Pure formatter so the emitter and its test share one
210
+ * wording. */
211
+ export function formatRegistryCensus(c) {
212
+ return `op=census houses=${c.houses} clients=${c.clients} total=${c.total}`;
213
+ }
158
214
  function resolveBrandPort(env) {
159
215
  const raw = env.MAXY_BRAND_PORT ?? env.PORT;
160
216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