vibe-coding-master 0.3.27 → 0.3.28

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/README.md CHANGED
@@ -33,7 +33,7 @@ When Gate Review Gates are enabled for a task, or when a Gate Reviewer session a
33
33
  - Rust generated context for module indexing and crate-external public surface indexing.
34
34
  - Translation panel powered by the long-lived Codex Translator session.
35
35
  - Mobile Gateway through Tencent iLink Bot API / Weixin DM, for talking to PM and managing tasks from Weixin.
36
- - Durable task state, session state, raw terminal logs, handoff artifacts, and message history.
36
+ - Durable task state, role session state, handoff artifacts, and message history.
37
37
 
38
38
  ## Requirements
39
39
 
@@ -193,14 +193,12 @@ In this terminology, `Session` is a VCM statistics term. It is different from a
193
193
 
194
194
  ## Task Worktree Management
195
195
 
196
- VCM uses task-level worktree management by default:
196
+ VCM uses task-level worktree management for every task:
197
197
 
198
198
  ```text
199
199
  one task = one branch + one git worktree + one handoff directory + one role-session set
200
200
  ```
201
201
 
202
- The `Create worktree and branch` option is selected by default when creating a task:
203
-
204
202
  - task name: `<task>`
205
203
  - branch: `feature/<task>`
206
204
  - worktree path: `.claude/worktrees/<task>` inside the connected base repository
@@ -208,13 +206,11 @@ The `Create worktree and branch` option is selected by default when creating a t
208
206
 
209
207
  VCM will not create worktrees per role. `project-manager`, `architect`, `coder`, and `reviewer` for the same task share the same task worktree.
210
208
 
211
- The user can turn this option off. In that mode, VCM creates app-local task metadata, creates the handoff structure in the connected repository, records the current branch, and starts role sessions from the connected repository path.
212
-
213
209
  VCM will not offer a separate `Create task worktree` button after a task exists, and a task should not be switched to another branch/worktree mode after creation.
214
210
 
215
211
  Because worktrees live under `.claude/worktrees/`, the connected repository must ignore both `.ai/vcm/` and `.claude/worktrees/`. Apply the VCM Harness before creating tasks so `.gitignore` contains the managed ignore block. The base repository must also be clean because the task branch/worktree is created from the connected repo's current `HEAD`.
216
212
 
217
- When a task is complete, VCM provides a red `Close Task` action. Closing a task shows a destructive confirmation, stops VCM-managed running role sessions for that task, then deletes the task worktree, deletes the task branch by default, removes the app-local task record, and removes task runtime metadata. VCM does not preflight running sessions or uncommitted changes before closing. Tasks created without a worktree only remove VCM metadata because they do not own a separate branch/worktree.
213
+ When a task is complete, VCM provides a red `Close Task` action. Closing a task shows a destructive confirmation, stops VCM-managed running role sessions for that task, then deletes the task worktree, deletes the task branch by default, removes the app-local task record, and removes task runtime metadata. VCM does not preflight running sessions or uncommitted changes before closing. Project-scoped Gate Reviewer and Codex Translator sessions are not task-owned and are not stopped by Close Task.
218
214
 
219
215
  ## Sidebar UI
220
216
 
@@ -223,6 +219,8 @@ The left sidebar is intentionally compact and collapsible:
223
219
  - `Repository Path`: path input on one row; `Recent` and `Connect` on the next row.
224
220
  - `Connected Repository`: connected base repo path, branch, upstream/ahead-behind status, commit hash, working tree state, and a `Pull` button.
225
221
  - `Settings`: `Theme`, `Flow pause alert`, `Try alert`, `Messages`, and `Events`.
222
+ - `Translation`: global conversation translation, auto-send, target language, output scope, file translation, bootstrap, memory update, session status, and Codex Translator session access.
223
+ - `Gate Review Gates`: global gate switches for architecture plan, validation adequacy, and final diff.
226
224
  - `Gateway`: Weixin iLink binding, Gateway on/off, Gateway translation, and QR login.
227
225
  - `VCM Harness`: fixed-install status, bootstrap completion checks, and the bootstrap terminal when one is running.
228
226
  - `New Task`: one `task name` input.
