UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

26 lines • 1.25 kB
/** * Where a provider's definition comes from, so a client can say where to change or remove an entry * the app cannot delete itself (senpi#4328). * * - `builtin`: shipped with senpi; `modelsJsonPath`/`extensionPath` name an overlay when one exists. * - `extension`: registered by an extension (natively, or as a provider config with no builtin). * - `models_json`: defined only in models.json. */ export type ProviderOriginKind = "builtin" | "models_json" | "extension"; export interface ProviderOrigin { readonly kind: ProviderOriginKind; /** The models.json that defines or overrides the provider. */ readonly modelsJsonPath?: string; /** Filesystem path of the registering extension, omitted for synthetic identifiers. */ readonly extensionPath?: string; } export interface ProviderOriginFacts { readonly builtin: boolean; readonly nativeExtension: boolean; /** A provider-config registration or a virtual model from an extension. */ readonly extension: boolean; readonly extensionPath: string | undefined; readonly modelsJsonPath: string | undefined; } export declare function providerOriginOf(facts: ProviderOriginFacts): ProviderOrigin | undefined; //# sourceMappingURL=provider-origin.d.ts.map