@oss-autopilot/core 3.27.0 → 3.28.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 +11 -1
- package/dist/cli.bundle.cjs +110 -107
- package/dist/commands/dashboard-lifecycle.d.ts +25 -2
- package/dist/commands/dashboard-lifecycle.js +71 -55
- package/dist/commands/overnight.js +24 -0
- package/dist/commands/parse-list.js +77 -43
- package/dist/commands/startup.d.ts +3 -0
- package/dist/commands/startup.js +7 -3
- package/dist/commands/vet-list.js +4 -2
- package/dist/core/anti-llm-policy.js +10 -0
- package/dist/core/checklist-analysis.d.ts +6 -0
- package/dist/core/checklist-analysis.js +90 -14
- package/dist/core/paths.d.ts +9 -1
- package/dist/core/paths.js +11 -1
- package/dist/formatters/json.d.ts +19 -0
- package/dist/formatters/json.js +3 -0
- package/package.json +1 -1
package/dist/core/paths.js
CHANGED
|
@@ -115,7 +115,15 @@ export function stateFileExists() {
|
|
|
115
115
|
return fs.existsSync(stateFile);
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
|
-
*
|
|
118
|
+
* Return the @oss-autopilot/core version.
|
|
119
|
+
*
|
|
120
|
+
* Bundled builds (the CLI bundle and the MCP server bundle, which inlines core)
|
|
121
|
+
* get it injected at bundle time. That matters for the MCP server: its argv[1]
|
|
122
|
+
* is the mcp-server bundle, so the package.json lookup below would return the
|
|
123
|
+
* mcp-server version, never equal to the core version the dashboard server
|
|
124
|
+
* records in its PID file (#1732).
|
|
125
|
+
*
|
|
126
|
+
* Unbundled runs fall back to package.json relative to the running entry point.
|
|
119
127
|
* Resolves `../package.json` from the real path of `process.argv[1]` (the bundle
|
|
120
128
|
* entry point). An npm install runs the CLI through the `node_modules/.bin/oss-autopilot`
|
|
121
129
|
* symlink, and Node leaves `process.argv[1]` as the symlink, so without `realpathSync`
|
|
@@ -123,6 +131,8 @@ export function stateFileExists() {
|
|
|
123
131
|
* Falls back to '0.0.0' if the file is unreadable.
|
|
124
132
|
*/
|
|
125
133
|
export function getCLIVersion() {
|
|
134
|
+
if (typeof __OSS_AUTOPILOT_CORE_VERSION__ === 'string')
|
|
135
|
+
return __OSS_AUTOPILOT_CORE_VERSION__;
|
|
126
136
|
try {
|
|
127
137
|
const entry = fs.realpathSync(process.argv[1]);
|
|
128
138
|
const pkgPath = path.join(path.dirname(entry), '..', 'package.json');
|
|
@@ -1155,6 +1155,7 @@ export declare const ParseIssueListOutputSchema: z.ZodObject<{
|
|
|
1155
1155
|
number: z.ZodNumber;
|
|
1156
1156
|
title: z.ZodString;
|
|
1157
1157
|
tier: z.ZodString;
|
|
1158
|
+
group: z.ZodOptional<z.ZodString>;
|
|
1158
1159
|
url: z.ZodString;
|
|
1159
1160
|
score: z.ZodOptional<z.ZodNumber>;
|
|
1160
1161
|
}, z.core.$strip>>;
|
|
@@ -1163,11 +1164,22 @@ export declare const ParseIssueListOutputSchema: z.ZodObject<{
|
|
|
1163
1164
|
number: z.ZodNumber;
|
|
1164
1165
|
title: z.ZodString;
|
|
1165
1166
|
tier: z.ZodString;
|
|
1167
|
+
group: z.ZodOptional<z.ZodString>;
|
|
1168
|
+
url: z.ZodString;
|
|
1169
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
1170
|
+
}, z.core.$strip>>;
|
|
1171
|
+
blocked: z.ZodArray<z.ZodObject<{
|
|
1172
|
+
repo: z.ZodString;
|
|
1173
|
+
number: z.ZodNumber;
|
|
1174
|
+
title: z.ZodString;
|
|
1175
|
+
tier: z.ZodString;
|
|
1176
|
+
group: z.ZodOptional<z.ZodString>;
|
|
1166
1177
|
url: z.ZodString;
|
|
1167
1178
|
score: z.ZodOptional<z.ZodNumber>;
|
|
1168
1179
|
}, z.core.$strip>>;
|
|
1169
1180
|
availableCount: z.ZodNumber;
|
|
1170
1181
|
completedCount: z.ZodNumber;
|
|
1182
|
+
blockedCount: z.ZodNumber;
|
|
1171
1183
|
}, z.core.$strip>;
|
|
1172
1184
|
export declare const CheckIntegrationOutputSchema: z.ZodObject<{
|
|
1173
1185
|
newFiles: z.ZodArray<z.ZodObject<{
|
|
@@ -1391,6 +1403,8 @@ export interface IssueListInfo {
|
|
|
1391
1403
|
source: 'configured' | 'auto-detected';
|
|
1392
1404
|
availableCount: number;
|
|
1393
1405
|
completedCount: number;
|
|
1406
|
+
/** Vetted items blocked on an outside condition; not counted in `availableCount` (#1730). */
|
|
1407
|
+
blockedCount: number;
|
|
1394
1408
|
skippedIssuesPath?: string;
|
|
1395
1409
|
/**
|
|
1396
1410
|
* Set when the issue list file was detected but could not be read (#1448).
|
|
@@ -1470,6 +1484,8 @@ export interface ParsedIssueItem {
|
|
|
1470
1484
|
number: number;
|
|
1471
1485
|
title: string;
|
|
1472
1486
|
tier: string;
|
|
1487
|
+
/** Text of a `###` heading nested under the `##` tier (repo heading, blocker note) (#1730). */
|
|
1488
|
+
group?: string;
|
|
1473
1489
|
url: string;
|
|
1474
1490
|
score?: number;
|
|
1475
1491
|
}
|
|
@@ -1477,8 +1493,11 @@ export interface ParsedIssueItem {
|
|
|
1477
1493
|
export interface ParseIssueListOutput {
|
|
1478
1494
|
available: ParsedIssueItem[];
|
|
1479
1495
|
completed: ParsedIssueItem[];
|
|
1496
|
+
/** Vetted but blocked on an outside condition; excluded from `availableCount` (#1730). */
|
|
1497
|
+
blocked: ParsedIssueItem[];
|
|
1480
1498
|
availableCount: number;
|
|
1481
1499
|
completedCount: number;
|
|
1500
|
+
blockedCount: number;
|
|
1482
1501
|
}
|
|
1483
1502
|
/** Info about a new file's integration status (#83) */
|
|
1484
1503
|
export interface NewFileInfo {
|
package/dist/formatters/json.js
CHANGED
|
@@ -700,14 +700,17 @@ const ParsedIssueItemSchema = z.object({
|
|
|
700
700
|
number: z.number(),
|
|
701
701
|
title: z.string(),
|
|
702
702
|
tier: z.string(),
|
|
703
|
+
group: z.string().optional(),
|
|
703
704
|
url: z.string(),
|
|
704
705
|
score: z.number().optional(),
|
|
705
706
|
});
|
|
706
707
|
export const ParseIssueListOutputSchema = z.object({
|
|
707
708
|
available: z.array(ParsedIssueItemSchema),
|
|
708
709
|
completed: z.array(ParsedIssueItemSchema),
|
|
710
|
+
blocked: z.array(ParsedIssueItemSchema),
|
|
709
711
|
availableCount: z.number().int().nonnegative(),
|
|
710
712
|
completedCount: z.number().int().nonnegative(),
|
|
713
|
+
blockedCount: z.number().int().nonnegative(),
|
|
711
714
|
});
|
|
712
715
|
const NewFileInfoSchema = z.object({
|
|
713
716
|
path: z.string(),
|