@oss-autopilot/core 1.13.0 → 1.13.1
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 +23 -24
- package/dist/commands/startup.d.ts +4 -5
- package/dist/commands/startup.js +6 -19
- package/package.json +1 -1
|
@@ -15,11 +15,10 @@ import { type StartupOutput, type IssueListInfo } from '../formatters/json.js';
|
|
|
15
15
|
export declare function parseIssueListPathFromConfig(configContent: string): string | undefined;
|
|
16
16
|
/**
|
|
17
17
|
* Count available and completed items in an issue list file.
|
|
18
|
-
* Available
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* @returns Counts of available and completed items
|
|
18
|
+
* Available items exclude any vetting status that moves an item out of the
|
|
19
|
+
* actionable pool — strikethrough, `**Done**`, and sub-bullet markers like
|
|
20
|
+
* `**Skip**`, `**Merged**`, `**Dropped**`, `**Closed**`, `**In Progress**`,
|
|
21
|
+
* `**Waiting**`. Matches the parse-issue-list command's classification (#907).
|
|
23
22
|
*/
|
|
24
23
|
export declare function countIssueListItems(content: string): {
|
|
25
24
|
availableCount: number;
|
package/dist/commands/startup.js
CHANGED
|
@@ -14,6 +14,7 @@ import { errorMessage } from '../core/errors.js';
|
|
|
14
14
|
import { warn } from '../core/logger.js';
|
|
15
15
|
import { executeDailyCheck } from './daily.js';
|
|
16
16
|
import { launchDashboardServer } from './dashboard-lifecycle.js';
|
|
17
|
+
import { parseIssueList } from './parse-list.js';
|
|
17
18
|
/**
|
|
18
19
|
* Parse issueListPath from a config file's YAML frontmatter.
|
|
19
20
|
* @param configContent - Raw content of the config.md file
|
|
@@ -29,27 +30,13 @@ export function parseIssueListPathFromConfig(configContent) {
|
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
32
|
* Count available and completed items in an issue list file.
|
|
32
|
-
* Available
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* @returns Counts of available and completed items
|
|
33
|
+
* Available items exclude any vetting status that moves an item out of the
|
|
34
|
+
* actionable pool — strikethrough, `**Done**`, and sub-bullet markers like
|
|
35
|
+
* `**Skip**`, `**Merged**`, `**Dropped**`, `**Closed**`, `**In Progress**`,
|
|
36
|
+
* `**Waiting**`. Matches the parse-issue-list command's classification (#907).
|
|
37
37
|
*/
|
|
38
38
|
export function countIssueListItems(content) {
|
|
39
|
-
|
|
40
|
-
let completedCount = 0;
|
|
41
|
-
const lines = content.split('\n');
|
|
42
|
-
for (const line of lines) {
|
|
43
|
-
// Match list items: "- [" or "- ~~[" (strikethrough completed items)
|
|
44
|
-
if (/^\s*- (?:~~)?\[/.test(line)) {
|
|
45
|
-
if (/~~|\*\*Done\*\*/.test(line)) {
|
|
46
|
-
completedCount++;
|
|
47
|
-
}
|
|
48
|
-
else {
|
|
49
|
-
availableCount++;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
39
|
+
const { availableCount, completedCount } = parseIssueList(content);
|
|
53
40
|
return { availableCount, completedCount };
|
|
54
41
|
}
|
|
55
42
|
/**
|