@oss-autopilot/core 1.15.0 → 1.15.2
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 +34 -1
- package/dist/cli.bundle.cjs +69 -65
- package/dist/commands/daily.d.ts +9 -0
- package/dist/commands/daily.js +4 -1
- package/dist/commands/dashboard-server.d.ts +10 -0
- package/dist/commands/dashboard-server.js +10 -2
- package/dist/commands/scout-bridge.js +2 -1
- package/dist/commands/skip-add.d.ts +25 -0
- package/dist/commands/skip-add.js +48 -0
- package/dist/commands/skip-file-parser.d.ts +25 -0
- package/dist/commands/skip-file-parser.js +92 -0
- package/dist/commands/vet-list.js +10 -0
- package/dist/commands/vet.js +8 -0
- package/dist/core/anti-llm-policy.d.ts +32 -0
- package/dist/core/anti-llm-policy.js +101 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +2 -0
- package/dist/core/issue-grading.d.ts +75 -0
- package/dist/core/issue-grading.js +146 -0
- package/dist/core/linked-pr-classification.d.ts +30 -0
- package/dist/core/linked-pr-classification.js +53 -0
- package/dist/formatters/json.d.ts +5 -0
- package/package.json +1 -1
package/dist/cli-registry.js
CHANGED
|
@@ -248,10 +248,11 @@ export const commands = [
|
|
|
248
248
|
outputJson(data);
|
|
249
249
|
}
|
|
250
250
|
else {
|
|
251
|
-
const { issue, recommendation, reasonsToApprove, reasonsToSkip } = data;
|
|
251
|
+
const { issue, recommendation, reasonsToApprove, reasonsToSkip, grade } = data;
|
|
252
252
|
console.log(`\nVetting issue: ${issueUrl}\n`);
|
|
253
253
|
console.log(`[${recommendation.toUpperCase()}] ${issue.repo}#${issue.number}: ${issue.title}`);
|
|
254
254
|
console.log(` URL: ${issue.url}`);
|
|
255
|
+
console.log(` Success grade: ${grade.letter} (${grade.reason})`);
|
|
255
256
|
if (reasonsToApprove.length > 0)
|
|
256
257
|
console.log(` Approve: ${reasonsToApprove.join(', ')}`);
|
|
257
258
|
if (reasonsToSkip.length > 0)
|
|
@@ -316,6 +317,38 @@ export const commands = [
|
|
|
316
317
|
});
|
|
317
318
|
},
|
|
318
319
|
},
|
|
320
|
+
// ── Skip Add ───────────────────────────────────────────────────────────
|
|
321
|
+
{
|
|
322
|
+
name: 'skip-add',
|
|
323
|
+
localOnly: true,
|
|
324
|
+
register(program) {
|
|
325
|
+
program
|
|
326
|
+
.command('skip-add <issue-url>')
|
|
327
|
+
.description('Append an issue URL to the skipped-issues file (idempotent)')
|
|
328
|
+
.option('--path <file>', 'Skipped-issues file path (falls back to config.skippedIssuesPath)')
|
|
329
|
+
.option('--json', 'Output as JSON')
|
|
330
|
+
.action(async (issueUrl, options) => {
|
|
331
|
+
try {
|
|
332
|
+
const { runSkipAdd } = await import('./commands/skip-add.js');
|
|
333
|
+
const data = runSkipAdd({ issueUrl, skipFilePath: options.path });
|
|
334
|
+
if (options.json) {
|
|
335
|
+
outputJson(data);
|
|
336
|
+
}
|
|
337
|
+
else if (data.added) {
|
|
338
|
+
console.log(`Added to skip list: ${data.url} (${data.date})`);
|
|
339
|
+
console.log(` File: ${data.path}`);
|
|
340
|
+
}
|
|
341
|
+
else {
|
|
342
|
+
console.log(`Already on skip list: ${data.url}`);
|
|
343
|
+
console.log(` File: ${data.path}`);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
catch (err) {
|
|
347
|
+
handleCommandError(err, options.json);
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
},
|
|
351
|
+
},
|
|
319
352
|
// ── Track ──────────────────────────────────────────────────────────────
|
|
320
353
|
{
|
|
321
354
|
name: 'track',
|