UNPKG

better-claude-code

Version:

CLI auxiliary tools for Claude Code

79 lines (72 loc) 3.02 kB
declare const APP_NAME = "Better Claude Code"; declare const APP_CLI_NAME = "bcc"; declare const APP_NPM_PACKAGE_NAME = "better-claude-code"; declare const APP_DESCRIPTION = "CLI auxiliary tools for Claude Code"; declare const FRONTEND_PORT = 5001; declare const BACKEND_PORT = 5000; declare const API_PREFIX = "/api"; declare const SWAGGER_UI_PATH = "/swagger"; declare const OPENAPI_SPEC_PATH = "/openapi.json"; declare const createLocalHostLink: (port: number, sufix?: string) => string; declare const MESSAGE_PATTERNS: { readonly FILE_OR_FOLDER_AT: RegExp; readonly FILE_OR_FOLDER_SLASH: RegExp; readonly TOOL_WITH_PATH: RegExp; readonly PATH_PROPERTY: RegExp; readonly PATTERN_PROPERTY: RegExp; readonly TOOL_WITH_QUOTE: RegExp; readonly IMAGE_TAG: RegExp; readonly ULTRATHINK: RegExp; readonly URL: RegExp; readonly FLAG: RegExp; readonly COMMAND_FORMAT: RegExp; readonly COMMAND_ARGS: RegExp; readonly COMMAND_WORDS: RegExp; readonly SLASH_COMMAND: RegExp; }; declare function extractPathsFromText(text: string): string[]; declare enum SessionCountGroup { '0-10' = "0-10", '10-50' = "10-50", '50-200' = "50-200", '200-500' = "200-500", '500+' = "500+" } declare const getSessionCountGroup: (count: number) => SessionCountGroup; declare const SESSION_COUNT_GROUP_LABELS: Record<SessionCountGroup, string>; declare const SESSION_COUNT_GROUP_ORDER: SessionCountGroup[]; declare enum FolderEntry { FILE = "file", DIRECTORY = "directory" } declare enum ProjectAction { OPEN_FOLDER = "openFolder", OPEN_EDITOR = "openCodeEditor", OPEN_TERMINAL = "openTerminal" } declare enum MessageSource { USER = "user", CC = "assistant" } declare enum TimeGroup { Today = "today", Yesterday = "yesterday", ThisWeek = "this-week", ThisMonth = "this-month", LastMonth = "last-month", Older = "older" } declare const TIME_GROUP_ORDER: TimeGroup[]; declare const TIME_GROUP_LABELS: Record<TimeGroup, string>; declare const getTimeGroup: (timestamp: number) => TimeGroup; declare function getGroupDate(groupName: TimeGroup): string; declare enum TokenPercentageGroup { '0-25' = "0-25", '25-50' = "25-50", '50-75' = "50-75", '75-100' = "75-100" } declare const getTokenPercentageGroup: (percentage: number | undefined) => TokenPercentageGroup; declare const TOKEN_PERCENTAGE_GROUP_LABELS: Record<TokenPercentageGroup, string>; declare const TOKEN_PERCENTAGE_GROUP_ORDER: TokenPercentageGroup[]; export { API_PREFIX, APP_CLI_NAME, APP_DESCRIPTION, APP_NAME, APP_NPM_PACKAGE_NAME, BACKEND_PORT, FRONTEND_PORT, FolderEntry, MESSAGE_PATTERNS, MessageSource, OPENAPI_SPEC_PATH, ProjectAction, SESSION_COUNT_GROUP_LABELS, SESSION_COUNT_GROUP_ORDER, SWAGGER_UI_PATH, TIME_GROUP_LABELS, TIME_GROUP_ORDER, TOKEN_PERCENTAGE_GROUP_LABELS, TOKEN_PERCENTAGE_GROUP_ORDER, TimeGroup, createLocalHostLink, extractPathsFromText, getGroupDate, getSessionCountGroup, getTimeGroup, getTokenPercentageGroup };