@@ -233,9 +231,8 @@ All sidebar sections are collapsed by default. When no task is selected, `Reposi
233
231
  Opening `Connected Repository` refreshes the base repo status through the
234
232
  backend. VCM does not poll it continuously. The `Pull` button runs
235
233
  `git pull --ff-only` against the connected base repo only. It is disabled when
236
- the base repo has uncommitted changes, when the current branch has no upstream,
237
- or when the active task is an inline task using the base repo directly. It does
238
- not stash, merge, or mutate task worktrees.
234
+ the base repo has uncommitted changes or when the current branch has no
235
+ upstream. It does not stash, merge, or mutate task worktrees.
239
236
 
240
237
  When VCM is connected to an active task, the bottom of the sidebar shows a task status dock. It stays outside the collapsible groups and shows the active VCM Session title, task status, start time, total elapsed time, total Round count, and role active runtime. The dock also shows the Current Round while it is running, or the Last Round after a flow pause, including start time, total elapsed time, role active runtime, Turn count, and Round status.
241
238
 
@@ -360,7 +357,7 @@ Typical mobile flow:
360
357
 
361
358
  `/pull-current` only pulls the connected base repository. It does not pull task worktrees, stash local changes, merge divergent branches, or run arbitrary shell commands.
362
359
 
363
- `/create-task` uses the saved launch template from the desktop settings. The template controls permission mode, model, effort, auto orchestration, and translation defaults for the four role sessions.
360
+ `/create-task` uses the saved launch template from the desktop settings. The template controls permission mode, model, effort, and auto orchestration for the four core role sessions. Gateway translation uses the global Gateway translation setting, not the launch template.
364
361
 
365
362
  `/close-task` is destructive. It stops VCM-managed role sessions and removes task-owned worktree/branch state according to the same cleanup behavior as the desktop `Close Task` action.
366
363
 
@@ -378,7 +375,7 @@ Typical mobile flow:
378
375
 
379
376
  ## Translation
380
377
 
381
- The task header has a global `Translate` button next to `Close Task`. It opens a translation panel beside the embedded terminal for the role consoles and keeps the same on/off setting while switching roles. The terminal and translation panel split the available width evenly.
378
+ Translation is controlled from the sidebar `Translation` group. When conversation translation is enabled, each running core VCM role console shows a translation panel beside the embedded terminal. The terminal and translation panel split the available width evenly.
382
379
 
383
380
  The task header does not include a manual `Refresh` button. Task status, role status, messages, orchestration state, and flow pause state refresh automatically. The remaining `Refresh` button lives only in the sidebar `VCM Harness` section and is for rechecking harness files.
384
381
 
@@ -401,7 +398,7 @@ When Gateway is on, `Flow pause alert` is forced off because mobile notification
401
398
  Translation behavior:
402
399
 
403
400
  - Conversation translation is routed through the Codex Translator session and result files.
404
- - Global translation controls live in the sidebar Translation section: enablement, auto-send, target language, bootstrap, memory update, and file translation.
401
+ - Global translation controls live in the sidebar Translation section: enablement, auto-send, target language, output scope, bootstrap, memory update, file translation, session status, and `Open Session`.
405
402
  - File and conversation translation share `<baseRepoRoot>/.ai/vcm/translations/`; conversation result files are temporary runtime artifacts.
406
403
  - Claude Code output translation reads semantic Claude transcript JSONL files under `~/.claude/projects`, not raw PTY output.
407
404
  - Claude Code prose output waits 10 seconds before dispatch so adjacent output can be translated in one Codex batch.
@@ -415,10 +412,10 @@ Translation behavior:
415
412
  - Assistant prose renders Markdown in the panel, including headings, lists, code fences, tables, and links.
416
413
  - Tool calls and tool results are preserved as dim one-line rows such as `● Bash({"command":"npm test"})`.
417
414
  - User input uses one textarea. Press `Enter` to translate or send the current English draft; press `Shift+Enter` for a newline.
418
- - After user input is translated, the translated draft is appended after the original text in the same textarea.
415
+ - After user input is translated, the English draft is appended after the original source text in the same textarea.
419
416
  - `Send English` writes the current English draft to the active embedded terminal and submits it.
420
417
  - Automatic terminal submission uses bracketed paste first, then sends Enter separately for Claude Code TUI reliability.
421
- - The translation panel `Auto-send` toggle sends the translated draft automatically when translation succeeds without warnings.
418
+ - The sidebar `Auto-send` toggle sends the translated draft automatically when translation succeeds without warnings.
422
419
 
423
420
  ## Project Harness
424
421
 
@@ -438,7 +435,13 @@ CLAUDE.md
438
435
  .claude/skills/vcm-final-acceptance/SKILL.md
439
436
  .claude/skills/vcm-long-running-validation/SKILL.md
440
437
  .claude/skills/vcm-harness-bootstrap/SKILL.md
441
- .ai/vcm-harness-manifest.json
438
+ .claude/skills/vcm-gate-review/SKILL.md
439
+ .claude/agents/gate-reviewer.md
440
+ .ai/codex-translator/AGENTS.md
441
+ .ai/codex-translator/config.toml
442
+ .ai/codex-translator/.codex/config.toml
443
+ .ai/codex-translator/.codex/hooks.json
444
+ .ai/tools/request-gate-review
442
445
  .ai/tools/generate-module-index
443
446
  .ai/tools/generate-public-surface
444
447
  .ai/tools/run-long-check
@@ -536,7 +539,6 @@ Runtime message and handoff files:
536
539
  .ai/vcm/messages/<task>.jsonl # under the task runtime repo
537
540
  .ai/vcm/orchestration/<task>.json # under the task runtime repo
538
541
  .ai/vcm/handoffs/messages/<from-role>-<to-role>.md
539
- .ai/vcm/handoffs/logs/
540
542
  ```
