mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 06:50:53 +00:00
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:
parent
7fedced9f6
commit
20f9ea396e
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue