mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 21:04:23 +01:00
feat(ocm): let the assistant clone repos through POST /repos
This commit is contained in:
1 parent
33be4afeb7
commit
c9be507f4e
16 files changed
+127
-20
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import { describe, it, expect, beforeEach, afterEach, vi } from 'bun:test'
|
||||
import type { SessionPermissionModeService } from '../../src/services/session-permission-modes'
|
||||
import type { RepoWorkspaceService } from '../../src/services/repo-workspace'
|
||||
import type { GitAuthService } from '../../src/services/git-auth'
|
||||
import { Hono } from 'hono'
|
||||
import { Database } from 'bun:sqlite'
|
||||
import { readFile, writeFile } from 'fs/promises'
|
||||
@@ -61,7 +62,7 @@ describe('internal/opencode-config routes', () => {
|
||||
const notificationService = new NotificationService(db)
|
||||
const settingsService = new SettingsService(db)
|
||||
app = new Hono()
|
||||
app.route('/api/internal', createInternalRoutes(db, scheduleService, notificationService, settingsService, openCodeClient, {} as SessionPermissionModeService, {} as unknown as RepoWorkspaceService))
|
||||
app.route('/api/internal', createInternalRoutes(db, scheduleService, notificationService, settingsService, openCodeClient, {} as SessionPermissionModeService, {} as unknown as RepoWorkspaceService, {} as unknown as GitAuthService))
|
||||
token = getOrCreateInternalToken(db)
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user