version: "3"
internal: true

tasks:
  update:
    desc: "Update C# dependencies within major versions (dotnet outdated -u --version-lock Minor)"
    silent: false
    cmds:
      - cmd: |
          cd packages/csharp && dotnet outdated -u --version-lock Minor
        ignore_error: false

  upgrade:
    desc: "Upgrade C# dependencies to latest including breaking changes (dotnet outdated -u)"
    silent: false
    cmds:
      - cmd: |
          command -v dotnet >/dev/null 2>&1 || { echo "Dotnet not found, skipping C# upgrade"; exit 0; }
          cd packages/csharp/Kreuzberg && dotnet outdated -u
        ignore_error: false
