@hasna/projects
Version:
High-level project management CLI, MCP server, SDK, and AI SDK agent loop for coding agents
20 lines • 679 B
TypeScript
/** @jsxImportSource @opentui/solid */
import { type Accessor, type ParentProps } from "solid-js";
export interface ProjectsCommand {
id: string;
title: string;
category: string;
detail?: string;
hidden?: boolean;
enabled?: () => boolean;
run: () => void | Promise<void>;
}
type CommandContextValue = {
commands: Accessor<ProjectsCommand[]>;
visibleCommands: Accessor<ProjectsCommand[]>;
runCommand: (id: string) => Promise<boolean>;
};
export declare function CommandProvider(props: ParentProps): import("solid-js").JSX.Element;
export declare function useCommands(): CommandContextValue;
export {};
//# sourceMappingURL=commands.d.ts.map