Class DeclarativeHookExecutor

java.lang.Object
com.tnsai.server.hooks.DeclarativeHookExecutor
All Implemented Interfaces:
HookExecutor

public final class DeclarativeHookExecutor extends Object implements HookExecutor
Executes hook actions (shell commands, log messages).

All execution is best-effort: failures are logged but never propagate to the agent or tool execution pipeline.

  • Constructor Details

    • DeclarativeHookExecutor

      public DeclarativeHookExecutor()
  • Method Details

    • execute

      public void execute(HookAction action, Map<String,String> context)
      Execute a hook action with the given context variables.
      Specified by:
      execute in interface HookExecutor
      Parameters:
      action - the action to execute
      context - variable substitutions (e.g. "tool" -> tool name, "event" -> event name)