mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
chore: bump version to 0.7.3, set package to public, and add per-session agent mode switching
Changes: - Bump version to 0.7.3 - Set package.private to false - Add useSessionAgent hook for per-session agent mode - Remove global mode preference, use session-level mode - Add mobile drag-and-drop toggle for repo list - Improve repo card UI with truncation and compact status - Fix TypeScript errors in repo.ts (undefined handling)
This commit is contained in:
1 parent
94725ce473
commit
e6156f3c47
12 files changed
+202
-76
No files matched your search
@@ -607,9 +607,10 @@ function normalizeRepoUrl(url: string): { url: string; name: string } {
|
||||
const sshMatch = url.match(/^git@([^:]+):(.+?)(?:\.git)?$/)
|
||||
if (sshMatch) {
|
||||
const [, host, pathPart] = sshMatch
|
||||
const repoName = pathPart.split('/').pop() || `repo-${Date.now()}`
|
||||
const path = pathPart ?? ''
|
||||
const repoName = path.split('/').pop() || `repo-${Date.now()}`
|
||||
return {
|
||||
url: `https://${host}/${pathPart.replace(/\.git$/, '')}`,
|
||||
url: `https://${host}/${path.replace(/\.git$/, '')}`,
|
||||
name: repoName
|
||||
}
|
||||
}
|
||||
@@ -619,7 +620,7 @@ function normalizeRepoUrl(url: string): { url: string; name: string } {
|
||||
const [, owner, repoName] = shorthandMatch
|
||||
return {
|
||||
url: `https://github.com/${owner}/${repoName}`,
|
||||
name: repoName
|
||||
name: repoName ?? `repo-${Date.now()}`
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user