fix(setup): use AGENT_CONFIGS import to match master skill_deploy.py API

fix/setup branched from master where skill_deploy still exports

AGENT_CONFIGS (not AGENT_SKILL_DIRS which was renamed later).
This commit is contained in:
Research Assistant 2026-05-10 23:54:33 +08:00
parent 7fedced9f6
commit 20f9ea396e

View file

@ -38,7 +38,7 @@ else:
# Agent Platform Configurations
# =============================================================================
from paperforge.services.skill_deploy import AGENT_SKILL_DIRS
from paperforge.services.skill_deploy import AGENT_CONFIGS
AGENT_NAMES = {
"opencode": "OpenCode",
@ -464,7 +464,7 @@ def headless_setup(
return 1
# Agent config
skill_dir = AGENT_SKILL_DIRS.get(agent_key)
skill_dir = AGENT_CONFIGS.get(agent_key, {}).get("skill_dir")
if not skill_dir:
print(f"Error: unknown agent platform '{agent_key}'", file=sys.stderr)
return 1