@galda/cli 0.10.9 → 0.10.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/app/index.html CHANGED
@@ -2387,7 +2387,7 @@
2387
2387
  <div class="perahead" style="border-bottom:1px solid var(--hair)"><div class="peratitle">Settings</div><span style="flex:1"></span><button class="mbtn ghost" id="setClose">Close</button></div>
2388
2388
  <div style="padding:16px">
2389
2389
  <div class="setrow"><div><div class="setlabel">Content language</div><div class="setsub">UI is English; this sets the language of AI summaries and PR bodies.</div></div>
2390
- <div class="segbtn" id="langSeg"><button data-lang="en">English</button><button data-lang="ja">日本語</button></div></div>
2390
+ <div class="segbtn" id="langSeg"><button data-lang="auto">Auto</button><button data-lang="en">English</button><button data-lang="ja">日本語</button></div></div>
2391
2391
  </div>
2392
2392
  </div></div>
2393
2393
  <!-- Slack-style centered delete confirmation, replacing native confirm() for every goal
@@ -2586,7 +2586,7 @@ function prioBadge(t){
2586
2586
  // Mirrors engine/lib.mjs DEFAULT_REVIEW_DEFINITION — kept in sync manually,
2587
2587
  // see the comment on DEFAULT_WORKFLOW_COLUMNS above.
2588
2588
  const DEFAULT_REVIEW_DEFINITION = {
2589
- requirePR: true, requireVerifyPass: false, description: '', defaultWantsPR: false, language: 'ja',
2589
+ requirePR: true, requireVerifyPass: false, description: '', defaultWantsPR: false, language: 'auto',
2590
2590
  prSections: { summary: true, whatChanged: true, howToReview: true, tests: true, screenshots: true, risk: true },
2591
2591
  reviewCard: { screenshots: true, beforeAfter: false },
2592
2592
  };
@@ -2598,7 +2598,10 @@ function reviewDefinitionFor(projectId){ return state.reviewDefinitions[projectI
2598
2598
  // review-definitions.json entries are never re-validated on server load), so
2599
2599
  // merge with the defaults key-by-key here rather than assuming they exist.
2600
2600
  function reviewCardConfigFor(projectId){ return { ...DEFAULT_REVIEW_DEFINITION.reviewCard, ...(reviewDefinitionFor(projectId).reviewCard ?? {}) }; }
2601
- function reviewLangFor(projectId){ return reviewDefinitionFor(projectId).language === 'en' ? 'en' : 'ja'; }
2601
+ // 'auto'|'ja'|'en' verbatim 'auto' (default) means the Manager matches each
2602
+ // goal's own request language, same as the planner/worker; ja/en pin the
2603
+ // project to one language regardless of what a given goal was typed in.
2604
+ function reviewLangFor(projectId){ const l = reviewDefinitionFor(projectId).language; return (l === 'en' || l === 'ja') ? l : 'auto'; }
2602
2605
 
2603
2606
  function esc(s){ const d = document.createElement('div'); d.textContent = s ?? ''; return d.innerHTML; }
2604
2607
 
@@ -3911,6 +3914,7 @@ function renderRdEditor(){
3911
3914
 
3912
3915
  <div class="rdsub">出力言語 / Output language</div>
3913
3916
  <label class="rdrow"><select id="rdLanguage">
3917
+ <option value="auto"${state.rdDraft.language === 'auto' ? ' selected' : ''}>Auto (match request)</option>
3914
3918
  <option value="ja"${state.rdDraft.language === 'ja' ? ' selected' : ''}>日本語</option>
3915
3919
  <option value="en"${state.rdDraft.language === 'en' ? ' selected' : ''}>English</option>
3916
3920
  </select>
@@ -7419,6 +7423,7 @@ function gearSetHTML(){
7419
7423
  }
7420
7424
  return `
7421
7425
  <div class="srow"><div class="sl">Language<span class="sd">Review checklist language for this project</span></div>
7426
+ <button class="optchip${lang === 'auto' ? ' on' : ''}" data-gslang="auto">Auto</button>
7422
7427
  <button class="optchip${lang === 'en' ? ' on' : ''}" data-gslang="en">EN</button>
7423
7428
  <button class="optchip${lang === 'ja' ? ' on' : ''}" data-gslang="ja">JA</button></div>
7424
7429
  ${billingRow}
package/engine/lib.mjs CHANGED
@@ -260,7 +260,7 @@ function primaryFailureCause({ usage = null, blockedKind = null, changedFiles =
260
260
 
261
261
  function failurePhase(kind) {
262
262
  if (kind === 'budget' || kind === 'rate-limit') return 'worker-run';
263
- if (kind === 'test' || kind === 'proof' || kind === 'verify') return 'manager-verification';
263
+ if (kind === 'test' || kind === 'proof' || kind === 'verify' || kind === 'noop') return 'manager-verification';
264
264
  return 'execution';
265
265
  }
266
266
 
@@ -297,6 +297,12 @@ function failureSummaryFor({ kind, goalText, testResult, budgetReason, proofMiss
297
297
  yourCall: '不足している proof / 検証結果をそろえ、判断できる状態にしてから再提出します。',
298
298
  };
299
299
  }
300
+ if (kind === 'noop') {
301
+ return {
302
+ whatHappened: `必要だった作業「${needed}」は検証条件つきのタスクを含みますが、worker はファイル変更もproofも無いまま完了報告しました。`,
303
+ yourCall: '約束した検証(passCondition)が実行されなかった理由を確認し、必要なら worker にやり直しを指示します。',
304
+ };
305
+ }
300
306
  return {
301
307
  whatHappened: budgetReason ? String(budgetReason).slice(0, 180) : `必要だった作業「${needed}」が途中で止まりました。`,
302
308
  yourCall: '停止地点のログを読んで、同じ失敗を避ける最小ステップで再開します。',
@@ -1099,7 +1105,11 @@ export function resolveGoalSource(input) {
1099
1105
  // no explicit signal — it decides whether *this project* opens PRs by
1100
1106
  // default, separately from whether a PR-wanting goal must go through review.
1101
1107
  // `language` is the output language for the Manager's review-facing text
1102
- // (e.g. summarizeForReview's plain-language headline) — 'ja' or 'en' only.
1108
+ // (e.g. summarizeForReview's plain-language headline) — 'auto' (match the
1109
+ // language the goal's own request was written in, same as the planner/worker —
1110
+ // see detectRequestLanguage) or an explicit 'ja'/'en' override for a project
1111
+ // that always wants one fixed language regardless of what any given goal was
1112
+ // typed in.
1103
1113
  // `prSections` toggles which sections createGoalPR includes in the PR body;
1104
1114
  // `reviewCard` toggles what the review checklist card shows for each task.
1105
1115
  export const DEFAULT_REVIEW_DEFINITION = {
@@ -1107,11 +1117,19 @@ export const DEFAULT_REVIEW_DEFINITION = {
1107
1117
  requireVerifyPass: false,
1108
1118
  description: '',
1109
1119
  defaultWantsPR: false,
1110
- language: 'ja',
1120
+ language: 'auto',
1111
1121
  prSections: { summary: true, whatChanged: true, howToReview: true, tests: true, screenshots: true, risk: true },
1112
1122
  reviewCard: { screenshots: true, beforeAfter: false },
1113
1123
  };
1114
1124
 
1125
+ // Detects whether text was written in Japanese (kana/kanji present) or not, so
1126
+ // generated replies can match the language the request was written in
1127
+ // ("test" → English, "テスト" → 日本語) — worker close-out summaries, and (via
1128
+ // reviewDefinition.language === 'auto') review headlines/PR bodies.
1129
+ export function detectRequestLanguage(text) {
1130
+ return /[぀-ヿ㐀-鿿]/.test(text || '') ? 'ja' : 'en';
1131
+ }
1132
+
1115
1133
  // Normalize a nested boolean-flag object (prSections/reviewCard) key by key,
1116
1134
  // so a partial payload — or one missing the whole sub-object — can't
1117
1135
  // silently disable flags it never mentioned; each key falls back to its own
@@ -1138,7 +1156,7 @@ export function validateReviewDefinition(input) {
1138
1156
  requireVerifyPass: input.requireVerifyPass !== undefined ? !!input.requireVerifyPass : DEFAULT_REVIEW_DEFINITION.requireVerifyPass,
1139
1157
  description: input.description !== undefined ? String(input.description).slice(0, 500) : DEFAULT_REVIEW_DEFINITION.description,
1140
1158
  defaultWantsPR: input.defaultWantsPR !== undefined ? !!input.defaultWantsPR : DEFAULT_REVIEW_DEFINITION.defaultWantsPR,
1141
- language: (input.language === 'ja' || input.language === 'en') ? input.language : DEFAULT_REVIEW_DEFINITION.language,
1159
+ language: (input.language === 'ja' || input.language === 'en' || input.language === 'auto') ? input.language : DEFAULT_REVIEW_DEFINITION.language,
1142
1160
  prSections: normalizeBoolMap(input.prSections, DEFAULT_REVIEW_DEFINITION.prSections),
1143
1161
  reviewCard: normalizeBoolMap(input.reviewCard, DEFAULT_REVIEW_DEFINITION.reviewCard),
1144
1162
  },
@@ -1160,6 +1178,20 @@ export function nextGoalStatus({ allDone, wantsPR, allVerified = true, reviewDef
1160
1178
  return allDone ? 'review' : 'partial';
1161
1179
  }
1162
1180
 
1181
+ // 段5 検証ゲート (Masa 2026-07-15: "proof無しは完了と言わない"): a task that carries
1182
+ // an EXPLICIT passCondition is a case where the user asked for proof — but if the
1183
+ // worker changed zero files, isUiChange() never matches (empty changedFiles), so
1184
+ // uiTasks stays empty and the existing proofMissing check (scoped to UI tasks)
1185
+ // never fires: the promised verification silently never happened. This is
1186
+ // deliberately narrower than "any 0-file goal" — a goal with NO passCondition
1187
+ // (an investigation/report-only ask) legitimately has nothing to prove and must
1188
+ // still reach Review for a human to read (see goal-guardrails-integration.test.mjs
1189
+ // (a2)/(a3): budget/cache-guardrail continuations correctly land in Review with
1190
+ // zero file changes because nothing was ever promised to be verified).
1191
+ export function isNothingVerifiable({ changedFiles = [], hasPassCondition = false, hasAnyProof = false } = {}) {
1192
+ return hasPassCondition && changedFiles.length === 0 && !hasAnyProof;
1193
+ }
1194
+
1163
1195
  // チェックリストUIで要件が全件Approveされたら goal を review→done へ進める。
1164
1196
  // 以前は「PRありgoalはマージが唯一の完了トリガー」として弾いていたが、それだと
1165
1197
  // 承認しても done が永続化されず次のrefreshで review に戻る不具合になっていた
@@ -2452,3 +2484,17 @@ export function resolveFolderAnswer(answer, folders = []) {
2452
2484
  if (a.startsWith('/') || a.startsWith('~')) return { dir: a };
2453
2485
  return null;
2454
2486
  }
2487
+
2488
+ // Analytics identity (A+): a signed-in install scopes usage events to the
2489
+ // ACCOUNT (its email, which the billing Worker hashes into the same account_id
2490
+ // the accounts table carries) so per-user app activity joins WITHOUT a cookie;
2491
+ // otherwise the anonymous per-install id. Pure for unit-testing.
2492
+ export function pickAnalyticsUid(accountEmail, installId) {
2493
+ return accountEmail || installId;
2494
+ }
2495
+
2496
+ // Fire the free_exhausted funnel event only the first time a non-paying install
2497
+ // is actually blocked by the free-tier cap.
2498
+ export function shouldEmitFreeExhausted(alreadyEmitted, blocked) {
2499
+ return !alreadyEmitted && Boolean(blocked);
2500
+ }
package/engine/server.mjs CHANGED
@@ -21,7 +21,7 @@ import { homedir } from 'node:os';
21
21
  import { fileURLToPath } from 'node:url';
22
22
  import { pathToFileURL } from 'node:url';
23
23
  import { needsProjectFolder, folderLabel, buildFolderQuestion, resolveFolderAnswer } from './lib.mjs';
24
- import { parseStreamEvents, parsePlan, refinePlanTasks, findOverlappingGoal, canEditGoal, canDeleteGoal, shouldAskClarification, workerExitReason, isForcedStop, workerResultText, taskCountsAsComplete, resolveWantsPR, resolveGoalSource, buildGoalSummary, buildGoalProofMd, buildReviewRuleSection, nextGoalStatus, isPrMerged, isPrApproved, reviewToDoneStatus, advanceReviewGoal, revertReviewGoal, approveGoal, dismissGoal, permissionModeFor, isPlanReview, nextAfterPlanApprove, GOAL_MODES, parseSkillFrontmatter, collectSkills, retestGoal, cancelRetestGoal, computeRetestOutcome, revertGoal, planRevertActions, archiveGoal, unarchiveGoal, undismissGoal, parseNumstat, truncateDiffText, sumUsage, resolveEntryUrl, parseGitLog, diffNewCommits, replayQueueLog, reconcileOrphanGoals, reorderQueue, sortQueueByPriority, TASK_PRIORITIES, validateWorkflowColumns, DEFAULT_WORKFLOW_COLUMNS, validateReviewDefinition, DEFAULT_REVIEW_DEFINITION, buildEphemeralSeedLog, buildEphemeralSeedProjects, trimTaskActivityForState, buildAskContext, WORKER_TOOLS, verifyCfAccessJwt, resolveIdentity, goalVisibleTo, clampParallelLimit, canStartMore, nextRunnableTasks, goalsConflict, detectConflicts, isUiChange, shouldCaptureProof, shouldCaptureBaseline, hasTestRelevantChanges, buildExecutionPlan, buildContextHandoffSummary, buildFailurePostmortem, appendFailureMemory, latestFailurePolicy, classifyChangeRisk, checkRunBudget, usageBudgetTokens, isRateLimited, nextResumeDelay, checkFreeTierLimit, resolveEntitlement, resolveCachedEntitlement, FREE_TIER_LIMITS, verifyLicenseToken, shouldEmitSetupCompleted } from './lib.mjs';
24
+ import { parseStreamEvents, parsePlan, refinePlanTasks, findOverlappingGoal, canEditGoal, canDeleteGoal, shouldAskClarification, workerExitReason, isForcedStop, workerResultText, taskCountsAsComplete, resolveWantsPR, resolveGoalSource, buildGoalSummary, buildGoalProofMd, buildReviewRuleSection, nextGoalStatus, isPrMerged, isPrApproved, reviewToDoneStatus, advanceReviewGoal, revertReviewGoal, approveGoal, dismissGoal, permissionModeFor, isPlanReview, nextAfterPlanApprove, GOAL_MODES, parseSkillFrontmatter, collectSkills, retestGoal, cancelRetestGoal, computeRetestOutcome, revertGoal, planRevertActions, archiveGoal, unarchiveGoal, undismissGoal, parseNumstat, truncateDiffText, sumUsage, resolveEntryUrl, parseGitLog, diffNewCommits, replayQueueLog, reconcileOrphanGoals, reorderQueue, sortQueueByPriority, TASK_PRIORITIES, validateWorkflowColumns, DEFAULT_WORKFLOW_COLUMNS, validateReviewDefinition, DEFAULT_REVIEW_DEFINITION, buildEphemeralSeedLog, buildEphemeralSeedProjects, trimTaskActivityForState, buildAskContext, WORKER_TOOLS, verifyCfAccessJwt, resolveIdentity, goalVisibleTo, clampParallelLimit, canStartMore, nextRunnableTasks, goalsConflict, detectConflicts, isUiChange, shouldCaptureProof, shouldCaptureBaseline, hasTestRelevantChanges, buildExecutionPlan, buildContextHandoffSummary, buildFailurePostmortem, appendFailureMemory, latestFailurePolicy, classifyChangeRisk, checkRunBudget, usageBudgetTokens, isRateLimited, nextResumeDelay, checkFreeTierLimit, resolveEntitlement, resolveCachedEntitlement, FREE_TIER_LIMITS, verifyLicenseToken, shouldEmitSetupCompleted, pickAnalyticsUid, shouldEmitFreeExhausted, detectRequestLanguage, isNothingVerifiable } from './lib.mjs';
25
25
  import { openPR } from './pr.mjs';
26
26
  import { runVerification, exerciseUi } from './verify.mjs';
27
27
 
@@ -180,7 +180,7 @@ let licenseState = { email: null, isPaying: false, verifiedAt: 0 }; // in-memory
180
180
  // carries, so per-user app activity joins WITHOUT a cookie). Not signed in →
181
181
  // the anonymous per-install id. Raw email never lands in usage_events (the
182
182
  // Worker pseudonymizes it server-side).
183
- function analyticsUid() { return licenseState.email || ANALYTICS_UID; }
183
+ function analyticsUid() { return pickAnalyticsUid(licenseState.email, ANALYTICS_UID); }
184
184
  let _freeExhaustedEmitted = false;
185
185
 
186
186
  // One-time nonces for the "Sign in with Google" loopback (GET /api/signin-url →
@@ -388,7 +388,7 @@ async function requireEntitlementGate(identity) {
388
388
  // blocked by the free-tier cap (the funnel dedupes by distinct account/install,
389
389
  // so once-per-session is enough).
390
390
  function noteFreeExhausted(result) {
391
- if (_freeExhaustedEmitted || !result?.blocked) return;
391
+ if (!shouldEmitFreeExhausted(_freeExhaustedEmitted, result?.blocked)) return;
392
392
  _freeExhaustedEmitted = true;
393
393
  emitEvent('free_exhausted', analyticsUid());
394
394
  }
@@ -1374,15 +1374,15 @@ function testOutputExcerpt(text) {
1374
1374
  }
1375
1375
 
1376
1376
  function workerPrompt(task, goal, lastFailure) {
1377
- // Report back to the human in the SAME language they wrote the goal in (Masa
1378
- // 2026-07-15: "撃った言語で返す"). JP characters → Japanese, otherwise English.
1379
- const replyLang = /[぀-ヿ㐀-鿿]/.test(goal?.text || task?.title || '') ? '日本語' : 'English';
1380
1377
  // Optional skill the user attached to this goal. Empirically (scratch worker,
1381
1378
  // haiku, custom fixture skill) the reliably-firing form is an explicit Skill-tool
1382
1379
  // instruction as the FIRST line; a bare "/name" first line did not consistently
1383
1380
  // trigger the skill in `claude -p`. See commit body for the run evidence.
1384
1381
  const skill = task?.skill ?? goal?.skill;
1385
1382
  const agentName = workerAgent(task?.agent ?? goal?.agent) === 'codex' ? 'Codex' : 'Claude Code';
1383
+ // Report back to the human in the SAME language they wrote the goal in (Masa
1384
+ // 2026-07-15: "撃った言語で返す"). JP characters → Japanese, otherwise English.
1385
+ const replyLang = detectRequestLanguage(goal?.text || task?.title || '') === 'ja' ? '日本語' : 'English';
1386
1386
  return [
1387
1387
  skill ? `FIRST, use the /${skill} skill via the Skill tool (invoke Skill with the "${skill}" skill) before doing anything else. Then carry out the task below.` : '',
1388
1388
  `You are a ${agentName} worker managed by "Manager for AI". Do ONLY the task below inside this project directory.`,
@@ -2044,7 +2044,11 @@ function computeGoalDiff(goal, project) {
2044
2044
  // plain-language review headline in the user's language: what to CHECK and what
2045
2045
  // CHANGED. Never trusts the worker to self-format.
2046
2046
  async function summarizeForReview(goal, siblings, dir, reviewDefinition) {
2047
- const lang = reviewDefinition.language || 'ja';
2047
+ // 'auto' (default) matches the language the goal's own request was written
2048
+ // in, same as the planner/worker (Masa 2026-07-15 follow-up to a8d69fe: "the
2049
+ // review-column headline still defaults to ja — align it the same way").
2050
+ // An explicit ja/en on the project's review definition always overrides.
2051
+ const lang = reviewDefinition.language === 'auto' ? detectRequestLanguage(goal.text) : (reviewDefinition.language || 'ja');
2048
2052
  const changed = [...new Set(siblings.flatMap((t) => t.changedFiles ?? []))].slice(0, 20);
2049
2053
  const reports = siblings.filter((t) => !t.reply).map((t) => `- ${t.title}: ${(t.result ?? '').replace(/\s+/g, ' ').slice(0, 300)}`).join('\n');
2050
2054
  const fallback = { check: '', changed: (goal.plan?.[0] ?? goal.text ?? '').replace(/\s+/g, ' ').slice(0, 80) };
@@ -2253,6 +2257,16 @@ async function verifyGate(goal, prProject, siblings, baseProject, activityTask =
2253
2257
  // EVERY task must carry a passing proof, not just UI tasks. Only ever tightens;
2254
2258
  // never conflicts with §6 (still can't reach Done without a human).
2255
2259
  const verifyFail = reviewDefinition.requireVerifyPass && !allVerified;
2260
+ // 段5 検証ゲート厳格化 (Masa 2026-07-15: "proof無しは完了と言わない"): passCondition
2261
+ // を約束したタスクなのに 0 ファイル変更で proof も無い=約束した検証が実行されずに
2262
+ // すり抜けたサイン(isUiChange は changedFiles が空だと絶対に一致しないため、既存の
2263
+ // proofMissing(UIタスク限定)はこのケースを検知できない)。passCondition が無い調査
2264
+ // 系ゴール(0ファイルが正当な完了)は対象外 — 人間が読んで判断すれば足りる。
2265
+ const nothingVerifiable = isNothingVerifiable({
2266
+ changedFiles,
2267
+ hasPassCondition: siblings.some((t) => t.passCondition),
2268
+ hasAnyProof: siblings.some((t) => t.proof),
2269
+ });
2256
2270
  if (testsFailing) {
2257
2271
  const failure = recordGoalFailure(goal, {
2258
2272
  kind: 'test',
@@ -2285,22 +2299,24 @@ async function verifyGate(goal, prProject, siblings, baseProject, activityTask =
2285
2299
  return;
2286
2300
  }
2287
2301
  }
2288
- if (testsFailing || proofMissing || proofFailing || verifyFail) {
2302
+ if (testsFailing || proofMissing || proofFailing || verifyFail || nothingVerifiable) {
2289
2303
  if (!testsFailing) {
2290
2304
  recordGoalFailure(goal, {
2291
- kind: (proofMissing || proofFailing) ? 'proof' : 'verify',
2305
+ kind: (proofMissing || proofFailing) ? 'proof' : nothingVerifiable ? 'noop' : 'verify',
2292
2306
  reason: proofMissing ? 'UI変更なのに proof(スクショ/動画) が取れていない'
2293
2307
  : proofFailing ? 'UI proof は撮れたが、依頼対象のUIを確認できていない'
2308
+ : nothingVerifiable ? '検証条件つきのタスクなのに、ファイル変更も proof も無い(約束した検証が行われていない)'
2294
2309
  : '検証(proof)が全タスク分そろっていない(requireVerifyPass)',
2295
2310
  changedFiles,
2296
2311
  testResult: goal.testResult,
2297
2312
  });
2298
2313
  }
2299
2314
  goal.blocked = {
2300
- kind: testsFailing ? 'test' : (proofMissing || proofFailing) ? 'proof' : 'verify',
2315
+ kind: testsFailing ? 'test' : (proofMissing || proofFailing) ? 'proof' : nothingVerifiable ? 'noop' : 'verify',
2301
2316
  reason: testsFailing ? `テスト失敗 ${goal.testResult.failed} 件(自動修正 ${Number(goal.autoRework?.testFailures ?? 0)} 回後も失敗)`
2302
2317
  : proofMissing ? 'UI変更なのに proof(スクショ/動画) が取れていない'
2303
2318
  : proofFailing ? 'UI proof は撮れたが、依頼対象のUIを確認できていない'
2319
+ : nothingVerifiable ? '検証条件つきのタスクなのに、ファイル変更も proof も無い(約束した検証が行われていない)'
2304
2320
  : '検証(proof)が全タスク分そろっていない(requireVerifyPass)',
2305
2321
  };
2306
2322
  goal.status = 'blocked';
@@ -2349,9 +2365,11 @@ async function createGoalPR(goal, project, goalTasks, reviewDefinition = DEFAULT
2349
2365
  }
2350
2366
  const ownerRes = spawnSync('gh', ['repo', 'view', '--json', 'nameWithOwner', '-q', '.nameWithOwner'], { cwd: project.dir, encoding: 'utf8' });
2351
2367
  const owner = ownerRes.status === 0 ? ownerRes.stdout.trim() : null;
2352
- // PR body in the USER's language (reviewDefinition.language, default ja)
2353
- // not forced English/bilingual (Masa: 「ユーザーの言語で」).
2354
- const lang = reviewDefinition.language || 'ja';
2368
+ // PR body in the USER's language default 'auto' matches the goal's own
2369
+ // request language (same as planner/worker); an explicit ja/en override on
2370
+ // the project's review definition always wins. Not forced English/bilingual
2371
+ // (Masa: 「ユーザーの言語で」).
2372
+ const lang = reviewDefinition.language === 'auto' ? detectRequestLanguage(goal.text) : (reviewDefinition.language || 'ja');
2355
2373
  const L = (en, ja) => (lang === 'en' ? en : ja);
2356
2374
  const bodyFor = (branch) => [
2357
2375
  ...(proofItems.length && owner ? [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galda/cli",
3
- "version": "0.10.9",
3
+ "version": "0.10.10",
4
4
  "type": "module",
5
5
  "description": "Galda - hand off work to your Claude Code, get proof back. Runs on your existing subscription, no extra API cost.",
6
6
  "scripts": {