@oss-autopilot/core 3.33.0 → 3.33.1
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-pre-action.js +20 -20
- package/dist/cli-registry.js +21 -22
- package/dist/cli.bundle.cjs +99 -98
- package/dist/commands/check-integration.d.ts +2 -2
- package/dist/commands/comments.js +3 -3
- package/dist/commands/compliance-score.js +1 -1
- package/dist/commands/config.js +1 -1
- package/dist/commands/daily-render.js +6 -13
- package/dist/commands/daily.d.ts +1 -2
- package/dist/commands/daily.js +3 -3
- package/dist/commands/dashboard-cache.js +1 -1
- package/dist/commands/dashboard-data.js +5 -6
- package/dist/commands/dashboard-lifecycle.js +3 -5
- package/dist/commands/dashboard-server.js +3 -3
- package/dist/commands/detect-formatters.d.ts +1 -1
- package/dist/commands/dismiss.js +2 -2
- package/dist/commands/doctor.js +3 -3
- package/dist/commands/features.js +1 -1
- package/dist/commands/guidelines.js +5 -5
- package/dist/commands/init.js +1 -1
- package/dist/commands/local-repos.d.ts +1 -1
- package/dist/commands/overnight.js +13 -18
- package/dist/commands/parse-list.d.ts +2 -2
- package/dist/commands/parse-list.js +7 -7
- package/dist/commands/repo-vet.js +3 -3
- package/dist/commands/search.js +9 -10
- package/dist/commands/setup.js +8 -8
- package/dist/commands/startup.js +1 -1
- package/dist/commands/status.d.ts +1 -1
- package/dist/commands/vet-list.js +1 -1
- package/dist/commands/vet.js +1 -1
- package/dist/core/__fixtures__/prompt-injection-payloads.js +1 -1
- package/dist/core/anti-llm-policy.js +3 -3
- package/dist/core/checklist-analysis.d.ts +3 -0
- package/dist/core/checklist-analysis.js +67 -16
- package/dist/core/ci-analysis.js +1 -1
- package/dist/core/comment-decision.js +1 -1
- package/dist/core/compliance-score.js +2 -2
- package/dist/core/daily-logic.js +1 -2
- package/dist/core/display-utils.js +1 -1
- package/dist/core/errors.js +4 -5
- package/dist/core/follow-up-history.d.ts +1 -2
- package/dist/core/follow-up-history.js +1 -1
- package/dist/core/github-stats.js +1 -1
- package/dist/core/guidelines-store.js +2 -2
- package/dist/core/http-cache.js +1 -2
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/issue-conversation.js +1 -1
- package/dist/core/issue-effort.js +12 -6
- package/dist/core/paths.d.ts +7 -0
- package/dist/core/paths.js +25 -3
- package/dist/core/pr-comments-fetcher.js +1 -1
- package/dist/core/review-analysis.js +5 -9
- package/dist/core/state-persistence.js +1 -1
- package/dist/core/state.js +2 -2
- package/dist/core/strategy.js +2 -3
- package/dist/core/untrusted-content.js +9 -9
- package/dist/core/urls.js +1 -1
- package/dist/dashboard/assets/chart-panel-DPKNBUts.js +3 -0
- package/dist/dashboard/assets/{confetti.module-BYDB1iN2.js → confetti.module-D2UmBLOm.js} +1 -1
- package/dist/dashboard/assets/index-B25bZOYX.js +55 -0
- package/dist/dashboard/index.html +1 -1
- package/dist/formatters/json.d.ts +2 -2
- package/dist/formatters/json.js +2 -2
- package/package.json +1 -1
- package/dist/dashboard/assets/chart-panel-CmNIsCjO.js +0 -3
- package/dist/dashboard/assets/index-CTKGc-Ns.js +0 -55
package/dist/cli-pre-action.js
CHANGED
|
@@ -30,7 +30,26 @@ export function installPreAction(program, localOnlySet) {
|
|
|
30
30
|
}
|
|
31
31
|
cmd = cmd.parent;
|
|
32
32
|
}
|
|
33
|
-
if (
|
|
33
|
+
if (isLocalOnly) {
|
|
34
|
+
// #1431: localOnly skips the AUTH GATE, not gist persistence. Mutating
|
|
35
|
+
// localOnly commands (shelve/move/dismiss/override/...) already call
|
|
36
|
+
// maybeCheckpoint, which silently no-ops when the singleton never
|
|
37
|
+
// bootstrapped — so a gist-configured user's CLI mutations were written
|
|
38
|
+
// local-only with no warning and never reached the Gist. Best-effort
|
|
39
|
+
// bootstrap; the warning semantics live (and are unit-tested) in
|
|
40
|
+
// bootstrapGistBestEffort.
|
|
41
|
+
const { bootstrapGistBestEffort } = await import('./core/index.js');
|
|
42
|
+
const localOnlyWarning = await bootstrapGistBestEffort(getGitHubTokenAsync);
|
|
43
|
+
if (localOnlyWarning) {
|
|
44
|
+
console.error(`Warning: ${localOnlyWarning}`);
|
|
45
|
+
// Also thread it into the JSON envelope: shelve/move/dismiss --json
|
|
46
|
+
// consumers (the agent harness) must see the mutation will not sync —
|
|
47
|
+
// stderr alone is invisible to them (#1433).
|
|
48
|
+
const { setEnvelopeGistWarning } = await import('./formatters/json.js');
|
|
49
|
+
setEnvelopeGistWarning(localOnlyWarning);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
34
53
|
const token = await getGitHubTokenAsync();
|
|
35
54
|
if (!token) {
|
|
36
55
|
// Honor --json at the CLI boundary so machine consumers (plugins, MCP
|
|
@@ -72,24 +91,5 @@ export function installPreAction(program, localOnlySet) {
|
|
|
72
91
|
setEnvelopeGistWarning(renderGistWarning(status === 'degraded' ? 'init-fallback' : 'state-unreadable'));
|
|
73
92
|
}
|
|
74
93
|
}
|
|
75
|
-
else {
|
|
76
|
-
// #1431: localOnly skips the AUTH GATE, not gist persistence. Mutating
|
|
77
|
-
// localOnly commands (shelve/move/dismiss/override/...) already call
|
|
78
|
-
// maybeCheckpoint, which silently no-ops when the singleton never
|
|
79
|
-
// bootstrapped — so a gist-configured user's CLI mutations were written
|
|
80
|
-
// local-only with no warning and never reached the Gist. Best-effort
|
|
81
|
-
// bootstrap; the warning semantics live (and are unit-tested) in
|
|
82
|
-
// bootstrapGistBestEffort.
|
|
83
|
-
const { bootstrapGistBestEffort } = await import('./core/index.js');
|
|
84
|
-
const localOnlyWarning = await bootstrapGistBestEffort(getGitHubTokenAsync);
|
|
85
|
-
if (localOnlyWarning) {
|
|
86
|
-
console.error(`Warning: ${localOnlyWarning}`);
|
|
87
|
-
// Also thread it into the JSON envelope: shelve/move/dismiss --json
|
|
88
|
-
// consumers (the agent harness) must see the mutation will not sync —
|
|
89
|
-
// stderr alone is invisible to them (#1433).
|
|
90
|
-
const { setEnvelopeGistWarning } = await import('./formatters/json.js');
|
|
91
|
-
setEnvelopeGistWarning(localOnlyWarning);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
94
|
});
|
|
95
95
|
}
|
package/dist/cli-registry.js
CHANGED
|
@@ -188,7 +188,7 @@ export const commands = [
|
|
|
188
188
|
const { runStatus } = await import('./commands/status.js');
|
|
189
189
|
return runStatus({ offline: options.offline });
|
|
190
190
|
}, (data) => {
|
|
191
|
-
console.log('\n\
|
|
191
|
+
console.log('\n\u{1F4CA} OSS Status\n');
|
|
192
192
|
console.log(`Merged PRs: ${data.stats.mergedPRs}`);
|
|
193
193
|
console.log(`Closed PRs: ${data.stats.closedPRs}`);
|
|
194
194
|
console.log(`Merge Rate: ${data.stats.mergeRate}`);
|
|
@@ -556,10 +556,10 @@ export const commands = [
|
|
|
556
556
|
console.log('');
|
|
557
557
|
for (const result of data.results) {
|
|
558
558
|
const status = result.listStatus === 'still_available'
|
|
559
|
-
? '\
|
|
559
|
+
? '\u{2705}'
|
|
560
560
|
: result.listStatus === 'error'
|
|
561
|
-
? '\
|
|
562
|
-
: '\
|
|
561
|
+
? '\u{274C}'
|
|
562
|
+
: '\u{26A0}\u{FE0F}';
|
|
563
563
|
const annotation = result.listStatus === 'has_stalled_pr'
|
|
564
564
|
? ' (stalled PR, revive opportunity)'
|
|
565
565
|
: result.listStatus === 'at_risk'
|
|
@@ -656,16 +656,15 @@ export const commands = [
|
|
|
656
656
|
.action(async (issueUrl, options) => {
|
|
657
657
|
const { ListMarkDoneOutputSchema } = await import('./formatters/json.js');
|
|
658
658
|
await executeAction(options, async () => {
|
|
659
|
-
|
|
659
|
+
// Not-found now throws ValidationError inside the command (#1406),
|
|
660
|
+
// so library and CLI consumers see the same failure — no CLI-layer
|
|
661
|
+
// re-throw needed (mirrors list-move-tier after #1355).
|
|
662
|
+
return await (await import('./commands/list-mark-done.js')).runMarkIssueListItemDone({
|
|
660
663
|
issueUrl,
|
|
661
664
|
prUrl: options.prUrl,
|
|
662
665
|
prStatus: options.prStatus,
|
|
663
666
|
listPath: options.listPath,
|
|
664
667
|
});
|
|
665
|
-
// Not-found now throws ValidationError inside the command (#1406),
|
|
666
|
-
// so library and CLI consumers see the same failure — no CLI-layer
|
|
667
|
-
// re-throw needed (mirrors list-move-tier after #1355).
|
|
668
|
-
return result;
|
|
669
668
|
}, (data) => {
|
|
670
669
|
if (data.marked) {
|
|
671
670
|
const headingNote = data.repoHeadingStruck ? ' (repo heading also struck)' : '';
|
|
@@ -713,7 +712,7 @@ export const commands = [
|
|
|
713
712
|
const { ComplianceScoreOutputSchema } = await import('./formatters/json.js');
|
|
714
713
|
await executeAction(options, async () => (await import('./commands/compliance-score.js')).runComplianceScore({ prUrl }), (data) => {
|
|
715
714
|
console.log(`\n${data.emoji} PR ${data.pr.repo}#${data.pr.number}: ${data.pr.title}`);
|
|
716
|
-
console.log(`Score: ${data.score}/100 — ${data.rating.
|
|
715
|
+
console.log(`Score: ${data.score}/100 — ${data.rating.replaceAll('_', ' ')}\n`);
|
|
717
716
|
console.log('Checks:');
|
|
718
717
|
for (const [name, check] of Object.entries(data.checks)) {
|
|
719
718
|
const icon = check.status === 'pass' ? 'OK ' : check.status === 'warn' ? 'WARN' : 'FAIL';
|
|
@@ -753,7 +752,7 @@ export const commands = [
|
|
|
753
752
|
const time = review.submittedAt ? formatRelativeTime(review.submittedAt) : '';
|
|
754
753
|
console.log(`${state} **@${review.user}** (${review.state}) - ${time}`);
|
|
755
754
|
if (review.body) {
|
|
756
|
-
console.log(`> ${safeExtractFromFence(review.body).
|
|
755
|
+
console.log(`> ${safeExtractFromFence(review.body).replaceAll('\n', '\n> ')}\n`);
|
|
757
756
|
}
|
|
758
757
|
}
|
|
759
758
|
}
|
|
@@ -762,7 +761,7 @@ export const commands = [
|
|
|
762
761
|
for (const comment of data.reviewComments) {
|
|
763
762
|
const time = formatRelativeTime(comment.createdAt);
|
|
764
763
|
console.log(`**@${comment.user}** on \`${comment.path}\` - ${time}`);
|
|
765
|
-
console.log(`> ${safeExtractFromFence(comment.body).
|
|
764
|
+
console.log(`> ${safeExtractFromFence(comment.body).replaceAll('\n', '\n> ')}`);
|
|
766
765
|
console.log('');
|
|
767
766
|
}
|
|
768
767
|
}
|
|
@@ -771,7 +770,7 @@ export const commands = [
|
|
|
771
770
|
for (const comment of data.issueComments) {
|
|
772
771
|
const time = formatRelativeTime(comment.createdAt);
|
|
773
772
|
console.log(`**@${comment.user}** - ${time}`);
|
|
774
|
-
console.log(`> ${comment.body == null ? '' : safeExtractFromFence(comment.body).
|
|
773
|
+
console.log(`> ${comment.body == null ? '' : safeExtractFromFence(comment.body).replaceAll('\n', '\n> ')}\n`);
|
|
775
774
|
}
|
|
776
775
|
}
|
|
777
776
|
if (data.reviewComments.length === 0 && data.issueComments.length === 0 && data.reviews.length === 0) {
|
|
@@ -860,7 +859,7 @@ export const commands = [
|
|
|
860
859
|
console.log('');
|
|
861
860
|
}
|
|
862
861
|
else if ('config' in data) {
|
|
863
|
-
console.log('\n\
|
|
862
|
+
console.log('\n\u{2699}\u{FE0F} Current Configuration:\n');
|
|
864
863
|
console.log(JSON.stringify(data.config, null, 2));
|
|
865
864
|
}
|
|
866
865
|
else {
|
|
@@ -904,7 +903,7 @@ export const commands = [
|
|
|
904
903
|
if ('success' in data) {
|
|
905
904
|
// --set mode
|
|
906
905
|
for (const [key, value] of Object.entries(data.settings)) {
|
|
907
|
-
console.log(`\
|
|
906
|
+
console.log(`\u{2713} ${key}: ${value}`);
|
|
908
907
|
}
|
|
909
908
|
if (data.warnings) {
|
|
910
909
|
for (const w of data.warnings) {
|
|
@@ -914,8 +913,8 @@ export const commands = [
|
|
|
914
913
|
}
|
|
915
914
|
else if ('setupComplete' in data && data.setupComplete) {
|
|
916
915
|
// Already complete
|
|
917
|
-
console.log('\n\
|
|
918
|
-
console.log('\
|
|
916
|
+
console.log('\n\u{2699}\u{FE0F} OSS Autopilot Setup\n');
|
|
917
|
+
console.log('\u{2713} Setup already complete!\n');
|
|
919
918
|
console.log('Current settings:');
|
|
920
919
|
console.log(` GitHub username: ${data.config.githubUsername || '(not set)'}`);
|
|
921
920
|
console.log(` Max active PRs: ${data.config.maxActivePRs}`);
|
|
@@ -927,7 +926,7 @@ export const commands = [
|
|
|
927
926
|
}
|
|
928
927
|
else if ('setupRequired' in data) {
|
|
929
928
|
// Needs setup
|
|
930
|
-
console.log('\n\
|
|
929
|
+
console.log('\n\u{2699}\u{FE0F} OSS Autopilot Setup\n');
|
|
931
930
|
console.log('SETUP_REQUIRED');
|
|
932
931
|
console.log('---');
|
|
933
932
|
console.log('Please configure the following settings:\n');
|
|
@@ -1017,7 +1016,7 @@ export const commands = [
|
|
|
1017
1016
|
await executeAction(options, async () => (await import('./commands/parse-list.js')).runParseList({ filePath }), async (data) => {
|
|
1018
1017
|
const path = await import('node:path');
|
|
1019
1018
|
const resolvedPath = path.resolve(filePath);
|
|
1020
|
-
console.log(`\n\
|
|
1019
|
+
console.log(`\n\u{1F4CB} Issue List: ${resolvedPath}\n`);
|
|
1021
1020
|
console.log(`Available: ${data.availableCount} | Completed: ${data.completedCount} | Blocked: ${data.blockedCount}\n`);
|
|
1022
1021
|
if (data.available.length > 0) {
|
|
1023
1022
|
console.log('--- Available ---');
|
|
@@ -1059,10 +1058,10 @@ export const commands = [
|
|
|
1059
1058
|
console.log('\nNo new code files to check.');
|
|
1060
1059
|
return;
|
|
1061
1060
|
}
|
|
1062
|
-
console.log(`\n\
|
|
1061
|
+
console.log(`\n\u{1F50D} Integration Check (base: ${options.base})\n`);
|
|
1063
1062
|
console.log(`New files: ${data.newFiles.length} | Unreferenced: ${data.unreferencedCount}\n`);
|
|
1064
1063
|
for (const file of data.newFiles) {
|
|
1065
|
-
const status = file.isIntegrated ? '\
|
|
1064
|
+
const status = file.isIntegrated ? '\u{2705}' : '\u{26A0}\u{FE0F}';
|
|
1066
1065
|
console.log(`${status} ${file.path}`);
|
|
1067
1066
|
if (file.isIntegrated) {
|
|
1068
1067
|
console.log(` Referenced by: ${file.referencedBy.join(', ')}`);
|
|
@@ -1121,7 +1120,7 @@ export const commands = [
|
|
|
1121
1120
|
paths: options.paths,
|
|
1122
1121
|
}), (data) => {
|
|
1123
1122
|
if (data.fromCache) {
|
|
1124
|
-
console.log(`\n\
|
|
1123
|
+
console.log(`\n\u{1F4C1} Local Repos (cached ${data.cachedAt})\n`);
|
|
1125
1124
|
printRepos(data.repos);
|
|
1126
1125
|
}
|
|
1127
1126
|
else {
|