@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.
Files changed (68) hide show
  1. package/dist/cli-pre-action.js +20 -20
  2. package/dist/cli-registry.js +21 -22
  3. package/dist/cli.bundle.cjs +99 -98
  4. package/dist/commands/check-integration.d.ts +2 -2
  5. package/dist/commands/comments.js +3 -3
  6. package/dist/commands/compliance-score.js +1 -1
  7. package/dist/commands/config.js +1 -1
  8. package/dist/commands/daily-render.js +6 -13
  9. package/dist/commands/daily.d.ts +1 -2
  10. package/dist/commands/daily.js +3 -3
  11. package/dist/commands/dashboard-cache.js +1 -1
  12. package/dist/commands/dashboard-data.js +5 -6
  13. package/dist/commands/dashboard-lifecycle.js +3 -5
  14. package/dist/commands/dashboard-server.js +3 -3
  15. package/dist/commands/detect-formatters.d.ts +1 -1
  16. package/dist/commands/dismiss.js +2 -2
  17. package/dist/commands/doctor.js +3 -3
  18. package/dist/commands/features.js +1 -1
  19. package/dist/commands/guidelines.js +5 -5
  20. package/dist/commands/init.js +1 -1
  21. package/dist/commands/local-repos.d.ts +1 -1
  22. package/dist/commands/overnight.js +13 -18
  23. package/dist/commands/parse-list.d.ts +2 -2
  24. package/dist/commands/parse-list.js +7 -7
  25. package/dist/commands/repo-vet.js +3 -3
  26. package/dist/commands/search.js +9 -10
  27. package/dist/commands/setup.js +8 -8
  28. package/dist/commands/startup.js +1 -1
  29. package/dist/commands/status.d.ts +1 -1
  30. package/dist/commands/vet-list.js +1 -1
  31. package/dist/commands/vet.js +1 -1
  32. package/dist/core/__fixtures__/prompt-injection-payloads.js +1 -1
  33. package/dist/core/anti-llm-policy.js +3 -3
  34. package/dist/core/checklist-analysis.d.ts +3 -0
  35. package/dist/core/checklist-analysis.js +67 -16
  36. package/dist/core/ci-analysis.js +1 -1
  37. package/dist/core/comment-decision.js +1 -1
  38. package/dist/core/compliance-score.js +2 -2
  39. package/dist/core/daily-logic.js +1 -2
  40. package/dist/core/display-utils.js +1 -1
  41. package/dist/core/errors.js +4 -5
  42. package/dist/core/follow-up-history.d.ts +1 -2
  43. package/dist/core/follow-up-history.js +1 -1
  44. package/dist/core/github-stats.js +1 -1
  45. package/dist/core/guidelines-store.js +2 -2
  46. package/dist/core/http-cache.js +1 -2
  47. package/dist/core/index.d.ts +1 -1
  48. package/dist/core/index.js +1 -1
  49. package/dist/core/issue-conversation.js +1 -1
  50. package/dist/core/issue-effort.js +12 -6
  51. package/dist/core/paths.d.ts +7 -0
  52. package/dist/core/paths.js +25 -3
  53. package/dist/core/pr-comments-fetcher.js +1 -1
  54. package/dist/core/review-analysis.js +5 -9
  55. package/dist/core/state-persistence.js +1 -1
  56. package/dist/core/state.js +2 -2
  57. package/dist/core/strategy.js +2 -3
  58. package/dist/core/untrusted-content.js +9 -9
  59. package/dist/core/urls.js +1 -1
  60. package/dist/dashboard/assets/chart-panel-DPKNBUts.js +3 -0
  61. package/dist/dashboard/assets/{confetti.module-BYDB1iN2.js → confetti.module-D2UmBLOm.js} +1 -1
  62. package/dist/dashboard/assets/index-B25bZOYX.js +55 -0
  63. package/dist/dashboard/index.html +1 -1
  64. package/dist/formatters/json.d.ts +2 -2
  65. package/dist/formatters/json.js +2 -2
  66. package/package.json +1 -1
  67. package/dist/dashboard/assets/chart-panel-CmNIsCjO.js +0 -3
  68. package/dist/dashboard/assets/index-CTKGc-Ns.js +0 -55
@@ -30,7 +30,26 @@ export function installPreAction(program, localOnlySet) {
30
30
  }
31
31
  cmd = cmd.parent;
32
32
  }
33
- if (!isLocalOnly) {
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
  }
@@ -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\ud83d\udcca OSS Status\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
- ? '\u2705'
559
+ ? '\u{2705}'
560
560
  : result.listStatus === 'error'
561
- ? '\u274c'
562
- : '\u26a0\ufe0f';
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
- const result = await (await import('./commands/list-mark-done.js')).runMarkIssueListItemDone({
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.replace(/_/g, ' ')}\n`);
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).split('\n').join('\n> ')}\n`);
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).split('\n').join('\n> ')}`);
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).split('\n').join('\n> ')}\n`);
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\u2699\ufe0f Current Configuration:\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(`\u2713 ${key}: ${value}`);
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\u2699\ufe0f OSS Autopilot Setup\n');
918
- console.log('\u2713 Setup already complete!\n');
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\u2699\ufe0f OSS Autopilot Setup\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\ud83d\udccb Issue List: ${resolvedPath}\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\ud83d\udd0d Integration Check (base: ${options.base})\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 ? '\u2705' : '\u26a0\ufe0f';
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\ud83d\udcc1 Local Repos (cached ${data.cachedAt})\n`);
1123
+ console.log(`\n\u{1F4C1} Local Repos (cached ${data.cachedAt})\n`);
1125
1124
  printRepos(data.repos);
1126
1125
  }
1127
1126
  else {