UNPKG

@code-yeongyu/senpi

Version:

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

36 lines • 1.59 kB
import { type Static, Type } from "typebox"; /** Policy defaults shared with the pool engine so schema and runtime cannot drift. */ export declare const CREDENTIAL_POLICY_DEFAULTS: { readonly rotation: true; readonly affinity: true; readonly cooldownBaseMs: 60000; readonly cooldownCapMs: number; }; /** * Policy only: named slots REFERENCE env vars or command values; key material * itself stays in auth.json or the environment, and unknown keys (for example * a literal `apiKey`) are rejected outright. */ export declare const CredentialPolicySchema: Type.TObject<{ rotation: Type.TOptional<Type.TBoolean>; affinity: Type.TOptional<Type.TBoolean>; accountStrategy: Type.TOptional<Type.TUnion<[Type.TLiteral<"cache-affine">, Type.TLiteral<"fill-first">, Type.TLiteral<"round-robin">]>>; cooldownBaseMs: Type.TOptional<Type.TNumber>; cooldownCapMs: Type.TOptional<Type.TNumber>; slots: Type.TOptional<Type.TRecord<"^.*$", Type.TObject<{ env: Type.TOptional<Type.TString>; value: Type.TOptional<Type.TUnion<[Type.TString, Type.TUnion<[Type.TObject<{ $file: Type.TString; }>, Type.TObject<{ $env: Type.TString; }>, Type.TObject<{ $concat: Type.TArray<Type.TUnion<[Type.TString, Type.TObject<{ $file: Type.TString; }>, Type.TObject<{ $env: Type.TString; }>]>>; }>]>]>>; }>>>; }>; export type ModelsJsonCredentialPolicy = Static<typeof CredentialPolicySchema>; //# sourceMappingURL=credential-policy-schema.d.ts.map