UNPKG

@code-yeongyu/senpi

Version:

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

24 lines • 1.77 kB
/** * Field classification for the provider surface (custody design 5, row CK5). * * Every field a user can author in models.json, auth.json and the credential pool has exactly one * class: "public" travels as plain config inside the encrypted account config; "sealed" is a secret * value sealed per field and opened only for the request that uses it; "device-only" never leaves * the owner device; "endpoint" is a URL split by `splitEndpoint`. A field with no entry here has no * class, and the classification tests fail on it, so a new field cannot reach the brain unreviewed. */ /** "forces-device": a value present moves the whole provider to device custody (no sealed field kind exists for it). */ export type FieldClass = "public" | "sealed" | "device-only" | "endpoint" | "forces-device"; export type Custody = "sealed" | "device"; export type ProviderCapability = "cloud" | "local-only" | "ambient-credential" | "callback-stream"; /** models.json, keyed by schema path: `.` nests, `[]` is an array item, `.{key}` a record key, `.*` a record value. */ export declare function modelsJsonFieldClasses(): Readonly<Record<string, FieldClass>>; /** Fields the runtime types add on top of the models.json schema (`model-config.ts`). */ export declare const MODELS_JSON_TYPE_ONLY_FIELDS: { readonly "providers.*.models[].samplingParams.{key}": "public"; readonly "providers.*.models[].samplingParams.*": "forces-device"; readonly "providers.*.modelOverrides.*.samplingParams.{key}": "public"; readonly "providers.*.modelOverrides.*.samplingParams.*": "forces-device"; }; export declare function classifyModelsJsonField(path: string, classes?: Readonly<Record<string, FieldClass>>): FieldClass | undefined; //# sourceMappingURL=classify.d.ts.map