541
543
 
542
544
  Each directed role route has exactly one message file. Route messages are the only dynamic task-dispatch files. If a role changes its mind during one turn, it edits the same route file instead of creating another message. A blank file means no pending message; a non-empty file means pending work for VCM to submit.
@@ -603,7 +605,7 @@ Session buttons behave as follows:
603
605
  - `Restart`: stops the current process if needed, creates a new UUID, and starts a fresh Claude session.
604
606
  - `Stop`: stops the embedded terminal process and leaves the persisted Claude session id resumable.
605
607
 
606
- Embedded terminal output is still written to raw role log files under `.ai/vcm/handoffs/logs/`. When a browser reconnects to a running terminal, VCM replays only the tail of that log, capped at 2 MB, rather than streaming the entire historical log back into xterm. This keeps long sessions responsive while preserving full logs on disk until task cleanup.
608
+ Ordinary VCM role sessions do not persist raw terminal logs under handoff state. Claude Code transcript JSONL files under `~/.claude/projects/` are the semantic record used for output translation and recovery.
607
609
 
608
610
  ## Local Project Files
609
611
 
@@ -622,7 +624,9 @@ For a connected repository, VCM uses:
622
624
  <taskRepoRoot>/.ai/vcm/handoffs/review-report.md
623
625
  <taskRepoRoot>/.ai/vcm/handoffs/docs-sync-report.md
624
626
  <taskRepoRoot>/.ai/vcm/handoffs/messages/<from-role>-<to-role>.md
625
- <taskRepoRoot>/.ai/vcm/handoffs/logs/{project-manager,architect,coder,reviewer}.log
627
+ <taskRepoRoot>/.ai/vcm/gate-reviews/
628
+ <baseRepoRoot>/.ai/vcm/gate-reviewer/session.json
629
+ <baseRepoRoot>/.ai/vcm/translations/
626
630
  ```
627
631
 
628
632
  The project config is stored under `vcmDataDir` so it is durable local app state. `vcmDataDir` is `VCM_DATA_DIR` when set, otherwise `~/.vcm`. For Dev Containers, prefer:
@@ -635,9 +639,7 @@ The project config is stored under `vcmDataDir` so it is durable local app state
635
639
  }
636
640
  ```
637
641
 
638
- For worktree-backed tasks, `taskRepoRoot` is `<baseRepoRoot>/.claude/worktrees/<task>`; for inline tasks, `taskRepoRoot` is the connected base repo.
639
-
640
- Because handoffs are scoped to `taskRepoRoot` without an extra task-name directory, VCM allows only one active inline task per connected repository. Use the default worktree mode for parallel tasks.
642
+ For every task, `taskRepoRoot` is `<baseRepoRoot>/.claude/worktrees/<task>`.
641
643
 
642
644
  ## Packaging
643
645
 
@@ -680,4 +682,6 @@ See also:
680
682
  - `docs/v0.2-implementation-plan.md`
681
683
  - `docs/vcm-cc-best-practices.md`
682
684
  - `docs/full-harness-baseline.md`
685
+ - `docs/gate-review-gates.md`
686
+ - `docs/codex-translation-plan.md`
683
687
  - `docs/cc-best-practices.md` is archived and no longer maintained.