@oss-autopilot/core 3.32.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 (69) hide show
  1. package/dist/cli-pre-action.js +20 -20
  2. package/dist/cli-registry.js +23 -23
  3. package/dist/cli.bundle.cjs +100 -99
  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.d.ts +8 -0
  27. package/dist/commands/search.js +21 -19
  28. package/dist/commands/setup.js +8 -8
  29. package/dist/commands/startup.js +1 -1
  30. package/dist/commands/status.d.ts +1 -1
  31. package/dist/commands/vet-list.js +1 -1
  32. package/dist/commands/vet.js +1 -1
  33. package/dist/core/__fixtures__/prompt-injection-payloads.js +1 -1
  34. package/dist/core/anti-llm-policy.js +3 -3
  35. package/dist/core/checklist-analysis.d.ts +3 -0
  36. package/dist/core/checklist-analysis.js +67 -16
  37. package/dist/core/ci-analysis.js +1 -1
  38. package/dist/core/comment-decision.js +1 -1
  39. package/dist/core/compliance-score.js +2 -2
  40. package/dist/core/daily-logic.js +1 -2
  41. package/dist/core/display-utils.js +1 -1
  42. package/dist/core/errors.js +4 -5
  43. package/dist/core/follow-up-history.d.ts +1 -2
  44. package/dist/core/follow-up-history.js +1 -1
  45. package/dist/core/github-stats.js +1 -1
  46. package/dist/core/guidelines-store.js +2 -2
  47. package/dist/core/http-cache.js +1 -2
  48. package/dist/core/index.d.ts +1 -1
  49. package/dist/core/index.js +1 -1
  50. package/dist/core/issue-conversation.js +1 -1
  51. package/dist/core/issue-effort.js +12 -6
  52. package/dist/core/paths.d.ts +7 -0
  53. package/dist/core/paths.js +25 -3
  54. package/dist/core/pr-comments-fetcher.js +1 -1
  55. package/dist/core/review-analysis.js +5 -9
  56. package/dist/core/state-persistence.js +1 -1
  57. package/dist/core/state.js +2 -2
  58. package/dist/core/strategy.js +2 -3
  59. package/dist/core/untrusted-content.js +9 -9
  60. package/dist/core/urls.js +1 -1
  61. package/dist/dashboard/assets/chart-panel-DPKNBUts.js +3 -0
  62. package/dist/dashboard/assets/{confetti.module-BYDB1iN2.js → confetti.module-D2UmBLOm.js} +1 -1
  63. package/dist/dashboard/assets/index-B25bZOYX.js +55 -0
  64. package/dist/dashboard/index.html +1 -1
  65. package/dist/formatters/json.d.ts +2 -2
  66. package/dist/formatters/json.js +2 -2
  67. package/package.json +2 -2
  68. package/dist/dashboard/assets/chart-panel-CmNIsCjO.js +0 -3
  69. 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}`);
@@ -325,6 +325,7 @@ export const commands = [
325
325
  .option('--json', 'Output as JSON')
326
326
  .option('--strategy <strategies>', 'Comma-separated discovery phases to rotate through (merged,orgs,starred,broad,maintained,all). Omit for all. Each search runs one of them in turn unless --full is set.')
327
327
  .option('--full', 'Run every enabled strategy in this search instead of one per search in rotation. More API calls, can take a few minutes.')
328
+ .option('--no-record', "Don't save surfaced issues or the rotation cursor to shared state. For scheduled searches on a second machine, so they don't hide issues from your own searches. Use with --full.")
328
329
  .action(async (count, options) => {
329
330
  const { SearchOutputSchema } = await import('./formatters/json.js');
330
331
  await executeAction(options, async () => {
@@ -345,7 +346,7 @@ export const commands = [
345
346
  if (!options.json) {
346
347
  console.log(`\nSearching for issues (max ${maxResults})...\n`);
347
348
  }
348
- return runSearch({ maxResults, strategies, full: options.full });
349
+ return runSearch({ maxResults, strategies, full: options.full, record: options.record });
349
350
  }, (data) => {
350
351
  if (data.hiddenOwnPRCount > 0) {
351
352
  console.log(`Hidden: ${data.hiddenOwnPRCount} candidate(s) were issues you already have open PRs for.`);
@@ -555,10 +556,10 @@ export const commands = [
555
556
  console.log('');
556
557
  for (const result of data.results) {
557
558
  const status = result.listStatus === 'still_available'
558
- ? '\u2705'
559
+ ? '\u{2705}'
559
560
  : result.listStatus === 'error'
560
- ? '\u274c'
561
- : '\u26a0\ufe0f';
561
+ ? '\u{274C}'
562
+ : '\u{26A0}\u{FE0F}';
562
563
  const annotation = result.listStatus === 'has_stalled_pr'
563
564
  ? ' (stalled PR, revive opportunity)'
564
565
  : result.listStatus === 'at_risk'
@@ -655,16 +656,15 @@ export const commands = [
655
656
  .action(async (issueUrl, options) => {
656
657
  const { ListMarkDoneOutputSchema } = await import('./formatters/json.js');
657
658
  await executeAction(options, async () => {
658
- 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({
659
663
  issueUrl,
660
664
  prUrl: options.prUrl,
661
665
  prStatus: options.prStatus,
662
666
  listPath: options.listPath,
663
667
  });
664
- // Not-found now throws ValidationError inside the command (#1406),
665
- // so library and CLI consumers see the same failure — no CLI-layer
666
- // re-throw needed (mirrors list-move-tier after #1355).
667
- return result;
668
668
  }, (data) => {
669
669
  if (data.marked) {
670
670
  const headingNote = data.repoHeadingStruck ? ' (repo heading also struck)' : '';
@@ -712,7 +712,7 @@ export const commands = [
712
712
  const { ComplianceScoreOutputSchema } = await import('./formatters/json.js');
713
713
  await executeAction(options, async () => (await import('./commands/compliance-score.js')).runComplianceScore({ prUrl }), (data) => {
714
714
  console.log(`\n${data.emoji} PR ${data.pr.repo}#${data.pr.number}: ${data.pr.title}`);
