@yemi33/minions 0.1.1626 → 0.1.1627
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/CHANGELOG.md +5 -0
- package/engine/copilot-models.json +1 -1
- package/engine/playbook.js +30 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/engine/playbook.js
CHANGED
|
@@ -38,8 +38,17 @@ function getPrCreateInstructions(project) {
|
|
|
38
38
|
`- Use --head to specify your feature branch name\n` +
|
|
39
39
|
`- Include a meaningful --title and body file describing the changes`;
|
|
40
40
|
}
|
|
41
|
-
// Default: Azure DevOps
|
|
42
|
-
|
|
41
|
+
// Default: Azure DevOps — prefer `az` CLI first, ADO MCP only as fallback
|
|
42
|
+
const adoOrg = project?.adoOrg || '';
|
|
43
|
+
const adoProject = project?.adoProject || '';
|
|
44
|
+
const repoName = project?.repoName || '';
|
|
45
|
+
const mainBranch = project?.localPath ? shared.resolveMainBranch(project.localPath, project.mainBranch) : (project?.mainBranch || 'main');
|
|
46
|
+
return `For Azure DevOps, use the \`az\` CLI first to create a pull request:\n` +
|
|
47
|
+
`- Run \`az devops configure --defaults organization=https://dev.azure.com/${adoOrg} project="${adoProject}"\` once per session if defaults are not yet set\n` +
|
|
48
|
+
`- Then: \`az repos pr create --repository "${repoName}" --source-branch <your-branch> --target-branch ${mainBranch} --title "PR title" --description @<body-file.md>\`\n` +
|
|
49
|
+
`- Use \`@<file>\` syntax for \`--description\` so Markdown, quotes, and newlines pass safely\n` +
|
|
50
|
+
`- Always set --target-branch to \`${mainBranch}\` (the main branch)\n\n` +
|
|
51
|
+
`If \`az\` is unavailable or insufficient for this operation, fall back to \`mcp__azure-ado__repo_create_pull_request\` with repositoryId \`${repoId}\`. Do not use \`gh\` for Azure DevOps repositories.`;
|
|
43
52
|
}
|
|
44
53
|
|
|
45
54
|
function getPrCommentInstructions(project) {
|
|
@@ -54,7 +63,12 @@ function getPrCommentInstructions(project) {
|
|
|
54
63
|
`- Always set --repo to \`${org}/${repo}\` to target the correct repository\n` +
|
|
55
64
|
`- Use --body-file so Markdown, quotes, and newlines are passed safely`;
|
|
56
65
|
}
|
|
57
|
-
|
|
66
|
+
// Azure DevOps — prefer `az` CLI first, ADO MCP only as fallback
|
|
67
|
+
const repoName = project?.repoName || '';
|
|
68
|
+
return `For Azure DevOps, use the \`az\` CLI first to post a comment on the PR:\n` +
|
|
69
|
+
`- Write the Markdown comment to a temporary file, then run: \`az repos pr comment create --pull-request-id <number> --content @<body-file.md>\` (substitute your project's repo \`${repoName}\` if not using \`az devops configure\` defaults)\n` +
|
|
70
|
+
`- Use \`@<file>\` syntax for \`--content\` so Markdown, quotes, and newlines pass safely\n\n` +
|
|
71
|
+
`If \`az repos pr comment\` is unavailable or insufficient (e.g. older az-devops extension, thread/status semantics needed), fall back to \`mcp__azure-ado__repo_create_pull_request_thread\` with repositoryId \`${repoId}\`. Do not use \`gh\` for Azure DevOps repositories.`;
|
|
58
72
|
}
|
|
59
73
|
|
|
60
74
|
function getPrFetchInstructions(project) {
|
|
@@ -72,7 +86,13 @@ function getPrFetchInstructions(project) {
|
|
|
72
86
|
`- Or use \`gh pr checkout <number> --repo ${org}/${repo}\` to fetch and checkout in one step\n` +
|
|
73
87
|
`- The base branch is \`${mainBranch}\``;
|
|
74
88
|
}
|
|
75
|
-
|
|
89
|
+
// Azure DevOps — prefer `az` CLI first, ADO MCP only as fallback
|
|
90
|
+
const mainBranch = project?.localPath ? shared.resolveMainBranch(project.localPath, project.mainBranch) : (project?.mainBranch || 'main');
|
|
91
|
+
return `For Azure DevOps, use the \`az\` CLI first to fetch PR status:\n` +
|
|
92
|
+
`- \`az repos pr show --id <number>\` returns PR state, mergeStatus, source/target branches, vote summary, and policy/build evaluations\n` +
|
|
93
|
+
`- For the local branch: \`git fetch origin <branch-name>\` then inspect via \`git show\`/\`git diff\` (do NOT checkout in your main working tree)\n` +
|
|
94
|
+
`- The base branch is \`${mainBranch}\`\n\n` +
|
|
95
|
+
`If \`az\` is unavailable or insufficient, fall back to \`mcp__azure-ado__repo_get_pull_request_by_id\`. Do not use \`gh\` for Azure DevOps repositories.`;
|
|
76
96
|
}
|
|
77
97
|
|
|
78
98
|
function getPrVoteInstructions(project) {
|
|
@@ -90,7 +110,11 @@ function getPrVoteInstructions(project) {
|
|
|
90
110
|
`- **Your comment body MUST start with \`VERDICT: APPROVE\` or \`VERDICT: REQUEST_CHANGES\`** on its own line — the engine parses this to record your vote\n` +
|
|
91
111
|
`- Do NOT use \`--approve\` or \`--request-changes\` flags — they will fail`;
|
|
92
112
|
}
|
|
93
|
-
|
|
113
|
+
// Azure DevOps — prefer `az` CLI first, ADO MCP only as fallback
|
|
114
|
+
return `For Azure DevOps, use the \`az\` CLI first to set your reviewer vote:\n` +
|
|
115
|
+
`- \`az repos pr set-vote --id <number> --vote {approve | approve-with-suggestions | reject | reset | wait-for-author}\`\n` +
|
|
116
|
+
`- Pair the vote with \`az repos pr comment create --pull-request-id <number> --content @<verdict.md>\` so the verdict body is recorded as a thread comment\n\n` +
|
|
117
|
+
`If \`az\` is unavailable or insufficient, fall back to \`mcp__azure-ado__repo_update_pull_request_reviewers\` with repositoryId \`${repoId}\` (vote integers: 10=approve, 5=approve-with-suggestions, 0=no-vote, -5=wait-for-author, -10=reject). Do not use \`gh\` for Azure DevOps repositories.`;
|
|
94
118
|
}
|
|
95
119
|
|
|
96
120
|
function getRepoHostLabel(project) {
|
|
@@ -102,7 +126,7 @@ function getRepoHostLabel(project) {
|
|
|
102
126
|
function getRepoHostToolRule(project) {
|
|
103
127
|
const host = getRepoHost(project);
|
|
104
128
|
if (host === 'github') return 'Use GitHub MCP tools or `gh` CLI for PR operations';
|
|
105
|
-
return '
|
|
129
|
+
return 'For Azure DevOps, use the `az` CLI first for PR operations (e.g. `az repos pr create`, `az repos pr show`, `az repos pr comment`, `az repos pr set-vote`); use ADO MCP tools (`mcp__azure-ado__*`) only as a fallback when `az` is unavailable or insufficient. Do not use `gh` for Azure DevOps repositories.';
|
|
106
130
|
}
|
|
107
131
|
|
|
108
132
|
// ─── Task Context Resolution ────────────────────────────────────────────────
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1627",
|
|
4
4
|
"description": "Multi-agent AI dev team that runs from ~/.minions/ — five autonomous agents share a single engine, dashboard, and knowledge base",
|
|
5
5
|
"bin": {
|
|
6
6
|
"minions": "bin/minions.js"
|