Skip to content

Commit 58fa4af

Browse files
committed
chore: translate ingest core comments to english
1 parent 71657ac commit 58fa4af

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/core/ingest/plan.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ const sanitizeOutputDir = (dir: string): string =>
4747
const defaultPathFor = (dir: string, child: string): string =>
4848
`${dir}/${child}`;
4949

50-
// CHANGE: Строим план выгрузки gitmeta без побочных эффектов, на основе валидных опций
51-
// WHY: UI должен опираться на чистое ядро — все пути и команды детерминированы исходными опциями
50+
// CHANGE: Build gitmeta export plan without side effects using validated options
51+
// WHY: UI must rely on the pure core—paths and commands are deterministic from options
5252
// QUOTE(ТЗ): "FUNCTIONAL CORE, IMPERATIVE SHELL"
5353
// REF: user-message-3
5454
// SOURCE: https://en.wikipedia.org/wiki/Pure_function
55-
// FORMAT THEOREM: ∀opt: valid(opt) → план корректен
55+
// FORMAT THEOREM: ∀opt: valid(opt) → plan is correct
5656
// PURITY: CORE
5757
// EFFECT: Effect<IngestPlan, PlanBuildError, never>
5858
// INVARIANT: manifestPath ∈ outputDir ∧ rawDir, llmDir ⊂ outputDir
@@ -95,7 +95,7 @@ export const buildIngestPlan = (
9595
rawDir,
9696
llmDir,
9797
manifestPath,
98-
summary: `Выгрузка ${target.owner}/${target.name} в ${validated.outputDir}`,
98+
summary: `Export ${target.owner}/${target.name} to ${validated.outputDir}`,
9999
cliCommand,
100100
options: validated,
101101
};

src/core/ingest/repo.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ const RepoTargetSchema = Schema.Struct({
2525

2626
const normalizeInput = (input: string): string => input.trim();
2727

28-
// CHANGE: Нормализовать и верифицировать ввод репозитория в детерминированное представление
29-
// WHY: LLM-слой требует строгих ссылок owner/name и https-url перед построением ingest-плана
30-
// QUOTE(ТЗ): "CORE: Исключительно чистые функции, неизменяемые данные"
28+
// CHANGE: Normalize and verify repo input into a deterministic representation
29+
// WHY: LLM layer needs strict owner/name and https-url before building the ingest plan
30+
// QUOTE(ТЗ): "CORE: Pure functions only, immutable data"
3131
// REF: user-message-3
3232
// SOURCE: https://en.wikipedia.org/wiki/Pure_function ("the function return values are identical for identical arguments")
33-
// FORMAT THEOREM: ∀input: parse(input) = RepoTarget ⇔ input валиден по шаблону
33+
// FORMAT THEOREM: ∀input: parse(input) = RepoTarget ⇔ input matches pattern
3434
// PURITY: CORE
3535
// EFFECT: Effect<RepoTarget, RepoParseError, never>
3636
// INVARIANT: owner ≠ "" ∧ name ≠ "" ∧ host = github.com
@@ -43,7 +43,7 @@ export const parseRepoTarget = (
4343
if (normalized.length === 0) {
4444
return Effect.fail({
4545
_tag: "EmptyInput",
46-
message: "Введите ссылку на GitHub репозиторий.",
46+
message: "Provide a GitHub repository URL.",
4747
});
4848
}
4949

@@ -53,7 +53,7 @@ export const parseRepoTarget = (
5353
if (match === null || match.groups === undefined) {
5454
return Effect.fail({
5555
_tag: "InvalidRepoUrl",
56-
message: "Ожидается https://github.com/owner/name",
56+
message: "Expected https://github.com/owner/name",
5757
});
5858
}
5959

0 commit comments

Comments
 (0)