reviw 0.15.0 → 0.15.3

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.ja.md CHANGED
@@ -151,7 +151,14 @@ plugin/
151
151
  │ ├── do.md # /reviw:doコマンド定義
152
152
  │ └── done.md # /reviw:doneコマンド定義
153
153
  ├── agents/
154
- └── report-builder.md # レポート生成エージェント
154
+ ├── report-builder.md # レポート生成エージェント
155
+ │ ├── e2e-health-reviewer.md # E2Eテスト健全性チェック
156
+ │ ├── review-code-quality.md # コード品質レビュー
157
+ │ ├── review-security.md # セキュリティ監査
158
+ │ ├── review-a11y-ux.md # アクセシビリティ & UX
159
+ │ ├── review-figma-fidelity.md # デザイン忠実度
160
+ │ ├── review-copy-consistency.md # テキスト整合性
161
+ │ └── review-e2e-integrity.md # E2Eテスト整合性
155
162
  ├── skills/
156
163
  │ ├── artifact-proof/
157
164
  │ │ └── SKILL.md # エビデンス収集スキル
@@ -171,8 +178,15 @@ plugin/
171
178
  | 種類 | 名前 | 説明 |
172
179
  |------|------|------|
173
180
  | **コマンド** | `/reviw:do` | タスク開始 - worktree作成、計画、todo登録 |
174
- | **コマンド** | `/reviw:done` | 完了チェックリスト - エビデンス収集、レビュー開始 |
181
+ | **コマンド** | `/reviw:done` | 完了チェックリスト - 7レビューエージェント実行、エビデンス収集、レビュー開始 |
175
182
  | **エージェント** | `report-builder` | ユーザーレビュー用レポート準備 |
183
+ | **エージェント** | `review-code-quality` | コード品質: 可読性、DRY、型安全性、エラーハンドリング |
184
+ | **エージェント** | `review-security` | セキュリティ: XSS、インジェクション、OWASP Top 10、秘密情報検出 |
185
+ | **エージェント** | `review-a11y-ux` | アクセシビリティ: WCAG 2.2 AA、キーボード操作、UXフロー |
186
+ | **エージェント** | `review-figma-fidelity` | デザイン: トークン準拠、視覚的一貫性 |
187
+ | **エージェント** | `review-copy-consistency` | コピー: テキスト整合性、トーン&マナー、i18n |
188
+ | **エージェント** | `review-e2e-integrity` | E2E: ユーザーフロー再現、モック汚染検出 |
189
+ | **エージェント** | `e2e-health-reviewer` | E2E: goto制限、レコードアサーション、ハードコード検出 |
176
190
  | **スキル** | `artifact-proof` | エビデンス収集(スクリーンショット、動画、ログ) |
177
191
  | **スキル** | `webapp-testing` | Playwrightによるブラウザ自動化と検証 |
178
192
  | **フック** | PreToolUse | git commit/push前にレビューを促すリマインダー |
package/README.md CHANGED
@@ -151,7 +151,14 @@ plugin/
151
151
  │ ├── do.md # /reviw:do command definition
152
152
  │ └── done.md # /reviw:done command definition
153
153
  ├── agents/
154
- └── report-builder.md # Report generation agent
154
+ ├── report-builder.md # Report generation agent
155
+ │ ├── e2e-health-reviewer.md # E2E test health check
156
+ │ ├── review-code-quality.md # Code quality review
157
+ │ ├── review-security.md # Security audit
158
+ │ ├── review-a11y-ux.md # Accessibility & UX
159
+ │ ├── review-figma-fidelity.md # Design fidelity
160
+ │ ├── review-copy-consistency.md # Text consistency
161
+ │ └── review-e2e-integrity.md # E2E test integrity
155
162
  ├── skills/
156
163
  │ ├── artifact-proof/
157
164
  │ │ └── SKILL.md # Evidence collection skill
@@ -171,8 +178,15 @@ plugin/
171
178
  | Type | Name | Description |
172
179
  |------|------|-------------|
173
180
  | **Command** | `/reviw:do` | Start a task - create worktree, plan, register todos |
174
- | **Command** | `/reviw:done` | Complete checklist - collect evidence, start review |
181
+ | **Command** | `/reviw:done` | Complete checklist - run 7 review agents, collect evidence, start review |
175
182
  | **Agent** | `report-builder` | Prepare reports and evidence for user review |
183
+ | **Agent** | `review-code-quality` | Code quality: readability, DRY, type safety, error handling |
184
+ | **Agent** | `review-security` | Security: XSS, injection, OWASP Top 10, secrets detection |
185
+ | **Agent** | `review-a11y-ux` | Accessibility: WCAG 2.2 AA, keyboard nav, UX flow |
186
+ | **Agent** | `review-figma-fidelity` | Design: token compliance, visual consistency |
187
+ | **Agent** | `review-copy-consistency` | Copy: text consistency, tone & manner, i18n |
188
+ | **Agent** | `review-e2e-integrity` | E2E: user flow reproduction, mock contamination |
189
+ | **Agent** | `e2e-health-reviewer` | E2E: goto restrictions, record assertions, hardcoding |
176
190
  | **Skill** | `artifact-proof` | Collect evidence (screenshots, videos, logs) |
177
191
  | **Skill** | `webapp-testing` | Browser automation and verification with Playwright |
178
192
  | **Hook** | PreToolUse | Remind to review before git commit/push |
@@ -224,14 +238,43 @@ Validates completion criteria before allowing task completion.
224
238
 
225
239
  ---
226
240
 
