mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
feat: add git integration with file browsing and diff viewing
Add comprehensive git support across the stack: - CLI: register git RPC handlers (status, diff numstat, diff file) - Server: create git routes with proper session path resolution - Web: add file browser, diff viewer, and git status visualization - Add FileIcon component and git parser utilities - Add TanStack Router routes for /files and /file pages - Add git-themed CSS variables for light and dark modes
This commit is contained in:
@@ -13,6 +13,7 @@ import { createSessionsRoutes } from './routes/sessions'
|
||||
import { createMessagesRoutes } from './routes/messages'
|
||||
import { createPermissionsRoutes } from './routes/permissions'
|
||||
import { createMachinesRoutes } from './routes/machines'
|
||||
import { createGitRoutes } from './routes/git'
|
||||
import { createCliRoutes } from './routes/cli'
|
||||
import type { SSEManager } from '../sse/sseManager'
|
||||
import type { Server as BunServer } from 'bun'
|
||||
@@ -66,6 +67,7 @@ function createWebApp(options: {
|
||||
app.route('/api', createMessagesRoutes(options.getSyncEngine))
|
||||
app.route('/api', createPermissionsRoutes(options.getSyncEngine))
|
||||
app.route('/api', createMachinesRoutes(options.getSyncEngine))
|
||||
app.route('/api', createGitRoutes(options.getSyncEngine))
|
||||
|
||||
const { distDir, indexHtmlPath } = findWebappDistDir()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user