diff --git a/resources/global/en/piece-categories.yaml b/resources/global/en/piece-categories.yaml index ded9597..d7fa452 100644 --- a/resources/global/en/piece-categories.yaml +++ b/resources/global/en/piece-categories.yaml @@ -1,8 +1,10 @@ piece_categories: "🚀 Quick Start": pieces: - - minimal - default + - passthrough + - coding + - minimal "🔍 Review & Fix": pieces: diff --git a/resources/global/en/pieces/passthrough.yaml b/resources/global/en/pieces/passthrough.yaml new file mode 100644 index 0000000..801c12c --- /dev/null +++ b/resources/global/en/pieces/passthrough.yaml @@ -0,0 +1,42 @@ +# Passthrough TAKT Piece +# Thinnest wrapper. Pass task directly to coder as-is. +# +# Flow: +# execute (do the task) +# ↓ +# COMPLETE + +name: passthrough +description: Single-agent thin wrapper. Pass task directly to coder as-is. + +max_iterations: 10 + +initial_movement: execute + +movements: + - name: execute + edit: true + agent: ../agents/default/coder.md + report: + - Summary: summary.md + allowed_tools: + - Read + - Glob + - Grep + - Edit + - Write + - Bash + - WebSearch + - WebFetch + permission_mode: edit + rules: + - condition: Task complete + next: COMPLETE + - condition: Cannot proceed + next: ABORT + - condition: User input required + next: execute + requires_user_input: true + interactive_only: true + instruction_template: | + Do the task. diff --git a/resources/global/ja/piece-categories.yaml b/resources/global/ja/piece-categories.yaml index a04dc24..91ee58a 100644 --- a/resources/global/ja/piece-categories.yaml +++ b/resources/global/ja/piece-categories.yaml @@ -2,6 +2,7 @@ piece_categories: "🚀 クイックスタート": pieces: - default + - passthrough - coding - minimal diff --git a/resources/global/ja/pieces/passthrough.yaml b/resources/global/ja/pieces/passthrough.yaml new file mode 100644 index 0000000..3f54314 --- /dev/null +++ b/resources/global/ja/pieces/passthrough.yaml @@ -0,0 +1,42 @@ +# Passthrough TAKT Piece +# タスクをそのままエージェントに渡す最薄ラッパー。 +# +# フロー: +# execute (タスク実行) +# ↓ +# COMPLETE + +name: passthrough +description: Single-agent thin wrapper. Pass task directly to coder as-is. + +max_iterations: 10 + +initial_movement: execute + +movements: + - name: execute + edit: true + agent: ../agents/default/coder.md + report: + - Summary: summary.md + allowed_tools: + - Read + - Glob + - Grep + - Edit + - Write + - Bash + - WebSearch + - WebFetch + permission_mode: edit + rules: + - condition: タスク完了 + next: COMPLETE + - condition: 進行できない + next: ABORT + - condition: ユーザー入力が必要 + next: execute + requires_user_input: true + interactive_only: true + instruction_template: | + タスクをこなしてください。 diff --git a/src/__tests__/config.test.ts b/src/__tests__/config.test.ts index fe1567b..a54afea 100644 --- a/src/__tests__/config.test.ts +++ b/src/__tests__/config.test.ts @@ -45,7 +45,7 @@ describe('getBuiltinPiece', () => { }); it('should return null for non-existent piece names', () => { - expect(getBuiltinPiece('passthrough')).toBeNull(); + expect(getBuiltinPiece('nonexistent-piece')).toBeNull(); expect(getBuiltinPiece('unknown')).toBeNull(); expect(getBuiltinPiece('')).toBeNull(); });