refactor(core): select system prompts through plugins (#37181)

This commit is contained in:
Aiden Cline 2026-07-15 18:21:32 -05:00 committed by GitHub
commit 720f062cd0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 447 additions and 263 deletions

View file

@ -12,6 +12,9 @@ export interface AgentDraft {
}
export interface AgentDomain extends AgentApi<unknown> {
readonly get: (id: string) => Effect.Effect<AgentGetOutput | undefined>
readonly transform: Transform<AgentDraft>
readonly reload: () => Effect.Effect<void>
}
type AgentGetOutput = Effect.Success<ReturnType<AgentApi<unknown>["list"]>>["data"][number]

View file

@ -27,6 +27,11 @@ export interface CatalogDraft {
}
export interface CatalogDomain extends CatalogApi<unknown> {
readonly model: CatalogApi<unknown>["model"] & {
readonly get: (providerID: string, modelID: string) => Effect.Effect<ModelGetOutput | undefined>
}
readonly transform: Transform<CatalogDraft>
readonly reload: () => Effect.Effect<void>
}
type ModelGetOutput = Effect.Success<ReturnType<CatalogApi<unknown>["model"]["list"]>>["data"][number]