feat(agents): add file:// URI support in prompt_append configuration

Port devxoul's PR #821 feature to current codebase structure.
Supports absolute, relative, ~/home paths with percent-encoding.
Gracefully handles malformed URIs and missing files with warnings.

Co-authored-by: devxoul <devxoul@gmail.com>
This commit is contained in:
YeonGyu-Kim
2026-02-13 11:25:40 +09:00
parent ad468ec93f
commit 60b4d20fd8
12 changed files with 166 additions and 12 deletions
+3 -1
View File
@@ -16,6 +16,7 @@ export function maybeCreateAtlasConfig(input: {
availableAgents: AvailableAgent[]
availableSkills: AvailableSkill[]
mergedCategories: Record<string, CategoryConfig>
directory?: string
userCategories?: CategoriesConfig
useTaskSystem?: boolean
}): AgentConfig | undefined {
@@ -28,6 +29,7 @@ export function maybeCreateAtlasConfig(input: {
availableAgents,
availableSkills,
mergedCategories,
directory,
userCategories,
} = input
@@ -58,7 +60,7 @@ export function maybeCreateAtlasConfig(input: {
orchestratorConfig = { ...orchestratorConfig, variant: atlasResolvedVariant }
}
orchestratorConfig = applyOverrides(orchestratorConfig, orchestratorOverride, mergedCategories)
orchestratorConfig = applyOverrides(orchestratorConfig, orchestratorOverride, mergedCategories, directory)
return orchestratorConfig
}