# Gitea Integration Module
#
# Main module for Gitea integration
#
# Version: 1.0.0

# gitea/ subsystem facade — selective re-exports (ADR-025 Phase 3 Layer 3).

export use api_client.nu [
    close-issue create-branch create-issue create-organization create-release
    create-repository create-tag delete-release delete-repository get-api-url
    get-branch get-current-user get-gitea-config get-gitea-token get-issue
    get-organization get-release-by-tag get-repository gitea-api-call
    list-branches list-issues list-organizations list-releases list-repositories
    list-tags list-user-repositories upload-release-asset validate-token
]
export use service.nu [
    check-gitea-health get-gitea-logs get-gitea-status install-gitea
    restart-gitea start-gitea start-gitea-binary start-gitea-docker
    stop-gitea stop-gitea-docker
]
export use workspace_git.nu [
    clone-workspace create-workspace-branch create-workspace-repo
    delete-workspace-branch get-workspace-diff get-workspace-git-status
    get-workspace-remote-info has-uncommitted-changes init-workspace-git
    list-workspace-branches list-workspace-stashes pop-workspace-stash
    pull-workspace push-workspace stash-workspace-changes
    switch-workspace-branch sync-workspace
]
export use locking.nu [
    acquire-workspace-lock cleanup-expired-locks force-release-lock
    get-lock-info is-workspace-locked list-all-locks list-workspace-locks
    release-workspace-lock with-workspace-lock
]
export use extension_publish.nu [
    download-gitea-extension get-gitea-extension-metadata
    get-latest-extension-version list-gitea-extensions
    publish-extension-to-gitea publish-extensions-batch
]
export use commands.nu [
    "gitea auth validate" "gitea extension download" "gitea extension info"
    "gitea extension list" "gitea extension publish" "gitea help"
    "gitea install" "gitea lock acquire" "gitea lock cleanup"
    "gitea lock force-release" "gitea lock info" "gitea lock list"
    "gitea lock release" "gitea logs" "gitea org create" "gitea org list"
    "gitea repo create" "gitea repo delete" "gitea repo list"
    "gitea restart" "gitea start" "gitea status" "gitea stop" "gitea user"
]