227
- ### Agent
241
+ ### Agents
242
+
243
+ #### Review Agents (7 agents run in parallel)
244
+
245
+ When `/reviw:done` is executed, 7 review agents run simultaneously and append their findings to `REPORT.md`:
246
+
247
+ | Agent | Focus | Output Section |
248
+ |-------|-------|----------------|
249
+ | `review-code-quality` | Readability, DRY, type safety, error handling | Code Quality Review |
250
+ | `review-security` | XSS, injection, OWASP Top 10, secrets | Security Review |
251
+ | `review-a11y-ux` | WCAG 2.2 AA, keyboard nav, focus management | A11y & UX Review |
252
+ | `review-figma-fidelity` | Design tokens, visual consistency | Figma Fidelity Review |
253
+ | `review-copy-consistency` | Text consistency, i18n, tone & manner | Copy Consistency Review |
254
+ | `review-e2e-integrity` | User flow reproduction, mock contamination | E2E Integrity Review |
255
+ | `e2e-health-reviewer` | goto restrictions, record assertions | E2E Health Review |
256
+
257
+ **Total score:** Each agent scores X/5, combined for X/35 total.
258
+
259
+ **Invocation (parallel):**
260
+ ```
261
+ Task tool with 7 parallel calls:
262
+ subagent_type: "review-code-quality"
263
+ subagent_type: "review-security"
264
+ subagent_type: "review-a11y-ux"
265
+ subagent_type: "review-figma-fidelity"
266
+ subagent_type: "review-copy-consistency"
267
+ subagent_type: "review-e2e-integrity"
268
+ subagent_type: "e2e-health-reviewer"
269
+ ```
228
270
 
229
271
  #### `report-builder`
230
272
 
231
- Specialized agent for preparing review materials.
273
+ Specialized agent for preparing review materials (runs after review agents).
232
274
 
233
275
  **Role:**
234
276
  - Organize implementation into a structured report
277
+ - Calculate total review score (X/35)
235
278
  - Collect and arrange evidence (screenshots, videos)
236
279
  - Prepare `REPORT.md` for reviw review
237
280
  - Parse reviw feedback and register as todos
@@ -321,6 +364,20 @@ Build & Verify (webapp-testing)
321
364
 
322
365
  /reviw:done
323
366
 
367
+ ┌─────────────────────────────────────────────┐
368
+ │ 7 Review Agents (parallel execution) │
369
+ │ │
370
+ │ review-code-quality ──┐ │
371
+ │ review-security ──────┤ │
372
+ │ review-a11y-ux ───────┼──→ REPORT.md │
373
+ │ review-figma-fidelity ┤ (append) │
374
+ │ review-copy-consistency │
375
+ │ review-e2e-integrity ─┤ │
376
+ │ e2e-health-reviewer ──┘ │
377
+ └─────────────────────────────────────────────┘
378
+
379
+ report-builder (organize + score)
380
+
324
381
  Collect evidence (artifact-proof)
325
382
 
326
383
  npx reviw opens report (foreground)
package/cli.cjs CHANGED
@@ -2250,7 +2250,13 @@ function htmlTemplate(dataRows, cols, projectRoot, relativePath, mode, previewHt
2250
2250
  .md-preview p { margin: 0.3em 0; line-height: 1.5; }
2251
2251
  .md-preview img { max-width: 100%; height: auto; border-radius: 8px; }
2252
2252
  .md-preview video.video-preview { max-width: 100%; height: auto; border-radius: 8px; background: #000; }
2253
- .md-preview table video.video-preview { max-width: 300px; }
2253
+ .md-preview table video.video-preview {
2254
+ display: block;
2255
+ width: 100%;
2256
+ height: auto;
2257
+ min-width: 120px;
2258
+ max-width: 250px;
2259
+ }
2254
2260
  .md-preview code { background: rgba(255,255,255,0.08); padding: 2px 4px; border-radius: 4px; }
2255
2261
  .md-preview pre {
2256
2262
  background: var(--code-bg);
@@ -2379,17 +2385,24 @@ function htmlTemplate(dataRows, cols, projectRoot, relativePath, mode, previewHt
2379
2385
  .md-preview table:not(.frontmatter-table table) {
2380
2386
  width: 100%;
2381
2387
  border-collapse: collapse;
2388
+ table-layout: auto;
2382
2389
  margin: 16px 0;
2383
2390
  border: 1px solid var(--border);
2384
2391
  border-radius: 8px;
2385
- overflow: hidden;
2386
2392
  }
2387
2393
  .md-preview table:not(.frontmatter-table table) th,
2388
2394
  .md-preview table:not(.frontmatter-table table) td {
2389
- width: 50%;
2390
2395
  padding: 10px 16px;
2391
2396
  text-align: left;
2392
2397
  border-bottom: 1px solid var(--border);
2398
+ vertical-align: top;
2399
+ }
2400
+ .md-preview table:not(.frontmatter-table table) td:has(video),
2401
+ .md-preview table:not(.frontmatter-table table) td:has(img) {
2402
+ padding: 4px;
2403
+ min-width: 150px;
2404
+ white-space: nowrap;
2405
+ line-height: 0;
2393
2406
  }
2394
2407
  .md-preview table:not(.frontmatter-table table) th {
2395
2408
  background: var(--panel);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reviw",
3
- "version": "0.15.0",
3
+ "version": "0.15.3",
4
4
  "description": "Lightweight file reviewer with in-browser comments for CSV, TSV, Markdown, and Git diffs.",
5
5
  "type": "module",
6
6
  "bin": {