@oss-autopilot/core 3.4.1 → 3.5.0
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 +50 -0
- package/dist/cli.bundle.cjs +81 -78
- package/dist/commands/compliance-score.d.ts +21 -0
- package/dist/commands/compliance-score.js +156 -0
- package/dist/commands/index.d.ts +4 -0
- package/dist/commands/index.js +4 -0
- package/dist/commands/list-mark-done.d.ts +48 -0
- package/dist/commands/list-mark-done.js +213 -0
- package/dist/commands/parse-list.js +86 -9
- package/dist/commands/repo-vet.d.ts +21 -0
- package/dist/commands/repo-vet.js +215 -0
- package/dist/commands/startup.js +18 -0
- package/dist/core/ci-enforced-tools.d.ts +35 -0
- package/dist/core/ci-enforced-tools.js +109 -0
- package/dist/core/comment-decision.d.ts +72 -0
- package/dist/core/comment-decision.js +74 -0
- package/dist/core/compliance-score.d.ts +127 -0
- package/dist/core/compliance-score.js +277 -0
- package/dist/core/config-registry.js +12 -0
- package/dist/core/contributing.d.ts +52 -0
- package/dist/core/contributing.js +139 -0
- package/dist/core/extraction-categories.d.ts +55 -0
- package/dist/core/extraction-categories.js +108 -0
- package/dist/core/follow-up-history.d.ts +41 -0
- package/dist/core/follow-up-history.js +71 -0
- package/dist/core/gist-state-store.d.ts +30 -7
- package/dist/core/gist-state-store.js +87 -11
- package/dist/core/issue-conversation.js +1 -0
- package/dist/core/issue-effort.d.ts +29 -0
- package/dist/core/issue-effort.js +41 -0
- package/dist/core/maintainer-hints.d.ts +23 -0
- package/dist/core/maintainer-hints.js +36 -0
- package/dist/core/pr-quality-rubric.d.ts +70 -0
- package/dist/core/pr-quality-rubric.js +121 -0
- package/dist/core/repo-vet.d.ts +90 -0
- package/dist/core/repo-vet.js +178 -0
- package/dist/core/state-schema.d.ts +76 -0
- package/dist/core/state-schema.js +75 -0
- package/dist/core/strategy.d.ts +75 -0
- package/dist/core/strategy.js +226 -0
- package/dist/core/types.d.ts +2 -0
- package/dist/core/workflow-state.d.ts +56 -0
- package/dist/core/workflow-state.js +101 -0
- package/dist/formatters/json.d.ts +147 -0
- package/dist/formatters/json.js +79 -0
- package/package.json +1 -1
package/dist/cli-registry.js
CHANGED
|
@@ -429,6 +429,28 @@ export const commands = [
|
|
|
429
429
|
// The v1→v2 `untrack` and `read` stubs were removed in v4 (#1133). Use
|
|
430
430
|
// `shelve`/`unshelve` to hide PRs from the daily digest. Scripts that hard-
|
|
431
431
|
// coded these commands now get an "unknown command" error from commander.
|
|
432
|
+
// ── Compliance Score ───────────────────────────────────────────────────
|
|
433
|
+
{
|
|
434
|
+
name: 'compliance-score',
|
|
435
|
+
register(program) {
|
|
436
|
+
program
|
|
437
|
+
.command('compliance-score <pr-url>')
|
|
438
|
+
.description('Score a PR against opensource.guide best practices (#1245)')
|
|
439
|
+
.option('--json', 'Output as JSON')
|
|
440
|
+
.action(async (prUrl, options) => {
|
|
441
|
+
const { ComplianceScoreOutputSchema } = await import('./formatters/json.js');
|
|
442
|
+
await executeAction(options, async () => (await import('./commands/compliance-score.js')).runComplianceScore({ prUrl }), (data) => {
|
|
443
|
+
console.log(`\n${data.emoji} PR ${data.pr.repo}#${data.pr.number}: ${data.pr.title}`);
|
|
444
|
+
console.log(`Score: ${data.score}/100 — ${data.rating.replace(/_/g, ' ')}\n`);
|
|
445
|
+
console.log('Checks:');
|
|
446
|
+
for (const [name, check] of Object.entries(data.checks)) {
|
|
447
|
+
const icon = check.status === 'pass' ? 'OK ' : check.status === 'warn' ? 'WARN' : 'FAIL';
|
|
448
|
+
console.log(` [${icon}] ${name} (${check.weight}%) — ${check.detail}`);
|
|
449
|
+
}
|
|
450
|
+
}, ComplianceScoreOutputSchema);
|
|
451
|
+
});
|
|
452
|
+
},
|
|
453
|
+
},
|
|
432
454
|
// ── Comments ───────────────────────────────────────────────────────────
|
|
433
455
|
{
|
|
434
456
|
name: 'comments',
|
|
@@ -1026,6 +1048,34 @@ export const commands = [
|
|
|
1026
1048
|
});
|
|
1027
1049
|
},
|
|
1028
1050
|
},
|
|
1051
|
+
// ── Repo Vet (#1271) ────────────────────────────────────────────────
|
|
1052
|
+
{
|
|
1053
|
+
name: 'repo-vet',
|
|
1054
|
+
register(program) {
|
|
1055
|
+
program
|
|
1056
|
+
.command('repo-vet <repo>')
|
|
1057
|
+
.description('Compute repo health rubric (1–10 score + verdict) for `owner/repo`')
|
|
1058
|
+
.option('--json', 'Output as JSON')
|
|
1059
|
+
.action(async (repo, options) => {
|
|
1060
|
+
const { RepoVetOutputSchema } = await import('./formatters/json.js');
|
|
1061
|
+
await executeAction(options, async () => (await import('./commands/repo-vet.js')).runRepoVet({ repo }), (data) => {
|
|
1062
|
+
const verdictEmoji = data.rubricVerdict === 'recommended'
|
|
1063
|
+
? '✅'
|
|
1064
|
+
: data.rubricVerdict === 'proceed_with_caution'
|
|
1065
|
+
? '⚠️'
|
|
1066
|
+
: '❌';
|
|
1067
|
+
console.log(`\n${verdictEmoji} ${data.repoSlug}: ${data.rubricScore.toFixed(1)}/10 — ${data.rubricVerdict}`);
|
|
1068
|
+
console.log(` Stars: ${data.repoMeta.stars} Last push: ${data.repoMeta.lastPushed}`);
|
|
1069
|
+
if (data.prMergeTime.medianDays !== null) {
|
|
1070
|
+
console.log(` Median merge time (90d): ${data.prMergeTime.medianDays.toFixed(1)} days (${data.prMergeTime.sampleSize} samples)`);
|
|
1071
|
+
}
|
|
1072
|
+
if (data.mergeRate.percent !== null) {
|
|
1073
|
+
console.log(` Merge rate (90d): ${data.mergeRate.percent.toFixed(0)}% (${data.mergeRate.merged}/${data.mergeRate.opened})`);
|
|
1074
|
+
}
|
|
1075
|
+
}, RepoVetOutputSchema);
|
|
1076
|
+
});
|
|
1077
|
+
},
|
|
1078
|
+
},
|
|
1029
1079
|
// ── Detect Formatters ────────────────────────────────────────────────
|
|
1030
1080
|
{
|
|
1031
1081
|
name: 'detect-formatters',
|