Connect shared configuration to CLI and server startup

This commit is contained in:
2026-11-23 03:27:17 +00:00
parent 69ef533d7e
commit b6693fde73
11 changed files with 206 additions and 67 deletions

View File

@@ -44,16 +44,3 @@ func Load(options LoadOptions) (*configkit.Result[Document], *configkit.SecretsR
}
return result, report, nil
}
// Settings converts a validated document without another merge or normalization.
func Settings(document Document) AppSettings {
settings := AppSettings{
ServerAddr: document.Server.Addr,
ArtifactRoot: document.Server.ArtifactRoot,
MaxRequestBytes: document.Server.MaxRequestBytes,
MaxArtifactBytes: document.Server.MaxArtifactBytes,
MaxResponseBytes: document.Server.MaxResponseBytes,
TransientRetries: document.TransientRetries,
}
return settings
}

View File

@@ -1,13 +0,0 @@
package config
// AppSettings holds the validated application values used by executable adapters.
type AppSettings struct {
PromptKitConfiguration string
SchemaDir string
ServerAddr string
ArtifactRoot string
MaxRequestBytes int64
MaxArtifactBytes int64
MaxResponseBytes int64
TransientRetries *int
}