@monoes/monomindcli 1.10.54 → 1.10.55
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/.claude/agents/optimization/benchmark-suite.md +2 -0
- package/.claude/agents/optimization/load-balancer.md +2 -0
- package/.claude/agents/optimization/performance-monitor.md +2 -0
- package/.claude/agents/optimization/resource-allocator.md +3 -1
- package/.claude/agents/optimization/topology-optimizer.md +2 -0
- package/.claude/commands/mastermind/_repeat.md +21 -0
- package/.claude/commands/mastermind/_taskfile.md +235 -0
- package/.claude/commands/mastermind/adr.md +11 -0
- package/.claude/commands/mastermind/approve.md +94 -0
- package/.claude/commands/mastermind/autodev.md +32 -0
- package/.claude/commands/mastermind/budget.md +7 -0
- package/.claude/commands/mastermind/code-review.md +317 -0
- package/.claude/commands/mastermind/createorg.md +40 -1
- package/.claude/commands/mastermind/createtask.md +383 -0
- package/.claude/commands/mastermind/debug.md +22 -0
- package/.claude/commands/mastermind/design.md +20 -0
- package/.claude/commands/mastermind/do.md +526 -0
- package/.claude/commands/mastermind/execute.md +20 -0
- package/.claude/commands/mastermind/finish.md +20 -0
- package/.claude/commands/mastermind/graph-status.md +7 -0
- package/.claude/commands/mastermind/help.md +118 -0
- package/.claude/commands/mastermind/ideate.md +261 -0
- package/.claude/commands/mastermind/improve.md +345 -0
- package/.claude/commands/mastermind/loops.md +7 -0
- package/.claude/commands/mastermind/master.md +186 -6
- package/.claude/commands/mastermind/memory.md +230 -0
- package/.claude/commands/mastermind/plan.md +26 -0
- package/.claude/commands/mastermind/receive-review.md +20 -0
- package/.claude/commands/mastermind/repeat.md +257 -0
- package/.claude/commands/mastermind/runorg.md +3 -0
- package/.claude/commands/mastermind/skill-builder.md +20 -0
- package/.claude/commands/mastermind/specialagents.md +125 -0
- package/.claude/commands/mastermind/swarm.md +161 -0
- package/.claude/commands/mastermind/taskdev.md +26 -0
- package/.claude/commands/mastermind/tdd.md +22 -0
- package/.claude/commands/mastermind/techport.md +4 -0
- package/.claude/commands/mastermind/understand.md +139 -0
- package/.claude/commands/mastermind/verify.md +22 -0
- package/.claude/commands/mastermind/worktree.md +20 -0
- package/.claude/helpers/handlers/graph-status-handler.cjs +2 -1
- package/.claude/helpers/hook-handler.cjs +19 -0
- package/.claude/helpers/skill-registry.json +23 -0
- package/.claude/helpers/statusline.cjs +1 -1
- package/.claude/skills/mastermind/approve.md +15 -7
- package/.claude/skills/mastermind/autodev.md +534 -0
- package/.claude/skills/mastermind/createorg.md +21 -5
- package/.claude/skills/mastermind/debug.md +232 -0
- package/.claude/skills/mastermind/design.md +187 -0
- package/.claude/skills/mastermind/execute.md +104 -0
- package/.claude/skills/mastermind/finish.md +251 -0
- package/.claude/skills/mastermind/plan.md +180 -0
- package/.claude/skills/mastermind/receive-review.md +213 -0
- package/.claude/skills/mastermind/runorg.md +23 -8
- package/.claude/skills/mastermind/skill-builder.md +274 -0
- package/.claude/skills/mastermind/taskdev.md +307 -0
- package/.claude/skills/mastermind/tdd.md +394 -0
- package/.claude/skills/mastermind/verify.md +196 -0
- package/.claude/skills/mastermind/worktree.md +160 -132
- package/README.md +320 -253
- package/dist/src/commands/analyze.d.ts.map +1 -1
- package/dist/src/commands/analyze.js +9 -2
- package/dist/src/commands/analyze.js.map +1 -1
- package/dist/src/commands/benchmark.js.map +1 -1
- package/dist/src/commands/completions.js +1 -1
- package/dist/src/commands/guidance.js +7 -7
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +16 -3
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/index.d.ts +3 -2
- package/dist/src/commands/index.d.ts.map +1 -1
- package/dist/src/commands/index.js +7 -0
- package/dist/src/commands/index.js.map +1 -1
- package/dist/src/commands/init.d.ts.map +1 -1
- package/dist/src/commands/init.js +47 -13
- package/dist/src/commands/init.js.map +1 -1
- package/dist/src/commands/neural.d.ts.map +1 -1
- package/dist/src/commands/neural.js +100 -14
- package/dist/src/commands/neural.js.map +1 -1
- package/dist/src/commands/platforms.d.ts +11 -0
- package/dist/src/commands/platforms.d.ts.map +1 -0
- package/dist/src/commands/platforms.js +195 -0
- package/dist/src/commands/platforms.js.map +1 -0
- package/dist/src/commands/ruvector/backup.js.map +1 -1
- package/dist/src/commands/ruvector/benchmark.js.map +1 -1
- package/dist/src/commands/ruvector/init.js.map +1 -1
- package/dist/src/commands/ruvector/migrate.js.map +1 -1
- package/dist/src/commands/ruvector/optimize.js.map +1 -1
- package/dist/src/commands/ruvector/status.js.map +1 -1
- package/dist/src/commands/update.js +6 -6
- package/dist/src/init/executor.d.ts.map +1 -1
- package/dist/src/init/executor.js +28 -0
- package/dist/src/init/executor.js.map +1 -1
- package/dist/src/init/statusline-generator.js +1 -1
- package/dist/src/init/types.d.ts +1 -0
- package/dist/src/init/types.d.ts.map +1 -1
- package/dist/src/mcp-server.d.ts.map +1 -1
- package/dist/src/mcp-server.js +92 -0
- package/dist/src/mcp-server.js.map +1 -1
- package/dist/src/mcp-tools/hive-mind-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/hive-mind-tools.js +52 -0
- package/dist/src/mcp-tools/hive-mind-tools.js.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.js +106 -5
- package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
- package/dist/src/mcp-tools/index.d.ts +0 -5
- package/dist/src/mcp-tools/index.d.ts.map +1 -1
- package/dist/src/mcp-tools/index.js +0 -5
- package/dist/src/mcp-tools/index.js.map +1 -1
- package/dist/src/mcp-tools/monograph-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/monograph-tools.js +507 -5587
- package/dist/src/mcp-tools/monograph-tools.js.map +1 -1
- package/dist/src/mcp-tools/neural-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/neural-tools.js +64 -4
- package/dist/src/mcp-tools/neural-tools.js.map +1 -1
- package/dist/src/mcp-tools/security-tools.js +4 -4
- package/dist/src/memory/intelligence.d.ts +2 -2
- package/dist/src/memory/intelligence.d.ts.map +1 -1
- package/dist/src/memory/intelligence.js +108 -3
- package/dist/src/memory/intelligence.js.map +1 -1
- package/dist/src/memory/memory-bridge.js +1 -1
- package/dist/src/memory/memory-bridge.js.map +1 -1
- package/dist/src/memory/sona-optimizer.d.ts +1 -10
- package/dist/src/memory/sona-optimizer.d.ts.map +1 -1
- package/dist/src/memory/sona-optimizer.js +0 -46
- package/dist/src/memory/sona-optimizer.js.map +1 -1
- package/dist/src/runtime/headless.js +3 -3
- package/dist/src/ruvector/diff-classifier.d.ts +0 -2
- package/dist/src/ruvector/diff-classifier.d.ts.map +1 -1
- package/dist/src/ruvector/diff-classifier.js +2 -14
- package/dist/src/ruvector/diff-classifier.js.map +1 -1
- package/dist/src/ruvector/index.d.ts +26 -9
- package/dist/src/ruvector/index.d.ts.map +1 -1
- package/dist/src/ruvector/index.js +3 -21
- package/dist/src/ruvector/index.js.map +1 -1
- package/dist/src/ruvector/ruvllm-wasm.js +2 -2
- package/dist/src/ruvector/ruvllm-wasm.js.map +1 -1
- package/dist/src/types.d.ts +0 -15
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +0 -18
- package/dist/src/types.js.map +1 -1
- package/dist/src/ui/dashboard.html +8763 -9766
- package/dist/src/ui/orgs.html +1 -1
- package/dist/src/ui/server.mjs +504 -35
- package/dist/src/update/index.js +1 -1
- package/dist/src/update/validator.js +8 -8
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/.claude/agents/academic/academic-anthropologist.md +0 -126
- package/.claude/agents/academic/academic-geographer.md +0 -128
- package/.claude/agents/academic/academic-historian.md +0 -124
- package/.claude/agents/academic/academic-narratologist.md +0 -119
- package/.claude/agents/academic/academic-psychologist.md +0 -119
- package/.claude/agents/analysis/analyze-code-quality.md +0 -58
- package/.claude/agents/analysis/code-analyzer.md +0 -189
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +0 -58
- package/.claude/agents/consensus/performance-benchmarker.md +0 -831
- package/.claude/agents/data/ml/data-ml-model.md +0 -76
- package/.claude/agents/development/dev-backend-api.md +0 -178
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +0 -52
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +0 -63
- package/.claude/agents/game-development/blender/blender-addon-engineer.md +0 -235
- package/.claude/agents/game-development/game-audio-engineer.md +0 -265
- package/.claude/agents/game-development/game-designer.md +0 -168
- package/.claude/agents/game-development/godot/godot-gameplay-scripter.md +0 -335
- package/.claude/agents/game-development/godot/godot-multiplayer-engineer.md +0 -298
- package/.claude/agents/game-development/godot/godot-shader-developer.md +0 -267
- package/.claude/agents/game-development/level-designer.md +0 -209
- package/.claude/agents/game-development/narrative-designer.md +0 -244
- package/.claude/agents/game-development/roblox-studio/roblox-avatar-creator.md +0 -298
- package/.claude/agents/game-development/roblox-studio/roblox-experience-designer.md +0 -306
- package/.claude/agents/game-development/roblox-studio/roblox-systems-scripter.md +0 -326
- package/.claude/agents/game-development/technical-artist.md +0 -230
- package/.claude/agents/game-development/unity/unity-architect.md +0 -272
- package/.claude/agents/game-development/unity/unity-editor-tool-developer.md +0 -311
- package/.claude/agents/game-development/unity/unity-multiplayer-engineer.md +0 -322
- package/.claude/agents/game-development/unity/unity-shader-graph-artist.md +0 -270
- package/.claude/agents/game-development/unreal-engine/unreal-multiplayer-architect.md +0 -314
- package/.claude/agents/game-development/unreal-engine/unreal-systems-engineer.md +0 -311
- package/.claude/agents/game-development/unreal-engine/unreal-technical-artist.md +0 -257
- package/.claude/agents/game-development/unreal-engine/unreal-world-builder.md +0 -274
- package/.claude/agents/github/release-swarm.md +0 -597
- package/.claude/agents/goal/agent.md +0 -804
- package/.claude/agents/goal/code-goal-planner.md +0 -445
- package/.claude/agents/marketing/marketing-ai-citation-strategist.md +0 -171
- package/.claude/agents/marketing/marketing-app-store-optimizer.md +0 -322
- package/.claude/agents/marketing/marketing-baidu-seo-specialist.md +0 -227
- package/.claude/agents/marketing/marketing-bilibili-content-strategist.md +0 -200
- package/.claude/agents/marketing/marketing-book-co-author.md +0 -111
- package/.claude/agents/marketing/marketing-carousel-growth-engine.md +0 -200
- package/.claude/agents/marketing/marketing-china-ecommerce-operator.md +0 -284
- package/.claude/agents/marketing/marketing-content-creator.md +0 -67
- package/.claude/agents/marketing/marketing-cross-border-ecommerce.md +0 -260
- package/.claude/agents/marketing/marketing-douyin-strategist.md +0 -150
- package/.claude/agents/marketing/marketing-growth-hacker.md +0 -54
- package/.claude/agents/marketing/marketing-instagram-curator.md +0 -114
- package/.claude/agents/marketing/marketing-kuaishou-strategist.md +0 -224
- package/.claude/agents/marketing/marketing-linkedin-content-creator.md +0 -215
- package/.claude/agents/marketing/marketing-livestream-commerce-coach.md +0 -306
- package/.claude/agents/marketing/marketing-podcast-strategist.md +0 -278
- package/.claude/agents/marketing/marketing-private-domain-operator.md +0 -309
- package/.claude/agents/marketing/marketing-reddit-community-builder.md +0 -124
- package/.claude/agents/marketing/marketing-seo-specialist.md +0 -279
- package/.claude/agents/marketing/marketing-short-video-editing-coach.md +0 -413
- package/.claude/agents/marketing/marketing-social-media-strategist.md +0 -125
- package/.claude/agents/marketing/marketing-tiktok-strategist.md +0 -126
- package/.claude/agents/marketing/marketing-twitter-engager.md +0 -127
- package/.claude/agents/marketing/marketing-wechat-official-account.md +0 -146
- package/.claude/agents/marketing/marketing-weibo-strategist.md +0 -241
- package/.claude/agents/marketing/marketing-xiaohongshu-specialist.md +0 -139
- package/.claude/agents/marketing/marketing-zhihu-strategist.md +0 -163
- package/.claude/agents/neural/safla-neural.md +0 -74
- package/.claude/agents/paid-media/paid-media-auditor.md +0 -71
- package/.claude/agents/paid-media/paid-media-creative-strategist.md +0 -71
- package/.claude/agents/paid-media/paid-media-paid-social-strategist.md +0 -71
- package/.claude/agents/paid-media/paid-media-ppc-strategist.md +0 -71
- package/.claude/agents/paid-media/paid-media-programmatic-buyer.md +0 -71
- package/.claude/agents/paid-media/paid-media-search-query-analyst.md +0 -71
- package/.claude/agents/paid-media/paid-media-tracking-specialist.md +0 -71
- package/.claude/agents/payments/agentic-payments.md +0 -126
- package/.claude/agents/product/product-behavioral-nudge-engine.md +0 -81
- package/.claude/agents/product/product-feedback-synthesizer.md +0 -119
- package/.claude/agents/product/product-manager.md +0 -469
- package/.claude/agents/product/product-sprint-prioritizer.md +0 -154
- package/.claude/agents/product/product-trend-researcher.md +0 -159
- package/.claude/agents/project-management/project-management-experiment-tracker.md +0 -199
- package/.claude/agents/project-management/project-management-jira-workflow-steward.md +0 -231
- package/.claude/agents/project-management/project-management-project-shepherd.md +0 -195
- package/.claude/agents/project-management/project-management-studio-operations.md +0 -201
- package/.claude/agents/project-management/project-management-studio-producer.md +0 -204
- package/.claude/agents/project-management/project-manager-senior.md +0 -136
- package/.claude/agents/reasoning/agent.md +0 -804
- package/.claude/agents/reasoning/goal-planner.md +0 -73
- package/.claude/agents/sales/sales-account-strategist.md +0 -228
- package/.claude/agents/sales/sales-coach.md +0 -272
- package/.claude/agents/sales/sales-deal-strategist.md +0 -181
- package/.claude/agents/sales/sales-discovery-coach.md +0 -226
- package/.claude/agents/sales/sales-engineer.md +0 -183
- package/.claude/agents/sales/sales-outbound-strategist.md +0 -202
- package/.claude/agents/sales/sales-pipeline-analyst.md +0 -268
- package/.claude/agents/sales/sales-proposal-strategist.md +0 -218
- package/.claude/agents/sona/sona-learning-optimizer.md +0 -65
- package/.claude/agents/spatial-computing/macos-spatial-metal-engineer.md +0 -338
- package/.claude/agents/spatial-computing/terminal-integration-specialist.md +0 -71
- package/.claude/agents/spatial-computing/visionos-spatial-engineer.md +0 -55
- package/.claude/agents/specialists/memory-specialist.md +0 -298
- package/.claude/agents/specialists/performance-engineer.md +0 -387
- package/.claude/agents/specialists/queen-coordinator.md +0 -67
- package/.claude/agents/specialists/security-architect.md +0 -154
- package/.claude/agents/specialized/accounts-payable-agent.md +0 -186
- package/.claude/agents/specialized/corporate-training-designer.md +0 -193
- package/.claude/agents/specialized/data-consolidation-agent.md +0 -61
- package/.claude/agents/specialized/government-digital-presales-consultant.md +0 -364
- package/.claude/agents/specialized/healthcare-marketing-compliance.md +0 -396
- package/.claude/agents/specialized/recruitment-specialist.md +0 -510
- package/.claude/agents/specialized/report-distribution-agent.md +0 -66
- package/.claude/agents/specialized/sales-data-extraction-agent.md +0 -68
- package/.claude/agents/specialized/specialized-french-consulting-market.md +0 -193
- package/.claude/agents/specialized/specialized-korean-business-navigator.md +0 -217
- package/.claude/agents/specialized/specialized-salesforce-architect.md +0 -181
- package/.claude/agents/specialized/study-abroad-advisor.md +0 -283
- package/.claude/agents/specialized/supply-chain-strategist.md +0 -583
- package/.claude/agents/sublinear/consensus-coordinator.md +0 -333
- package/.claude/agents/sublinear/matrix-optimizer.md +0 -180
- package/.claude/agents/sublinear/pagerank-analyzer.md +0 -295
- package/.claude/agents/sublinear/performance-optimizer.md +0 -363
- package/.claude/agents/sublinear/trading-predictor.md +0 -242
- package/.claude/agents/support/support-analytics-reporter.md +0 -366
- package/.claude/agents/support/support-executive-summary-generator.md +0 -213
- package/.claude/agents/support/support-finance-tracker.md +0 -443
- package/.claude/agents/support/support-infrastructure-maintainer.md +0 -619
- package/.claude/agents/support/support-legal-compliance-checker.md +0 -589
- package/.claude/agents/support/support-support-responder.md +0 -586
- package/.claude/agents/swarm/adaptive-coordinator.md +0 -364
- package/.claude/agents/swarm/hierarchical-coordinator.md +0 -318
- package/.claude/agents/templates/github-pr-manager.md +0 -155
- package/.claude/agents/templates/memory-coordinator.md +0 -163
- package/.claude/agents/templates/migration-plan.md +0 -724
- package/.claude/agents/templates/orchestrator-task.md +0 -120
- package/.claude/agents/templates/performance-analyzer.md +0 -179
- package/.claude/agents/templates/sparc-coordinator.md +0 -163
- package/.claude/agents/testing/testing-reality-checker.md +0 -237
- package/.claude/commands/analysis/token-efficiency.md +0 -42
- package/.claude/commands/optimization/README.md +0 -73
- package/.claude/commands/optimization/parallel-execution.md +0 -76
- package/.claude/commands/swarm/swarm-analysis.md +0 -62
- package/.claude/commands/swarm/swarm-background.md +0 -65
- package/.claude/commands/swarm/swarm-modes.md +0 -67
- package/.claude/commands/swarm/swarm-monitor.md +0 -54
- package/.claude/commands/swarm/swarm-status.md +0 -44
- package/.claude/commands/swarm/swarm-strategies.md +0 -76
- package/.claude/commands/training/model-update.md +0 -78
- package/.claude/commands/training/pattern-learn.md +0 -69
- package/.claude/commands/training/specialization.md +0 -92
- package/.claude/commands/verify/check.md +0 -106
- package/.claude/commands/verify/start.md +0 -105
- package/.claude/helpers/README.md +0 -105
- package/.claude/helpers/context-persistence-hook.mjs +0 -1988
- package/.claude/helpers/intelligence.cjs +0 -247
- package/.claude/helpers/learning-service.mjs +0 -1302
- package/.claude/helpers/memory-palace.cjs +0 -461
- package/.claude/helpers/memory.cjs +0 -84
- package/.claude/helpers/metrics-db.mjs +0 -488
- package/.claude/helpers/router.cjs +0 -559
- package/.claude/helpers/session.cjs +0 -126
- package/.claude/helpers/swarm-hooks.sh +0 -761
- package/.claude/helpers/toggle-statusline.cjs +0 -58
- package/.claude/helpers/token-tracker.cjs +0 -934
- package/.claude/skills/agentdb-advanced/SKILL.md +0 -549
- package/.claude/skills/agentdb-learning/SKILL.md +0 -544
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +0 -337
- package/.claude/skills/agentdb-optimization/SKILL.md +0 -508
- package/.claude/skills/agentdb-vector-search/SKILL.md +0 -335
- package/.claude/skills/agentic-integration/SKILL.md +0 -265
- package/.claude/skills/cli-modernization/SKILL.md +0 -950
- package/.claude/skills/core-implementation/SKILL.md +0 -892
- package/.claude/skills/ddd-architecture/SKILL.md +0 -444
- package/.claude/skills/github-code-review/SKILL.md +0 -1147
- package/.claude/skills/github-multi-repo/SKILL.md +0 -912
- package/.claude/skills/github-project-management/SKILL.md +0 -1245
- package/.claude/skills/github-release-management/SKILL.md +0 -1118
- package/.claude/skills/github-workflow-automation/SKILL.md +0 -1107
- package/.claude/skills/mcp-optimization/SKILL.md +0 -837
- package/.claude/skills/memory-unification/SKILL.md +0 -196
- package/.claude/skills/performance-optimization/SKILL.md +0 -416
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +0 -444
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +0 -199
- package/.claude/skills/security-hardening/SKILL.md +0 -101
- package/.claude/skills/stream-chain/SKILL.md +0 -560
- package/.claude/skills/swarm-coordination/SKILL.md +0 -451
- package/bundled-graph/dist/src/analyze.d.ts +0 -32
- package/bundled-graph/dist/src/analyze.d.ts.map +0 -1
- package/bundled-graph/dist/src/analyze.js +0 -297
- package/bundled-graph/dist/src/analyze.js.map +0 -1
- package/bundled-graph/dist/src/build.d.ts +0 -8
- package/bundled-graph/dist/src/build.d.ts.map +0 -1
- package/bundled-graph/dist/src/build.js.map +0 -1
- package/bundled-graph/dist/src/cache.d.ts +0 -12
- package/bundled-graph/dist/src/cache.d.ts.map +0 -1
- package/bundled-graph/dist/src/cache.js +0 -43
- package/bundled-graph/dist/src/cache.js.map +0 -1
- package/bundled-graph/dist/src/cluster.d.ts +0 -5
- package/bundled-graph/dist/src/cluster.d.ts.map +0 -1
- package/bundled-graph/dist/src/cluster.js.map +0 -1
- package/bundled-graph/dist/src/detect.d.ts +0 -21
- package/bundled-graph/dist/src/detect.d.ts.map +0 -1
- package/bundled-graph/dist/src/detect.js +0 -195
- package/bundled-graph/dist/src/detect.js.map +0 -1
- package/bundled-graph/dist/src/export.d.ts +0 -21
- package/bundled-graph/dist/src/export.d.ts.map +0 -1
- package/bundled-graph/dist/src/export.js +0 -68
- package/bundled-graph/dist/src/export.js.map +0 -1
- package/bundled-graph/dist/src/extract/index.d.ts +0 -20
- package/bundled-graph/dist/src/extract/index.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/index.js +0 -158
- package/bundled-graph/dist/src/extract/index.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/c.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/c.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/c.js +0 -88
- package/bundled-graph/dist/src/extract/languages/c.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/cpp.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/cpp.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/cpp.js +0 -121
- package/bundled-graph/dist/src/extract/languages/cpp.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/csharp.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/csharp.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/csharp.js +0 -121
- package/bundled-graph/dist/src/extract/languages/csharp.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/go.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/go.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/go.js +0 -181
- package/bundled-graph/dist/src/extract/languages/go.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/java.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/java.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/java.js +0 -117
- package/bundled-graph/dist/src/extract/languages/java.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/kotlin.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/kotlin.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/kotlin.js +0 -112
- package/bundled-graph/dist/src/extract/languages/kotlin.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/php.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/php.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/php.js +0 -130
- package/bundled-graph/dist/src/extract/languages/php.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/python.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/python.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/python.js +0 -230
- package/bundled-graph/dist/src/extract/languages/python.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/ruby.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/ruby.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/ruby.js +0 -120
- package/bundled-graph/dist/src/extract/languages/ruby.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/rust.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/rust.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/rust.js +0 -195
- package/bundled-graph/dist/src/extract/languages/rust.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/scala.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/scala.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/scala.js +0 -110
- package/bundled-graph/dist/src/extract/languages/scala.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/swift.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/swift.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/swift.js +0 -122
- package/bundled-graph/dist/src/extract/languages/swift.js.map +0 -1
- package/bundled-graph/dist/src/extract/languages/typescript.d.ts +0 -3
- package/bundled-graph/dist/src/extract/languages/typescript.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/languages/typescript.js +0 -295
- package/bundled-graph/dist/src/extract/languages/typescript.js.map +0 -1
- package/bundled-graph/dist/src/extract/semantic.d.ts +0 -38
- package/bundled-graph/dist/src/extract/semantic.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/semantic.js +0 -242
- package/bundled-graph/dist/src/extract/semantic.js.map +0 -1
- package/bundled-graph/dist/src/extract/tree-sitter-runner.d.ts +0 -48
- package/bundled-graph/dist/src/extract/tree-sitter-runner.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/tree-sitter-runner.js +0 -137
- package/bundled-graph/dist/src/extract/tree-sitter-runner.js.map +0 -1
- package/bundled-graph/dist/src/extract/types.d.ts +0 -7
- package/bundled-graph/dist/src/extract/types.d.ts.map +0 -1
- package/bundled-graph/dist/src/extract/types.js +0 -2
- package/bundled-graph/dist/src/extract/types.js.map +0 -1
- package/bundled-graph/dist/src/index.d.ts +0 -28
- package/bundled-graph/dist/src/index.d.ts.map +0 -1
- package/bundled-graph/dist/src/index.js +0 -26
- package/bundled-graph/dist/src/index.js.map +0 -1
- package/bundled-graph/dist/src/pipeline.d.ts +0 -27
- package/bundled-graph/dist/src/pipeline.d.ts.map +0 -1
- package/bundled-graph/dist/src/pipeline.js +0 -269
- package/bundled-graph/dist/src/pipeline.js.map +0 -1
- package/bundled-graph/dist/src/report.d.ts +0 -26
- package/bundled-graph/dist/src/report.d.ts.map +0 -1
- package/bundled-graph/dist/src/report.js +0 -214
- package/bundled-graph/dist/src/report.js.map +0 -1
- package/bundled-graph/dist/src/types.d.ts +0 -124
- package/bundled-graph/dist/src/types.d.ts.map +0 -1
- package/bundled-graph/dist/src/types.js +0 -2
- package/bundled-graph/dist/src/types.js.map +0 -1
- package/bundled-graph/dist/src/visualize.d.ts +0 -4
- package/bundled-graph/dist/src/visualize.d.ts.map +0 -1
- package/bundled-graph/dist/src/visualize.js +0 -574
- package/bundled-graph/dist/src/visualize.js.map +0 -1
- package/bundled-graph/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/src/ui/dashboard-v2.html +0 -5316
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mastermind:understand
|
|
3
|
+
description: "Monomind — Run semantic enrichment on the current project's monograph knowledge graph. Uses the active Claude Code session for LLM work — no API key needed."
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# /mastermind:understand — Semantic Enrichment
|
|
7
|
+
|
|
8
|
+
Enriches the current project's monograph knowledge graph with summaries, architectural
|
|
9
|
+
layers, and semantic relationships.
|
|
10
|
+
|
|
11
|
+
**Designed to run inside Claude Code** — uses YOUR current session for LLM work via
|
|
12
|
+
the Task tool. No `ANTHROPIC_API_KEY` required. The script handles layer detection
|
|
13
|
+
and DB writes; you (Claude) handle per-file summarization.
|
|
14
|
+
|
|
15
|
+
## Parse Arguments
|
|
16
|
+
|
|
17
|
+
Parse `$ARGUMENTS` for these flags:
|
|
18
|
+
|
|
19
|
+
- `--dir <path>` — project directory (default: cwd)
|
|
20
|
+
- `--db <path>` — monograph.db path (default: `<dir>/.monomind/monograph.db`)
|
|
21
|
+
- `--full` — force full re-analysis
|
|
22
|
+
- `--no-llm` — heuristic-only mode (no per-file summaries)
|
|
23
|
+
- `--layers-only` — skip per-file analysis, only re-detect layers
|
|
24
|
+
- `--max-files <N>` — stop after N files (0 = all)
|
|
25
|
+
- `--dry-run` — show what would happen, don't write
|
|
26
|
+
|
|
27
|
+
Bare path argument → `--dir`.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Step 1: Locate project, DB, and script
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
DIR="${ARGUMENTS_dir:-$(pwd)}"
|
|
35
|
+
DB="${ARGUMENTS_db:-$DIR/.monomind/monograph.db}"
|
|
36
|
+
|
|
37
|
+
# Find understand-analyze.mjs (ships with monomind globally)
|
|
38
|
+
GLOBAL_ROOT=$(npm root -g 2>/dev/null)
|
|
39
|
+
SCRIPT="$GLOBAL_ROOT/monomind/packages/@monomind/cli/scripts/understand-analyze.mjs"
|
|
40
|
+
[ ! -f "$SCRIPT" ] && SCRIPT="$GLOBAL_ROOT/@monoes/monomindcli/scripts/understand-analyze.mjs"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
If `$DB` does not exist:
|
|
44
|
+
> monograph.db not found at `$DB`. Build it first: `npx monomind monograph build`
|
|
45
|
+
|
|
46
|
+
If `$SCRIPT` does not exist:
|
|
47
|
+
> understand engine missing. Update: `npm install -g monomind@latest`
|
|
48
|
+
|
|
49
|
+
In either case, STOP.
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Step 2: Run the script in heuristic mode (always — fast and deterministic)
|
|
54
|
+
|
|
55
|
+
This step is non-negotiable. The script handles:
|
|
56
|
+
- File node discovery from monograph.db
|
|
57
|
+
- Heuristic layer detection from file paths
|
|
58
|
+
- DB writes (community_id + properties)
|
|
59
|
+
- graph.json emission to `.understand/knowledge-graph.json`
|
|
60
|
+
- Auto-shadowing the DB to `/tmp` when it lives on a network FS
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
node "$SCRIPT" --dir "$DIR" --db "$DB" --no-llm
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Wait for completion. Capture stdout. Note how many file nodes were found and how
|
|
67
|
+
many layers were detected. Do NOT advise the user about API keys.
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Step 3: Per-file summarization (ONLY if `--no-llm` and `--layers-only` are both UNSET)
|
|
72
|
+
|
|
73
|
+
This is where YOU (the current Claude session) do the LLM work. The script left
|
|
74
|
+
behind a fresh `.understand/knowledge-graph.json` with placeholder summaries.
|
|
75
|
+
|
|
76
|
+
1. Read `.understand/knowledge-graph.json`. For each node where `properties.fileSummary`
|
|
77
|
+
is empty or marked `[heuristic]`, do the following:
|
|
78
|
+
- Use the `Read` tool on `node.file_path` (relative to `$DIR`).
|
|
79
|
+
- Produce a JSON object: `{ id, fileSummary, tags, complexity, functionSummaries, classSummaries }`
|
|
80
|
+
where:
|
|
81
|
+
- `fileSummary`: 1-2 sentences explaining what the file does
|
|
82
|
+
- `tags`: array of 2-5 short tags
|
|
83
|
+
- `complexity`: "simple" | "moderate" | "complex"
|
|
84
|
+
- `functionSummaries`: top-5 functions → 1-sentence each
|
|
85
|
+
- `classSummaries`: classes → 1-sentence each
|
|
86
|
+
2. Process files in batches of 5 for efficiency. Use `--max-files` to cap if set.
|
|
87
|
+
3. Collect all analyses into an `analyses` array.
|
|
88
|
+
|
|
89
|
+
If `$ARGUMENTS` includes `--no-llm` or `--layers-only`, SKIP this step entirely.
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
## Step 4: Write analyses back to the DB
|
|
94
|
+
|
|
95
|
+
Pipe the collected analyses to a small re-import:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
echo "$ANALYSES_JSON" | node "$SCRIPT" --dir "$DIR" --db "$DB" --import-analyses-stdin
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
(If your `analyses` array is empty, skip this step.)
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## Step 5: Report
|
|
106
|
+
|
|
107
|
+
```
|
|
108
|
+
╔══════════════════════════════════════════════════╗
|
|
109
|
+
║ /mastermind:understand — Enrichment Done ║
|
|
110
|
+
╠══════════════════════════════════════════════════╣
|
|
111
|
+
║ DB: .monomind/monograph.db ║
|
|
112
|
+
║ Files analyzed: <N> ║
|
|
113
|
+
║ LLM summaries: <N> (via active session) ║
|
|
114
|
+
║ Layers: <N> ║
|
|
115
|
+
║ graph.json: .understand/knowledge-graph.json║
|
|
116
|
+
╚══════════════════════════════════════════════════╝
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
If LLM summaries = 0 (because `--no-llm` was set), say "heuristic-only mode — no per-file summaries written".
|
|
120
|
+
|
|
121
|
+
Then:
|
|
122
|
+
> Open the Monomind control panel and click **Monograph → GRAPH** to see layers.
|
|
123
|
+
> Each color = one architectural layer (API, Service, Data, UI, etc.).
|
|
124
|
+
>
|
|
125
|
+
> Follow-ups:
|
|
126
|
+
> - `/mastermind:understand --full` — re-run from scratch
|
|
127
|
+
> - `/mastermind:understand --layers-only` — refresh only layers
|
|
128
|
+
> - `/mastermind:understand --no-llm` — heuristic-only mode
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
## Error Handling
|
|
133
|
+
|
|
134
|
+
- Do NOT prompt the user to set `ANTHROPIC_API_KEY`. LLM work happens in this session.
|
|
135
|
+
- If the script exits non-zero: show stderr and suggest `npm install -g monomind@latest`.
|
|
136
|
+
- If monograph.db has no file nodes: tell the user to run `npx monomind monograph build` first.
|
|
137
|
+
- All errors are non-fatal — report and return cleanly.
|
|
138
|
+
|
|
139
|
+
To re-run on a schedule: wrap with `/mastermind:repeat`.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mastermind-verify
|
|
3
|
+
description: Run the verification gate before claiming any work is complete, fixed, or passing — evidence before assertions always.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
**First — extract repeat flags:** Follow the REPEAT PREAMBLE from `_repeat.md`.
|
|
7
|
+
|
|
8
|
+
Parse `$ARGUMENTS` for `--auto`, `--confirm`, `--project <name>`, and remaining text = claim_or_task.
|
|
9
|
+
|
|
10
|
+
Load brain context for the `verify` domain (follow `_protocol.md` Brain Load Procedure).
|
|
11
|
+
|
|
12
|
+
If claim_or_task is empty: ask "What claim or task needs verification?"
|
|
13
|
+
|
|
14
|
+
Default mode: **auto**.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
Invoke `Skill("mastermind:verify")` passing: brain_context, claim_or_task, project_name, mode.
|
|
19
|
+
|
|
20
|
+
After skill returns: follow `_protocol.md` Brain Write Procedure for domain `verify`.
|
|
21
|
+
|
|
22
|
+
Invoke `Skill("mastermind:_repeat")` now to execute the REPEAT POSTAMBLE. This is a required tool call — do not skip it.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: mastermind-worktree
|
|
3
|
+
description: Use when starting feature work that needs isolation from the current workspace or before executing implementation plans — sets up an isolated git worktree
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
**First — extract repeat flags:** Follow REPEAT PREAMBLE from `_repeat.md`.
|
|
7
|
+
|
|
8
|
+
Parse `$ARGUMENTS` for `--auto`, `--confirm`, `--project <name>`, and remaining text.
|
|
9
|
+
|
|
10
|
+
Load brain context (follow `_protocol.md` Brain Load Procedure).
|
|
11
|
+
|
|
12
|
+
Default mode: **auto**.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
Invoke `Skill("mastermind:worktree")` passing: brain_context, params, mode.
|
|
17
|
+
|
|
18
|
+
After skill returns: follow `_protocol.md` Brain Write Procedure.
|
|
19
|
+
|
|
20
|
+
Invoke `Skill("mastermind:_repeat")` now. Required — do not skip.
|
|
@@ -27,7 +27,8 @@ module.exports = {
|
|
|
27
27
|
+ (usage.graph_assist_search || 0) + (usage.graph_assist_neighbors || 0);
|
|
28
28
|
var search = (usage.grep_call || 0) + (usage.glob_call || 0)
|
|
29
29
|
+ (usage.bash_grep_call || 0) + (usage.bash_find_call || 0);
|
|
30
|
-
var
|
|
30
|
+
var total = wins + search + (usage.preresolve_miss || 0);
|
|
31
|
+
var pct = total > 0 ? Math.round((wins / total) * 100) : 0;
|
|
31
32
|
var saved = usage.dollars_saved || 0;
|
|
32
33
|
console.log('Monograph: ' + n.toLocaleString() + ' nodes · ' + e.toLocaleString() + ' edges');
|
|
33
34
|
console.log('Usage: ' + pct + '% graph · ' + (100 - pct) + '% grep · ' +
|
|
@@ -267,6 +267,25 @@ const handlers = {
|
|
|
267
267
|
h.handle(hCtx);
|
|
268
268
|
},
|
|
269
269
|
|
|
270
|
+
'pre-bash': () => {
|
|
271
|
+
// Record bash grep/find calls for graph-vs-grep telemetry
|
|
272
|
+
var cmd = (hCtx.toolInput && (hCtx.toolInput.command || hCtx.toolInput.cmd)) || '';
|
|
273
|
+
if (/\bgrep\b/.test(cmd)) _recordGraphTelemetry('bash_grep_call');
|
|
274
|
+
else if (/\bfind\b/.test(cmd)) _recordGraphTelemetry('bash_find_call');
|
|
275
|
+
},
|
|
276
|
+
|
|
277
|
+
'pre-search': () => {
|
|
278
|
+
// Record Grep/Glob tool calls for graph-vs-grep telemetry
|
|
279
|
+
var tool = hCtx.toolName || '';
|
|
280
|
+
if (tool === 'Grep') _recordGraphTelemetry('grep_call');
|
|
281
|
+
else if (tool === 'Glob') _recordGraphTelemetry('glob_call');
|
|
282
|
+
},
|
|
283
|
+
|
|
284
|
+
'post-graph-tool': () => {
|
|
285
|
+
// Record monograph MCP tool calls as graph wins
|
|
286
|
+
_recordGraphTelemetry('monograph_call');
|
|
287
|
+
},
|
|
288
|
+
|
|
270
289
|
'graph-status': () => {
|
|
271
290
|
const h = require('./handlers/graph-status-handler.cjs');
|
|
272
291
|
h.handle(hCtx);
|
|
@@ -956,6 +956,29 @@
|
|
|
956
956
|
"category": "swarm",
|
|
957
957
|
"primaryAgent": "architect"
|
|
958
958
|
},
|
|
959
|
+
{
|
|
960
|
+
"skill": "mastermind:autodev",
|
|
961
|
+
"invoke": "Skill(\"mastermind:autodev\")",
|
|
962
|
+
"description": "Autonomous research → build → review loop. Researches the project, picks the best improvement idea, builds it, then reviews with mastermind:review --tillend until clean. Repeats N times (e.g. /mastermind:autodev 9 builds 9 improvements). Supports --tillend, --focus, --count.",
|
|
963
|
+
"keywords": [
|
|
964
|
+
"autodev",
|
|
965
|
+
"autonomous",
|
|
966
|
+
"auto build",
|
|
967
|
+
"research",
|
|
968
|
+
"improve",
|
|
969
|
+
"improvement",
|
|
970
|
+
"feature",
|
|
971
|
+
"loop",
|
|
972
|
+
"build and review",
|
|
973
|
+
"self-improving",
|
|
974
|
+
"auto feature",
|
|
975
|
+
"continuous improvement",
|
|
976
|
+
"auto improve",
|
|
977
|
+
"research and build"
|
|
978
|
+
],
|
|
979
|
+
"category": "dev",
|
|
980
|
+
"primaryAgent": "coder"
|
|
981
|
+
},
|
|
959
982
|
{
|
|
960
983
|
"skill": "mastermind:monitor",
|
|
961
984
|
"invoke": "Skill(\"mastermind:monitor\")",
|
|
@@ -837,7 +837,7 @@ function getGraphUsage() {
|
|
|
837
837
|
+ (d.graph_assist_search || 0) + (d.graph_assist_neighbors || 0);
|
|
838
838
|
const searches = (d.grep_call || 0) + (d.glob_call || 0)
|
|
839
839
|
+ (d.bash_grep_call || 0) + (d.bash_find_call || 0);
|
|
840
|
-
const total = graphWins + searches;
|
|
840
|
+
const total = graphWins + searches + (d.preresolve_miss || 0);
|
|
841
841
|
if (total === 0) return null;
|
|
842
842
|
return { graphWins: graphWins, searches: searches, pct: Math.round((graphWins / total) * 100), dollarsSaved: d.dollars_saved || 0 };
|
|
843
843
|
} catch { return null; }
|
|
@@ -97,7 +97,7 @@ approval=$(jq --arg id "$approval_id" '.approvals[] | select(.id == $id)' "$appr
|
|
|
97
97
|
agent_id=$(echo "$approval" | jq -r '.agent_id')
|
|
98
98
|
memNs="org:${org_name}"
|
|
99
99
|
npx monomind@latest memory store \
|
|
100
|
-
--key "
|
|
100
|
+
--key "approval:${approval_id}" \
|
|
101
101
|
--namespace "$memNs" \
|
|
102
102
|
--value '{"status":"approved","approval_id":"'"$approval_id"'","ts":"'"$(date -u +%Y-%m-%dT%H:%M:%SZ)"'"}'
|
|
103
103
|
|
|
@@ -118,7 +118,7 @@ approval=$(jq --arg id "$approval_id" '.approvals[] | select(.id == $id)' "$appr
|
|
|
118
118
|
agent_id=$(echo "$approval" | jq -r '.agent_id')
|
|
119
119
|
memNs="org:${org_name}"
|
|
120
120
|
npx monomind@latest memory store \
|
|
121
|
-
--key "
|
|
121
|
+
--key "approval:${approval_id}" \
|
|
122
122
|
--namespace "$memNs" \
|
|
123
123
|
--value '{"status":"rejected","approval_id":"'"$approval_id"'","reason":"'"${reason:-No reason given}"'","ts":"'"$(date -u +%Y-%m-%dT%H:%M:%SZ)"'"}'
|
|
124
124
|
|
|
@@ -150,13 +150,21 @@ jq --arg id "$approval_id" \
|
|
|
150
150
|
|
|
151
151
|
2. Emit `org:approval:requested` event to dashboard (so the human is notified).
|
|
152
152
|
|
|
153
|
-
3. Poll
|
|
153
|
+
3. Poll for the approval decision — check the approvals file first (authoritative, updated by both the dashboard UI and `/mastermind:approve`), then fall back to memory:
|
|
154
154
|
```bash
|
|
155
|
+
approvalsFile=".monomind/orgs/${orgName}-approvals.json"
|
|
155
156
|
while true; do
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
[ "$
|
|
159
|
-
|
|
157
|
+
# Check file first — dashboard approve/reject button only updates the file (not memory)
|
|
158
|
+
file_status=$(jq --arg id "$approval_id" '.approvals[] | select(.id == $id) | .status // ""' "$approvalsFile" 2>/dev/null || echo "")
|
|
159
|
+
if [ -z "$file_status" ] || [ "$file_status" = '"pending"' ] || [ "$file_status" = "pending" ]; then
|
|
160
|
+
mem_result=$(npx monomind@latest memory search --query "approval:${approval_id}" --namespace "${memNs}" 2>/dev/null)
|
|
161
|
+
mem_status=$(echo "$mem_result" | jq -r '.[0].value.status // ""' 2>/dev/null)
|
|
162
|
+
[ -n "$mem_status" ] && [ "$mem_status" != "pending" ] && file_status="$mem_status"
|
|
163
|
+
fi
|
|
164
|
+
# Strip quotes from jq output
|
|
165
|
+
file_status=$(echo "$file_status" | tr -d '"')
|
|
166
|
+
[ "$file_status" = "approved" ] && break
|
|
167
|
+
[ "$file_status" = "rejected" ] && { echo "Action rejected by governance policy — skip this action"; exit 1; }
|
|
160
168
|
sleep 30
|
|
161
169
|
done
|
|
162
170
|
```
|