@oss-autopilot/core 0.44.3 → 0.44.15
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/dist/cli-registry.js +61 -0
- package/dist/cli.bundle.cjs +99 -124
- package/dist/cli.bundle.cjs.map +4 -4
- package/dist/commands/daily.d.ts +6 -1
- package/dist/commands/daily.js +26 -4
- package/dist/commands/dashboard-data.d.ts +10 -2
- package/dist/commands/dashboard-data.js +33 -10
- package/dist/commands/dashboard-lifecycle.js +39 -2
- package/dist/commands/dashboard-scripts.d.ts +1 -1
- package/dist/commands/dashboard-scripts.js +2 -1
- package/dist/commands/dashboard-server.d.ts +2 -1
- package/dist/commands/dashboard-server.js +61 -53
- package/dist/commands/dashboard-templates.js +14 -68
- package/dist/commands/override.d.ts +21 -0
- package/dist/commands/override.js +35 -0
- package/dist/core/daily-logic.d.ts +13 -10
- package/dist/core/daily-logic.js +79 -166
- package/dist/core/display-utils.d.ts +4 -0
- package/dist/core/display-utils.js +53 -54
- package/dist/core/github-stats.d.ts +3 -3
- package/dist/core/github-stats.js +15 -7
- package/dist/core/issue-vetting.js +1 -1
- package/dist/core/pr-monitor.d.ts +26 -3
- package/dist/core/pr-monitor.js +103 -89
- package/dist/core/state.d.ts +22 -1
- package/dist/core/state.js +50 -1
- package/dist/core/test-utils.js +6 -16
- package/dist/core/types.d.ts +51 -38
- package/dist/core/types.js +8 -0
- package/dist/formatters/json.d.ts +1 -13
- package/dist/formatters/json.js +1 -13
- package/package.json +2 -2
package/dist/cli-registry.js
CHANGED
|
@@ -116,6 +116,11 @@ export const commands = [
|
|
|
116
116
|
}
|
|
117
117
|
maxResults = parsed;
|
|
118
118
|
}
|
|
119
|
+
const MAX_SEARCH_RESULTS = 100;
|
|
120
|
+
if (maxResults > MAX_SEARCH_RESULTS) {
|
|
121
|
+
console.warn(`Capping search to ${MAX_SEARCH_RESULTS} results (requested: ${maxResults})`);
|
|
122
|
+
maxResults = MAX_SEARCH_RESULTS;
|
|
123
|
+
}
|
|
119
124
|
if (!options.json) {
|
|
120
125
|
console.log(`\nSearching for issues (max ${maxResults})...\n`);
|
|
121
126
|
}
|
|
@@ -932,4 +937,60 @@ export const commands = [
|
|
|
932
937
|
});
|
|
933
938
|
},
|
|
934
939
|
},
|
|
940
|
+
// ── Override Status ────────────────────────────────────────────────────
|
|
941
|
+
{
|
|
942
|
+
name: 'override',
|
|
943
|
+
localOnly: true,
|
|
944
|
+
register(program) {
|
|
945
|
+
program
|
|
946
|
+
.command('override <pr-url> <status>')
|
|
947
|
+
.description('Manually override PR status (needs_addressing or waiting_on_maintainer)')
|
|
948
|
+
.option('--json', 'Output as JSON')
|
|
949
|
+
.action(async (prUrl, status, options) => {
|
|
950
|
+
try {
|
|
951
|
+
const { runOverride } = await import('./commands/override.js');
|
|
952
|
+
const data = await runOverride({ prUrl, status });
|
|
953
|
+
if (options.json) {
|
|
954
|
+
outputJson(data);
|
|
955
|
+
}
|
|
956
|
+
else {
|
|
957
|
+
console.log(`Override set: ${prUrl} → ${data.status}`);
|
|
958
|
+
console.log('This override will auto-clear when the PR has new activity.');
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
catch (err) {
|
|
962
|
+
handleCommandError(err, options.json);
|
|
963
|
+
}
|
|
964
|
+
});
|
|
965
|
+
},
|
|
966
|
+
},
|
|
967
|
+
// ── Clear Override ────────────────────────────────────────────────────
|
|
968
|
+
{
|
|
969
|
+
name: 'clear-override',
|
|
970
|
+
localOnly: true,
|
|
971
|
+
register(program) {
|
|
972
|
+
program
|
|
973
|
+
.command('clear-override <pr-url>')
|
|
974
|
+
.description('Clear a manual status override for a PR')
|
|
975
|
+
.option('--json', 'Output as JSON')
|
|
976
|
+
.action(async (prUrl, options) => {
|
|
977
|
+
try {
|
|
978
|
+
const { runClearOverride } = await import('./commands/override.js');
|
|
979
|
+
const data = await runClearOverride({ prUrl });
|
|
980
|
+
if (options.json) {
|
|
981
|
+
outputJson(data);
|
|
982
|
+
}
|
|
983
|
+
else if (data.cleared) {
|
|
984
|
+
console.log(`Override cleared: ${prUrl}`);
|
|
985
|
+
}
|
|
986
|
+
else {
|
|
987
|
+
console.log('No override was set for this PR.');
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
catch (err) {
|
|
991
|
+
handleCommandError(err, options.json);
|
|
992
|
+
}
|
|
993
|
+
});
|
|
994
|
+
},
|
|
995
|
+
},
|
|
935
996
|
];
|