@oss-autopilot/core 0.58.0 → 0.60.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 +54 -0
- package/dist/cli.bundle.cjs +151 -108
- package/dist/commands/comments.d.ts +28 -0
- package/dist/commands/comments.js +28 -0
- package/dist/commands/config.d.ts +11 -0
- package/dist/commands/config.js +11 -0
- package/dist/commands/daily.d.ts +26 -2
- package/dist/commands/daily.js +26 -2
- package/dist/commands/detect-formatters.d.ts +11 -0
- package/dist/commands/detect-formatters.js +24 -0
- package/dist/commands/dismiss.d.ts +17 -0
- package/dist/commands/dismiss.js +17 -0
- package/dist/commands/index.d.ts +3 -1
- package/dist/commands/index.js +2 -0
- package/dist/commands/init.d.ts +8 -0
- package/dist/commands/init.js +8 -0
- package/dist/commands/move.d.ts +10 -0
- package/dist/commands/move.js +10 -0
- package/dist/commands/search.d.ts +18 -0
- package/dist/commands/search.js +18 -0
- package/dist/commands/setup.d.ts +17 -0
- package/dist/commands/setup.js +17 -0
- package/dist/commands/shelve.d.ts +16 -0
- package/dist/commands/shelve.js +16 -0
- package/dist/commands/startup.d.ts +16 -7
- package/dist/commands/startup.js +16 -7
- package/dist/commands/status.d.ts +8 -0
- package/dist/commands/status.js +8 -0
- package/dist/commands/track.d.ts +16 -0
- package/dist/commands/track.js +16 -0
- package/dist/commands/vet.d.ts +8 -0
- package/dist/commands/vet.js +8 -0
- package/dist/core/daily-logic.d.ts +60 -7
- package/dist/core/daily-logic.js +52 -7
- package/dist/core/formatter-detection.d.ts +61 -0
- package/dist/core/formatter-detection.js +360 -0
- package/dist/core/github.d.ts +25 -2
- package/dist/core/github.js +25 -2
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/issue-discovery.d.ts +46 -6
- package/dist/core/issue-discovery.js +46 -6
- package/dist/core/logger.d.ts +13 -0
- package/dist/core/logger.js +13 -0
- package/dist/core/pr-monitor.d.ts +43 -8
- package/dist/core/pr-monitor.js +43 -8
- package/dist/core/state-persistence.d.ts +1 -0
- package/dist/core/state-persistence.js +46 -84
- package/dist/core/state-schema.d.ts +539 -0
- package/dist/core/state-schema.js +214 -0
- package/dist/core/state.d.ts +167 -0
- package/dist/core/state.js +167 -0
- package/dist/core/types.d.ts +4 -318
- package/dist/core/types.js +7 -41
- package/dist/formatters/json.d.ts +5 -0
- package/package.json +8 -4
package/dist/cli-registry.js
CHANGED
|
@@ -971,6 +971,60 @@ export const commands = [
|
|
|
971
971
|
});
|
|
972
972
|
},
|
|
973
973
|
},
|
|
974
|
+
// ── Detect Formatters ────────────────────────────────────────────────
|
|
975
|
+
{
|
|
976
|
+
name: 'detect-formatters',
|
|
977
|
+
localOnly: true,
|
|
978
|
+
register(program) {
|
|
979
|
+
program
|
|
980
|
+
.command('detect-formatters [repo-path]')
|
|
981
|
+
.description('Detect formatters and linters configured in a repository')
|
|
982
|
+
.option('--ci-log <path>', 'Analyze CI log file for formatting failures')
|
|
983
|
+
.option('--json', 'Output as JSON')
|
|
984
|
+
.action(async (repoPath, options) => {
|
|
985
|
+
try {
|
|
986
|
+
const { runDetectFormatters } = await import('./commands/detect-formatters.js');
|
|
987
|
+
const data = await runDetectFormatters({ repoPath, ciLog: options.ciLog });
|
|
988
|
+
if (options.json) {
|
|
989
|
+
outputJson(data);
|
|
990
|
+
}
|
|
991
|
+
else {
|
|
992
|
+
if (data.formatters.length === 0) {
|
|
993
|
+
console.log('\nNo formatters detected.');
|
|
994
|
+
}
|
|
995
|
+
else {
|
|
996
|
+
console.log(`\nDetected ${data.formatters.length} formatter(s):\n`);
|
|
997
|
+
for (const f of data.formatters) {
|
|
998
|
+
console.log(` ${f.name} (${f.configPath})`);
|
|
999
|
+
console.log(` Fix: ${f.fixCommand}`);
|
|
1000
|
+
console.log(` Check: ${f.checkCommand}`);
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
if (data.packageJsonScripts.length > 0) {
|
|
1004
|
+
console.log('\npackage.json scripts:');
|
|
1005
|
+
for (const s of data.packageJsonScripts) {
|
|
1006
|
+
console.log(` ${s.name}: ${s.command}`);
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
if (data.ciDiagnosis) {
|
|
1010
|
+
console.log('');
|
|
1011
|
+
if (data.ciDiagnosis.isFormattingFailure) {
|
|
1012
|
+
console.log(`CI Diagnosis: Formatting failure detected (${data.ciDiagnosis.formatter})`);
|
|
1013
|
+
console.log(` Fix: ${data.ciDiagnosis.fixCommand}`);
|
|
1014
|
+
console.log(` Evidence: ${data.ciDiagnosis.evidence.join(', ')}`);
|
|
1015
|
+
}
|
|
1016
|
+
else {
|
|
1017
|
+
console.log('CI Diagnosis: No formatting failure detected.');
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
catch (err) {
|
|
1023
|
+
handleCommandError(err, options.json);
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
},
|
|
1027
|
+
},
|
|
974
1028
|
// ── Stats ─────────────────────────────────────────────────────────────
|
|
975
1029
|
{
|
|
976
1030
|
name: 'stats',
|