@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
32 lines • 1.7 kB
TypeScript
import { selectMcpGrant } from "../../../mcp-grant-presentations.ts";
import type { McpServerConfig, McpServerDeclaredConfig, ResolvedMcpServer } from "./config-schema.ts";
import { type GrantSnapshot } from "./env-grants-store.ts";
import type { McpSessionContext, McpSessionOptions } from "./service-types.ts";
import { type SkillServerRegistration } from "./skills.ts";
export interface ProjectMcpMaterialization {
readonly config: McpServerConfig;
readonly env: Record<string, string>;
readonly grantedNames: readonly string[];
}
export interface ProjectMcpAuthority {
readonly identity: string;
readonly storePath: string;
readonly policyDigest: string;
readonly provenanceDigest: string;
readonly initial: ProjectMcpMaterialization;
resolve(signal: AbortSignal, allowDecision?: boolean): Promise<ProjectMcpMaterialization>;
}
export declare const getProjectMcpAuthority: (config: McpServerConfig | McpServerDeclaredConfig) => ProjectMcpAuthority | undefined;
export declare function effectiveGrantNames(snapshot: GrantSnapshot, identity: string): readonly string[];
interface PolicyOwner {
readonly context: McpSessionContext;
readonly options: McpSessionOptions;
readonly ui: () => {
select: Parameters<typeof selectMcpGrant>[0];
notify?: (message: string, kind: "info" | "error") => void;
} | undefined;
readonly notice: (identity: string, names: readonly string[]) => void;
}
export declare function prepareProjectSkillServer(name: string, original: SkillServerRegistration, owner: PolicyOwner, existing?: ResolvedMcpServer): Promise<ResolvedMcpServer>;
export {};
//# sourceMappingURL=project-skill-policy.d.ts.map