SET_WORKING_DIRECTORY_LABEL (constants/working-directory.constants.ts)

llama.cpp · tools/ui/src/lib/constants/working-directory.constants.ts · typescript · MIT
cli

Constants defining glob patterns and search parameters for a working-directory picker in a UI.

// Source: https://github.com/ggml-org/llama.cpp | License: MIT | Copyright 2023-2026 The ggml authors
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Constants for the working-directory picker's glob search.
 *
 * The picker glob-matches home-relative names client-side. Character classes
 * are built case-insensitively and the reserved glob metacharacters are
 * escaped (passed through literally) so a query never changes matching.
 */

/** Label shown for the working-directory picker / `/cwd` slash command. */
export const SET_WORKING_DIRECTORY_LABEL = 'Set working directory';

export const GLOB = {
	/** `C:`, the drive part of a Windows absolute path. */
	DRIVE_PREFIX_REGEX: /^[A-Za-z]:/,
	/** `C:` or `C:/`, the root of a Windows drive-absolute path. */
	DRIVE_ROO

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key