@prmichaelsen/acp-visualizer 0.13.1 → 0.13.3
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 +1 -1
- package/src/lib/yaml-loader.ts +3 -2
- package/src/routes/__root.tsx +10 -3
package/package.json
CHANGED
package/src/lib/yaml-loader.ts
CHANGED
|
@@ -217,8 +217,9 @@ function normalizeTasks(raw: unknown, milestones: Milestone[]): Record<string, T
|
|
|
217
217
|
// The task key might be the milestone ID itself, or "milestone_N"
|
|
218
218
|
keyToMilestoneId.set(m.id, m.id)
|
|
219
219
|
keyToMilestoneId.set(m.id.toLowerCase(), m.id)
|
|
220
|
-
|
|
221
|
-
//
|
|
220
|
+
// Map "milestone_N" where N matches the numeric part of the milestone ID (e.g. M1 → milestone_1)
|
|
221
|
+
// NOTE: Do NOT use array index (i+1) here — milestones may be out of order in the YAML,
|
|
222
|
+
// so array position does not reliably correspond to milestone number.
|
|
222
223
|
const numMatch = m.id.match(/(\d+)/)
|
|
223
224
|
if (numMatch) {
|
|
224
225
|
keyToMilestoneId.set(`milestone_${numMatch[1]}`, m.id)
|
package/src/routes/__root.tsx
CHANGED
|
@@ -121,12 +121,19 @@ function RootLayout() {
|
|
|
121
121
|
|
|
122
122
|
const repoParam = getRepoFromUrl()
|
|
123
123
|
// Repo param takes precedence over default local data
|
|
124
|
-
|
|
124
|
+
// In hosted mode with no repo param, default to prmichaelsen/agent-context-protocol
|
|
125
|
+
const target = repoParam
|
|
126
|
+
|| (import.meta.env.VITE_HOSTED && !context.progressData
|
|
127
|
+
? { owner: 'prmichaelsen', repo: 'agent-context-protocol' }
|
|
128
|
+
: null)
|
|
129
|
+
|
|
130
|
+
if (target) {
|
|
125
131
|
const token = getStoredToken()
|
|
126
|
-
void (fetchGitHubProgress({ data: { ...
|
|
132
|
+
void (fetchGitHubProgress({ data: { ...target, token: token || undefined } }) as Promise<GitHubResult>).then((result) => {
|
|
127
133
|
if (result.ok) {
|
|
128
134
|
setProgressData(result.data)
|
|
129
|
-
setCurrentProject(`${
|
|
135
|
+
setCurrentProject(`${target.owner}/${target.repo}`)
|
|
136
|
+
setRepoInUrl(`${target.owner}/${target.repo}`)
|
|
130
137
|
}
|
|
131
138
|
})
|
|
132
139
|
}
|