715
- console.log(`Score: ${data.score}/100 — ${data.rating.replace(/_/g, ' ')}\n`);
715
+ console.log(`Score: ${data.score}/100 — ${data.rating.replaceAll('_', ' ')}\n`);
716
716
  console.log('Checks:');
717
717
  for (const [name, check] of Object.entries(data.checks)) {
718
718
  const icon = check.status === 'pass' ? 'OK ' : check.status === 'warn' ? 'WARN' : 'FAIL';
@@ -752,7 +752,7 @@ export const commands = [
752
752
  const time = review.submittedAt ? formatRelativeTime(review.submittedAt) : '';
753
753
  console.log(`${state} **@${review.user}** (${review.state}) - ${time}`);
754
754
  if (review.body) {
755
- console.log(`> ${safeExtractFromFence(review.body).split('\n').join('\n> ')}\n`);
755
+ console.log(`> ${safeExtractFromFence(review.body).replaceAll('\n', '\n> ')}\n`);
756
756
  }
757
757
  }
758
758
  }
@@ -761,7 +761,7 @@ export const commands = [
761
761
  for (const comment of data.reviewComments) {
762
762
  const time = formatRelativeTime(comment.createdAt);
763
763
  console.log(`**@${comment.user}** on \`${comment.path}\` - ${time}`);
764
- console.log(`> ${safeExtractFromFence(comment.body).split('\n').join('\n> ')}`);
764
+ console.log(`> ${safeExtractFromFence(comment.body).replaceAll('\n', '\n> ')}`);
765
765
  console.log('');
766
766
  }
767
767
  }
