@oss-autopilot/core 1.2.0 → 1.4.0
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 +64 -2
- package/dist/cli.bundle.cjs +60 -58
- package/dist/commands/vet-list.d.ts +24 -0
- package/dist/commands/vet-list.js +112 -0
- package/dist/core/daily-logic.js +16 -2
- package/dist/core/github.d.ts +1 -1
- package/dist/core/github.js +3 -3
- package/dist/core/issue-discovery.d.ts +7 -7
- package/dist/core/issue-discovery.js +53 -20
- package/dist/core/issue-vetting.d.ts +1 -0
- package/dist/core/issue-vetting.js +21 -5
- package/dist/core/search-phases.js +11 -7
- package/dist/core/utils.d.ts +2 -0
- package/dist/core/utils.js +6 -2
- package/dist/formatters/json.d.ts +57 -0
- package/dist/formatters/json.js +29 -0
- package/package.json +5 -5
package/dist/formatters/json.js
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
* JSON output formatter for CLI --json mode
|
|
3
3
|
* Provides structured output that can be consumed by scripts and plugins
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* Strip a full DailyOutput down to the compact subset (#763).
|
|
7
|
+
* Omits summary, repoGroups, and full failures array. Retains a failureCount
|
|
8
|
+
* so consumers can detect partial fetch failures.
|
|
9
|
+
*/
|
|
10
|
+
export function toCompactDailyOutput(output) {
|
|
11
|
+
return {
|
|
12
|
+
digest: output.digest,
|
|
13
|
+
capacity: output.capacity,
|
|
14
|
+
briefSummary: output.briefSummary,
|
|
15
|
+
actionableIssues: output.actionableIssues,
|
|
16
|
+
actionMenu: output.actionMenu,
|
|
17
|
+
commentedIssues: output.commentedIssues,
|
|
18
|
+
failureCount: output.failures.length,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
5
21
|
/**
|
|
6
22
|
* Convert a full DailyDigest to the compact format for JSON output (#287).
|
|
7
23
|
* Category arrays become PR URL arrays; full objects stay only in openPRs.
|
|
@@ -43,6 +59,19 @@ export function compactRepoGroups(groups) {
|
|
|
43
59
|
prUrls: group.prs.map((pr) => pr.url),
|
|
44
60
|
}));
|
|
45
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Convert a full StartupOutput to the compact format (#763).
|
|
64
|
+
* Uses destructuring to auto-forward any new fields added to StartupOutput.
|
|
65
|
+
*/
|
|
66
|
+
export function toCompactStartupOutput(output) {
|
|
67
|
+
const { daily, ...rest } = output;
|
|
68
|
+
return {
|
|
69
|
+
...rest,
|
|
70
|
+
daily: daily ? toCompactDailyOutput(daily) : undefined,
|
|
71
|
+
dashboardUrl: output.dashboardUrl,
|
|
72
|
+
issueList: output.issueList,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
46
75
|
/**
|
|
47
76
|
* Wrap data in a standard JSON output envelope
|
|
48
77
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oss-autopilot/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "CLI and core library for managing open source contributions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -54,13 +54,13 @@
|
|
|
54
54
|
"zod": "^4.3.6"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@types/node": "^25.
|
|
58
|
-
"@vitest/coverage-v8": "^4.0
|
|
59
|
-
"esbuild": "^0.27.
|
|
57
|
+
"@types/node": "^25.5.0",
|
|
58
|
+
"@vitest/coverage-v8": "^4.1.0",
|
|
59
|
+
"esbuild": "^0.27.4",
|
|
60
60
|
"tsx": "^4.21.0",
|
|
61
61
|
"typedoc": "^0.28.17",
|
|
62
62
|
"typescript": "^5.9.3",
|
|
63
|
-
"vitest": "^4.0
|
|
63
|
+
"vitest": "^4.1.0"
|
|
64
64
|
},
|
|
65
65
|
"scripts": {
|
|
66
66
|
"build": "tsc",
|