import type { SettingsScope } from '@khorsheed/dsh-local-agent/src/client/settings-scope.ts'; import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'; import type { LocalAgentModelDirectory, LocalAgentEndpointAuthFields, LocalAgentEndpointAuthState } from '@khorsheed/dsh-local-agent/types'; import { type ProviderAuthBlockProps, type ProviderAuthInjected } from '@khorsheed/dsh-local-agent/src/client/ProviderAuthBlock.tsx'; import { NS } from './locales.ts'; /** The `local-agent-claude-code` settings namespace section the card edits. */ export interface ClaudeLiveSettings { /** Resident (live) mode: one resident stream-json process per member. */ live?: boolean; /** Live mirror granularity: folded events or per-chunk streaming. */ liveMirrorGranularity?: 'event' | 'token'; /** * The model every delegation round starts the CLI with. Absent (the field * cleared) means the plugin passes no model at all — the scoped `settings.json`'s own `model` decides, * exactly as before the key existed. */ model?: string; /** Model identifiers saved before; the input's suggestions, capped at five. */ recentModels?: readonly string[]; } /** Injected face of the claude-code settings card. */ export interface ClaudeCodeSettingsCardInjected { /** Bound settings scope for the local-agent-claude-code namespace. */ scope: SettingsScope; /** The auth block's query/command faces, backed by the family core Remote. */ auth: ProviderAuthInjected; /** Translate bound to the family core's `local-agent` namespace (the auth block's copy lives there). */ authT: ProviderAuthBlockProps['t']; /** * The harness's curated model list (the family gateway's * `modelList`/`configureModelList` Remotes): the editor's ordered * shortlist — its first entry is the default model. Absent on a core that * predates the Remotes — the card then hides the editor. */ modelList?: { read(): Promise; write(models: readonly string[]): Promise; }; /** * The endpoint's served model catalog (the family gateway's * `modelDirectory` Remote): the add dialog's candidate vocabulary. Absent * on a core that predates the Remote — the dialog then shows its reason. */ modelDirectory?: (refresh?: boolean) => Promise; /** * The harness's endpoint verification (the family gateway's `checkEndpoint` * Remote): a token-free probe of the SAVED endpoint, answered as verdict * text. Absent on a core that predates the Remote — the card then hides * the verify button. */ checkEndpoint?: () => Promise; /** * The harness's endpoint credential face (the family gateway's * `endpointAuth`/`configureEndpoint` Remotes): the card's credential form * reads and writes the harness's OWN credential store through it — never * the settings scope, so no key ever lands in the profile patch document. * Absent on a core that predates the Remotes — the card then hides the * form. `write` answers the post-write resolved state. */ endpointAuth?: { read(): Promise; write(fields: LocalAgentEndpointAuthFields): Promise; }; hooks: { /** The same scope as a hooks source, so the card reacts to external writes. */ settings: SettingsScope; }; } /** Full props of the plugins.item entry (owner prop `view`). */ export type ClaudeCodeBundleConfigProps = PropsRuntime<'plugins.item'> & InjectFace & PropsLocale; /** * Full props of the harness's section inside the core's「本机 Agent 委派」 * family card: the same inject face minus the slot-owner share, plus the one * global seat the body consumes, forwarded by the family card (the section * render bypasses the slot runtime, so its remaining standard seats are not * fabricable here and are deliberately absent). */ export type ClaudeCodeCardSectionProps = InjectFace & PropsLocale & { /** Whether the section is currently expanded (the family card mounts the body only while it is). */ readonly active: boolean; /** The standing root-scope global seat (ui-session's merge), forwarded by the family card. */ readonly useSessions: ProviderAuthBlockProps['useSessions']; }; /** * The provider's card on the Plugins page (the `plugins.item` entry * client/index.ts registers while the Host serves the namespace AND the core * predates the family card): the page * draws the title, the icon, and the crumb itself, so the entry renders the * one-liner for the `summary` view and the bare form — with its own save * control — for `page`. * @param props - the owner view, the injected scope/auth faces, and copy. * @returns the entry. */ export declare function ClaudeCodeBundleConfig({ view, useSettings, scope, auth, authT, modelList, modelDirectory, checkEndpoint, endpointAuth, useSessions, t }: ClaudeCodeBundleConfigProps): import("react").JSX.Element; /** * The harness's section inside the core's「本机 Agent 委派」family card: the * same useCardState + CardBody the plugins.item page view renders — the * collapsible chrome belongs to the family card now. * @param props - the injected scope/auth faces, the forwarded session seat, and copy. * @returns the section body. */ export declare function ClaudeCodeCardSection({ active, useSettings, scope, auth, authT, modelList, modelDirectory, checkEndpoint, endpointAuth, useSessions, t }: ClaudeCodeCardSectionProps): import("react").JSX.Element; //# sourceMappingURL=SettingsCard.d.ts.map