import { tagTextToIb } from "@ibgib/core-gib/dist/common/other/ibgib-helper.mjs"; /** * @internal * Library-internal toggle for verbose logging. * * ## Usage note * * This is an ibgib-pattern meant to be redefined per project. Downstream apps * should NOT import this from web-gib, but instead define their own * `GLOBAL_LOG_A_LOT` constant for their own logging needs. */ export const GLOBAL_LOG_A_LOT = false; export const GLOBAL_TIMER_NAME = '[web^gib timer]'; /** * `globalThis[GLOBAL_THIS_IBGIB_KEY]` * * So the pattern for other apps/libs is: * * `globalThis[GLOBAL_THIS_IBGIB_KEY][APP_SPECIFIC_GLOBAL_KEY]` * * and given the value of this continues to be `"ibgib"`: * `globalThis.ibgib.[APP_SPECIFIC_GLOBAL_KEY]` * * @example globalThis.ibgib.myApp * @example globalThis.ibgib.blankGib */ export const GLOBAL_THIS_IBGIB_KEY = 'ibgib'; /** * regex for what we think of as a gemini api key. */ export const GEMINI_API_KEY_REGEXP = /^[a-zA-Z0-9\-_]{32,64}$/; export const CONFIG_OPTION_GEMINI_API_KEY_LOCATION_HELP = `Gemini API Key Config option (⚙️ icon in the top right)`; /** * used for the agent tag, in ibgib.data.text */ export const TAG_AGENT_TEXT = "agent"; /** * used for the agent tag, in ibgib.data.icon */ export const TAG_AGENT_ICON = "body-outline"; /** * used for the agent tag, in ibgib.data.description */ export const TAG_AGENT_DESCRIPTION = "This tag tracks the active agents for the current local user space."; /** * the ib value of the tag ibgib for the agents. */ export const TAG_AGENT_IB = tagTextToIb(TAG_AGENT_TEXT); export const DEFAULT_IBGIB_COLOR = '#78f87e88'; export const DEFAULT_IBGIB_TRANSLUCENT = '#78f87e10'; export const DEFAULT_IBGIB_COLOR_CONTRAST = '#ffffff'; export const DEFAULT_TJP_COLOR = '#78f87e88'; export const DEFAULT_TJP_COLOR_TRANSLUCENT = '#78f87e10'; export const DEFAULT_TJP_COLOR_CONTRAST = '#ffffff'; /** * I am toying with tagging hardcoded prompts at the moment (atow 05/2025) */ export const HARDCODED_PROMPT_TAG_TEXT = 'AUTOMATED_TEXT';