Skip to content

Commit 728b5c9

Browse files
committed
fix(app): remove legacy frontends
1 parent 02916b9 commit 728b5c9

132 files changed

Lines changed: 277 additions & 6872 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,12 @@ docker-git --help
9595
```
9696

9797
Структура проекта:
98-
APP - CLI + React (Frontend)
99-
LIB - Весь бекенд (Основная бизнес логика)
100-
API - Просто апи сервер поднятный над LIB
98+
APP - CLI + browser frontend (`docker-git browser`)
99+
LIB - основная бизнес-логика
100+
API - только API server над LIB
101101

102-
APP работает только с API, и не имеет доступа к LIB
103-
API работает только с LIB
102+
APP работает с API; единственная пользовательская frontend-поверхность запускается через `docker-git browser`.
103+
API работает только с LIB и не сервит встроенный HTML frontend.
104104

105105
## Runtime contract: host-Docker-backed
106106

bun.lock

Lines changed: 0 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/api/README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@ Diagnostic classification + remediation messages live in
3636
`packages/app/src/docker-git/controller-docker-diagnostics.ts` and are
3737
covered by `packages/app/tests/docker-git/controller-docker-diagnostics.test.ts`.
3838

39-
## UI wrapper
40-
41-
After API startup open:
42-
43-
- `http://localhost:3334/`
44-
45-
This page is a built-in UI shell for manual API checks without CLI.
46-
4739
## Run (local)
4840

4941
```bash

packages/api/src/http.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ import {
4141
UpProjectRequestSchema
4242
} from "./api/schema.js"
4343
import type { UpProjectRequestInput } from "./api/schema.js"
44-
import { uiHtml, uiScript, uiStyles } from "./ui.js"
4544
import { defaultProjectsRoot } from "@effect-template/lib/usecases/menu-helpers"
4645
import { resolveWorkspaceRoot } from "@effect-template/lib/shell/workspace-root"
4746
import {
@@ -762,16 +761,7 @@ const projectProxyResponse = Effect.gen(function*(_) {
762761
})
763762

764763
export const makeRouter = () => {
765-
const withUi = HttpRouter.empty.pipe(
766-
HttpRouter.get("/",
767-
Effect.gen(function*(_) {
768-
const request = yield* _(HttpServerRequest.HttpServerRequest)
769-
console.log("GET / request:", request.url, "headers:", request.headers)
770-
return yield* _(textResponse(uiHtml, "text/html; charset=utf-8", 200))
771-
}).pipe(Effect.catchAll(errorResponse))
772-
),
773-
HttpRouter.get("/ui/styles.css", textResponse(uiStyles, "text/css; charset=utf-8", 200)),
774-
HttpRouter.get("/ui/app.js", textResponse(uiScript, "application/javascript; charset=utf-8", 200)),
764+
const withCoreRoutes = HttpRouter.empty.pipe(
775765
HttpRouter.get(
776766
"/health",
777767
Effect.gen(function*(_) {
@@ -805,7 +795,7 @@ export const makeRouter = () => {
805795
)
806796
)
807797

808-
const withAuth = withUi.pipe(
798+
const withAuth = withCoreRoutes.pipe(
809799
HttpRouter.get(
810800
"/auth/github/status",
811801
Effect.gen(function*(_) {

packages/api/src/services/auth-terminal-sessions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ const resolveCommandLabel = (request: AuthTerminalSessionRequest): string => {
7070
const label = request.label?.trim()
7171
const suffix = label === undefined || label.length === 0 ? "" : ` [${label}]`
7272
return request.flow === "ClaudeOauth"
73-
? `docker-git menu auth claude oauth${suffix}`
74-
: `docker-git menu auth gemini oauth${suffix}`
73+
? `Claude Code OAuth${suffix}`
74+
: `Gemini CLI OAuth${suffix}`
7575
}
7676

7777
const resolveRunnerArgs = (flow: AuthTerminalFlow, label: string | null | undefined): ReadonlyArray<string> => {

0 commit comments

Comments
 (0)