version: '3'

# tasks/umbrella.yml — umbrella issue tooling (#1152 / #2066).
#
# Hosts read-only surfaces for the canonical current-shape comment convention.
# Runs from the consumer project root so git origin and gh auth resolve against
# the operator's repo, not deftai/directive (#538 pattern).

vars:
  DEFT_ROOT: '{{joinPath .TASKFILE_DIR ".."}}'

tasks:

  current-shape:
    desc: "Fetch umbrella ## Current shape comment (#1152) — task umbrella:current-shape <N> [-- --repo OWNER/REPO | --json | --strict]. Does NOT read the issue body."
    dir: '{{.USER_WORKING_DIR}}'
    deps:
      - task: :engine:_ts-build
    cmds:
      - task: :engine:invoke
        vars:
          ENGINE_CMD: >-
            umbrella:current-shape --project-root "{{.USER_WORKING_DIR}}"
            {{.CLI_ARGS}}
