gijl/lv-storage / llama.cpp /tools /ui /src /lib /constants /path-display.constants.ts
gijl's picture
download
raw
1.04 kB
/**
* Constants for synthetic working-directory messages.
*
* The synthetic cwd-change message is text the UI renders as a folder row
* and the model sees as a turn reminder. The prefix and cleared marker keep
* the human-readable wording; the file-link regexes parse the
* `[file:///abs/path](display)` payload back out on the UI side.
*/
import { UrlProtocol } from '$lib/enums';
export const CWD_CHANGED_PREFIX = 'Set working directory to ';
export const CWD_CLEARED_TEXT = 'Working directory cleared';
/** Trailing separator that marks a path as a directory. */
export const DIRECTORY_PATH_SUFFIX = '/';
export const HOME_TILDE = '~';
export const HOME_TILDE_PREFIX = '~/'; // tilde plus path separator
/** Scheme prefix of the file link embedded in a synthetic cwd message. */
export const FILE_URI_PREFIX = `${UrlProtocol.FILE}//`;
/** Matches the leading `[file:///abs/path](display)` link; not anchored to the end so trailing guidance may follow. */
export const CWD_LINK_REGEX = /^\[file:\/\/([\s\S]*?)\]\(([\s\S]*?)\)/;

Xet Storage Details

Size:
1.04 kB
·
Xet hash:
560ece44e2ce47e6bfea9696f5f2ced91d0c914550283cb929289789522d9168

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.