@yemi33/minions 0.1.2369 → 0.1.2371

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 (79) hide show
  1. package/bin/minions.js +38 -11
  2. package/dashboard/js/memory-search.js +112 -0
  3. package/dashboard/js/render-kb.js +15 -0
  4. package/dashboard/js/render-other.js +2 -30
  5. package/dashboard/js/render-work-items.js +0 -34
  6. package/dashboard/js/settings.js +27 -27
  7. package/dashboard/pages/inbox.html +1 -1
  8. package/dashboard/pages/tools.html +1 -1
  9. package/dashboard.js +148 -258
  10. package/docs/README.md +2 -3
  11. package/docs/architecture.excalidraw +2 -2
  12. package/docs/auto-discovery.md +3 -3
  13. package/docs/completion-reports.md +0 -121
  14. package/docs/copilot-cli-schema.md +9 -17
  15. package/docs/deprecated.json +0 -51
  16. package/docs/design-state-storage.md +4 -4
  17. package/docs/harness-propagation.md +33 -263
  18. package/docs/human-vs-automated.md +1 -1
  19. package/docs/named-agents.md +0 -2
  20. package/docs/plan-lifecycle.md +5 -6
  21. package/docs/qa-runbook-lifecycle.md +10 -25
  22. package/docs/shared-lifecycle-module-map.md +2 -10
  23. package/docs/team-memory.md +18 -4
  24. package/engine/ado-comment.js +5 -11
  25. package/engine/ado.js +10 -5
  26. package/engine/cleanup.js +16 -36
  27. package/engine/cli.js +13 -175
  28. package/engine/comment-format.js +8 -182
  29. package/engine/consolidation.js +72 -1
  30. package/engine/db/index.js +60 -10
  31. package/engine/db/migrations/017-agent-memory.js +208 -0
  32. package/engine/db/migrations/018-sql-only-cutover.js +56 -0
  33. package/engine/dispatch-store.js +0 -114
  34. package/engine/dispatch.js +1 -6
  35. package/engine/features.js +6 -0
  36. package/engine/gh-comment.js +2 -10
  37. package/engine/github.js +8 -6
  38. package/engine/lifecycle.js +141 -173
  39. package/engine/llm.js +9 -11
  40. package/engine/managed-spawn.js +1 -6
  41. package/engine/memory-retrieval.js +165 -0
  42. package/engine/memory-store.js +367 -0
  43. package/engine/metrics-store.js +4 -128
  44. package/engine/pipeline.js +4 -7
  45. package/engine/playbook.js +64 -198
  46. package/engine/prd-store.js +115 -141
  47. package/engine/preflight.js +8 -55
  48. package/engine/projects.js +34 -41
  49. package/engine/pull-requests-store.js +9 -234
  50. package/engine/qa-runs.js +4 -15
  51. package/engine/qa-sessions.js +5 -17
  52. package/engine/queries.js +23 -103
  53. package/engine/routing.js +1 -1
  54. package/engine/runtimes/claude.js +1 -2
  55. package/engine/runtimes/codex.js +0 -2
  56. package/engine/runtimes/copilot.js +1 -4
  57. package/engine/shared-branch-pr-reconcile.js +2 -5
  58. package/engine/shared.js +179 -533
  59. package/engine/small-state-store.js +12 -647
  60. package/engine/spawn-agent.js +5 -96
  61. package/engine/state-operations.js +166 -0
  62. package/engine/supervisor.js +0 -1
  63. package/engine/watch-actions.js +2 -3
  64. package/engine/watches-store.js +2 -128
  65. package/engine/work-items-store.js +3 -254
  66. package/engine.js +102 -334
  67. package/package.json +2 -2
  68. package/playbooks/build-fix-complex.md +0 -4
  69. package/playbooks/fix.md +0 -4
  70. package/playbooks/implement-shared.md +0 -4
  71. package/playbooks/implement.md +0 -4
  72. package/playbooks/plan-to-prd.md +16 -11
  73. package/playbooks/plan.md +0 -4
  74. package/playbooks/review.md +0 -6
  75. package/playbooks/shared-rules.md +0 -65
  76. package/docs/harness-transparency.md +0 -199
  77. package/docs/project-skills.md +0 -193
  78. package/engine/discover-project-skills.js +0 -673
  79. package/engine/playbook-intents.js +0 -76
