@monoes/monomindcli 1.11.7 → 1.11.9

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 (222) hide show
  1. package/.claude/agents/github/issue-tracker.md +5 -5
  2. package/.claude/agents/github/pr-manager.md +5 -5
  3. package/.claude/agents/github/release-manager.md +3 -3
  4. package/.claude/agents/github/repo-architect.md +3 -3
  5. package/.claude/agents/github/swarm-issue.md +1 -1
  6. package/.claude/agents/github/sync-coordinator.md +1 -1
  7. package/.claude/agents/github/workflow-automation.md +1 -1
  8. package/.claude/commands/github/repo-architect.md +1 -1
  9. package/.claude/commands/github/sync-coordinator.md +1 -1
  10. package/.claude/commands/mastermind/createorg.md +4 -1
  11. package/.claude/commands/mastermind/help.md +2 -2
  12. package/.claude/commands/mastermind/orgs.md +21 -0
  13. package/.claude/commands/mastermind/orgstatus.md +59 -0
  14. package/.claude/commands/mastermind/runorg.md +4 -2
  15. package/.claude/commands/mastermind/stoporg.md +78 -0
  16. package/.claude/commands/mastermind/swarm.md +1 -1
  17. package/.claude/helpers/handlers/gates-handler.cjs +135 -0
  18. package/.claude/helpers/handlers/task-handler.cjs +7 -3
  19. package/.claude/helpers/hook-handler.cjs +11 -2
  20. package/.claude/helpers/intelligence.cjs +87 -0
  21. package/.claude/helpers/learning-service.mjs +60 -0
  22. package/.claude/helpers/memory.cjs +69 -0
  23. package/.claude/helpers/router.cjs +68 -0
  24. package/.claude/helpers/session.cjs +63 -0
  25. package/.claude/helpers/utils/monograph.cjs +4 -2
  26. package/.claude/helpers/utils/telemetry.cjs +3 -2
  27. package/.claude/skills/agentic-jujutsu/SKILL.md +1 -1
  28. package/.claude/skills/hive-mind-advanced/SKILL.md +4 -4
  29. package/.claude/skills/mastermind/_agent-select.md +2 -2
  30. package/.claude/skills/mastermind/access.md +11 -11
  31. package/.claude/skills/mastermind/adapter-manager.md +13 -13
  32. package/.claude/skills/mastermind/adapters.md +7 -7
  33. package/.claude/skills/mastermind/agent-detail.md +1 -1
  34. package/.claude/skills/mastermind/agents.md +5 -5
  35. package/.claude/skills/mastermind/approval-detail.md +6 -6
  36. package/.claude/skills/mastermind/approve.md +9 -10
  37. package/.claude/skills/mastermind/backup.md +2 -2
  38. package/.claude/skills/mastermind/bootstrap.md +2 -2
  39. package/.claude/skills/mastermind/companies.md +7 -7
  40. package/.claude/skills/mastermind/createorg.md +213 -8
  41. package/.claude/skills/mastermind/diagnose.md +4 -4
  42. package/.claude/skills/mastermind/env.md +1 -1
  43. package/.claude/skills/mastermind/environments.md +8 -8
  44. package/.claude/skills/mastermind/export.md +12 -3
  45. package/.claude/skills/mastermind/goal-detail.md +9 -9
  46. package/.claude/skills/mastermind/goals.md +4 -4
  47. package/.claude/skills/mastermind/heartbeat.md +1 -1
  48. package/.claude/skills/mastermind/idea.md +4 -4
  49. package/.claude/skills/mastermind/import.md +8 -8
  50. package/.claude/skills/mastermind/inbox.md +4 -4
  51. package/.claude/skills/mastermind/instance-settings.md +9 -9
  52. package/.claude/skills/mastermind/instance.md +9 -7
  53. package/.claude/skills/mastermind/invite-landing.md +5 -5
  54. package/.claude/skills/mastermind/invites.md +12 -12
  55. package/.claude/skills/mastermind/issue-detail.md +8 -8
  56. package/.claude/skills/mastermind/monitor.md +11 -11
  57. package/.claude/skills/mastermind/my-issues.md +6 -6
  58. package/.claude/skills/mastermind/new-agent.md +4 -4
  59. package/.claude/skills/mastermind/org-chart.md +8 -6
  60. package/.claude/skills/mastermind/org-settings.md +58 -21
  61. package/.claude/skills/mastermind/orgs.md +98 -0
  62. package/.claude/skills/mastermind/orgstatus.md +194 -0
  63. package/.claude/skills/mastermind/plan-to-tasks.md +1 -1
  64. package/.claude/skills/mastermind/plugin-manager.md +12 -12
  65. package/.claude/skills/mastermind/plugin-settings.md +5 -5
  66. package/.claude/skills/mastermind/plugins.md +5 -5
  67. package/.claude/skills/mastermind/profile.md +2 -2
  68. package/.claude/skills/mastermind/project-detail.md +12 -12
  69. package/.claude/skills/mastermind/project-workspace.md +4 -4
  70. package/.claude/skills/mastermind/projects.md +4 -4
  71. package/.claude/skills/mastermind/review.md +50 -0
  72. package/.claude/skills/mastermind/routine-detail.md +3 -3
  73. package/.claude/skills/mastermind/routines.md +7 -6
  74. package/.claude/skills/mastermind/runorg.md +178 -8
  75. package/.claude/skills/mastermind/search.md +6 -6
  76. package/.claude/skills/mastermind/secrets.md +6 -6
  77. package/.claude/skills/mastermind/skills.md +4 -4
  78. package/.claude/skills/mastermind/stoporg.md +138 -0
  79. package/.claude/skills/mastermind/workspace-detail.md +5 -5
  80. package/.claude/skills/mastermind/workspaces.md +9 -9
  81. package/.claude/skills/performance-analysis/SKILL.md +3 -3
  82. package/.claude/skills/sparc-methodology/SKILL.md +2 -2
  83. package/.claude/skills/swarm-advanced/SKILL.md +4 -4
  84. package/README.md +129 -376
  85. package/dist/src/agents/registry-builder.d.ts +27 -1
  86. package/dist/src/agents/registry-builder.d.ts.map +1 -1
  87. package/dist/src/agents/registry-builder.js +2 -2
  88. package/dist/src/agents/registry-builder.js.map +1 -1
  89. package/dist/src/commands/agent.d.ts.map +1 -1
  90. package/dist/src/commands/agent.js +4 -9
  91. package/dist/src/commands/agent.js.map +1 -1
  92. package/dist/src/commands/analyze.d.ts +1 -1
  93. package/dist/src/commands/analyze.js +1 -1
  94. package/dist/src/commands/claims.d.ts +1 -1
  95. package/dist/src/commands/claims.js +2 -2
  96. package/dist/src/commands/claims.js.map +1 -1
  97. package/dist/src/commands/cleanup.d.ts +1 -1
  98. package/dist/src/commands/cleanup.js +1 -1
  99. package/dist/src/commands/completions.d.ts +1 -1
  100. package/dist/src/commands/completions.js +1 -1
  101. package/dist/src/commands/deployment.d.ts +1 -1
  102. package/dist/src/commands/deployment.js +2 -2
  103. package/dist/src/commands/deployment.js.map +1 -1
  104. package/dist/src/commands/doctor.d.ts +1 -1
  105. package/dist/src/commands/doctor.d.ts.map +1 -1
  106. package/dist/src/commands/doctor.js +69 -4
  107. package/dist/src/commands/doctor.js.map +1 -1
  108. package/dist/src/commands/guidance.d.ts.map +1 -1
  109. package/dist/src/commands/guidance.js +129 -0
  110. package/dist/src/commands/guidance.js.map +1 -1
  111. package/dist/src/commands/index.d.ts.map +1 -1
  112. package/dist/src/commands/index.js +4 -0
  113. package/dist/src/commands/index.js.map +1 -1
  114. package/dist/src/commands/init.d.ts.map +1 -1
  115. package/dist/src/commands/init.js +18 -0
  116. package/dist/src/commands/init.js.map +1 -1
  117. package/dist/src/commands/monovector/import.d.ts +1 -1
  118. package/dist/src/commands/monovector/import.js +1 -1
  119. package/dist/src/commands/monovector/index.d.ts +1 -1
  120. package/dist/src/commands/monovector/index.js +1 -1
  121. package/dist/src/commands/monovector/setup.d.ts +1 -1
  122. package/dist/src/commands/monovector/setup.js +2 -2
  123. package/dist/src/commands/neural.d.ts +1 -1
  124. package/dist/src/commands/neural.js +2 -2
  125. package/dist/src/commands/neural.js.map +1 -1
  126. package/dist/src/commands/performance.d.ts +1 -1
  127. package/dist/src/commands/performance.js +2 -2
  128. package/dist/src/commands/performance.js.map +1 -1
  129. package/dist/src/commands/platforms.d.ts +1 -1
  130. package/dist/src/commands/platforms.js +1 -1
  131. package/dist/src/commands/plugins.d.ts +1 -1
  132. package/dist/src/commands/plugins.d.ts.map +1 -1
  133. package/dist/src/commands/plugins.js +2 -4
  134. package/dist/src/commands/plugins.js.map +1 -1
  135. package/dist/src/commands/providers.d.ts +1 -1
  136. package/dist/src/commands/providers.js +2 -2
  137. package/dist/src/commands/providers.js.map +1 -1
  138. package/dist/src/commands/route.d.ts +1 -1
  139. package/dist/src/commands/route.d.ts.map +1 -1
  140. package/dist/src/commands/route.js +5 -11
  141. package/dist/src/commands/route.js.map +1 -1
  142. package/dist/src/commands/security.d.ts +1 -1
  143. package/dist/src/commands/security.d.ts.map +1 -1
  144. package/dist/src/commands/security.js +140 -91
  145. package/dist/src/commands/security.js.map +1 -1
  146. package/dist/src/dlq/dlq-replayer.d.ts +7 -1
  147. package/dist/src/dlq/dlq-replayer.d.ts.map +1 -1
  148. package/dist/src/dlq/dlq-replayer.js.map +1 -1
  149. package/dist/src/index.d.ts +1 -1
  150. package/dist/src/index.d.ts.map +1 -1
  151. package/dist/src/index.js +10 -26
  152. package/dist/src/index.js.map +1 -1
  153. package/dist/src/init/claudemd-generator.js +2 -2
  154. package/dist/src/init/claudemd-generator.js.map +1 -1
  155. package/dist/src/init/executor.js +3 -3
  156. package/dist/src/init/settings-generator.js +2 -2
  157. package/dist/src/init/settings-generator.js.map +1 -1
  158. package/dist/src/mcp-client.d.ts +5 -0
  159. package/dist/src/mcp-client.d.ts.map +1 -1
  160. package/dist/src/mcp-client.js +7 -0
  161. package/dist/src/mcp-client.js.map +1 -1
  162. package/dist/src/mcp-server.d.ts.map +1 -1
  163. package/dist/src/mcp-server.js +17 -1
  164. package/dist/src/mcp-server.js.map +1 -1
  165. package/dist/src/mcp-tools/a2a-tools.js +6 -6
  166. package/dist/src/mcp-tools/a2a-tools.js.map +1 -1
  167. package/dist/src/mcp-tools/auto-install.d.ts +2 -2
  168. package/dist/src/mcp-tools/auto-install.js +1 -1
  169. package/dist/src/mcp-tools/auto-install.js.map +1 -1
  170. package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -1
  171. package/dist/src/mcp-tools/hive-mind-tools.js +1 -52
  172. package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -1
  173. package/dist/src/mcp-tools/index.d.ts +4 -0
  174. package/dist/src/mcp-tools/index.d.ts.map +1 -1
  175. package/dist/src/mcp-tools/index.js +4 -0
  176. package/dist/src/mcp-tools/index.js.map +1 -1
  177. package/dist/src/mcp-tools/monograph-compat.d.ts.map +1 -1
  178. package/dist/src/mcp-tools/monograph-compat.js +1 -2
  179. package/dist/src/mcp-tools/monograph-compat.js.map +1 -1
  180. package/dist/src/mcp-tools/monograph-tools.d.ts.map +1 -1
  181. package/dist/src/mcp-tools/monograph-tools.js +107 -5
  182. package/dist/src/mcp-tools/monograph-tools.js.map +1 -1
  183. package/dist/src/mcp-tools/security-tools.d.ts +6 -6
  184. package/dist/src/mcp-tools/security-tools.d.ts.map +1 -1
  185. package/dist/src/mcp-tools/security-tools.js +48 -61
  186. package/dist/src/mcp-tools/security-tools.js.map +1 -1
  187. package/dist/src/memory/memory-bridge.d.ts +0 -1
  188. package/dist/src/memory/memory-bridge.d.ts.map +1 -1
  189. package/dist/src/memory/memory-bridge.js +232 -57
  190. package/dist/src/memory/memory-bridge.js.map +1 -1
  191. package/dist/src/memory/memory-initializer.d.ts.map +1 -1
  192. package/dist/src/memory/memory-initializer.js +3 -32
  193. package/dist/src/memory/memory-initializer.js.map +1 -1
  194. package/dist/src/plugins/store/discovery.d.ts.map +1 -1
  195. package/dist/src/plugins/store/discovery.js +0 -69
  196. package/dist/src/plugins/store/discovery.js.map +1 -1
  197. package/dist/src/routing/embed-worker.d.ts +2 -0
  198. package/dist/src/routing/embed-worker.d.ts.map +1 -0
  199. package/dist/src/routing/embed-worker.js +55 -0
  200. package/dist/src/routing/embed-worker.js.map +1 -0
  201. package/dist/src/routing/embedder.d.ts +31 -0
  202. package/dist/src/routing/embedder.d.ts.map +1 -0
  203. package/dist/src/routing/embedder.js +0 -0
  204. package/dist/src/routing/embedder.js.map +1 -0
  205. package/dist/src/routing/llm-caller.d.ts +1 -1
  206. package/dist/src/routing/llm-caller.d.ts.map +1 -1
  207. package/dist/src/routing/llm-caller.js +18 -3
  208. package/dist/src/routing/llm-caller.js.map +1 -1
  209. package/dist/src/routing/route-layer-factory.d.ts +9 -0
  210. package/dist/src/routing/route-layer-factory.d.ts.map +1 -0
  211. package/dist/src/routing/route-layer-factory.js +151 -0
  212. package/dist/src/routing/route-layer-factory.js.map +1 -0
  213. package/dist/src/services/worker-daemon.d.ts.map +1 -1
  214. package/dist/src/services/worker-daemon.js +0 -1
  215. package/dist/src/services/worker-daemon.js.map +1 -1
  216. package/dist/src/suggest.d.ts +1 -1
  217. package/dist/src/suggest.js +1 -1
  218. package/dist/src/ui/server.mjs +5 -2
  219. package/dist/tsconfig.tsbuildinfo +1 -1
  220. package/package.json +9 -10
  221. package/scripts/publish-registry.ts +0 -2
  222. package/scripts/understand-analyze.mjs +1 -1
