@blogic-cz/agent-tools 0.5.4 → 0.5.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blogic-cz/agent-tools",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "description": "CLI tools for AI coding agent workflows — GitHub, database, Kubernetes, Azure DevOps, logs, sessions, and audit",
5
5
  "keywords": [
6
6
  "agent",
@@ -338,7 +338,10 @@ export function createCredentialGuard(config?: CredentialGuardConfig): Credentia
338
338
  }
339
339
 
340
340
  function handleToolExecuteBefore(input: HookInput, output: HookOutput): void {
341
- const tool = input.tool;
341
+ // Normalize tool name across platforms:
342
+ // - Claude Code passes capitalized: "Bash", "Read", "Write", "Edit"
343
+ // - OpenCode MCP tools pass prefixed: "mcp_bash", "mcp_read", "mcp_write", "mcp_edit"
344
+ const tool = input.tool.toLowerCase().replace(/^mcp_/, "");
342
345
  const args = output.args;
343
346
 
344
347
  const filePath = extractFilePath(args);