@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
@@ -1,76 +0,0 @@
1
- /**
2
- * engine/playbook-intents.js — W-mq1cczi90006b21f
3
- *
4
- * Maps Minions playbook names (work-item types) to the intent buckets each
5
- * playbook should surface from project-local skill discovery. The mapping is
6
- * the single source of truth for "which playbook gets which slice of the
7
- * skills block" — engine/playbook.js consults this at render time.
8
- *
9
- * Intent vocabulary (defined in engine/discover-project-skills.js):
10
- * review | build | fix | test | plan | research | deploy | observability | meta
11
- *
12
- * Adding a new playbook? Add an entry here. Playbooks not in this map fall
13
- * through to NO skills block (the engine treats undefined as the empty set,
14
- * which is the safe default — agents see no header rather than a noisy one).
15
- *
16
- * Adding a new intent? Add the keyword regex to INTENT_KEYWORDS in
17
- * engine/discover-project-skills.js AND a row to this map (or update an
18
- * existing playbook to include it). Then document the verb in
19
- * docs/project-skills.md.
20
- */
21
-
22
- // Canonical mapping. Lower-cased playbook names; intent values must be
23
- // members of INTENT_VOCABULARY in engine/discover-project-skills.js.
24
- const PLAYBOOK_INTENTS = Object.freeze({
25
- // Review-flavored playbooks — preserves PR-82 behavior verbatim.
26
- review: ['review'],
27
-
28
- // Fix dispatches often need to re-run review tooling after the fix lands,
29
- // and may also touch tests; surface review+test alongside debug/triage.
30
- fix: ['fix', 'test', 'review'],
31
-
32
- // Implementation surfaces build/scaffold/codemod skills plus the matching
33
- // test skills, and research for codebase investigation.
34
- implement: ['build', 'test', 'research'],
35
- 'implement-shared': ['build', 'test', 'research'],
36
-
37
- // Planning surfaces planning + research (codebase exploration is part of
38
- // good planning).
39
- plan: ['plan', 'research'],
40
- 'plan-to-prd': ['plan', 'research'],
41
- decompose: ['plan', 'research'],
42
-
43
- // Doc / verify / build-and-test playbooks — keep tight intent sets so
44
- // we don't dump build-bumping skills into a docs prompt.
45
- docs: ['research'],
46
- verify: ['test', 'review'],
47
- 'build-and-test': ['build', 'test'],
48
- test: ['test'],
49
-
50
- // Exploration / asks: research-heavy.
51
- explore: ['research'],
52
-
53
- // qa-validate: targeted at test/qa skills.
54
- 'qa-validate': ['test'],
55
-
56
- // Followup-dispatch is a template (not a top-level playbook); the engine
57
- // inherits the parent dispatch's intent set when rendering follow-ups.
58
- // See engine/playbook.js → renderPlaybook for the inheritance plumb.
59
- });
60
-
61
- /**
62
- * Look up the intent set for a playbook name. Returns [] for unknown
63
- * playbooks (caller treats empty as "render no block").
64
- *
65
- * @param {string} playbookName
66
- * @returns {string[]}
67
- */
68
- function intentsForPlaybook(playbookName) {
69
- if (!playbookName || typeof playbookName !== 'string') return [];
70
- return PLAYBOOK_INTENTS[playbookName.toLowerCase()] || [];
71
- }
72
-
73
- module.exports = {
74
- PLAYBOOK_INTENTS,
75
- intentsForPlaybook,
76
- };