@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.
- package/dist/cli.bundle.cjs +1026 -1018
- package/dist/cli.js +18 -30
- package/dist/commands/check-integration.js +5 -4
- package/dist/commands/comments.js +24 -24
- package/dist/commands/daily.d.ts +0 -1
- package/dist/commands/daily.js +18 -16
- package/dist/commands/dashboard-components.d.ts +33 -0
- package/dist/commands/dashboard-components.js +57 -0
- package/dist/commands/dashboard-data.js +7 -6
- package/dist/commands/dashboard-formatters.d.ts +20 -0
- package/dist/commands/dashboard-formatters.js +33 -0
- package/dist/commands/dashboard-scripts.d.ts +7 -0
- package/dist/commands/dashboard-scripts.js +281 -0
- package/dist/commands/dashboard-server.js +3 -2
- package/dist/commands/dashboard-styles.d.ts +5 -0
- package/dist/commands/dashboard-styles.js +765 -0
- package/dist/commands/dashboard-templates.d.ts +6 -18
- package/dist/commands/dashboard-templates.js +30 -1134
- package/dist/commands/dashboard.js +2 -1
- package/dist/commands/dismiss.d.ts +6 -6
- package/dist/commands/dismiss.js +13 -13
- package/dist/commands/local-repos.js +2 -1
- package/dist/commands/parse-list.js +2 -1
- package/dist/commands/startup.js +6 -16
- package/dist/commands/validation.d.ts +3 -1
- package/dist/commands/validation.js +12 -6
- package/dist/core/errors.d.ts +9 -0
- package/dist/core/errors.js +17 -0
- package/dist/core/github-stats.d.ts +14 -21
- package/dist/core/github-stats.js +84 -138
- package/dist/core/http-cache.d.ts +6 -0
- package/dist/core/http-cache.js +16 -4
- package/dist/core/index.d.ts +3 -2
- package/dist/core/index.js +3 -2
- package/dist/core/issue-conversation.js +4 -4
- package/dist/core/issue-discovery.d.ts +5 -0
- package/dist/core/issue-discovery.js +70 -93
- package/dist/core/issue-vetting.js +17 -17
- package/dist/core/logger.d.ts +5 -0
- package/dist/core/logger.js +8 -0
- package/dist/core/pr-monitor.d.ts +6 -20
- package/dist/core/pr-monitor.js +16 -52
- package/dist/core/review-analysis.js +8 -6
- package/dist/core/state.js +4 -5
- package/dist/core/test-utils.d.ts +14 -0
- package/dist/core/test-utils.js +125 -0
- package/dist/core/utils.d.ts +11 -0
- package/dist/core/utils.js +21 -0
- package/dist/formatters/json.d.ts +0 -1
- package/package.json +1 -1
|
@@ -1,23 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Dashboard HTML template
|
|
3
|
-
*
|
|
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
|
-
|
|
8
|
-
|
|
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;
|