@prmichaelsen/acp-visualizer 0.10.3 → 0.13.0
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 +2 -1
- package/src/components/DocumentList.tsx +15 -1
- package/src/components/GitHubAuth.tsx +69 -0
- package/src/components/GitHubInput.tsx +116 -7
- package/src/components/SidePanel.tsx +68 -30
- package/src/components/Sidebar.tsx +62 -31
- package/src/contexts/SidePanelContext.tsx +13 -1
- package/src/lib/github-auth.ts +60 -0
- package/src/routeTree.gen.ts +42 -0
- package/src/routes/__root.tsx +13 -7
- package/src/routes/auth/github/callback.tsx +86 -0
- package/src/routes/github.tsx +213 -0
- package/src/services/github-oauth.service.ts +128 -0
- package/src/services/markdown.service.ts +2 -2
|
@@ -124,7 +124,7 @@ export type AgentFile = {
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
export type ListDirResult =
|
|
127
|
-
| { ok: true; files: AgentFile[] }
|
|
127
|
+
| { ok: true; files: AgentFile[]; directoryExists?: boolean }
|
|
128
128
|
| { ok: false; files: []; error: string }
|
|
129
129
|
|
|
130
130
|
export const listAgentDirectory = createServerFn({ method: 'GET' })
|
|
@@ -197,7 +197,7 @@ async function listDirFromGitHub(
|
|
|
197
197
|
|
|
198
198
|
if (!response.ok) {
|
|
199
199
|
if (response.status === 404) {
|
|
200
|
-
return { ok: true, files: [] }
|
|
200
|
+
return { ok: true, files: [], directoryExists: false }
|
|
201
201
|
}
|
|
202
202
|
return { ok: false, files: [], error: `GitHub returned ${response.status}` }
|
|
203
203
|
}
|