@@ -328,7 +328,6 @@ function buildArgs(opts = {}) {
328
328
  outputLastMessage,
329
329
  sandbox = 'workspace-write',
330
330
  skipGitRepoCheck = true,
331
- ignoreRules = true,
332
331
  configOverrides,
333
332
  } = opts;
334
333
 
@@ -339,7 +338,6 @@ function buildArgs(opts = {}) {
339
338
  if (model) args.push('--model', String(model));
340
339
  if (sandbox) args.push('--sandbox', String(sandbox));
341
340
  if (skipGitRepoCheck === true) args.push('--skip-git-repo-check');
342
- if (ignoreRules === true) args.push('--ignore-rules');
343
341
  if (outputLastMessage) args.push('--output-last-message', String(outputLastMessage));
344
342
 
345
343
  const mappedEffort = _mapEffort(effort);
@@ -453,7 +453,6 @@ function buildArgs(opts = {}) {
453
453
  addDirs,
454
454
  stream,
455
455
  disableBuiltinMcps,
456
- suppressAgentsMd,
457
456
  reasoningSummaries,
458
457
  disabledMcpServers,
459
458
  images,
@@ -489,7 +488,6 @@ function buildArgs(opts = {}) {
489
488
  // Toggle flags — strict-true gating to avoid surprise opt-in from truthy
490
489
  // strings or 1/0 numbers in config.
491
490
  if (disableBuiltinMcps === true) args.push('--disable-builtin-mcps');
492
- if (suppressAgentsMd === true) args.push('--no-custom-instructions');
493
491
  if (reasoningSummaries === true) args.push('--enable-reasoning-summaries');
494
492
 
495
493
  // P-mcp-storm — Disable named user-scope MCP servers per spawn. Copilot loads
@@ -542,7 +540,6 @@ function buildSpawnFlags(opts = {}) {
542
540
  if (module.exports.capabilities.fallbackModel && opts.fallbackModel) flags.push('--fallback-model', String(opts.fallbackModel));
543
541
  if (opts.stream != null && opts.stream !== '') flags.push('--stream', String(opts.stream));
544
542
  if (opts.disableBuiltinMcps === true) flags.push('--disable-builtin-mcps');
545
- if (opts.suppressAgentsMd === true) flags.push('--no-custom-instructions');
546
543
  if (opts.reasoningSummaries === true) flags.push('--enable-reasoning-summaries');
547
544
  // P-mcp-storm — forward each disabled user MCP server so spawn-agent.js can
548
545
  // re-emit it on the copilot CLI (parseSpawnArgs accumulates these into
@@ -1274,7 +1271,7 @@ const capabilities = {
1274
1271
  promptViaArg: false,
1275
1272
  // No --max-budget-usd
1276
1273
  budgetCap: false,
1277
- // No --bare (closest equivalent is --no-custom-instructions, gated separately)
1274
+ // No --bare equivalent.
1278
1275
  bareMode: false,
1279
1276
  // No --fallback-model
1280
1277
  fallbackModel: false,
@@ -144,13 +144,10 @@ async function _reconcilePrdForProject(plan, file, project, planIds) {
144
144
  * the sweep.
145
145
  */
146
146
  async function reconcileSharedBranchPrs(config) {
147
- let planFiles;
148
- try { planFiles = fs.readdirSync(PRD_DIR).filter(f => f.endsWith('.json')); }
149
- catch { return; } // PRD dir absent -> nothing to do
147
+ const planFiles = require('./prd-store').listPrdRows().filter(row => !row.archived);
150
148
 
151
- for (const file of planFiles) {
149
+ for (const { filename: file, plan } of planFiles) {
152
150
  try {
153
- const plan = shared.safeJsonNoRestore(path.join(PRD_DIR, file));
154
151
  if (!_isSharedBranchPrd(plan)) continue;
155
152
  const planIds = _collectPlanItemIds(plan);
156
153
  if (planIds.length === 0) continue;