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:
- 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
- tag: tag_resolve
run: value
expect: string
action: '{tag_validate|resolve}'
- tag: tag_ast
run: value
expect: list
action: '{tag_resolve|scan|ast}'
- tag: tag_json
run: value
expect: string
action: '{tag_ast|trim|format:json}'
- 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"