mirror of
https://github.com/gnekt/My-Brain-Is-Full-Crew.git
synced 2026-09-09 07:16:28 +00:00
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>
23 lines
796 B
Bash
Executable File
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"
|