mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-24 04:47:03 +00:00
feat(agy): show Antigravity's tool calls as the canonical tool cards (#2330)
* 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.
This commit is contained in:
+12
-5
@@ -335,11 +335,18 @@ the prompt is loaded by DSH through its own `skill` tool and catalog.
|
||||
finishes any tool call already running, then continues the same turn with
|
||||
the new message. The turn's usage includes the steered part.
|
||||
|
||||
Permission modes map to agy's session modes: `request-review` is agy's
|
||||
`default` mode, which follows agy's own permission settings and, on ACP,
|
||||
shows its approval requests in HAPI; `acceptEdits` and `plan` are agy's
|
||||
`accept-edits` and `plan` modes; `always-proceed` approves every request
|
||||
automatically. On ACP, mode changes apply to the next message without
|
||||
Permission modes map to agy's session modes. `request-review` is agy's
|
||||
`default` mode, which asks only as agy's own `toolPermission` setting
|
||||
(`~/.gemini/antigravity-cli/settings.json`) says; on ACP its approval
|
||||
requests show in HAPI. With `toolPermission: always-proceed`, agy runs
|
||||
commands and edits without asking, so HAPI shows no approval prompts; set
|
||||
it to `request-review` in agy to approve each command and edit from HAPI.
|
||||
HAPI cannot override this per session. `acceptEdits` is agy's
|
||||
`accept-edits` mode, which also runs edits without asking, and `plan` is
|
||||
agy's `plan` mode, which writes a plan instead of running commands or
|
||||
edits. `always-proceed` approves every request automatically, including
|
||||
one a PreToolUse hook marks `force_ask` (agy does not tell HAPI a request
|
||||
came from a hook). On ACP, mode changes apply to the next message without
|
||||
restarting agy. Conversation titles come from agy; on ACP each response's
|
||||
details show the turn's token usage.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user