@prmichaelsen/acp-visualizer 0.7.0 → 0.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prmichaelsen/acp-visualizer",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "type": "module",
5
5
  "description": "Browser-based dashboard for visualizing ACP progress.yaml data",
6
6
  "bin": {
@@ -120,8 +120,8 @@ async function fetchMarkdownFromGitHub(
120
120
  export const resolveMilestoneFile = createServerFn({ method: 'GET' })
121
121
  .inputValidator((input: { milestoneId: string; github?: { owner: string; repo: string; branch?: string; token?: string } }) => input)
122
122
  .handler(async ({ data: input }): Promise<ResolveFileResult> => {
123
- // Extract numeric part: "milestone_1" → "1"
124
- const match = input.milestoneId.match(/milestone_(\d+)/)
123
+ // Extract numeric part: "milestone_1" → "1", "M2" → "2", any string with digits
124
+ const match = input.milestoneId.match(/milestone_(\d+)/) || input.milestoneId.match(/^M(\d+)$/i) || input.milestoneId.match(/(\d+)/)
125
125
  if (!match) {
126
126
  return { ok: false, filePath: null, error: `Invalid milestone id format: ${input.milestoneId}` }
127
127
  }