Skip to content

[BUG] #703

@kuisathaverat

Description

@kuisathaverat

Describe the bug

When an agent file has a : in any fiels like description or name the apm install fails with an error like the following:

-- Diagnostics --
  [x] 1 package failed:
    +- github/awesome-copilot/agents/swe-subagent.agent.md -- Failed to integrate primitives from cached package: Invalid YAML format in 
/private/tmp/test/apm_modules/github/awesome-copilot-swe-subagent/apm.yml: mapping values are not allowed here
  in "/private/tmp/test/apm_modules/github/awesome-copilot-swe-subagent/apm.yml", line 3, column 72

This is the definition that beraks apm install https://github.com/github/awesome-copilot/blob/main/agents/swe-subagent.agent.md?plain=1

To Reproduce
Steps to reproduce the behavior:

  1. run the following script
cd /temp
mkdir test
cd test
cat << EOF > apm.yml
name: AI Assets
version: 1.0.0
description: Test bug
type: hybrid
dependencies:
  apm:
    - github/awesome-copilot/agents/swe-subagent.agent.md#2f4953242f2fc5256c8b1416d0136cb73e68640e
  mcp: []
scripts: {}
EOF

apm install --target all
  1. See error
[>] Installing dependencies from apm.yml...
  [+] github.com/github/awesome-copilot/agents/swe-subagent.agent.md#2f4953242f2fc5256c8b1416d0136cb73e68640e #2f4953242f2fc5256c8b1416d0136cb73e68640e (cached)

[i] Added apm_modules/ to .gitignore

-- Diagnostics --
  [x] 1 package failed:
    +- github/awesome-copilot/agents/swe-subagent.agent.md -- Failed to integrate primitives from cached package: Invalid YAML format in 
/private/tmp/test/apm_modules/github/awesome-copilot-swe-subagent/apm.yml: mapping values are not allowed here
  in "/private/tmp/test/apm_modules/github/awesome-copilot-swe-subagent/apm.yml", line 3, column 72

[!] Installed 1 APM dependency with 1 error(s).

Expected behavior

The agent is installed without errors

Environment (please complete the following information):

  • OS: macOS
  • Python Version: 3.13.11
  • APM Version: 0.8.11

Logs

[>] Installing dependencies from apm.yml...
  [+] github.com/github/awesome-copilot/agents/swe-subagent.agent.md#2f4953242f2fc5256c8b1416d0136cb73e68640e #2f4953242f2fc5256c8b1416d0136cb73e68640e (cached)

[i] Added apm_modules/ to .gitignore

-- Diagnostics --
  [x] 1 package failed:
    +- github/awesome-copilot/agents/swe-subagent.agent.md -- Failed to integrate primitives from cached package: Invalid YAML format in 
/private/tmp/test/apm_modules/github/awesome-copilot-swe-subagent/apm.yml: mapping values are not allowed here
  in "/private/tmp/test/apm_modules/github/awesome-copilot-swe-subagent/apm.yml", line 3, column 72

[!] Installed 1 APM dependency with 1 error(s).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageNew issue, not yet reviewed by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions