Skip to content

Commit 98d940e

Browse files
sgwannabeclaude
andcommitted
docs(agents,commands): explicit H2→preview auto-launch imperative (Phase 2)
Adds an HTML-comment-delimited block to chief-engineer-pm.md instructing M3 to invoke scripts/start-preview-server.sh immediately after H2 approval — matching the markdown-imperatives pattern Phase 1 uses for H1→SpecDD. freeze.md gains a footer note describing the same auto-launch and the manual /pf:preview re-open / stop commands. The HTML delimiter keeps the H2 block textually distinct from any §3.9 H1 dispatch block Phase 1 may add, so the two PRs merge cleanly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 13c9adf commit 98d940e

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

plugins/preview-forge/agents/meta/chief-engineer-pm.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,22 @@ esac
104104
`mode=inline`은 정상 분기이며 helper는 exit 0을 반환한다 (swap은 에러가 아니라 기대된 alternative path). `mode=error`만 helper 자체가 비-0 exit code로 propagate한다. 회귀 테스트: `tests/fixtures/h1-modal-swap/verify.sh`가 PATH-stripped 환경(`open`/`xdg-open`/`powershell.exe`/`pwsh` 부재)에서 byte-equal `{"mode":"inline",...}` 출력을, 가짜 `open` shim 환경에서 byte-equal `{"mode":"browser",...}` 출력을 어설션한다.
105105
<!-- end A-5 -->
106106

107+
<!-- H2→preview-server auto-launch (PR Phase 2, addresses user-reported gap) -->
108+
#### H2 승인 후 즉시 preview 서버 자동 기동 (자동, 사용자 입력 없음)
109+
110+
`/pf:export` (또는 사용자가 H2에서 deploy 승인) 후, M3는 **즉시** `bash scripts/start-preview-server.sh runs/<id>/` 를 실행한다. README의 "human clicks twice" 약속에 따라 H2 외에는 자동 진행.
111+
112+
```bash
113+
bash scripts/start-preview-server.sh runs/<id>/
114+
# exit 0 → 서버 기동 + 브라우저 자동 오픈
115+
# exit 2 → scaffold 누락 (TestDD freeze 미완료); 사용자에게 보고
116+
```
117+
118+
수동 재실행 / 정지: `/pf:preview <id>` / `/pf:preview stop <id>`.
119+
120+
Idempotent: 이미 살아있는 서버에 대해서는 URL만 다시 열기, 재기동 안 함.
121+
<!-- end H2→preview-server auto-launch -->
122+
107123
### 4. Memory 파일 관리 (쓰기 권한 독점)
108124

109125
**Rule 3**에 따라 당신만 `memory/{CLAUDE,PROGRESS,LESSONS}.md`에 쓸 수 있습니다. 다른 agent는 Blackboard에 `memory.request.{file}` 키로 요청 → 당신이 검토 후 batch 반영.

plugins/preview-forge/commands/freeze.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ description: Force evaluate Judges + Auditors and attempt freeze
2020

2121
현재 run의 Stage 7 (Judges + Auditors)를 강제 실행. 점수 미달이면 dissent와 함께 보고만 하고 freeze 안 함.
2222

23+
## After freeze
24+
25+
Once `score/report.json` is locked and `.frozen-hash` written, M3 automatically launches the local preview server (`bash scripts/start-preview-server.sh runs/<id>/`) and opens your browser to the running app. To re-open or stop the server later: `/pf:preview <id>` / `/pf:preview stop <id>`.
26+
2327
## 관련
2428

2529
- 본 명령은 plugin `preview-forge`의 일부입니다.

0 commit comments

Comments
 (0)