vibe-action 0.0.4

Command router — execute shell commands and LLM prompts via simple YAML actions.
name: regex
about: Generate a regular expression pattern based on your description
clipboard: true
args:
  - name: query
    short: 'q'
    expect: string
    help: What the regex should match (e.g., 'extract domain from email')
  - name: example
    short: 'e'
    expect: string
    help: Optional example string to test the pattern against
    default: ''
actions:
  # LLM generates regex pattern, optionally testing against example
  - tag: tag_regex
    run: llm_small
    expect: string
    action: |
      [Task]
      Generate a valid regular expression pattern based on the user's [Query].
      If an [Example] string is provided, ensure the generated regex matches it correctly.
      Output exactly 1 line.

      [Query]
      {query}

      [Example]
      {example}
  # Strip backticks if model wrapped output in them
  - tag: tag_value
    run: value
    expect: string
    action: '{tag_regex|trim:`}'