Extract memind_adm admin server, add local dev tooling, and remove image-generation.
Split platform admin and ops APIs into standalone admin-server.mjs with network guards; simplify billing to RMB token pricing, refactor user auth, and add rsync deploy plus local-test scripts and docs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
import { createContext, useContext, type ReactNode } from 'react';
|
||||
import type { CapabilityMap } from '../types';
|
||||
|
||||
type AppSessionContextValue = {
|
||||
capabilities?: CapabilityMap;
|
||||
grantedSkills?: string[];
|
||||
};
|
||||
|
||||
const AppSessionContext = createContext<AppSessionContextValue>({});
|
||||
|
||||
export function AppSessionProvider({
|
||||
capabilities,
|
||||
grantedSkills,
|
||||
children,
|
||||
}: {
|
||||
capabilities?: CapabilityMap;
|
||||
grantedSkills?: string[];
|
||||
children: ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<AppSessionContext.Provider value={{ capabilities, grantedSkills }}>
|
||||
{children}
|
||||
</AppSessionContext.Provider>
|
||||
);
|
||||
}
|
||||
|
||||
export function useAppSession() {
|
||||
return useContext(AppSessionContext);
|
||||
}
|
||||
Reference in New Issue
Block a user