@geekbeer/minion 3.51.1 → 3.51.2

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.
@@ -1337,7 +1337,7 @@ POST `/api/minion/dag-workflows/:id/publish` (body なし):
1337
1337
  |------|---------------|------|
1338
1338
  | `start` / `end` | なし | |
1339
1339
  | `skill` | `skill_id`, `skill_version_id`, `assigned_role` | |
1340
- | `review` | `review: { reviewer_type, criteria, revision_target }` | `revision` エッジと `approved` エッジが**自動生成**される |
1340
+ | `review` | `assigned_role`, `review: { criteria, revision_target }` | `assigned_role: 'human'` でダッシュボードからの人間レビュー、`'pm'`/`'engineer'`/`'accountant'` で将来の minion レビュー枠(現在は未実装、`waiting` で停止)。`revision` / `approved` エッジは自動生成 |
1341
1341
  | `fan_out` | `fan_out_source`, `template` | `template` は sub-graph `{ nodes, edges }` |
1342
1342
  | `join` | `join_mode`, `aggregation` | |
1343
1343
  | `conditional` | `condition_type`, `branches` or `default_branch` | |
@@ -1350,13 +1350,24 @@ POST `/api/minion/dag-workflows/:id/publish` (body なし):
1350
1350
  "label": "Quality Check",
1351
1351
  "after": "skill_1",
1352
1352
  "before": "end",
1353
+ "assigned_role": "human",
1353
1354
  "review": {
1354
- "reviewer_type": "human",
1355
1355
  "criteria": "成果物の品質を確認",
1356
- "revision_target": "skill_1"
1356
+ "revision_target": "skill_1",
1357
+ "preferred_reviewer_id": "<user UUID(任意・指定なしの場合は全プロジェクトメンバーに通知)>"
1357
1358
  }
1358
1359
  }
1359
1360
  ```
1361
+
1362
+ `assigned_role` の値:
1363
+ - `human` — ダッシュボードから人間が承認 (`workflow.review_requested` 通知が送信される)
1364
+ - `pm` / `engineer` / `accountant` — 将来の minion レビュー枠 (現在は未実装、`waiting` で停止)
1365
+
1366
+ `preferred_reviewer_id` (任意):
1367
+ - `assigned_role === 'human'` の場合: `profiles.user_id` を指定すると通知をその人に絞る。脱退済みなら全メンバーにフォールバック
1368
+ - `assigned_role !== 'human'` の場合: `minions.id` を指定(現在は未実装)
1369
+
1370
+ > 互換性: 旧形式 `review: { reviewer_type, reviewer_id }` も読み取り可能ですが、新規作成時は `assigned_role` + `preferred_reviewer_id` を使ってください。
1360
1371
  → `skill_1 → end` のエッジが削除され、以下が自動生成:
1361
1372
  - `skill_1 → review_1` (normal)
1362
1373
  - `review_1 → end` (approved)
@@ -309,8 +309,8 @@ cat > /tmp/n.json <<'EOF'
309
309
  "label": "Quality Check",
310
310
  "after": "skill_1",
311
311
  "before": "end_1",
312
+ "assigned_role": "human",
312
313
  "review": {
313
- "reviewer_type": "human",
314
314
  "criteria": "成果物の品質を確認",
315
315
  "revision_target": "skill_1"
316
316
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekbeer/minion",
3
- "version": "3.51.1",
3
+ "version": "3.51.2",
4
4
  "description": "AI Agent runtime for Minion - manages status and skill deployment on VPS",
5
5
  "main": "linux/server.js",
6
6
  "bin": {