vibe-action 0.0.4

Command router — execute shell commands and LLM prompts via simple YAML actions.
name: translate-fast
about: Translate text or files to another language
clipboard: true
notify: true
args:
  - name: text
    short: 't'
    expect: string
    default: '{system_clipboard}'
    help: Text to translate
  - name: file
    short: 'f'
    expect: string
    default: ''
    help: File to translate
  - name: to
    short: 'l'
    expect: string
    help: Target language (e.g., Russian, English, Chinese)
    default: Russian
actions:
  # Read input from file or text argument
  - tag: tag_content
    run: cmd
    expect: string
    check: .+
    action:
      - when: '{file|empty}'
        then: echo "{text}"
      - when: '{file|empty:not}'
        then: cat "{file|resolve}"
  # LLM translates text, preserving code and proper names
  - tag: tag_translated
    run: llm_small
    expect: string
    action: |
      [Task]
      Translate the entire [Text] to the language specified in [User].
      Do not translate proper names, code, or comments inside code blocks.
      Reply with the full translated text.

      [User]
      {to}

      [Text]
      {tag_content}