@oss-autopilot/core 0.44.2 → 0.44.15
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-registry.js +61 -0
- package/dist/cli.bundle.cjs +101 -127
- package/dist/cli.bundle.cjs.map +4 -4
- package/dist/commands/daily.d.ts +6 -1
- package/dist/commands/daily.js +29 -64
- package/dist/commands/dashboard-data.d.ts +22 -1
- package/dist/commands/dashboard-data.js +85 -62
- package/dist/commands/dashboard-lifecycle.js +39 -2
- package/dist/commands/dashboard-scripts.d.ts +1 -1
- package/dist/commands/dashboard-scripts.js +2 -1
- package/dist/commands/dashboard-server.d.ts +2 -1
- package/dist/commands/dashboard-server.js +120 -81
- package/dist/commands/dashboard-templates.js +15 -69
- package/dist/commands/override.d.ts +21 -0
- package/dist/commands/override.js +35 -0
- package/dist/core/checklist-analysis.js +3 -1
- package/dist/core/daily-logic.d.ts +13 -10
- package/dist/core/daily-logic.js +79 -166
- package/dist/core/display-utils.d.ts +4 -0
- package/dist/core/display-utils.js +53 -54
- package/dist/core/errors.d.ts +8 -0
- package/dist/core/errors.js +26 -0
- package/dist/core/github-stats.d.ts +3 -3
- package/dist/core/github-stats.js +15 -7
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +2 -2
- package/dist/core/issue-conversation.js +2 -2
- package/dist/core/issue-discovery.d.ts +0 -5
- package/dist/core/issue-discovery.js +4 -11
- package/dist/core/issue-vetting.d.ts +0 -2
- package/dist/core/issue-vetting.js +31 -45
- package/dist/core/pr-monitor.d.ts +26 -3
- package/dist/core/pr-monitor.js +106 -93
- package/dist/core/state.d.ts +22 -1
- package/dist/core/state.js +50 -1
- package/dist/core/test-utils.js +6 -16
- package/dist/core/types.d.ts +51 -38
- package/dist/core/types.js +8 -0
- package/dist/core/utils.d.ts +2 -0
- package/dist/core/utils.js +5 -1
- package/dist/formatters/json.d.ts +1 -13
- package/dist/formatters/json.js +1 -13
- package/package.json +2 -2
package/dist/core/utils.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared utility functions
|
|
3
3
|
*/
|
|
4
|
+
/** Default concurrency limit for parallel GitHub API requests. */
|
|
5
|
+
export const DEFAULT_CONCURRENCY = 5;
|
|
4
6
|
import * as fs from 'fs';
|
|
5
7
|
import * as path from 'path';
|
|
6
8
|
import * as os from 'os';
|
|
@@ -207,7 +209,7 @@ export function extractOwnerRepo(url) {
|
|
|
207
209
|
* // -9
|
|
208
210
|
*/
|
|
209
211
|
export function daysBetween(from, to = new Date()) {
|
|
210
|
-
return Math.floor((to.getTime() - from.getTime()) / (1000 * 60 * 60 * 24));
|
|
212
|
+
return Math.max(0, Math.floor((to.getTime() - from.getTime()) / (1000 * 60 * 60 * 24)));
|
|
211
213
|
}
|
|
212
214
|
/**
|
|
213
215
|
* Splits an `"owner/repo"` string into its owner and repo components.
|
|
@@ -268,6 +270,8 @@ export function getCLIVersion() {
|
|
|
268
270
|
export function formatRelativeTime(dateStr) {
|
|
269
271
|
const date = new Date(dateStr);
|
|
270
272
|
const diffMs = Date.now() - date.getTime();
|
|
273
|
+
if (diffMs < 0)
|
|
274
|
+
return 'just now';
|
|
271
275
|
const diffMins = Math.floor(diffMs / 60000);
|
|
272
276
|
const diffHours = Math.floor(diffMs / 3600000);
|
|
273
277
|
const diffDays = Math.floor(diffMs / 86400000);
|
|
@@ -77,20 +77,8 @@ export interface DailyDigestCompact {
|
|
|
77
77
|
generatedAt: string;
|
|
78
78
|
/** All open PRs authored by the user — the single source of truth for full PR objects. */
|
|
79
79
|
openPRs: FetchedPR[];
|
|
80
|
-
|
|
81
|
-
ciFailingPRs: string[];
|
|
82
|
-
ciBlockedPRs: string[];
|
|
83
|
-
ciNotRunningPRs: string[];
|
|
84
|
-
mergeConflictPRs: string[];
|
|
85
|
-
needsRebasePRs: string[];
|
|
86
|
-
missingRequiredFilesPRs: string[];
|
|
87
|
-
incompleteChecklistPRs: string[];
|
|
88
|
-
needsChangesPRs: string[];
|
|
89
|
-
changesAddressedPRs: string[];
|
|
80
|
+
needsAddressingPRs: string[];
|
|
90
81
|
waitingOnMaintainerPRs: string[];
|
|
91
|
-
approachingDormant: string[];
|
|
92
|
-
dormantPRs: string[];
|
|
93
|
-
healthyPRs: string[];
|
|
94
82
|
recentlyClosedPRs: DailyDigest['recentlyClosedPRs'];
|
|
95
83
|
recentlyMergedPRs: DailyDigest['recentlyMergedPRs'];
|
|
96
84
|
shelvedPRs: ShelvedPRRef[];
|
package/dist/formatters/json.js
CHANGED
|
@@ -12,20 +12,8 @@ export function deduplicateDigest(digest) {
|
|
|
12
12
|
return {
|
|
13
13
|
generatedAt: digest.generatedAt,
|
|
14
14
|
openPRs: digest.openPRs,
|
|
15
|
-
|
|
16
|
-
ciFailingPRs: toUrls(digest.ciFailingPRs),
|
|
17
|
-
ciBlockedPRs: toUrls(digest.ciBlockedPRs),
|
|
18
|
-
ciNotRunningPRs: toUrls(digest.ciNotRunningPRs),
|
|
19
|
-
mergeConflictPRs: toUrls(digest.mergeConflictPRs),
|
|
20
|
-
needsRebasePRs: toUrls(digest.needsRebasePRs),
|
|
21
|
-
missingRequiredFilesPRs: toUrls(digest.missingRequiredFilesPRs),
|
|
22
|
-
incompleteChecklistPRs: toUrls(digest.incompleteChecklistPRs),
|
|
23
|
-
needsChangesPRs: toUrls(digest.needsChangesPRs),
|
|
24
|
-
changesAddressedPRs: toUrls(digest.changesAddressedPRs),
|
|
15
|
+
needsAddressingPRs: toUrls(digest.needsAddressingPRs),
|
|
25
16
|
waitingOnMaintainerPRs: toUrls(digest.waitingOnMaintainerPRs),
|
|
26
|
-
approachingDormant: toUrls(digest.approachingDormant),
|
|
27
|
-
dormantPRs: toUrls(digest.dormantPRs),
|
|
28
|
-
healthyPRs: toUrls(digest.healthyPRs),
|
|
29
17
|
recentlyClosedPRs: digest.recentlyClosedPRs,
|
|
30
18
|
recentlyMergedPRs: digest.recentlyMergedPRs,
|
|
31
19
|
shelvedPRs: digest.shelvedPRs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oss-autopilot/core",
|
|
3
|
-
"version": "0.44.
|
|
3
|
+
"version": "0.44.15",
|
|
4
4
|
"description": "CLI and core library for managing open source contributions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"commander": "^14.0.3"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@types/node": "^
|
|
54
|
+
"@types/node": "^25.3.3",
|
|
55
55
|
"@vitest/coverage-v8": "^4.0.18",
|
|
56
56
|
"esbuild": "^0.27.3",
|
|
57
57
|
"tsx": "^4.21.0",
|