schema_version: "1.0"

extension:
  id: agent-context
  name: "Coding Agent Context"
  version: "1.0.0"
  description: "Manages coding agent context/instruction files (e.g., CLAUDE.md, copilot-instructions.md) with project-specific plan references and configurable markers"
  author: aw-spec-core
  repository: https://github.com/github/aw-spec
  license: MIT

requires:
  aw-spec_version: ">=0.2.0"

provides:
  commands:
    - name: aw-spec.agent-context.update
      file: commands/aw-spec.agent-context.update.md
      description: "Refresh the managed AW-Spec section in the coding agent context file"

# NO auto-wired hooks — this extension is ON-DEMAND only
# (/aw-spec.agent-context.update). It previously declared after_specify + after_plan,
# and installing it re-wrote both into .appweaver/extensions.yml. Both were stale:
#   • after_plan   — no workflow dispatches that phase; the plan/tasks tier was
#                    retired by the spec-anchored redesign.
#   • after_specify — the updater targets `specs/*/plan.md`, which nothing produces,
#                    so every specify (greenfield forward loop AND brownfield CR
#                    loop, which both enter at specify) offered a hook that could
#                    not do its job.
# Restore a hook here once the updater is retargeted at spec.md / design.md — that
# retarget is the open work, not the hook wiring.
hooks: {}

tags:
  - "agent"
  - "context"
  - "core"
