Skip to content

Commit 593f3f1

Browse files
konardclaude
andcommitted
fix(app): revert main.ts to upstream — FetchHttpClient no longer needed
api-client.ts was removed, so FetchHttpClient.layer is unnecessary. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent bbd6655 commit 593f3f1

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed
Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
#!/usr/bin/env node
22

33
import { NodeContext, NodeRuntime } from "@effect/platform-node"
4-
import * as FetchHttpClient from "@effect/platform/FetchHttpClient"
5-
import { Effect, Layer } from "effect"
4+
import { Effect } from "effect"
65

76
import { program } from "./program.js"
87

9-
// CHANGE: run docker-git CLI through the Node runtime with FetchHttpClient for API calls
10-
// WHY: FetchHttpClient.layer provides HttpClient.HttpClient service required by api-client.ts
11-
// QUOTE(ТЗ): "CLI → DOCKER_GIT_API_URL → REST API"
8+
// CHANGE: run docker-git CLI through the Node runtime
9+
// WHY: ensure platform services (FS, Path, Command) are available in app CLI
10+
// QUOTE(ТЗ): "CLI (отображение, фронт) это app"
11+
// REF: user-request-2026-01-28-cli-move
12+
// SOURCE: n/a
13+
// FORMAT THEOREM: forall env: runMain(program, env) -> exit
1214
// PURITY: SHELL
13-
// EFFECT: Effect<void, unknown, NodeContext | HttpClient>
14-
// INVARIANT: program runs with NodeContext.layer + FetchHttpClient.layer
15+
// EFFECT: Effect<void, unknown, NodeContext>
16+
// INVARIANT: program runs with NodeContext.layer
1517
// COMPLEXITY: O(n)
16-
const mainLayer = Layer.merge(NodeContext.layer, FetchHttpClient.layer)
17-
const main = Effect.provide(program, mainLayer)
18+
const main = Effect.provide(program, NodeContext.layer)
1819

1920
NodeRuntime.runMain(main)

0 commit comments

Comments
 (0)