char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
e21152dc9
char/aliceai-t5-moe
1/** 2* Constants for synthetic working-directory messages. 3* 4* The synthetic cwd-change message is text the UI renders as a folder row 5* and the model sees as a turn reminder. The prefix and cleared marker keep 6* the human-readable wording; the file-link regexes parse the 7* `[file:///abs/path](display)` payload back out on the UI side. 8*/ 9 10import { UrlProtocol } from '$lib/enums' ; 11 12export const CWD_CHANGED_PREFIX = 'Set working directory to ' ; 13export const CWD_CLEARED_TEXT = 'Working directory cleared' ; 14 15/** Trailing separator that marks a path as a directory. */ 16export const DIRECTORY_PATH_SUFFIX = '/' ; 17 18export const HOME_TILDE = '~' ; 19export const HOME_TILDE_PREFIX = '~/' ; // tilde plus path separator 20 21/** Scheme prefix of the file link embedded in a synthetic cwd message. */ 22export const FILE_URI_PREFIX = ` ${ UrlProtocol . FILE } //` ; 23 24/** Matches the leading `[file:///abs/path](display)` link; not anchored to the end so trailing guidance may follow. */ 25export const CWD_LINK_REGEX = / ^\[file:\/\/([\s\S]*?)\]\(([\s\S]*?)\) / ;