@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.
@@ -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: list items (`- [`) NOT struck through or marked Done.
19
- * Completed: list items that ARE struck through or marked Done.
20
- *
21
- * @param content - Raw markdown content of the issue list
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;
@@ -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: list items (`- [`) NOT struck through or marked Done.
33
- * Completed: list items that ARE struck through or marked Done.
34
- *
35
- * @param content - Raw markdown content of the issue list
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
- let availableCount = 0;
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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oss-autopilot/core",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "CLI and core library for managing open source contributions",
5
5
  "type": "module",
6
6
  "bin": {