@prmichaelsen/acp-visualizer 0.13.2 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prmichaelsen/acp-visualizer",
3
- "version": "0.13.2",
3
+ "version": "0.13.3",
4
4
  "type": "module",
5
5
  "description": "Browser-based dashboard for visualizing ACP progress.yaml data",
6
6
  "bin": {
@@ -121,12 +121,19 @@ function RootLayout() {
121
121
 
122
122
  const repoParam = getRepoFromUrl()
123
123
  // Repo param takes precedence over default local data
124
- if (repoParam) {
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: { ...repoParam, token: token || undefined } }) as Promise<GitHubResult>).then((result) => {
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(`${repoParam.owner}/${repoParam.repo}`)
135
+ setCurrentProject(`${target.owner}/${target.repo}`)
136
+ setRepoInUrl(`${target.owner}/${target.repo}`)
130
137
  }
131
138
  })
132
139
  }