refactor(config): adjust declared config location

This commit is contained in:
2026-04-09 17:28:23 +08:00
parent 291371f8da
commit d29dad4691
4 changed files with 4 additions and 6 deletions

View File

@@ -44,8 +44,7 @@ public class VectorClientRegistry implements Configurable, ConfigRegistration<Ve
@Override
public @NotNull Map<Path, ConfigRegistration<? extends Config>> declare() {
return Map.of(Path.of("vector", "config.json"), this);
return Map.of(Path.of("vector.json"), this);
}
}

View File

@@ -54,7 +54,7 @@ object ExecutionPolicyRegistry : Configurable, ConfigRegistration<ExecutionPolic
}
override fun declare(): Map<Path, ConfigRegistration<out Config>> {
return mapOf(Path.of("core", "action", "runner_policy.json") to this)
return mapOf(Path.of("action", "runner_policy.json") to this)
}
override fun type(): Class<ExecutionPolicy> {

View File

@@ -19,7 +19,7 @@ object AgentGatewayRegistry : Configurable, ConfigRegistration<AgentGatewayRegis
private val runningChannels = linkedMapOf<String, RunningGateway>()
override fun declare(): Map<Path, ConfigRegistration<out Config>> {
return mapOf(Path.of("gateway", "gateway.json") to this)
return mapOf(Path.of("gateway.json") to this)
}
override fun type(): Class<AgentGatewayRegistryConfig> = AgentGatewayRegistryConfig::class.java

View File

@@ -60,7 +60,7 @@ object ModelRuntimeRegistry : Configurable, ConfigRegistration<ModelRuntimeRegis
}
override fun declare(): Map<Path, ConfigRegistration<out Config>> {
return mapOf(Path.of("model", "model.json") to this)
return mapOf(Path.of("model.json") to this)
}
override fun type(): Class<ModelRuntimeRegistryConfig> = ModelRuntimeRegistryConfig::class.java
@@ -178,4 +178,3 @@ data class OpenAiCompatibleProviderConfig(
val baseUrl: String,
val apiKey: String
) : ProviderConfig()