refactor: add primitives, plan mode display, and new session model selector

This commit is contained in:
simosmik
2026-04-20 12:47:55 +00:00
parent 25b00b58de
commit 7763e60fb3
26 changed files with 1616 additions and 265 deletions

View File

@@ -0,0 +1,19 @@
import { createContext, useContext } from 'react';
import type { PendingPermissionRequest } from '../components/chat/types/types';
export interface PermissionContextValue {
pendingPermissionRequests: PendingPermissionRequest[];
handlePermissionDecision: (
requestIds: string | string[],
decision: { allow?: boolean; message?: string; rememberEntry?: string | null; updatedInput?: unknown },
) => void;
}
const PermissionContext = createContext<PermissionContextValue | null>(null);
export function usePermission(): PermissionContextValue | null {
return useContext(PermissionContext);
}
export default PermissionContext;