vibe-action 0.2.2

Command router — execute shell commands and LLM prompts via simple YAML actions.
version: 0.0.1

name: scan
about: Scan project codebase and export as structured JSON
notify: true

api:
  output: dialog
  input: query|project_path

actions:
  # Validate path is a directory
  - tag: tag_validate
    run: cmd
    expect: string
    action:
      - when: '{query|project_path|is_dir}'
        then: echo "{query|project_path}"
      - when: '{query|project_path|is_dir:not}'
        then: echo "'{query|project_path}' is not a directory" && exit 1

  # Resolve to absolute path
  - tag: tag_resolve
    run: value
    expect: string
    action: '{tag_validate|resolve}'

  # Scan project files and parse AST
  - tag: tag_ast
    run: value
    expect: list
    action: '{tag_resolve|scan|ast}'

  # Format as JSON array
  - tag: tag_json
    run: value
    expect: string
    action: '{tag_ast|trim|format:json}'

  # Save to file with timestamp
  - tag: tag_save
    run: cmd
    expect: string
    action: |
      printf '%s' '{tag_json|clipboard}' > {system_dir_download}/vibe-export-{system_pid}.json
      echo "Saved to {system_dir_download}/vibe-export-{system_pid}.json"