@yemi33/minions 0.1.1551 → 0.1.1552
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/queries.js +21 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/engine/queries.js
CHANGED
|
@@ -1021,6 +1021,27 @@ function getPrdInfo(config) {
|
|
|
1021
1021
|
const allPrs = getPullRequests(config);
|
|
1022
1022
|
const prById = {};
|
|
1023
1023
|
for (const pr of allPrs) prById[pr.id] = pr;
|
|
1024
|
+
// Also scan project subdirectories that aren't in config (e.g. removed projects
|
|
1025
|
+
// whose pull-requests.json still holds last-known status). getPrLinks already
|
|
1026
|
+
// reads all subdirs, so without this PRs from those dirs would have status/title
|
|
1027
|
+
// missing in the PRD view and fall back to literal 'active'/'' defaults.
|
|
1028
|
+
try {
|
|
1029
|
+
const projectsDir = path.join(MINIONS_DIR, 'projects');
|
|
1030
|
+
const projectsByName = new Map(projects.map(p => [p.name, p]));
|
|
1031
|
+
for (const d of fs.readdirSync(projectsDir, { withFileTypes: true })) {
|
|
1032
|
+
if (!d.isDirectory() || projectsByName.has(d.name)) continue;
|
|
1033
|
+
const ghostPath = path.join(projectsDir, d.name, 'pull-requests.json');
|
|
1034
|
+
const ghostPrs = safeJson(ghostPath);
|
|
1035
|
+
if (!Array.isArray(ghostPrs)) continue;
|
|
1036
|
+
shared.normalizePrRecords(ghostPrs, null);
|
|
1037
|
+
for (const pr of ghostPrs) {
|
|
1038
|
+
if (pr?.id && !prById[pr.id]) {
|
|
1039
|
+
pr._project = d.name;
|
|
1040
|
+
prById[pr.id] = pr;
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
} catch { /* projects dir missing */ }
|
|
1024
1045
|
|
|
1025
1046
|
// Build URL for a PR when pr.url isn't set. Prefer the PR ID's own scope
|
|
1026
1047
|
// (e.g. `github:owner/repo#123` → github.com URL) so a github PR never gets
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1552",
|
|
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"
|