# Taskfile.yml - Project task automation
# Generated by @northbridge-security/ai-toolkit
#
# This file references shared task definitions from the ai-toolkit npm package.
# Customize by adding project-specific tasks or overriding shared tasks.

version: '3'

# Path to ai-toolkit tasks in node_modules
vars:
  TASK_LIB: node_modules/@northbridge-security/ai-toolkit/tasks

# Include shared task libraries
includes:
  # Flatten common tasks (accessible as `task build`, `task lint`, etc.)
  # common:
  #   taskfile: '{{.TASK_LIB}}/{{PROJECT_TYPE}}.yml'
  #   flatten: true
  #   optional: true

  # Namespaced specialized tasks (accessible as `task git:hooks`, etc.)
  git:
    taskfile: '{{.TASK_LIB}}/git.yml'
    optional: true

  yaml:
    taskfile: '{{.TASK_LIB}}/yaml.yml'
    optional: true

  markdown:
    taskfile: '{{.TASK_LIB}}/markdown.yml'
    optional: true

  json:
    taskfile: '{{.TASK_LIB}}/json.yml'
    optional: true

  bash:
    taskfile: '{{.TASK_LIB}}/bash.yml'
    optional: true

  gotask:
    taskfile: '{{.TASK_LIB}}/gotask.yml'
    optional: true

  claude:
    taskfile: '{{.TASK_LIB}}/claude.yml'
    optional: true

  op:
    taskfile: '{{.TASK_LIB}}/onepassword.yml'
    aliases: [1p]
    optional: true

{{GXP_SECTION}}
# Project-specific tasks
tasks:
  default:
    desc: 'Show available tasks'
    aliases: [help, h]
    silent: true
    cmds:
      - |
        echo "Available Tasks"
        echo ""
        echo "Run 'task --list' to see all available tasks from ai-toolkit"
        echo "Run 'task NAMESPACE:COMMAND' to execute a specific task"
        echo ""
        echo "Example commands:"
        echo "  task git:hooks          # Install git hooks"
        echo "  task yaml:lint          # Lint YAML files"
        echo "  task markdown:lint      # Lint Markdown files"
        echo ""
        echo "Add your project-specific tasks to this Taskfile.yml"
