mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 06:50:53 +00:00
fix: remove agent_platform from DEFAULT_CONFIG, use paperforge.json in update
This commit is contained in:
parent
f885adae48
commit
38550a9d5a
2 changed files with 4 additions and 2 deletions
|
|
@ -55,7 +55,6 @@ DEFAULT_CONFIG: dict[str, str] = {
|
|||
"base_dir": "Bases",
|
||||
"skill_dir": ".opencode/skills",
|
||||
"command_dir": ".opencode/command",
|
||||
"agent_platform": "opencode",
|
||||
}
|
||||
|
||||
# Environment variable name map — maps config key to PAPERFORGE_* env var
|
||||
|
|
|
|||
|
|
@ -269,9 +269,12 @@ def _deploy_all_skills(vault: Path) -> None:
|
|||
from paperforge.config import load_vault_config
|
||||
|
||||
config = load_vault_config(vault)
|
||||
# Agent platform is a user preference, not a system default.
|
||||
# Fall back to opencode if not configured.
|
||||
agent_key = config.get("agent_platform") or "opencode"
|
||||
result = deploy_skills(
|
||||
vault=vault,
|
||||
agent_key=config.get("agent_platform", "opencode"),
|
||||
agent_key=agent_key,
|
||||
system_dir=config.get("system_dir", "System"),
|
||||
resources_dir=config.get("resources_dir", "Resources"),
|
||||
literature_dir=config.get("literature_dir", "Literature"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue