mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-24 04:47:03 +00:00
* docs(agy): say request-review follows agy's toolPermission setting On agy acp, HAPI's request-review is agy's default mode, which asks only as agy's own toolPermission setting says. With toolPermission set to always-proceed, agy runs commands and edits without asking, so HAPI shows no approval prompts, and HAPI cannot override that per session. The guide now says so, and says what acceptEdits and plan do on agy. It also notes that always-proceed approves a request a PreToolUse hook marks force_ask: agy sends it as an ordinary approval request, with nothing that says it came from a hook. * feat(acp): carry the agent's own tool name and args on tool calls Some ACP agents send their own tool name and args next to the standard title, kind and rawInput (agy: name, args). Pass them through as nativeName and nativeArgs so a launcher can pick a card by the real tool instead of a free-text title. Agents that send no name are unaffected. * feat(agy): show agy ACP tool calls as the canonical tool cards Map agy's own tool names to the cards the other flavors use: run_command to Bash (with a clean stdout result), read_file to Read, edit_file to an Edit diff, write_file to Write, search_web to WebSearch, invoke_subagent to Task and call_mcp_tool to the mcp card. A write_file artifact (plan or task list) is shown as a plan instead of a hidden brain-directory path. A command agy moves to the background gets no further update after end_turn, so its card spun until the next message. Show it as running in the background at end_turn; the real result replaces that when agy reports it in a later prompt's stream.