@@ -88,13 +88,13 @@ else
88
88
 
89
89
  while IFS= read -r proj; do
90
90
  [ -z "$proj" ] && continue
91
- projName=$([ -f "$projectsFile" ] && jq -r --arg pid "$proj" '.projects[] | select(.id == $pid) | .name // $pid' "$projectsFile" || echo "$proj")
91
+ projName=$([ -f "$projectsFile" ] && jq -r --arg pid "$proj" '(.projects // [])[] | select(.id == $pid) | .name // $pid' "$projectsFile" || echo "$proj")
92
92
  echo ""
93
93
  echo " PROJECT: $projName"
94
94
  echo " ──────────────────────────────────────────────────"
95
95
  printf " %-18s %-14s %-18s %-12s %-6s %s\n" "ID" "STATUS" "AGENT" "BRANCH" "SVCS" "PATH"
96
96
 
97
- jq -r --arg pid "$proj" '.workspaces[] | select(.project_id == $pid) |
97
+ jq -r --arg pid "$proj" '(.workspaces // [])[] | select(.project_id == $pid) |
98
98
  [.id, (.status // "unknown"), (.agent_id // "(none)"),
99
99
  (.branch // "?"), ((.services // []) | length | tostring),
100
100
  (.worktree_path // "-")]
@@ -112,7 +112,7 @@ echo "Total: $total workspace(s)"
112
112
 
113
113
  ```bash
114
114
  [ -z "$workspace_id" ] && { echo "ERROR: --workspace-id required."; exit 1; }
115
- wsDef=$(jq -r --arg id "$workspace_id" '.workspaces[] | select(.id == $id)' "$wsFile")
115
+ wsDef=$(jq -r --arg id "$workspace_id" '(.workspaces // [])[] | select(.id == $id)' "$wsFile")
116
116
  [ -z "$wsDef" ] && { echo "ERROR: Workspace '$workspace_id' not found."; exit 1; }
117
117
 
118
118
  echo "WORKSPACE STATUS — $workspace_id"
@@ -186,7 +186,7 @@ echo " Path: $worktree_path"
186
186
  [ -z "$workspace_id" ] && { echo "ERROR: --workspace-id required."; exit 1; }
187
187
  tmp="${wsFile}.tmp"
188
188
  jq --arg id "$workspace_id" \
189
- '.workspaces = [.workspaces[] | if .id == $id then .status = "detached" else . end]' \
189
+ '.workspaces = [(.workspaces // [])[] | if .id == $id then .status = "detached" else . end]' \
190
190
  "$wsFile" > "$tmp" && mv "$tmp" "$wsFile"
191
191
  echo "Workspace '$workspace_id' → detached. The worktree is preserved on disk."
192
192
  ```
@@ -195,7 +195,7 @@ echo "Workspace '$workspace_id' → detached. The worktree is preserved on disk.
195
195
 
196
196
  ```bash
197
197
  [ -z "$workspace_id" ] && { echo "ERROR: --workspace-id required."; exit 1; }
198
- wsDef=$(jq -r --arg id "$workspace_id" '.workspaces[] | select(.id == $id)' "$wsFile")
198
+ wsDef=$(jq -r --arg id "$workspace_id" '(.workspaces // [])[] | select(.id == $id)' "$wsFile")
199
199
  [ -z "$wsDef" ] && { echo "ERROR: Workspace '$workspace_id' not found."; exit 1; }
200
200
 
201
201
  services=$(echo "$wsDef" | jq -r '(.services // [])[]')
@@ -208,7 +208,7 @@ fi
208
208
 
209
209
  tmp="${wsFile}.tmp"
210
210
  jq --arg id "$workspace_id" --arg ts "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
211
- '.workspaces = [.workspaces[] | if .id == $id then .status = "stopped" | .services = [] | .lastActiveAt = $ts else . end]' \
211
+ '.workspaces = [(.workspaces // [])[] | if .id == $id then .status = "stopped" | .services = [] | .lastActiveAt = $ts else . end]' \
212
212
  "$wsFile" > "$tmp" && mv "$tmp" "$wsFile"
213
213
 
214
214
  echo "Workspace '$workspace_id' stopped."
@@ -224,7 +224,7 @@ removed=0
224
224
  orphaned=0
225
225
 
226
226
  tmp="${wsFile}.tmp"
227
- jq '.workspaces = [.workspaces[] | select(.status != "stopped" and .status != "detached")]' \
227
+ jq '.workspaces = [(.workspaces // [])[] | select(.status != "stopped" and .status != "detached")]' \
228
228
  "$wsFile" > "$tmp" && mv "$tmp" "$wsFile"
229
229
 
230
230
  after=$(jq '.workspaces | length' "$wsFile")
@@ -232,9 +232,9 @@ removed=$((before - after))
232
232
 
233
233
  # Find orphaned worktrees (path gone)
234
234
  while IFS= read -r path; do
235
- [ -z "$path" ] || [ "$path" = "null" ] && continue
235
+ { [ -z "$path" ] || [ "$path" = "null" ]; } && continue
236
236
  [ ! -d "$path" ] && orphaned=$((orphaned + 1))
237
- done < <(jq -r '.workspaces[].worktree_path // ""' "$wsFile")
237
+ done < <(jq -r '(.workspaces // [])[].worktree_path // ""' "$wsFile")
238
238
 
239
239
  echo " Removed $removed stopped/detached workspace record(s)."
240
240
  [ "$orphaned" -gt 0 ] && echo " WARNING: $orphaned workspace(s) have missing worktree paths. Run --action status to investigate."
@@ -547,9 +547,9 @@ npx monomind bottleneck detect --fix
547
547
 
548
548
  ## See Also
549
549
 
550
- - [Bottleneck Detection Guide](https://github.com/nokhodian/monomind/wiki/bottleneck-detect)
551
- - [Performance Report Guide](https://github.com/nokhodian/monomind/wiki/performance-report)
552
- - [Performance Bottlenecks Overview](https://github.com/nokhodian/monomind/wiki/performance-bottlenecks)
550
+ - [Bottleneck Detection Guide](https://github.com/monoes/monomind/wiki/bottleneck-detect)
551
+ - [Performance Report Guide](https://github.com/monoes/monomind/wiki/performance-report)
552
+ - [Performance Bottlenecks Overview](https://github.com/monoes/monomind/wiki/performance-bottlenecks)
553
553
  - [Swarm Monitoring Documentation](../swarm-orchestration/SKILL.md)
554
554
  - [Memory Management Documentation](../memory-management/SKILL.md)
555
555
 
@@ -901,8 +901,8 @@ mcp__monomind__token_usage {
901
901
 
902
902
  ## Support and Resources
903
903
 
904
- - **Documentation**: https://github.com/nokhodian/monomind
905
- - **Issues**: https://github.com/nokhodian/monomind/issues
904
+ - **Documentation**: https://github.com/monoes/monomind
905
+ - **Issues**: https://github.com/monoes/monomind/issues
906
906
  - **NPM Package**: https://www.npmjs.com/package/monomind
907
907
  - **Community**: Discord server (link in repository)
908
908
 
@@ -924,10 +924,10 @@ mcp__monomind__swarm_init({ topology: "mesh", maxAgents: 4 })
924
924
 
925
925
  ## References
926
926
 
927
- - [Monomind Documentation](https://github.com/nokhodian/monomind)
928
- - [Swarm Orchestration Guide](https://github.com/nokhodian/monomind/wiki/swarm)
929
- - [MCP Tools Reference](https://github.com/nokhodian/monomind/wiki/mcp)
930
- - [Performance Optimization](https://github.com/nokhodian/monomind/wiki/performance)
927
+ - [Monomind Documentation](https://github.com/monoes/monomind)
928
+ - [Swarm Orchestration Guide](https://github.com/monoes/monomind/wiki/swarm)
929
+ - [MCP Tools Reference](https://github.com/monoes/monomind/wiki/mcp)
930
+ - [Performance Optimization](https://github.com/monoes/monomind/wiki/performance)
931
931
 
932
932
  ---
933
933