@@ -770,7 +770,7 @@ export const commands = [
770
770
  for (const comment of data.issueComments) {
771
771
  const time = formatRelativeTime(comment.createdAt);
772
772
  console.log(`**@${comment.user}** - ${time}`);
773
- 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`);
774
774
  }
775
775
  }
776
776
  if (data.reviewComments.length === 0 && data.issueComments.length === 0 && data.reviews.length === 0) {
@@ -859,7 +859,7 @@ export const commands = [
859
859
  console.log('');
860
860
  }
861
861
  else if ('config' in data) {
862
- console.log('\n\u2699\ufe0f Current Configuration:\n');
862
+ console.log('\n\u{2699}\u{FE0F} Current Configuration:\n');
863
863
  console.log(JSON.stringify(data.config, null, 2));
864
864
  }
865
865
  else {
@@ -903,7 +903,7 @@ export const commands = [
903
903
  if ('success' in data) {
904
904
  // --set mode
905
905
  for (const [key, value] of Object.entries(data.settings)) {
906
- console.log(`\u2713 ${key}: ${value}`);
906
+ console.log(`\u{2713} ${key}: ${value}`);
907
907
  }
908
908
  if (data.warnings) {
909
909
  for (const w of data.warnings) {
@@ -913,8 +913,8 @@ export const commands = [
913
913
  }
914
914
  else if ('setupComplete' in data && data.setupComplete) {
915
915
  // Already complete
916
- console.log('\n\u2699\ufe0f OSS Autopilot Setup\n');
917
- 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');
918
918
  console.log('Current settings:');
919
919
  console.log(` GitHub username: ${data.config.githubUsername || '(not set)'}`);
920
920
  console.log(` Max active PRs: ${data.config.maxActivePRs}`);
@@ -926,7 +926,7 @@ export const commands = [
926
926
  }
927
927
  else if ('setupRequired' in data) {
928
928
  // Needs setup
929
- console.log('\n\u2699\ufe0f OSS Autopilot Setup\n');
929
+ console.log('\n\u{2699}\u{FE0F} OSS Autopilot Setup\n');
930
930
  console.log('SETUP_REQUIRED');
931
931
  console.log('---');
932
932
  console.log('Please configure the following settings:\n');
@@ -1016,7 +1016,7 @@ export const commands = [
1016
1016
  await executeAction(options, async () => (await import('./commands/parse-list.js')).runParseList({ filePath }), async (data) => {
1017
1017
  const path = await import('node:path');
1018
1018
  const resolvedPath = path.resolve(filePath);
1019
- console.log(`\n\ud83d\udccb Issue List: ${resolvedPath}\n`);
1019
+ console.log(`\n\u{1F4CB} Issue List: ${resolvedPath}\n`);
1020
1020
  console.log(`Available: ${data.availableCount} | Completed: ${data.completedCount} | Blocked: ${data.blockedCount}\n`);
1021
1021
  if (data.available.length > 0) {
1022
1022
  console.log('--- Available ---');
@@ -1058,10 +1058,10 @@ export const commands = [
1058
1058
  console.log('\nNo new code files to check.');
1059
1059
  return;
1060
1060
  }
1061
- console.log(`\n\ud83d\udd0d Integration Check (base: ${options.base})\n`);
1061
+ console.log(`\n\u{1F50D} Integration Check (base: ${options.base})\n`);
1062
1062
  console.log(`New files: ${data.newFiles.length} | Unreferenced: ${data.unreferencedCount}\n`);
1063
1063
  for (const file of data.newFiles) {
1064
- const status = file.isIntegrated ? '\u2705' : '\u26a0\ufe0f';
1064
+ const status = file.isIntegrated ? '\u{2705}' : '\u{26A0}\u{FE0F}';
1065
1065
  console.log(`${status} ${file.path}`);
1066
1066
  if (file.isIntegrated) {
1067
1067
  console.log(` Referenced by: ${file.referencedBy.join(', ')}`);
@@ -1120,7 +1120,7 @@ export const commands = [
1120
1120
  paths: options.paths,
1121
1121
  }), (data) => {
1122
1122
  if (data.fromCache) {
1123
- console.log(`\n\ud83d\udcc1 Local Repos (cached ${data.cachedAt})\n`);
1123
+ console.log(`\n\u{1F4C1} Local Repos (cached ${data.cachedAt})\n`);
1124
1124
  printRepos(data.repos);
1125
1125
  }
1126
1126
  else {