Files
My-Brain-Is-Full-Crew/adapters/gemini-cli/templates/gemini-hook-wrapper.sh.tmpl
nunziati f76fcca42a Add gemini-cli adapter
Co-Authored-By: win0na <winnie@winneon.moe>

build(gemini-cli): adapter skeleton with capability/event/model tables

build(gemini-cli): adapter_translate_dispatcher (DISPATCHER.md → GEMINI.md)

build(gemini-cli): adapter_translate_references and adapter_translate_skills

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

build(gemini-cli): adapter_translate_agents with capability→tools mapping

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

build(gemini-cli): adapter_translate_hooks with wrapper scripts

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

feat(install): add gemini-cli platform to launchme.sh and updateme.sh

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 17:11:37 +02:00

23 lines
796 B
Bash
Executable File

#!/usr/bin/env bash
# =============================================================================
# Generated by adapters/gemini-cli/adapter.sh — do not edit.
# Wrapper for hook: __HOOK_NAME__
# Reads Gemini CLI native JSON from stdin, translates it into the neutral
# schema, and pipes the result to __HOOK_NAME__.sh.
# =============================================================================
set -eo pipefail
INPUT=$(cat)
HOOK_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
NEUTRAL=$(echo "$INPUT" | jq -c '{
event: "__EVENT_NAME__",
tool: (.tool_name // ""),
args: (.tool_input // {}),
session_id: (env.GEMINI_SESSION_ID // ""),
cwd: (env.GEMINI_CWD // env.GEMINI_PROJECT_DIR // ""),
framework: "gemini-cli"
}')
echo "$NEUTRAL" | bash "$HOOK_DIR/__HOOK_NAME__.sh"