SYMBOL INDEX (3816 symbols across 398 files) FILE: app/src/custom-aurora-components/timer/timer.tsx type TimerProps (line 4) | interface TimerProps { function formatTime (line 12) | function formatTime(seconds: number): string { function Timer (line 22) | function Timer({ FILE: app/src/js/chatbot.js constant WIDGETS_TO_FETCH (line 10) | const WIDGETS_TO_FETCH = [] constant WIDGETS_FETCH_CACHE (line 11) | const WIDGETS_FETCH_CACHE = new Map() constant REPLACED_MESSAGES (line 12) | const REPLACED_MESSAGES = new Set() constant AUTO_SCROLL_BOTTOM_THRESHOLD_PX (line 13) | const AUTO_SCROLL_BOTTOM_THRESHOLD_PX = 24 class Chatbot (line 15) | class Chatbot { method constructor (line 16) | constructor(socket, serverURL) { method init (line 37) | async init() { method sendTo (line 74) | sendTo(who, string) { method receivedFrom (line 80) | receivedFrom(who, string) { method isTyping (line 86) | isTyping(who, value) { method enableTyping (line 96) | enableTyping() { method disableTyping (line 102) | disableTyping() { method isElementNearBottom (line 108) | isElementNearBottom(element) { method handleFeedScroll (line 119) | handleFeedScroll() { method scrollDown (line 127) | scrollDown(options = {}) { method scrollReasoningContentToBottom (line 147) | scrollReasoningContentToBottom(reasoningBlock) { method getWidgetPayload (line 163) | getWidgetPayload(formattedString) { method getPlanWidgetInsertionPoint (line 178) | getPlanWidgetInsertionPoint(widgetPayload) { method isPlanWidgetData (line 190) | isPlanWidgetData(data) { method loadFeed (line 194) | loadFeed() { method createBubble (line 289) | createBubble(params) { method formatReasoningPhaseTitle (line 396) | formatReasoningPhaseTitle(phase) { method createOrUpdateReasoningBlock (line 405) | createOrUpdateReasoningBlock(generationId, token, phase) { method handleToolOutput (line 468) | handleToolOutput(data) { method saveBubble (line 490) | saveBubble(who, originalString, string, messageId, metrics = null) { method formatMessage (line 511) | formatMessage(message) { method formatMetrics (line 535) | formatMetrics(metrics) { method createMetricsElement (line 567) | createMetricsElement(metrics) { method updateBubbleMetrics (line 576) | updateBubbleMetrics(container, metrics) { method getLatestReasoningContainer (line 599) | getLatestReasoningContainer() { method replaceMessage (line 611) | replaceMessage(replaceMessageId, newData) { method openPath (line 665) | openPath(filePath) { FILE: app/src/js/client.js class Client (line 8) | class Client { method constructor (line 9) | constructor(client, serverUrl, input) { method input (line 30) | set input(newInput) { method input (line 36) | get input() { method recorder (line 40) | set recorder(recorder) { method recorder (line 44) | get recorder() { method updateMood (line 48) | updateMood(mood) { method sendInitMessages (line 57) | async sendInitMessages() { method setInitStatus (line 75) | setInitStatus(statusName, statusType) { method asrStartRecording (line 86) | asrStartRecording() { method init (line 101) | init() { method send (line 438) | send(keyword) { method save (line 466) | save() { method enableVoiceMode (line 508) | enableVoiceMode() { method disableVoiceMode (line 526) | disableVoiceMode() { FILE: app/src/js/constants.js constant INIT_MESSAGES (line 1) | const INIT_MESSAGES = [ FILE: app/src/js/init.jsx function Item (line 17) | function Item({ children, status }) { function LoadingListItem (line 34) | function LoadingListItem({ children }) { function ErrorListItem (line 44) | function ErrorListItem({ children }) { function WarningListItem (line 61) | function WarningListItem({ children }) { function SuccessListItem (line 78) | function SuccessListItem({ children }) { function Init (line 96) | function Init() { FILE: app/src/js/recorder.js class Recorder (line 4) | class Recorder { method constructor (line 5) | constructor(stream, el, info) { method start (line 18) | start(playSound = true) { method stop (line 27) | stop(playSound = true) { method onstart (line 36) | onstart(cb) { method onstop (line 47) | onstop(cb) { method ondataavailable (line 58) | ondataavailable(cb) { FILE: app/src/js/render-aurora-component.js function renderAuroraComponent (line 6) | function renderAuroraComponent( FILE: app/src/js/suggestion-handler.js function handleSuggestions (line 5) | function handleSuggestions(data, chatbot, client) { FILE: app/src/js/tool-ui-handler.js class ToolUIHandler (line 5) | class ToolUIHandler { method constructor (line 6) | constructor(feedElement, scrollDownCallback, formatMessageCallback) { method handleToolOutput (line 16) | handleToolOutput(data) { method createToolGroupContainer (line 66) | createToolGroupContainer(groupId, toolkitName, toolName, answerKey) { method addExpandCollapseHandler (line 114) | addExpandCollapseHandler(toolHeader, toolContent) { method addToolMessage (line 132) | addToolMessage(toolGroupContainer, message) { method replaceToolMessage (line 151) | replaceToolMessage(replaceMessageId, newData) { method getToolGroupInfo (line 170) | getToolGroupInfo(groupId, toolkitName, toolName, message) { method isToolOutputMarker (line 181) | static isToolOutputMarker(messageString) { method clearToolGroups (line 188) | clearToolGroups() { method getToolGroupCount (line 195) | getToolGroupCount() { method getToolGroup (line 202) | getToolGroup(groupId) { method removeToolGroup (line 209) | removeToolGroup(groupId) { FILE: app/src/js/voice-energy.js constant STATUS (line 1) | const STATUS = { class VoiceEnergy (line 8) | class VoiceEnergy { method constructor (line 9) | constructor(client) { method status (line 19) | get status() { method status (line 23) | set status(newStatus) { method init (line 43) | init() { FILE: bridges/nodejs/src/constants.ts constant INTENT_OBJ_FILE_PATH (line 19) | const INTENT_OBJ_FILE_PATH = constant LEON_VERSION (line 22) | const LEON_VERSION = process.env['npm_package_version'] constant RUNTIME (line 24) | const RUNTIME = runtime constant BIN_PATH (line 26) | const BIN_PATH = path.join(process.cwd(), 'bin') constant BRIDGES_PATH (line 27) | const BRIDGES_PATH = path.join(process.cwd(), 'bridges') constant NODEJS_BRIDGE_ROOT_PATH (line 28) | const NODEJS_BRIDGE_ROOT_PATH = path.join(BRIDGES_PATH, 'nodejs') constant NODEJS_BRIDGE_SRC_PATH (line 29) | const NODEJS_BRIDGE_SRC_PATH = path.join(NODEJS_BRIDGE_ROOT_PATH, 'src') constant NODEJS_BRIDGE_VERSION_FILE_PATH (line 30) | const NODEJS_BRIDGE_VERSION_FILE_PATH = path.join( constant TOOLKITS_PATH (line 35) | const TOOLKITS_PATH = path.join(BRIDGES_PATH, 'toolkits') constant INTENT_OBJECT (line 51) | const INTENT_OBJECT: IntentObject = parsedIntentObject constant NVIDIA_LIBS_PATH (line 55) | const NVIDIA_LIBS_PATH = path.join(BIN_PATH, 'nvidia') constant PYTORCH_PATH (line 57) | const PYTORCH_PATH = path.join(BIN_PATH, 'pytorch') constant PYTORCH_TORCH_PATH (line 58) | const PYTORCH_TORCH_PATH = path.join(PYTORCH_PATH, 'torch') constant SKILLS_PATH (line 60) | const SKILLS_PATH = path.join(process.cwd(), 'skills') constant SKILL_PATH (line 61) | const SKILL_PATH = constant SKILL_LOCALE_CONFIG_CONTENT (line 65) | const SKILL_LOCALE_CONFIG_CONTENT = constant SKILL_LOCALE_CONFIG (line 86) | const SKILL_LOCALE_CONFIG: SkillLocaleConfigSchema & FILE: bridges/nodejs/src/sdk/aurora/button.ts class Button (line 5) | class Button extends WidgetComponent { method constructor (line 6) | constructor(props: ButtonProps) { FILE: bridges/nodejs/src/sdk/aurora/card.ts class Card (line 5) | class Card extends WidgetComponent { method constructor (line 6) | constructor(props: CardProps) { FILE: bridges/nodejs/src/sdk/aurora/checkbox.ts class Checkbox (line 5) | class Checkbox extends WidgetComponent { method constructor (line 6) | constructor(props: CheckboxProps) { FILE: bridges/nodejs/src/sdk/aurora/circular-progress.ts class CircularProgress (line 5) | class CircularProgress extends WidgetComponent { method constructor (line 6) | constructor(props: CircularProgressProps) { FILE: bridges/nodejs/src/sdk/aurora/flexbox.ts class Flexbox (line 5) | class Flexbox extends WidgetComponent { method constructor (line 6) | constructor(props: FlexboxProps) { FILE: bridges/nodejs/src/sdk/aurora/form.ts class Form (line 5) | class Form extends WidgetComponent { method constructor (line 6) | constructor(props: FormProps) { FILE: bridges/nodejs/src/sdk/aurora/icon-button.ts class IconButton (line 5) | class IconButton extends WidgetComponent { method constructor (line 6) | constructor(props: IconButtonProps) { FILE: bridges/nodejs/src/sdk/aurora/icon.ts class Icon (line 5) | class Icon extends WidgetComponent { method constructor (line 6) | constructor(props: IconProps) { FILE: bridges/nodejs/src/sdk/aurora/image.ts class Image (line 5) | class Image extends WidgetComponent { method constructor (line 6) | constructor(props: ImageProps) { FILE: bridges/nodejs/src/sdk/aurora/input.ts class Input (line 5) | class Input extends WidgetComponent { method constructor (line 6) | constructor(props: InputProps) { FILE: bridges/nodejs/src/sdk/aurora/link.ts class Link (line 5) | class Link extends WidgetComponent { method constructor (line 6) | constructor(props: LinkProps) { FILE: bridges/nodejs/src/sdk/aurora/list-header.ts class ListHeader (line 5) | class ListHeader extends WidgetComponent { method constructor (line 6) | constructor(props: ListHeaderProps) { FILE: bridges/nodejs/src/sdk/aurora/list-item.ts class ListItem (line 5) | class ListItem extends WidgetComponent { method constructor (line 6) | constructor(props: ListItemProps) { FILE: bridges/nodejs/src/sdk/aurora/list.ts class List (line 5) | class List extends WidgetComponent { method constructor (line 6) | constructor(props: ListProps) { FILE: bridges/nodejs/src/sdk/aurora/loader.ts class Loader (line 5) | class Loader extends WidgetComponent { method constructor (line 6) | constructor(props: LoaderProps) { FILE: bridges/nodejs/src/sdk/aurora/progress.ts class Progress (line 5) | class Progress extends WidgetComponent { method constructor (line 6) | constructor(props: ProgressProps) { FILE: bridges/nodejs/src/sdk/aurora/radio-group.ts class RadioGroup (line 5) | class RadioGroup extends WidgetComponent { method constructor (line 6) | constructor(props: RadioGroupProps) { FILE: bridges/nodejs/src/sdk/aurora/radio.ts class Radio (line 5) | class Radio extends WidgetComponent { method constructor (line 6) | constructor(props: RadioProps) { FILE: bridges/nodejs/src/sdk/aurora/range-slider.ts class RangeSlider (line 5) | class RangeSlider extends WidgetComponent { method constructor (line 6) | constructor(props: RangeSliderProps) { FILE: bridges/nodejs/src/sdk/aurora/scroll-container.ts class ScrollContainer (line 5) | class ScrollContainer extends WidgetComponent { method constructor (line 6) | constructor(props: ScrollContainerProps) { FILE: bridges/nodejs/src/sdk/aurora/select-option.ts class SelectOption (line 5) | class SelectOption extends WidgetComponent { method constructor (line 6) | constructor(props: SelectOptionProps) { FILE: bridges/nodejs/src/sdk/aurora/select.ts class Select (line 5) | class Select extends WidgetComponent { method constructor (line 6) | constructor(props: SelectProps) { FILE: bridges/nodejs/src/sdk/aurora/status.ts class Status (line 5) | class Status extends WidgetComponent { method constructor (line 6) | constructor(props: StatusProps) { FILE: bridges/nodejs/src/sdk/aurora/switch.ts class Switch (line 5) | class Switch extends WidgetComponent { method constructor (line 6) | constructor(props: SwitchProps) { FILE: bridges/nodejs/src/sdk/aurora/tab-content.ts class TabContent (line 5) | class TabContent extends WidgetComponent { method constructor (line 6) | constructor(props: TabContentProps) { FILE: bridges/nodejs/src/sdk/aurora/tab-group.ts class TabGroup (line 5) | class TabGroup extends WidgetComponent { method constructor (line 6) | constructor(props: TabGroupProps) { FILE: bridges/nodejs/src/sdk/aurora/tab-list.ts class TabList (line 5) | class TabList extends WidgetComponent { method constructor (line 6) | constructor(props: TabListProps) { FILE: bridges/nodejs/src/sdk/aurora/tab.ts class Tab (line 5) | class Tab extends WidgetComponent { method constructor (line 6) | constructor(props: TabProps) { FILE: bridges/nodejs/src/sdk/aurora/text.ts class Text (line 5) | class Text extends WidgetComponent { method constructor (line 6) | constructor(props: TextProps) { FILE: bridges/nodejs/src/sdk/aurora/widget-wrapper.ts class WidgetWrapper (line 5) | class WidgetWrapper extends WidgetComponent { method constructor (line 6) | constructor(props: WidgetWrapperProps) { FILE: bridges/nodejs/src/sdk/base-tool.ts type ProgressCallback (line 28) | type ProgressCallback = (progress: { type ExecuteCommandOptions (line 37) | interface ExecuteCommandOptions { method aliasToolName (line 109) | get aliasToolName(): string { method getSettingsPath (line 126) | protected getSettingsPath(toolName?: string): string { method checkRequiredSettings (line 139) | protected checkRequiredSettings(toolName?: string): void { method getMissingSettings (line 164) | getMissingSettings(): { missing: string[], settingsPath: string } | null { method getToolDir (line 171) | protected getToolDir(moduleUrl: string): string { method report (line 178) | protected async report( method escapeShellArg (line 212) | private escapeShellArg(arg: string): string { method executeCommand (line 243) | protected async executeCommand( method executeSyncCommand (line 308) | private executeSyncCommand( method executeAsyncCommand (line 371) | private executeAsyncCommand( method getBundledLibraryEnv (line 492) | private getBundledLibraryEnv(): NodeJS.ProcessEnv { method getBundledLibraryPaths (line 515) | private getBundledLibraryPaths(): string[] { method getBinaryPath (line 528) | async getBinaryPath( method formatCommandOutput (line 606) | private formatCommandOutput(output: string): string | null { method reportCommandOutput (line 620) | private async reportCommandOutput( method getResourcePath (line 645) | async getResourcePath(resourceName: string): Promise { method isResourceComplete (line 764) | private isResourceComplete( method getResourceRelativePath (line 788) | private getResourceRelativePath(resourceUrl: string): string { method deleteOlderBinaryVersions (line 814) | private async deleteOlderBinaryVersions( method executeTerminalCommand (line 879) | private async executeTerminalCommand( method buildTerminalRunCommand (line 948) | private buildTerminalRunCommand( method buildBinaryCommand (line 967) | private buildBinaryCommand(binaryPath: string, args: string[]): string { method launchTerminal (line 973) | private launchTerminal(command: string): void { method waitForMarker (line 1024) | private async waitForMarker( method spawnDetached (line 1040) | private spawnDetached(command: string, args: string[]): void { method commandExists (line 1045) | private commandExists(command: string): boolean { method escapeWindowsArg (line 1051) | private escapeWindowsArg(value: string): string { method escapeForAppleScript (line 1055) | private escapeForAppleScript(value: string): string { method downloadBinaryOnDemand (line 1062) | private async downloadBinaryOnDemand( method isArchive (line 1110) | private isArchive(filePath: string): boolean { method downloadBinary (line 1127) | private async downloadBinary(url: string, outputPath: string): Promise { FILE: bridges/nodejs/src/sdk/leon.ts class Leon (line 14) | class Leon { method constructor (line 29) | constructor() { method injectVariables (line 41) | private injectVariables( method setAnswerData (line 85) | public setAnswerData( method answer (line 124) | public async answer(answerInput: AnswerInput): Promise { FILE: bridges/nodejs/src/sdk/memory.ts type MemoryOptions (line 6) | interface MemoryOptions { class Memory (line 11) | class Memory { method constructor (line 17) | constructor(options: MemoryOptions) { method clear (line 43) | public async clear(): Promise { method read (line 57) | public async read(): Promise { method write (line 81) | public async write(memory: T): Promise { FILE: bridges/nodejs/src/sdk/network.ts type NetworkOptions (line 8) | interface NetworkOptions { type NetworkRequestOptions (line 13) | interface NetworkRequestOptions { type NetworkResponse (line 42) | interface NetworkResponse { class NetworkError (line 65) | class NetworkError extends Error { method constructor (line 68) | constructor(response: NetworkResponse) { class Network (line 75) | class Network { method constructor (line 79) | constructor(options: NetworkOptions = {}) { method request (line 91) | public async request( method isNetworkAvailable (line 188) | public async isNetworkAvailable(): Promise { FILE: bridges/nodejs/src/sdk/params-helper.ts class ParamsHelper (line 4) | class ParamsHelper { method constructor (line 7) | constructor(params: ActionParams) { method getWidgetId (line 15) | getWidgetId(): string | null { method getActionArgument (line 26) | getActionArgument(name: string): string | undefined { method findEntity (line 34) | findEntity(entityName: string): NEREntity | undefined { method findLastEntity (line 43) | findLastEntity(entityName: string): NEREntity | undefined { method findAllEntities (line 53) | findAllEntities(entityName: string): NEREntity[] { method findActionArgumentFromContext (line 61) | findActionArgumentFromContext(name: string): string | undefined { method findLastActionArgumentFromContext (line 76) | findLastActionArgumentFromContext(name: string): string | undefined { method findLastEntityFromContext (line 98) | findLastEntityFromContext(entityName: string): NEREntity | undefined { method findAllEntitiesFromContext (line 109) | findAllEntitiesFromContext(entityName: string): NEREntity[] { method getContextData (line 119) | getContextData(key: string): T | undefined { FILE: bridges/nodejs/src/sdk/settings.ts class Settings (line 6) | class Settings> { method constructor (line 10) | constructor() { method isSettingSet (line 24) | public async isSettingSet(key: string): Promise { method clear (line 38) | public async clear(): Promise { method getSettingsSample (line 44) | private async getSettingsSample(): Promise { method get (line 67) | public async get(key?: Key): Promise { method set (line 99) | public async set( FILE: bridges/nodejs/src/sdk/tool-manager.ts class MissingToolSettingsError (line 5) | class MissingToolSettingsError extends Error { method constructor (line 9) | constructor(missing: string[], settingsPath: string) { class ToolManager (line 23) | class ToolManager { method initTool (line 24) | static async initTool( FILE: bridges/nodejs/src/sdk/tool-reporter.ts type ToolReporter (line 1) | type ToolReporter = (input: Record) => Promise FILE: bridges/nodejs/src/sdk/toolkit-config.ts type ToolConfig (line 7) | interface ToolConfig { type ToolkitConfigData (line 20) | interface ToolkitConfigData { class ToolkitConfig (line 26) | class ToolkitConfig { method load (line 35) | static load(toolkitName: string, toolName: string): ToolConfig { method loadToolSettings (line 72) | static loadToolSettings( method getBinaryUrl (line 119) | static getBinaryUrl(config: ToolConfig): string | undefined { FILE: bridges/nodejs/src/sdk/tools/assemblyai_audio/assemblyai_audio-tool.ts constant ASSEMBLYAI_AUDIO_API_KEY (line 9) | const ASSEMBLYAI_AUDIO_API_KEY: string | null = null constant DEFAULT_SETTINGS (line 10) | const DEFAULT_SETTINGS: Record = { constant REQUIRED_SETTINGS (line 13) | const REQUIRED_SETTINGS = ['ASSEMBLYAI_AUDIO_API_KEY'] type AssemblyAIUploadResponse (line 15) | interface AssemblyAIUploadResponse { type AssemblyAITranscriptionResponse (line 19) | interface AssemblyAITranscriptionResponse { class AssemblyAIAudioTool (line 47) | class AssemblyAIAudioTool extends Tool { method constructor (line 52) | constructor() { method toolName (line 71) | get toolName(): string { method toolkit (line 75) | get toolkit(): string { method description (line 79) | get description(): string { method transcribeToFile (line 90) | async transcribeToFile( method parseTranscription (line 185) | private parseTranscription( FILE: bridges/nodejs/src/sdk/tools/bash/bash-tool.ts constant DEFAULT_SETTINGS (line 7) | const DEFAULT_SETTINGS: Record = {} constant REQUIRED_SETTINGS (line 8) | const REQUIRED_SETTINGS: string[] = [] type BashResult (line 10) | interface BashResult { type ExecuteOptions (line 18) | interface ExecuteOptions { constant CRITICAL_COMMAND_SEQUENCES (line 24) | const CRITICAL_COMMAND_SEQUENCES = [ constant CRITICAL_COMMAND_TOKENS (line 30) | const CRITICAL_COMMAND_TOKENS = ['mkfs', 'format', 'fdisk'] as const constant HIGH_RISK_DD_TOKENS (line 31) | const HIGH_RISK_DD_TOKENS = ['dd'] as const constant HIGH_RISK_EVAL_DOWNLOAD_TOKENS (line 32) | const HIGH_RISK_EVAL_DOWNLOAD_TOKENS = ['curl', 'wget'] as const constant ELEVATED_COMMAND_TOKENS (line 33) | const ELEVATED_COMMAND_TOKENS = ['sudo', 'doas', 'pkexec', 'su'] as const constant PERMISSION_COMMAND_TOKENS (line 34) | const PERMISSION_COMMAND_TOKENS = ['chmod', 'chown'] as const constant PACKAGE_MANAGER_COMMAND_TOKENS (line 35) | const PACKAGE_MANAGER_COMMAND_TOKENS = [ constant MEDIUM_RISK_COMMAND_PATTERNS (line 44) | const MEDIUM_RISK_COMMAND_PATTERNS: string[] = [] constant UNSAFE_COMMAND_PATTERNS (line 46) | const UNSAFE_COMMAND_PATTERNS = [ constant TERMINAL_AUTH_COMMANDS (line 51) | const TERMINAL_AUTH_COMMANDS = new Set(ELEVATED_COMMAND_TOKENS) constant TERMINAL_AUTH_WRAPPERS (line 52) | const TERMINAL_AUTH_WRAPPERS = new Set([ class BashTool (line 60) | class BashTool extends Tool { method constructor (line 64) | constructor() { method toolName (line 77) | get toolName(): string { method toolkit (line 81) | get toolkit(): string { method description (line 85) | get description(): string { method executeBashCommand (line 89) | async executeBashCommand( method isSafeCommand (line 200) | async isSafeCommand(command: string): Promise { method getCommandRiskLevel (line 226) | async getCommandRiskLevel(command: string): Promise { method getRiskDescription (line 264) | async getRiskDescription(command: string): Promise { method resolveCommandForSafetyAnalysis (line 296) | private async resolveCommandForSafetyAnalysis(command: string): Promis... method isDownloadPipedToShell (line 321) | private isDownloadPipedToShell(commandLower: string): boolean { method tokenizeCommand (line 330) | private tokenizeCommand(command: string): string[] { method hasTokenSequence (line 394) | private hasTokenSequence(tokens: string[], sequence: string[]): boolean { method hasCommandToken (line 411) | private hasCommandToken(tokens: string[], commands: string[]): boolean { method hasDangerousDdPattern (line 421) | private hasDangerousDdPattern(tokens: string[]): boolean { method hasEvalDownloadPattern (line 429) | private hasEvalDownloadPattern(tokens: string[]): boolean { method normalizeCommandToken (line 448) | private normalizeCommandToken(token: string): string { method hasAnyTokenSequence (line 457) | private hasAnyTokenSequence( method requiresVisibleTerminal (line 466) | private requiresVisibleTerminal(command: string): boolean { method isShellAssignment (line 536) | private isShellAssignment(token: string): boolean { FILE: bridges/nodejs/src/sdk/tools/cerebras/cerebras-tool.ts constant CEREBRAS_API_KEY (line 6) | const CEREBRAS_API_KEY: string | null = null constant CEREBRAS_MODEL (line 7) | const CEREBRAS_MODEL = 'zai-glm-4.7' constant DEFAULT_SETTINGS (line 8) | const DEFAULT_SETTINGS: Record = { constant REQUIRED_SETTINGS (line 12) | const REQUIRED_SETTINGS = ['CEREBRAS_API_KEY'] type ChatMessage (line 14) | interface ChatMessage { type ChatCompletionOptions (line 19) | interface ChatCompletionOptions { type CompletionOptions (line 30) | interface CompletionOptions { type StructuredCompletionOptions (line 41) | interface StructuredCompletionOptions { type ApiResponse (line 51) | interface ApiResponse { class CerebrasTool (line 60) | class CerebrasTool extends Tool { method constructor (line 74) | constructor(apiKey?: string) { method toolName (line 100) | get toolName(): string { method toolkit (line 104) | get toolkit(): string { method description (line 108) | get description(): string { method setApiKey (line 115) | setApiKey(apiKey: string): void { method getAvailableModels (line 122) | getAvailableModels(): string[] { method getModelId (line 129) | getModelId(modelName: string): string { method chatCompletion (line 139) | async chatCompletion(options: ChatCompletionOptions): Promise { method structuredCompletion (line 267) | async structuredCompletion( method listModels (line 323) | async listModels(): Promise { FILE: bridges/nodejs/src/sdk/tools/chatterbox_onnx/chatterbox_onnx-tool.ts constant MODEL_NAME (line 10) | const MODEL_NAME = 'chatterbox-multilingual-onnx' constant DEFAULT_MAX_CHARS (line 11) | const DEFAULT_MAX_CHARS = 272 // Character limit to avoid hallucination constant DEFAULT_SETTINGS (line 12) | const DEFAULT_SETTINGS: Record = {} constant REQUIRED_SETTINGS (line 13) | const REQUIRED_SETTINGS: string[] = [] type SynthesisTask (line 15) | interface SynthesisTask { function splitTextAtPunctuation (line 39) | function splitTextAtPunctuation( class ChatterboxONNXTool (line 90) | class ChatterboxONNXTool extends Tool { method constructor (line 94) | constructor() { method toolName (line 108) | get toolName(): string { method toolkit (line 113) | get toolkit(): string { method description (line 117) | get description(): string { method synthesizeSpeechToFiles (line 132) | async synthesizeSpeechToFiles( FILE: bridges/nodejs/src/sdk/tools/context/context-tool.ts constant ROOT_DIR (line 7) | const ROOT_DIR = process.cwd() constant CONTEXT_DIR (line 8) | const CONTEXT_DIR = path.join(ROOT_DIR, 'core', 'context') constant DEFAULT_LIST_LIMIT (line 9) | const DEFAULT_LIST_LIMIT = 24 constant DEFAULT_TOP_K (line 10) | const DEFAULT_TOP_K = 8 constant DEFAULT_SNIPPET_CHARS (line 11) | const DEFAULT_SNIPPET_CHARS = Number.MAX_SAFE_INTEGER type ContextListEntry (line 13) | interface ContextListEntry { type SearchHit (line 20) | interface SearchHit { class ContextTool (line 27) | class ContextTool extends Tool { method constructor (line 31) | constructor() { method toolName (line 43) | get toolName(): string { method toolkit (line 47) | get toolkit(): string { method description (line 51) | get description(): string { method listContextFiles (line 55) | public async listContextFiles( method readContextFile (line 86) | public async readContextFile( method searchContext (line 157) | public async searchContext( method ensureContextDir (line 270) | private async ensureContextDir(): Promise { method resolveFilename (line 274) | private resolveFilename(filename: string): string | null { method readContextEntries (line 289) | private async readContextEntries(): Promise = {} constant REQUIRED_SETTINGS (line 8) | const REQUIRED_SETTINGS: string[] = [] class ECAPATool (line 10) | class ECAPATool extends Tool { method constructor (line 14) | constructor() { method toolName (line 28) | get toolName(): string { method toolkit (line 33) | get toolkit(): string { method description (line 37) | get description(): string { method detectGender (line 47) | async detectGender(inputPath: string, device = 'cpu'): Promise { method parseGenderOutput (line 88) | private parseGenderOutput(rawOutput: string): string { FILE: bridges/nodejs/src/sdk/tools/elevenlabs_audio/elevenlabs_audio-tool.ts constant ELEVENLABS_AUDIO_API_KEY (line 11) | const ELEVENLABS_AUDIO_API_KEY: string | null = null constant ELEVENLABS_AUDIO_MODEL (line 12) | const ELEVENLABS_AUDIO_MODEL = 'scribe_v1' constant DEFAULT_SETTINGS (line 13) | const DEFAULT_SETTINGS: Record = { constant REQUIRED_SETTINGS (line 17) | const REQUIRED_SETTINGS = ['ELEVENLABS_AUDIO_API_KEY'] type ElevenLabsWord (line 19) | interface ElevenLabsWord { type ElevenLabsTranscriptionResponse (line 27) | interface ElevenLabsTranscriptionResponse { type ElevenLabsDubbingCreateResponse (line 34) | interface ElevenLabsDubbingCreateResponse { type ElevenLabsDubbingStatusResponse (line 39) | interface ElevenLabsDubbingStatusResponse { class ElevenLabsAudioTool (line 49) | class ElevenLabsAudioTool extends Tool { method constructor (line 55) | constructor() { method toolName (line 77) | get toolName(): string { method toolkit (line 81) | get toolkit(): string { method description (line 85) | get description(): string { method transcribeToFile (line 97) | async transcribeToFile( method createDubbing (line 153) | async createDubbing( method getDubbingStatus (line 193) | async getDubbingStatus( method downloadDubbedFile (line 221) | async downloadDubbedFile( method parseTranscription (line 250) | private parseTranscription( FILE: bridges/nodejs/src/sdk/tools/faster_whisper/faster_whisper-tool.ts type FasterWhisperTranscriptionOutput (line 18) | type FasterWhisperTranscriptionOutput = string constant MODEL_NAME (line 20) | const MODEL_NAME = 'faster-whisper-large-v3' constant DEFAULT_SETTINGS (line 21) | const DEFAULT_SETTINGS: Record = {} constant REQUIRED_SETTINGS (line 22) | const REQUIRED_SETTINGS: string[] = [] class FasterWhisperTool (line 24) | class FasterWhisperTool extends Tool { method constructor (line 28) | constructor() { method toolName (line 42) | get toolName(): string { method toolkit (line 47) | get toolkit(): string { method description (line 51) | get description(): string { method transcribeToFile (line 65) | async transcribeToFile( method parseTranscription (line 129) | private parseTranscription( FILE: bridges/nodejs/src/sdk/tools/ffmpeg/ffmpeg-tool.ts constant DEFAULT_SETTINGS (line 4) | const DEFAULT_SETTINGS: Record = {} constant REQUIRED_SETTINGS (line 5) | const REQUIRED_SETTINGS: string[] = [] class FfmpegTool (line 7) | class FfmpegTool extends Tool { method constructor (line 11) | constructor() { method toolName (line 25) | get toolName(): string { method toolkit (line 29) | get toolkit(): string { method description (line 33) | get description(): string { method getGlobalArgs (line 40) | private getGlobalArgs(): string[] { method convertVideoFormat (line 50) | async convertVideoFormat( method extractAudio (line 73) | async extractAudio(videoPath: string, audioPath: string): Promise = {} constant REQUIRED_SETTINGS (line 5) | const REQUIRED_SETTINGS: string[] = [] type MediaFormatInfo (line 10) | interface MediaFormatInfo { type StreamInfo (line 26) | interface StreamInfo { type FrameInfo (line 42) | interface FrameInfo { class FfprobeTool (line 58) | class FfprobeTool extends Tool { method constructor (line 62) | constructor() { method toolName (line 75) | get toolName(): string { method toolkit (line 79) | get toolkit(): string { method description (line 83) | get description(): string { method getMediaFormatInfo (line 92) | async getMediaFormatInfo(filePath: string): Promise { method listStreams (line 135) | async listStreams(filePath: string): Promise { method getVideoSteamInfo (line 179) | async getVideoSteamInfo(filePath: string): Promise { method getAudioStreamInfo (line 195) | async getAudioStreamInfo(filePath: string): Promise { method countFrames (line 211) | async countFrames(filePath: string): Promise { method getFramesInfo (line 271) | async getFramesInfo(filePath: string): Promise { method getDuration (line 319) | async getDuration(filePath: string): Promise { FILE: bridges/nodejs/src/sdk/tools/grok/grok-tool.ts constant GROK_API_KEY (line 11) | const GROK_API_KEY: string | null = null constant GROK_MODEL (line 12) | const GROK_MODEL = 'grok-4-1-fast-reasoning' constant DEFAULT_SETTINGS (line 13) | const DEFAULT_SETTINGS: Record = { constant REQUIRED_SETTINGS (line 17) | const REQUIRED_SETTINGS = ['GROK_API_KEY'] type GrokMessage (line 19) | interface GrokMessage { type WebSearchTool (line 25) | interface WebSearchTool { type XSearchTool (line 32) | interface XSearchTool { type GrokChatOptions (line 42) | interface GrokChatOptions { type Annotation (line 51) | interface Annotation { type ContentItem (line 59) | interface ContentItem { type MessageOutput (line 66) | interface MessageOutput { type ToolCallOutput (line 74) | interface ToolCallOutput { type OutputItem (line 86) | type OutputItem = MessageOutput | ToolCallOutput type GrokResponse (line 88) | interface GrokResponse { class GrokTool (line 108) | class GrokTool extends Tool { method constructor (line 115) | constructor() { method toolName (line 133) | get toolName(): string { method toolkit (line 137) | get toolkit(): string { method description (line 141) | get description(): string { method setApiKey (line 148) | setApiKey(apiKey: string): void { method listModels (line 156) | async listModels(): Promise<{ method chatCompletion (line 210) | async chatCompletion( method searchWeb (line 316) | async searchWeb( method searchX (line 347) | async searchX( method search (line 381) | async search( method deepResearch (line 433) | async deepResearch( method getTrendingOnX (line 468) | async getTrendingOnX( FILE: bridges/nodejs/src/sdk/tools/memory/memory-tool.ts constant QMD_INDEX_NAME (line 42) | const QMD_INDEX_NAME = 'leon-memory' constant DEFAULT_TOP_K (line 43) | const DEFAULT_TOP_K = 12 constant DEFAULT_TOKEN_BUDGET (line 44) | const DEFAULT_TOKEN_BUDGET = 480 constant CONTEXT_FULL_CONTENT_CAP (line 45) | const CONTEXT_FULL_CONTENT_CAP = 8_000 constant BRIDGE_SOURCE_CONTENT_CAP (line 46) | const BRIDGE_SOURCE_CONTENT_CAP = 96_000 constant MIN_HIT_TOKEN_BUDGET (line 47) | const MIN_HIT_TOKEN_BUDGET = 48 constant INDEX_UPDATE_MIN_INTERVAL_MS (line 48) | const INDEX_UPDATE_MIN_INTERVAL_MS = 10_000 type MemoryScope (line 50) | type MemoryScope = 'persistent' | 'daily' | 'discussion' type MemoryKind (line 51) | type MemoryKind = type MemorySourceType (line 59) | type MemorySourceType = type KnowledgeNamespace (line 65) | type KnowledgeNamespace = type MemoryReadOptions (line 72) | interface MemoryReadOptions { type MemoryWriteOptions (line 81) | interface MemoryWriteOptions { type QMDHit (line 96) | interface QMDHit { constant ROOT_DIR (line 105) | const ROOT_DIR = process.cwd() constant MEMORY_ROOT (line 106) | const MEMORY_ROOT = path.join(ROOT_DIR, 'core', 'memory') constant MEMORY_DB_PATH (line 107) | const MEMORY_DB_PATH = path.join(MEMORY_ROOT, 'index.sqlite') constant CONTEXT_PATH (line 108) | const CONTEXT_PATH = path.join(ROOT_DIR, 'core', 'context') constant MEMORY_PERSISTENT_PATH (line 109) | const MEMORY_PERSISTENT_PATH = path.join(MEMORY_ROOT, 'persistent') constant MEMORY_DAILY_PATH (line 110) | const MEMORY_DAILY_PATH = path.join(MEMORY_ROOT, 'daily') constant MEMORY_DISCUSSION_PATH (line 111) | const MEMORY_DISCUSSION_PATH = path.join(MEMORY_ROOT, 'discussion') constant MEMORY_SCHEMA_PATH (line 112) | const MEMORY_SCHEMA_PATH = path.join( type QMDSearchMode (line 122) | type QMDSearchMode = 'query' | 'search' constant COLLECTIONS (line 124) | const COLLECTIONS: Record { method ensureCollections (line 1044) | private async ensureCollections(): Promise { method updateIndex (line 1059) | private async updateIndex(): Promise { method runSearchMode (line 1086) | private async runSearchMode( method readFacts (line 1115) | private readFacts(limit: number): Array<{ key: string, text: string }> { method upsertFact (line 1133) | private upsertFact(input: { method writeMarkdownMirror (line 1191) | private async writeMarkdownMirror(input: { method dispose (line 1240) | public static dispose(): void { FILE: bridges/nodejs/src/sdk/tools/memory/qmd-embed-worker.mjs function writeDiagnostics (line 8) | async function writeDiagnostics(partial) { function reportFatal (line 37) | async function reportFatal(kind, error) { FILE: bridges/nodejs/src/sdk/tools/memory/qmd-retrieval.ts type QMDCollectionSpec (line 5) | interface QMDCollectionSpec { type RetrievedHit (line 10) | interface RetrievedHit { type RankedRetrievedHit (line 19) | interface RankedRetrievedHit { constant DEFAULT_QMD_NAMESPACE_WEIGHTS (line 25) | const DEFAULT_QMD_NAMESPACE_WEIGHTS = { function normalizeContent (line 33) | function normalizeContent(content: string): string { function normalizeFilename (line 37) | function normalizeFilename(filePath: string): string { function normalizePath (line 41) | function normalizePath(value: string): string { function resolveRequestedCollectionName (line 57) | function resolveRequestedCollectionName( function tokenizeQuery (line 73) | function tokenizeQuery(value: string): string[] { function tokenLength (line 84) | function tokenLength(token: string): number { function sanitizeQmdQueryLine (line 88) | function sanitizeQmdQueryLine(value: string): string { function dedupeStable (line 95) | function dedupeStable(values: string[]): string[] { function trimDoubledConsonant (line 99) | function trimDoubledConsonant(value: string): string { function restoreTrailingE (line 105) | function restoreTrailingE(value: string): string { function buildTokenVariants (line 113) | function buildTokenVariants(token: string): string[] { function splitQuerySegments (line 167) | function splitQuerySegments(value: string): string[] { function normalizeSegmentTerms (line 174) | function normalizeSegmentTerms(value: string): string { function buildExpansionQuery (line 188) | function buildExpansionQuery( function buildLexicalSearchQuery (line 228) | function buildLexicalSearchQuery( function parsePendingEmbeddingCount (line 245) | function parsePendingEmbeddingCount(statusOutput: string): number { function parseRows (line 255) | function parseRows(raw: string): Array> { function pickStringDeep (line 298) | function pickStringDeep( function pickNumberDeep (line 339) | function pickNumberDeep( function extractContent (line 386) | function extractContent(row: Record): string { function extractScore (line 434) | function extractScore(row: Record): number { function buildHitText (line 453) | function buildHitText( function canHydrateBridgeSource (line 460) | function canHydrateBridgeSource(namespace: string): boolean { function canBacktrackTemporalSource (line 469) | function canBacktrackTemporalSource(namespace: string): boolean { function buildQmdSourcePath (line 477) | function buildQmdSourcePath(collectionName: string, relativePath: string... function isLikelyPersistentMetadataLine (line 481) | function isLikelyPersistentMetadataLine(line: string): boolean { function buildSemanticLines (line 504) | function buildSemanticLines( function computeQuestionPenalty (line 524) | function computeQuestionPenalty( function focusCandidateTextAroundQuery (line 547) | function focusCandidateTextAroundQuery( function buildQueryTokenSet (line 578) | function buildQueryTokenSet(query: string): Set { function buildRankingContent (line 591) | function buildRankingContent( function buildRankingHitText (line 606) | function buildRankingHitText( function extractOverlapCount (line 620) | function extractOverlapCount( function buildAdaptiveQueryTokenSet (line 648) | function buildAdaptiveQueryTokenSet( function computeLexicalBoost (line 691) | function computeLexicalBoost( function computeRecencyBoost (line 724) | function computeRecencyBoost( function rankRetrievedHits (line 758) | function rankRetrievedHits( function clipBridgeSourceContent (line 811) | function clipBridgeSourceContent(content: string, maxChars: number): str... function resolveBridgeSourceFilePath (line 820) | function resolveBridgeSourceFilePath( function readBridgeSourceContent (line 866) | function readBridgeSourceContent(sourceFilePath: string): string { function hydrateBridgeSeedHit (line 876) | function hydrateBridgeSeedHit( function buildBridgeCandidateTexts (line 906) | function buildBridgeCandidateTexts( function isInformativeBridgeToken (line 962) | function isInformativeBridgeToken(token: string, queryTokens: Set( function buildHydratedRescueBridgeTokens (line 1061) | function buildHydratedRescueBridgeTokens( function buildBacktrackTemporalHits (line 1097) | function buildBacktrackTemporalHits( function buildHydratedBacktrackCandidates (line 1168) | function buildHydratedBacktrackCandidates( function shouldRunAdaptiveSecondPass (line 1246) | function shouldRunAdaptiveSecondPass( function buildDiscriminativeSecondPass (line 1289) | function buildDiscriminativeSecondPass( function buildFinalSupportTokens (line 1327) | function buildFinalSupportTokens( function buildSupportTokensFromHits (line 1357) | function buildSupportTokensFromHits( function buildFocusedHitContent (line 1394) | function buildFocusedHitContent( FILE: bridges/nodejs/src/sdk/tools/memory/qmd-store.ts type QMDCollectionDefinition (line 18) | interface QMDCollectionDefinition { type QMDSearchMode (line 24) | type QMDSearchMode = 'query' | 'search' type QMDStoreRow (line 26) | type QMDStoreRow = Record class QMDWriteLockTimeoutError (line 28) | class QMDWriteLockTimeoutError extends Error { method constructor (line 29) | public constructor(operation: string, lockPath: string) { constant DEFAULT_PATTERN (line 35) | const DEFAULT_PATTERN = '**/*.md' constant QMD_WRITE_LOCK_RETRY_MS (line 38) | const QMD_WRITE_LOCK_RETRY_MS = 250 constant QMD_WRITE_LOCK_TIMEOUT_MS (line 39) | const QMD_WRITE_LOCK_TIMEOUT_MS = 60_000 constant QMD_WRITE_LOCK_STALE_MS (line 40) | const QMD_WRITE_LOCK_STALE_MS = 15 * 60 * 1_000 constant QMD_EMBED_SUBPROCESS_TIMEOUT_MS (line 41) | const QMD_EMBED_SUBPROCESS_TIMEOUT_MS = 15 * 60 * 1_000 constant QMD_EMBED_SUBPROCESS_MAX_BUFFER (line 42) | const QMD_EMBED_SUBPROCESS_MAX_BUFFER = 4 * 1024 * 1024 constant QMD_EMBED_WORKER_PATH (line 45) | const QMD_EMBED_WORKER_PATH = path.join( type QMDEmbedWorkerDiagnostics (line 50) | interface QMDEmbedWorkerDiagnostics { function wait (line 68) | function wait(ms: number): Promise { function getQMDDbPath (line 72) | function getQMDDbPath(indexName: string): string { function getQMDWriteLockPath (line 80) | function getQMDWriteLockPath(indexName: string): string { function buildStoreConfig (line 84) | function buildStoreConfig( function ensureCollectionDirectories (line 100) | async function ensureCollectionDirectories( function ensureStoreRoot (line 109) | async function ensureStoreRoot(indexName: string): Promise { function applyStoreDbPragmas (line 115) | function applyStoreDbPragmas(store: QMDStore): void { function storeHasRequiredCollections (line 128) | async function storeHasRequiredCollections( function closeStoreQuietly (line 152) | async function closeStoreQuietly(store: QMDStore | null): Promise { function maybeClearStaleWriteLock (line 164) | async function maybeClearStaleWriteLock(lockPath: string): Promise( function openExistingStore (line 252) | async function openExistingStore(indexName: string): Promise { function runQMDStoreEmbedInSubprocess (line 260) | async function runQMDStoreEmbedInSubprocess(params: { function openConfiguredStore (line 354) | async function openConfiguredStore( function inferCollectionName (line 366) | function inferCollectionName( function toStoreRow (line 379) | function toStoreRow(result: SearchResult | HybridQueryResult): QMDStoreR... function getQMDStore (line 410) | async function getQMDStore( function runQMDStoreSearch (line 461) | async function runQMDStoreSearch(params: { function updateQMDStore (line 503) | async function updateQMDStore(params: { function getQMDStoreStatus (line 519) | async function getQMDStoreStatus(params: { function embedQMDStore (line 527) | async function embedQMDStore(params: { function closeQMDStore (line 541) | async function closeQMDStore(indexName: string): Promise { FILE: bridges/nodejs/src/sdk/tools/open-meteo/open-meteo-tool.ts constant DEFAULT_SETTINGS (line 5) | const DEFAULT_SETTINGS: Record = {} constant REQUIRED_SETTINGS (line 6) | const REQUIRED_SETTINGS: string[] = [] type GeocodingResult (line 8) | interface GeocodingResult { type GeocodingResponse (line 17) | interface GeocodingResponse { type CurrentWeather (line 21) | interface CurrentWeather { type HourlyWeather (line 31) | interface HourlyWeather { type WeatherResponse (line 41) | interface WeatherResponse { type WeatherConditions (line 56) | interface WeatherConditions { type WeatherResponseResult (line 70) | interface WeatherResponseResult { constant WMO_CODE_DESCRIPTIONS (line 77) | const WMO_CODE_DESCRIPTIONS: Record = { constant WIND_DIRECTIONS (line 108) | const WIND_DIRECTIONS = [ function degreesToCompass (line 127) | function degreesToCompass(degrees: number): string { function celsiusToFahrenheit (line 132) | function celsiusToFahrenheit(celsius: number): string { function getWeatherDescription (line 136) | function getWeatherDescription(code: number): string { function mapHourlyToCurrent (line 140) | function mapHourlyToCurrent(hourly: HourlyWeather): CurrentWeather | null { class OpenMeteoTool (line 178) | class OpenMeteoTool extends Tool { method constructor (line 184) | constructor() { method toolName (line 201) | get toolName(): string { method toolkit (line 205) | get toolkit(): string { method description (line 209) | get description(): string { method getCurrentConditions (line 213) | async getCurrentConditions( method geocode (line 282) | private async geocode(location: string): Promise<{ method fetchWeather (line 314) | private async fetchWeather( FILE: bridges/nodejs/src/sdk/tools/openai_audio/openai_audio-tool.ts constant OPENAI_AUDIO_API_KEY (line 11) | const OPENAI_AUDIO_API_KEY: string | null = null constant OPENAI_AUDIO_MODEL (line 12) | const OPENAI_AUDIO_MODEL = 'whisper-1' constant DEFAULT_SETTINGS (line 13) | const DEFAULT_SETTINGS: Record = { constant REQUIRED_SETTINGS (line 17) | const REQUIRED_SETTINGS = ['OPENAI_AUDIO_API_KEY'] type OpenAITranscriptionOutput (line 19) | interface OpenAITranscriptionOutput { class OpenAIAudioTool (line 37) | class OpenAIAudioTool extends Tool { method constructor (line 43) | constructor() { method toolName (line 63) | get toolName(): string { method toolkit (line 68) | get toolkit(): string { method description (line 72) | get description(): string { method transcribeToFile (line 83) | async transcribeToFile( method parseTranscription (line 129) | private parseTranscription( FILE: bridges/nodejs/src/sdk/tools/opencode/opencode-tool.ts constant OPENCODE_OPENROUTER_API_KEY (line 9) | const OPENCODE_OPENROUTER_API_KEY: string | null = null constant OPENCODE_OPENROUTER_MODEL (line 10) | const OPENCODE_OPENROUTER_MODEL = 'openrouter/openai/gpt-5.2-codex' constant DEFAULT_SETTINGS (line 11) | const DEFAULT_SETTINGS: Record = { constant REQUIRED_SETTINGS (line 15) | const REQUIRED_SETTINGS = ['OPENCODE_OPENROUTER_API_KEY'] constant OPENCODE_CONFIG_CONTENT (line 16) | const OPENCODE_CONFIG_CONTENT = { type OpenCodeProvider (line 28) | interface OpenCodeProvider { type GenerateSkillOptions (line 34) | interface GenerateSkillOptions { type OpenCodeResult (line 46) | interface OpenCodeResult { class OpenCodeTool (line 57) | class OpenCodeTool extends Tool { method constructor (line 70) | constructor() { method loadProvidersFromSettings (line 103) | private loadProvidersFromSettings( method toolName (line 139) | get toolName(): string { method toolkit (line 143) | get toolkit(): string { method description (line 147) | get description(): string { method configureProvider (line 154) | configureProvider(provider: string, apiKey: string, model?: string): v... method getConfiguredProviders (line 172) | getConfiguredProviders(): string[] { method getAvailableProviders (line 179) | getAvailableProviders(): string[] { method getDefaultModel (line 186) | getDefaultModel(provider: string): string { method setupProviderAuth (line 200) | private async setupProviderAuth( method generateSkill (line 233) | async generateSkill(options: GenerateSkillOptions): Promise { method analyzeRelevantToolkits (line 395) | private async analyzeRelevantToolkits( method scanAvailableToolkits (line 461) | private async scanAvailableToolkits( method toPascalCase (line 548) | private toPascalCase(str: string): string { method parseAuroraInterface (line 558) | private async parseAuroraInterface(componentName: string): Promise { method getToolCreationGuidelines (line 707) | private getToolCreationGuidelines(bridge: 'nodejs' | 'python'): string { method getToolMethods (line 857) | private async getToolMethods(toolName: string): Promise< method buildLeonContext (line 955) | private async buildLeonContext( method loadPromptTemplate (line 1011) | private async loadPromptTemplate(): Promise { method applyTemplate (line 1016) | private applyTemplate( method buildBridgeSpecificGuidelines (line 1028) | private buildBridgeSpecificGuidelines( method buildSettingsUsageExample (line 1055) | private buildSettingsUsageExample(bridge: 'nodejs' | 'python'): string { method buildBatchProcessingExample (line 1105) | private buildBatchProcessingExample(bridge: 'nodejs' | 'python'): stri... method buildLeonAnswerBasicExample (line 1154) | private buildLeonAnswerBasicExample(bridge: 'nodejs' | 'python'): stri... method buildContextDataExample (line 1184) | private buildContextDataExample(bridge: 'nodejs' | 'python'): string { method buildActionParamsExample (line 1232) | private buildActionParamsExample(bridge: 'nodejs' | 'python'): string { method buildReferenceFilesSection (line 1270) | private async buildReferenceFilesSection( method buildRepoSnapshot (line 1285) | private async buildRepoSnapshot(contextFiles: string[]): Promise { method getContextFileSnapshot (line 1357) | private async getContextFileSnapshot( method buildLeonContextLegacy (line 1375) | private async buildLeonContextLegacy( FILE: bridges/nodejs/src/sdk/tools/openrouter/openrouter-tool.ts constant OPENROUTER_API_KEY (line 6) | const OPENROUTER_API_KEY: string | null = null constant OPENROUTER_MODEL (line 7) | const OPENROUTER_MODEL = 'google/gemini-3-flash-preview' constant DEFAULT_SETTINGS (line 8) | const DEFAULT_SETTINGS: Record = { constant REQUIRED_SETTINGS (line 12) | const REQUIRED_SETTINGS = ['OPENROUTER_API_KEY'] type ChatMessage (line 14) | interface ChatMessage { type ChatCompletionOptions (line 19) | interface ChatCompletionOptions { type CompletionOptions (line 30) | interface CompletionOptions { type StructuredCompletionOptions (line 41) | interface StructuredCompletionOptions { type ApiResponse (line 51) | interface ApiResponse { class OpenRouterTool (line 60) | class OpenRouterTool extends Tool { method constructor (line 67) | constructor(apiKey?: string) { method toolName (line 94) | get toolName(): string { method toolkit (line 98) | get toolkit(): string { method description (line 102) | get description(): string { method setApiKey (line 109) | setApiKey(apiKey: string): void { method chatCompletion (line 116) | async chatCompletion(options: ChatCompletionOptions): Promise { method structuredCompletion (line 245) | async structuredCompletion( method listModels (line 311) | async listModels(): Promise { FILE: bridges/nodejs/src/sdk/tools/qwen3_asr/qwen3_asr-tool.ts type Qwen3ASRTranscriptionOutput (line 10) | type Qwen3ASRTranscriptionOutput = string constant MODEL_NAME (line 12) | const MODEL_NAME = 'qwen3-asr-1.7b' constant FORCED_ALIGNER_MODEL_NAME (line 13) | const FORCED_ALIGNER_MODEL_NAME = 'qwen3-forcedaligner-0.6b' constant DEFAULT_SETTINGS (line 14) | const DEFAULT_SETTINGS: Record = {} constant REQUIRED_SETTINGS (line 15) | const REQUIRED_SETTINGS: string[] = [] type Qwen3ASRTask (line 17) | interface Qwen3ASRTask { class Qwen3ASRTool (line 22) | class Qwen3ASRTool extends Tool { method constructor (line 26) | constructor() { method toolName (line 40) | get toolName(): string { method toolkit (line 45) | get toolkit(): string { method description (line 49) | get description(): string { method transcribeToFile (line 68) | async transcribeToFile( method parseTranscription (line 170) | private parseTranscription( FILE: bridges/nodejs/src/sdk/tools/qwen3_tts/qwen3_tts-tool.ts constant MODEL_BASE_NAME (line 9) | const MODEL_BASE_NAME = 'Qwen3-TTS-12Hz-1.7B-Base' constant MODEL_DESIGN_NAME (line 10) | const MODEL_DESIGN_NAME = 'Qwen3-TTS-12Hz-1.7B-VoiceDesign' constant MODEL_CUSTOM_NAME (line 11) | const MODEL_CUSTOM_NAME = 'Qwen3-TTS-12Hz-1.7B-CustomVoice' constant DEFAULT_SETTINGS (line 12) | const DEFAULT_SETTINGS: Record = {} constant REQUIRED_SETTINGS (line 13) | const REQUIRED_SETTINGS: string[] = [] type SupportedLanguage (line 15) | type SupportedLanguage = type SynthesizeSpeechTask (line 28) | interface SynthesizeSpeechTask { type DesignVoiceTask (line 51) | interface DesignVoiceTask { type CustomVoiceTask (line 71) | interface CustomVoiceTask { type DesignThenSynthesizeTask (line 106) | interface DesignThenSynthesizeTask { class Qwen3TTSTool (line 136) | class Qwen3TTSTool extends Tool { method constructor (line 140) | constructor() { method toolName (line 154) | get toolName(): string { method toolkit (line 159) | get toolkit(): string { method description (line 163) | get description(): string { method synthesizeSpeech (line 170) | async synthesizeSpeech( method designVoice (line 189) | async designVoice( method customVoice (line 208) | async customVoice( method designThenSynthesize (line 227) | async designThenSynthesize( method resolveResourceRoot (line 243) | private async resolveResourceRoot(modelNames: string[]): Promise>( FILE: bridges/nodejs/src/sdk/tools/transcription-schema.ts type TranscriptionSegment (line 1) | interface TranscriptionSegment { type TranscriptionOutput (line 15) | interface TranscriptionOutput { FILE: bridges/nodejs/src/sdk/tools/ultimate_vocal_remover_onnx/ultimate_vocal_remover_onnx-tool.ts constant MODEL_NAME (line 10) | const MODEL_NAME = 'ultimate-vocal-remover-onnx' constant DEFAULT_SETTINGS (line 11) | const DEFAULT_SETTINGS: Record = {} constant REQUIRED_SETTINGS (line 12) | const REQUIRED_SETTINGS: string[] = [] type VocalSeparationTask (line 14) | interface VocalSeparationTask { class UltimateVocalRemoverONNXTool (line 21) | class UltimateVocalRemoverONNXTool extends Tool { method constructor (line 25) | constructor() { method toolName (line 42) | get toolName(): string { method toolkit (line 47) | get toolkit(): string { method description (line 51) | get description(): string { method separateVocals (line 61) | async separateVocals( FILE: bridges/nodejs/src/sdk/tools/ytdlp/ytdlp-tool.ts constant DEFAULT_SETTINGS (line 7) | const DEFAULT_SETTINGS: Record = {} constant REQUIRED_SETTINGS (line 8) | const REQUIRED_SETTINGS: string[] = [] class YtdlpTool (line 10) | class YtdlpTool extends Tool { method constructor (line 14) | constructor() { method toolName (line 29) | get toolName(): string { method toolkit (line 33) | get toolkit(): string { method description (line 37) | get description(): string { method getConfigArgs (line 41) | private getConfigArgs(): string[] { method downloadVideo (line 52) | async downloadVideo(videoUrl: string, outputPath: string): Promise | null type AnswerInput (line 42) | type AnswerInput = TextAnswer | WidgetAnswer | Answer type AnswerOutput (line 43) | type AnswerOutput = SkillAnswerOutput type AnswerConfig (line 44) | type AnswerConfig = SkillAnswerConfigSchema FILE: bridges/nodejs/src/sdk/utils.ts constant HUGGING_FACE_URL (line 8) | const HUGGING_FACE_URL = 'https://huggingface.co' constant HUGGING_FACE_MIRROR_URL (line 9) | const HUGGING_FACE_MIRROR_URL = 'https://hf-mirror.com' function formatFilePath (line 17) | function formatFilePath(filePath: string): string { function formatFilePaths (line 27) | function formatFilePaths(filePaths: string[]): string { function getPlatformName (line 40) | function getPlatformName(): string { function isWindows (line 75) | function isWindows(): boolean { function isMacOS (line 84) | function isMacOS(): boolean { function isLinux (line 93) | function isLinux(): boolean { function canAccessHuggingFace (line 101) | async function canAccessHuggingFace(): Promise { function setHuggingFaceURL (line 116) | async function setHuggingFaceURL(url: string): Promise { function formatBytes (line 137) | function formatBytes(bytes: number): string { function formatSpeed (line 156) | function formatSpeed(speed: string | number): string { function formatETA (line 181) | function formatETA(eta: string | number): string { function extractArchive (line 217) | async function extractArchive( FILE: bridges/nodejs/src/sdk/widget-component.ts type SupportedWidgetEvent (line 1) | type SupportedWidgetEvent = (typeof SUPPORTED_WIDGET_EVENTS)[number] type WidgetEvent (line 2) | interface WidgetEvent { constant SUPPORTED_WIDGET_EVENTS (line 7) | const SUPPORTED_WIDGET_EVENTS = [ function generateId (line 15) | function generateId(): string { method constructor (line 25) | protected constructor(props: T) { method parseEvents (line 32) | private parseEvents(): WidgetEvent[] { FILE: bridges/nodejs/src/sdk/widget.ts type UtteranceSender (line 6) | type UtteranceSender = 'leon' | 'owner' type SendUtteranceWidgetEventMethodParams (line 8) | interface SendUtteranceWidgetEventMethodParams { type RunSkillActionWidgetEventMethodParams (line 12) | interface RunSkillActionWidgetEventMethodParams { type SendUtteranceOptions (line 16) | interface SendUtteranceOptions { type WidgetEventMethod (line 21) | interface WidgetEventMethod { type WidgetOptions (line 27) | interface WidgetOptions { method constructor (line 44) | protected constructor(options: WidgetOptions) { method sendUtterance (line 75) | protected sendUtterance( method runSkillAction (line 97) | protected runSkillAction( method content (line 117) | protected content(key: string, data?: Record): string { FILE: bridges/nodejs/src/tool-runtime.ts type ToolRuntimeCliInput (line 11) | interface ToolRuntimeCliInput { FILE: bridges/nodejs/src/version.ts constant VERSION (line 1) | const VERSION = '1.3.0' FILE: bridges/python/src/main.py function main (line 10) | def main(): FILE: bridges/python/src/sdk/aurora/button.py class Button (line 4) | class Button(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/card.py class Card (line 4) | class Card(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/checkbox.py class Checkbox (line 4) | class Checkbox(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/circular_progress.py class CircularProgress (line 4) | class CircularProgress(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/flexbox.py class Flexbox (line 4) | class Flexbox(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/form.py class Form (line 4) | class Form(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/icon.py class Icon (line 4) | class Icon(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/icon_button.py class IconButton (line 4) | class IconButton(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/image.py class Image (line 4) | class Image(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/input.py class Input (line 4) | class Input(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/link.py class Link (line 4) | class Link(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/list.py class List (line 4) | class List(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/list_header.py class ListHeader (line 4) | class ListHeader(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/list_item.py class ListItem (line 4) | class ListItem(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/loader.py class Loader (line 4) | class Loader(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/progress.py class Progress (line 4) | class Progress(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/radio.py class Radio (line 4) | class Radio(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/radio_group.py class RadioGroup (line 4) | class RadioGroup(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/range_slider.py class RangeSlider (line 4) | class RangeSlider(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/scroll_container.py class ScrollContainer (line 4) | class ScrollContainer(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/select.py class Select (line 4) | class Select(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/select_option.py class SelectOption (line 4) | class SelectOption(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/status.py class Status (line 4) | class Status(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/switch.py class Switch (line 4) | class Switch(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/tab.py class Tab (line 4) | class Tab(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/tab_content.py class TabContent (line 4) | class TabContent(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/tab_group.py class TabGroup (line 4) | class TabGroup(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/tab_list.py class TabList (line 4) | class TabList(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/text.py class Text (line 4) | class Text(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/aurora/widget_wrapper.py class WidgetWrapper (line 4) | class WidgetWrapper(WidgetComponent[dict]): method __init__ (line 5) | def __init__(self, props: dict): FILE: bridges/python/src/sdk/base_tool.py class ExecuteCommandOptions (line 44) | class ExecuteCommandOptions: method __init__ (line 45) | def __init__( class BaseTool (line 62) | class BaseTool(ABC): method __init__ (line 65) | def __init__(self): method tool_name (line 74) | def tool_name(self) -> str: method toolkit (line 80) | def toolkit(self) -> str: method description (line 86) | def description(self) -> str: method alias_tool_name (line 91) | def alias_tool_name(self) -> str: method _get_settings_path (line 99) | def _get_settings_path(self, tool_name: Optional[str] = None) -> str: method _check_required_settings (line 108) | def _check_required_settings(self, tool_name: Optional[str] = None) ->... method get_missing_settings (line 131) | def get_missing_settings(self) -> Optional[Dict[str, Any]]: method _escape_shell_arg (line 134) | def _escape_shell_arg(self, arg: str) -> str: method _get_tool_dir (line 160) | def _get_tool_dir(self, module_file: str) -> str: method _format_command_output (line 163) | def _format_command_output(self, output: str) -> Optional[str]: method _report_command_output (line 174) | def _report_command_output( method _get_bundled_library_paths (line 187) | def _get_bundled_library_paths(self) -> List[str]: method _get_command_env (line 195) | def _get_command_env(self) -> Dict[str, str]: method execute_command (line 216) | def execute_command(self, options: ExecuteCommandOptions) -> str: method _execute_sync_command (line 263) | def _execute_sync_command( method _execute_async_command (line 335) | def _execute_async_command( method _execute_terminal_command (line 422) | def _execute_terminal_command( method _build_terminal_run_command (line 487) | def _build_terminal_run_command( method _build_binary_command (line 501) | def _build_binary_command(self, binary_path: str, args: List[str]) -> ... method _launch_terminal (line 506) | def _launch_terminal(self, command: str) -> None: method _wait_for_marker (line 551) | def _wait_for_marker(self, marker_file: str, timeout_seconds: int) -> ... method _escape_applescript (line 564) | def _escape_applescript(self, value: str) -> str: method _escape_windows_arg (line 567) | def _escape_windows_arg(self, value: str) -> str: method _command_exists (line 570) | def _command_exists(self, command: str) -> bool: method get_binary_path (line 573) | def get_binary_path( method get_resource_path (line 637) | def get_resource_path(self, resource_name: str) -> str: method _is_resource_complete (line 776) | def _is_resource_complete(self, resource_path: str, resource_urls: lis... method _get_resource_relative_path (line 801) | def _get_resource_relative_path(self, resource_url: str) -> str: method _delete_older_binary_versions (line 821) | def _delete_older_binary_versions( method _download_binary_on_demand (line 884) | def _download_binary_on_demand( method _remove_quarantine_attribute (line 923) | def _remove_quarantine_attribute(self, file_path: str) -> None: method _is_archive (line 953) | def _is_archive(self, file_path: str) -> bool: method _download_binary (line 966) | def _download_binary(self, url: str, output_path: str) -> None: method log (line 1076) | def log(self, message: str, *args: Any) -> None: method _handle_download_progress (line 1092) | def _handle_download_progress(self, dl: "Pypdl", file_name: str) -> None: method report (line 1158) | def report( FILE: bridges/python/src/sdk/leon.py class Leon (line 15) | class Leon: method __init__ (line 19) | def __init__(self) -> None: method _load_global_answers (line 24) | def _load_global_answers(self) -> None: method _inject_variables (line 39) | def _inject_variables(answer: AnswerConfig, data_to_inject: Union[Dict... method set_answer_data (line 55) | def set_answer_data(self, answer_key: str, data: Union[AnswerData, Non... method answer (line 85) | def answer(self, answer_input: AnswerInput) -> Optional[str]: FILE: bridges/python/src/sdk/memory.py class MemoryOptions (line 8) | class MemoryOptions(TypedDict, total=False): class Memory (line 13) | class Memory: method __init__ (line 14) | def __init__(self, options: MemoryOptions): method clear (line 35) | def clear(self) -> None: method read (line 44) | def read(self): method write (line 61) | def write(self, memory): FILE: bridges/python/src/sdk/network.py class NetworkOptions (line 10) | class NetworkOptions(TypedDict, total=False): class NetworkResponse (line 14) | class NetworkResponse(TypedDict): class NetworkError (line 20) | class NetworkError(Exception): method __init__ (line 21) | def __init__(self, response: NetworkResponse) -> None: method _format_error_data (line 26) | def _format_error_data(data: Any) -> str: class NetworkRequestOptions (line 36) | class NetworkRequestOptions(TypedDict, total=False): class Network (line 45) | class Network: method __init__ (line 46) | def __init__(self, options: NetworkOptions = {'base_url': None}) -> None: method request (line 49) | def request(self, options: NetworkRequestOptions) -> NetworkResponse: method is_network_error (line 139) | def is_network_error(self, error: Exception) -> bool: method is_network_available (line 142) | def is_network_available(self) -> bool: FILE: bridges/python/src/sdk/params_helper.py class ParamsHelper (line 9) | class ParamsHelper: method __init__ (line 14) | def __init__(self, params: ActionParams): method get_widget_id (line 17) | def get_widget_id(self) -> Optional[str]: method get_action_argument (line 27) | def get_action_argument(self, name: str) -> Optional[Any]: method find_entity (line 36) | def find_entity(self, entity_name: str) -> Optional[NEREntity]: method find_last_entity (line 48) | def find_last_entity(self, entity_name: str) -> Optional[NEREntity]: method find_all_entities (line 61) | def find_all_entities(self, entity_name: str) -> List[NEREntity]: method find_action_argument_from_context (line 72) | def find_action_argument_from_context(self, name: str) -> Optional[Any]: method find_last_action_argument_from_context (line 86) | def find_last_action_argument_from_context(self, name: str) -> Optiona... method find_last_entity_from_context (line 101) | def find_last_entity_from_context(self, entity_name: str) -> Optional[... method find_all_entities_from_context (line 113) | def find_all_entities_from_context(self, entity_name: str) -> List[NER... method get_context_data (line 124) | def get_context_data(self, key: str) -> Optional[Any]: FILE: bridges/python/src/sdk/settings.py class Settings (line 9) | class Settings: method __init__ (line 10) | def __init__(self): method is_setting_set (line 14) | def is_setting_set(self, key: str) -> bool: method clear (line 24) | def clear(self) -> None: method get_settings_sample (line 31) | def get_settings_sample(self) -> dict[str, Any]: method get (line 40) | def get(self, key: str) -> Any: ... method get (line 43) | def get(self, key: None = None) -> dict[str, Any]: ... method get (line 45) | def get(self, key: Union[str, None] = None) -> Union[dict[str, Any], A... method set (line 66) | def set(self, key_or_settings: dict[str, Any]) -> dict[str, Any]: ... method set (line 69) | def set(self, key_or_settings: str, value: Any) -> dict[str, Any]: ... method set (line 71) | def set(self, key_or_settings: Union[str, dict[str, Any]], value: Any ... FILE: bridges/python/src/sdk/tool_manager.py class MissingToolSettingsError (line 8) | class MissingToolSettingsError(Exception): method __init__ (line 9) | def __init__(self, missing: list[str], settings_path: str): class ToolManager (line 15) | class ToolManager: method init_tool (line 17) | def init_tool(tool_class: Type[BaseTool]) -> BaseTool: function is_missing_tool_settings_error (line 45) | def is_missing_tool_settings_error(error: Exception) -> bool: FILE: bridges/python/src/sdk/toolkit_config.py class ToolkitConfig (line 9) | class ToolkitConfig: method load (line 16) | def load(cls, toolkit_name: str, tool_name: str) -> Dict[str, Any]: method load_tool_settings (line 64) | def load_tool_settings( method get_binary_url (line 117) | def get_binary_url(cls, config: Dict[str, Any]) -> Optional[str]: FILE: bridges/python/src/sdk/tools/assemblyai_audio/assemblyai_audio_tool.py class AssemblyAIAudioTool (line 18) | class AssemblyAIAudioTool(BaseTool): method __init__ (line 21) | def __init__(self): method tool_name (line 40) | def tool_name(self) -> str: method toolkit (line 44) | def toolkit(self) -> str: method description (line 48) | def description(self) -> str: method transcribe_to_file (line 51) | def transcribe_to_file( method _parse_transcription (line 155) | def _parse_transcription(self, raw_output: Dict[str, Any]) -> Transcri... FILE: bridges/python/src/sdk/tools/bash/bash_tool.py class BashTool (line 43) | class BashTool(BaseTool): method __init__ (line 46) | def __init__(self): method tool_name (line 56) | def tool_name(self) -> str: method toolkit (line 60) | def toolkit(self) -> str: method description (line 64) | def description(self) -> str: method execute_bash_command (line 67) | def execute_bash_command( method is_safe_command (line 176) | def is_safe_command(self, command: str) -> bool: method get_command_risk_level (line 197) | def get_command_risk_level(self, command: str) -> str: method get_risk_description (line 225) | def get_risk_description(self, command: str) -> str: method _resolve_command_for_safety_analysis (line 253) | def _resolve_command_for_safety_analysis(self, command: str) -> str: method _is_download_piped_to_shell (line 272) | def _is_download_piped_to_shell(self, command_lower: str) -> bool: method _tokenize_command (line 279) | def _tokenize_command(self, command: str) -> List[str]: method _has_token_sequence (line 323) | def _has_token_sequence( method _has_command_token (line 339) | def _has_command_token( method _has_dangerous_dd_pattern (line 351) | def _has_dangerous_dd_pattern(self, tokens: Sequence[str]) -> bool: method _has_eval_download_pattern (line 357) | def _has_eval_download_pattern(self, tokens: Sequence[str]) -> bool: method _normalize_command_token (line 371) | def _normalize_command_token(self, token: str) -> str: method _has_any_token_sequence (line 377) | def _has_any_token_sequence( method _requires_visible_terminal (line 382) | def _requires_visible_terminal(self, command: str) -> bool: method _is_shell_assignment (line 438) | def _is_shell_assignment(self, token: str) -> bool: FILE: bridges/python/src/sdk/tools/cerebras/cerebras_tool.py class CerebrasTool (line 18) | class CerebrasTool(BaseTool): method __init__ (line 23) | def __init__(self, api_key: Optional[str] = None): method tool_name (line 52) | def tool_name(self) -> str: method toolkit (line 56) | def toolkit(self) -> str: method description (line 60) | def description(self) -> str: method set_api_key (line 63) | def set_api_key(self, api_key: str) -> None: method get_available_models (line 67) | def get_available_models(self) -> List[str]: method get_model_id (line 71) | def get_model_id(self, model_name: str) -> str: method chat_completion (line 75) | def chat_completion( method completion (line 156) | def completion( method structured_completion (line 209) | def structured_completion( method list_models (line 266) | def list_models(self) -> Dict[str, Any]: FILE: bridges/python/src/sdk/tools/chatterbox_onnx/chatterbox_onnx_tool.py function split_text_at_punctuation (line 18) | def split_text_at_punctuation( class SynthesisTask (line 78) | class SynthesisTask(TypedDict, total=False): class ChatterboxONNXTool (line 94) | class ChatterboxONNXTool(BaseTool): method __init__ (line 102) | def __init__(self): method tool_name (line 113) | def tool_name(self) -> str: method toolkit (line 118) | def toolkit(self) -> str: method description (line 122) | def description(self) -> str: method synthesize_speech_to_files (line 125) | def synthesize_speech_to_files( FILE: bridges/python/src/sdk/tools/ecapa/ecapa_tool.py class ECAPATool (line 11) | class ECAPATool(BaseTool): method __init__ (line 21) | def __init__(self): method tool_name (line 32) | def tool_name(self) -> str: method toolkit (line 37) | def toolkit(self) -> str: method description (line 41) | def description(self) -> str: method detect_gender (line 44) | def detect_gender(self, input_path: str, device: str = "cpu") -> str: method _parse_gender_output (line 89) | def _parse_gender_output(self, raw_output: str) -> str: FILE: bridges/python/src/sdk/tools/elevenlabs_audio/elevenlabs_audio_tool.py class ElevenLabsAudioTool (line 19) | class ElevenLabsAudioTool(BaseTool): method __init__ (line 22) | def __init__(self): method tool_name (line 42) | def tool_name(self) -> str: method toolkit (line 46) | def toolkit(self) -> str: method description (line 50) | def description(self) -> str: method transcribe_to_file (line 53) | def transcribe_to_file( method _parse_transcription (line 109) | def _parse_transcription(self, raw_output: Dict[str, Any]) -> Transcri... FILE: bridges/python/src/sdk/tools/faster_whisper/faster_whisper_tool.py class FasterWhisperTool (line 14) | class FasterWhisperTool(BaseTool): method __init__ (line 29) | def __init__(self): method tool_name (line 40) | def tool_name(self) -> str: method toolkit (line 45) | def toolkit(self) -> str: method description (line 49) | def description(self) -> str: method transcribe_to_file (line 52) | def transcribe_to_file( method _parse_transcription (line 119) | def _parse_transcription(self, raw_output: str) -> TranscriptionOutput: FILE: bridges/python/src/sdk/tools/ffmpeg/ffmpeg_tool.py class FfmpegTool (line 9) | class FfmpegTool(BaseTool): method __init__ (line 12) | def __init__(self): method tool_name (line 22) | def tool_name(self) -> str: method toolkit (line 26) | def toolkit(self) -> str: method description (line 30) | def description(self) -> str: method _get_global_args (line 33) | def _get_global_args(self) -> List[str]: method convert_video_format (line 37) | def convert_video_format(self, input_path: str, output_path: str) -> str: method extract_audio (line 61) | def extract_audio(self, video_path: str, audio_path: str) -> str: method trim_media (line 118) | def trim_media( method resize_video (line 157) | def resize_video( method combine_video_and_audio (line 186) | def combine_video_and_audio( method compress_video (line 226) | def compress_video(self, input_path: str, output_path: str, bitrate: s... method adjust_tempo (line 252) | def adjust_tempo( method assemble_audio_segments (line 316) | def assemble_audio_segments( FILE: bridges/python/src/sdk/tools/ffprobe/ffprobe_tool.py class MediaFormatInfo (line 10) | class MediaFormatInfo: method __init__ (line 11) | def __init__(self, data: Dict[str, Any]): method to_dict (line 23) | def to_dict(self) -> Dict[str, Any]: class StreamInfo (line 38) | class StreamInfo: method __init__ (line 39) | def __init__(self, data: Dict[str, Any]): method __getitem__ (line 52) | def __getitem__(self, key: str) -> Any: method to_dict (line 55) | def to_dict(self) -> Dict[str, Any]: class FrameInfo (line 59) | class FrameInfo: method __init__ (line 60) | def __init__(self, data: Dict[str, Any]): method __getitem__ (line 75) | def __getitem__(self, key: str) -> Any: method to_dict (line 78) | def to_dict(self) -> Dict[str, Any]: class FfprobeTool (line 82) | class FfprobeTool(BaseTool): method __init__ (line 85) | def __init__(self): method tool_name (line 96) | def tool_name(self) -> str: method toolkit (line 100) | def toolkit(self) -> str: method description (line 104) | def description(self) -> str: method get_media_format_info (line 107) | def get_media_format_info(self, file_path: str) -> MediaFormatInfo: method list_streams (line 142) | def list_streams(self, file_path: str) -> List[StreamInfo]: method get_video_stream_info (line 177) | def get_video_stream_info(self, file_path: str) -> List[StreamInfo]: method get_audio_stream_info (line 194) | def get_audio_stream_info(self, file_path: str) -> List[StreamInfo]: method count_frames (line 211) | def count_frames(self, file_path: str) -> int: method get_frames_info (line 277) | def get_frames_info(self, file_path: str) -> List[FrameInfo]: method get_duration (line 314) | def get_duration(self, file_path: str) -> int: FILE: bridges/python/src/sdk/tools/grok/grok_tool.py class GrokTool (line 23) | class GrokTool(BaseTool): method __init__ (line 37) | def __init__(self): method tool_name (line 54) | def tool_name(self) -> str: method toolkit (line 58) | def toolkit(self) -> str: method description (line 62) | def description(self) -> str: method set_api_key (line 65) | def set_api_key(self, api_key: str) -> None: method list_models (line 69) | def list_models(self) -> Dict[str, Any]: method chat_completion (line 100) | def chat_completion( method search_web (line 191) | def search_web( method search_x (line 225) | def search_x( method search (line 271) | def search( method deep_research (line 308) | def deep_research( method get_trending_on_x (line 349) | def get_trending_on_x( FILE: bridges/python/src/sdk/tools/open_meteo/open_meteo_tool.py function _degrees_to_compass (line 62) | def _degrees_to_compass(degrees: float) -> str: function _celsius_to_fahrenheit (line 67) | def _celsius_to_fahrenheit(celsius: float) -> str: function _get_weather_description (line 71) | def _get_weather_description(code: int) -> str: function _map_hourly_to_current (line 75) | def _map_hourly_to_current(hourly: Dict[str, Any]) -> Optional[Dict[str,... class OpenMeteoTool (line 118) | class OpenMeteoTool(BaseTool): method __init__ (line 121) | def __init__(self) -> None: method tool_name (line 135) | def tool_name(self) -> str: method toolkit (line 139) | def toolkit(self) -> str: method description (line 143) | def description(self) -> str: method get_current_conditions (line 146) | def get_current_conditions( method _geocode (line 209) | def _geocode(self, location: str) -> Optional[Dict[str, Any]]: method _fetch_weather (line 246) | def _fetch_weather( FILE: bridges/python/src/sdk/tools/openai_audio/openai_audio_tool.py class OpenAIAudioTool (line 19) | class OpenAIAudioTool(BaseTool): method __init__ (line 22) | def __init__(self): method tool_name (line 40) | def tool_name(self) -> str: method toolkit (line 45) | def toolkit(self) -> str: method description (line 49) | def description(self) -> str: method transcribe_to_file (line 52) | def transcribe_to_file( method _parse_transcription (line 105) | def _parse_transcription(self, raw_output: Dict[str, Any]) -> Transcri... FILE: bridges/python/src/sdk/tools/opencode/opencode_tool.py class OpenCodeTool (line 27) | class OpenCodeTool(BaseTool): method __init__ (line 32) | def __init__(self): method _load_providers_from_settings (line 62) | def _load_providers_from_settings(self, tool_settings: Dict[str, Any])... method tool_name (line 85) | def tool_name(self) -> str: method toolkit (line 89) | def toolkit(self) -> str: method description (line 93) | def description(self) -> str: method configure_provider (line 96) | def configure_provider( method get_configured_providers (line 110) | def get_configured_providers(self) -> List[str]: method get_available_providers (line 114) | def get_available_providers(self) -> List[str]: method get_default_model (line 118) | def get_default_model(self, provider: str) -> str: method _setup_provider_auth (line 125) | def _setup_provider_auth(self, provider: str, api_key: str) -> None: method _analyze_relevant_toolkits (line 146) | def _analyze_relevant_toolkits(self, description: str) -> set: method _scan_available_toolkits (line 208) | def _scan_available_toolkits(self, relevant_toolkits: Optional[set] = ... method _get_tool_methods (line 284) | def _get_tool_methods(self, tool_name: str) -> List[Dict[str, str]]: method _scan_aurora_components (line 331) | def _scan_aurora_components(self) -> str: method _get_tool_creation_guidelines (line 435) | def _get_tool_creation_guidelines(self, bridge: str) -> str: method _build_leon_context (line 586) | def _build_leon_context( method _load_prompt_template (line 647) | def _load_prompt_template(self) -> str: method _apply_template (line 651) | def _apply_template(self, template: str, values: Dict[str, str]) -> str: method _build_bridge_specific_guidelines (line 657) | def _build_bridge_specific_guidelines( method _build_settings_usage_example (line 681) | def _build_settings_usage_example(self, bridge: str) -> str: method _build_batch_processing_example (line 729) | def _build_batch_processing_example(self, bridge: str) -> str: method _build_leon_answer_basic_example (line 776) | def _build_leon_answer_basic_example(self, bridge: str) -> str: method _build_context_data_example (line 804) | def _build_context_data_example(self, bridge: str) -> str: method _build_action_params_example (line 850) | def _build_action_params_example(self, bridge: str) -> str: method _build_reference_files_section (line 886) | def _build_reference_files_section(self, context_files: List[str]) -> ... method _build_repo_snapshot (line 893) | def _build_repo_snapshot(self, context_files: List[str]) -> str: method _format_snapshot_date (line 931) | def _format_snapshot_date(self, value: Optional[float]) -> str: method _get_latest_mtime (line 936) | def _get_latest_mtime(self, dir_path: Path) -> Optional[float]: method _get_context_file_snapshot (line 946) | def _get_context_file_snapshot(self, context_files: List[str]) -> List... method _build_leon_context_legacy (line 959) | def _build_leon_context_legacy( method generate_skill (line 1714) | def generate_skill( method _get_existing_skills (line 1813) | def _get_existing_skills(self, skills_dir: Path) -> set: method _get_created_files (line 1825) | def _get_created_files(self, skills_dir: Path, existing_skills: set) -... method _get_all_files_recursive (line 1844) | def _get_all_files_recursive(self, dir_path: Path) -> List[Path]: FILE: bridges/python/src/sdk/tools/openrouter/openrouter_tool.py class OpenRouterTool (line 17) | class OpenRouterTool(BaseTool): method __init__ (line 22) | def __init__(self, api_key: Optional[str] = None): method tool_name (line 44) | def tool_name(self) -> str: method toolkit (line 48) | def toolkit(self) -> str: method description (line 52) | def description(self) -> str: method set_api_key (line 55) | def set_api_key(self, api_key: str) -> None: method chat_completion (line 59) | def chat_completion( method completion (line 139) | def completion( method structured_completion (line 192) | def structured_completion( method list_models (line 250) | def list_models(self) -> Dict[str, Any]: FILE: bridges/python/src/sdk/tools/qwen3_asr/qwen3_asr_tool.py class Qwen3ASRTool (line 18) | class Qwen3ASRTool(BaseTool): method __init__ (line 29) | def __init__(self): method tool_name (line 40) | def tool_name(self) -> str: method toolkit (line 45) | def toolkit(self) -> str: method description (line 49) | def description(self) -> str: method transcribe_to_file (line 52) | def transcribe_to_file( method parse_transcription (line 160) | def parse_transcription(self, raw_output: str) -> TranscriptionOutput: FILE: bridges/python/src/sdk/tools/qwen3_tts/qwen3_tts_tool.py class SynthesizeSpeechTask (line 45) | class SynthesizeSpeechTask(TypedDict, total=False): class DesignVoiceTask (line 67) | class DesignVoiceTask(TypedDict, total=False): class CustomVoiceTask (line 86) | class CustomVoiceTask(TypedDict, total=False): class DesignThenSynthesizeTask (line 121) | class DesignThenSynthesizeTask(TypedDict, total=False): class Qwen3TTSTool (line 150) | class Qwen3TTSTool(BaseTool): method __init__ (line 157) | def __init__(self): method tool_name (line 168) | def tool_name(self) -> str: method toolkit (line 173) | def toolkit(self) -> str: method description (line 177) | def description(self) -> str: method synthesize_speech (line 180) | def synthesize_speech( method design_voice (line 196) | def design_voice( method custom_voice (line 212) | def custom_voice( method design_then_synthesize (line 228) | def design_then_synthesize( method _resolve_resource_root (line 244) | def _resolve_resource_root(self, model_names: List[str]) -> str: method _run_tasks (line 255) | def _run_tasks( FILE: bridges/python/src/sdk/tools/transcription_schema.py class TranscriptionMetadata (line 15) | class TranscriptionMetadata(TypedDict): class TranscriptionOutput (line 20) | class TranscriptionOutput(TypedDict): FILE: bridges/python/src/sdk/tools/ultimate_vocal_remover_onnx/ultimate_vocal_remover_onnx_tool.py class VocalSeparationTask (line 16) | class VocalSeparationTask(TypedDict, total=False): class UltimateVocalRemoverONNXTool (line 25) | class UltimateVocalRemoverONNXTool(BaseTool): method __init__ (line 32) | def __init__(self): method tool_name (line 43) | def tool_name(self) -> str: method toolkit (line 48) | def toolkit(self) -> str: method description (line 52) | def description(self) -> str: method separate_vocals (line 55) | def separate_vocals( FILE: bridges/python/src/sdk/tools/ytdlp/ytdlp_tool.py class YtdlpTool (line 10) | class YtdlpTool(BaseTool): method __init__ (line 13) | def __init__(self): method tool_name (line 23) | def tool_name(self) -> str: method toolkit (line 27) | def toolkit(self) -> str: method description (line 31) | def description(self) -> str: method _get_config_args (line 34) | def _get_config_args(self): method download_video (line 38) | def download_video(self, video_url: str, output_path: str) -> str: method download_audio_only (line 87) | def download_audio_only( method download_playlist (line 146) | def download_playlist(self, playlist_url: str, output_path: str) -> str: method download_video_by_quality (line 177) | def download_video_by_quality( method download_subtitles (line 282) | def download_subtitles( method download_video_with_thumbnail (line 324) | def download_video_with_thumbnail(self, video_url: str, output_path: s... FILE: bridges/python/src/sdk/types.py class NLUResultSentiment (line 6) | class NLUResultSentiment(TypedDict): class Context (line 11) | class Context(TypedDict): class SkillConfig (line 19) | class SkillConfig(TypedDict): class ExtraContext (line 26) | class ExtraContext(TypedDict): class ActionParams (line 35) | class ActionParams(TypedDict): class Answer (line 53) | class Answer(TypedDict, total=False): class TextAnswer (line 61) | class TextAnswer(Answer): class WidgetAnswer (line 65) | class WidgetAnswer(Answer): class AnswerInput (line 70) | class AnswerInput(TypedDict, total=False): class AnswerConfig (line 78) | class AnswerConfig(TypedDict, total=False): FILE: bridges/python/src/sdk/utils.py function can_access_hugging_face (line 14) | def can_access_hugging_face() -> bool: function set_hugging_face_url (line 31) | def set_hugging_face_url(url: str) -> str: function format_file_path (line 54) | def format_file_path(file_path: str) -> str: function format_file_paths (line 69) | def format_file_paths(file_paths: List[str]) -> str: function get_platform_name (line 84) | def get_platform_name() -> str: function is_windows (line 118) | def is_windows() -> bool: function is_macos (line 130) | def is_macos() -> bool: function is_linux (line 142) | def is_linux() -> bool: function format_bytes (line 154) | def format_bytes(bytes_val: float) -> str: function format_speed (line 176) | def format_speed(speed: Union[float, str]) -> str: function format_eta (line 207) | def format_eta(eta_str: str) -> str: function extract_archive (line 244) | def extract_archive( FILE: bridges/python/src/sdk/widget.py class SendUtteranceWidgetEventMethodParams (line 15) | class SendUtteranceWidgetEventMethodParams(TypedDict): class RunSkillActionWidgetEventMethodParams (line 20) | class RunSkillActionWidgetEventMethodParams(TypedDict): class SendUtteranceOptions (line 25) | class SendUtteranceOptions(TypedDict, total=False): class WidgetEventMethod (line 30) | class WidgetEventMethod(TypedDict): class WidgetOptions (line 39) | class WidgetOptions(Generic[T]): class Widget (line 45) | class Widget(ABC, Generic[T]): method __init__ (line 46) | def __init__(self, options: WidgetOptions[T]): method render (line 65) | def render(self) -> WidgetComponent: method send_utterance (line 68) | def send_utterance(self, key: str, options: Optional[Dict[str, Any]] =... method run_skill_action (line 85) | def run_skill_action(self, action_name: str, params: Dict[str, Any]) -... method content (line 99) | def content(self, key: str, data: Optional[Dict[str, Any]] = None) -> ... FILE: bridges/python/src/sdk/widget_component.py function generate_id (line 16) | def generate_id() -> str: class WidgetEvent (line 20) | class WidgetEvent(TypedDict): class WidgetComponent (line 26) | class WidgetComponent(Generic[T]): method __init__ (line 27) | def __init__(self, props: T): method parse_events (line 33) | def parse_events(self) -> List[WidgetEvent]: method __dict__ (line 48) | def __dict__(self): FILE: scripts/build-binaries.js constant BUILD_TARGETS (line 33) | const BUILD_TARGETS = new Map() FILE: scripts/generate/generate-prompt.js constant TOOL_ALIAS_NAME (line 15) | const TOOL_ALIAS_NAME = 'Qwen3-TTS' constant TOOL_NAME (line 16) | const TOOL_NAME = 'qwen3_tts' constant TOOL_TS_FILE_NAME (line 17) | const TOOL_TS_FILE_NAME = `${TOOL_NAME}-tool.ts` constant TOOL_PYTHON_FILE_NAME (line 18) | const TOOL_PYTHON_FILE_NAME = `${TOOL_NAME}_tool.py` constant TOOL_TOOLKIT_NAME (line 19) | const TOOL_TOOLKIT_NAME = 'music_audio' constant TOOL_DESCRIPTION (line 20) | const TOOL_DESCRIPTION = `${TOOL_ALIAS_NAME} is a tool designed to facil... constant TOOL_PURPOSE_REQUIREMENT (line 21) | const TOOL_PURPOSE_REQUIREMENT = `The goal of this tool is to bind the f... constant TEMPLATE_CONFIGS (line 29) | const TEMPLATE_CONFIGS = { FILE: scripts/release/pre-release-binaries.js constant BUILD_TARGETS (line 20) | const BUILD_TARGETS = new Map() FILE: scripts/run-agentic-loop-vitest.ts type AgenticLoopSuite (line 4) | type AgenticLoopSuite = 'unit' | 'e2e' function extractTestNamePattern (line 6) | function extractTestNamePattern(args: string[]): string | null { function resolveSuitePath (line 34) | function resolveSuitePath(suite: AgenticLoopSuite): string { FILE: scripts/setup/setup-binaries.js constant TARGETS (line 30) | const TARGETS = new Map() FILE: scripts/setup/setup-cmake.js function readManifest (line 26) | function readManifest() { function cleanInstallDirectory (line 38) | async function cleanInstallDirectory() { function getDownloadURL (line 57) | function getDownloadURL() { function setupCMake (line 69) | async function setupCMake() { FILE: scripts/setup/setup-llama-cpp.js constant LLAMA_SERVER_BINARY_NAME (line 32) | const LLAMA_SERVER_BINARY_NAME = SystemHelper.isWindows() constant LLAMACPP_SOURCE_DOWNLOAD_MAX_ATTEMPTS (line 35) | const LLAMACPP_SOURCE_DOWNLOAD_MAX_ATTEMPTS = 2 constant LLAMACPP_SOURCE_ARCHIVE_SETTLE_DELAY_MS (line 36) | const LLAMACPP_SOURCE_ARCHIVE_SETTLE_DELAY_MS = 500 constant LLAMACPP_SOURCE_ARCHIVE_SETTLE_POLL_DELAY_MS (line 37) | const LLAMACPP_SOURCE_ARCHIVE_SETTLE_POLL_DELAY_MS = 250 constant LLAMACPP_SOURCE_ARCHIVE_SETTLE_MAX_POLLS (line 38) | const LLAMACPP_SOURCE_ARCHIVE_SETTLE_MAX_POLLS = 6 constant LLAMACPP_RELEASE_BASE_URL (line 39) | const LLAMACPP_RELEASE_BASE_URL = `https://github.com/ggml-org/llama.cpp... constant LLAMACPP_SOURCE_URL (line 40) | const LLAMACPP_SOURCE_URL = `https://github.com/ggml-org/llama.cpp/archi... function readManifest (line 42) | function readManifest() { function removePath (line 85) | async function removePath(targetPath) { function wait (line 89) | function wait(delayMs) { function movePath (line 95) | async function movePath(sourcePath, destinationPath) { function getBinaryPath (line 117) | function getBinaryPath(directoryPath) { function isExistingInstallationHealthy (line 121) | async function isExistingInstallationHealthy(runtimeDirectoryPath) { function findDirectoryContainingBinary (line 143) | async function findDirectoryContainingBinary(rootPath, binaryName) { function cleanInstallDirectory (line 166) | async function cleanInstallDirectory() { function writeManifest (line 180) | async function writeManifest( function pruneSourceTree (line 201) | async function pruneSourceTree() { function waitForArchiveToSettle (line 215) | async function waitForArchiveToSettle(archivePath) { function downloadAndExtractSourceArchive (line 234) | async function downloadAndExtractSourceArchive(sourceArchivePath) { function getLinuxVulkanAssetName (line 277) | function getLinuxVulkanAssetName() { function getPrebuiltAssetName (line 281) | function getPrebuiltAssetName(graphicsComputeAPI, hasGPU) { function installPrebuilt (line 303) | async function installPrebuilt(assetName, extraData = {}) { function buildFromSource (line 355) | async function buildFromSource() { function setupLlamaCPP (line 409) | async function setupLlamaCPP() { FILE: scripts/setup/setup-local-llm.js constant DEFAULT_LLM_OPTIONS (line 25) | const DEFAULT_LLM_OPTIONS = [ function readManifest (line 44) | function readManifest() { function toRelativeModelPath (line 56) | function toRelativeModelPath(modelPath) { function removePreviousDefaultModel (line 60) | async function removePreviousDefaultModel(previousModelPath, nextModelPa... function getSelectedModel (line 75) | function getSelectedModel(totalVRAM) { function inspectHardware (line 83) | async function inspectHardware() { function canInstallDefaultLLM (line 108) | async function canInstallDefaultLLM(hardware) { function downloadLLM (line 125) | async function downloadLLM(selectedModel) { function setupLocalLLM (line 171) | async function setupLocalLLM() { FILE: scripts/setup/setup-ninja.js function readManifest (line 26) | function readManifest() { function cleanInstallDirectory (line 38) | async function cleanInstallDirectory() { function getDownloadURL (line 57) | function getDownloadURL() { function setupNinja (line 69) | async function setupNinja() { FILE: scripts/setup/setup-nvidia-libs.js function mapToNvidiaArch (line 48) | function mapToNvidiaArch(cpuArch) { function ensureDirectoryLink (line 60) | async function ensureDirectoryLink(linkPath, targetPath) { function ensureCompatibilityLinks (line 74) | async function ensureCompatibilityLinks() { function readManifest (line 89) | function readManifest(manifestPath) { function getNVIDIADownloadURL (line 106) | function getNVIDIADownloadURL(library, version) { function installNVIDIALibrary (line 145) | async function installNVIDIALibrary( function setupNVIDIALibs (line 226) | async function setupNVIDIALibs() { FILE: scripts/setup/setup-python-dev-env.js function getModelInstallationFileUrl (line 30) | function getModelInstallationFileUrl(model, mirror = undefined) { constant SETUP_TARGETS (line 46) | const SETUP_TARGETS = new Map() constant SPACY_MODELS (line 47) | const SPACY_MODELS = new Map() FILE: scripts/setup/setup-pytorch.js function ensureDirectoryLink (line 19) | async function ensureDirectoryLink(linkPath, targetPath) { function getPyTorchPlatform (line 36) | function getPyTorchPlatform() { function getPyTorchDownloadURL (line 63) | function getPyTorchDownloadURL(version) { function readManifest (line 86) | function readManifest(manifestPath) { function installPyTorch (line 103) | async function installPyTorch(requiredVersion, targetPath, manifestPath) { function setupPyTorch (line 180) | async function setupPyTorch() { FILE: scripts/setup/setup-qmd-llm.js constant QMD_MODELS_DIR_PATH (line 9) | const QMD_MODELS_DIR_PATH = path.join(homedir(), '.cache', 'qmd', 'models') constant QMD_MODELS (line 11) | const QMD_MODELS = [ function getModelFilenameFromURL (line 30) | function getModelFilenameFromURL(modelURL) { function downloadModel (line 36) | async function downloadModel(model) { FILE: scripts/setup/setup-tcp-server-models.js constant ASR_MODEL_FILES (line 18) | const ASR_MODEL_FILES = [ constant TTS_BERT_BASE_MODEL_FILES (line 31) | const TTS_BERT_BASE_MODEL_FILES = [ function installTTSModel (line 39) | async function installTTSModel() { function installASRModel (line 60) | async function installASRModel() { function installTTSBERTBaseModel (line 112) | async function installTTSBERTBaseModel() { FILE: scripts/train/train-llm-actions-classifier.js constant LANG (line 9) | const LANG = 'en' FILE: server/src/constants.ts constant PRODUCTION_ENV (line 11) | const PRODUCTION_ENV = 'production' constant DEVELOPMENT_ENV (line 12) | const DEVELOPMENT_ENV = 'development' constant TESTING_ENV (line 13) | const TESTING_ENV = 'testing' constant GITHUB_URL (line 15) | const GITHUB_URL = 'https://github.com/leon-ai/leon' constant API_VERSION (line 16) | const API_VERSION = 'v1' constant LEON_NODE_ENV (line 25) | const LEON_NODE_ENV = process.env['LEON_NODE_ENV'] || PRODUCTION_ENV constant IS_PRODUCTION_ENV (line 26) | const IS_PRODUCTION_ENV = LEON_NODE_ENV === PRODUCTION_ENV constant IS_DEVELOPMENT_ENV (line 27) | const IS_DEVELOPMENT_ENV = LEON_NODE_ENV === DEVELOPMENT_ENV constant IS_TESTING_ENV (line 28) | const IS_TESTING_ENV = LEON_NODE_ENV === TESTING_ENV constant BIN_PATH (line 33) | const BIN_PATH = path.join(process.cwd(), 'bin') constant LOGS_PATH (line 34) | const LOGS_PATH = path.join(process.cwd(), 'logs') constant SKILLS_PATH (line 35) | const SKILLS_PATH = path.join(process.cwd(), 'skills') constant GLOBAL_CORE_PATH (line 36) | const GLOBAL_CORE_PATH = path.join(process.cwd(), 'core') constant GLOBAL_DATA_PATH (line 37) | const GLOBAL_DATA_PATH = path.join(GLOBAL_CORE_PATH, 'data') constant CONTEXT_PATH (line 38) | const CONTEXT_PATH = path.join(GLOBAL_CORE_PATH, 'context') constant MEMORY_PATH (line 39) | const MEMORY_PATH = path.join(GLOBAL_CORE_PATH, 'memory') constant MEMORY_DB_PATH (line 40) | const MEMORY_DB_PATH = path.join(MEMORY_PATH, 'index.sqlite') constant MODELS_PATH (line 41) | const MODELS_PATH = path.join(GLOBAL_DATA_PATH, 'models') constant AUDIO_MODELS_PATH (line 42) | const AUDIO_MODELS_PATH = path.join(MODELS_PATH, 'audio') constant VOICE_CONFIG_PATH (line 43) | const VOICE_CONFIG_PATH = path.join( constant SERVER_PATH (line 48) | const SERVER_PATH = path.join( constant TMP_PATH (line 53) | const TMP_PATH = path.join(SERVER_PATH, 'tmp') constant SERVER_CORE_PATH (line 54) | const SERVER_CORE_PATH = path.join(SERVER_PATH, 'core') constant LEON_FILE_PATH (line 55) | const LEON_FILE_PATH = path.join(process.cwd(), 'leon.json') constant NVIDIA_LIBS_PATH (line 65) | const NVIDIA_LIBS_PATH = path.join(BIN_PATH, 'nvidia') constant NVIDIA_CUBLAS_PATH (line 66) | const NVIDIA_CUBLAS_PATH = path.join(NVIDIA_LIBS_PATH, 'cublas') constant NVIDIA_CUDNN_PATH (line 67) | const NVIDIA_CUDNN_PATH = path.join(NVIDIA_LIBS_PATH, 'cudnn') constant NVIDIA_CUDA_CUDART_PATH (line 68) | const NVIDIA_CUDA_CUDART_PATH = path.join( constant NVIDIA_CUDA_CUPTI_PATH (line 72) | const NVIDIA_CUDA_CUPTI_PATH = path.join( constant NVIDIA_CUSPARSE_PATH (line 76) | const NVIDIA_CUSPARSE_PATH = path.join(NVIDIA_LIBS_PATH, 'cusparse') constant NVIDIA_CUSPARSELT_PATH (line 77) | const NVIDIA_CUSPARSELT_PATH = path.join(NVIDIA_LIBS_PATH, 'cusparselt') constant NVIDIA_CUSPARSE_FULL_PATH (line 78) | const NVIDIA_CUSPARSE_FULL_PATH = path.join( constant NVIDIA_NCCL_PATH (line 82) | const NVIDIA_NCCL_PATH = path.join(NVIDIA_LIBS_PATH, 'nccl') constant NVIDIA_NVSHMEM_PATH (line 83) | const NVIDIA_NVSHMEM_PATH = path.join(NVIDIA_LIBS_PATH, 'nvshmem') constant NVIDIA_NVJITLINK_PATH (line 84) | const NVIDIA_NVJITLINK_PATH = path.join(NVIDIA_LIBS_PATH, 'nvjitlink') constant NVIDIA_VERSIONS_PATH (line 85) | const NVIDIA_VERSIONS_PATH = path.join(NVIDIA_LIBS_PATH, 'versions.json') constant NVIDIA_CUBLAS_MANIFEST_PATH (line 86) | const NVIDIA_CUBLAS_MANIFEST_PATH = path.join( constant NVIDIA_CUDNN_MANIFEST_PATH (line 90) | const NVIDIA_CUDNN_MANIFEST_PATH = path.join( constant NVIDIA_CUDA_CUDART_MANIFEST_PATH (line 94) | const NVIDIA_CUDA_CUDART_MANIFEST_PATH = path.join( constant NVIDIA_CUDA_CUPTI_MANIFEST_PATH (line 98) | const NVIDIA_CUDA_CUPTI_MANIFEST_PATH = path.join( constant NVIDIA_CUSPARSE_MANIFEST_PATH (line 102) | const NVIDIA_CUSPARSE_MANIFEST_PATH = path.join( constant NVIDIA_CUSPARSE_FULL_MANIFEST_PATH (line 106) | const NVIDIA_CUSPARSE_FULL_MANIFEST_PATH = path.join( constant NVIDIA_NCCL_MANIFEST_PATH (line 110) | const NVIDIA_NCCL_MANIFEST_PATH = path.join( constant NVIDIA_NVSHMEM_MANIFEST_PATH (line 114) | const NVIDIA_NVSHMEM_MANIFEST_PATH = path.join( constant NVIDIA_NVJITLINK_MANIFEST_PATH (line 118) | const NVIDIA_NVJITLINK_MANIFEST_PATH = path.join( constant NVIDIA_VERSIONS (line 122) | const NVIDIA_VERSIONS = JSON.parse( constant NVIDIA_CUDA_VERSION (line 125) | const NVIDIA_CUDA_VERSION = NVIDIA_VERSIONS.cuda constant NVIDIA_CUDNN_VERSION (line 126) | const NVIDIA_CUDNN_VERSION = NVIDIA_VERSIONS.cudnn constant NVIDIA_CUBLAS_VERSION (line 127) | const NVIDIA_CUBLAS_VERSION = NVIDIA_VERSIONS.cublas constant NVIDIA_CUDA_CUDART_VERSION (line 128) | const NVIDIA_CUDA_CUDART_VERSION = NVIDIA_VERSIONS.cuda_cudart constant NVIDIA_CUDA_CUPTI_VERSION (line 129) | const NVIDIA_CUDA_CUPTI_VERSION = NVIDIA_VERSIONS.cuda_cupti constant NVIDIA_CUSPARSE_VERSION (line 130) | const NVIDIA_CUSPARSE_VERSION = NVIDIA_VERSIONS.cusparse constant NVIDIA_CUSPARSE_FULL_VERSION (line 131) | const NVIDIA_CUSPARSE_FULL_VERSION = NVIDIA_VERSIONS.cusparse_full constant NVIDIA_NCCL_VERSION (line 132) | const NVIDIA_NCCL_VERSION = NVIDIA_VERSIONS.nccl constant NVIDIA_NVSHMEM_VERSION (line 133) | const NVIDIA_NVSHMEM_VERSION = NVIDIA_VERSIONS.nvshmem constant NVIDIA_NVJITLINK_VERSION (line 134) | const NVIDIA_NVJITLINK_VERSION = NVIDIA_VERSIONS.nvjitlink constant CMAKE_PATH (line 140) | const CMAKE_PATH = path.join(BIN_PATH, 'cmake') constant CMAKE_VERSIONS_PATH (line 141) | const CMAKE_VERSIONS_PATH = path.join(CMAKE_PATH, 'versions.json') constant CMAKE_INSTALL_PATH (line 142) | const CMAKE_INSTALL_PATH = path.join(CMAKE_PATH, 'cmake') constant CMAKE_MANIFEST_PATH (line 143) | const CMAKE_MANIFEST_PATH = path.join(CMAKE_INSTALL_PATH, 'manifest.json') constant CMAKE_VERSIONS (line 144) | const CMAKE_VERSIONS = JSON.parse(fs.readFileSync(CMAKE_VERSIONS_PATH, '... constant CMAKE_VERSION (line 145) | const CMAKE_VERSION = CMAKE_VERSIONS.cmake constant CMAKE_BIN_PATH (line 146) | const CMAKE_BIN_PATH = path.join(CMAKE_INSTALL_PATH, 'bin', 'cmake') constant NINJA_PATH (line 152) | const NINJA_PATH = path.join(BIN_PATH, 'ninja') constant NINJA_VERSIONS_PATH (line 153) | const NINJA_VERSIONS_PATH = path.join(NINJA_PATH, 'versions.json') constant NINJA_INSTALL_PATH (line 154) | const NINJA_INSTALL_PATH = path.join(NINJA_PATH, 'ninja') constant NINJA_MANIFEST_PATH (line 155) | const NINJA_MANIFEST_PATH = path.join(NINJA_INSTALL_PATH, 'manifest.json') constant NINJA_VERSIONS (line 156) | const NINJA_VERSIONS = JSON.parse(fs.readFileSync(NINJA_VERSIONS_PATH, '... constant NINJA_VERSION (line 157) | const NINJA_VERSION = NINJA_VERSIONS.ninja constant NINJA_BIN_PATH (line 158) | const NINJA_BIN_PATH = path.join(NINJA_INSTALL_PATH, 'ninja') constant LLAMACPP_PATH (line 164) | const LLAMACPP_PATH = path.join(BIN_PATH, 'llama.cpp') constant LLAMACPP_VERSIONS_PATH (line 165) | const LLAMACPP_VERSIONS_PATH = path.join(LLAMACPP_PATH, 'versions.json') constant LLAMACPP_BUILD_PATH (line 166) | const LLAMACPP_BUILD_PATH = path.join(LLAMACPP_PATH, 'build') constant LLAMACPP_SOURCE_PATH (line 167) | const LLAMACPP_SOURCE_PATH = path.join(LLAMACPP_PATH, 'llama.cpp') constant LLAMACPP_SOURCE_BUILD_PATH (line 168) | const LLAMACPP_SOURCE_BUILD_PATH = path.join( constant LLAMACPP_ROOT_MANIFEST_PATH (line 173) | const LLAMACPP_ROOT_MANIFEST_PATH = path.join(LLAMACPP_PATH, 'manifest.j... constant LLAMACPP_BUILD_MANIFEST_PATH (line 174) | const LLAMACPP_BUILD_MANIFEST_PATH = path.join( constant LLAMACPP_SOURCE_MANIFEST_PATH (line 178) | const LLAMACPP_SOURCE_MANIFEST_PATH = path.join( constant LLAMACPP_VERSIONS (line 182) | const LLAMACPP_VERSIONS = JSON.parse( constant LLAMACPP_RELEASE_VERSION (line 185) | const LLAMACPP_RELEASE_VERSION = LLAMACPP_VERSIONS['llama.cpp'] constant PYTORCH_PATH (line 191) | const PYTORCH_PATH = path.join(BIN_PATH, 'pytorch') constant PYTORCH_TORCH_PATH (line 192) | const PYTORCH_TORCH_PATH = path.join(PYTORCH_PATH, 'torch') constant PYTORCH_NVIDIA_PATH (line 193) | const PYTORCH_NVIDIA_PATH = path.join(PYTORCH_TORCH_PATH, 'nvidia') constant PYTORCH_VERSIONS_PATH (line 194) | const PYTORCH_VERSIONS_PATH = path.join(PYTORCH_PATH, 'versions.json') constant PYTORCH_MANIFEST_PATH (line 195) | const PYTORCH_MANIFEST_PATH = path.join( constant PYTORCH_VERSIONS (line 199) | const PYTORCH_VERSIONS = JSON.parse( constant PYTORCH_VERSION (line 202) | const PYTORCH_VERSION = PYTORCH_VERSIONS.torch constant BINARIES_FOLDER_NAME (line 207) | const BINARIES_FOLDER_NAME = SystemHelper.getBinariesFolderName() constant BRIDGES_PATH (line 208) | const BRIDGES_PATH = path.join(process.cwd(), 'bridges') constant TOOLKITS_PATH (line 209) | const TOOLKITS_PATH = path.join(BRIDGES_PATH, 'toolkits') constant NODEJS_BRIDGE_ROOT_PATH (line 210) | const NODEJS_BRIDGE_ROOT_PATH = path.join(BRIDGES_PATH, 'nodejs') constant PYTHON_BRIDGE_ROOT_PATH (line 211) | const PYTHON_BRIDGE_ROOT_PATH = path.join(BRIDGES_PATH, 'python') constant PYTHON_TCP_SERVER_ROOT_PATH (line 212) | const PYTHON_TCP_SERVER_ROOT_PATH = path.join( constant NODEJS_BRIDGE_DIST_PATH (line 217) | const NODEJS_BRIDGE_DIST_PATH = path.join( constant PYTHON_BRIDGE_DIST_PATH (line 221) | const PYTHON_BRIDGE_DIST_PATH = path.join( constant PYTHON_TCP_SERVER_DIST_PATH (line 225) | const PYTHON_TCP_SERVER_DIST_PATH = path.join( constant NODEJS_BRIDGE_SRC_PATH (line 230) | const NODEJS_BRIDGE_SRC_PATH = path.join(NODEJS_BRIDGE_ROOT_PATH, 'src') constant NODEJS_BRIDGE_TOOL_RUNTIME_SRC_PATH (line 231) | const NODEJS_BRIDGE_TOOL_RUNTIME_SRC_PATH = path.join( constant NODEJS_BRIDGE_TOOL_RUNTIME_DIST_PATH (line 235) | const NODEJS_BRIDGE_TOOL_RUNTIME_DIST_PATH = path.join( constant PYTHON_BRIDGE_SRC_PATH (line 239) | const PYTHON_BRIDGE_SRC_PATH = path.join(PYTHON_BRIDGE_ROOT_PATH, 'src') constant PYTHON_TCP_SERVER_SRC_PATH (line 240) | const PYTHON_TCP_SERVER_SRC_PATH = path.join( constant PYTHON_TCP_SERVER_SETTINGS_PATH (line 244) | const PYTHON_TCP_SERVER_SETTINGS_PATH = path.join( constant PYTHON_TCP_SERVER_SETTINGS (line 248) | const PYTHON_TCP_SERVER_SETTINGS = JSON.parse( constant PYTHON_TCP_SERVER_TTS_MODEL_FILE_NAME (line 251) | const PYTHON_TCP_SERVER_TTS_MODEL_FILE_NAME = constant PYTHON_TCP_SERVER_TTS_MODEL_DIR_PATH (line 253) | const PYTHON_TCP_SERVER_TTS_MODEL_DIR_PATH = path.join( constant PYTHON_TCP_SERVER_TTS_MODEL_PATH (line 257) | const PYTHON_TCP_SERVER_TTS_MODEL_PATH = path.join( constant PYTHON_TCP_SERVER_TTS_BERT_FRENCH_DIR_PATH (line 261) | const PYTHON_TCP_SERVER_TTS_BERT_FRENCH_DIR_PATH = path.join( constant PYTHON_TCP_SERVER_TTS_BERT_BASE_DIR_PATH (line 265) | const PYTHON_TCP_SERVER_TTS_BERT_BASE_DIR_PATH = path.join( constant PYTHON_TCP_SERVER_ASR_MODEL_DIR_PATH (line 269) | const PYTHON_TCP_SERVER_ASR_MODEL_DIR_PATH = path.join( constant PYTHON_TCP_SERVER_TTS_MODEL_HF_DOWNLOAD_URL (line 273) | const PYTHON_TCP_SERVER_TTS_MODEL_HF_DOWNLOAD_URL = `https://huggingface... constant PYTHON_TCP_SERVER_ASR_MODEL_HF_PREFIX_DOWNLOAD_URL (line 274) | const PYTHON_TCP_SERVER_ASR_MODEL_HF_PREFIX_DOWNLOAD_URL = constant PYTHON_TCP_SERVER_TTS_BERT_FRENCH_MODEL_HF_PREFIX_DOWNLOAD_URL (line 276) | const PYTHON_TCP_SERVER_TTS_BERT_FRENCH_MODEL_HF_PREFIX_DOWNLOAD_URL = constant PYTHON_TCP_SERVER_TTS_BERT_BASE_MODEL_HF_PREFIX_DOWNLOAD_URL (line 278) | const PYTHON_TCP_SERVER_TTS_BERT_BASE_MODEL_HF_PREFIX_DOWNLOAD_URL = constant NODEJS_BRIDGE_VERSION_FILE_PATH (line 281) | const NODEJS_BRIDGE_VERSION_FILE_PATH = path.join( constant PYTHON_BRIDGE_VERSION_FILE_PATH (line 285) | const PYTHON_BRIDGE_VERSION_FILE_PATH = path.join( constant PYTHON_TCP_SERVER_VERSION_FILE_PATH (line 289) | const PYTHON_TCP_SERVER_VERSION_FILE_PATH = path.join( constant NODEJS_BRIDGE_BIN_NAME (line 303) | const NODEJS_BRIDGE_BIN_NAME = 'leon-nodejs-bridge.cjs' constant PYTHON_BRIDGE_BIN_NAME (line 304) | const PYTHON_BRIDGE_BIN_NAME = 'leon-python-bridge' constant PYTHON_TCP_SERVER_BIN_NAME (line 305) | const PYTHON_TCP_SERVER_BIN_NAME = 'leon-tcp-server' constant PYTHON_TCP_SERVER_BIN_PATH (line 307) | const PYTHON_TCP_SERVER_BIN_PATH = path.join( constant PYTHON_BRIDGE_BIN_PATH (line 312) | const PYTHON_BRIDGE_BIN_PATH = path.join( constant NODEJS_BRIDGE_BIN_PATH (line 317) | const NODEJS_BRIDGE_BIN_PATH = `${path.join( constant TSX_CLI_PATH (line 324) | const TSX_CLI_PATH = path.join( constant LEON_VERSION (line 332) | const LEON_VERSION = process.env['npm_package_version'] constant EN_SPACY_MODEL_NAME (line 338) | const EN_SPACY_MODEL_NAME = 'en_core_web_trf' constant EN_SPACY_MODEL_VERSION (line 339) | const EN_SPACY_MODEL_VERSION = '3.4.0' constant FR_SPACY_MODEL_NAME (line 340) | const FR_SPACY_MODEL_NAME = 'fr_core_news_md' constant FR_SPACY_MODEL_VERSION (line 341) | const FR_SPACY_MODEL_VERSION = '3.4.0' constant LANG (line 346) | const LANG = process.env['LEON_LANG'] as LongLanguageCode constant HOST (line 348) | const HOST = process.env['LEON_HOST'] constant PORT (line 349) | const PORT = Number(process.env['LEON_PORT']) constant TIME_ZONE (line 351) | const TIME_ZONE = process.env['LEON_TIME_ZONE'] constant HAS_AFTER_SPEECH (line 353) | const HAS_AFTER_SPEECH = process.env['LEON_AFTER_SPEECH'] === 'true' constant HAS_STT (line 355) | const HAS_STT = process.env['LEON_STT'] === 'true' constant STT_PROVIDER (line 356) | const STT_PROVIDER = process.env['LEON_STT_PROVIDER'] constant HAS_TTS (line 357) | const HAS_TTS = process.env['LEON_TTS'] === 'true' constant TTS_PROVIDER (line 358) | const TTS_PROVIDER = process.env['LEON_TTS_PROVIDER'] constant HAS_WARM_UP_LLM_DUTIES (line 360) | const HAS_WARM_UP_LLM_DUTIES = constant HAS_OVER_HTTP (line 362) | const HAS_OVER_HTTP = process.env['LEON_OVER_HTTP'] === 'true' constant HTTP_API_KEY (line 363) | const HTTP_API_KEY = process.env['LEON_HTTP_API_KEY'] constant HTTP_API_LANG (line 364) | const HTTP_API_LANG = process.env['LEON_HTTP_API_LANG'] constant PYTHON_TCP_SERVER_HOST (line 366) | const PYTHON_TCP_SERVER_HOST = process.env['LEON_PY_TCP_SERVER_HOST'] constant PYTHON_TCP_SERVER_PORT (line 367) | const PYTHON_TCP_SERVER_PORT = Number( constant IS_TELEMETRY_ENABLED (line 371) | const IS_TELEMETRY_ENABLED = process.env['LEON_TELEMETRY'] === 'true' constant MAIN_NLP_MODEL_PATH (line 376) | const MAIN_NLP_MODEL_PATH = path.join(MODELS_PATH, 'leon-main-model.nlp') constant GLOBAL_RESOLVERS_NLP_MODEL_PATH (line 377) | const GLOBAL_RESOLVERS_NLP_MODEL_PATH = path.join( constant SKILLS_RESOLVERS_NLP_MODEL_PATH (line 381) | const SKILLS_RESOLVERS_NLP_MODEL_PATH = path.join( constant LLM_ACTIONS_CLASSIFIER_PATH (line 385) | const LLM_ACTIONS_CLASSIFIER_PATH = path.join( constant LLM_SKILL_ROUTER_DUTY_SKILL_LIST_PATH (line 389) | const LLM_SKILL_ROUTER_DUTY_SKILL_LIST_PATH = path.join( constant HAS_LLM (line 398) | const HAS_LLM = process.env['LEON_LLM'] === 'true' constant HAS_LLM_NLG (line 399) | const HAS_LLM_NLG = process.env['LEON_LLM_NLG'] === 'true' && HAS_LLM constant HAS_LLM_ACTION_RECOGNITION (line 400) | const HAS_LLM_ACTION_RECOGNITION = constant LEON_ROUTING_MODE (line 402) | const LEON_ROUTING_MODE = process.env['LEON_ROUTING_MODE'] || 'smart' constant LEON_PULSE_ENABLED (line 403) | const LEON_PULSE_ENABLED = true constant LEON_PULSE_INTERVAL_MS (line 404) | const LEON_PULSE_INTERVAL_MS = 30 * 60 * 1_000 constant SHOULD_START_PYTHON_TCP_SERVER (line 405) | const SHOULD_START_PYTHON_TCP_SERVER = !( constant LEON_DISABLED_CONTEXT_FILES (line 410) | const LEON_DISABLED_CONTEXT_FILES = constant LLM_PROVIDER (line 412) | const LLM_PROVIDER = process.env['LEON_LLM_PROVIDER'] || 'llamacpp' constant WORKFLOW_LLM_PROVIDER (line 413) | const WORKFLOW_LLM_PROVIDER = constant AGENT_LLM_PROVIDER (line 415) | const AGENT_LLM_PROVIDER = constant LLM_DIR_PATH (line 462) | const LLM_DIR_PATH = path.join(MODELS_PATH, 'llm') constant LLM_MANIFEST_PATH (line 463) | const LLM_MANIFEST_PATH = path.join(LLM_DIR_PATH, 'manifest.json') constant LLM_MANIFEST (line 464) | const LLM_MANIFEST = fs.existsSync(LLM_MANIFEST_PATH) constant DEFAULT_INSTALLED_LLM_PATH (line 469) | const DEFAULT_INSTALLED_LLM_PATH = constant CONFIGURED_LLAMACPP_MODEL_PATH (line 473) | const CONFIGURED_LLAMACPP_MODEL_PATH = constant LLM_NAME (line 475) | const LLM_NAME = LLM_MANIFEST?.name || 'Local LLM' constant LLM_VERSION (line 476) | const LLM_VERSION = LLM_MANIFEST?.version || 'unknown' constant LLM_FILE_NAME (line 477) | const LLM_FILE_NAME = CONFIGURED_LLAMACPP_MODEL_PATH constant LLM_NAME_WITH_VERSION (line 480) | const LLM_NAME_WITH_VERSION = `${LLM_NAME} (${LLM_VERSION})` constant LLM_PATH (line 481) | const LLM_PATH = CONFIGURED_LLAMACPP_MODEL_PATH constant LLM_MINIMUM_TOTAL_VRAM (line 484) | const LLM_MINIMUM_TOTAL_VRAM = 6 constant LLM_HIGH_TIER_MINIMUM_TOTAL_VRAM (line 485) | const LLM_HIGH_TIER_MINIMUM_TOTAL_VRAM = 18 constant LLM_MINIMUM_FREE_VRAM (line 486) | const LLM_MINIMUM_FREE_VRAM = 6 constant MINIMUM_REQUIRED_RAM (line 531) | const MINIMUM_REQUIRED_RAM = 4 constant INSTANCE_ID (line 532) | const INSTANCE_ID = fs.existsSync(LEON_FILE_PATH) constant IS_GITHUB_ACTIONS (line 535) | const IS_GITHUB_ACTIONS = process.env['GITHUB_ACTIONS'] !== undefined constant IS_GITPOD (line 536) | const IS_GITPOD = process.env['GITPOD_WORKSPACE_URL'] !== undefined FILE: server/src/conversation-logger.ts type ConversationLoggerSettings (line 8) | interface ConversationLoggerSettings { type LoadParams (line 15) | interface LoadParams { class ConversationLogger (line 26) | class ConversationLogger { method loggerName (line 30) | get loggerName(): string { method constructor (line 34) | constructor(settings: ConversationLoggerSettings) { method createConversationLogFile (line 42) | private async createConversationLogFile(): Promise { method getAllLogs (line 53) | private async getAllLogs(): Promise { method push (line 74) | public async push(newRecord: Omit): Promise { method load (line 98) | public async load(params?: LoadParams): Promise { method loadAll (line 113) | public async loadAll(): Promise { method clear (line 124) | public async clear(): Promise { FILE: server/src/core/asr/asr.ts class ASR (line 11) | class ASR { method constructor (line 19) | constructor() { method encode (line 32) | public encode(blob: Buffer): Promise { FILE: server/src/core/asr/types.ts type ASRAudioFormat (line 1) | type ASRAudioFormat = 'wav' | 'webm' FILE: server/src/core/brain/answer-queue.ts class AnswerQueue (line 10) | class AnswerQueue { method constructor (line 14) | constructor() { method push (line 19) | public push(answer: T): void { method pop (line 25) | public pop(): T | undefined { method clear (line 34) | public clear(): void { method isEmpty (line 40) | public isEmpty(): boolean { FILE: server/src/core/brain/brain.ts type SkillProcess (line 27) | type SkillProcess = ChildProcessWithoutNullStreams | undefined type IsTalkingWithVoiceOptions (line 28) | interface IsTalkingWithVoiceOptions { type LLMAnswerMetrics (line 32) | interface LLMAnswerMetrics { type QueuedAnswer (line 56) | type QueuedAnswer = constant MIN_NB_OF_WORDS_TO_USE_LLM_NLG (line 64) | const MIN_NB_OF_WORDS_TO_USE_LLM_NLG = 5 class Brain (line 66) | class Brain { method constructor (line 83) | constructor() { method skillFriendlyName (line 106) | public get skillFriendlyName(): string { method skillFriendlyName (line 110) | public set skillFriendlyName(newSkillFriendlyName: string) { method skillProcess (line 114) | public get skillProcess(): SkillProcess { method skillProcess (line 118) | public set skillProcess(newSkillProcess: SkillProcess) { method isTalkingWithVoice (line 122) | public get isTalkingWithVoice(): boolean { method setIsTalkingWithVoice (line 126) | public setIsTalkingWithVoice( method lang (line 159) | public get lang(): ShortLanguageCode { method lang (line 163) | public set lang(newLang: ShortLanguageCode) { method cleanUpAnswerQueueTimer (line 181) | private cleanUpAnswerQueueTimer(intervalId?: NodeJS.Timeout): void { method processAnswerQueue (line 196) | private async processAnswerQueue(end = false): Promise { method updateTTSLang (line 367) | private async updateTTSLang(newLang: ShortLanguageCode): Promise { method talk (line 377) | public async talk( method wernicke (line 408) | public wernicke( method runSkillAction (line 459) | public async runSkillAction( method speakSkillError (line 524) | public speakSkillError(): void { FILE: server/src/core/brain/dialog-action-skill-handler.ts constant PLACEHOLDER_REGEX (line 8) | const PLACEHOLDER_REGEX = /{{(.*?)}}/ class DialogActionSkillHandler (line 10) | class DialogActionSkillHandler { method handle (line 11) | public static async handle( method getDialogAnswer (line 75) | private static getDialogAnswer( method mapAnswerPlaceholders (line 86) | private static mapAnswerPlaceholders( method answerHasPlaceholders (line 131) | private static answerHasPlaceholders( method getFallbackAnswer (line 152) | private static getFallbackAnswer( method getDataToMap (line 177) | private static getDataToMap( FILE: server/src/core/brain/logic-action-skill-handler.ts class LogicActionSkillHandler (line 21) | class LogicActionSkillHandler { method handle (line 22) | public static async handle( method handleLogicActionSkillProcessOutput (line 126) | private static handleLogicActionSkillProcessOutput( method handleLogicActionSkillProcessError (line 215) | private static handleLogicActionSkillProcessError( method executeLogicActionSkill (line 236) | private static async executeLogicActionSkill( method createIntentObject (line 278) | private static createIntentObject( method deleteIntentObjFile (line 323) | private static deleteIntentObjFile(intentObjectPath: string): void { FILE: server/src/core/brain/types.ts type SkillResult (line 18) | interface SkillResult { type SkillBridges (line 40) | enum SkillBridges { type SkillActionTypes (line 44) | enum SkillActionTypes { type ActionParams (line 55) | interface ActionParams { type IntentObject (line 100) | interface IntentObject { type SkillAnswerCoreData (line 134) | interface SkillAnswerCoreData { type SkillAnswerOutput (line 146) | interface SkillAnswerOutput extends IntentObject { type BrainProcessResult (line 166) | interface BrainProcessResult extends NLUProcessResult { FILE: server/src/core/context-manager/context-file-factory.ts constant DEFAULT_CONTEXT_REFRESH_TTL_MS (line 23) | const DEFAULT_CONTEXT_REFRESH_TTL_MS = 10 * 60 * 1_000 type LeonRuntimeContextResolvers (line 25) | interface LeonRuntimeContextResolvers { function createContextFiles (line 31) | function createContextFiles( FILE: server/src/core/context-manager/context-files/activity-context-file.ts type AppActivityAggregate (line 14) | interface AppActivityAggregate { type ActivityLogFileEntry (line 23) | interface ActivityLogFileEntry { type ActivityTrackingState (line 30) | interface ActivityTrackingState { constant MAX_PROCESS_ENTRIES (line 36) | const MAX_PROCESS_ENTRIES = 96 constant MAX_APP_LINES (line 37) | const MAX_APP_LINES = 16 constant MAX_LOG_LINES (line 38) | const MAX_LOG_LINES = 20 constant MAX_LOG_LINES_PER_APP (line 39) | const MAX_LOG_LINES_PER_APP = 2 constant MAX_OBSERVED_APP_LINES (line 40) | const MAX_OBSERVED_APP_LINES = 16 constant MAX_LOG_DIR_DEPTH (line 41) | const MAX_LOG_DIR_DEPTH = 3 constant MAX_LOG_DIRECTORIES_SCANNED (line 42) | const MAX_LOG_DIRECTORIES_SCANNED = 600 constant MAX_LOG_CANDIDATE_FILES (line 43) | const MAX_LOG_CANDIDATE_FILES = 2_400 constant MAX_WINDOWS_ROOT_CHILDREN (line 44) | const MAX_WINDOWS_ROOT_CHILDREN = 140 constant ACTIVITY_STATE_FILENAME (line 45) | const ACTIVITY_STATE_FILENAME = '.activity-state.json' constant MAX_ACTIVITY_STATE_APP_ENTRIES (line 46) | const MAX_ACTIVITY_STATE_APP_ENTRIES = 256 class ActivityContextFile (line 48) | class ActivityContextFile extends ContextFile { method constructor (line 52) | public constructor( method generate (line 60) | public generate(): string { method formatDateTime (line 118) | private formatDateTime(value: string | number | Date): string { method aggregateAppActivity (line 122) | private aggregateAppActivity( method probeRecentAppLogs (line 165) | private probeRecentAppLogs(appNames: string[]): ActivityLogFileEntry[] { method getCandidateLogRoots (line 263) | private getCandidateLogRoots(): string[] { method discoverNestedLogRoots (line 295) | private discoverNestedLogRoots(baseDirectory: string): string[] { method shouldSkipLogDirectory (line 331) | private shouldSkipLogDirectory(directoryName: string): boolean { method isLikelyLogDirectoryName (line 348) | private isLikelyLogDirectoryName(directoryName: string): boolean { method isLikelyLogFileName (line 359) | private isLikelyLogFileName(fileName: string): boolean { method inferAppHint (line 371) | private inferAppHint(filePath: string, appTerms: string[]): string { method normalizeAppHint (line 381) | private normalizeAppHint(rawAppHint: string): string { method balanceRecentLogEntries (line 407) | private balanceRecentLogEntries(entries: ActivityLogFileEntry[]): Acti... method normalizeProcessName (line 433) | private normalizeProcessName(rawProcessName: string): string { method formatCpu (line 442) | private formatCpu(value: number, metric: RunningProcessEntry['cpuMetri... method loadTrackingState (line 454) | private loadTrackingState(): ActivityTrackingState { method updateTrackingState (line 490) | private updateTrackingState( method saveTrackingState (line 522) | private saveTrackingState(state: ActivityTrackingState): void { method formatObservedAppLines (line 533) | private formatObservedAppLines( method computeStateDeltaSeconds (line 550) | private computeStateDeltaSeconds(previousSampleAt: string, now: Date):... method getStateFilePath (line 565) | private getStateFilePath(): string { FILE: server/src/core/context-manager/context-files/architecture-context-file.ts class ArchitectureContextFile (line 4) | class ArchitectureContextFile extends ContextFile { method generate (line 8) | public generate(): string { FILE: server/src/core/context-manager/context-files/browser-history-context-file.ts type BrowserHistoryFlavor (line 10) | type BrowserHistoryFlavor = 'chromium' | 'firefox' | 'safari' type BrowserHistoryDatabase (line 12) | interface BrowserHistoryDatabase { type BrowserHistoryEntry (line 19) | interface BrowserHistoryEntry { type BrowserHistoryProbeResult (line 27) | interface BrowserHistoryProbeResult { constant MAX_DATABASES_TO_QUERY (line 35) | const MAX_DATABASES_TO_QUERY = 6 constant MAX_OUTPUT_ENTRIES (line 36) | const MAX_OUTPUT_ENTRIES = 64 constant MAX_URL_CHARS (line 37) | const MAX_URL_CHARS = 128 class BrowserHistoryContextFile (line 39) | class BrowserHistoryContextFile extends ContextFile { method constructor (line 43) | public constructor( method generate (line 51) | public generate(): string { method probeBrowserHistory (line 80) | private probeBrowserHistory(): BrowserHistoryProbeResult { method queryHistoryEntries (line 153) | private queryHistoryEntries( method getBrowserHistoryDatabases (line 368) | private getBrowserHistoryDatabases(): BrowserHistoryDatabase[] { method getChromiumHistoryDatabases (line 376) | private getChromiumHistoryDatabases(): BrowserHistoryDatabase[] { method getFirefoxHistoryDatabases (line 508) | private getFirefoxHistoryDatabases(): BrowserHistoryDatabase[] { method formatDateTimeInUserTimezone (line 558) | private formatDateTimeInUserTimezone(value: string): string { method getSafariHistoryDatabases (line 566) | private getSafariHistoryDatabases(): BrowserHistoryDatabase[] { FILE: server/src/core/context-manager/context-files/gpu-compute-context-file.ts class GpuComputeContextFile (line 20) | class GpuComputeContextFile extends ContextFile { method constructor (line 24) | public constructor( method generate (line 32) | public generate(): string { FILE: server/src/core/context-manager/context-files/habits-context-file.ts type DayBucket (line 11) | type DayBucket = type TimeBucket (line 19) | type TimeBucket = 'night' | 'morning' | 'afternoon' | 'evening' type HabitsState (line 21) | interface HabitsState { constant EMPTY_TIME_BUCKETS (line 28) | const EMPTY_TIME_BUCKETS: Record> = { constant EMPTY_DAY_BUCKETS (line 34) | const EMPTY_DAY_BUCKETS: Record> = { constant FALLBACK_STATE (line 43) | const FALLBACK_STATE: HabitsState = { constant MAX_APP_LINES (line 50) | const MAX_APP_LINES = 20 constant MAX_BUCKET_LINES (line 51) | const MAX_BUCKET_LINES = 16 constant MAX_STATE_APPS_PER_BUCKET (line 52) | const MAX_STATE_APPS_PER_BUCKET = 250 class HabitsContextFile (line 54) | class HabitsContextFile extends ContextFile { method constructor (line 63) | public constructor( method generate (line 71) | public generate(): string { method aggregateActiveApps (line 148) | private aggregateActiveApps(entries: RunningProcessEntry[]): string[] { method normalizeState (line 152) | private normalizeState(state: HabitsState, nowIso: string): HabitsState { method updateState (line 163) | private updateState( method compactBucket (line 204) | private compactBucket(bucket: Record): Record( method getTimeBucket (line 257) | private getTimeBucket(now: Date): TimeBucket { method getDayBucket (line 271) | private getDayBucket(now: Date): DayBucket { method computeDeltaSeconds (line 286) | private computeDeltaSeconds(lastSampleAt: string, now: Date): number { method normalizeProcessName (line 300) | private normalizeProcessName(rawName: string): string { method isValidDate (line 309) | private isValidDate(value: string): boolean { FILE: server/src/core/context-manager/context-files/home-context-file.ts class HomeContextFile (line 16) | class HomeContextFile extends ContextFile { method constructor (line 20) | public constructor(ttlMs: number) { method generate (line 25) | public generate(): string { FILE: server/src/core/context-manager/context-files/host-system-context-file.ts class HostSystemContextFile (line 8) | class HostSystemContextFile extends ContextFile { method constructor (line 12) | public constructor( method generate (line 20) | public generate(): string { FILE: server/src/core/context-manager/context-files/leon-context-file.ts class LeonContextFile (line 4) | class LeonContextFile extends ContextFile { method generate (line 8) | public generate(): string { FILE: server/src/core/context-manager/context-files/leon-runtime-context-file.ts type LeonRuntimeContextResolvers (line 14) | interface LeonRuntimeContextResolvers { class LeonRuntimeContextFile (line 20) | class LeonRuntimeContextFile extends ContextFile { method constructor (line 24) | public constructor( method generate (line 33) | public generate(): string { FILE: server/src/core/context-manager/context-files/local-inventory-context-file.ts type LocalInventoryAppStateEntry (line 14) | interface LocalInventoryAppStateEntry { type LocalInventoryState (line 20) | interface LocalInventoryState { type ActiveAppAggregate (line 26) | interface ActiveAppAggregate { type PeripheralsSnapshot (line 35) | interface PeripheralsSnapshot { constant MAX_RUNNING_APPS (line 46) | const MAX_RUNNING_APPS = 32 constant MAX_INSTALLED_APPS (line 47) | const MAX_INSTALLED_APPS = 80 constant MAX_CATEGORY_LINES (line 48) | const MAX_CATEGORY_LINES = 14 constant MAX_PERIPHERAL_ITEMS (line 49) | const MAX_PERIPHERAL_ITEMS = 8 constant MAX_STATE_APPS (line 50) | const MAX_STATE_APPS = 500 constant FALLBACK_STATE (line 52) | const FALLBACK_STATE: LocalInventoryState = { class LocalInventoryContextFile (line 58) | class LocalInventoryContextFile extends ContextFile { method constructor (line 67) | public constructor( method generate (line 75) | public generate(): string { method aggregateActiveApps (line 142) | private aggregateActiveApps(entries: RunningProcessEntry[]): ActiveApp... method discoverInstalledApps (line 182) | private discoverInstalledApps(): string[] { method discoverInstalledAppsLinux (line 194) | private discoverInstalledAppsLinux(): string[] { method discoverInstalledAppsMacOS (line 247) | private discoverInstalledAppsMacOS(): string[] { method discoverInstalledAppsWindows (line 273) | private discoverInstalledAppsWindows(): string[] { method probePeripherals (line 305) | private probePeripherals(): PeripheralsSnapshot { method probePeripheralsLinux (line 317) | private probePeripheralsLinux(): PeripheralsSnapshot { method probePeripheralsMacOS (line 393) | private probePeripheralsMacOS(): PeripheralsSnapshot { method probePeripheralsWindows (line 444) | private probePeripheralsWindows(): PeripheralsSnapshot { method normalizePeripherals (line 528) | private normalizePeripherals(snapshot: PeripheralsSnapshot): Periphera... method normalizeState (line 551) | private normalizeState(state: LocalInventoryState, nowIso: string): Lo... method updateState (line 564) | private updateState( method getAppsRankedByUsage (line 613) | private getAppsRankedByUsage( method buildCategoryCounts (line 638) | private buildCategoryCounts(appNames: string[]): Array<{ category: str... method detectCategory (line 651) | private detectCategory(appName: string): string { method computeDeltaSeconds (line 672) | private computeDeltaSeconds(lastSampleAt: string, now: Date): number { method isIsoDate (line 686) | private isIsoDate(value: string): boolean { method normalizeProcessName (line 694) | private normalizeProcessName(rawName: string): string { method formatList (line 703) | private formatList(values: string[], maxItems: number): string { FILE: server/src/core/context-manager/context-files/media-profile-context-file.ts type MediaProfileState (line 10) | interface MediaProfileState { type BrowserHistoryRecord (line 17) | interface BrowserHistoryRecord { constant FALLBACK_STATE (line 23) | const FALLBACK_STATE: MediaProfileState = { constant MAX_DOMAINS (line 30) | const MAX_DOMAINS = 24 constant MAX_SEEN_ENTRIES (line 31) | const MAX_SEEN_ENTRIES = 4000 class MediaProfileContextFile (line 33) | class MediaProfileContextFile extends ContextFile { method constructor (line 42) | public constructor( method generate (line 50) | public generate(): string { method loadBrowserHistoryRecords (line 96) | private loadBrowserHistoryRecords(browserHistoryPath: string): Browser... method normalizeState (line 130) | private normalizeState(state: MediaProfileState, nowIso: string): Medi... method updateState (line 147) | private updateState( method rankCounts (line 185) | private rankCounts(counts: Record): Array<{ key: strin... method buildMediaSignals (line 192) | private buildMediaSignals( FILE: server/src/core/context-manager/context-files/network-ecosystem-context-file.ts type DiscoveredNeighbor (line 10) | interface DiscoveredNeighbor { type EcosystemDeviceState (line 18) | interface EcosystemDeviceState { type LocalEcosystemState (line 29) | interface LocalEcosystemState { constant FALLBACK_STATE (line 35) | const FALLBACK_STATE: LocalEcosystemState = { constant MAX_NEIGHBORS (line 41) | const MAX_NEIGHBORS = 40 constant MAX_DEVICE_STATE (line 42) | const MAX_DEVICE_STATE = 1000 constant MAX_SERVICE_LINES (line 43) | const MAX_SERVICE_LINES = 18 constant MAX_ACTIVE_SCAN_TARGETS (line 44) | const MAX_ACTIVE_SCAN_TARGETS = 320 constant PREFERRED_SUBNET_PREFIX (line 45) | const PREFERRED_SUBNET_PREFIX = '192.168.0' constant PREFERRED_SUBNET_MAX_HOST (line 46) | const PREFERRED_SUBNET_MAX_HOST = 254 class NetworkEcosystemContextFile (line 48) | class NetworkEcosystemContextFile extends ContextFile { method constructor (line 57) | public constructor( method generate (line 65) | public generate(): string { method buildNetworkInterfaceLines (line 158) | private buildNetworkInterfaceLines( method buildActiveProbeTargets (line 181) | private buildActiveProbeTargets( method hasPreferredSubnetInterface (line 253) | private hasPreferredSubnetInterface( method shouldKeepNeighbor (line 275) | private shouldKeepNeighbor(ip: string, hasPreferredSubnet: boolean): b... method probeNeighbors (line 287) | private probeNeighbors(): DiscoveredNeighbor[] { method probeNeighborsLinux (line 299) | private probeNeighborsLinux(): DiscoveredNeighbor[] { method probeNeighborsMacOS (line 327) | private probeNeighborsMacOS(): DiscoveredNeighbor[] { method probeNeighborsWindows (line 355) | private probeNeighborsWindows(): DiscoveredNeighbor[] { method deduplicateNeighbors (line 391) | private deduplicateNeighbors(neighbors: DiscoveredNeighbor[]): Discove... method normalizeState (line 407) | private normalizeState( method updateState (line 423) | private updateState( method getRankedDevices (line 492) | private getRankedDevices(devices: Record... method normalizeDeviceStateEntries (line 509) | private normalizeDeviceStateEntries( method inferDeviceHint (line 538) | private inferDeviceHint(neighbor: DiscoveredNeighbor): string { method buildDeviceIdentifier (line 573) | private buildDeviceIdentifier(neighbor: DiscoveredNeighbor, hint: stri... method detectVendorFromMac (line 590) | private detectVendorFromMac( method isPrivateIpv4 (line 641) | private isPrivateIpv4(ip: string): boolean { method buildServiceSignals (line 669) | private buildServiceSignals(neighbors: DiscoveredNeighbor[]): string[] { method isValidDate (line 707) | private isValidDate(value: string): boolean { FILE: server/src/core/context-manager/context-files/owner-context-file.ts constant OWNER_CONTEXT_TTL_MS (line 10) | const OWNER_CONTEXT_TTL_MS: number | null = null class OwnerContextFile (line 12) | class OwnerContextFile extends ContextFile { method constructor (line 16) | public constructor(ttlMs: number | null) { method generate (line 21) | public generate(): string { FILE: server/src/core/context-manager/context-files/storage-context-file.ts class StorageContextFile (line 5) | class StorageContextFile extends ContextFile { method constructor (line 9) | public constructor( method generate (line 17) | public generate(): string { FILE: server/src/core/context-manager/context-files/system-resources-context-file.ts class SystemResourcesContextFile (line 8) | class SystemResourcesContextFile extends ContextFile { method constructor (line 12) | public constructor( method generate (line 20) | public generate(): string { FILE: server/src/core/context-manager/context-files/workspace-intelligence-context-file.ts type RepositoryStateEntry (line 10) | interface RepositoryStateEntry { type WorkspaceState (line 16) | interface WorkspaceState { type RepositorySnapshot (line 22) | interface RepositorySnapshot { type ToolchainEntry (line 31) | interface ToolchainEntry { constant FALLBACK_STATE (line 36) | const FALLBACK_STATE: WorkspaceState = { constant MAX_REPOS (line 42) | const MAX_REPOS = 24 constant MAX_STATE_REPOS (line 43) | const MAX_STATE_REPOS = 600 constant MAX_LANG_LINES (line 44) | const MAX_LANG_LINES = 12 constant MAX_TOOLCHAINS (line 45) | const MAX_TOOLCHAINS = 12 class WorkspaceIntelligenceContextFile (line 47) | class WorkspaceIntelligenceContextFile extends ContextFile { method constructor (line 56) | public constructor( method generate (line 64) | public generate(): string { method getWorkspaceRoots (line 119) | private getWorkspaceRoots(): string[] { method discoverRepositories (line 133) | private discoverRepositories(roots: string[]): string[] { method buildRepositorySnapshot (line 192) | private buildRepositorySnapshot(repoPath: string): RepositorySnapshot ... method probeRepositoryLanguage (line 224) | private probeRepositoryLanguage(repoPath: string): { method extensionToLanguage (line 296) | private extensionToLanguage(extension: string): string { method normalizeState (line 321) | private normalizeState(state: WorkspaceState, nowIso: string): Workspa... method updateState (line 334) | private updateState( method buildLanguageDistribution (line 383) | private buildLanguageDistribution( method probeToolchainAvailability (line 397) | private probeToolchainAvailability(): ToolchainEntry[] { method isValidDate (line 421) | private isValidDate(value: string): boolean { FILE: server/src/core/context-manager/context-manager.ts type ContextFileMetadata (line 22) | interface ContextFileMetadata { constant CONTEXT_FILES_SOURCE_DIR (line 26) | const CONTEXT_FILES_SOURCE_DIR = path.join( constant CONTEXT_MANAGER_DIR (line 30) | const CONTEXT_MANAGER_DIR = path.dirname(fileURLToPath(import.meta.url)) constant SOURCE_AWARE_STATIC_CONTEXT_FILES (line 31) | const SOURCE_AWARE_STATIC_CONTEXT_FILES = new Set([ constant BOOT_REFRESH_MIN_DELAY_MS (line 35) | const BOOT_REFRESH_MIN_DELAY_MS = 6_000 constant BOOT_REFRESH_MAX_DELAY_MS (line 36) | const BOOT_REFRESH_MAX_DELAY_MS = 20_000 constant BOOT_REFRESH_RETRY_DELAY_MS (line 37) | const BOOT_REFRESH_RETRY_DELAY_MS = 4_000 constant BOOT_REFRESH_MAX_DEFERRAL_MS (line 38) | const BOOT_REFRESH_MAX_DEFERRAL_MS = 60_000 constant BOOT_REFRESH_DEFER_LOAD_RATIO (line 39) | const BOOT_REFRESH_DEFER_LOAD_RATIO = 0.85 constant BOOT_REFRESH_PRIORITY_FILENAMES (line 40) | const BOOT_REFRESH_PRIORITY_FILENAMES = [ constant BOOT_REFRESH_TIMER_LABEL (line 46) | const BOOT_REFRESH_TIMER_LABEL = 'Context files boot refresh total' constant PERIODIC_REFRESH_TIMER_LABEL (line 47) | const PERIODIC_REFRESH_TIMER_LABEL = 'Context files periodic refresh total' constant READ_REFRESH_TIMER_LABEL (line 48) | const READ_REFRESH_TIMER_LABEL = 'Context files read refresh total' constant CONTEXT_REFRESH_WORKER_SRC_PATH (line 49) | const CONTEXT_REFRESH_WORKER_SRC_PATH = path.join( constant CONTEXT_REFRESH_WORKER_DIST_PATH (line 53) | const CONTEXT_REFRESH_WORKER_DIST_PATH = path.join( constant CONTEXT_REFRESH_WORKER_MAX_BUFFER (line 57) | const CONTEXT_REFRESH_WORKER_MAX_BUFFER = 1024 * 1024 * 8 constant RETIRED_CONTEXT_FILES (line 58) | const RETIRED_CONTEXT_FILES = [ constant RETIRED_STATE_FILES (line 64) | const RETIRED_STATE_FILES = ['.media-tastes-state.json'] function clamp (line 66) | function clamp(value: number, min: number, max: number): number { class ContextManager (line 72) | class ContextManager { method constructor (line 100) | public constructor() { method isLoaded (line 109) | public get isLoaded(): boolean { method load (line 113) | public async load(): Promise { method refreshContextFilesAtBootInBackground (line 138) | private refreshContextFilesAtBootInBackground(): void { method getManifest (line 195) | public getManifest(): string { method getContextFileContent (line 207) | public getContextFileContent(filename: string): string | null { method getContextForToolkit (line 237) | public getContextForToolkit(toolkitId: string): string { method getContextFilesForToolkit (line 257) | public getContextFilesForToolkit(toolkitId: string): string[] { method getContextFilePath (line 274) | private getContextFilePath(filename: string): string { method normalizeFilename (line 278) | private normalizeFilename(filename: string): string { method resolveDefinition (line 289) | private resolveDefinition(filename: string): ContextFile | null { method isContextFileStale (line 302) | private isContextFileStale(definition: ContextFile): boolean { method getContextSourceUpdatedAt (line 345) | private getContextSourceUpdatedAt(definition: ContextFile): number | n... method resolveContextSourcePath (line 358) | private resolveContextSourcePath(definition: ContextFile): string | nu... method getContextSourceBasename (line 373) | private getContextSourceBasename(filename: string): string { method getBootRefreshPriority (line 377) | private getBootRefreshPriority(filename: string): number { method getNormalizedLoadRatio (line 386) | private getNormalizedLoadRatio(): number { method getAdaptiveBootInitialDelayMs (line 392) | private getAdaptiveBootInitialDelayMs(): number { method getAdaptiveBootRetryDelayMs (line 405) | private getAdaptiveBootRetryDelayMs(): number { method shouldDeferBootRefresh (line 411) | private shouldDeferBootRefresh(elapsedMs: number): boolean { method getContextRefreshWorkerArgs (line 419) | private getContextRefreshWorkerArgs(): string[] { method refreshContextFileInChildProcess (line 432) | private async refreshContextFileInChildProcess( method queueRefresh (line 483) | private queueRefresh( method runBackgroundRefresh (line 514) | private async runBackgroundRefresh( method getStaleContextFiles (line 556) | private getStaleContextFiles(): ContextFile[] { method sortContextDefinitions (line 562) | private sortContextDefinitions(definitions: ContextFile[]): ContextFil... method yieldToEventLoop (line 574) | private async yieldToEventLoop(): Promise { method logContextFilesUpdated (line 583) | private logContextFilesUpdated(reason: string, filenames: string[]): v... method syncContextReadFilenameEnum (line 595) | private async syncContextReadFilenameEnum(): Promise { method refreshContextFile (line 627) | private refreshContextFile(definition: ContextFile, force = false): bo... method ensureTrailingNewline (line 651) | private ensureTrailingNewline(content: string): string { method extractSummary (line 659) | private extractSummary(content: string): string | null { method buildManifest (line 672) | private buildManifest(): string { method schedulePeriodicRefresh (line 693) | private schedulePeriodicRefresh(): void { method parseContextFileList (line 710) | private parseContextFileList(rawFileList: string): Set { method cleanupDisabledContextFiles (line 719) | private cleanupDisabledContextFiles(): void { method cleanupRetiredContextFiles (line 736) | private cleanupRetiredContextFiles(): void { FILE: server/src/core/context-manager/context-probe-helper.ts type CommandProbe (line 7) | interface CommandProbe { type DefaultRouteProbe (line 12) | interface DefaultRouteProbe { type NvidiaSmiProbe (line 17) | interface NvidiaSmiProbe { type StorageSnapshotEntry (line 26) | interface StorageSnapshotEntry { type StorageSnapshot (line 35) | interface StorageSnapshot { type OwnerLocationProbeSource (line 41) | type OwnerLocationProbeSource = type OwnerLocationProbeConfidence (line 49) | type OwnerLocationProbeConfidence = 'high' | 'medium' | 'low' type OwnerLocationProbe (line 51) | interface OwnerLocationProbe { type VpnProxyProbe (line 57) | interface VpnProxyProbe { type NeighborWarmupProbe (line 66) | interface NeighborWarmupProbe { type ReverseDnsProbe (line 72) | interface ReverseDnsProbe { type IpGeolocationRecord (line 78) | interface IpGeolocationRecord { type ProcessCpuMetric (line 89) | type ProcessCpuMetric = 'percent' | 'seconds' type RunningProcessEntry (line 91) | interface RunningProcessEntry { type RunningProcessSnapshot (line 101) | interface RunningProcessSnapshot { class ContextProbeHelper (line 107) | class ContextProbeHelper { method getSafeUsername (line 108) | public getSafeUsername(): string { method runCommand (line 116) | public runCommand( method probeCommandVersion (line 140) | public probeCommandVersion(command: string, args: string[]): CommandPr... method formatCommandProbe (line 161) | public formatCommandProbe(commandProbe: CommandProbe): string { method getOperatingSystemNameVersion (line 169) | public getOperatingSystemNameVersion(): string { method parseKeyValueFile (line 236) | public parseKeyValueFile(content: string): Record { method formatGiB (line 265) | public formatGiB(bytes: number): string { method formatUptime (line 273) | public formatUptime(totalSeconds: number): string { method redactProxyValue (line 295) | public redactProxyValue(proxyValue: string): string { method isLikelyTunnelInterface (line 317) | public isLikelyTunnelInterface(interfaceName: string): boolean { method probeDefaultRoute (line 332) | public probeDefaultRoute(): DefaultRouteProbe { method probeNvidiaSmi (line 344) | public probeNvidiaSmi(): NvidiaSmiProbe { method probeStorage (line 386) | public probeStorage(): StorageSnapshot { method probeOwnerLocation (line 394) | public probeOwnerLocation(options: { method probeVpnOrProxyStatus (line 454) | public probeVpnOrProxyStatus(): VpnProxyProbe { method warmNeighborCache (line 521) | public warmNeighborCache(ipAddresses: string[]): NeighborWarmupProbe { method probeReverseDnsHostnames (line 622) | public probeReverseDnsHostnames(ipAddresses: string[]): ReverseDnsProbe { method probeRunningProcesses (line 742) | public probeRunningProcesses(limit = 80): RunningProcessSnapshot { method getCommandCandidates (line 750) | private getCommandCandidates(command: string): string[] { method parseLinuxOsRelease (line 758) | private parseLinuxOsRelease(): { method extractCityFromTimeZone (line 790) | private extractCityFromTimeZone(timeZone: string): string { method extractRegionFromLocale (line 804) | private extractRegionFromLocale(locale: string): string { method probeOwnerLocationFromIpGeolocation (line 817) | private probeOwnerLocationFromIpGeolocation( method fetchIpGeolocationRecords (line 933) | private fetchIpGeolocationRecords(): IpGeolocationRecord[] { method probeDefaultRouteLinux (line 1092) | private probeDefaultRouteLinux(): DefaultRouteProbe { method probeDefaultRouteMacOS (line 1140) | private probeDefaultRouteMacOS(): DefaultRouteProbe { method probeDefaultRouteWindows (line 1163) | private probeDefaultRouteWindows(): DefaultRouteProbe { method extractPrefixedLineValue (line 1199) | private extractPrefixedLineValue( method probeStorageUnix (line 1224) | private probeStorageUnix(): StorageSnapshot { method probeStorageWindows (line 1268) | private probeStorageWindows(): StorageSnapshot { method probeRunningProcessesUnix (line 1342) | private probeRunningProcessesUnix(limit: number): RunningProcessSnapsh... method probeRunningProcessesWindows (line 1401) | private probeRunningProcessesWindows(limit: number): RunningProcessSna... method parseUnixProcessLine (line 1516) | private parseUnixProcessLine( method parseElapsedDuration (line 1559) | private parseElapsedDuration(duration: string): number { method formatStartedAt (line 1597) | private formatStartedAt(runtimeSeconds: number): string { method isRunningProcessEntry (line 1605) | private isRunningProcessEntry( FILE: server/src/core/context-manager/context-refresh-worker.ts type WorkerInput (line 4) | interface WorkerInput { function parseArgs (line 11) | function parseArgs(argv: string[]): WorkerInput { function main (line 53) | async function main(): Promise { FILE: server/src/core/context-manager/context-state-store.ts class ContextStateStore (line 6) | class ContextStateStore { method constructor (line 9) | public constructor(stateFilename: string, private readonly fallback: T) { method load (line 13) | public load(): T { method save (line 26) | public save(state: T): void { method clone (line 35) | private clone(value: T): T { FILE: server/src/core/context-manager/owner-profile-sync.ts constant OWNER_DOCUMENT_TOKEN_BUDGET (line 19) | const OWNER_DOCUMENT_TOKEN_BUDGET = 2_000 constant OWNER_DOCUMENT_UPDATE_TIMEOUT_MS (line 20) | const OWNER_DOCUMENT_UPDATE_TIMEOUT_MS = 30_000 constant OWNER_DOCUMENT_COMPACT_TIMEOUT_MS (line 21) | const OWNER_DOCUMENT_COMPACT_TIMEOUT_MS = 30_000 constant OWNER_DOCUMENT_VERIFY_TIMEOUT_MS (line 22) | const OWNER_DOCUMENT_VERIFY_TIMEOUT_MS = 15_000 constant OWNER_DOCUMENT_MAX_RETRIES (line 23) | const OWNER_DOCUMENT_MAX_RETRIES = 1 constant OWNER_DOCUMENT_UPDATE_MAX_TOKENS (line 24) | const OWNER_DOCUMENT_UPDATE_MAX_TOKENS = 2_000 constant OWNER_DOCUMENT_COMPACT_MAX_TOKENS (line 25) | const OWNER_DOCUMENT_COMPACT_MAX_TOKENS = 2_000 constant OWNER_DOCUMENT_VERIFY_MAX_TOKENS (line 26) | const OWNER_DOCUMENT_VERIFY_MAX_TOKENS = 500 constant OWNER_TURN_MAX_USER_CHARS (line 27) | const OWNER_TURN_MAX_USER_CHARS = 1_200 constant OWNER_TURN_MAX_ASSISTANT_CHARS (line 28) | const OWNER_TURN_MAX_ASSISTANT_CHARS = 600 constant OWNER_MEMORY_ITEM_MAX_TITLE_CHARS (line 29) | const OWNER_MEMORY_ITEM_MAX_TITLE_CHARS = 120 constant OWNER_MEMORY_ITEM_MAX_CONTENT_CHARS (line 30) | const OWNER_MEMORY_ITEM_MAX_CONTENT_CHARS = 240 type OwnerTurnToolExecution (line 32) | interface OwnerTurnToolExecution { type OwnerMemoryItem (line 38) | interface OwnerMemoryItem { type OwnerDocumentVerification (line 43) | interface OwnerDocumentVerification { type OwnerStaticFields (line 48) | type OwnerStaticFields = Pick< constant OWNER_DOCUMENT_VERIFICATION_SCHEMA (line 61) | const OWNER_DOCUMENT_VERIFICATION_SCHEMA = { constant OWNER_STATIC_FIELDS_SCHEMA (line 74) | const OWNER_STATIC_FIELDS_SCHEMA = { function normalizeText (line 101) | function normalizeText(value: string): string { function truncateText (line 105) | function truncateText(value: string, maxChars: number): string { function stripMarkdownFences (line 114) | function stripMarkdownFences(value: string): string { function estimateTokenCount (line 122) | function estimateTokenCount(value: string): number { function areOwnerProfilesEquivalent (line 126) | function areOwnerProfilesEquivalent( function areOwnerDocumentProfilesEquivalent (line 139) | function areOwnerDocumentProfilesEquivalent( function extractOwnerStaticFieldsFromOutput (line 170) | function extractOwnerStaticFieldsFromOutput(output: unknown): OwnerStati... function extractOwnerMemoryItemsFromToolExecutions (line 201) | function extractOwnerMemoryItemsFromToolExecutions( function parsedInputLike (line 288) | function parsedInputLike(value: unknown): value is Record { function readLegacyOwnerSeedSync (line 400) | function readLegacyOwnerSeedSync(): LegacyOwnerSeed | null { function applyLegacyOwnerSeed (line 424) | function applyLegacyOwnerSeed(profile: OwnerProfile): OwnerProfile { function getOwnerProfileLineCount (line 455) | function getOwnerProfileLineCount(profile: OwnerProfile): number { function getOwnerProfileFilledSectionCount (line 462) | function getOwnerProfileFilledSectionCount(profile: OwnerProfile): number { function getOwnerProfileMissingSectionTitles (line 468) | function getOwnerProfileMissingSectionTitles( function buildOwnerManifest (line 476) | function buildOwnerManifest(profile: OwnerProfile): string { function buildOwnerDocument (line 504) | function buildOwnerDocument(profile: OwnerProfile): string { FILE: server/src/core/http-server/api/llm-inference/post.ts type PostLLMInferenceSchema (line 16) | interface PostLLMInferenceSchema { constant LLM_DUTIES_MAP (line 24) | const LLM_DUTIES_MAP = { function resolveLLMDuty (line 35) | async function resolveLLMDuty( FILE: server/src/core/http-server/api/open-path/post.ts function expandHomeAlias (line 11) | function expandHomeAlias(inputPath: string): string { function openResolvedPath (line 23) | function openResolvedPath( FILE: server/src/core/http-server/api/utterance/post.ts type PostUtteranceSchema (line 14) | interface PostUtteranceSchema { FILE: server/src/core/http-server/http-server.ts type APIOptions (line 29) | interface APIOptions { class HTTPServer (line 33) | class HTTPServer { method constructor (line 40) | constructor( method init (line 58) | public async init(): Promise { method bootstrap (line 95) | private async bootstrap(): Promise { method listen (line 134) | private async listen(): Promise { FILE: server/src/core/http-server/old-server.js method handler (line 119) | async handler(request, reply) { FILE: server/src/core/index.ts constant PYTHON_TCP_CLIENT (line 35) | const PYTHON_TCP_CLIENT = new TCPClient( constant EVENT_EMITTER (line 41) | const EVENT_EMITTER = new EventEmitter() constant LLM_PROVIDER (line 47) | const LLM_PROVIDER = new LLMProvider() constant LLM_MANAGER (line 49) | const LLM_MANAGER = new LLMManager() constant CONVERSATION_LOGGER (line 51) | const CONVERSATION_LOGGER = new ConversationLogger({ constant LOOP_CONVERSATION_LOGGER (line 57) | const LOOP_CONVERSATION_LOGGER = new ConversationLogger({ constant TOOL_CALL_LOGGER (line 63) | const TOOL_CALL_LOGGER = new ToolCallLogger({ constant HTTP_SERVER (line 69) | const HTTP_SERVER = new HTTPServer(String(HOST), PORT) constant SOCKET_SERVER (line 71) | const SOCKET_SERVER = new SocketServer() constant TOOLKIT_REGISTRY (line 73) | const TOOLKIT_REGISTRY = new ToolkitRegistry() constant TOOL_EXECUTOR (line 75) | const TOOL_EXECUTOR = new ToolExecutor() constant PERSONA (line 77) | const PERSONA = new Persona() constant CONTEXT_MANAGER (line 79) | const CONTEXT_MANAGER = new ContextManager() constant MEMORY_MANAGER (line 80) | const MEMORY_MANAGER = new MemoryManager() constant SELF_MODEL_MANAGER (line 81) | const SELF_MODEL_MANAGER = new SelfModelManager() constant PULSE_MANAGER (line 82) | const PULSE_MANAGER = new PulseManager() constant STT (line 84) | const STT = new SpeechToText() constant TTS (line 86) | const TTS = new TextToSpeech() constant ASR (line 88) | const ASR = new AutomaticSpeechRecognition() constant NER (line 90) | const NER = new NamedEntityRecognition() constant MODEL_LOADER (line 92) | const MODEL_LOADER = new ModelLoader() constant NLU (line 94) | const NLU = new NaturalLanguageUnderstanding() constant BRAIN (line 96) | const BRAIN = new Brain() FILE: server/src/core/llm-manager/llm-duties/action-calling-llm-duty.ts type ActionCallingLLMDutyParams (line 28) | interface ActionCallingLLMDutyParams { constant CHAT_HISTORY_SIZE (line 33) | const CHAT_HISTORY_SIZE = 8 class ActionCallingLLMDuty (line 35) | class ActionCallingLLMDuty extends LLMDuty { method constructor (line 85) | constructor(params: ActionCallingLLMDutyParams) { method parseOptionalParameters (line 103) | private parseOptionalParameters( method filterActionsWithFlow (line 143) | private filterActionsWithFlow( method actionsToFunctionsSchema (line 182) | private async actionsToFunctionsSchema( method actionsToOpenAITools (line 243) | private actionsToOpenAITools( method handlePreLLMInference (line 294) | private handlePreLLMInference( method init (line 352) | public async init( method execute (line 404) | public async execute(): Promise { FILE: server/src/core/llm-manager/llm-duties/action-recognition-llm-duty.ts type ActionRecognitionLLMDutyParams (line 15) | interface ActionRecognitionLLMDutyParams extends LLMDutyParams { constant JSON_KEY_RESPONSE (line 21) | const JSON_KEY_RESPONSE = 'intent_name' class ActionRecognitionLLMDuty (line 23) | class ActionRecognitionLLMDuty extends LLMDuty { method constructor (line 33) | constructor(params: ActionRecognitionLLMDutyParams) { method init (line 65) | public async init( method execute (line 102) | public async execute(): Promise { FILE: server/src/core/llm-manager/llm-duties/conversation-llm-duty.ts class ConversationLLMDuty (line 28) | class ConversationLLMDuty extends LLMDuty { method constructor (line 38) | constructor() { method init (line 56) | public async init( method execute (line 145) | public async execute( FILE: server/src/core/llm-manager/llm-duties/custom-llm-duty.ts type CustomLLMDutyParams (line 13) | interface CustomLLMDutyParams extends LLMDutyParams { constant DEFAULT_DISPOSE_TIMEOUT (line 25) | const DEFAULT_DISPOSE_TIMEOUT = 60_000 constant DEFAULT_THOUGHT_TOKENS_BUDGET (line 30) | const DEFAULT_THOUGHT_TOKENS_BUDGET = 128 constant DEFAULT_TEMPERATURE (line 31) | const DEFAULT_TEMPERATURE = 0 class CustomLLMDuty (line 33) | class CustomLLMDuty extends LLMDuty { method constructor (line 50) | constructor(params: CustomLLMDutyParams) { method resetDisposeTimer (line 77) | private resetDisposeTimer(): void { method dispose (line 109) | public static async dispose(): Promise { method init (line 132) | public async init(): Promise { method execute (line 183) | public async execute(): Promise { FILE: server/src/core/llm-manager/llm-duties/custom-ner-llm-duty.ts type CustomNERLLMDutyParams (line 15) | interface CustomNERLLMDutyParams extends LLMDutyParams { class CustomNERLLMDuty (line 21) | class CustomNERLLMDuty extends LLMDuty { method constructor (line 32) | constructor(params: CustomNERLLMDutyParams) { method init (line 46) | public async init( method execute (line 83) | public async execute(): Promise { FILE: server/src/core/llm-manager/llm-duties/paraphrase-llm-duty.ts type ParaphraseLLMDutyParams (line 24) | type ParaphraseLLMDutyParams = LLMDutyParams class ParaphraseLLMDuty (line 26) | class ParaphraseLLMDuty extends LLMDuty { method constructor (line 47) | constructor(params: ParaphraseLLMDutyParams) { method init (line 67) | public async init( method execute (line 108) | public async execute( FILE: server/src/core/llm-manager/llm-duties/react-llm-duty.ts constant REACT_CONTINUATION_STATE_FILENAME (line 99) | const REACT_CONTINUATION_STATE_FILENAME = '.react-execution-continuation... constant REACT_HISTORY_COMPACTION_STATE_FILENAME (line 100) | const REACT_HISTORY_COMPACTION_STATE_FILENAME = constant REACT_CONTINUATION_MAX_AGE_MS (line 102) | const REACT_CONTINUATION_MAX_AGE_MS = 30 * 60 * 1_000 constant REACT_PROMPTS_LOG_DIR (line 103) | const REACT_PROMPTS_LOG_DIR = path.join(LOGS_PATH, 'prompts') type ReactHistoryCompactionScope (line 105) | type ReactHistoryCompactionScope = 'local' | 'remote' type ReactExecutionContinuationState (line 107) | interface ReactExecutionContinuationState { type ReactExecutionContinuationPayload (line 122) | interface ReactExecutionContinuationPayload { type PreparedReactHistory (line 127) | interface PreparedReactHistory { type ReactHistoryCompactionProviderState (line 132) | interface ReactHistoryCompactionProviderState { type ReactHistoryCompactionState (line 138) | interface ReactHistoryCompactionState { function buildProgressMessageFromSteps (line 144) | function buildProgressMessageFromSteps(steps: PlanStep[]): string | null { type ReactHistoryCompactionConfig (line 160) | interface ReactHistoryCompactionConfig { function createEmptyHistoryCompactionProviderState (line 165) | function createEmptyHistoryCompactionProviderState(): ReactHistoryCompac... constant REACT_HISTORY_COMPACTION_STATE_FALLBACK (line 173) | const REACT_HISTORY_COMPACTION_STATE_FALLBACK: ReactHistoryCompactionSta... class ReActLLMDuty (line 179) | class ReActLLMDuty extends LLMDuty { method constructor (line 218) | constructor(params: ReactLLMDutyParams) { method init (line 235) | public async init( method execute (line 283) | public async execute(): Promise { method loadPreparedHistory (line 963) | private async loadPreparedHistory(): Promise { method getHistoryCompactionScope (line 986) | private getHistoryCompactionScope(): ReactHistoryCompactionScope { method getHistoryCompactionConfig (line 990) | private getHistoryCompactionConfig(): ReactHistoryCompactionConfig { method loadHistoryCompactionProviderState (line 1004) | private loadHistoryCompactionProviderState( method normalizeHistoryCompactionProviderState (line 1011) | private normalizeHistoryCompactionProviderState( method saveHistoryCompactionProviderState (line 1029) | private saveHistoryCompactionProviderState( method normalizeMessageLogs (line 1049) | private normalizeMessageLogs(value: unknown): MessageLog[] { method hasStoredHistoryCompactionState (line 1079) | private hasStoredHistoryCompactionState( method areMessageLogsEqual (line 1089) | private areMessageLogsEqual(left: MessageLog[], right: MessageLog[]): ... method areHistoryCompactionStatesEqual (line 1106) | private areHistoryCompactionStatesEqual( method synchronizeHistoryCompactionState (line 1117) | private synchronizeHistoryCompactionState( method buildHistoryForCurrentTurn (line 1168) | private buildHistoryForCurrentTurn( method getStateForPostAnswerCompaction (line 1184) | private getStateForPostAnswerCompaction( method rollHistoryCompactionState (line 1199) | private async rollHistoryCompactionState( method maybeCompactHistoryAfterAnswer (line 1245) | private async maybeCompactHistoryAfterAnswer( method buildHistoryFromCompactionState (line 1296) | private buildHistoryFromCompactionState( method buildPreparedHistory (line 1312) | private buildPreparedHistory(history: MessageLog[]): PreparedReactHist... method compactHistoryLogs (line 1331) | private async compactHistoryLogs( method getInputAsText (line 1415) | private getInputAsText(input: string | object | null): string { method loadValidExecutionContinuationState (line 1427) | private static loadValidExecutionContinuationState(): ReactExecutionCo... method loadExecutionContinuation (line 1448) | private loadExecutionContinuation(): ReactExecutionContinuationState |... method saveExecutionContinuation (line 1452) | private saveExecutionContinuation(state: ReactExecutionContinuationSta... method clearExecutionContinuation (line 1456) | private clearExecutionContinuation(): void { method consumeExecutionContinuation (line 1460) | private consumeExecutionContinuation( method pauseExecutionForClarification (line 1475) | private pauseExecutionForClarification(params: { method buildPausedTrackedSteps (line 1509) | private buildPausedTrackedSteps( method supportsNativeTools (line 1544) | private get supportsNativeTools(): boolean { method createLLMCaller (line 1552) | private createLLMCaller( method withLocalPromptSession (line 1574) | private async withLocalPromptSession( method callLLM (line 1600) | private async callLLM( method callLLMText (line 1704) | private async callLLMText( method callLLMWithTools (line 1869) | private async callLLMWithTools( method safeJSONStringify (line 2193) | private safeJSONStringify(value: unknown): string { method resolveAllowedToolCallName (line 2201) | private resolveAllowedToolCallName( method estimateTokensFromText (line 2244) | private estimateTokensFromText(text: string): number { method estimateHistoryTokens (line 2252) | private estimateHistoryTokens(history?: MessageLog[]): number { method formatHistoryForPromptLog (line 2264) | private formatHistoryForPromptLog(history?: MessageLog[]): string { method buildLogTitle (line 2279) | private buildLogTitle(context?: string): string { method logTitle (line 2283) | private logTitle(context?: string): void { method writePhasePromptLog (line 2287) | private writePhasePromptLog(params: { method logPromptDispatch (line 2371) | private logPromptDispatch(params: { method compactSectionSourcePath (line 2453) | private compactSectionSourcePath(source: string): string { method buildDefaultPromptSections (line 2463) | private buildDefaultPromptSections(params: { method logPromptUsage (line 2510) | private logPromptUsage( method observeCompletionMetrics (line 2522) | private observeCompletionMetrics(params: { method logPromptReasoning (line 2585) | private logPromptReasoning( method buildLongToolCallReason (line 2599) | private buildLongToolCallReason( method runLongToolCallDiagnosis (line 2626) | private async runLongToolCallDiagnosis( method emitProgress (line 2665) | private async emitProgress(message: string): Promise { method toProgressiveMessage (line 2680) | private toProgressiveMessage(message: string): string { method makeDutyResult (line 2695) | private makeDutyResult(output: string): LLMDutyResult { method getReasoningGenerationId (line 2755) | private getReasoningGenerationId( method emitReasoningToken (line 2769) | private emitReasoningToken( method emitSyntheticTokenStream (line 2788) | private emitSyntheticTokenStream(output: string): void { FILE: server/src/core/llm-manager/llm-duties/react-llm-duty/catalog.ts function buildCatalog (line 9) | function buildCatalog(): Catalog { FILE: server/src/core/llm-manager/llm-duties/react-llm-duty/constants.ts constant CATALOG_TOKEN_BUDGET (line 9) | const CATALOG_TOKEN_BUDGET = 2_000 constant CHARS_PER_TOKEN (line 10) | const CHARS_PER_TOKEN = 4 constant DUTY_NAME (line 11) | const DUTY_NAME = 'ReAct LLM Duty' constant FORMATTING_RULES (line 13) | const FORMATTING_RULES = `FORMATTING RULES for all user-facing text: constant PLAN_SYSTEM_PROMPT (line 21) | const PLAN_SYSTEM_PROMPT = `You are an autonomous planning and acting ag... constant EXECUTE_SYSTEM_PROMPT (line 83) | const EXECUTE_SYSTEM_PROMPT = `You are an autonomous acting agent execut... constant RESOLVE_FUNCTION_SYSTEM_PROMPT (line 117) | const RESOLVE_FUNCTION_SYSTEM_PROMPT = `You are selecting a function fro... constant RECOVERY_PLAN_SYSTEM_PROMPT (line 146) | const RECOVERY_PLAN_SYSTEM_PROMPT = `You are revising a failed execution... constant REACT_HISTORY_COMPACTION_SYSTEM_PROMPT (line 178) | const REACT_HISTORY_COMPACTION_SYSTEM_PROMPT = `You rewrite a bounded ro... constant MAX_EXECUTIONS (line 195) | const MAX_EXECUTIONS = 20 constant MAX_REPLANS (line 196) | const MAX_REPLANS = 3 constant MAX_RETRIES_PER_FUNCTION (line 197) | const MAX_RETRIES_PER_FUNCTION = 2 constant MAX_TOOL_FAILURE_RETRIES (line 198) | const MAX_TOOL_FAILURE_RETRIES = 2 constant REACT_TEMPERATURE (line 199) | const REACT_TEMPERATURE = 0.2 constant REACT_INFERENCE_TIMEOUT_MS (line 200) | const REACT_INFERENCE_TIMEOUT_MS = 120_000 constant REACT_TIMEOUT_MAX_RETRIES (line 201) | const REACT_TIMEOUT_MAX_RETRIES = 1 constant FINAL_ANSWER_RETRY_DURATION_MS (line 202) | const FINAL_ANSWER_RETRY_DURATION_MS = 75_000 constant FINAL_ANSWER_MAX_RETRIES (line 203) | const FINAL_ANSWER_MAX_RETRIES = 2 constant TOOL_CALL_WAIT_NOTICE_DELAY_MS (line 204) | const TOOL_CALL_WAIT_NOTICE_DELAY_MS = 45_000 constant TOOL_CALL_DIAGNOSIS_DELAY_MS (line 205) | const TOOL_CALL_DIAGNOSIS_DELAY_MS = 90_000 constant TOOL_CALL_DIAGNOSIS_RETRY_DELAY_MS (line 206) | const TOOL_CALL_DIAGNOSIS_RETRY_DELAY_MS = 10_000 constant PLANNING_WAIT_NOTICE_DELAY_MS (line 207) | const PLANNING_WAIT_NOTICE_DELAY_MS = 1_500 constant REACT_HISTORY_COMPACTION_MAX_TOKENS (line 209) | const REACT_HISTORY_COMPACTION_MAX_TOKENS = 512 constant REACT_HISTORY_COMPACTION_RETRY_MAX_TOKENS (line 210) | const REACT_HISTORY_COMPACTION_RETRY_MAX_TOKENS = 1_024 constant REACT_LOCAL_PROVIDER_HISTORY_LOGS (line 211) | const REACT_LOCAL_PROVIDER_HISTORY_LOGS = 16 constant REACT_LOCAL_PROVIDER_HISTORY_COMPACTION_POINT (line 212) | const REACT_LOCAL_PROVIDER_HISTORY_COMPACTION_POINT = 12 constant REACT_REMOTE_PROVIDER_HISTORY_LOGS (line 213) | const REACT_REMOTE_PROVIDER_HISTORY_LOGS = 32 constant REACT_REMOTE_PROVIDER_HISTORY_COMPACTION_POINT (line 214) | const REACT_REMOTE_PROVIDER_HISTORY_COMPACTION_POINT = 24 FILE: server/src/core/llm-manager/llm-duties/react-llm-duty/execution.ts function buildExecutionMemorySection (line 53) | async function buildExecutionMemorySection( function buildExecutionPromptSections (line 64) | function buildExecutionPromptSections(params: { function parseExecutionHandoffIntent (line 113) | function parseExecutionHandoffIntent( function createExecutionHandoff (line 131) | function createExecutionHandoff( function shouldInjectContextManifestForExecution (line 146) | function shouldInjectContextManifestForExecution( function buildExecutionContextManifestSection (line 153) | function buildExecutionContextManifestSection( function runExecutionSelfObservationPhase (line 165) | async function runExecutionSelfObservationPhase( function runExecutionStep (line 298) | async function runExecutionStep( function runToolLevelExecution (line 405) | async function runToolLevelExecution( function resolveToolFunctionWithNativeTools (line 491) | async function resolveToolFunctionWithNativeTools( function resolveToolFunctionWithJSONMode (line 681) | async function resolveToolFunctionWithJSONMode( function executeFunction (line 875) | async function executeFunction( function executeFunctionWithNativeTools (line 912) | async function executeFunctionWithNativeTools( function executeFunctionWithJSONMode (line 1192) | async function executeFunctionWithJSONMode( function runToolExecution (line 1462) | async function runToolExecution( FILE: server/src/core/llm-manager/llm-duties/react-llm-duty/final-answer.ts function runFinalAnswerPhase (line 22) | async function runFinalAnswerPhase( FILE: server/src/core/llm-manager/llm-duties/react-llm-duty/history-compaction.ts constant SUMMARY_MAX_CHARS (line 5) | const SUMMARY_MAX_CHARS = 900 function cleanText (line 7) | function cleanText(value: unknown): string { function clampSummary (line 19) | function clampSummary(value: string): string { function toTopicBullets (line 37) | function toTopicBullets(value: string): string { function normalizeLegacySummaryObject (line 47) | function normalizeLegacySummaryObject(value: Record): s... function normalizeHistoryCompactionSummary (line 79) | function normalizeHistoryCompactionSummary(output: unknown): string | nu... function hasHistoryCompactionContent (line 95) | function hasHistoryCompactionContent(summary: string | null): boolean { function formatHistoryForCompaction (line 99) | function formatHistoryForCompaction( function buildCompactedHistoryMessage (line 126) | function buildCompactedHistoryMessage(summary: string): string { function toChatHistoryItems (line 130) | function toChatHistoryItems(logs: MessageLog[]): ChatHistoryItem[] { function isSameMessageLog (line 149) | function isSameMessageLog(left: MessageLog, right: MessageLog): boolean { function findMessageSequenceStart (line 157) | function findMessageSequenceStart( FILE: server/src/core/llm-manager/llm-duties/react-llm-duty/metrics.ts type RawPhaseMetric (line 5) | interface RawPhaseMetric { type RawPhaseMetrics (line 10) | type RawPhaseMetrics = Record type VisibleOutputParams (line 12) | interface VisibleOutputParams { type VisibleOutputMetrics (line 17) | interface VisibleOutputMetrics { type FinalAnswerCaptureParams (line 23) | interface FinalAnswerCaptureParams { type FinalAnswerMetricsSnapshot (line 35) | interface FinalAnswerMetricsSnapshot { type PhaseMetricSnapshot (line 45) | interface PhaseMetricSnapshot extends RawPhaseMetric { type PhaseMetricSnapshots (line 49) | type PhaseMetricSnapshots = Record type DerivedLLMMetrics (line 51) | interface DerivedLLMMetrics { type AccumulatedLLMMetricsState (line 71) | interface AccumulatedLLMMetricsState { type MeasureVisibleOutputOptions (line 81) | interface MeasureVisibleOutputOptions { type DeriveLLMMetricsOptions (line 86) | interface DeriveLLMMetricsOptions extends MeasureVisibleOutputOptions { type RecordCompletionMetricsParams (line 99) | interface RecordCompletionMetricsParams { type ObserveCompletionMetricsOptions (line 109) | interface ObserveCompletionMetricsOptions type CompletionObservationResult (line 126) | interface CompletionObservationResult { function perSecond (line 132) | function perSecond(units: number, durationMs: number): number { function safeJSONStringify (line 136) | function safeJSONStringify(value: unknown): string { function buildVisibleOutputText (line 144) | function buildVisibleOutputText(params: VisibleOutputParams): string { function measureVisibleOutput (line 162) | function measureVisibleOutput( function measureOutputMetrics (line 185) | function measureOutputMetrics( function recordCompletionMetrics (line 197) | function recordCompletionMetrics( function observeCompletionMetrics (line 225) | function observeCompletionMetrics( function captureFinalAnswerMetrics (line 277) | function captureFinalAnswerMetrics( function createPhaseMetricSnapshots (line 318) | function createPhaseMetricSnapshots( function averagePhaseTokensPerSecond (line 357) | function averagePhaseTokensPerSecond( function resolveFinalAnswerOutputTokens (line 383) | function resolveFinalAnswerOutputTokens( function selectTokensPerSecond (line 407) | function selectTokensPerSecond(params: { function deriveLLMMetrics (line 445) | function deriveLLMMetrics( FILE: server/src/core/llm-manager/llm-duties/react-llm-duty/phase-helpers.ts type DuplicateInputMatch (line 12) | interface DuplicateInputMatch { function asRecord (line 17) | function asRecord(value: unknown): Record | null { function normalizeStepLabel (line 25) | function normalizeStepLabel(label: string | null | undefined): string { function stableSerialize (line 33) | function stableSerialize(value: unknown): string { function normalizeToolInputForComparison (line 48) | function normalizeToolInputForComparison(toolInput: string): string { function extractRequestedToolInputFromObservation (line 62) | function extractRequestedToolInputFromObservation( function extractFailureMessageFromObservation (line 87) | function extractFailureMessageFromObservation(observation: string): stri... function getExecutionRequestedToolInput (line 111) | function getExecutionRequestedToolInput(execution: ExecutionRecord): str... function findDuplicateToolInputMatch (line 119) | function findDuplicateToolInputMatch( function buildPreviouslyUsedInputsSection (line 168) | function buildPreviouslyUsedInputsSection( function buildToolkitContextSection (line 198) | function buildToolkitContextSection( function buildContextManifestSection (line 260) | function buildContextManifestSection(manifest: string): string { function buildSelfModelSection (line 269) | function buildSelfModelSection(snapshot: string): string { function stripInlineToolMarkup (line 278) | function stripInlineToolMarkup(text: string): string { function shouldTreatPlanningTextAsFinalAnswer (line 291) | function shouldTreatPlanningTextAsFinalAnswer(text: string): boolean { function extractPlanningMarkedFinalAnswer (line 295) | function extractPlanningMarkedFinalAnswer(text: string): string | null { function extractPlanningTextHandoffDraft (line 310) | function extractPlanningTextHandoffDraft(text: string): string | null { function humanizeIdentifier (line 324) | function humanizeIdentifier(value: string): string { function normalizeStepLabelFromFunction (line 333) | function normalizeStepLabelFromFunction(functionName: string): string { function getFunctionDescription (line 343) | function getFunctionDescription(functionName: string): string { function descriptionToStepLabel (line 359) | function descriptionToStepLabel(description: string): string { function buildStepLabelFromFunction (line 374) | function buildStepLabelFromFunction(functionName: string): string { function commandTokenFromArgs (line 386) | function commandTokenFromArgs(rawArguments: string): string { function buildRecoveredStepLabel (line 411) | function buildRecoveredStepLabel( function resolveFunctionNameForPlan (line 423) | function resolveFunctionNameForPlan(functionName: string): string | null { function createPlanFromUnexpectedToolCall (line 475) | function createPlanFromUnexpectedToolCall( FILE: server/src/core/llm-manager/llm-duties/react-llm-duty/phase-policy.ts type ReactPhasePolicy (line 6) | interface ReactPhasePolicy { constant REACT_PHASE_POLICIES (line 22) | const REACT_PHASE_POLICIES: Record = { function getPhasePolicy (line 61) | function getPhasePolicy(phase?: ReactPhase): ReactPhasePolicy { function buildPhaseSystemPrompt (line 69) | function buildPhaseSystemPrompt( function formatPhasePolicyForLog (line 82) | function formatPhasePolicyForLog( FILE: server/src/core/llm-manager/llm-duties/react-llm-duty/plan-contract.ts constant PLAN_STEP_PROPERTIES_SCHEMA (line 1) | const PLAN_STEP_PROPERTIES_SCHEMA = { constant PLAN_STEP_SCHEMA (line 6) | const PLAN_STEP_SCHEMA = { constant NULLABLE_PLAN_STEPS_SCHEMA (line 13) | const NULLABLE_PLAN_STEPS_SCHEMA = { constant NULLABLE_STRING_SCHEMA (line 23) | const NULLABLE_STRING_SCHEMA = { constant NULLABLE_PLAN_INTENT_SCHEMA (line 27) | const NULLABLE_PLAN_INTENT_SCHEMA = { constant PLAN_RESPONSE_SCHEMA (line 37) | const PLAN_RESPONSE_SCHEMA = { FILE: server/src/core/llm-manager/llm-duties/react-llm-duty/plan-widget.ts function buildPlanComponentTree (line 17) | function buildPlanComponentTree( function emitPlanWidget (line 233) | function emitPlanWidget( FILE: server/src/core/llm-manager/llm-duties/react-llm-duty/planning.ts function buildPlanningPromptSections (line 37) | function buildPlanningPromptSections(params: { function isOperatingSystemControlOnlyPlan (line 84) | function isOperatingSystemControlOnlyPlan(steps: { function: string }[])... function createPlanningHandoff (line 94) | function createPlanningHandoff( function shouldAttemptForcedPlanFallback (line 108) | function shouldAttemptForcedPlanFallback(planResult: PlanResult): boolean { function runPlanningPhase (line 115) | async function runPlanningPhase( FILE: server/src/core/llm-manager/llm-duties/react-llm-duty/recovery-planning.ts function buildRecoveryPromptSections (line 34) | function buildRecoveryPromptSections(params: { function createRecoveryHandoff (line 80) | function createRecoveryHandoff( function runRecoveryPlanningPhase (line 94) | async function runRecoveryPlanningPhase( FILE: server/src/core/llm-manager/llm-duties/react-llm-duty/types.ts type ReactLLMDutyParams (line 9) | type ReactLLMDutyParams = LLMDutyParams type FunctionConfig (line 11) | interface FunctionConfig { type ToolFunctionsMap (line 22) | type ToolFunctionsMap = Record type PlanStep (line 24) | interface PlanStep { type ExecutionRecord (line 29) | interface ExecutionRecord { type PlanStepStatus (line 37) | type PlanStepStatus = 'pending' | 'in_progress' | 'completed' type TrackedPlanStep (line 39) | interface TrackedPlanStep { type Catalog (line 44) | interface Catalog { type FinalPhaseIntent (line 49) | type FinalPhaseIntent = type FinalResponseSignal (line 56) | interface FinalResponseSignal { type PlanResult (line 68) | type PlanResult = type ExecutionStepResult (line 72) | type ExecutionStepResult = type ToolExecutionResult (line 81) | interface ToolExecutionResult { type PromptLogSection (line 87) | interface PromptLogSection { type ReactPhase (line 93) | type ReactPhase = 'planning' | 'execution' | 'recovery' | 'final_answer' type LLMCallOptions (line 95) | interface LLMCallOptions { type LLMCaller (line 108) | interface LLMCaller { FILE: server/src/core/llm-manager/llm-duties/react-llm-duty/utils.ts type ExecutionHistoryFormatMode (line 10) | type ExecutionHistoryFormatMode = 'compact' | 'complete' constant COMPACT_EXECUTION_HISTORY_MAX_DETAILED_STEPS (line 12) | const COMPACT_EXECUTION_HISTORY_MAX_DETAILED_STEPS = 6 function clipText (line 18) | function clipText(value: string, maxLength = 180): string { function clipMultilineText (line 27) | function clipMultilineText( function summarizeScalar (line 54) | function summarizeScalar( function pickRepresentativeText (line 82) | function pickRepresentativeText(record: Record): string... function summarizeArrayField (line 111) | function summarizeArrayField( function summarizeObjectField (line 148) | function summarizeObjectField( function summarizeStructuredPayload (line 173) | function summarizeStructuredPayload( function extractObservationPayload (line 220) | function extractObservationPayload( function formatObservationSummary (line 253) | function formatObservationSummary( function parseFinalIntent (line 322) | function parseFinalIntent( function indentBlock (line 340) | function indentBlock(value: string, prefix: string): string { function formatExecutionEntry (line 347) | function formatExecutionEntry( function formatOlderExecutionSummary (line 369) | function formatOlderExecutionSummary(history: ExecutionRecord[]): string { function formatExecutionHistory (line 396) | function formatExecutionHistory( function parseStepsFromArgs (line 440) | function parseStepsFromArgs( function extractPlanFromParsed (line 463) | function extractPlanFromParsed( function parseOutput (line 565) | function parseOutput( function parseToolCallArguments (line 623) | function parseToolCallArguments( function extractPlanResultFromCreatePlanArgs (line 664) | function extractPlanResultFromCreatePlanArgs( function extractTaggedJson (line 787) | function extractTaggedJson(input: string): string | null { function extractJsonSubstring (line 798) | function extractJsonSubstring(input: string): string | null { function extractFinalAnswerFromToolResult (line 827) | function extractFinalAnswerFromToolResult(toolExecutionResult: { function validateToolInput (line 853) | function validateToolInput( function tryRepairToolInput (line 986) | function tryRepairToolInput( function repairJsonStringLiterals (line 1002) | function repairJsonStringLiterals(input: string): string { FILE: server/src/core/llm-manager/llm-duties/skill-router-llm-duty.ts type SkillRouterLLMDutyParams (line 16) | type SkillRouterLLMDutyParams = LLMDutyParams constant SYSTEM_PROMPT (line 18) | const SYSTEM_PROMPT = `You are a skill routing AI. Your task is to analy... class SkillRouterLLMDuty (line 49) | class SkillRouterLLMDuty extends LLMDuty { method constructor (line 56) | constructor(params: SkillRouterLLMDutyParams) { method init (line 73) | public async init( method execute (line 110) | public async execute(): Promise { FILE: server/src/core/llm-manager/llm-duties/slot-filling-llm-duty.ts type SlotFillingLLMDutyParams (line 22) | interface SlotFillingLLMDutyParams { constant SYSTEM_PROMPT (line 31) | const SYSTEM_PROMPT = `You are a highly specialized linguistic model cal... constant WARM_UP_HISTORY (line 51) | const WARM_UP_HISTORY: ChatHistoryItem[] = [ class SlotFillingLLMDuty (line 78) | class SlotFillingLLMDuty extends LLMDuty { method constructor (line 86) | constructor(params: SlotFillingLLMDutyParams) { method init (line 102) | public async init( method execute (line 139) | public async execute( FILE: server/src/core/llm-manager/llm-duty.ts type LLMDutyInitParams (line 17) | interface LLMDutyInitParams { type LLMDutyExecuteParams (line 28) | interface LLMDutyExecuteParams { type LLMDutyParams (line 32) | interface LLMDutyParams { type LLMDutyResult (line 37) | interface LLMDutyResult { type LLMFunctionParameter (line 44) | interface LLMFunctionParameter { constant DEFAULT_INIT_PARAMS (line 49) | const DEFAULT_INIT_PARAMS: LLMDutyInitParams = { constant DEFAULT_EXECUTE_PARAMS (line 53) | const DEFAULT_EXECUTE_PARAMS: LLMDutyExecuteParams = { constant PARAMETER_TYPE_DESCRIPTIONS (line 57) | const PARAMETER_TYPE_DESCRIPTIONS = { function formatParameterDescription (line 78) | function formatParameterDescription( FILE: server/src/core/llm-manager/llm-manager.ts type CoreLLMDutyConfig (line 34) | interface CoreLLMDutyConfig { type CoreLLMDuties (line 40) | interface CoreLLMDuties { type LLMManagerLlama (line 48) | type LLMManagerLlama = Llama | null type LLMManagerModel (line 49) | type LLMManagerModel = LlamaModel | null type LLMManagerContext (line 50) | type LLMManagerContext = LlamaContext | null type ActionsClassifierContent (line 51) | type ActionsClassifierContent = string | null type SkillListContent (line 52) | type SkillListContent = string | null constant DEFAULT_CORE_LLM_DUTIES_CONTEXT_SIZE (line 58) | const DEFAULT_CORE_LLM_DUTIES_CONTEXT_SIZE = 2_048 constant CORE_LLM_DUTIES (line 67) | const CORE_LLM_DUTIES: CoreLLMDuties = { class LLMManager (line 112) | class LLMManager { method llama (line 126) | get llama(): Llama { method model (line 130) | get model(): LlamaModel { method context (line 134) | get context(): LlamaContext { method llmActionsClassifierContent (line 138) | get llmActionsClassifierContent(): ActionsClassifierContent { method skillListContent (line 142) | get skillListContent(): SkillListContent { method coreLLMDuties (line 146) | get coreLLMDuties(): CoreLLMDuties { method isLLMEnabled (line 150) | get isLLMEnabled(): boolean { method isLLMNLGEnabled (line 154) | get isLLMNLGEnabled(): boolean { method isLLMActionRecognitionEnabled (line 158) | get isLLMActionRecognitionEnabled(): boolean { method shouldWarmUpLLMDuties (line 162) | get shouldWarmUpLLMDuties(): boolean { method areLLMDutiesWarmedUp (line 166) | get areLLMDutiesWarmedUp(): boolean { method constructor (line 170) | constructor() { method postCheck (line 182) | private async postCheck(): Promise { method singleLoad (line 200) | private async singleLoad(): Promise { method loadLLM (line 260) | public async loadLLM(): Promise { method warmUpLLMDuties (line 757) | public async warmUpLLMDuties(): Promise { method loadHistory (line 777) | public async loadHistory( FILE: server/src/core/llm-manager/llm-provider.ts type CompletionResult (line 25) | interface CompletionResult { type NormalizedCompletionResult (line 47) | interface NormalizedCompletionResult { type PromptAbortError (line 57) | interface PromptAbortError extends Error { type Provider (line 60) | interface Provider { type ProviderRole (line 70) | type ProviderRole = 'workflow' | 'agent' constant LOCAL_SERVER_PROVIDERS (line 72) | const LOCAL_SERVER_PROVIDERS = new Set([ constant LLM_PROVIDERS_MAP (line 77) | const LLM_PROVIDERS_MAP = { constant DEFAULT_MAX_EXECUTION_RETRIES (line 90) | const DEFAULT_MAX_EXECUTION_RETRIES = 2 constant DEFAULT_REMOTE_PROVIDER_ERROR_RETRIES (line 91) | const DEFAULT_REMOTE_PROVIDER_ERROR_RETRIES = 1 constant TIMEOUT_RETRY_INCREMENT_MS (line 92) | const TIMEOUT_RETRY_INCREMENT_MS = 30_000 constant REMOTE_PROVIDER_ERROR_RETRY_DELAY_MS (line 93) | const REMOTE_PROVIDER_ERROR_RETRY_DELAY_MS = 5_000 constant RETRYABLE_ERROR_RETRY_DELAY_MS (line 94) | const RETRYABLE_ERROR_RETRY_DELAY_MS = 1_250 constant EMPTY_COMPLETION_RETRY_DELAY_MS (line 95) | const EMPTY_COMPLETION_RETRY_DELAY_MS = 750 constant MAX_LOG_SERIALIZED_LENGTH (line 96) | const MAX_LOG_SERIALIZED_LENGTH = 4_000 constant DEFAULT_TEMPERATURE (line 97) | const DEFAULT_TEMPERATURE = 0 // Disabled constant DEFAULT_MAX_TOKENS (line 98) | const DEFAULT_MAX_TOKENS = 8_192 class LLMProvider (line 99) | class LLMProvider { method constructor (line 106) | constructor() { method isLLMProviderReady (line 115) | public get isLLMProviderReady(): boolean { method agentLLMName (line 119) | public get agentLLMName(): string { method workflowLLMName (line 128) | public get workflowLLMName(): string { method localLLMName (line 137) | public get localLLMName(): string { method isLlamaCPPServerReady (line 157) | public get isLlamaCPPServerReady(): boolean { method consumeLastProviderErrorMessage (line 172) | public consumeLastProviderErrorMessage(): string | null { method init (line 181) | public async init(): Promise { method dispose (line 229) | public dispose(): void { method createProvider (line 235) | private async createProvider( method disposeCurrentProviders (line 251) | private disposeCurrentProviders(): void { method bootLocalServerProviders (line 262) | private async bootLocalServerProviders(): Promise { method getProviderNameForDuty (line 273) | private getProviderNameForDuty(dutyType: LLMDuties | null): LLMProvide... method getProviderForDuty (line 279) | private getProviderForDuty(dutyType: LLMDuties | null): Provider | und... method getDefaultTimeoutForProvider (line 285) | private getDefaultTimeoutForProvider(providerName: LLMProviders): numb... method assertLocalProviderCompatibility (line 289) | private assertLocalProviderCompatibility(): void { method normalizeCompletionResultForLocalProvider (line 314) | private normalizeCompletionResultForLocalProvider( method parseProviderResponseData (line 343) | private parseProviderResponseData(rawData: unknown): Record): boole... method normalizeToolSchemasForCompatibility (line 448) | private normalizeToolSchemasForCompatibility( method normalizeToolChoiceForCompatibility (line 493) | private normalizeToolChoiceForCompatibility( method withOmittedToolChoice (line 561) | private withOmittedToolChoice( method shouldDisableThinkingForForcedToolChoice (line 575) | private shouldDisableThinkingForForcedToolChoice( method isRetryablePromptError (line 591) | private isRetryablePromptError(error: unknown): boolean { method isTimeoutLikeError (line 646) | private isTimeoutLikeError(error: unknown): boolean { method waitForRetry (line 682) | private waitForRetry(delayMs: number): Promise { method isThinkingToolChoiceConflictError (line 688) | private isThinkingToolChoiceConflictError(error: unknown): boolean { method isUnsupportedToolChoiceError (line 697) | private isUnsupportedToolChoiceError(error: unknown): boolean { method buildProviderErrorDetails (line 713) | private buildProviderErrorDetails(error: unknown): string { method isPromptAbortReason (line 766) | private isPromptAbortReason(value: unknown): value is LLMPromptAbortRe... method getPromptAbortReason (line 780) | private getPromptAbortReason(error: unknown): LLMPromptAbortReason | n... method createPromptAbortError (line 791) | private createPromptAbortError(reason: LLMPromptAbortReason): PromptAb... method omitCompletionSignal (line 801) | private omitCompletionSignal( method buildProviderErrorMessage (line 810) | private buildProviderErrorMessage( method extractOpenAICompatibleReasoningFragments (line 829) | private extractOpenAICompatibleReasoningFragments( method extractOpenAICompatibleReasoning (line 887) | private extractOpenAICompatibleReasoning( method normalizeCompletionResultForOpenAICompatibleProvider (line 905) | private normalizeCompletionResultForOpenAICompatibleProvider( method toOpenAIResponsesToolCall (line 1034) | private toOpenAIResponsesToolCall( method extractOpenAIResponsesText (line 1070) | private extractOpenAIResponsesText( method extractOpenAIResponsesToolCalls (line 1116) | private extractOpenAIResponsesToolCalls( method extractOpenAIResponsesReasoningFromItem (line 1140) | private extractOpenAIResponsesReasoningFromItem( method extractOpenAIResponsesReasoningFragments (line 1199) | private extractOpenAIResponsesReasoningFragments( method normalizeCompletionResultForOpenAIResponsesProvider (line 1271) | private normalizeCompletionResultForOpenAIResponsesProvider( method isReadableStream (line 1325) | private isReadableStream(value: unknown): value is Readable { method normalizeStreamingCompletionResult (line 1336) | private async normalizeStreamingCompletionResult( method cleanUpResult (line 1855) | public cleanUpResult(str: string): string { method prompt (line 1874) | public async prompt( FILE: server/src/core/llm-manager/llm-providers/ai-sdk-remote-llm-provider.ts type AISDKFlavor (line 23) | type AISDKFlavor = type AISDKRemoteProviderConfig (line 33) | interface AISDKRemoteProviderConfig { type AISDKProviderRole (line 46) | type AISDKProviderRole = 'workflow' | 'agent' type CallState (line 48) | interface CallState { class AISDKRemoteLLMProvider (line 64) | class AISDKRemoteLLMProvider { method constructor (line 75) | constructor( method modelName (line 95) | public get modelName(): string { method dispose (line 99) | public dispose(): void { method checkAPIKey (line 103) | private checkAPIKey(): void { method createLanguageModel (line 117) | private createLanguageModel(): unknown { method getLanguageModel (line 216) | private getLanguageModel(): unknown { method getOpenAIWebSocketFetch (line 220) | private getOpenAIWebSocketFetch(): ReturnType { function readLlamaCPPManifest (line 56) | function readLlamaCPPManifest(): Record | null { function getLlamaServerBinaryDirectoryPath (line 97) | function getLlamaServerBinaryDirectoryPath(): string { function getLlamaServerBinaryPath (line 115) | function getLlamaServerBinaryPath(): string { function resolveModelPath (line 122) | function resolveModelPath(modelPath: string): string { class LlamaCPPLLMProvider (line 133) | class LlamaCPPLLMProvider extends AISDKRemoteLLMProvider { method constructor (line 145) | constructor(role: AISDKProviderRole = 'agent') { method modelName (line 171) | public override get modelName(): string { method boot (line 175) | public async boot(): Promise { method isServerReady (line 179) | public isServerReady(): boolean { method dispose (line 185) | public override dispose(): void { method runChatCompletion (line 198) | public override async runChatCompletion( method runDirectPlainTextCompletion (line 228) | private async runDirectPlainTextCompletion( method runDirectPlainTextStreamingCompletion (line 241) | private async runDirectPlainTextStreamingCompletion( method buildDirectPlainTextPayload (line 266) | private buildDirectPlainTextPayload( method buildDirectRequestConfig (line 295) | private buildDirectRequestConfig( method consumeStreamingResponse (line 310) | private async consumeStreamingResponse( method readReasoningChunk (line 499) | private readReasoningChunk(delta: Record): string { method toDirectChatMessages (line 545) | private toDirectChatMessages( method ensureServerReady (line 581) | private async ensureServerReady(): Promise { method startSharedServer (line 626) | private static async startSharedServer(modelPath: string): Promise { method writeServerLogChunk (line 835) | private static writeServerLogChunk(chunk: Buffer): void { method writeServerLogLine (line 841) | private static writeServerLogLine(message: string): void { method ensureServerLogStream (line 847) | private static ensureServerLogStream(): fs.WriteStream { method getServerLogOpenState (line 873) | private static getServerLogOpenState(now: number): { method closeServerLogStream (line 899) | private static closeServerLogStream(): void { FILE: server/src/core/llm-manager/llm-providers/local-llm-provider.ts type LocalCompletionParams (line 15) | type LocalCompletionParams = Omit class LocalLLMProvider (line 17) | class LocalLLMProvider { method constructor (line 21) | constructor() { method modelName (line 26) | public get modelName(): string { method runChatCompletion (line 30) | public runChatCompletion( FILE: server/src/core/llm-manager/llm-providers/moonshotai-llm-provider.ts class MoonshotAILLMProvider (line 5) | class MoonshotAILLMProvider extends AISDKRemoteLLMProvider { method constructor (line 6) | constructor(role: AISDKProviderRole = 'agent') { FILE: server/src/core/llm-manager/llm-providers/openai-llm-provider.ts class OpenAILLMProvider (line 5) | class OpenAILLMProvider extends AISDKRemoteLLMProvider { method constructor (line 6) | constructor(role: AISDKProviderRole = 'agent') { FILE: server/src/core/llm-manager/llm-providers/openrouter-llm-provider.ts class OpenRouterLLMProvider (line 5) | class OpenRouterLLMProvider extends AISDKRemoteLLMProvider { method constructor (line 6) | constructor(role: AISDKProviderRole = 'agent') { FILE: server/src/core/llm-manager/llm-providers/sglang-llm-provider.ts class SGLangLLMProvider (line 8) | class SGLangLLMProvider extends AISDKRemoteLLMProvider { method constructor (line 9) | constructor(role: AISDKProviderRole = 'agent') { FILE: server/src/core/llm-manager/llm-providers/z-ai-llm-provider.ts class ZAILLMProvider (line 8) | class ZAILLMProvider extends AISDKRemoteLLMProvider { method constructor (line 9) | constructor(role: AISDKProviderRole = 'agent') { FILE: server/src/core/llm-manager/persona.ts type Mood (line 18) | interface Mood { type WeatherSnapshot (line 24) | interface WeatherSnapshot { type WeatherCacheState (line 31) | interface WeatherCacheState { type CompactPromptOptions (line 37) | interface CompactPromptOptions { type Moods (line 43) | enum Moods { constant WHO_YOU_ARE (line 57) | const WHO_YOU_ARE = `WHO YOU ARE: constant CONTEXT_INFO (line 64) | const CONTEXT_INFO = `CONTEXT INFO: constant WHAT_YOU_DO (line 66) | const WHAT_YOU_DO = `WHAT YOU DO: constant LEAN_DUTY_IDENTITY_DIRECTIVES (line 68) | const LEAN_DUTY_IDENTITY_DIRECTIVES = `IDENTITY: constant YOUR_PERSONALITY (line 77) | const YOUR_PERSONALITY = `YOUR PERSONALITY TRAITS: constant PERSONALITY_RULES (line 81) | const PERSONALITY_RULES = `You are not a neutral assistant voice. You al... constant IDENTITY_DIRECTIVES (line 91) | const IDENTITY_DIRECTIVES = `IDENTITY: constant YOUR_CURRENT_MOOD (line 111) | const YOUR_CURRENT_MOOD = 'YOUR CURRENT MOOD:' constant YOUR_DUTY (line 112) | const YOUR_DUTY = 'YOUR DUTY:' constant COMPACT_STYLE (line 113) | const COMPACT_STYLE = `YOUR STYLE: constant DEFAULT_MOOD_DESC (line 115) | const DEFAULT_MOOD_DESC = `YOUR CURRENT STATE: upbeat. constant TIRING_MOOD_DESC (line 122) | const TIRING_MOOD_DESC = `YOUR CURRENT STATE: tired. constant SAD_MOOD_DESC (line 130) | const SAD_MOOD_DESC = `YOUR CURRENT STATE: sad. constant ANGRY_MOOD_DESC (line 137) | const ANGRY_MOOD_DESC = `YOUR CURRENT STATE: angry. constant COCKY_MOOD_DESC (line 144) | const COCKY_MOOD_DESC = `YOUR CURRENT STATE: cocky. constant MOODS (line 151) | const MOODS: Mood[] = [ constant DEFAULT_MOOD (line 158) | const DEFAULT_MOOD = MOODS.find((mood) => mood.type === Moods.Default) a... constant BAD_MOODS (line 159) | const BAD_MOODS = [Moods.Tired, Moods.Sad, Moods.Angry] constant WEATHER_REFRESH_INTERVAL_MS (line 161) | const WEATHER_REFRESH_INTERVAL_MS = (60_000 * 60) * 4 constant EMPTY_WEATHER_CACHE_STATE (line 162) | const EMPTY_WEATHER_CACHE_STATE: WeatherCacheState = { class Persona (line 168) | class Persona { method mood (line 183) | get mood(): Mood { method constructor (line 187) | constructor() { method setContextInfo (line 214) | private setContextInfo(): void { method setOwnerInfo (line 238) | private async setOwnerInfo(): Promise { method fallbackCityFromTimezone (line 276) | private fallbackCityFromTimezone(timeZone: string): string { method getOwnerWeatherLocationQuery (line 282) | private getOwnerWeatherLocationQuery(): string { method getFreshCachedWeatherSnapshot (line 298) | private getFreshCachedWeatherSnapshot( method saveWeatherSnapshotCache (line 318) | private saveWeatherSnapshotCache( method refreshWeatherSnapshot (line 329) | private async refreshWeatherSnapshot(): Promise { method applyWeatherMoodOverride (line 399) | private applyWeatherMoodOverride(random: number): void { method syncWeatherMoodAndContext (line 441) | async syncWeatherMoodAndContext(): Promise { method setMood (line 463) | private setMood(): void { method getExtraPersonalityTraits (line 528) | private getExtraPersonalityTraits(): string { method getExtraMood (line 545) | private getExtraMood(): string { method refreshContextInfo (line 555) | public refreshContextInfo(): void { method getContextInfo (line 559) | public getContextInfo(): string { method getDutySystemPrompt (line 563) | public getDutySystemPrompt(dutySystemPrompt: string): string { method getCompactDutySystemPrompt (line 584) | public getCompactDutySystemPrompt( method getConversationSystemPrompt (line 631) | public getConversationSystemPrompt(): string { FILE: server/src/core/llm-manager/streaming-chunk.ts constant MIN_STREAMING_OVERLAP_DEDUP_LENGTH (line 1) | const MIN_STREAMING_OVERLAP_DEDUP_LENGTH = 2 function mergeStreamingChunk (line 3) | function mergeStreamingChunk( FILE: server/src/core/llm-manager/types.ts type LLMDuties (line 11) | enum LLMDuties { type LLMProviders (line 29) | enum LLMProviders { type ActionCallingStatus (line 43) | enum ActionCallingStatus { type SlotFillingStatus (line 48) | enum SlotFillingStatus { type PromptOrChatHistory (line 53) | type PromptOrChatHistory = string | ChatHistoryItem[] type OpenAIToolFunction (line 59) | interface OpenAIToolFunction { type OpenAITool (line 64) | interface OpenAITool { type OpenAIToolChoice (line 68) | type OpenAIToolChoice = type OpenAIToolCall (line 82) | interface OpenAIToolCall { type LLMReasoningMode (line 91) | type LLMReasoningMode = 'off' | 'guarded' | 'on' type LLMPromptAbortReason (line 93) | interface LLMPromptAbortReason { type CompletionParams (line 100) | interface CompletionParams { type ActionCallingMissingParamsOutput (line 159) | interface ActionCallingMissingParamsOutput { type ActionCallingNotFoundOutput (line 165) | interface ActionCallingNotFoundOutput { type ActionCallingSuccessOutput (line 168) | interface ActionCallingSuccessOutput { type ActionCallingOutput (line 173) | type ActionCallingOutput = type SlotFillingNotFoundOutput (line 178) | interface SlotFillingNotFoundOutput { type SlotFillingSuccessOutput (line 181) | interface SlotFillingSuccessOutput { type SlotFillingOutput (line 186) | type SlotFillingOutput = FILE: server/src/core/memory-manager/memory-manager.ts constant CONTEXT_SYNC_TTL_MS (line 28) | const CONTEXT_SYNC_TTL_MS = 5 * 60 * 1_000 constant LEON_MEMORY_DISCUSSION_TTL_DAYS (line 29) | const LEON_MEMORY_DISCUSSION_TTL_DAYS = 5 constant LEON_MEMORY_RECALL_TOP_K (line 30) | const LEON_MEMORY_RECALL_TOP_K = 12 constant LEON_MEMORY_PLANNING_RECALL_TOP_K (line 31) | const LEON_MEMORY_PLANNING_RECALL_TOP_K = 6 constant LEON_MEMORY_PLANNING_TOKEN_BUDGET (line 32) | const LEON_MEMORY_PLANNING_TOKEN_BUDGET = 220 constant LEON_MEMORY_EXECUTION_TOKEN_BUDGET (line 33) | const LEON_MEMORY_EXECUTION_TOKEN_BUDGET = 480 constant PERSISTENT_EXTRACTION_TIMEOUT_MS (line 34) | const PERSISTENT_EXTRACTION_TIMEOUT_MS = 45_000 constant PERSISTENT_EXTRACTION_MAX_RETRIES (line 35) | const PERSISTENT_EXTRACTION_MAX_RETRIES = 1 constant PERSISTENT_EXTRACTION_MAX_TOKENS (line 36) | const PERSISTENT_EXTRACTION_MAX_TOKENS = 220 constant PERSISTENT_EXTRACTION_MAX_USER_CHARS (line 37) | const PERSISTENT_EXTRACTION_MAX_USER_CHARS = 1_600 constant PERSISTENT_EXTRACTION_MAX_ASSISTANT_CHARS (line 38) | const PERSISTENT_EXTRACTION_MAX_ASSISTANT_CHARS = 1_200 constant STORAGE_MAINTENANCE_INTERVAL_MS (line 39) | const STORAGE_MAINTENANCE_INTERVAL_MS = 6 * 60 * 60 * 1_000 constant SOFT_DELETED_RETENTION_MS (line 40) | const SOFT_DELETED_RETENTION_MS = 7 * 24 * 60 * 60 * 1_000 constant DISCUSSION_ACTIVE_RETENTION_DAYS (line 41) | const DISCUSSION_ACTIVE_RETENTION_DAYS = 30 constant DISCUSSION_COLD_ARCHIVE_AFTER_DAYS (line 42) | const DISCUSSION_COLD_ARCHIVE_AFTER_DAYS = 180 constant DAILY_FULL_RETENTION_DAYS (line 43) | const DAILY_FULL_RETENTION_DAYS = 90 constant QMD_INDEX_NAME (line 44) | const QMD_INDEX_NAME = 'leon-memory' constant DAILY_SUMMARY_QUEUE_STALE_MS (line 45) | const DAILY_SUMMARY_QUEUE_STALE_MS = 2 * 60 * 1_000 constant PERSISTENT_SIMILARITY_JACCARD_THRESHOLD (line 46) | const PERSISTENT_SIMILARITY_JACCARD_THRESHOLD = 0.84 constant PERSISTENT_SIMILARITY_CONTAINMENT_MIN_CHARS (line 47) | const PERSISTENT_SIMILARITY_CONTAINMENT_MIN_CHARS = 40 constant RECALL_MIN_QUERY_TERMS (line 48) | const RECALL_MIN_QUERY_TERMS = 3 constant MIN_TRUNCATED_RECALL_TOKENS (line 49) | const MIN_TRUNCATED_RECALL_TOKENS = 48 constant TRUNCATED_RECALL_BUDGET_RATIO (line 50) | const TRUNCATED_RECALL_BUDGET_RATIO = 0.6 constant PERSISTENT_SIMILARITY_LOOKBACK (line 51) | const PERSISTENT_SIMILARITY_LOOKBACK = 300 constant DISCUSSION_TTL_MS (line 52) | const DISCUSSION_TTL_MS = LEON_MEMORY_DISCUSSION_TTL_DAYS * 24 * 60 * 60... constant DAY_MS (line 53) | const DAY_MS = 24 * 60 * 60 * 1_000 constant DAY_KEY_PATTERN (line 54) | const DAY_KEY_PATTERN = /^\d{4}-\d{2}-\d{2}$/ constant MAINTENANCE_REPORTS_DIRNAME (line 55) | const MAINTENANCE_REPORTS_DIRNAME = 'reports' constant EXTRACT_PERSISTENT_MEMORY_SCHEMA (line 56) | const EXTRACT_PERSISTENT_MEMORY_SCHEMA = { function normalizeContent (line 75) | function normalizeContent(content: string): string { function tokenizeWords (line 79) | function tokenizeWords(content: string): string[] { function tokenizeFilenameWords (line 85) | function tokenizeFilenameWords(filename: string): string[] { function namespaceRecallWeight (line 91) | function namespaceRecallWeight(namespace: RecallHit['namespace']): number { function computeHash (line 108) | function computeHash(value: string): string { function toDayKey (line 112) | function toDayKey(timestamp: number): string { function parseDayKeyFromFilename (line 116) | function parseDayKeyFromFilename(filename: string): string | null { function dayKeyToTs (line 121) | function dayKeyToTs(dayKey: string): number | null { type StorageSnapshot (line 126) | interface StorageSnapshot { function renderRecallPrompt (line 136) | function renderRecallPrompt(result: RecallResult): string { function parseConversationPair (line 163) | function parseConversationPair(content: string): Array<{ who: 'owner' | ... function truncateForExtraction (line 186) | function truncateForExtraction(content: string, maxChars: number): string { function shouldAttemptPersistentExtraction (line 194) | function shouldAttemptPersistentExtraction( class MemoryManager (line 205) | class MemoryManager { method getPersistentEntryFilePath (line 242) | private getPersistentEntryFilePath(itemId: string, timestamp: number):... method normalizeForSimilarity (line 251) | private normalizeForSimilarity(text: string): string { method tokenizeForSimilarity (line 259) | private tokenizeForSimilarity(text: string): string[] { method tokenJaccardSimilarity (line 266) | private tokenJaccardSimilarity(tokensA: string[], tokensB: string[]): ... method isNearDuplicatePersistentContent (line 289) | private isNearDuplicatePersistentContent( method shouldSkipSimilarPersistentCandidate (line 329) | private async shouldSkipSimilarPersistentCandidate( method constructor (line 354) | public constructor() { method isLoaded (line 362) | public get isLoaded(): boolean { method load (line 366) | public async load(): Promise { method shouldRecallForQuery (line 391) | public shouldRecallForQuery(query: string): boolean { method remember (line 399) | public async remember(input: MemoryWriteInput): Promise { method rememberExplicit (line 451) | public async rememberExplicit( method forgetById (line 467) | public async forgetById(id: string): Promise { method forgetByQuery (line 475) | public async forgetByQuery(query: string): Promise { method recall (line 488) | public async recall(input: RecallQuery): Promise { method normalizeRecallNamespaces (line 808) | private normalizeRecallNamespaces( method buildPlanningMemoryPack (line 832) | public async buildPlanningMemoryPack( method buildExecutionMemoryPack (line 866) | public async buildExecutionMemoryPack( method observeTurn (line 906) | public async observeTurn(input: TurnObservationInput): Promise { method savePersistentMemoryCandidates (line 958) | public async savePersistentMemoryCandidates( method extractJsonSubstring (line 1026) | private extractJsonSubstring(input: string): string | null { method parsePersistentExtractionCandidates (line 1050) | private parsePersistentExtractionCandidates(output: unknown): string[] { method isExplicitEmptyPersistentExtractionPayload (line 1155) | private isExplicitEmptyPersistentExtractionPayload( method savePersistentMemoryCandidatesFromTurn (line 1207) | public async savePersistentMemoryCandidatesFromTurn( method summarizeDay (line 1338) | public async summarizeDay(dayKey: string): Promise { method summarizeDayInternal (line 1376) | private async summarizeDayInternal(dayKey: string): Promise { method pruneDiscussion (line 1428) | public async pruneDiscussion(nowTs = Date.now()): Promise { method scheduleContextSyncAtBoot (line 1438) | private scheduleContextSyncAtBoot(): void { method requestStorageMaintenance (line 1447) | private requestStorageMaintenance(nowTs = Date.now()): void { method syncContextFiles (line 1470) | public async syncContextFiles(force = false): Promise { method getPathSize (line 1523) | private async getPathSize(targetPath: string): Promise { method captureStorageSnapshot (line 1572) | private async captureStorageSnapshot(): Promise { method writeMonthlyMaintenanceReport (line 1602) | private async writeMonthlyMaintenanceReport(input: { method runStorageMaintenance (line 1650) | private async runStorageMaintenance(nowTs: number): Promise { method rotateDiscussionMarkdownFiles (line 1730) | private async rotateDiscussionMarkdownFiles( method removePersistentMirrorFiles (line 1877) | private async removePersistentMirrorFiles( FILE: server/src/core/memory-manager/memory-repository.ts function parseJSONValue (line 22) | function parseJSONValue(value: unknown): Record { function mapMemoryRow (line 39) | function mapMemoryRow(row: Record): MemoryRecord { class MemoryRepository (line 62) | class MemoryRepository { method isReady (line 65) | public get isReady(): boolean { method load (line 69) | public async load(dbPath: string): Promise { method ensureDb (line 82) | private ensureDb(): SQLiteDatabase { method upsertMemoryItem (line 90) | public upsertMemoryItem( method getDailyConversationLogs (line 198) | public getDailyConversationLogs(dayKey: string): Array<{ content: stri... method getDailySummaryItem (line 218) | public getDailySummaryItem(dayKey: string): MemoryRecord | null { method markDiscussionExpired (line 236) | public markDiscussionExpired(nowTs: number): number { method softDeleteDiscussionOlderThan (line 252) | public softDeleteDiscussionOlderThan(cutoffTs: number, nowTs: number):... method softDeleteDailyNonSummaryOlderThan (line 268) | public softDeleteDailyNonSummaryOlderThan( method listSoftDeletedPersistentEntries (line 288) | public listSoftDeletedPersistentEntries( method purgeSoftDeleted (line 316) | public purgeSoftDeleted(olderThanTs: number): number { method optimizeStorage (line 350) | public optimizeStorage(): void { method countActivePersistentItems (line 356) | public countActivePersistentItems(): number { method listRecentPersistentContents (line 370) | public listRecentPersistentContents(limit = 200): string[] { method listMemoryItemsForRecall (line 386) | public listMemoryItemsForRecall( method softDeleteById (line 424) | public softDeleteById(id: string): boolean { method softDeleteByQuery (line 437) | public softDeleteByQuery(query: string): number { method getFactsTop (line 474) | public getFactsTop(limit: number): Array<{ method upsertFact (line 508) | public upsertFact( method debugHealthCheck (line 566) | public debugHealthCheck(): void { FILE: server/src/core/memory-manager/qmd-backend.ts constant QMD_INDEX_NAME (line 45) | const QMD_INDEX_NAME = 'leon-memory' constant QMD_UPDATE_MIN_INTERVAL_MS (line 46) | const QMD_UPDATE_MIN_INTERVAL_MS = 5_000 constant QMD_EMBED_MIN_INTERVAL_MS (line 47) | const QMD_EMBED_MIN_INTERVAL_MS = 30_000 constant BRIDGE_SOURCE_CONTENT_CAP (line 48) | const BRIDGE_SOURCE_CONTENT_CAP = 96_000 type QMDRecallHit (line 50) | interface QMDRecallHit { type QMDQueryInput (line 59) | interface QMDQueryInput { type QMDSearchMode (line 67) | type QMDSearchMode = 'query' | 'search' constant QMD_COLLECTIONS (line 69) | const QMD_COLLECTIONS: Record { method enableHybridRetrieval (line 138) | public enableHybridRetrieval(): void { method refresh (line 148) | public async refresh(force = false): Promise { method query (line 188) | public async query(input: QMDQueryInput): Promise { method ensureCollections (line 684) | private async ensureCollections(): Promise { method ensureEmbeddings (line 698) | private async ensureEmbeddings(force = false): Promise { method runQMDSearchMode (line 746) | private async runQMDSearchMode( FILE: server/src/core/memory-manager/sql/schema.sql type memory_items (line 5) | CREATE TABLE IF NOT EXISTS memory_items ( type idx_memory_items_scope_created (line 28) | CREATE INDEX IF NOT EXISTS idx_memory_items_scope_created type idx_memory_items_day_key (line 30) | CREATE INDEX IF NOT EXISTS idx_memory_items_day_key type idx_memory_items_expires_at (line 32) | CREATE INDEX IF NOT EXISTS idx_memory_items_expires_at type idx_memory_items_deleted (line 34) | CREATE INDEX IF NOT EXISTS idx_memory_items_deleted type ux_memory_items_scope_dedupe (line 37) | CREATE UNIQUE INDEX IF NOT EXISTS ux_memory_items_scope_dedupe type memory_chunks (line 41) | CREATE TABLE IF NOT EXISTS memory_chunks ( type ux_memory_chunks_item_index (line 55) | CREATE UNIQUE INDEX IF NOT EXISTS ux_memory_chunks_item_index type idx_memory_chunks_namespace (line 57) | CREATE INDEX IF NOT EXISTS idx_memory_chunks_namespace type memory_chunks_fts (line 60) | CREATE VIRTUAL TABLE IF NOT EXISTS memory_chunks_fts USING fts5( FILE: server/src/core/memory-manager/summarizer.ts function cleanLine (line 3) | function cleanLine(line: string): string { function toBullet (line 10) | function toBullet(text: string): string { function buildDailyMarkdownSummary (line 23) | function buildDailyMarkdownSummary( FILE: server/src/core/memory-manager/types.ts type MemoryScope (line 1) | type MemoryScope = 'persistent' | 'daily' | 'discussion' type KnowledgeNamespace (line 3) | type KnowledgeNamespace = type RecallRetrievalMode (line 10) | type RecallRetrievalMode = 'hybrid' | 'lexical' type MemoryKind (line 12) | type MemoryKind = type MemorySourceType (line 21) | type MemorySourceType = type MemoryWriteInput (line 28) | interface MemoryWriteInput { type MemoryRecord (line 45) | interface MemoryRecord { type RecallQuery (line 61) | interface RecallQuery { type RecallHit (line 75) | interface RecallHit { type RecallResult (line 89) | interface RecallResult { type TurnObservationInput (line 101) | interface TurnObservationInput { FILE: server/src/core/nlp/conversation.ts type ConversationState (line 13) | interface ConversationState { type ConversationContext (line 19) | interface ConversationContext { type ConversationPreviousContext (line 36) | type ConversationPreviousContext = Record |... constant MAX_CONTEXT_HISTORY (line 38) | const MAX_CONTEXT_HISTORY = 5 constant DEFAULT_ACTIVE_STATE (line 40) | const DEFAULT_ACTIVE_STATE: ConversationState = { constant DEFAULT_ACTIVE_CONTEXT (line 47) | const DEFAULT_ACTIVE_CONTEXT = { class Conversation (line 64) | class Conversation { method constructor (line 71) | constructor(id = 'conv0') { method activeContext (line 78) | public get activeContext(): ConversationContext { method activeState (line 82) | public get activeState(): ConversationState { method setActiveState (line 89) | public setActiveState(state: Partial): void { method cleanActiveState (line 103) | public cleanActiveState(): void { method setActiveContext (line 113) | public async setActiveContext( method previousContexts (line 207) | public get previousContexts(): ConversationPreviousContext { method hasPendingAction (line 214) | public hasPendingAction(): boolean { method hasActiveContext (line 221) | public hasActiveContext(): boolean { method setSlots (line 228) | public setSlots( method getNotFilledSlot (line 300) | public getNotFilledSlot(): NLUSlot | null { method areSlotsAllFilled (line 316) | public areSlotsAllFilled(): boolean { method cleanActiveContext (line 323) | public cleanActiveContext(): void { method pushToPreviousContextsStack (line 334) | private pushToPreviousContextsStack(): void { FILE: server/src/core/nlp/nlu/action-loop.ts type ResolveResolversResult (line 11) | interface ResolveResolversResult { class ActionLoop (line 16) | class ActionLoop { method handle (line 20) | public static async handle( FILE: server/src/core/nlp/nlu/model-loader.ts type NLPContainer (line 17) | type NLPContainer = undefined | any class ModelLoader (line 19) | class ModelLoader { method constructor (line 25) | constructor() { method hasNlpModels (line 37) | public hasNlpModels(): boolean { method loadNLPModels (line 48) | public loadNLPModels(): Promise<[void, void, void]> { method loadGlobalResolversModel (line 59) | private loadGlobalResolversModel(modelPath: string): Promise { method loadSkillsResolversModel (line 100) | private loadSkillsResolversModel(modelPath: string): Promise { method loadMainModel (line 141) | private loadMainModel(modelPath: string): Promise { FILE: server/src/core/nlp/nlu/ner.ts constant MICROSOFT_BUILT_IN_ENTITIES (line 31) | const MICROSOFT_BUILT_IN_ENTITIES = [ function getDurationUnit (line 49) | function getDurationUnit(duration: string): NERDurationUnit | null { class NER (line 85) | class NER { method constructor (line 92) | constructor() { method logExtraction (line 101) | private static logExtraction(entities: NEREntity[]): void { method extractBuiltInEntities (line 112) | public extractBuiltInEntities( method extractEntities (line 195) | public extractEntities( method mergeSpacyEntities (line 325) | public async mergeSpacyEntities(utterance: NLPUtterance): Promise { method getSpacyEntities (line 360) | private getSpacyEntities(utterance: NLPUtterance): Promise { method constructor (line 135) | constructor() { method handleProviderFailure (line 144) | private async handleProviderFailure(): Promise { method chooseSkill (line 370) | private async chooseSkill(utterance: NLPUtterance): Promise { method handleSkillFlow (line 548) | private async handleSkillFlow(flow: SkillSchema['flow']): Promise { method getLeonMode (line 679) | private getLeonMode(): RoutingMode { method getRoutingDecision (line 697) | private getRoutingDecision(): { method runReAct (line 719) | private async runReAct(utterance: NLPUtterance): Promise { method runSkillWriterCreateSkill (line 897) | private async runSkillWriterCreateSkill( method handleActionSuccess (line 942) | private async handleActionSuccess( method handleActionMissingParams (line 1025) | private async handleActionMissingParams( method preProcessRoute (line 1062) | private async preProcessRoute(): Promise { method postProcessRoute (line 1169) | private async postProcessRoute( method process (line 1211) | public process( FILE: server/src/core/nlp/types.ts type NLPDomain (line 15) | type NLPDomain = string type NLPSkill (line 16) | type NLPSkill = string type NLPAction (line 17) | type NLPAction = string type NLPUtterance (line 18) | type NLPUtterance = string type NLUPartialProcessResult (line 20) | type NLUPartialProcessResult = Partial< type NLPJSProcessResult (line 28) | interface NLPJSProcessResult { type NLUSlot (line 68) | interface NLUSlot { type NLUClassification (line 79) | interface NLUClassification { type NLUResolver (line 87) | interface NLUResolver { type NLUProcessSentiment (line 92) | interface NLUProcessSentiment { type NLUProcessResult (line 96) | interface NLUProcessResult { type NLUResult (line 131) | interface NLUResult { type NLUSlots (line 150) | type NLUSlots = Record constant BUILT_IN_ENTITY_TYPES (line 156) | const BUILT_IN_ENTITY_TYPES = [ type NERDurationUnit (line 177) | type NERDurationUnit = type BuiltInEntityType (line 186) | type BuiltInEntityType = (typeof BUILT_IN_ENTITY_TYPES)[number] constant CUSTOM_ENTITY_TYPES (line 188) | const CUSTOM_ENTITY_TYPES = ['regex', 'trim', 'enum', 'llm'] as const type CustomEntityType (line 190) | type CustomEntityType = (typeof CUSTOM_ENTITY_TYPES)[number] constant SPACY_ENTITY_TYPES (line 192) | const SPACY_ENTITY_TYPES = [ type SpacyEntityType (line 199) | type SpacyEntityType = (typeof SPACY_ENTITY_TYPES)[number] constant ENTITY_TYPES (line 201) | const ENTITY_TYPES = [ type EntityType (line 207) | type EntityType = (typeof ENTITY_TYPES)[number] type Entity (line 209) | interface Entity< type BuiltInEntity (line 229) | type BuiltInEntity< type BuiltInNumberEntity (line 234) | type BuiltInNumberEntity = BuiltInEntity< type BuiltInIPEntity (line 242) | type BuiltInIPEntity = BuiltInEntity< type BuiltInHashtagEntity (line 249) | type BuiltInHashtagEntity = BuiltInEntity< type BuiltInPhoneNumberEntity (line 255) | type BuiltInPhoneNumberEntity = BuiltInEntity< type BuiltInCurrencyEntity (line 262) | type BuiltInCurrencyEntity = BuiltInEntity< type BuiltInPercentageEntity (line 271) | type BuiltInPercentageEntity = BuiltInEntity< type BuiltInDateEntity (line 280) | type BuiltInDateEntity = BuiltInEntity< type BuiltInTimeEntity (line 297) | type BuiltInTimeEntity = BuiltInEntity< type BuiltInTimeRangeEntity (line 307) | type BuiltInTimeRangeEntity = BuiltInEntity< type BuiltInDateRangeEntity (line 318) | type BuiltInDateRangeEntity = BuiltInEntity< type BuiltInDateTimeRangeEntity (line 333) | type BuiltInDateTimeRangeEntity = BuiltInEntity< type BuiltInDurationEntity (line 348) | type BuiltInDurationEntity = BuiltInEntity< type BuiltInDimensionEntity (line 359) | type BuiltInDimensionEntity = BuiltInEntity< type BuiltInEmailEntity (line 368) | type BuiltInEmailEntity = BuiltInEntity< type BuiltInOrdinalEntity (line 374) | type BuiltInOrdinalEntity = BuiltInEntity< type BuiltInAgeEntity (line 382) | type BuiltInAgeEntity = BuiltInEntity< type BuiltInURLEntity (line 391) | type BuiltInURLEntity = BuiltInEntity< type BuiltInTemperatureEntity (line 397) | type BuiltInTemperatureEntity = BuiltInEntity< type CustomEntity (line 411) | type CustomEntity< type CustomEnumEntity (line 416) | interface CustomEnumEntity< type GlobalEntity (line 425) | type GlobalEntity = CustomEnumEntity type CustomRegexEntity (line 426) | type CustomRegexEntity = CustomEntity<'regex'> type CustomTrimEntity (line 427) | interface CustomTrimEntity extends CustomEntity<'trim'> { type SpacyEntity (line 442) | interface SpacyEntity< type SpacyLocationCountryData (line 449) | interface SpacyLocationCountryData { type SpacyLocationCountryEntity (line 460) | type SpacyLocationCountryEntity = SpacyEntity< type SpacyLocationCityEntity (line 467) | type SpacyLocationCityEntity = SpacyEntity< type SpacyPersonEntity (line 482) | type SpacyPersonEntity = SpacyEntity<'person'> type SpacyOrganizationEntity (line 483) | type SpacyOrganizationEntity = SpacyEntity<'organization'> type NERBuiltInEntity (line 489) | type NERBuiltInEntity = type NERCustomEntity (line 509) | type NERCustomEntity = type NERGlobalEntity (line 514) | type NERGlobalEntity = GlobalEntity type NERSpacyEntity (line 516) | type NERSpacyEntity = type NEREntity (line 522) | type NEREntity = FILE: server/src/core/pulse-manager.ts type PulseMatterStatus (line 15) | type PulseMatterStatus = type PulseMatterSource (line 23) | type PulseMatterSource = 'memory' | 'context' | 'self_model' type PulseOwnerFeedback (line 24) | type PulseOwnerFeedback = 'accept' | 'decline' | null type PulseMatter (line 26) | interface PulseMatter { type PulseSuppressionPolicy (line 47) | interface PulseSuppressionPolicy { type PulseTickRecord (line 60) | interface PulseTickRecord { type PulseState (line 67) | interface PulseState { type PulsePlannerItem (line 83) | interface PulsePlannerItem { type PulsePlannerOutput (line 94) | interface PulsePlannerOutput { type PulseOwnerReactionOutput (line 98) | interface PulseOwnerReactionOutput { constant PRIVATE_CONTEXT_DIR (line 105) | const PRIVATE_CONTEXT_DIR = path.join(CONTEXT_PATH, 'private') constant PULSE_MARKDOWN_PATH (line 106) | const PULSE_MARKDOWN_PATH = path.join(PRIVATE_CONTEXT_DIR, 'PULSE.md') constant PULSE_STATE_PATH (line 107) | const PULSE_STATE_PATH = path.join(PRIVATE_CONTEXT_DIR, '.leon-pulse-sta... constant MAX_PENDING_MATTERS (line 108) | const MAX_PENDING_MATTERS = 6 constant MAX_RECENT_OUTCOMES (line 109) | const MAX_RECENT_OUTCOMES = 12 constant MAX_SUPPRESSION_POLICIES (line 110) | const MAX_SUPPRESSION_POLICIES = 24 constant MAX_RECENT_TICKS (line 111) | const MAX_RECENT_TICKS = 12 constant MAX_CHANGED_CONTEXT_SIGNALS (line 112) | const MAX_CHANGED_CONTEXT_SIGNALS = 6 constant ACTIVE_CONVERSATION_GRACE_MS (line 113) | const ACTIVE_CONVERSATION_GRACE_MS = 2 * 60 * 1_000 constant PULSE_INITIAL_DELAY_MS (line 114) | const PULSE_INITIAL_DELAY_MS = 2 * 60 * 1_000 constant PULSE_SURFACED_RESPONSE_WINDOW_MS (line 115) | const PULSE_SURFACED_RESPONSE_WINDOW_MS = 30 * 60 * 1_000 constant PULSE_COMPLETED_COOLDOWN_MS (line 116) | const PULSE_COMPLETED_COOLDOWN_MS = 12 * 60 * 60 * 1_000 constant PULSE_FAILED_COOLDOWN_MS (line 117) | const PULSE_FAILED_COOLDOWN_MS = 3 * 60 * 60 * 1_000 constant PULSE_DECLINE_COOLDOWN_MS (line 118) | const PULSE_DECLINE_COOLDOWN_MS = [ constant PULSE_MEMORY_QUERY (line 123) | const PULSE_MEMORY_QUERY = constant PULSE_MEMORY_TOKEN_BUDGET (line 125) | const PULSE_MEMORY_TOKEN_BUDGET = 260 constant PULSE_PLANNER_MAX_TOKENS (line 126) | const PULSE_PLANNER_MAX_TOKENS = 360 constant PULSE_OWNER_REACTION_MAX_TOKENS (line 127) | const PULSE_OWNER_REACTION_MAX_TOKENS = 180 constant PULSE_REACT_SENTINEL (line 128) | const PULSE_REACT_SENTINEL = '[Pulse]' function normalizeText (line 130) | function normalizeText(value: string): string { function clipText (line 137) | function clipText(value: string, maxChars: number): string { function toIsoString (line 145) | function toIsoString(value: number): string { function formatDateTime (line 149) | function formatDateTime(value: string | null | undefined, fallback = 'ne... function computeHash (line 157) | function computeHash(value: string): string { function toConfidence (line 161) | function toConfidence(value: unknown, fallback: number): number { function normalizeIntentToken (line 170) | function normalizeIntentToken(value: string, fallback: string): string { function parseIsoTimestamp (line 179) | function parseIsoTimestamp(value: string | null | undefined): number | n... function normalizeMatterStatus (line 188) | function normalizeMatterStatus(value: unknown): PulseMatterStatus { function normalizeOwnerFeedback (line 201) | function normalizeOwnerFeedback(value: unknown): PulseOwnerFeedback { function normalizeSources (line 209) | function normalizeSources(value: unknown): PulseMatterSource[] { function firstNonEmptyLine (line 224) | function firstNonEmptyLine(content: string): string { function defaultPulseState (line 233) | function defaultPulseState(): PulseState { class PulseManager (line 251) | class PulseManager { method constructor (line 260) | public constructor() { method start (line 271) | public start(): void { method observeOwnerUtterance (line 313) | public async observeOwnerUtterance(utterance: string): Promise { method tick (line 333) | public async tick(reason: 'initial' | 'scheduled' | 'manual'): Promise... method ensureLoaded (line 354) | private ensureLoaded(): PulseState { method normalizeContextFileStamps (line 386) | private normalizeContextFileStamps( method normalizeMatters (line 409) | private normalizeMatters(value: unknown): PulseMatter[] { method normalizePolicies (line 478) | private normalizePolicies(value: unknown): PulseSuppressionPolicy[] { method normalizeTicks (line 540) | private normalizeTicks(value: unknown): PulseTickRecord[] { method computeFingerprint (line 574) | private computeFingerprint(intentKey: string, targetScope: string): st... method pushTickRecord (line 578) | private pushTickRecord( method getExecutionCooldownRemainingMs (line 595) | private getExecutionCooldownRemainingMs(state: PulseState): number { method tickInternal (line 604) | private async tickInternal( method pruneState (line 680) | private pruneState(state: PulseState): void { method hasRecentOwnerActivity (line 721) | private hasRecentOwnerActivity(conversation: MessageLog[]): boolean { method buildPulseEvidence (line 730) | private async buildPulseEvidence( method collectContextSignals (line 806) | private async collectContextSignals( method generatePulseMatters (line 857) | private async generatePulseMatters(evidence: { method normalizePlannedMatter (line 955) | private normalizePlannedMatter( method mergePlannedMatter (line 1001) | private mergePlannedMatter(state: PulseState, matter: PulseMatter): nu... method selectNextMatter (line 1034) | private selectNextMatter(state: PulseState): PulseMatter | null { method executeMatter (line 1048) | private async executeMatter( method surfacePulseMessage (line 1152) | private async surfacePulseMessage( method extractToolExecutions (line 1170) | private extractToolExecutions( method observeOwnerUtteranceInternal (line 1210) | private async observeOwnerUtteranceInternal( method applySuppressionToPendingMatters (line 1270) | private applySuppressionToPendingMatters( method classifyOwnerReaction (line 1304) | private async classifyOwnerReaction( method upsertSuppressionPolicy (line 1352) | private upsertSuppressionPolicy( method getDeclineCooldownMs (line 1397) | private getDeclineCooldownMs(declineCount: number): number { method findMatterById (line 1406) | private findMatterById( method loadCoreNodes (line 1417) | private async loadCoreNodes(): Promise<{ method loadCustomLLMDuty (line 1471) | private async loadCustomLLMDuty(): Promise<{ method loadReActLLMDuty (line 1491) | private async loadReActLLMDuty(): Promise<{ method loadModule (line 1505) | private async loadModule(relativePathFromCore: string): Promise { method parseJsonObject (line 1519) | private parseJsonObject(output: unknown): Record | nu... method persist (line 1549) | private persist(): void { method renderMarkdown (line 1562) | private renderMarkdown(state: PulseState): string { FILE: server/src/core/self-model-manager.ts type FinalIntent (line 10) | type FinalIntent = type ToolExecutionDigest (line 17) | interface ToolExecutionDigest { type SelfModelObservationInput (line 23) | interface SelfModelObservationInput { type InitiativeCandidate (line 32) | interface InitiativeCandidate { type RetrospectionEntry (line 41) | interface RetrospectionEntry { type BehavioralPrinciple (line 47) | interface BehavioralPrinciple { type TurnDigest (line 54) | interface TurnDigest { type SelfModelMetrics (line 68) | interface SelfModelMetrics { type SelfModelState (line 78) | interface SelfModelState { type ReflectionPatch (line 93) | interface ReflectionPatch { constant PRIVATE_CONTEXT_DIR (line 109) | const PRIVATE_CONTEXT_DIR = path.join(CONTEXT_PATH, 'private') constant PRIVATE_DIARY_PATH (line 110) | const PRIVATE_DIARY_PATH = path.join( constant PRIVATE_STATE_PATH (line 114) | const PRIVATE_STATE_PATH = path.join( constant MAX_RECENT_TURNS (line 118) | const MAX_RECENT_TURNS = 10 constant MAX_RETROSPECTIONS (line 119) | const MAX_RETROSPECTIONS = 6 constant MAX_BEHAVIORAL_PRINCIPLES (line 120) | const MAX_BEHAVIORAL_PRINCIPLES = 6 constant MAX_FOCUS_ITEMS (line 121) | const MAX_FOCUS_ITEMS = 4 constant MAX_THEORY_ITEMS (line 122) | const MAX_THEORY_ITEMS = 4 constant MAX_INITIATIVE_CANDIDATES (line 123) | const MAX_INITIATIVE_CANDIDATES = 5 constant MIN_BEHAVIORAL_PRINCIPLE_SEEN_COUNT (line 124) | const MIN_BEHAVIORAL_PRINCIPLE_SEEN_COUNT = 2 constant MIN_BEHAVIORAL_PRINCIPLE_CONFIDENCE (line 125) | const MIN_BEHAVIORAL_PRINCIPLE_CONFIDENCE = 0.72 constant DEFAULT_STORY (line 126) | const DEFAULT_STORY = constant REFLECTION_DISPOSE_TIMEOUT_MS (line 128) | const REFLECTION_DISPOSE_TIMEOUT_MS = 20_000 function normalizeText (line 130) | function normalizeText(value: string): string { function clipText (line 137) | function clipText(value: string, maxChars: number): string { function computeHash (line 145) | function computeHash(value: string): string { function normalizeListItem (line 149) | function normalizeListItem(value: string, maxChars: number): string { function toConfidence (line 153) | function toConfidence(value: unknown, fallback: number): number { function dedupeList (line 162) | function dedupeList(items: string[], limit: number): string[] { function formatDateTime (line 188) | function formatDateTime(value: string | null | undefined, fallback = 'un... function defaultState (line 196) | function defaultState(): SelfModelState { class SelfModelManager (line 221) | class SelfModelManager { method constructor (line 227) | public constructor() { method getSnapshot (line 238) | public getSnapshot(): string { method getDiaryPath (line 273) | public getDiaryPath(): string { method observeTurn (line 278) | public async observeTurn(input: SelfModelObservationInput): Promise { FILE: server/src/core/stt/parsers/coqui-stt-parser.ts class CoquiSTTParser (line 11) | class CoquiSTTParser extends STTParserBase { method constructor (line 16) | constructor() { method parse (line 59) | public async parse(buffer: Buffer): Promise { FILE: server/src/core/stt/parsers/google-cloud-stt-parser.ts class GoogleCloudSTTParser (line 10) | class GoogleCloudSTTParser extends STTParserBase { method constructor (line 14) | constructor() { method parse (line 42) | public async parse(buffer: Buffer): Promise { FILE: server/src/core/stt/parsers/local-parser.ts type EventHandler (line 6) | interface EventHandler { constant STARTED_RECORDING_EVENT (line 10) | const STARTED_RECORDING_EVENT = 'asr-started-recording' constant INTERRUPT_LEON_SPEECH_EVENT (line 11) | const INTERRUPT_LEON_SPEECH_EVENT = 'asr-interrupt-leon-speech' constant NEW_SPEECH_EVENT (line 12) | const NEW_SPEECH_EVENT = 'asr-new-speech' constant END_OF_OWNER_SPEECH_DETECTED_EVENT (line 13) | const END_OF_OWNER_SPEECH_DETECTED_EVENT = 'asr-end-of-owner-speech-dete... constant ACTIVE_LISTENING_DURATION_INCREASED_EVENT (line 14) | const ACTIVE_LISTENING_DURATION_INCREASED_EVENT = constant ACTIVE_LISTENING_DISABLED_EVENT (line 16) | const ACTIVE_LISTENING_DISABLED_EVENT = 'asr-active-listening-disabled' constant EVENT_HANDLERS (line 18) | const EVENT_HANDLERS: EventHandler = { class LocalParser (line 59) | class LocalParser extends STTParserBase { method constructor (line 62) | constructor() { method parse (line 79) | public async parse(strChunk: string): Promise { FILE: server/src/core/stt/parsers/watson-stt-parser.ts class WatsonSTTParser (line 13) | class WatsonSTTParser extends STTParserBase { method constructor (line 17) | constructor() { method parse (line 42) | public async parse(buffer: Buffer): Promise { FILE: server/src/core/stt/stt.ts constant PROVIDERS_MAP (line 12) | const PROVIDERS_MAP = { class STT (line 19) | class STT { method constructor (line 24) | constructor() { method parser (line 33) | public get parser(): STTParser { method isParserReady (line 37) | public get isParserReady(): boolean { method init (line 44) | public async init(): Promise { method transcribe (line 100) | public async transcribe(audioFilePath: string): Promise { method forward (line 128) | private forward(str: string): void { method deleteAudios (line 141) | private deleteAudios(): void { FILE: server/src/core/stt/types.ts type STTProviders (line 6) | enum STTProviders { type STTParserNames (line 13) | enum STTParserNames { type STTParser (line 20) | type STTParser = FILE: server/src/core/tcp-client.ts constant INTERVAL (line 12) | const INTERVAL = IS_PRODUCTION_ENV ? 3000 : 500 constant RETRIES_NB (line 14) | const RETRIES_NB = IS_PRODUCTION_ENV ? 8 : 30 type ChunkData (line 16) | interface ChunkData { type TCPClientName (line 20) | type TCPClientName = 'Python' class TCPClient (line 22) | class TCPClient { method isConnected (line 29) | get isConnected(): boolean { method status (line 33) | get status(): Net.SocketReadyState { method constructor (line 37) | constructor( method connect (line 134) | public connect(): void { method emit (line 140) | public emit(topic: string, data: unknown): void { method connectSocket (line 149) | private connectSocket(): void { FILE: server/src/core/tool-executor.ts constant ABSOLUTE_OR_HOME_PATH_PATTERN (line 20) | const ABSOLUTE_OR_HOME_PATH_PATTERN = /^(~($|[\\/])|\/|[A-Za-z]:[\\/])/ constant EXPLICIT_RELATIVE_PATH_PATTERN (line 21) | const EXPLICIT_RELATIVE_PATH_PATTERN = /^\.\.?([\\/]|$)/ type ToolExecutionInput (line 23) | interface ToolExecutionInput { type ToolExecutionResult (line 31) | interface ToolExecutionResult { class ToolExecutor (line 45) | class ToolExecutor { method logToolRuntimeMessages (line 48) | private logToolRuntimeMessages( method constructor (line 74) | constructor() { method executeTool (line 83) | public async executeTool( method buildResult (line 202) | private async buildResult(params: { method parseToolInput (line 242) | private parseToolInput(toolInput?: string): Record | ... method getResponseJQ (line 259) | private getResponseJQ(functionConfig: { method normalizeFilesystemValues (line 275) | private normalizeFilesystemValues(value: unknown): unknown { method normalizePossibleFilesystemPath (line 297) | private normalizePossibleFilesystemPath(value: string): string { method resolveFilesystemPathCandidate (line 320) | private resolveFilesystemPathCandidate(value: string): string | null { method resolveAbsoluteLikePath (line 338) | private resolveAbsoluteLikePath(value: string): string { method buildFilesystemCandidates (line 354) | private buildFilesystemCandidates(value: string): string[] { method correctHomePath (line 375) | private correctHomePath(candidate: string): string { method applyResponseJQ (line 408) | private async applyResponseJQ( method resolveResponseJQInput (line 437) | private async resolveResponseJQInput( method resolveJsonLikeValue (line 461) | private async resolveJsonLikeValue(value: unknown): Promise<{ method serializeProjectedResultForFile (line 516) | private serializeProjectedResultForFile(value: unknown): string { method parseJsonValue (line 528) | private parseJsonValue(value: string): NodeJQJson | null { method mapArgs (line 536) | private mapArgs( method runToolRuntime (line 594) | private async runToolRuntime(params: { FILE: server/src/core/toolkit-registry.ts type ToolkitToolDefinition (line 7) | interface ToolkitToolDefinition { type FlattenedToolkitTool (line 30) | interface FlattenedToolkitTool { type ResolvedToolkitTool (line 41) | interface ResolvedToolkitTool { type ToolkitDefinition (line 51) | interface ToolkitDefinition { function asRecord (line 60) | function asRecord(value: unknown): Record | null { class ToolkitRegistry (line 68) | class ToolkitRegistry { method constructor (line 73) | constructor() { method toolkits (line 82) | public get toolkits(): ToolkitDefinition[] { method isLoaded (line 86) | public get isLoaded(): boolean { method getFlattenedTools (line 90) | public getFlattenedTools(): FlattenedToolkitTool[] { method resolveToolById (line 115) | public resolveToolById( method getToolFunctions (line 202) | public getToolFunctions( method getToolkitContextFiles (line 215) | public getToolkitContextFiles(toolkitId: string): string[] { method setFunctionParameterEnum (line 220) | public setFunctionParameterEnum( method load (line 252) | public async load(): Promise { method normalizeContextFilename (line 364) | private normalizeContextFilename(filename: string): string | null { FILE: server/src/core/tts/synthesizers/amazon-polly-synthesizer.ts constant VOICES (line 16) | const VOICES = { class AmazonPollySynthesizer (line 25) | class AmazonPollySynthesizer extends TTSSynthesizerBase { method constructor (line 30) | constructor(lang: LongLanguageCode) { method synthesize (line 50) | public async synthesize(speech: string): Promise { FILE: server/src/core/tts/tts.ts type Speech (line 14) | interface Speech { constant PROVIDERS_MAP (line 19) | const PROVIDERS_MAP = { class TTS (line 27) | class TTS { method constructor (line 36) | constructor() { method init (line 48) | public async init(newLang: ShortLanguageCode): Promise { method forward (line 111) | private async forward(speech: Speech): Promise { method onSaved (line 153) | private onSaved(): void { method add (line 170) | public async add( FILE: server/src/core/tts/types.ts type TTSProviders (line 7) | enum TTSProviders { type TTSSynthesizers (line 15) | enum TTSSynthesizers { type SynthesizeResult (line 23) | interface SynthesizeResult { type TTSSynthesizer (line 28) | type TTSSynthesizer = FILE: server/src/declarations.d.ts type BuiltinMicrosoft (line 9) | interface BuiltinMicrosoft { type Nlp (line 12) | interface Nlp { type LangAll (line 15) | interface LangAll { type RunResult (line 34) | interface RunResult { type Statement (line 39) | interface Statement { type Database (line 45) | interface Database { type DatabaseOptions (line 51) | interface DatabaseOptions { type DatabaseConstructor (line 58) | interface DatabaseConstructor { FILE: server/src/helpers/date-helper.ts class DateHelper (line 11) | class DateHelper { method getDateTime (line 16) | public static getDateTime(date?: string | number | Date | null): string { method setFriendlyDate (line 33) | public static setFriendlyDate(date: Date): string { method getTimeZone (line 41) | public static getTimeZone(): string { FILE: server/src/helpers/file-helper.ts type DownloadFileOptions (line 8) | interface DownloadFileOptions { class FileHelper (line 14) | class FileHelper { method downloadFile (line 22) | public static async downloadFile( method createManifestFile (line 57) | public static async createManifestFile( method extractArchive (line 82) | public static async extractArchive( method dynamicImportFromFile (line 134) | public static async dynamicImportFromFile( FILE: server/src/helpers/lang-helper.ts class LangHelper (line 4) | class LangHelper { method getShortCodes (line 9) | public static getShortCodes(): ShortLanguageCode[] { method getLongCode (line 20) | public static getLongCode(shortCode: ShortLanguageCode): LongLanguageC... method getShortCode (line 38) | public static getShortCode(longCode: LongLanguageCode): ShortLanguageC... method getActionLoopStopWords (line 47) | public static getActionLoopStopWords(shortCode: ShortLanguageCode): st... FILE: server/src/helpers/loader-helper.ts function randomNumber (line 5) | function randomNumber(min: number, max: number): number { class LoaderHelper (line 9) | class LoaderHelper { method start (line 26) | public static start(): void { method stop (line 45) | public static stop(): void { FILE: server/src/helpers/log-helper.ts class LogHelper (line 6) | class LogHelper { method success (line 16) | public static success(value: string, ...args: unknown[]): void { method info (line 23) | public static info(value: string, ...args: unknown[]): void { method warning (line 30) | public static warning(value: string, ...args: unknown[]): void { method debug (line 37) | public static debug(value: string, ...args: unknown[]): void { method error (line 44) | public static error(value: string, ...args: unknown[]): void { method title (line 59) | public static title(value: string): void { method default (line 66) | public static default(value: string, ...args: unknown[]): void { method time (line 73) | public static time(value: string): void { method timeEnd (line 80) | public static timeEnd(value: string): void { method parseErrorLogs (line 88) | public static async parseErrorLogs(): Promise { FILE: server/src/helpers/network-helper.ts constant HUGGING_FACE_URL (line 3) | const HUGGING_FACE_URL = 'https://huggingface.co' constant HUGGING_FACE_MIRROR_URL (line 4) | const HUGGING_FACE_MIRROR_URL = 'https://hf-mirror.com' class NetworkHelper (line 6) | class NetworkHelper { method canAccessHuggingFace (line 11) | public static async canAccessHuggingFace(): Promise { method setHuggingFaceURL (line 27) | public static async setHuggingFaceURL(url: string): Promise { FILE: server/src/helpers/skill-domain-helper.ts type SkillDomain (line 16) | interface SkillDomain { type SkillConfigWithGlobalEntities (line 31) | interface SkillConfigWithGlobalEntities type SkillActionObject (line 36) | interface SkillActionObject { class SkillDomainHelper (line 42) | class SkillDomainHelper { method listSkillFolders (line 46) | public static async listSkillFolders(): Promise { method getNewSkillConfig (line 60) | public static async getNewSkillConfig( method getNewSkillConfigPath (line 80) | public static getNewSkillConfigPath( method listSkillFriendlyPrompts (line 96) | public static async listSkillFriendlyPrompts(): Promise { method getSkillDomains (line 118) | public static async getSkillDomains(): Promise { method hasGPU (line 215) | public static async hasGPU(llama?: Llama): Promise { method getGraphicsComputeAPI (line 229) | public static async getGraphicsComputeAPI( method getUsedVRAM (line 245) | public static async getUsedVRAM(llama?: Llama): Promise { method getTotalVRAM (line 261) | public static async getTotalVRAM(llama?: Llama): Promise { method canSupportLocalLLM (line 277) | public static async canSupportLocalLLM(llama?: Llama): Promise { method getFreeVRAM (line 285) | public static async getFreeVRAM(llama?: Llama): Promise { FILE: server/src/pre-check.ts type ObjectUnknown (line 40) | interface ObjectUnknown { constant VOICE_CONFIG_SCHEMAS (line 79) | const VOICE_CONFIG_SCHEMAS = { constant GLOBAL_DATA_SCHEMAS (line 85) | const GLOBAL_DATA_SCHEMAS = { FILE: server/src/schemas/global-data-schemas.ts type GlobalEntitySchema (line 53) | type GlobalEntitySchema = Static type GlobalResolverSchema (line 54) | type GlobalResolverSchema = Static type GlobalAnswersSchema (line 55) | type GlobalAnswersSchema = Static FILE: server/src/schemas/skill-schemas.ts constant SKILL_ACTION_ANSWERS_DESCRIPTION (line 8) | const SKILL_ACTION_ANSWERS_DESCRIPTION = type DomainSchema (line 466) | type DomainSchema = Static type SkillSchema (line 467) | type SkillSchema = Static type SkillConfigSchema (line 468) | type SkillConfigSchema = Static type SkillLocaleConfigSchema (line 469) | type SkillLocaleConfigSchema = Static type SkillActionConfig (line 470) | type SkillActionConfig = SkillSchema['actions'][NLPAction] & type SkillBridgeSchema (line 472) | type SkillBridgeSchema = Static type SkillCustomTrimEntityTypeSchema (line 473) | type SkillCustomTrimEntityTypeSchema = Static< type SkillCustomRegexEntityTypeSchema (line 476) | type SkillCustomRegexEntityTypeSchema = Static< type SkillCustomEnumEntityTypeSchema (line 479) | type SkillCustomEnumEntityTypeSchema = Static< type SkillCustomLLMEntityTypeSchema (line 482) | type SkillCustomLLMEntityTypeSchema = Static< type SkillAnswerConfigSchema (line 485) | type SkillAnswerConfigSchema = Static FILE: server/src/schemas/tool-schemas.ts type ToolManifestSchema (line 161) | type ToolManifestSchema = Static FILE: server/src/schemas/toolkit-schemas.ts type ToolkitSchema (line 20) | type ToolkitSchema = Static FILE: server/src/schemas/voice-config-schemas.ts type AmazonVoiceConfigurationSchema (line 34) | type AmazonVoiceConfigurationSchema = Static< type GoogleCloudVoiceConfigurationSchema (line 37) | type GoogleCloudVoiceConfigurationSchema = Static< type WatsonVoiceConfigurationSchema (line 40) | type WatsonVoiceConfigurationSchema = Static< type VoiceConfigurationSchema (line 43) | type VoiceConfigurationSchema = FILE: server/src/telemetry.ts type PostIntallResponse (line 32) | interface PostIntallResponse { type EventNames (line 37) | enum EventNames { class Telemetry (line 42) | class Telemetry { method postInstall (line 51) | public static async postInstall(): Promise { method utterance (line 134) | public static async utterance( method error (line 198) | public static async error(error: string): Promise { method stop (line 214) | public static async stop(): Promise { method heartbeat (line 229) | public static async heartbeat(): Promise { method sendEvent (line 244) | private static async sendEvent(eventName: EventNames): Promise { method anonymizeEntities (line 260) | private static anonymizeEntities( FILE: server/src/tool-call-logger.ts type ToolCallLogEntry (line 9) | interface ToolCallLogEntry { type OwnerQueryToolCallRecord (line 14) | interface OwnerQueryToolCallRecord { type ToolCallLoggerSettings (line 19) | interface ToolCallLoggerSettings { type ToolOutputLogInput (line 25) | interface ToolOutputLogInput { constant TOOL_OUTPUT_LOGS_DIR (line 36) | const TOOL_OUTPUT_LOGS_DIR = path.join(LOGS_PATH, 'tool-outputs') constant TOOL_OUTPUT_LOG_RETENTION_MS (line 37) | const TOOL_OUTPUT_LOG_RETENTION_MS = 12 * 60 * 60 * 1_000 class ToolCallLogger (line 39) | class ToolCallLogger { method constructor (line 46) | constructor(settings: ToolCallLoggerSettings) { method ensureLogFile (line 61) | private async ensureLogFile(): Promise { method loadAll (line 67) | private async loadAll(): Promise { method persistRecord (line 80) | private async persistRecord(record: OwnerQueryToolCallRecord): Promise... method queuePersist (line 96) | private queuePersist(record: OwnerQueryToolCallRecord): Promise { method serializeLogValue (line 107) | private serializeLogValue(value: unknown): string { method sanitizeFilenamePart (line 119) | private sanitizeFilenamePart(value: string | null | undefined): string { method buildToolOutputLogPrefix (line 128) | private buildToolOutputLogPrefix(dateTime: string): string { method buildToolOutputLogPath (line 135) | private async buildToolOutputLogPath(params: { method persistToolOutputLog (line 158) | private async persistToolOutputLog(input: ToolOutputLogInput): Promise... method queueToolOutputPersist (line 186) | private queueToolOutputPersist(input: ToolOutputLogInput): Promise( method recordToolCall (line 220) | public recordToolCall(input: { method recordToolOutput (line 242) | public async recordToolOutput(input: ToolOutputLogInput): Promise { method cleanupToolOutputLogs (line 246) | public async cleanupToolOutputLogs(): Promise { FILE: server/src/types.ts type Languages (line 21) | type Languages = typeof LANG_CONFIGS type LongLanguageCode (line 22) | type LongLanguageCode = keyof Languages type Language (line 23) | type Language = Languages[LongLanguageCode] type ShortLanguageCode (line 24) | type ShortLanguageCode = Language['short'] type OSTypes (line 30) | enum OSTypes { type CPUArchitectures (line 36) | enum CPUArchitectures { type RoutingMode (line 44) | enum RoutingMode { type MessageLog (line 54) | interface MessageLog { FILE: server/src/updater.ts class Updater (line 7) | class Updater { method checkForUpdates (line 16) | public static async checkForUpdates(): Promise { FILE: server/src/utilities.ts function isFileEmpty (line 10) | async function isFileEmpty(path: string): Promise { function getGlobalEntitiesPath (line 17) | function getGlobalEntitiesPath(lang: ShortLanguageCode): string { function getGlobalResolversPath (line 20) | function getGlobalResolversPath(lang: ShortLanguageCode): string { constant TCP_SERVER_WARNINGS_TO_IGNORE (line 27) | const TCP_SERVER_WARNINGS_TO_IGNORE = [ function shouldIgnoreTCPServerError (line 40) | function shouldIgnoreTCPServerError(error: string): boolean { FILE: skills/bash_skill/src/actions/execute.py function run (line 8) | def run(params: ActionParams) -> None: FILE: skills/color_skill/src/actions/tell_hexadecimal_color.py function run (line 7) | def run(params: ActionParams, params_helper: ParamsHelper) -> None: FILE: skills/games/akinator/src/actions/guess.py function run (line 5) | def run(params: ActionParams) -> None: FILE: skills/games/akinator/src/actions/retry.py function run (line 5) | def run(params: ActionParams) -> None: FILE: skills/games/akinator/src/actions/setup.py function run (line 5) | def run(params: ActionParams) -> None: FILE: skills/games/akinator/src/lib/main.py class AkinatorError (line 4) | class AkinatorError(Exception): class Akinator (line 6) | class Akinator(): method __init__ (line 7) | def __init__(self,theme:str="characters",lang:str="jp",child_mode:bool... method start_game (line 30) | def start_game(self): method post_answer (line 49) | def post_answer(self,answer:str): method go_back (line 89) | def go_back(self): method exclude (line 112) | def exclude(self): FILE: skills/games/akinator/src/lib/memory.py class Session (line 5) | class Session(TypedDict): function upsert_session (line 23) | def upsert_session(session: Session) -> None: function get_session (line 29) | def get_session() -> Session: FILE: skills/greeting_skill/src/actions/greet.py class Owner (line 10) | class Owner(TypedDict): function run (line 15) | def run(_params: ActionParams) -> None: FILE: skills/guess_the_number_skill/src/actions/guess.py function run (line 7) | def run(params: ActionParams) -> None: FILE: skills/guess_the_number_skill/src/actions/replay.py function run (line 8) | def run(_params: ActionParams, params_helper: ParamsHelper) -> None: FILE: skills/guess_the_number_skill/src/actions/set_up.py function run (line 8) | def run(params: ActionParams) -> None: FILE: skills/guess_the_number_skill/src/lib/memory.py class Game (line 8) | class Game(TypedDict): function create_new_game (line 14) | def create_new_game(number_to_guess: int) -> None: function get_new_game (line 24) | def get_new_game() -> Game: function set_counter (line 29) | def set_counter(counter: int) -> None: FILE: skills/leon/age/src/actions/run.ts constant LEON_BIRTH_DATE (line 6) | const LEON_BIRTH_DATE = new Date('2019-02-10T20:29:00+08:00') FILE: skills/leon/age/src/lib/getTimeDifferenceBetweenDates.ts type GetTimeDifferenceBetweenDatesResult (line 1) | interface GetTimeDifferenceBetweenDatesResult { constant MILLISECONDS_PER_SECOND (line 11) | const MILLISECONDS_PER_SECOND = 1_000 constant MILLISECONDS_PER_MINUTE (line 12) | const MILLISECONDS_PER_MINUTE = 60 * 1_000 constant MILLISECONDS_PER_HOUR (line 13) | const MILLISECONDS_PER_HOUR = 60 * MILLISECONDS_PER_MINUTE constant MILLISECONDS_PER_DAY (line 14) | const MILLISECONDS_PER_DAY = 24 * MILLISECONDS_PER_HOUR constant MILLISECONDS_PER_MONTH (line 15) | const MILLISECONDS_PER_MONTH = 30 * MILLISECONDS_PER_DAY constant MILLISECONDS_PER_YEAR (line 16) | const MILLISECONDS_PER_YEAR = 365 * MILLISECONDS_PER_DAY FILE: skills/leon/help/src/actions/help.ts constant SKILLS_PATH (line 7) | const SKILLS_PATH = path.join(process.cwd(), 'skills') type Domain (line 9) | interface Domain { type Skill (line 13) | interface Skill { function getDirectoriesFromPath (line 18) | async function getDirectoriesFromPath(basePath: string): Promise None: FILE: skills/leon/introduction/src/actions/remember.py function run (line 6) | def run(params: ActionParams) -> None: FILE: skills/leon/introduction/src/lib/memory.py class Owner (line 5) | class Owner(TypedDict): function upsert_owner (line 13) | def upsert_owner(owner: Owner) -> None: function get_owner (line 18) | def get_owner() -> Union[Owner, None]: FILE: skills/leon/random_number/src/actions/run.py function run (line 10) | def run(params: ActionParams) -> None: FILE: skills/leon/random_number/src/widgets/number_widget.py class NumberWidgetParams (line 9) | class NumberWidgetParams(TypedDict): class NumberWidget (line 13) | class NumberWidget(Widget[NumberWidgetParams]): method __init__ (line 14) | def __init__(self, options: WidgetOptions[NumberWidgetParams]): method render (line 17) | def render(self) -> WidgetComponent: FILE: skills/mbti_skill/src/actions/quiz.py function run (line 37) | def run(params: ActionParams) -> None: FILE: skills/mbti_skill/src/actions/set_up.py function run (line 6) | def run(params: ActionParams) -> None: FILE: skills/mbti_skill/src/lib/memory.py class Session (line 5) | class Session(TypedDict): function upsert_session (line 37) | def upsert_session(current_question: int) -> None: function increment_letter_score (line 47) | def increment_letter_score(letter: Letter) -> None: function get_session (line 55) | def get_session() -> Session: FILE: skills/music_audio_toolkit_skill/src/actions/dub_audio.ts type MusicAudioToolkitSkillSettings (line 12) | interface MusicAudioToolkitSkillSettings extends Record { FILE: skills/music_audio_toolkit_skill/src/actions/transcribe_audio.ts type MusicAudioToolkitSkillSettings (line 16) | interface MusicAudioToolkitSkillSettings extends Record { FILE: skills/news/github_trends/src/actions/run.py function run (line 10) | def run(params: ActionParams) -> None: FILE: skills/news/github_trends/src/lib/github_lang.py function get_all (line 1) | def get_all() -> list[str]: FILE: skills/news/product_hunt_trends/src/actions/run.py function run (line 9) | def run(params: ActionParams) -> None: FILE: skills/partner_assistant_skill/src/actions/tell_about_assistant.py function run (line 6) | def run(_params: ActionParams, params_helper: ParamsHelper) -> None: FILE: skills/podcast_generator_skill/src/actions/generate.ts type PodcastSettings (line 15) | interface PodcastSettings extends Record { type PodcastSegment (line 21) | interface PodcastSegment { type PodcastScript (line 26) | interface PodcastScript { FILE: skills/rochambeau_skill/src/actions/play.py function run (line 7) | def run(params: ActionParams) -> None: FILE: skills/rochambeau_skill/src/actions/rematch.py function run (line 6) | def run(_params: ActionParams, params_helper: ParamsHelper) -> None: FILE: skills/search_web_toolkit_skill/src/actions/search.ts type SearchSkillSettings (line 8) | interface SearchSkillSettings extends Record { FILE: skills/skill_writer_skill/src/actions/create_skill.ts type SkillWriterSettings (line 12) | interface SkillWriterSettings extends Record { FILE: skills/skill_writer_skill/src/actions/modify_skill.ts type SkillWriterSettings (line 12) | interface SkillWriterSettings extends Record { FILE: skills/skill_writer_skill/src/lib/skill-plan-llm.ts constant SKILL_PLAN_SCHEMA (line 1) | const SKILL_PLAN_SCHEMA = { constant SKILL_PLAN_SYSTEM_PROMPT (line 155) | const SKILL_PLAN_SYSTEM_PROMPT = `You are Leon's Skill Writer. Generate ... FILE: skills/skill_writer_skill/src/lib/skill-plan.ts type SkillPlanAction (line 1) | interface SkillPlanAction { type SkillPlanTools (line 17) | interface SkillPlanTools { type SkillPlan (line 22) | interface SkillPlan { FILE: skills/skill_writer_skill/src/lib/skill-prompt.ts type SkillPromptMode (line 1) | type SkillPromptMode = 'create' | 'modify' FILE: skills/timer_skill/src/lib/memory.ts type TimerMemory (line 3) | interface TimerMemory { constant TIMERS_MEMORY (line 11) | const TIMERS_MEMORY = new Memory({ function createTimerMemory (line 16) | async function createTimerMemory( function getTimerMemoryByWidgetId (line 36) | async function getTimerMemoryByWidgetId( function getNewestTimerMemory (line 47) | async function getNewestTimerMemory(): Promise { function deleteAllTimersMemory (line 53) | function deleteAllTimersMemory(): Promise { FILE: skills/timer_skill/src/widgets/components/timer.ts type TimerProps (line 4) | interface TimerProps { class Timer (line 12) | class Timer extends WidgetComponent { method constructor (line 13) | constructor(props: TimerProps) { FILE: skills/timer_skill/src/widgets/timer-widget.ts type Params (line 6) | interface Params { class TimerWidget (line 13) | class TimerWidget extends Widget { method constructor (line 14) | constructor(options: WidgetOptions) { method render (line 18) | public render(): WidgetComponent { FILE: skills/todo_list_skill/src/actions/add_todos.py function run (line 10) | def run(params: ActionParams, params_helper: ParamsHelper) -> None: FILE: skills/todo_list_skill/src/actions/complete_items.py function run (line 11) | def run(params: ActionParams, params_helper: ParamsHelper) -> None: FILE: skills/todo_list_skill/src/actions/create_list.py function run (line 8) | def run(params: ActionParams, params_helper: ParamsHelper) -> None: FILE: skills/todo_list_skill/src/actions/delete_list.py function run (line 9) | def run(params: ActionParams, params_helper: ParamsHelper) -> None: FILE: skills/todo_list_skill/src/actions/get_all_lists.py function run (line 9) | def run(params: ActionParams) -> None: FILE: skills/todo_list_skill/src/actions/get_list_items.py function run (line 11) | def run(params: ActionParams, params_helper: ParamsHelper) -> None: FILE: skills/todo_list_skill/src/actions/rename_list.py function run (line 9) | def run(params: ActionParams, params_helper: ParamsHelper) -> None: FILE: skills/todo_list_skill/src/actions/uncomplete_items.py function run (line 11) | def run(params: ActionParams, params_helper: ParamsHelper) -> None: FILE: skills/todo_list_skill/src/lib/memory.py class TodoListMemory (line 18) | class TodoListMemory(TypedDict): class TodoItemMemory (line 25) | class TodoItemMemory(TypedDict): function create_todo_list (line 34) | def create_todo_list(widget_id: Optional[str], name: str) -> None: function get_todo_list_by_name (line 48) | def get_todo_list_by_name(name: str) -> TodoListMemory: function get_todo_list_by_widget_id (line 58) | def get_todo_list_by_widget_id(widget_id: str) -> TodoListMemory: function get_todo_lists (line 69) | def get_todo_lists() -> list[TodoListMemory]: function update_todo_list (line 75) | def update_todo_list(old_name: str, new_name: str) -> None: function delete_todo_list (line 94) | def delete_todo_list(name: str) -> None: function count_todo_lists (line 111) | def count_todo_lists() -> int: function has_todo_list (line 117) | def has_todo_list(name: str) -> bool: function create_todo_item (line 127) | def create_todo_item(widget_id: str, todo_list_name: str, name: str) -> ... function get_todo_items (line 147) | def get_todo_items(widget_id: Optional[str], todo_list_name: str) -> lis... function count_todo_items (line 158) | def count_todo_items(todo_list_name: str) -> int: function get_completed_todo_items (line 164) | def get_completed_todo_items(todo_list_name: str) -> list[TodoItemMemory]: function get_uncompleted_todo_items (line 171) | def get_uncompleted_todo_items(todo_list_name: str) -> list[TodoItemMemo... function toggle_todo_item (line 178) | def toggle_todo_item(todo_list_name: str, name: str) -> None: function complete_todo_item (line 189) | def complete_todo_item(todo_list_name: str, name: str) -> None: function uncomplete_todo_item (line 201) | def uncomplete_todo_item(todo_list_name: str, name: str) -> None: FILE: skills/todo_list_skill/src/widgets/list_of_lists_widget.py class ListOfListsWidgetParams (line 10) | class ListOfListsWidgetParams(TypedDict): class ListOfListsWidget (line 14) | class ListOfListsWidget(Widget[ListOfListsWidgetParams]): method __init__ (line 15) | def __init__(self, options: WidgetOptions[ListOfListsWidgetParams]): method render (line 18) | def render(self) -> WidgetComponent: FILE: skills/todo_list_skill/src/widgets/todos_list_widget.py class TodoType (line 11) | class TodoType(TypedDict): class TodosListWidgetParams (line 16) | class TodosListWidgetParams(TypedDict): class TodosListWidget (line 22) | class TodosListWidget(Widget[TodosListWidgetParams]): method __init__ (line 23) | def __init__(self, options: WidgetOptions[TodosListWidgetParams]): method render (line 26) | def render(self) -> WidgetComponent: FILE: skills/unknown/widget-playground/src/widgets/playground-test.ts type Params (line 14) | interface Params { class PlaygroundTestWidget (line 19) | class PlaygroundTestWidget extends Widget { method constructor (line 20) | constructor(options: WidgetOptions) { method render (line 24) | public render(): WidgetComponent { FILE: skills/utilities/date_time/src/lib/constants.ts constant ONE_DAY_MILLISECONDS (line 1) | const ONE_DAY_MILLISECONDS = 1_000 * 60 * 60 * 24 FILE: skills/utilities/have_i_been_pwned/src/actions/run.py function run (line 13) | def run(params: ActionParams) -> None: FILE: skills/utilities/is_it_down/src/actions/run.py function run (line 8) | def run(params: ActionParams) -> None: FILE: skills/utilities/speed_test/src/actions/run.py function run (line 13) | def run(params: ActionParams) -> None: FILE: skills/utilities/speed_test/src/lib/speedtest.py class FakeShutdownEvent (line 44) | class FakeShutdownEvent: method isSet (line 50) | def isSet(): class _Py3Utf8Output (line 166) | class _Py3Utf8Output(TextIOWrapper): method __init__ (line 171) | def __init__(self, f, **kwargs): method write (line 175) | def write(self, s): function to_utf8 (line 189) | def to_utf8(v): function print_ (line 193) | def print_(*args, **kwargs): function to_utf8 (line 204) | def to_utf8(v): function print_ (line 211) | def print_(*args, **kwargs): function event_is_set (line 307) | def event_is_set(event): class SpeedtestException (line 314) | class SpeedtestException(Exception): class SpeedtestCLIError (line 318) | class SpeedtestCLIError(SpeedtestException): class SpeedtestHTTPError (line 322) | class SpeedtestHTTPError(SpeedtestException): class SpeedtestConfigError (line 326) | class SpeedtestConfigError(SpeedtestException): class SpeedtestServersError (line 330) | class SpeedtestServersError(SpeedtestException): class ConfigRetrievalError (line 334) | class ConfigRetrievalError(SpeedtestHTTPError): class ServersRetrievalError (line 338) | class ServersRetrievalError(SpeedtestHTTPError): class InvalidServerIDType (line 342) | class InvalidServerIDType(SpeedtestException): class NoMatchedServers (line 346) | class NoMatchedServers(SpeedtestException): class SpeedtestMiniConnectFailure (line 350) | class SpeedtestMiniConnectFailure(SpeedtestException): class InvalidSpeedtestMiniServer (line 354) | class InvalidSpeedtestMiniServer(SpeedtestException): class ShareResultsConnectFailure (line 360) | class ShareResultsConnectFailure(SpeedtestException): class ShareResultsSubmitFailure (line 364) | class ShareResultsSubmitFailure(SpeedtestException): class SpeedtestUploadTimeout (line 370) | class SpeedtestUploadTimeout(SpeedtestException): class SpeedtestBestServerFailure (line 376) | class SpeedtestBestServerFailure(SpeedtestException): class SpeedtestMissingBestServer (line 380) | class SpeedtestMissingBestServer(SpeedtestException): function create_connection (line 384) | def create_connection(address, timeout=_GLOBAL_DEFAULT_TIMEOUT, source_a... class SpeedtestHTTPConnection (line 422) | class SpeedtestHTTPConnection(HTTPConnection): method __init__ (line 427) | def __init__(self, *args, **kwargs): method connect (line 438) | def connect(self): class SpeedtestHTTPSConnection (line 459) | class SpeedtestHTTPSConnection(HTTPSConnection): method __init__ (line 466) | def __init__(self, *args, **kwargs): method connect (line 477) | def connect(self): function _build_connection (line 526) | def _build_connection(connection, source_address, timeout, context=None): class SpeedtestHTTPHandler (line 543) | class SpeedtestHTTPHandler(AbstractHTTPHandler): method __init__ (line 548) | def __init__(self, debuglevel=0, source_address=None, timeout=10): method http_open (line 553) | def http_open(self, req): class SpeedtestHTTPSHandler (line 566) | class SpeedtestHTTPSHandler(AbstractHTTPHandler): method __init__ (line 571) | def __init__(self, debuglevel=0, context=None, source_address=None, ti... method https_open (line 577) | def https_open(self, req): function build_opener (line 591) | def build_opener(source_address=None, timeout=10): class GzipDecodedResponse (line 623) | class GzipDecodedResponse(GZIP_BASE): method __init__ (line 631) | def __init__(self, response): method close (line 649) | def close(self): function get_exception (line 656) | def get_exception(): function distance (line 663) | def distance(origin, destination): function build_user_agent (line 680) | def build_user_agent(): function build_request (line 694) | def build_request(url, data=None, headers=None, bump="0", secure=False): function catch_request (line 727) | def catch_request(request, opener=None): function get_response_stream (line 747) | def get_response_stream(response): function get_attributes_by_tag_name (line 763) | def get_attributes_by_tag_name(dom, tag_name): function print_dots (line 774) | def print_dots(shutdown_event): function do_nothing (line 791) | def do_nothing(*args, **kwargs): class HTTPDownloader (line 795) | class HTTPDownloader(threading.Thread): method __init__ (line 798) | def __init__(self, i, request, start, timeout, opener=None, shutdown_e... method run (line 815) | def run(self): class HTTPUploaderData (line 833) | class HTTPUploaderData: method __init__ (line 838) | def __init__(self, length, start, timeout, shutdown_event=None): method pre_allocate (line 852) | def pre_allocate(self): method data (line 867) | def data(self): method read (line 872) | def read(self, n=10240): method __len__ (line 881) | def __len__(self): class HTTPUploader (line 885) | class HTTPUploader(threading.Thread): method __init__ (line 888) | def __init__( method run (line 916) | def run(self): class SpeedtestResults (line 944) | class SpeedtestResults: method __init__ (line 957) | def __init__( method __repr__ (line 988) | def __repr__(self): method share (line 991) | def share(self): method dict (line 1057) | def dict(self): method csv_header (line 1072) | def csv_header(delimiter=","): method csv (line 1091) | def csv(self, delimiter=","): method json (line 1111) | def json(self, pretty=False): class Speedtest (line 1119) | class Speedtest: method __init__ (line 1122) | def __init__( method best (line 1158) | def best(self): method get_config (line 1163) | def get_config(self): method get_servers (line 1277) | def get_servers(self, servers=None, exclude=None): method set_mini_server (line 1380) | def set_mini_server(self, server): method get_closest_servers (line 1433) | def get_closest_servers(self, limit=5): method get_best_server (line 1452) | def get_best_server(self, servers=None): method download (line 1527) | def download(self, callback=do_nothing, threads=None): method upload (line 1600) | def upload(self, callback=do_nothing, pre_allocate=True, threads=None): function ctrl_c (line 1695) | def ctrl_c(shutdown_event): function version (line 1708) | def version(): function csv_header (line 1715) | def csv_header(delimiter=","): function parse_args (line 1721) | def parse_args(): function validate_optional_args (line 1875) | def validate_optional_args(args): function printer (line 1892) | def printer(string, quiet=False, debug=False, error=False, **kwargs): function shell (line 1912) | def shell(): function main (line 2073) | def main(): FILE: skills/utilities/timer/src/lib/memory.ts type TimerMemory (line 3) | interface TimerMemory { constant TIMERS_MEMORY (line 11) | const TIMERS_MEMORY = new Memory({ function createTimerMemory (line 16) | async function createTimerMemory( function getTimerMemoryByWidgetId (line 36) | async function getTimerMemoryByWidgetId( function getNewestTimerMemory (line 47) | async function getNewestTimerMemory(): Promise { function deleteAllTimersMemory (line 53) | function deleteAllTimersMemory(): Promise { FILE: skills/utilities/timer/src/widgets/components/timer.ts type TimerProps (line 4) | interface TimerProps { class Timer (line 12) | class Timer extends WidgetComponent { method constructor (line 13) | constructor(props: TimerProps) { FILE: skills/utilities/timer/src/widgets/timer-widget.ts type Params (line 6) | interface Params { class TimerWidget (line 13) | class TimerWidget extends Widget { method constructor (line 14) | constructor(options: WidgetOptions) { method render (line 18) | public render(): WidgetComponent { FILE: skills/video_summarizer_skill/src/actions/prepare_audio.ts constant AUDIO_EXTENSIONS (line 22) | const AUDIO_EXTENSIONS = new Set([ FILE: skills/video_summarizer_skill/src/actions/summarize_transcription.ts type VideoSummarizerSettings (line 11) | interface VideoSummarizerSettings extends Record { FILE: skills/video_translator_skill/src/actions/create_new_audio.ts type SpeakerReference (line 16) | interface SpeakerReference { type Segment (line 22) | interface Segment { type ProcessedSegment (line 29) | interface ProcessedSegment { type VideoTranslatorSkillSettings (line 34) | interface VideoTranslatorSkillSettings extends Record { constant BREAK_CHARS (line 41) | const BREAK_CHARS = ',.!?' constant GROUP_TARGET_CHARS (line 42) | const GROUP_TARGET_CHARS = 272 constant LONG_PAUSE_S (line 43) | const LONG_PAUSE_S = 1.5 constant MAX_SPEED_UP_RATIO (line 44) | const MAX_SPEED_UP_RATIO = 1.3 function toMs (line 49) | function toMs(seconds: number): number { function splitSegmentText (line 57) | function splitSegmentText( function createPhrases (line 119) | function createPhrases(segments: Segment[]): Segment[] { function groupPhrases (line 187) | function groupPhrases(phrases: Segment[]): Segment[] { type GroupTask (line 366) | interface GroupTask { FILE: skills/video_translator_skill/src/actions/detect_genders.ts type SpeakerReference (line 9) | interface SpeakerReference { FILE: skills/video_translator_skill/src/actions/get_speakers_references.ts type SpeakerReference (line 12) | interface SpeakerReference { function formatTime (line 21) | function formatTime(seconds: number): string { function findBestSegment (line 261) | function findBestSegment( function findLongestSegment (line 325) | function findLongestSegment( FILE: skills/video_translator_skill/src/actions/translate_transcription.ts type VideoTranslatorSkillSettings (line 13) | interface VideoTranslatorSkillSettings extends Record { constant DEFAULT_TRANSLATION_SYSTEM_PROMPT (line 19) | const DEFAULT_TRANSLATION_SYSTEM_PROMPT = `You are a professional transl... FILE: skills/video_translator_skill/src/lib/memory.ts type VideoTranslatorMemory (line 3) | interface VideoTranslatorMemory { constant VIDEO_TRANSLATOR_MEMORY (line 14) | const VIDEO_TRANSLATOR_MEMORY = new Memory({ function saveVideoInfo (line 19) | async function saveVideoInfo( function getVideoInfo (line 36) | async function getVideoInfo(): Promise { function updateAudioInfo (line 40) | async function updateAudioInfo( function updateTranscriptionInfo (line 61) | async function updateTranscriptionInfo( function clearVideoInfo (line 80) | async function clearVideoInfo(): Promise { FILE: skills/video_translator_skill/src/widgets/download-progress-widget.ts type Params (line 8) | interface Params { class DownloadProgressWidget (line 19) | class DownloadProgressWidget extends Widget { method constructor (line 20) | constructor(options: WidgetOptions) { method render (line 24) | public render(): WidgetComponent { FILE: skills/voice_designer_skill/src/actions/design_and_speak.ts function sanitizeFileName (line 12) | function sanitizeFileName(value: string): string { FILE: skills/weather_forecast_skill/src/actions/get_forecast.ts type Units (line 8) | type Units = 'metric' | 'imperial' FILE: skills/weather_forecast_skill/src/widgets/weather-forecast-widget.ts type Params (line 7) | interface Params { class WeatherForecastWidget (line 17) | class WeatherForecastWidget extends Widget { method constructor (line 18) | constructor(options: WidgetOptions) { method render (line 22) | public render(): WidgetComponent { method getWeatherIcon (line 184) | private getWeatherIcon(description: string): string { FILE: tcp_server/src/lib/asr/api.py class ASR (line 12) | class ASR: method __init__ (line 13) | def __init__(self, method open_mic_stream (line 101) | def open_mic_stream(self): method start_recording (line 112) | def start_recording(self): method stop_recording (line 186) | def stop_recording(self): method log (line 216) | def log(*args, **kwargs): FILE: tcp_server/src/lib/nlp.py function load_spacy_model (line 45) | def load_spacy_model() -> None: function delete_unneeded_country_data (line 61) | def delete_unneeded_country_data(data: dict) -> None: function extract_spacy_entities (line 75) | def extract_spacy_entities(utterance: str) -> list[dict]: function log (line 145) | def log(*args, **kwargs): FILE: tcp_server/src/lib/tcp_server.py class TCPServer (line 27) | class TCPServer: method __init__ (line 28) | def __init__(self, host: str, port: Union[str, int]): method log (line 40) | def log(*args, **kwargs): method send_tcp_message (line 43) | def send_tcp_message(self, data: dict): method init_tts (line 50) | def init_tts(self): method init_asr (line 68) | def init_asr(self): method init (line 130) | def init(self): method get_spacy_entities (line 181) | def get_spacy_entities(self, utterance: str) -> dict: method asr_start_recording (line 191) | def asr_start_recording(self, extra=None) -> dict: method tts_synthesize (line 206) | def tts_synthesize(self, speech: str) -> dict: method leon_speech_audio_ended (line 250) | def leon_speech_audio_ended(self, audio_duration: float) -> dict: FILE: tcp_server/src/lib/tts/api.py class TTS (line 18) | class TTS(nn.Module): method __init__ (line 19) | def __init__(self, method audio_numpy_concat (line 94) | def audio_numpy_concat(segment_data_list, sr, speed=1.): method split_sentences_into_pieces (line 103) | def split_sentences_into_pieces(text, language, quiet=False): method tts_iter (line 111) | def tts_iter(self, text, speaker_id, sdp_ratio=0.2, noise_scale=0.6, n... method tts_to_file (line 171) | def tts_to_file(self, text, speaker_id, output_path=None, sdp_ratio=0.... method log (line 198) | def log(*args, **kwargs): FILE: tcp_server/src/lib/tts/attentions.py class LayerNorm (line 12) | class LayerNorm(nn.Module): method __init__ (line 13) | def __init__(self, channels, eps=1e-5): method forward (line 21) | def forward(self, x): class Encoder (line 27) | class Encoder(nn.Module): method __init__ (line 28) | def __init__( method forward (line 88) | def forward(self, x, x_mask, g=None): class Decoder (line 108) | class Decoder(nn.Module): method __init__ (line 109) | def __init__( method forward (line 168) | def forward(self, x, x_mask, h, h_mask): class MultiHeadAttention (line 194) | class MultiHeadAttention(nn.Module): method __init__ (line 195) | def __init__( method forward (line 248) | def forward(self, x, c, attn_mask=None): method attention (line 258) | def attention(self, query, key, value, mask=None): method _matmul_with_relative_values (line 309) | def _matmul_with_relative_values(self, x, y): method _matmul_with_relative_keys (line 318) | def _matmul_with_relative_keys(self, x, y): method _get_relative_embeddings (line 327) | def _get_relative_embeddings(self, relative_embeddings, length): method _relative_position_to_absolute_position (line 345) | def _relative_position_to_absolute_position(self, x): method _absolute_position_to_relative_position (line 366) | def _absolute_position_to_relative_position(self, x): method _attention_bias_proximal (line 382) | def _attention_bias_proximal(self, length): class FFN (line 394) | class FFN(nn.Module): method __init__ (line 395) | def __init__( method forward (line 423) | def forward(self, x, x_mask): method _causal_padding (line 433) | def _causal_padding(self, x): method _same_padding (line 442) | def _same_padding(self, x): FILE: tcp_server/src/lib/tts/commons.py function init_weights (line 6) | def init_weights(m, mean=0.0, std=0.01): function get_padding (line 12) | def get_padding(kernel_size, dilation=1): function convert_pad_shape (line 16) | def convert_pad_shape(pad_shape): function intersperse (line 22) | def intersperse(lst, item): function kl_divergence (line 28) | def kl_divergence(m_p, logs_p, m_q, logs_q): function rand_gumbel (line 37) | def rand_gumbel(shape): function rand_gumbel_like (line 43) | def rand_gumbel_like(x): function slice_segments (line 48) | def slice_segments(x, ids_str, segment_size=4): function rand_slice_segments (line 57) | def rand_slice_segments(x, x_lengths=None, segment_size=4): function get_timing_signal_1d (line 67) | def get_timing_signal_1d(length, channels, min_timescale=1.0, max_timesc... function add_timing_signal_1d (line 83) | def add_timing_signal_1d(x, min_timescale=1.0, max_timescale=1.0e4): function cat_timing_signal_1d (line 89) | def cat_timing_signal_1d(x, min_timescale=1.0, max_timescale=1.0e4, axis... function subsequent_mask (line 95) | def subsequent_mask(length): function convert_pad_shape (line 100) | def convert_pad_shape(pad_shape): function shift_1d (line 106) | def shift_1d(x): function sequence_mask (line 111) | def sequence_mask(length, max_length=None): function generate_path (line 118) | def generate_path(duration, mask): function clip_grad_value_ (line 135) | def clip_grad_value_(parameters, clip_value, norm_type=2): FILE: tcp_server/src/lib/tts/models.py class DurationDiscriminator (line 17) | class DurationDiscriminator(nn.Module): # vits2 method __init__ (line 18) | def __init__( method forward_probability (line 53) | def forward_probability(self, x, x_mask, dur, g=None): method forward (line 69) | def forward(self, x, x_mask, dur_r, dur_hat, g=None): class TransformerCouplingBlock (line 91) | class TransformerCouplingBlock(nn.Module): method __init__ (line 92) | def __init__( method forward (line 147) | def forward(self, x, x_mask, g=None, reverse=False): class StochasticDurationPredictor (line 157) | class StochasticDurationPredictor(nn.Module): method __init__ (line 158) | def __init__( method forward (line 206) | def forward(self, x, x_mask, w=None, g=None, reverse=False, noise_scal... class DurationPredictor (line 268) | class DurationPredictor(nn.Module): method __init__ (line 269) | def __init__( method forward (line 294) | def forward(self, x, x_mask, g=None): class TextEncoder (line 311) | class TextEncoder(nn.Module): method __init__ (line 312) | def __init__( method forward (line 360) | def forward(self, x, x_lengths, tone, language, bert, ja_bert, g=None): class ResidualCouplingBlock (line 384) | class ResidualCouplingBlock(nn.Module): method __init__ (line 385) | def __init__( method forward (line 419) | def forward(self, x, x_mask, g=None, reverse=False): class PosteriorEncoder (line 429) | class PosteriorEncoder(nn.Module): method __init__ (line 430) | def __init__( method forward (line 459) | def forward(self, x, x_lengths, g=None, tau=1.0): class Generator (line 471) | class Generator(torch.nn.Module): method __init__ (line 472) | def __init__( method forward (line 519) | def forward(self, x, g=None): method remove_weight_norm (line 540) | def remove_weight_norm(self): class DiscriminatorP (line 548) | class DiscriminatorP(torch.nn.Module): method __init__ (line 549) | def __init__(self, period, kernel_size=5, stride=3, use_spectral_norm=... method forward (line 605) | def forward(self, x): class DiscriminatorS (line 627) | class DiscriminatorS(torch.nn.Module): method __init__ (line 628) | def __init__(self, use_spectral_norm=False): method forward (line 643) | def forward(self, x): class MultiPeriodDiscriminator (line 657) | class MultiPeriodDiscriminator(torch.nn.Module): method __init__ (line 658) | def __init__(self, use_spectral_norm=False): method forward (line 668) | def forward(self, y, y_hat): class ReferenceEncoder (line 684) | class ReferenceEncoder(nn.Module): method __init__ (line 690) | def __init__(self, spec_channels, gin_channels=0, layernorm=False): method forward (line 724) | def forward(self, inputs, mask=None): method calculate_channels (line 746) | def calculate_channels(self, L, kernel_size, stride, pad, n_convs): class SynthesizerTrn (line 752) | class SynthesizerTrn(nn.Module): method __init__ (line 757) | def __init__( method forward (line 888) | def forward(self, x, x_lengths, y, y_lengths, sid, tone, language, ber... method infer (line 966) | def infer( method voice_conversion (line 1023) | def voice_conversion(self, y, y_lengths, sid_src, sid_tgt, tau=1.0): FILE: tcp_server/src/lib/tts/modules.py class LayerNorm (line 17) | class LayerNorm(nn.Module): method __init__ (line 18) | def __init__(self, channels, eps=1e-5): method forward (line 26) | def forward(self, x): class ConvReluNorm (line 32) | class ConvReluNorm(nn.Module): method __init__ (line 33) | def __init__( method forward (line 74) | def forward(self, x, x_mask): class DDSConv (line 84) | class DDSConv(nn.Module): method __init__ (line 89) | def __init__(self, channels, kernel_size, n_layers, p_dropout=0.0): method forward (line 118) | def forward(self, x, x_mask, g=None): class WN (line 133) | class WN(torch.nn.Module): method __init__ (line 134) | def __init__( method remove_weight_norm (line 185) | def remove_weight_norm(self): class ResBlock1 (line 194) | class ResBlock1(torch.nn.Module): method __init__ (line 195) | def __init__(self, channels, kernel_size=3, dilation=(1, 3, 5)): method forward (line 269) | def forward(self, x, x_mask=None): method remove_weight_norm (line 284) | def remove_weight_norm(self): class ResBlock2 (line 291) | class ResBlock2(torch.nn.Module): method __init__ (line 292) | def __init__(self, channels, kernel_size=3, dilation=(1, 3)): method forward (line 320) | def forward(self, x, x_mask=None): method remove_weight_norm (line 331) | def remove_weight_norm(self): class Log (line 336) | class Log(nn.Module): method forward (line 337) | def forward(self, x, x_mask, reverse=False, **kwargs): class Flip (line 347) | class Flip(nn.Module): method forward (line 348) | def forward(self, x, *args, reverse=False, **kwargs): class ElementwiseAffine (line 357) | class ElementwiseAffine(nn.Module): method __init__ (line 358) | def __init__(self, channels): method forward (line 364) | def forward(self, x, x_mask, reverse=False, **kwargs): class ResidualCouplingLayer (line 375) | class ResidualCouplingLayer(nn.Module): method __init__ (line 376) | def __init__( method forward (line 410) | def forward(self, x, x_mask, g=None, reverse=False): class ConvFlow (line 432) | class ConvFlow(nn.Module): method __init__ (line 433) | def __init__( method forward (line 459) | def forward(self, x, x_mask, g=None, reverse=False): class TransformerCouplingLayer (line 492) | class TransformerCouplingLayer(nn.Module): method __init__ (line 493) | def __init__( method forward (line 535) | def forward(self, x, x_mask, g=None, reverse=False): FILE: tcp_server/src/lib/tts/monotonic_align/__init__.py function maximum_path (line 7) | def maximum_path(neg_cent, mask): FILE: tcp_server/src/lib/tts/monotonic_align/core.py function maximum_path_jit (line 14) | def maximum_path_jit(paths, values, t_ys, t_xs): FILE: tcp_server/src/lib/tts/split_utils.py function split_sentence (line 3) | def split_sentence(text, min_len=10, language_str='EN'): function split_sentences_latin (line 11) | def split_sentences_latin(text, min_len=10): function split_sentences_zh (line 20) | def split_sentences_zh(text, min_len=10): function merge_short_sentences_en (line 45) | def merge_short_sentences_en(sens): function merge_short_sentences_zh (line 71) | def merge_short_sentences_zh(sens): function txtsplit (line 99) | def txtsplit(text, desired_length=100, max_length=200): FILE: tcp_server/src/lib/tts/text/__init__.py function cleaned_text_to_sequence (line 7) | def cleaned_text_to_sequence(cleaned_text, tones, language, symbol_to_id... function get_bert (line 23) | def get_bert(norm_text, word2ph, language, device): FILE: tcp_server/src/lib/tts/text/cleaner.py function clean_text (line 10) | def clean_text(text, language): function clean_text_bert (line 17) | def clean_text_bert(text, language, device=None): function text_to_sequence (line 31) | def text_to_sequence(text, language): FILE: tcp_server/src/lib/tts/text/cleaner_multiling.py function replace_punctuation (line 43) | def replace_punctuation(text): function lowercase (line 48) | def lowercase(text): function collapse_whitespace (line 52) | def collapse_whitespace(text): function remove_punctuation_at_begin (line 55) | def remove_punctuation_at_begin(text): function remove_aux_symbols (line 58) | def remove_aux_symbols(text): function replace_symbols (line 63) | def replace_symbols(text, lang="en"): function unicleaners (line 98) | def unicleaners(text, cased=False, lang='en'): FILE: tcp_server/src/lib/tts/text/english.py function distribute_phone (line 97) | def distribute_phone(n_phone, n_word): function post_replace_ph (line 105) | def post_replace_ph(ph): function read_dict (line 128) | def read_dict(): function cache_dict (line 152) | def cache_dict(g2p_dict, file_path): function get_dict (line 157) | def get_dict(): function refine_ph (line 171) | def refine_ph(phn): function refine_syllables (line 179) | def refine_syllables(syllables): function text_normalize (line 191) | def text_normalize(text): function g2p_old (line 204) | def g2p_old(text): function g2p (line 231) | def g2p(text, pad_start_end=True, tokenized=None): function get_bert_feature (line 276) | def get_bert_feature(text, word2ph, device=None): FILE: tcp_server/src/lib/tts/text/english_bert.py function get_bert_feature (line 14) | def get_bert_feature(text, word2ph, device=None): FILE: tcp_server/src/lib/tts/text/english_utils/abbreviations.py function expand_abbreviations (line 28) | def expand_abbreviations(text, lang="en"): FILE: tcp_server/src/lib/tts/text/english_utils/number_norm.py function _remove_commas (line 16) | def _remove_commas(m): function _expand_decimal_point (line 20) | def _expand_decimal_point(m): function __expand_currency (line 24) | def __expand_currency(value: str, inflection: Dict[float, str]) -> str: function _expand_currency (line 42) | def _expand_currency(m: "re.Match") -> str: function _expand_ordinal (line 74) | def _expand_ordinal(m): function _expand_number (line 78) | def _expand_number(m): function normalize_numbers (line 91) | def normalize_numbers(text): FILE: tcp_server/src/lib/tts/text/english_utils/time_norm.py function _expand_num (line 18) | def _expand_num(n: int) -> str: function _expand_time_english (line 22) | def _expand_time_english(match: "re.Match") -> str: function expand_time_english (line 46) | def expand_time_english(text: str) -> str: FILE: tcp_server/src/lib/tts/text/fr_phonemizer/base.py class BasePhonemizer (line 7) | class BasePhonemizer(abc.ABC): method __init__ (line 34) | def __init__(self, language, punctuations=Punctuation.default_puncs(),... method _init_language (line 46) | def _init_language(self, language): method language (line 57) | def language(self): method name (line 63) | def name(): method is_available (line 69) | def is_available(cls): method version (line 75) | def version(cls): method supported_languages (line 81) | def supported_languages(): method is_supported_language (line 85) | def is_supported_language(self, language): method _phonemize (line 90) | def _phonemize(self, text, separator): method _phonemize_preprocess (line 93) | def _phonemize_preprocess(self, text) -> Tuple[List[str], List]: method _phonemize_postprocess (line 107) | def _phonemize_postprocess(self, phonemized, punctuations) -> str: method phonemize (line 116) | def phonemize(self, text: str, separator="|", language: str = None) ->... method print_logs (line 137) | def print_logs(self, level: int = 0): FILE: tcp_server/src/lib/tts/text/fr_phonemizer/cleaner.py function replace_punctuation (line 48) | def replace_punctuation(text): function expand_abbreviations (line 53) | def expand_abbreviations(text, lang="fr"): function lowercase (line 61) | def lowercase(text): function collapse_whitespace (line 65) | def collapse_whitespace(text): function remove_punctuation_at_begin (line 68) | def remove_punctuation_at_begin(text): function remove_aux_symbols (line 71) | def remove_aux_symbols(text): function replace_symbols (line 76) | def replace_symbols(text, lang="en"): function french_cleaners (line 111) | def french_cleaners(text): FILE: tcp_server/src/lib/tts/text/fr_phonemizer/fr_to_ipa.py function remove_consecutive_t (line 5) | def remove_consecutive_t(input_str): function fr2ipa (line 23) | def fr2ipa(text): FILE: tcp_server/src/lib/tts/text/fr_phonemizer/gruut_wrapper.py class Gruut (line 14) | class Gruut(BasePhonemizer): method __init__ (line 41) | def __init__( method name (line 54) | def name(): method phonemize_gruut (line 57) | def phonemize_gruut(self, text: str, separator: str = "|", tie=False) ... method _phonemize (line 109) | def _phonemize(self, text, separator): method is_supported_language (line 112) | def is_supported_language(self, language): method supported_languages (line 117) | def supported_languages() -> List: method version (line 125) | def version(self): method is_available (line 134) | def is_available(cls): FILE: tcp_server/src/lib/tts/text/fr_phonemizer/punctuation.py class PuncPosition (line 12) | class PuncPosition(Enum): class Punctuation (line 21) | class Punctuation: method __init__ (line 43) | def __init__(self, puncs: str = _DEF_PUNCS): method default_puncs (line 47) | def default_puncs(): method puncs (line 52) | def puncs(self): method puncs (line 56) | def puncs(self, value): method strip (line 62) | def strip(self, text): method strip_to_restore (line 74) | def strip_to_restore(self, text): method _strip_to_restore (line 88) | def _strip_to_restore(self, text): method restore (line 118) | def restore(cls, text, puncs): method _restore (line 133) | def _restore(cls, text, puncs, num): # pylint: disable=too-many-retur... FILE: tcp_server/src/lib/tts/text/french.py function distribute_phone (line 9) | def distribute_phone(n_phone, n_word): function text_normalize (line 17) | def text_normalize(text): function g2p (line 27) | def g2p(text, pad_start_end=True, tokenized=None): function get_bert_feature (line 67) | def get_bert_feature(text, word2ph, device=None): function text_normalize (line 84) | def text_normalize(text): FILE: tcp_server/src/lib/tts/text/french_bert.py function get_bert_feature (line 14) | def get_bert_feature(text, word2ph, device=None): FILE: tcp_server/src/lib/tts/transforms.py function piecewise_rational_quadratic_transform (line 12) | def piecewise_rational_quadratic_transform( function searchsorted (line 45) | def searchsorted(bin_locations, inputs, eps=1e-6): function unconstrained_rational_quadratic_spline (line 50) | def unconstrained_rational_quadratic_spline( function rational_quadratic_spline (line 100) | def rational_quadratic_spline( FILE: tcp_server/src/lib/tts/utils.py function get_text_for_tts_infer (line 18) | def get_text_for_tts_infer(text, language_str, hps, device, symbol_to_id... function load_checkpoint (line 56) | def load_checkpoint(checkpoint_path, model, optimizer=None, skip_optimiz... function save_checkpoint (line 115) | def save_checkpoint(model, optimizer, learning_rate, iteration, checkpoi... function summarize (line 136) | def summarize( function latest_checkpoint_path (line 155) | def latest_checkpoint_path(dir_path, regex="G_*.pth"): function plot_spectrogram_to_numpy (line 162) | def plot_spectrogram_to_numpy(spectrogram): function plot_alignment_to_numpy (line 188) | def plot_alignment_to_numpy(alignment, info=None): function load_filepaths_and_text (line 218) | def load_filepaths_and_text(filename, split="|"): function get_hparams (line 224) | def get_hparams(init=True): function clean_checkpoints (line 270) | def clean_checkpoints(path_to_models="logs/44k/", n_ckpts_to_keep=2, sor... function get_hparams_from_dir (line 315) | def get_hparams_from_dir(model_dir): function get_hparams_from_file (line 326) | def get_hparams_from_file(config_path): function check_git_hash (line 335) | def check_git_hash(model_dir): function get_logger (line 360) | def get_logger(model_dir, filename="train.log"): class HParams (line 375) | class HParams: method __init__ (line 376) | def __init__(self, **kwargs): method keys (line 382) | def keys(self): method items (line 385) | def items(self): method values (line 388) | def values(self): method __len__ (line 391) | def __len__(self): method __getitem__ (line 394) | def __getitem__(self, key): method __setitem__ (line 397) | def __setitem__(self, key, value): method __contains__ (line 400) | def __contains__(self, key): method __repr__ (line 403) | def __repr__(self): FILE: tcp_server/src/lib/utils.py class ThrottledCallback (line 7) | class ThrottledCallback: method __init__ (line 8) | def __init__(self, callback, min_interval): method __call__ (line 13) | def __call__(self, *args, **kwargs): function is_macos (line 20) | def is_macos(): function is_windows (line 24) | def is_windows(): function is_linux (line 28) | def is_linux(): function get_settings (line 32) | def get_settings(key): FILE: tcp_server/src/lib/wake_word/api.py class WakeWord (line 8) | class WakeWord: method __init__ (line 9) | def __init__(self, asr, model_path, device='cpu', detection_threshold=... method reset_model_state (line 46) | def reset_model_state(self): method start_listening (line 53) | def start_listening(self): method stop_listening (line 84) | def stop_listening(self): method log (line 90) | def log(*args, **kwargs): FILE: tcp_server/src/main.py function _resolve_torch_root (line 11) | def _resolve_torch_root(pytorch_path: str) -> str | None: function _add_pytorch_path (line 29) | def _add_pytorch_path(pytorch_path: str | None) -> str | None: function _set_library_paths (line 42) | def _set_library_paths(paths: list[str]) -> None: function _configure_external_libraries (line 78) | def _configure_external_libraries( function _parse_args (line 115) | def _parse_args() -> argparse.Namespace: FILE: test/agentic-loop/e2e/provider-matrix.ts constant PROVIDER_MATRIX (line 5) | const PROVIDER_MATRIX = [ type AgenticProvider (line 32) | type AgenticProvider = (typeof PROVIDER_MATRIX)[number]['provider'] constant PROVIDER_REQUIRED_ENV (line 34) | const PROVIDER_REQUIRED_ENV = Object.fromEntries( FILE: test/agentic-loop/e2e/react-provider-smoke.spec.ts constant CURRENT_DIR (line 9) | const CURRENT_DIR = fileURLToPath(new URL('.', import.meta.url)) constant ROOT_DIR (line 10) | const ROOT_DIR = path.resolve(CURRENT_DIR, '..', '..', '..') constant RESULT_PREFIX (line 11) | const RESULT_PREFIX = '__AGENTIC_LOOP_RESULT__' constant PROGRESS_PREFIX (line 12) | const PROGRESS_PREFIX = '__AGENTIC_LOOP_PROGRESS__' type ProviderProgressEvent (line 14) | interface ProviderProgressEvent { type ProviderScenarioResult (line 27) | interface ProviderScenarioResult { function extractTestNamePattern (line 54) | function extractTestNamePattern(argv: string[]): string | null { function resolveProviderMatrix (line 82) | function resolveProviderMatrix( constant ACTIVE_PROVIDER_MATRIX (line 106) | const ACTIVE_PROVIDER_MATRIX = resolveProviderMatrix( function collectTurnTrace (line 111) | function collectTurnTrace( function formatProgressEvent (line 128) | function formatProgressEvent(event: ProviderProgressEvent): string { function runProviderScenario (line 150) | async function runProviderScenario( FILE: test/agentic-loop/e2e/run-agentic-loop-provider-scenario.ts constant RESULT_PREFIX (line 8) | const RESULT_PREFIX = '__AGENTIC_LOOP_RESULT__' constant PROGRESS_PREFIX (line 9) | const PROGRESS_PREFIX = '__AGENTIC_LOOP_PROGRESS__' constant REACT_CONTINUATION_STATE_FILENAME (line 10) | const REACT_CONTINUATION_STATE_FILENAME = constant REACT_HISTORY_COMPACTION_STATE_FILENAME (line 12) | const REACT_HISTORY_COMPACTION_STATE_FILENAME = type AgenticProgressEvent (line 15) | interface AgenticProgressEvent { type AgenticTurnResult (line 28) | interface AgenticTurnResult { type AgenticRunnerResult (line 49) | interface AgenticRunnerResult { function printResult (line 57) | function printResult(result: AgenticRunnerResult): void { function printProgress (line 65) | function printProgress(event: AgenticProgressEvent): void { function serializeToolOutput (line 69) | function serializeToolOutput(value: unknown): string { function summarizeValue (line 77) | function summarizeValue(value: string, maxLength = 220): string { function main (line 85) | async function main(): Promise { FILE: test/agentic-loop/unit/react-llm-duty.spec.ts method setChatHistory (line 69) | setChatHistory(): void {} method dispose (line 70) | dispose(): void {} function logUnitProgress (line 119) | function logUnitProgress(message: string, data?: Record... function createDuty (line 124) | async function createDuty(input: string): Promise