Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1import { type WritableBoxedValues, type ReadableBoxedValues } from "svelte-toolbelt";2import type { CommandState } from "./types.js";3import type { BitsKeyboardEvent, BitsMouseEvent, BitsPointerEvent, RefAttachment, WithRefOpts } from "../../internal/types.js";4interface GridItem {5 index: number;6 firstRowOfGroup: boolean;7 ref: HTMLElement;8}9type ItemsGrid = GridItem[][];10interface CommandRootStateOpts extends WithRefOpts, ReadableBoxedValues<{11 filter: (value: string, search: string, keywords?: string[]) => number;12 shouldFilter: boolean;13 loop: boolean;14 vimBindings: boolean;15 columns: number | null;16 disablePointerSelection: boolean;17 disableInitialScroll: boolean;18 onStateChange?: (state: Readonly<CommandState>) => void;19}>, WritableBoxedValues<{20 value: string;21}> {22}23export declare class CommandRootState {24 #private;25 static create(opts: CommandRootStateOpts): CommandRootState;26 readonly opts: CommandRootStateOpts;27 readonly attachment: RefAttachment;28 sortAfterTick: boolean;29 sortAndFilterAfterTick: boolean;30 allItems: Set<string>;31 allGroups: Map<string, Set<string>>;32 allIds: Map<string, {33 value: string;34 keywords?: string[];35 }>;36 key: number;37 viewportNode: HTMLElement | null;38 inputNode: HTMLElement | null;39 labelNode: HTMLElement | null;40 commandState: CommandState;41 _commandState: CommandState;42 setState<K extends keyof CommandState>(key: K, value: CommandState[K], preventScroll?: boolean): void;43 constructor(opts: CommandRootStateOpts);44 /**45 * Sets current value and triggers re-render if cleared.46 *47 * @param value - New value to set48 */49 setValue(value: string, opts?: boolean): void;50 /**51 * Gets all non-disabled, visible command items.52 *53 * @returns Array of valid item elements54 * @remarks Exposed for direct item access and bound checking55 */56 getValidItems(): HTMLElement[];57 /**58 * Gets all visible command items.59 *60 * @returns Array of valid item elements61 * @remarks Exposed for direct item access and bound checking62 */63 getVisibleItems(): HTMLElement[];64 /** Returns all visible items in a matrix structure65 *66 * @remarks Returns empty if the command isn't configured as a grid67 *68 * @returns69 */70 get itemsGrid(): ItemsGrid;71 /**72 * Sets selection to item at specified index in valid items array.73 * If index is out of bounds, does nothing.74 *75 * @param index - Zero-based index of item to select76 * @remarks77 * Uses `getValidItems()` to get selectable items, filtering out disabled/hidden ones.78 * Access valid items directly via `getValidItems()` to check bounds before calling.79 *80 * @example81 * // get valid items length for bounds check82 * const items = getValidItems()83 * if (index < items.length) {84 * updateSelectedToIndex(index)85 * }86 */87 updateSelectedToIndex(index: number): void;88 /**89 * Updates selected item by moving up/down relative to current selection.90 * Handles wrapping when loop option is enabled.91 *92 * @param change - Direction to move: 1 for next item, -1 for previous item93 * @remarks94 * The loop behavior wraps:95 * - From last item to first when moving next96 * - From first item to last when moving previous97 *98 * Uses `getValidItems()` to get all selectable items, which filters out disabled/hidden items.99 * You can call `getValidItems()` directly to get the current valid items array.100 *101 * @example102 * // select next item103 * updateSelectedByItem(1)104 *105 * // get all valid items106 * const items = getValidItems()107 */108 updateSelectedByItem(change: number): void;109 /**110 * Moves selection to the first valid item in the next/previous group.111 * If no group is found, falls back to selecting the next/previous item globally.112 *113 * @param change - Direction to move: 1 for next group, -1 for previous group114 * @example115 * // move to first item in next group116 * updateSelectedByGroup(1)117 *118 * // move to first item in previous group119 * updateSelectedByGroup(-1)120 */121 updateSelectedByGroup(change: 1 | -1): void;122 /**123 * Maps item id to display value and search keywords.124 * Returns cleanup function to remove mapping.125 *126 * @param id - Unique item identifier127 * @param value - Display text128 * @param keywords - Optional search boost terms129 * @returns Cleanup function130 */131 registerValue(value: string, keywords?: string[]): () => void;132 /**133 * Registers item in command list and its group.134 * Handles filtering, sorting and selection updates.135 *136 * @param id - Item identifier137 * @param groupId - Optional group to add item to138 * @returns Cleanup function that handles selection139 */140 registerItem(id: string, groupId: string | undefined): () => void;141 /**142 * Creates empty group if not exists.143 *144 * @param id - Group identifier145 * @returns Cleanup function146 */147 registerGroup(id: string): () => void;148 get isGrid(): boolean;149 onkeydown(e: BitsKeyboardEvent): void;150 props: {151 readonly id: string;152 readonly role: "application";153 readonly tabindex: -1;154 readonly onkeydown: (e: BitsKeyboardEvent) => void;155 };156}157interface CommandEmptyStateOpts extends WithRefOpts, ReadableBoxedValues<{158 forceMount: boolean;159}> {160}161export declare class CommandEmptyState {162 #private;163 static create(opts: CommandEmptyStateOpts): CommandEmptyState;164 readonly opts: CommandEmptyStateOpts;165 readonly root: CommandRootState;166 readonly attachment: RefAttachment;167 readonly shouldRender: boolean;168 constructor(opts: CommandEmptyStateOpts, root: CommandRootState);169 readonly props: {170 readonly id: string;171 readonly role: "presentation";172 };173}174interface CommandGroupContainerStateOpts extends WithRefOpts, ReadableBoxedValues<{175 value: string;176 forceMount: boolean;177}> {178}179export declare class CommandGroupContainerState {180 static create(opts: CommandGroupContainerStateOpts): CommandGroupContainerState;181 readonly opts: CommandGroupContainerStateOpts;182 readonly root: CommandRootState;183 readonly attachment: RefAttachment;184 readonly shouldRender: boolean;185 headingNode: HTMLElement | null;186 trueValue: string;187 constructor(opts: CommandGroupContainerStateOpts, root: CommandRootState);188 readonly props: {189 readonly id: string;190 readonly role: "presentation";191 readonly hidden: true | undefined;192 readonly "data-value": string;193 };194}195interface CommandGroupHeadingStateOpts extends WithRefOpts {196}197export declare class CommandGroupHeadingState {198 static create(opts: CommandGroupHeadingStateOpts): CommandGroupHeadingState;199 readonly opts: CommandGroupHeadingStateOpts;200 readonly group: CommandGroupContainerState;201 readonly attachment: RefAttachment;202 constructor(opts: CommandGroupHeadingStateOpts, group: CommandGroupContainerState);203 readonly props: {204 readonly id: string;205 };206}207interface CommandGroupItemsStateOpts extends WithRefOpts {208}209export declare class CommandGroupItemsState {210 static create(opts: CommandGroupItemsStateOpts): CommandGroupItemsState;211 readonly opts: CommandGroupItemsStateOpts;212 readonly group: CommandGroupContainerState;213 readonly attachment: RefAttachment;214 constructor(opts: CommandGroupItemsStateOpts, group: CommandGroupContainerState);215 readonly props: {216 readonly id: string;217 readonly role: "group";218 readonly "aria-labelledby": string | undefined;219 };220}221interface CommandInputStateOpts extends WithRefOpts, WritableBoxedValues<{222 value: string;223}>, ReadableBoxedValues<{224 autofocus: boolean;225}> {226}227export declare class CommandInputState {228 #private;229 static create(opts: CommandInputStateOpts): CommandInputState;230 readonly opts: CommandInputStateOpts;231 readonly root: CommandRootState;232 readonly attachment: RefAttachment;233 constructor(opts: CommandInputStateOpts, root: CommandRootState);234 readonly props: {235 readonly id: string;236 readonly type: "text";237 readonly autocomplete: "off";238 readonly autocorrect: "off";239 readonly spellcheck: false;240 readonly "aria-autocomplete": "list";241 readonly role: "combobox";242 readonly "aria-expanded": "true" | "false";243 readonly "aria-controls": string | undefined;244 readonly "aria-labelledby": string | undefined;245 readonly "aria-activedescendant": string | undefined;246 };247}248interface CommandItemStateOpts extends WithRefOpts, ReadableBoxedValues<{249 value: string;250 disabled: boolean;251 onSelect: () => void;252 forceMount: boolean;253 keywords: string[];254}> {255 group: CommandGroupContainerState | null;256}257export declare class CommandItemState {258 #private;259 static create(opts: Omit<CommandItemStateOpts, "group">): CommandItemState;260 readonly opts: CommandItemStateOpts;261 readonly root: CommandRootState;262 readonly attachment: RefAttachment;263 readonly shouldRender: boolean;264 readonly isSelected: boolean;265 trueValue: string;266 constructor(opts: CommandItemStateOpts, root: CommandRootState);267 onpointermove(_: BitsPointerEvent): void;268 onclick(_: BitsMouseEvent): void;269 readonly props: {270 readonly id: string;271 readonly "aria-disabled": "true" | "false";272 readonly "aria-selected": "true" | "false";273 readonly "data-disabled": "" | undefined;274 readonly "data-selected": "" | undefined;275 readonly "data-value": string;276 readonly "data-group": string | undefined;277 readonly role: "option";278 readonly onpointermove: (_: BitsPointerEvent) => void;279 readonly onclick: (_: BitsMouseEvent) => void;280 };281}282interface CommandLoadingStateOpts extends WithRefOpts, ReadableBoxedValues<{283 progress: number;284}> {285}286export declare class CommandLoadingState {287 static create(opts: CommandLoadingStateOpts): CommandLoadingState;288 readonly opts: CommandLoadingStateOpts;289 readonly attachment: RefAttachment;290 constructor(opts: CommandLoadingStateOpts);291 readonly props: {292 readonly id: string;293 readonly role: "progressbar";294 readonly "aria-valuenow": number;295 readonly "aria-valuemin": 0;296 readonly "aria-valuemax": 100;297 readonly "aria-label": "Loading...";298 };299}300interface CommandSeparatorStateOpts extends WithRefOpts, ReadableBoxedValues<{301 forceMount: boolean;302}> {303}304export declare class CommandSeparatorState {305 static create(opts: CommandSeparatorStateOpts): CommandSeparatorState;306 readonly opts: CommandSeparatorStateOpts;307 readonly root: CommandRootState;308 readonly attachment: RefAttachment;309 readonly shouldRender: boolean;310 constructor(opts: CommandSeparatorStateOpts, root: CommandRootState);311 readonly props: {312 readonly id: string;313 readonly "aria-hidden": "true";314 };315}316interface CommandListStateOpts extends WithRefOpts, ReadableBoxedValues<{317 ariaLabel: string;318}> {319}320export declare class CommandListState {321 static create(opts: CommandListStateOpts): CommandListState;322 readonly opts: CommandListStateOpts;323 readonly root: CommandRootState;324 readonly attachment: RefAttachment;325 constructor(opts: CommandListStateOpts, root: CommandRootState);326 readonly props: {327 readonly id: string;328 readonly role: "listbox";329 readonly "aria-label": string;330 };331}332interface CommandLabelStateOpts extends WithRefOpts, ReadableBoxedValues<{333 for?: string;334}> {335}336export declare class CommandLabelState {337 static create(opts: CommandLabelStateOpts): CommandLabelState;338 readonly opts: CommandLabelStateOpts;339 readonly root: CommandRootState;340 readonly attachment: RefAttachment;341 constructor(opts: CommandLabelStateOpts, root: CommandRootState);342 readonly props: {343 readonly id: string;344 readonly for: string | undefined;345 readonly style: import("svelte-toolbelt").StyleProperties;346 };347}348interface CommandViewportStateOpts extends WithRefOpts {349}350export declare class CommandViewportState {351 static create(opts: CommandViewportStateOpts): CommandViewportState;352 readonly opts: CommandViewportStateOpts;353 readonly list: CommandListState;354 readonly attachment: RefAttachment;355 constructor(opts: CommandViewportStateOpts, list: CommandListState);356 readonly props: {357 readonly id: string;358 };359}360export {};361 