@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.
- package/bin/minions.js +38 -11
- package/dashboard/js/memory-search.js +112 -0
- package/dashboard/js/render-kb.js +15 -0
- package/dashboard/js/render-other.js +2 -30
- package/dashboard/js/render-work-items.js +0 -34
- package/dashboard/js/settings.js +27 -27
- package/dashboard/pages/inbox.html +1 -1
- package/dashboard/pages/tools.html +1 -1
- package/dashboard.js +148 -258
- package/docs/README.md +2 -3
- package/docs/architecture.excalidraw +2 -2
- package/docs/auto-discovery.md +3 -3
- package/docs/completion-reports.md +0 -121
- package/docs/copilot-cli-schema.md +9 -17
- package/docs/deprecated.json +0 -51
- package/docs/design-state-storage.md +4 -4
- package/docs/harness-propagation.md +33 -263
- package/docs/human-vs-automated.md +1 -1
- package/docs/named-agents.md +0 -2
- package/docs/plan-lifecycle.md +5 -6
- package/docs/qa-runbook-lifecycle.md +10 -25
- package/docs/shared-lifecycle-module-map.md +2 -10
- package/docs/team-memory.md +18 -4
- package/engine/ado-comment.js +5 -11
- package/engine/ado.js +10 -5
- package/engine/cleanup.js +16 -36
- package/engine/cli.js +13 -175
- package/engine/comment-format.js +8 -182
- package/engine/consolidation.js +72 -1
- package/engine/db/index.js +60 -10
- package/engine/db/migrations/017-agent-memory.js +208 -0
- package/engine/db/migrations/018-sql-only-cutover.js +56 -0
- package/engine/dispatch-store.js +0 -114
- package/engine/dispatch.js +1 -6
- package/engine/features.js +6 -0
- package/engine/gh-comment.js +2 -10
- package/engine/github.js +8 -6
- package/engine/lifecycle.js +141 -173
- package/engine/llm.js +9 -11
- package/engine/managed-spawn.js +1 -6
- package/engine/memory-retrieval.js +165 -0
- package/engine/memory-store.js +367 -0
- package/engine/metrics-store.js +4 -128
- package/engine/pipeline.js +4 -7
- package/engine/playbook.js +64 -198
- package/engine/prd-store.js +115 -141
- package/engine/preflight.js +8 -55
- package/engine/projects.js +34 -41
- package/engine/pull-requests-store.js +9 -234
- package/engine/qa-runs.js +4 -15
- package/engine/qa-sessions.js +5 -17
- package/engine/queries.js +23 -103
- package/engine/routing.js +1 -1
- package/engine/runtimes/claude.js +1 -2
- package/engine/runtimes/codex.js +0 -2
- package/engine/runtimes/copilot.js +1 -4
- package/engine/shared-branch-pr-reconcile.js +2 -5
- package/engine/shared.js +179 -533
- package/engine/small-state-store.js +12 -647
- package/engine/spawn-agent.js +5 -96
- package/engine/state-operations.js +166 -0
- package/engine/supervisor.js +0 -1
- package/engine/watch-actions.js +2 -3
- package/engine/watches-store.js +2 -128
- package/engine/work-items-store.js +3 -254
- package/engine.js +102 -334
- package/package.json +2 -2
- package/playbooks/build-fix-complex.md +0 -4
- package/playbooks/fix.md +0 -4
- package/playbooks/implement-shared.md +0 -4
- package/playbooks/implement.md +0 -4
- package/playbooks/plan-to-prd.md +16 -11
- package/playbooks/plan.md +0 -4
- package/playbooks/review.md +0 -6
- package/playbooks/shared-rules.md +0 -65
- package/docs/harness-transparency.md +0 -199
- package/docs/project-skills.md +0 -193
- package/engine/discover-project-skills.js +0 -673
- 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
|
-
};
|