@oss-autopilot/core 0.42.0 → 0.42.2

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 (50) hide show
  1. package/dist/cli.bundle.cjs +1026 -1018
  2. package/dist/cli.js +18 -30
  3. package/dist/commands/check-integration.js +5 -4
  4. package/dist/commands/comments.js +24 -24
  5. package/dist/commands/daily.d.ts +0 -1
  6. package/dist/commands/daily.js +18 -16
  7. package/dist/commands/dashboard-components.d.ts +33 -0
  8. package/dist/commands/dashboard-components.js +57 -0
  9. package/dist/commands/dashboard-data.js +7 -6
  10. package/dist/commands/dashboard-formatters.d.ts +20 -0
  11. package/dist/commands/dashboard-formatters.js +33 -0
  12. package/dist/commands/dashboard-scripts.d.ts +7 -0
  13. package/dist/commands/dashboard-scripts.js +281 -0
  14. package/dist/commands/dashboard-server.js +3 -2
  15. package/dist/commands/dashboard-styles.d.ts +5 -0
  16. package/dist/commands/dashboard-styles.js +765 -0
  17. package/dist/commands/dashboard-templates.d.ts +6 -18
  18. package/dist/commands/dashboard-templates.js +30 -1134
  19. package/dist/commands/dashboard.js +2 -1
  20. package/dist/commands/dismiss.d.ts +6 -6
  21. package/dist/commands/dismiss.js +13 -13
  22. package/dist/commands/local-repos.js +2 -1
  23. package/dist/commands/parse-list.js +2 -1
  24. package/dist/commands/startup.js +6 -16
  25. package/dist/commands/validation.d.ts +3 -1
  26. package/dist/commands/validation.js +12 -6
  27. package/dist/core/errors.d.ts +9 -0
  28. package/dist/core/errors.js +17 -0
  29. package/dist/core/github-stats.d.ts +14 -21
  30. package/dist/core/github-stats.js +84 -138
  31. package/dist/core/http-cache.d.ts +6 -0
  32. package/dist/core/http-cache.js +16 -4
  33. package/dist/core/index.d.ts +3 -2
  34. package/dist/core/index.js +3 -2
  35. package/dist/core/issue-conversation.js +4 -4
  36. package/dist/core/issue-discovery.d.ts +5 -0
  37. package/dist/core/issue-discovery.js +70 -93
  38. package/dist/core/issue-vetting.js +17 -17
  39. package/dist/core/logger.d.ts +5 -0
  40. package/dist/core/logger.js +8 -0
  41. package/dist/core/pr-monitor.d.ts +6 -20
  42. package/dist/core/pr-monitor.js +16 -52
  43. package/dist/core/review-analysis.js +8 -6
  44. package/dist/core/state.js +4 -5
  45. package/dist/core/test-utils.d.ts +14 -0
  46. package/dist/core/test-utils.js +125 -0
  47. package/dist/core/utils.d.ts +11 -0
  48. package/dist/core/utils.js +21 -0
  49. package/dist/formatters/json.d.ts +0 -1
  50. package/package.json +1 -1
@@ -1,23 +1,11 @@
1
1
  /**
2
- * Dashboard HTML template generation.
3
- * Contains all HTML/CSS/JS template strings, escapeHtml(), and rendering helpers.
2
+ * Dashboard HTML template assembly.
3
+ * Imports styles, components, formatters, and scripts from focused sub-modules,
4
+ * then weaves them into the final HTML document.
5
+ *
4
6
  * Pure functions with no side effects — all data is passed in as arguments.
5
7
  */
6
8
  import type { DailyDigest, AgentState, CommentedIssueWithResponse } from '../core/types.js';
7
- export interface DashboardStats {
8
- activePRs: number;
9
- shelvedPRs: number;
10
- mergedPRs: number;
11
- closedPRs: number;
12
- mergeRate: string;
13
- }
14
- /**
15
- * Escape HTML special characters to prevent XSS when interpolating
16
- * user-controlled content (e.g. PR titles, comment bodies, author names) into HTML.
17
- * Note: This escapes HTML entity characters only. It does not sanitize URL schemes
18
- * (e.g., javascript:) — callers placing values in href attributes should validate
19
- * the URL scheme if the source is untrusted. GitHub API URLs are trusted.
20
- */
21
- export declare function escapeHtml(text: string): string;
22
- export declare function buildDashboardStats(digest: DailyDigest, state: Readonly<AgentState>): DashboardStats;
9
+ import { type DashboardStats } from './dashboard-formatters.js';
10
+ export { escapeHtml, buildDashboardStats, type DashboardStats } from './dashboard-formatters.js';
23
11
  export declare function generateDashboardHtml(stats: DashboardStats, monthlyMerged: Record<string, number>, monthlyClosed: Record<string, number>, monthlyOpened: Record<string, number>, digest: DailyDigest, state: Readonly<AgentState>, issueResponses?: CommentedIssueWithResponse[]): string;