SYMBOL INDEX (6898 symbols across 271 files) FILE: docs/context/agent-sdk-v2-examples.ts function main (line 14) | async function main() { function basicSession (line 36) | async function basicSession() { function multiTurn (line 51) | async function multiTurn() { function oneShot (line 76) | async function oneShot() { function sessionResume (line 88) | async function sessionResume() { FILE: install/public/installer.js method "node_modules/picocolors/picocolors.js" (line 30) | "node_modules/picocolors/picocolors.js"(exports, module) { method "node_modules/sisteransi/src/index.js" (line 102) | "node_modules/sisteransi/src/index.js"(exports, module) { function B (line 163) | function B(t, e2, s) { function K (line 327) | function K(t, e2, s) { function H (line 336) | function H(t, e2) { function _t (line 341) | function _t(t, e2) { function Ct (line 351) | function Ct(t) { function T (line 354) | function T(t, e2) { function Bt (line 358) | function Bt({ input: t = q, output: e2 = R, overwrite: s = true, hideCur... function xt (line 381) | function xt(t, e2, s, i = s) { method constructor (line 402) | constructor(e2, s = true) { method unsubscribe (line 406) | unsubscribe() { method setSubscriber (line 409) | setSubscriber(e2, s) { method on (line 413) | on(e2, s) { method once (line 416) | once(e2, s) { method emit (line 419) | emit(e2, ...s) { method prompt (line 424) | prompt() { method _isActionKey (line 439) | _isActionKey(e2, s) { method _setValue (line 442) | _setValue(e2) { method _setUserInput (line 445) | _setUserInput(e2, s) { method _clearUserInput (line 448) | _clearUserInput() { method onKeypress (line 451) | onKeypress(e2, s) { method close (line 461) | close() { method restoreCursor (line 465) | restoreCursor() { method render (line 470) | render() { method cursor (line 510) | get cursor() { method _value (line 513) | get _value() { method constructor (line 516) | constructor(e2) { method _value (line 529) | get _value() { method _enabledOptions (line 532) | get _enabledOptions() { method toggleAll (line 535) | toggleAll() { method toggleInvert (line 539) | toggleInvert() { method toggleValue (line 545) | toggleValue() { method constructor (line 550) | constructor(e2) { method cursor (line 574) | get cursor() { method masked (line 577) | get masked() { method userInputWithCursor (line 580) | get userInputWithCursor() { method clear (line 587) | clear() { method constructor (line 590) | constructor({ mask: e2, ...s }) { method _selectedValue (line 599) | get _selectedValue() { method changeValue (line 602) | changeValue() { method constructor (line 605) | constructor(e2) { method userInputWithCursor (line 624) | get userInputWithCursor() { method cursor (line 631) | get cursor() { method constructor (line 634) | constructor(e2) { function me (line 647) | function me() { function J2 (line 863) | function J2(t, r, s) { method render (line 904) | render() { method validate (line 978) | validate(i) { method render (line 981) | render() { method render (line 1042) | render() { method isCancelled (line 1120) | get isCancelled() { method render (line 1145) | render() { method render (line 1180) | render() { function detectOS (line 1218) | function detectOS() { function commandExists (line 1228) | function commandExists(command) { function runCommand (line 1236) | function runCommand(command, args = []) { function expandHome (line 1249) | function expandHome(filepath) { function runWelcome (line 1257) | async function runWelcome() { function findBinary (line 1291) | function findBinary(name, extraPaths = []) { function parseVersion (line 1314) | function parseVersion(output) { function compareVersions (line 1319) | function compareVersions(current, minimum) { function installBun (line 1330) | function installBun() { function installUv (line 1338) | function installUv() { function runDependencyChecks (line 1350) | async function runDependencyChecks() { function runIdeSelection (line 1492) | async function runIdeSelection() { function runProviderConfiguration (line 1518) | async function runProviderConfiguration() { function runSettingsConfiguration (line 1623) | async function runSettingsConfiguration() { function expandDataDir (line 1797) | function expandDataDir(dataDir) { function buildSettingsObject (line 1803) | function buildSettingsObject(providerConfig, settingsConfig) { function writeSettings (line 1835) | function writeSettings(providerConfig, settingsConfig) { function ensureDir (line 1860) | function ensureDir(directoryPath) { function readJsonFile (line 1865) | function readJsonFile(filepath) { function writeJsonFile (line 1869) | function writeJsonFile(filepath, data) { function registerMarketplace (line 1873) | function registerMarketplace() { function registerPlugin (line 1888) | function registerPlugin(version) { function enablePluginInClaudeSettings (line 1911) | function enablePluginInClaudeSettings() { function getPluginVersion (line 1917) | function getPluginVersion() { function runInstallation (line 1925) | async function runInstallation(selectedIDEs) { function pollHealthEndpoint (line 1995) | async function pollHealthEndpoint(port, maxAttempts = HEALTH_CHECK_MAX_A... function runWorkerStartup (line 2006) | async function runWorkerStartup(workerPort, dataDir) { function getProviderLabel (line 2041) | function getProviderLabel(config) { function getIDELabels (line 2051) | function getIDELabels(ides) { function runCompletion (line 2061) | function runCompletion(providerConfig, settingsConfig, selectedIDEs) { function runInstaller (line 2084) | async function runInstaller() { FILE: installer/dist/index.js method "node_modules/picocolors/picocolors.js" (line 30) | "node_modules/picocolors/picocolors.js"(exports, module) { method "node_modules/sisteransi/src/index.js" (line 102) | "node_modules/sisteransi/src/index.js"(exports, module) { function B (line 163) | function B(t, e2, s) { function K (line 327) | function K(t, e2, s) { function H (line 336) | function H(t, e2) { function _t (line 341) | function _t(t, e2) { function Ct (line 351) | function Ct(t) { function T (line 354) | function T(t, e2) { function Bt (line 358) | function Bt({ input: t = q, output: e2 = R, overwrite: s = true, hideCur... function xt (line 381) | function xt(t, e2, s, i = s) { method constructor (line 402) | constructor(e2, s = true) { method unsubscribe (line 406) | unsubscribe() { method setSubscriber (line 409) | setSubscriber(e2, s) { method on (line 413) | on(e2, s) { method once (line 416) | once(e2, s) { method emit (line 419) | emit(e2, ...s) { method prompt (line 424) | prompt() { method _isActionKey (line 439) | _isActionKey(e2, s) { method _setValue (line 442) | _setValue(e2) { method _setUserInput (line 445) | _setUserInput(e2, s) { method _clearUserInput (line 448) | _clearUserInput() { method onKeypress (line 451) | onKeypress(e2, s) { method close (line 461) | close() { method restoreCursor (line 465) | restoreCursor() { method render (line 470) | render() { method cursor (line 510) | get cursor() { method _value (line 513) | get _value() { method constructor (line 516) | constructor(e2) { method _value (line 529) | get _value() { method _enabledOptions (line 532) | get _enabledOptions() { method toggleAll (line 535) | toggleAll() { method toggleInvert (line 539) | toggleInvert() { method toggleValue (line 545) | toggleValue() { method constructor (line 550) | constructor(e2) { method cursor (line 574) | get cursor() { method masked (line 577) | get masked() { method userInputWithCursor (line 580) | get userInputWithCursor() { method clear (line 587) | clear() { method constructor (line 590) | constructor({ mask: e2, ...s }) { method _selectedValue (line 599) | get _selectedValue() { method changeValue (line 602) | changeValue() { method constructor (line 605) | constructor(e2) { method userInputWithCursor (line 624) | get userInputWithCursor() { method cursor (line 631) | get cursor() { method constructor (line 634) | constructor(e2) { function me (line 647) | function me() { function J2 (line 863) | function J2(t, r, s) { method render (line 904) | render() { method validate (line 978) | validate(i) { method render (line 981) | render() { method render (line 1042) | render() { method isCancelled (line 1120) | get isCancelled() { method render (line 1145) | render() { method render (line 1180) | render() { function detectOS (line 1218) | function detectOS() { function commandExists (line 1228) | function commandExists(command) { function runCommand (line 1236) | function runCommand(command, args = []) { function expandHome (line 1249) | function expandHome(filepath) { function runWelcome (line 1257) | async function runWelcome() { function findBinary (line 1291) | function findBinary(name, extraPaths = []) { function parseVersion (line 1314) | function parseVersion(output) { function compareVersions (line 1319) | function compareVersions(current, minimum) { function installBun (line 1330) | function installBun() { function installUv (line 1338) | function installUv() { function runDependencyChecks (line 1350) | async function runDependencyChecks() { function runIdeSelection (line 1492) | async function runIdeSelection() { function runProviderConfiguration (line 1518) | async function runProviderConfiguration() { function runSettingsConfiguration (line 1623) | async function runSettingsConfiguration() { function expandDataDir (line 1797) | function expandDataDir(dataDir) { function buildSettingsObject (line 1803) | function buildSettingsObject(providerConfig, settingsConfig) { function writeSettings (line 1835) | function writeSettings(providerConfig, settingsConfig) { function ensureDir (line 1860) | function ensureDir(directoryPath) { function readJsonFile (line 1865) | function readJsonFile(filepath) { function writeJsonFile (line 1869) | function writeJsonFile(filepath, data) { function registerMarketplace (line 1873) | function registerMarketplace() { function registerPlugin (line 1888) | function registerPlugin(version) { function enablePluginInClaudeSettings (line 1911) | function enablePluginInClaudeSettings() { function getPluginVersion (line 1917) | function getPluginVersion() { function runInstallation (line 1925) | async function runInstallation(selectedIDEs) { function pollHealthEndpoint (line 1995) | async function pollHealthEndpoint(port, maxAttempts = HEALTH_CHECK_MAX_A... function runWorkerStartup (line 2006) | async function runWorkerStartup(workerPort, dataDir) { function getProviderLabel (line 2041) | function getProviderLabel(config) { function getIDELabels (line 2051) | function getIDELabels(ides) { function runCompletion (line 2061) | function runCompletion(providerConfig, settingsConfig, selectedIDEs) { function runInstaller (line 2084) | async function runInstaller() { FILE: installer/src/index.ts function runInstaller (line 12) | async function runInstaller(): Promise { FILE: installer/src/steps/complete.ts function getProviderLabel (line 7) | function getProviderLabel(config: ProviderConfig): string { function getIDELabels (line 18) | function getIDELabels(ides: IDE[]): string { function runCompletion (line 27) | function runCompletion( FILE: installer/src/steps/dependencies.ts constant BUN_EXTRA_PATHS (line 6) | const BUN_EXTRA_PATHS = ['~/.bun/bin/bun', '/usr/local/bin/bun', '/opt/h... constant UV_EXTRA_PATHS (line 7) | const UV_EXTRA_PATHS = ['~/.local/bin/uv', '~/.cargo/bin/uv']; type DependencyStatus (line 9) | interface DependencyStatus { function runDependencyChecks (line 18) | async function runDependencyChecks(): Promise { FILE: installer/src/steps/ide-selection.ts type IDE (line 3) | type IDE = 'claude-code' | 'cursor'; function runIdeSelection (line 5) | async function runIdeSelection(): Promise { FILE: installer/src/steps/install.ts constant MARKETPLACE_DIR (line 9) | const MARKETPLACE_DIR = join(homedir(), '.claude', 'plugins', 'marketpla... constant PLUGINS_DIR (line 10) | const PLUGINS_DIR = join(homedir(), '.claude', 'plugins'); constant CLAUDE_SETTINGS_PATH (line 11) | const CLAUDE_SETTINGS_PATH = join(homedir(), '.claude', 'settings.json'); function ensureDir (line 13) | function ensureDir(directoryPath: string): void { function readJsonFile (line 19) | function readJsonFile(filepath: string): any { function writeJsonFile (line 24) | function writeJsonFile(filepath: string, data: any): void { function registerMarketplace (line 29) | function registerMarketplace(): void { function registerPlugin (line 47) | function registerPlugin(version: string): void { function enablePluginInClaudeSettings (line 77) | function enablePluginInClaudeSettings(): void { function getPluginVersion (line 86) | function getPluginVersion(): string { function runInstallation (line 95) | async function runInstallation(selectedIDEs: IDE[]): Promise { FILE: installer/src/steps/provider.ts type ProviderType (line 4) | type ProviderType = 'claude' | 'gemini' | 'openrouter'; type ClaudeAuthMethod (line 5) | type ClaudeAuthMethod = 'cli' | 'api'; type ProviderConfig (line 7) | interface ProviderConfig { function runProviderConfiguration (line 15) | async function runProviderConfiguration(): Promise { FILE: installer/src/steps/settings.ts type SettingsConfig (line 4) | interface SettingsConfig { function runSettingsConfiguration (line 17) | async function runSettingsConfiguration(): Promise { FILE: installer/src/steps/welcome.ts type InstallMode (line 6) | type InstallMode = 'fresh' | 'upgrade' | 'configure'; function runWelcome (line 8) | async function runWelcome(): Promise { FILE: installer/src/steps/worker.ts constant MARKETPLACE_DIR (line 9) | const MARKETPLACE_DIR = join(homedir(), '.claude', 'plugins', 'marketpla... constant HEALTH_CHECK_INTERVAL_MS (line 11) | const HEALTH_CHECK_INTERVAL_MS = 1000; constant HEALTH_CHECK_MAX_ATTEMPTS (line 12) | const HEALTH_CHECK_MAX_ATTEMPTS = 30; function pollHealthEndpoint (line 14) | async function pollHealthEndpoint(port: string, maxAttempts: number = HE... function runWorkerStartup (line 27) | async function runWorkerStartup(workerPort: string, dataDir: string): Pr... FILE: installer/src/utils/dependencies.ts type BinaryInfo (line 5) | interface BinaryInfo { function findBinary (line 11) | function findBinary(name: string, extraPaths: string[] = []): BinaryInfo { function parseVersion (line 39) | function parseVersion(output: string): string | null { function compareVersions (line 45) | function compareVersions(current: string, minimum: string): boolean { function installBun (line 58) | function installBun(): void { function installUv (line 67) | function installUv(): void { FILE: installer/src/utils/settings-writer.ts function expandDataDir (line 7) | function expandDataDir(dataDir: string): string { function buildSettingsObject (line 14) | function buildSettingsObject( function writeSettings (line 57) | function writeSettings( FILE: installer/src/utils/system.ts type OSType (line 5) | type OSType = 'macos' | 'linux' | 'windows'; function detectOS (line 7) | function detectOS(): OSType { function commandExists (line 15) | function commandExists(command: string): boolean { type CommandResult (line 24) | interface CommandResult { function runCommand (line 30) | function runCommand(command: string, args: string[] = []): CommandResult { function expandHome (line 44) | function expandHome(filepath: string): string { FILE: openclaw/src/index.test.ts function createMockApi (line 9) | function createMockApi(pluginConfigOverride: Record = {}) { function startWorkerMock (line 229) | function startWorkerMock(): Promise { function startWorkerMock (line 547) | function startWorkerMock(): Promise { function startSSEServer (line 780) | function startSSEServer(): Promise { FILE: openclaw/src/index.ts type PluginLogger (line 8) | interface PluginLogger { type PluginServiceContext (line 15) | interface PluginServiceContext { type PluginCommandContext (line 22) | interface PluginCommandContext { type PluginCommandResult (line 31) | type PluginCommandResult = string | { text: string } | { text: string; f... type BeforeAgentStartEvent (line 34) | interface BeforeAgentStartEvent { type BeforePromptBuildEvent (line 38) | interface BeforePromptBuildEvent { type BeforePromptBuildResult (line 43) | interface BeforePromptBuildResult { type ToolResultPersistEvent (line 50) | interface ToolResultPersistEvent { type AgentEndEvent (line 58) | interface AgentEndEvent { type SessionStartEvent (line 65) | interface SessionStartEvent { type AfterCompactionEvent (line 70) | interface AfterCompactionEvent { type SessionEndEvent (line 76) | interface SessionEndEvent { type MessageReceivedEvent (line 82) | interface MessageReceivedEvent { type EventContext (line 89) | interface EventContext { type MessageContext (line 95) | interface MessageContext { type EventCallback (line 101) | type EventCallback = (event: T, ctx: EventContext) => void | Promise<... type PromptBuildCallback (line 102) | type PromptBuildCallback = (event: BeforePromptBuildEvent, ctx: EventCon... type MessageEventCallback (line 103) | type MessageEventCallback = (event: T, ctx: MessageContext) => void |... type OpenClawPluginApi (line 105) | interface OpenClawPluginApi { type ObservationSSEPayload (line 143) | interface ObservationSSEPayload { type SSENewObservationEvent (line 161) | interface SSENewObservationEvent { type ConnectionState (line 167) | type ConnectionState = "disconnected" | "connected" | "reconnecting"; type FeedEmojiConfig (line 173) | interface FeedEmojiConfig { type ClaudeMemPluginConfig (line 181) | interface ClaudeMemPluginConfig { constant MAX_SSE_BUFFER_SIZE (line 199) | const MAX_SSE_BUFFER_SIZE = 1024 * 1024; constant DEFAULT_WORKER_PORT (line 200) | const DEFAULT_WORKER_PORT = 37777; constant EMOJI_POOL (line 204) | const EMOJI_POOL = [ function poolEmojiForAgent (line 209) | function poolEmojiForAgent(agentId: string): string { constant DEFAULT_PRIMARY_EMOJI (line 218) | const DEFAULT_PRIMARY_EMOJI = "🦞"; constant DEFAULT_CLAUDE_CODE_EMOJI (line 219) | const DEFAULT_CLAUDE_CODE_EMOJI = "⌨️"; constant DEFAULT_CLAUDE_CODE_LABEL (line 220) | const DEFAULT_CLAUDE_CODE_LABEL = "Claude Code Session"; constant DEFAULT_FALLBACK_EMOJI (line 221) | const DEFAULT_FALLBACK_EMOJI = "🦀"; function buildGetSourceLabel (line 223) | function buildGetSourceLabel( function workerBaseUrl (line 259) | function workerBaseUrl(port: number): string { function workerPost (line 263) | async function workerPost( function workerPostFireAndForget (line 287) | function workerPostFireAndForget( function workerGetText (line 303) | async function workerGetText( function workerGetJson (line 322) | async function workerGetJson( function formatObservationMessage (line 342) | function formatObservationMessage( constant CHANNEL_SEND_MAP (line 357) | const CHANNEL_SEND_MAP: Record"... method getPromptNumberFromUserPrompts (line 415) | getPromptNumberFromUserPrompts(e){return this.db.prepare(` method createSDKSession (line 417) | createSDKSession(e,t,s,n){let o=new Date,i=o.getTime(),a=this.db.prepare(` method saveUserPrompt (line 429) | saveUserPrompt(e,t,s){let n=new Date,o=n.getTime();return this.db.prepare(` method getUserPrompt (line 433) | getUserPrompt(e,t){return this.db.prepare(` method storeObservation (line 438) | storeObservation(e,t,s,n,o=0,i){let a=i??Date.now(),d=new Date(a).toISOS... method storeSummary (line 443) | storeSummary(e,t,s,n,o=0,i){let a=i??Date.now(),d=new Date(a).toISOStrin... method storeObservations (line 448) | storeObservations(e,t,s,n,o,i=0,a){let d=a??Date.now(),p=new Date(d).toI... method storeObservationsAndMarkComplete (line 458) | storeObservationsAndMarkComplete(e,t,s,n,o,i,a,d=0,p){let _=p??Date.now(... method getSessionSummariesByIds (line 476) | getSessionSummariesByIds(e,t={}){if(e.length===0)return[];let{orderBy:s=... method getUserPromptsByIds (line 481) | getUserPromptsByIds(e,t={}){if(e.length===0)return[];let{orderBy:s="date... method getTimelineAroundTimestamp (line 491) | getTimelineAroundTimestamp(e,t=10,s=10,n){return this.getTimelineAroundO... method getTimelineAroundObservation (line 491) | getTimelineAroundObservation(e,t,s=10,n=10,o){let i=o?"AND project = ?":... method getPromptById (line 531) | getPromptById(e){return this.db.prepare(` method getPromptsByIds (line 544) | getPromptsByIds(e){if(e.length===0)return[];let t=e.map(()=>"?").join(",... method getSessionSummaryById (line 557) | getSessionSummaryById(e){return this.db.prepare(` method getOrCreateManualSession (line 572) | getOrCreateManualSession(e){let t=`manual-${e}`,s=`manual-content-${e}`;... method close (line 575) | close(){this.db.close()} method importSdkSession (line 575) | importSdkSession(e){let t=this.db.prepare("SELECT id FROM sdk_sessions W... method importSessionSummary (line 580) | importSessionSummary(e){let t=this.db.prepare("SELECT id FROM session_su... method importObservation (line 586) | importObservation(e){let t=this.db.prepare(` method importUserPrompt (line 595) | importUserPrompt(e){let t=this.db.prepare(` function fe (line 603) | function fe(r){if(!r||r.trim()==="")return m.warn("PROJECT_NAME","Empty ... method getAllDefaults (line 603) | static getAllDefaults(){return{...this.DEFAULTS}} method get (line 603) | static get(e){return process.env[e]??this.DEFAULTS[e]} method getInt (line 603) | static getInt(e){let t=this.get(e);return parseInt(t,10)} method getBool (line 603) | static getBool(e){let t=this.get(e);return t==="true"||t===!0} method applyEnvOverrides (line 603) | static applyEnvOverrides(e){let t={...e};for(let s of Object.keys(this.D... method loadFromFile (line 603) | static loadFromFile(e){try{if(!(0,N.existsSync)(e)){let i=this.getAllDef... method constructor (line 603) | constructor(){let e=le(),t=[(0,j.join)(e,"modes"),(0,j.join)(e,"..","plu... method getInstance (line 603) | static getInstance(){return r.instance||(r.instance=new r),r.instance} method parseInheritance (line 603) | parseInheritance(e){let t=e.split("--");if(t.length===1)return{hasParent... method isPlainObject (line 603) | isPlainObject(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)} method deepMerge (line 603) | deepMerge(e,t){let s={...e};for(let n in t){let o=t[n],i=e[n];this.isPla... method loadModeFile (line 603) | loadModeFile(e){let t=(0,j.join)(this.modesDir,`${e}.json`);if(!(0,L.exi... method loadMode (line 603) | loadMode(e){let t=this.parseInheritance(e);if(!t.hasParent)try{let d=thi... method getActiveMode (line 603) | getActiveMode(){if(!this.activeMode)throw new Error("No mode loaded. Cal... method getObservationTypes (line 603) | getObservationTypes(){return this.getActiveMode().observation_types} method getObservationConcepts (line 603) | getObservationConcepts(){return this.getActiveMode().observation_concepts} method getTypeIcon (line 603) | getTypeIcon(e){return this.getObservationTypes().find(s=>s.id===e)?.emoj... method getWorkEmoji (line 603) | getWorkEmoji(e){return this.getObservationTypes().find(s=>s.id===e)?.wor... method validateType (line 603) | validateType(e){return this.getObservationTypes().some(t=>t.id===e)} method getTypeLabel (line 603) | getTypeLabel(e){return this.getObservationTypes().find(s=>s.id===e)?.lab... function J (line 603) | function J(){let r=Se.default.join((0,he.homedir)(),".claude-mem","setti... function z (line 603) | function z(r){let e=(r.title?.length||0)+(r.subtitle?.length||0)+(r.narr... function Z (line 603) | function Z(r){let e=r.length,t=r.reduce((i,a)=>i+z(a),0),s=r.reduce((i,a... function yt (line 603) | function yt(r){return O.getInstance().getWorkEmoji(r)} function M (line 603) | function M(r,e){let t=z(r),s=r.discovery_tokens||0,n=yt(r.type),o=s>0?`$... function G (line 603) | function G(r){return r.showReadTokens||r.showWorkTokens||r.showSavingsAm... function ee (line 603) | function ee(r,e,t){let s=Array.from(t.observationTypes),n=s.map(()=>"?")... function te (line 617) | function te(r,e,t){return r.db.prepare(` function Ce (line 623) | function Ce(r,e,t){let s=Array.from(t.observationTypes),n=s.map(()=>"?")... function Ne (line 637) | function Ne(r,e,t){let s=e.map(()=>"?").join(",");return r.db.prepare(` function vt (line 643) | function vt(r){return r.replace(/\//g,"-")} function Lt (line 643) | function Lt(r){try{if(!(0,H.existsSync)(r))return{userMessage:"",assista... function se (line 644) | function se(r,e,t,s){if(!e.showLastMessage||r.length===0)return{userMess... function Ae (line 644) | function Ae(r,e){let t=e[0]?.id;return r.map((s,n)=>{let o=n===0?null:e[... function re (line 644) | function re(r,e){let t=[...r.map(s=>({type:"observation",data:s})),...e.... function Ie (line 644) | function Ie(r,e){return new Set(r.slice(0,e).map(t=>t.id))} function ye (line 644) | function ye(){let r=new Date,e=r.toLocaleDateString("en-CA"),t=r.toLocal... function ve (line 644) | function ve(r){return[`# $CMEM ${r} ${ye()}`,""]} function Le (line 644) | function Le(){return[`Legend: \u{1F3AF}session ${O.getInstance().getActi... function Me (line 644) | function Me(){return[]} function De (line 644) | function De(){return[]} function xe (line 644) | function xe(r,e){let t=[],s=[`${r.totalObservations} obs (${r.totalReadT... function Ue (line 644) | function Ue(r){return[`### ${r}`]} function ke (line 644) | function ke(r){return r.toLowerCase().replace(" am","a").replace(" pm","... function we (line 644) | function we(r,e,t){let s=r.title||"Untitled",n=O.getInstance().getTypeIc... function $e (line 644) | function $e(r,e,t,s){let n=[],o=r.title||"Untitled",i=O.getInstance().ge... function Fe (line 644) | function Fe(r,e){return[`S${r.id} ${r.request||"Session started"} (${e})`]} function D (line 644) | function D(r,e){return e?[`**${r}**: ${e}`,""]:[]} function Pe (line 644) | function Pe(r){return r.assistantMessage?["","---","","**Previously**","... function Xe (line 644) | function Xe(r,e){return["",`Access ${Math.round(r/1e3)}k tokens of past ... function je (line 644) | function je(r){return`# $CMEM ${r} ${ye()} function Ge (line 646) | function Ge(){let r=new Date,e=r.toLocaleDateString("en-CA"),t=r.toLocal... function He (line 646) | function He(r){return["",`${c.bright}${c.cyan}[${r}] recent context, ${G... function Be (line 646) | function Be(){let e=O.getInstance().getActiveMode().observation_types.ma... function We (line 646) | function We(){return[`${c.bright}Column Key${c.reset}`,`${c.dim} Read: ... function Ye (line 646) | function Ye(){return[`${c.dim}Context Index: This semantic index (titles... function qe (line 646) | function qe(r,e){let t=[];if(t.push(`${c.bright}${c.cyan}Context Economi... function Ve (line 646) | function Ve(r){return[`${c.bright}${c.cyan}${r}${c.reset}`,""]} function Ke (line 646) | function Ke(r){return[`${c.dim}${r}${c.reset}`]} function Je (line 646) | function Je(r,e,t,s){let n=r.title||"Untitled",o=O.getInstance().getType... function Qe (line 646) | function Qe(r,e,t,s,n){let o=[],i=r.title||"Untitled",a=O.getInstance().... function ze (line 646) | function ze(r,e){let t=`${r.request||"Session started"} (${e})`;return[`... function x (line 646) | function x(r,e,t){return e?[`${t}${r}:${c.reset} ${e}`,""]:[]} function Ze (line 646) | function Ze(r){return r.assistantMessage?["","---","",`${c.bright}${c.ma... function et (line 646) | function et(r,e){let t=Math.round(r/1e3);return["",`${c.dim}Access ${t}k... function tt (line 646) | function tt(r){return` function st (line 651) | function st(r,e,t,s){let n=[];return s?n.push(...He(r)):n.push(...ve(r))... function Y (line 651) | function Y(r){if(!r)return[];try{let e=JSON.parse(r);return Array.isArra... function oe (line 651) | function oe(r){return new Date(r).toLocaleString("en-US",{month:"short",... function ie (line 651) | function ie(r){return new Date(r).toLocaleString("en-US",{hour:"numeric"... function nt (line 651) | function nt(r){return new Date(r).toLocaleString("en-US",{month:"short",... function rt (line 651) | function rt(r,e){return ne.default.isAbsolute(r)?ne.default.relative(e,r... function ot (line 651) | function ot(r,e,t){let s=Y(r);if(s.length>0)return rt(s[0],e);if(t){let ... function Mt (line 651) | function Mt(r){let e=new Map;for(let s of r){let n=s.type==="observation... function it (line 651) | function it(r,e){return e.fullObservationField==="narrative"?r.narrative... function Dt (line 652) | function Dt(r,e,t,s){let n=[];n.push(...Ue(r));let o="";for(let i of e)i... function xt (line 652) | function xt(r,e,t,s,n){let o=[];o.push(...Ve(r));let i=null,a="";for(let... function Ut (line 652) | function Ut(r,e,t,s,n,o){return o?xt(r,e,t,s,n):Dt(r,e,t,s)} function at (line 652) | function at(r,e,t,s,n){let o=[],i=Mt(r);for(let[a,d]of i)o.push(...Ut(a,... function dt (line 652) | function dt(r,e,t){return!(!r.showLastSummary||!e||!!!(e.investigated||e... function ct (line 652) | function ct(r,e){let t=[];return e?(t.push(...x("Investigated",r.investi... function pt (line 652) | function pt(r,e){return e?Ze(r):Pe(r)} function mt (line 652) | function mt(r,e,t){return!G(e)||r.totalDiscoveryTokens<=0||r.savings<=0?... function wt (line 652) | function wt(){try{return new F}catch(r){if(r.code==="ERR_DLOPEN_FAILED")... function $t (line 652) | function $t(r,e){return e?tt(r):je(r)} function Ft (line 652) | function Ft(r,e,t,s,n,o,i){let a=[],d=Z(e);a.push(...st(r,d,s,i));let p=... function ae (line 653) | async function ae(r,e=!1){let t=J(),s=r?.cwd??process.cwd(),n=fe(s),o=r?... FILE: plugin/scripts/mcp-server.cjs method constructor (line 2) | constructor(e){if(super(),!re.IDENTIFIER.test(e))throw new Error("CodeGe... method toString (line 2) | toString(){return this.str} method emptyStr (line 2) | emptyStr(){return!1} method names (line 2) | get names(){return{[this.str]:1}} method constructor (line 2) | constructor(e){super(),this._items=typeof e=="string"?[e]:e} method toString (line 2) | toString(){return this.str} method emptyStr (line 2) | emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return ... method str (line 2) | get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this.... method names (line 2) | get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names... function ov (line 2) | function ov(t,...e){let r=[t[0]],n=0;for(;n{if(n.scopePa... method scopeCode (line 2) | scopeCode(e=this._values,r,n){return this._reduceValues(e,o=>{if(o.value... method _reduceValues (line 2) | _reduceValues(e,r,n={},o){let i=Fe.nil;for(let a in e){let s=e[a];if(!s)... method optimizeNodes (line 2) | optimizeNodes(){return this} method optimizeNames (line 2) | optimizeNames(e,r){return this} method constructor (line 2) | constructor(e,r,n){super(),this.varKind=e,this.name=r,this.rhs=n} method render (line 2) | render({es5:e,_n:r}){let n=e?pt.varKinds.var:this.varKind,o=this.rhs===v... method optimizeNames (line 2) | optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=un(thi... method names (line 2) | get names(){return this.rhs instanceof Q._CodeOrName?this.rhs.names:{}} method constructor (line 2) | constructor(e,r,n){super(),this.lhs=e,this.rhs=r,this.sideEffects=n} method render (line 2) | render({_n:e}){return`${this.lhs} = ${this.rhs};`+e} method optimizeNames (line 2) | optimizeNames(e,r){if(!(this.lhs instanceof Q.Name&&!e[this.lhs.str]&&!t... method names (line 2) | get names(){let e=this.lhs instanceof Q.Name?{}:{...this.lhs.names};retu... method constructor (line 2) | constructor(e,r,n,o){super(e,n,o),this.op=r} method render (line 2) | render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e} method constructor (line 2) | constructor(e){super(),this.label=e,this.names={}} method render (line 2) | render({_n:e}){return`${this.label}:`+e} method constructor (line 2) | constructor(e){super(),this.label=e,this.names={}} method render (line 2) | render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e} method constructor (line 2) | constructor(e){super(),this.error=e} method render (line 2) | render({_n:e}){return`throw ${this.error};`+e} method names (line 2) | get names(){return this.error.names} method constructor (line 2) | constructor(e){super(),this.code=e} method render (line 2) | render({_n:e}){return`${this.code};`+e} method optimizeNodes (line 2) | optimizeNodes(){return`${this.code}`?this:void 0} method optimizeNames (line 2) | optimizeNames(e,r){return this.code=un(this.code,e,r),this} method names (line 2) | get names(){return this.code instanceof Q._CodeOrName?this.code.names:{}} method constructor (line 2) | constructor(e=[]){super(),this.nodes=e} method render (line 2) | render(e){return this.nodes.reduce((r,n)=>r+n.render(e),"")} method optimizeNodes (line 2) | optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let n=e[r].optim... method optimizeNames (line 2) | optimizeNames(e,r){let{nodes:n}=this,o=n.length;for(;o--;){let i=n[o];i.... method names (line 2) | get names(){return this.nodes.reduce((e,r)=>wr(e,r.names),{})} method render (line 2) | render(e){return"{"+e._n+super.render(e)+"}"+e._n} method constructor (line 2) | constructor(e,r){super(r),this.condition=e} method render (line 2) | render(e){let r=`if(${this.condition})`+super.render(e);return this.else... method optimizeNodes (line 2) | optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)ret... method optimizeNames (line 2) | optimizeNames(e,r){var n;if(this.else=(n=this.else)===null||n===void 0?v... method names (line 2) | get names(){let e=super.names;return Ja(e,this.condition),this.else&&wr(... method constructor (line 2) | constructor(e){super(),this.iteration=e} method render (line 2) | render(e){return`for(${this.iteration})`+super.render(e)} method optimizeNames (line 2) | optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=un(... method names (line 2) | get names(){return wr(super.names,this.iteration.names)} method constructor (line 2) | constructor(e,r,n,o){super(),this.varKind=e,this.name=r,this.from=n,this... method render (line 2) | render(e){let r=e.es5?pt.varKinds.var:this.varKind,{name:n,from:o,to:i}=... method names (line 2) | get names(){let e=Ja(super.names,this.from);return Ja(e,this.to)} method constructor (line 2) | constructor(e,r,n,o){super(),this.loop=e,this.varKind=r,this.name=n,this... method render (line 2) | render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.it... method optimizeNames (line 2) | optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=un(t... method names (line 2) | get names(){return wr(super.names,this.iterable.names)} method constructor (line 2) | constructor(e,r,n){super(),this.name=e,this.args=r,this.async=n} method render (line 2) | render(e){return`${this.async?"async ":""}function ${this.name}(${this.a... method render (line 2) | render(e){return"return "+super.render(e)} method render (line 2) | render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.... method optimizeNodes (line 2) | optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===nu... method optimizeNames (line 2) | optimizeNames(e,r){var n,o;return super.optimizeNames(e,r),(n=this.catch... method names (line 2) | get names(){let e=super.names;return this.catch&&wr(e,this.catch.names),... method constructor (line 2) | constructor(e){super(),this.error=e} method render (line 2) | render(e){return`catch(${this.error})`+super.render(e)} method render (line 2) | render(e){return"finally"+super.render(e)} method constructor (line 2) | constructor(e,r={}){this._values={},this._blockStarts=[],this._constants... method toString (line 3) | toString(){return this._root.render(this.opts)} method name (line 3) | name(e){return this._scope.name(e)} method scopeName (line 3) | scopeName(e){return this._extScope.name(e)} method scopeValue (line 3) | scopeValue(e,r){let n=this._extScope.value(e,r);return(this._values[n.pr... method getScopeValue (line 3) | getScopeValue(e,r){return this._extScope.getValue(e,r)} method scopeRefs (line 3) | scopeRefs(e){return this._extScope.scopeRefs(e,this._values)} method scopeCode (line 3) | scopeCode(){return this._extScope.scopeCode(this._values)} method _def (line 3) | _def(e,r,n,o){let i=this._scope.toName(r);return n!==void 0&&o&&(this._c... method const (line 3) | const(e,r,n){return this._def(pt.varKinds.const,e,r,n)} method let (line 3) | let(e,r,n){return this._def(pt.varKinds.let,e,r,n)} method var (line 3) | var(e,r,n){return this._def(pt.varKinds.var,e,r,n)} method assign (line 3) | assign(e,r,n){return this._leafNode(new Fa(e,r,n))} method add (line 3) | add(e,r){return this._leafNode(new Ad(e,H.operators.ADD,r))} method code (line 3) | code(e){return typeof e=="function"?e():e!==Q.nil&&this._leafNode(new Zd... method object (line 3) | object(...e){let r=["{"];for(let[n,o]of e)r.length>1&&r.push(","),r.push... method if (line 3) | if(e,r,n){if(this._blockNode(new kr(e)),r&&n)this.code(r).else().code(n)... method elseIf (line 3) | elseIf(e){return this._elseNode(new kr(e))} method else (line 3) | else(){return this._elseNode(new cn)} method endIf (line 3) | endIf(){return this._endBlockNode(kr,cn)} method _for (line 3) | _for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this} method for (line 3) | for(e,r){return this._for(new qd(e),r)} method forRange (line 3) | forRange(e,r,n,o,i=this.opts.es5?pt.varKinds.var:pt.varKinds.let){let a=... method forOf (line 3) | forOf(e,r,n,o=pt.varKinds.const){let i=this._scope.toName(e);if(this.opt... method forIn (line 3) | forIn(e,r,n,o=this.opts.es5?pt.varKinds.var:pt.varKinds.const){if(this.o... method endFor (line 3) | endFor(){return this._endBlockNode(Sr)} method label (line 3) | label(e){return this._leafNode(new Md(e))} method break (line 3) | break(e){return this._leafNode(new Cd(e))} method return (line 3) | return(e){let r=new Vo;if(this._blockNode(r),this.code(e),r.nodes.length... method try (line 3) | try(e,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and... method throw (line 3) | throw(e){return this._leafNode(new Ud(e))} method block (line 3) | block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.cod... method endBlock (line 3) | endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error(... method func (line 3) | func(e,r=Q.nil,n,o){return this._blockNode(new Fo(e,r,n)),o&&this.code(o... method endFunc (line 3) | endFunc(){return this._endBlockNode(Fo)} method optimize (line 3) | optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimiz... method _leafNode (line 3) | _leafNode(e){return this._currNode.nodes.push(e),this} method _blockNode (line 3) | _blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)} method _endBlockNode (line 3) | _endBlockNode(e,r){let n=this._currNode;if(n instanceof e||r&&n instance... method _elseNode (line 3) | _elseNode(e){let r=this._currNode;if(!(r instanceof kr))throw new Error(... method _root (line 3) | get _root(){return this._nodes[0]} method _currNode (line 3) | get _currNode(){let e=this._nodes;return e[e.length-1]} method _currNode (line 3) | set _currNode(e){let r=this._nodes;r[r.length-1]=e} function wr (line 3) | function wr(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t} function Ja (line 3) | function Ja(t,e){return e instanceof Q._CodeOrName?wr(t,e.names):t} function un (line 3) | function un(t,e,r){if(t instanceof Q.Name)return n(t);if(!o(t))return t;... function vw (line 3) | function vw(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)} function av (line 3) | function av(t){return typeof t=="boolean"||typeof t=="number"||t===null?... function yw (line 3) | function yw(...t){return t.reduce(_w)} function bw (line 3) | function bw(...t){return t.reduce($w)} function sv (line 3) | function sv(t){return(e,r)=>e===Q.nil?r:r===Q.nil?e:(0,Q._)`${Wd(e)} ${t... function Wd (line 3) | function Wd(t){return t instanceof Q.Name?t:(0,Q._)`(${t})`} function kw (line 3) | function kw(t){let e={};for(let r of t)e[r]=!0;return e} function Sw (line 3) | function Sw(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?... function lv (line 3) | function lv(t,e=t.schema){let{opts:r,self:n}=t;if(!r.strictSchema||typeo... function dv (line 3) | function dv(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])... function ww (line 3) | function ww(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="... function zw (line 3) | function zw({topSchemaRef:t,schemaPath:e},r,n,o){if(!o){if(typeof r=="nu... function Iw (line 3) | function Iw(t){return pv(decodeURIComponent(t))} function Ew (line 3) | function Ew(t){return encodeURIComponent(Hd(t))} function Hd (line 3) | function Hd(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").rep... function pv (line 3) | function pv(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")} function Tw (line 3) | function Tw(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)} function cv (line 3) | function cv({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){r... function fv (line 3) | function fv(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",... function Gd (line 3) | function Gd(t,e,r){Object.keys(r).forEach(n=>t.assign((0,le._)`${e}${(0,... function Pw (line 3) | function Pw(t,e){return t.scopeValue("func",{ref:e,code:uv[e.code]||(uv[... function Ow (line 3) | function Ow(t,e,r){if(t instanceof le.Name){let n=e===Kd.Num;return r?n?... function mv (line 3) | function mv(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r=... function Dw (line 3) | function Dw(t,e=je.keywordError,r,n){let{it:o}=t,{gen:i,compositeRule:a,... function Nw (line 3) | function Nw(t,e=je.keywordError,r){let{it:n}=t,{gen:o,compositeRule:i,al... function Rw (line 3) | function Rw(t,e){t.assign(Ue.default.errors,e),t.if((0,te._)`${Ue.defaul... function Aw (line 3) | function Aw({gen:t,keyword:e,schemaValue:r,data:n,errsCount:o,it:i}){if(... function hv (line 3) | function hv(t,e){let r=t.const("err",e);t.if((0,te._)`${Ue.default.vErro... function gv (line 3) | function gv(t,e){let{gen:r,validateName:n,schemaEnv:o}=t;o.$async?r.thro... function vv (line 3) | function vv(t,e,r){let{createErrors:n}=t.it;return n===!1?(0,te._)`{}`:M... function Mw (line 3) | function Mw(t,e,r={}){let{gen:n,it:o}=t,i=[Cw(o,r),Uw(t,r)];return Zw(t,... function Cw (line 3) | function Cw({errorPath:t},{instancePath:e}){let r=e?(0,te.str)`${t}${(0,... function Uw (line 3) | function Uw({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:... function Zw (line 3) | function Zw(t,{params:e,message:r},n){let{keyword:o,data:i,schemaValue:a... function Jw (line 3) | function Jw(t){let{gen:e,schema:r,validateName:n}=t;r===!1?_v(t,!1):type... function Ww (line 3) | function Ww(t,e){let{gen:r,schema:n}=t;n===!1?(r.var(e,!1),_v(t)):r.var(... function _v (line 3) | function _v(t,e){let{gen:r,data:n}=t,o={gen:r,keyword:"false schema",dat... function Gw (line 3) | function Gw(t){return typeof t=="string"&&Hw.has(t)} function Bw (line 3) | function Bw(){let t={number:{type:"number",rules:[]},string:{type:"strin... function Xw (line 3) | function Xw({schema:t,self:e},r){let n=e.RULES.types[r];return n&&n!==!0... function $v (line 3) | function $v(t,e){return e.rules.some(r=>bv(t,r))} function bv (line 3) | function bv(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.im... function t0 (line 3) | function t0(t){let e=kv(t.type);if(e.includes("null")){if(t.nullable===!... function kv (line 3) | function kv(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(Yw.isJSONTyp... function r0 (line 3) | function r0(t,e){let{gen:r,data:n,opts:o}=t,i=n0(e,o.coerceTypes),a=e.le... function n0 (line 3) | function n0(t,e){return e?t.filter(r=>Sv.has(r)||e==="array"&&r==="array... function o0 (line 3) | function o0(t,e,r){let{gen:n,data:o,opts:i}=t,a=n.let("dataType",(0,J._)... function i0 (line 6) | function i0({gen:t,parentData:e,parentDataProperty:r},n){t.if((0,J._)`${... function Qd (line 6) | function Qd(t,e,r,n=pn.Correct){let o=n===pn.Correct?J.operators.EQ:J.op... function ep (line 6) | function ep(t,e,r,n){if(t.length===1)return Qd(t[0],e,r,n);let o,i=(0,xv... function tp (line 6) | function tp(t){let e=s0(t);(0,e0.reportError)(e,a0)} function s0 (line 6) | function s0(t){let{gen:e,data:r,schema:n}=t,o=(0,xv.schemaRefOrVal)(t,n,... function u0 (line 6) | function u0(t,e){let{properties:r,items:n}=t.schema;if(e==="object"&&r)f... function wv (line 6) | function wv(t,e,r){let{gen:n,compositeRule:o,data:i,opts:a}=t;if(r===voi... function d0 (line 6) | function d0(t,e){let{gen:r,data:n,it:o}=t;r.if(op(r,n,e,o.opts.ownProper... function p0 (line 6) | function p0({gen:t,data:e,it:{opts:r}},n,o){return(0,he.or)(...n.map(i=>... function f0 (line 6) | function f0(t,e){t.setParams({missingProperty:e},!0),t.error()} function Iv (line 6) | function Iv(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnPr... function np (line 6) | function np(t,e,r){return(0,he._)`${Iv(t)}.call(${e}, ${r})`} function m0 (line 6) | function m0(t,e,r,n){let o=(0,he._)`${e}${(0,he.getProperty)(r)} !== und... function op (line 6) | function op(t,e,r,n){let o=(0,he._)`${e}${(0,he.getProperty)(r)} === und... function Ev (line 6) | function Ev(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]} function h0 (line 6) | function h0(t,e){return Ev(e).filter(r=>!(0,rp.alwaysValidSchema)(t,e[r]))} function g0 (line 6) | function g0({schemaCode:t,data:e,it:{gen:r,topSchemaRef:n,schemaPath:o,e... function _0 (line 6) | function _0({gen:t,it:{opts:e}},r){let n=e.unicodeRegExp?"u":"",{regExp:... function y0 (line 6) | function y0(t){let{gen:e,data:r,keyword:n,it:o}=t,i=e.name("valid");if(o... function $0 (line 6) | function $0(t){let{gen:e,schema:r,keyword:n,it:o}=t;if(!Array.isArray(r)... function k0 (line 6) | function k0(t,e){let{gen:r,keyword:n,schema:o,parentSchema:i,it:a}=t,s=e... function S0 (line 6) | function S0(t,e){var r;let{gen:n,keyword:o,schema:i,parentSchema:a,$data... function Tv (line 6) | function Tv(t){let{gen:e,data:r,it:n}=t;e.if(n.parentData,()=>e.assign(r... function w0 (line 6) | function w0(t,e){let{gen:r}=t;r.if((0,Ze._)`Array.isArray(${e})`,()=>{r.... function z0 (line 6) | function z0({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("asyn... function Pv (line 6) | function Pv(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed ... function I0 (line 6) | function I0(t,e,r=!1){return!e.length||e.some(n=>n==="array"?Array.isArr... function E0 (line 6) | function E0({schema:t,opts:e,self:r,errSchemaPath:n},o,i){if(Array.isArr... function T0 (line 6) | function T0(t,{keyword:e,schemaProp:r,schema:n,schemaPath:o,errSchemaPat... function P0 (line 6) | function P0(t,e,{dataProp:r,dataPropType:n,data:o,dataTypes:i,propertyNa... function O0 (line 6) | function O0(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:n,createEr... function Ga (line 6) | function Ga(t,e,r,n,o,i,a,s,c,u){if(n&&typeof n=="object"&&!Array.isArra... function j0 (line 6) | function j0(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")} function M0 (line 6) | function M0(t,e=!0){return typeof t=="boolean"?!0:e===!0?!ap(t):e?Mv(t)<... function ap (line 6) | function ap(t){for(let e in t){if(C0.has(e))return!0;let r=t[e];if(Array... function Mv (line 6) | function Mv(t){let e=0;for(let r in t){if(r==="$ref")return 1/0;if(e++,!... function Cv (line 6) | function Cv(t,e="",r){r!==!1&&(e=mn(e));let n=t.parse(e);return Uv(t,n)} function Uv (line 6) | function Uv(t,e){return t.serialize(e).split("#")[0]+"#"} function mn (line 6) | function mn(t){return t?t.replace(U0,""):""} function Z0 (line 6) | function Z0(t,e,r){return r=mn(r),t.resolve(e,r)} function q0 (line 6) | function q0(t,e){if(typeof t=="boolean")return{};let{schemaId:r,uriResol... function J0 (line 6) | function J0(t){if(Kv(t)&&(Hv(t),Wv(t))){H0(t);return}Jv(t,()=>(0,Vv.topB... function Jv (line 6) | function Jv({gen:t,validateName:e,schema:r,schemaEnv:n,opts:o},i){o.code... function W0 (line 6) | function W0(t){return(0,O._)`{${U.default.instancePath}="", ${U.default.... function K0 (line 6) | function K0(t,e){t.if(U.default.valCxt,()=>{t.var(U.default.instancePath... function H0 (line 6) | function H0(t){let{schema:e,opts:r,gen:n}=t;Jv(t,()=>{r.$comment&&e.$com... function G0 (line 6) | function G0(t){let{gen:e,validateName:r}=t;t.evaluated=e.const("evaluate... function Lv (line 6) | function Lv(t,e){let r=typeof t=="object"&&t[e.schemaId];return r&&(e.co... function B0 (line 6) | function B0(t,e){if(Kv(t)&&(Hv(t),Wv(t))){X0(t,e);return}(0,Vv.boolOrEmp... function Wv (line 6) | function Wv({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let r... function Kv (line 6) | function Kv(t){return typeof t.schema!="boolean"} function X0 (line 6) | function X0(t,e){let{schema:r,gen:n,opts:o}=t;o.$comment&&r.$comment&&Bv... function Hv (line 6) | function Hv(t){(0,qt.checkUnknownRules)(t),Y0(t)} function Gv (line 6) | function Gv(t,e){if(t.opts.jtd)return qv(t,[],!1,e);let r=(0,Zv.getSchem... function Y0 (line 6) | function Y0(t){let{schema:e,errSchemaPath:r,opts:n,self:o}=t;e.$ref&&n.i... function Q0 (line 6) | function Q0(t){let{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&... function ez (line 6) | function ez(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,V0.resolv... function tz (line 6) | function tz(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("... function Bv (line 6) | function Bv({gen:t,schemaEnv:e,schema:r,errSchemaPath:n,opts:o}){let i=r... function rz (line 6) | function rz(t){let{gen:e,schemaEnv:r,validateName:n,ValidationError:o,op... function nz (line 6) | function nz({gen:t,evaluated:e,props:r,items:n}){r instanceof O.Name&&t.... function qv (line 6) | function qv(t,e,r,n){let{gen:o,schema:i,data:a,allErrors:s,opts:c,self:u... function Fv (line 6) | function Fv(t,e){let{gen:r,schema:n,opts:{useDefaults:o}}=t;o&&(0,F0.ass... function oz (line 6) | function oz(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(iz(t,e),t.opts.... function iz (line 6) | function iz(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;retu... function az (line 6) | function az(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&up(t,"... function sz (line 6) | function sz(t,e){let r=t.self.RULES.all;for(let n in r){let o=r[n];if(ty... function cz (line 6) | function cz(t,e){return t.includes(e)||e==="number"&&t.includes("integer")} function Xv (line 6) | function Xv(t,e){return t.includes(e)||e==="integer"&&t.includes("number")} function uz (line 6) | function uz(t,e){let r=[];for(let n of t.dataTypes)Xv(e,n)?r.push(n):e.i... function up (line 6) | function up(t,e){let r=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${r}"... method constructor (line 6) | constructor(e,r,n){if((0,Xo.validateKeywordUsage)(e,r,n),this.gen=e.gen,... method result (line 6) | result(e,r,n){this.failResult((0,O.not)(e),r,n)} method failResult (line 6) | failResult(e,r,n){this.gen.if(e),n?n():this.error(),r?(this.gen.else(),r... method pass (line 6) | pass(e,r){this.failResult((0,O.not)(e),void 0,r)} method fail (line 6) | fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);retu... method fail$data (line 6) | fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;t... method error (line 6) | error(e,r,n){if(r){this.setParams(r),this._error(e,n),this.setParams({})... method _error (line 6) | _error(e,r){(e?Bo.reportExtraError:Bo.reportError)(this,this.def.error,r)} method $dataError (line 6) | $dataError(){(0,Bo.reportError)(this,this.def.$dataError||Bo.keyword$Dat... method reset (line 6) | reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to... method ok (line 6) | ok(e){this.allErrors||this.gen.if(e)} method setParams (line 6) | setParams(e,r){r?Object.assign(this.params,e):this.params=e} method block$data (line 6) | block$data(e,r,n=O.nil){this.gen.block(()=>{this.check$data(e,n),r()})} method check$data (line 6) | check$data(e=O.nil,r=O.nil){if(!this.$data)return;let{gen:n,schemaCode:o... method invalid$data (line 6) | invalid$data(){let{gen:e,schemaCode:r,schemaType:n,def:o,it:i}=this;retu... method subschema (line 6) | subschema(e,r){let n=(0,sp.getSubschema)(this.it,e);(0,sp.extendSubschem... method mergeEvaluated (line 6) | mergeEvaluated(e,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==... method mergeValidEvaluated (line 6) | mergeValidEvaluated(e,r){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.... function Yv (line 6) | function Yv(t,e,r,n){let o=new Xa(t,r,e);"code"in r?r.code(o,n):o.$data&... function Qv (line 6) | function Qv(t,{dataLevel:e,dataNames:r,dataPathArr:n}){let o,i;if(t===""... method constructor (line 6) | constructor(e){super("validation failed"),this.errors=e,this.ajv=this.va... method constructor (line 6) | constructor(e,r,n,o){super(o||`can't resolve reference ${n} from id ${r}... method constructor (line 6) | constructor(e){var r;this.refs={},this.dynamicAnchors={};let n;typeof e.... function gp (line 6) | function gp(t){let e=t_.call(this,t);if(e)return e;let r=(0,mt.getFullPa... function mz (line 6) | function mz(t,e,r){var n;r=(0,mt.resolveUrl)(this.opts.uriResolver,e,r);... function hz (line 6) | function hz(t){return(0,mt.inlineRef)(t.schema,this.opts.inlineRefs)?t.s... function t_ (line 6) | function t_(t){for(let e of this._compilations)if(gz(e,t))return e} function gz (line 6) | function gz(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId==... function vz (line 6) | function vz(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return... function Qa (line 6) | function Qa(t,e){let r=this.opts.uriResolver.parse(e),n=(0,mt._getFullPa... function hp (line 6) | function hp(t,{baseId:e,schema:r,root:n}){var o;if(((o=t.fragment)===nul... function vp (line 6) | function vp(t){let e="",r=0,n=0;for(n=0;n{if(r.keyword... function kp (line 6) | function kp(t,e,r){var n;let o=e?.post;if(r&&o)throw new Error('keyword ... function hI (line 6) | function hI(t,e,r){let n=t.rules.findIndex(o=>o.keyword===r);n>=0?t.rule... function gI (line 6) | function gI(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data... function k_ (line 6) | function k_(t){return{anyOf:[t,vI]}} method code (line 6) | code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schem... method code (line 6) | code(t){let{gen:e,schema:r,it:n}=t,{baseId:o,schemaEnv:i,validateName:a,... function E_ (line 6) | function E_(t,e){let{gen:r}=t;return e.validate?r.scopeValue("validate",... function ss (line 6) | function ss(t,e,r,n){let{gen:o,it:i}=t,{allErrors:a,schemaEnv:s,opts:c}=... method code (line 6) | code(t){let{keyword:e,data:r,schemaCode:n}=t;t.fail$data((0,cs._)`${r} $... method code (line 6) | code(t){let{gen:e,data:r,schemaCode:n,it:o}=t,i=o.opts.multipleOfPrecisi... function D_ (line 6) | function D_(t){let e=t.length,r=0,n=0,o;for(;nthis.a... method _addDefaultMetaSchema (line 9) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta... method defaultMeta (line 9) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.ge... function St (line 9) | function St(t,e){return{validate:t,compare:e}} function NT (line 9) | function NT(t){return t%4===0&&(t%100!==0||t%400===0)} function Dy (line 9) | function Dy(t){let e=RT.exec(t);if(!e)return!1;let r=+e[1],n=+e[2],o=+e[... function yf (line 9) | function yf(t,e){if(t&&e)return t>e?1:t=LT} function VT (line 9) | function VT(t){return Number.isInteger(t)} function jy (line 9) | function jy(){return!0} function WT (line 9) | function WT(t){if(JT.test(t))return!1;try{return new RegExp(t),!0}catch{... method code (line 9) | code(t){let{gen:e,data:r,schemaCode:n,keyword:o,it:i}=t,{opts:a,self:s}=... function Zy (line 9) | function Zy(t,e,r,n){var o,i;(o=(i=t.opts.code).formats)!==null&&o!==voi... method constructor (line 9) | constructor(){this.useColor=process.stdout.isTTY??!1} method ensureLogFileInitialized (line 9) | ensureLogFileInitialized(){if(!this.logFileInitialized){this.logFileInit... method getLevel (line 9) | getLevel(){if(this.level===null)try{let e=(0,En.join)(Mf,"settings.json"... method correlationId (line 9) | correlationId(e,r){return`obs-${e}-${r}`} method sessionId (line 9) | sessionId(e){return`session-${e}`} method formatData (line 9) | formatData(e){if(e==null)return"";if(typeof e=="string")return e;if(type... method formatTool (line 10) | formatTool(e,r){if(!r)return e;let n=r;if(typeof r=="string")try{n=JSON.... method formatTimestamp (line 10) | formatTimestamp(e){let r=e.getFullYear(),n=String(e.getMonth()+1).padSta... method log (line 10) | log(e,r,n,o,i){if(etypeof a=="string"?`'${a}'`:a).joi... method errors (line 17) | get errors(){return this.issues} method constructor (line 17) | constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...... method format (line 17) | format(e){let r=e||function(i){return i.message},n={_errors:[]},o=i=>{fo... method assert (line 17) | static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: $... method toString (line 17) | toString(){return this.message} method message (line 17) | get message(){return JSON.stringify(this.issues,X.jsonStringifyReplacer,2)} method isEmpty (line 17) | get isEmpty(){return this.issues.length===0} method flatten (line 17) | flatten(e=r=>r.message){let r=Object.create(null),n=[];for(let o of this... method formErrors (line 17) | get formErrors(){return this.flatten()} function Tn (line 17) | function Tn(){return k$} function x (line 17) | function x(t,e){let r=Tn(),n=_i({issueData:e,data:t.data,path:t.path,err... method constructor (line 17) | constructor(){this.value="valid"} method dirty (line 17) | dirty(){this.value==="valid"&&(this.value="dirty")} method abort (line 17) | abort(){this.value!=="aborted"&&(this.value="aborted")} method mergeArray (line 17) | static mergeArray(e,r){let n=[];for(let o of r){if(o.status==="aborted")... method mergeObjectAsync (line 17) | static async mergeObjectAsync(e,r){let n=[];for(let o of r){let i=await ... method mergeObjectSync (line 17) | static mergeObjectSync(e,r){let n={};for(let o of r){let{key:i,value:a}=... method constructor (line 17) | constructor(e,r,n,o){this._cachedPath=[],this.parent=e,this.data=r,this.... method path (line 17) | get path(){return this._cachedPath.length||(Array.isArray(this._key)?thi... method error (line 17) | get error(){if(this._error)return this._error;let r=new Ke(t.common.issu... function L (line 17) | function L(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,require... method description (line 17) | get description(){return this._def.description} method _getType (line 17) | _getType(e){return Tt(e.data)} method _getOrReturnCtx (line 17) | _getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parse... method _processInputParams (line 17) | _processInputParams(e){return{status:new Ee,ctx:{common:e.parent.common,... method _parseSync (line 17) | _parseSync(e){let r=this._parse(e);if(Pn(r))throw new Error("Synchronous... method _parseAsync (line 17) | _parseAsync(e){let r=this._parse(e);return Promise.resolve(r)} method parse (line 17) | parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.... method safeParse (line 17) | safeParse(e,r){let n={common:{issues:[],async:r?.async??!1,contextualErr... method "~validate" (line 17) | "~validate"(e){let r={common:{issues:[],async:!!this["~standard"].async}... method parseAsync (line 17) | async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)... method safeParseAsync (line 17) | async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r?... method refine (line 17) | refine(e,r){let n=o=>typeof r=="string"||typeof r>"u"?{message:r}:typeof... method refinement (line 17) | refinement(e,r){return this._refinement((n,o)=>e(n)?!0:(o.addIssue(typeo... method _refinement (line 17) | _refinement(e){return new lt({schema:this,typeName:D.ZodEffects,effect:{... method superRefine (line 17) | superRefine(e){return this._refinement(e)} method constructor (line 17) | constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.... method optional (line 17) | optional(){return ut.create(this,this._def)} method nullable (line 17) | nullable(){return jt.create(this,this._def)} method nullish (line 17) | nullish(){return this.nullable().optional()} method array (line 17) | array(){return Bt.create(this)} method promise (line 17) | promise(){return mr.create(this,this._def)} method or (line 17) | or(e){return Cr.create([this,e],this._def)} method and (line 17) | and(e){return Ur.create(this,e,this._def)} method transform (line 17) | transform(e){return new lt({...L(this._def),schema:this,typeName:D.ZodEf... method default (line 17) | default(e){let r=typeof e=="function"?e:()=>e;return new Vr({...L(this._... method brand (line 17) | brand(){return new yi({typeName:D.ZodBranded,type:this,...L(this._def)})} method catch (line 17) | catch(e){let r=typeof e=="function"?e:()=>e;return new Jr({...L(this._de... method describe (line 17) | describe(e){let r=this.constructor;return new r({...this._def,descriptio... method pipe (line 17) | pipe(e){return $i.create(this,e)} method readonly (line 17) | readonly(){return Wr.create(this)} method isOptional (line 17) | isOptional(){return this.safeParse(void 0).success} method isNullable (line 17) | isNullable(){return this.safeParse(null).success} function qf (line 17) | function qf(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}... function Z$ (line 17) | function Z$(t){return new RegExp(`^${qf(t)}$`)} function L$ (line 17) | function L$(t){let e=`${Lf}T${qf(t)}`,r=[];return r.push(t.local?"Z?":"Z... function q$ (line 17) | function q$(t,e){return!!((e==="v4"||!e)&&D$.test(t)||(e==="v6"||!e)&&R$... function F$ (line 17) | function F$(t,e){if(!T$.test(t))return!1;try{let[r]=t.split(".");if(!r)r... function V$ (line 17) | function V$(t,e){return!!((e==="v4"||!e)&&N$.test(t)||(e==="v6"||!e)&&A$... method _parse (line 17) | _parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!... method _regex (line 17) | _regex(e,r,n){return this.refinement(o=>e.test(o),{validation:r,code:y.i... method _addCheck (line 17) | _addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})} method email (line 17) | email(e){return this._addCheck({kind:"email",...T.errToObj(e)})} method url (line 17) | url(e){return this._addCheck({kind:"url",...T.errToObj(e)})} method emoji (line 17) | emoji(e){return this._addCheck({kind:"emoji",...T.errToObj(e)})} method uuid (line 17) | uuid(e){return this._addCheck({kind:"uuid",...T.errToObj(e)})} method nanoid (line 17) | nanoid(e){return this._addCheck({kind:"nanoid",...T.errToObj(e)})} method cuid (line 17) | cuid(e){return this._addCheck({kind:"cuid",...T.errToObj(e)})} method cuid2 (line 17) | cuid2(e){return this._addCheck({kind:"cuid2",...T.errToObj(e)})} method ulid (line 17) | ulid(e){return this._addCheck({kind:"ulid",...T.errToObj(e)})} method base64 (line 17) | base64(e){return this._addCheck({kind:"base64",...T.errToObj(e)})} method base64url (line 17) | base64url(e){return this._addCheck({kind:"base64url",...T.errToObj(e)})} method jwt (line 17) | jwt(e){return this._addCheck({kind:"jwt",...T.errToObj(e)})} method ip (line 17) | ip(e){return this._addCheck({kind:"ip",...T.errToObj(e)})} method cidr (line 17) | cidr(e){return this._addCheck({kind:"cidr",...T.errToObj(e)})} method datetime (line 17) | datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",pr... method date (line 17) | date(e){return this._addCheck({kind:"date",message:e})} method time (line 17) | time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:... method duration (line 17) | duration(e){return this._addCheck({kind:"duration",...T.errToObj(e)})} method regex (line 17) | regex(e,r){return this._addCheck({kind:"regex",regex:e,...T.errToObj(r)})} method includes (line 17) | includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?... method startsWith (line 17) | startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...T.er... method endsWith (line 17) | endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...T.errToO... method min (line 17) | min(e,r){return this._addCheck({kind:"min",value:e,...T.errToObj(r)})} method max (line 17) | max(e,r){return this._addCheck({kind:"max",value:e,...T.errToObj(r)})} method length (line 17) | length(e,r){return this._addCheck({kind:"length",value:e,...T.errToObj(r... method nonempty (line 17) | nonempty(e){return this.min(1,T.errToObj(e))} method trim (line 17) | trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"tri... method toLowerCase (line 17) | toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{ki... method toUpperCase (line 17) | toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{ki... method isDatetime (line 17) | get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")} method isDate (line 17) | get isDate(){return!!this._def.checks.find(e=>e.kind==="date")} method isTime (line 17) | get isTime(){return!!this._def.checks.find(e=>e.kind==="time")} method isDuration (line 17) | get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")} method isEmail (line 17) | get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")} method isURL (line 17) | get isURL(){return!!this._def.checks.find(e=>e.kind==="url")} method isEmoji (line 17) | get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")} method isUUID (line 17) | get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")} method isNANOID (line 17) | get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")} method isCUID (line 17) | get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")} method isCUID2 (line 17) | get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")} method isULID (line 17) | get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")} method isIP (line 17) | get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")} method isCIDR (line 17) | get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")} method isBase64 (line 17) | get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")} method isBase64url (line 17) | get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")} method minLength (line 17) | get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&... method maxLength (line 17) | get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&... function J$ (line 17) | function J$(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toSt... method constructor (line 17) | constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,th... method _parse (line 17) | _parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!... method gte (line 17) | gte(e,r){return this.setLimit("min",e,!0,T.toString(r))} method gt (line 17) | gt(e,r){return this.setLimit("min",e,!1,T.toString(r))} method lte (line 17) | lte(e,r){return this.setLimit("max",e,!0,T.toString(r))} method lt (line 17) | lt(e,r){return this.setLimit("max",e,!1,T.toString(r))} method setLimit (line 17) | setLimit(e,r,n,o){return new t({...this._def,checks:[...this._def.checks... method _addCheck (line 17) | _addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})} method int (line 17) | int(e){return this._addCheck({kind:"int",message:T.toString(e)})} method positive (line 17) | positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,messa... method negative (line 17) | negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,messa... method nonpositive (line 17) | nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,me... method nonnegative (line 17) | nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,me... method multipleOf (line 17) | multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message... method finite (line 17) | finite(e){return this._addCheck({kind:"finite",message:T.toString(e)})} method safe (line 17) | safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_... method minValue (line 17) | get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&... method maxValue (line 17) | get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&... method isInt (line 17) | get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="m... method isFinite (line 17) | get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kin... method constructor (line 17) | constructor(){super(...arguments),this.min=this.gte,this.max=this.lte} method _parse (line 17) | _parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return thi... method _getInvalidInput (line 17) | _getInvalidInput(e){let r=this._getOrReturnCtx(e);return x(r,{code:y.inv... method gte (line 17) | gte(e,r){return this.setLimit("min",e,!0,T.toString(r))} method gt (line 17) | gt(e,r){return this.setLimit("min",e,!1,T.toString(r))} method lte (line 17) | lte(e,r){return this.setLimit("max",e,!0,T.toString(r))} method lt (line 17) | lt(e,r){return this.setLimit("max",e,!1,T.toString(r))} method setLimit (line 17) | setLimit(e,r,n,o){return new t({...this._def,checks:[...this._def.checks... method _addCheck (line 17) | _addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})} method positive (line 17) | positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:... method negative (line 17) | negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:... method nonpositive (line 17) | nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusi... method nonnegative (line 17) | nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusi... method multipleOf (line 17) | multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message... method minValue (line 17) | get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&... method maxValue (line 17) | get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&... method _parse (line 17) | _parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==w.bo... method _parse (line 17) | _parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e... method _addCheck (line 17) | _addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})} method min (line 17) | min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:T.t... method max (line 17) | max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:T.t... method minDate (line 17) | get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(... method maxDate (line 17) | get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(... method _parse (line 17) | _parse(e){if(this._getType(e)!==w.symbol){let n=this._getOrReturnCtx(e);... method _parse (line 17) | _parse(e){if(this._getType(e)!==w.undefined){let n=this._getOrReturnCtx(... method _parse (line 17) | _parse(e){if(this._getType(e)!==w.null){let n=this._getOrReturnCtx(e);re... method constructor (line 17) | constructor(){super(...arguments),this._any=!0} method _parse (line 17) | _parse(e){return Ne(e.data)} method constructor (line 17) | constructor(){super(...arguments),this._unknown=!0} method _parse (line 17) | _parse(e){return Ne(e.data)} method _parse (line 17) | _parse(e){let r=this._getOrReturnCtx(e);return x(r,{code:y.invalid_type,... method _parse (line 17) | _parse(e){if(this._getType(e)!==w.undefined){let n=this._getOrReturnCtx(... method _parse (line 17) | _parse(e){let{ctx:r,status:n}=this._processInputParams(e),o=this._def;if... method element (line 17) | get element(){return this._def.type} method min (line 17) | min(e,r){return new t({...this._def,minLength:{value:e,message:T.toStrin... method max (line 17) | max(e,r){return new t({...this._def,maxLength:{value:e,message:T.toStrin... method length (line 17) | length(e,r){return new t({...this._def,exactLength:{value:e,message:T.to... method nonempty (line 17) | nonempty(e){return this.min(1,e)} function Nr (line 17) | function Nr(t){if(t instanceof He){let e={};for(let r in t.shape){let n=... method constructor (line 17) | constructor(){super(...arguments),this._cached=null,this.nonstrict=this.... method _getCached (line 17) | _getCached(){if(this._cached!==null)return this._cached;let e=this._def.... method _parse (line 17) | _parse(e){if(this._getType(e)!==w.object){let u=this._getOrReturnCtx(e);... method shape (line 17) | get shape(){return this._def.shape()} method strict (line 17) | strict(e){return T.errToObj,new t({...this._def,unknownKeys:"strict",...... method strip (line 17) | strip(){return new t({...this._def,unknownKeys:"strip"})} method passthrough (line 17) | passthrough(){return new t({...this._def,unknownKeys:"passthrough"})} method extend (line 17) | extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),..... method merge (line 17) | merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.ca... method setKey (line 17) | setKey(e,r){return this.augment({[e]:r})} method catchall (line 17) | catchall(e){return new t({...this._def,catchall:e})} method pick (line 17) | pick(e){let r={};for(let n of X.objectKeys(e))e[n]&&this.shape[n]&&(r[n]... method omit (line 17) | omit(e){let r={};for(let n of X.objectKeys(this.shape))e[n]||(r[n]=this.... method deepPartial (line 17) | deepPartial(){return Nr(this)} method partial (line 17) | partial(e){let r={};for(let n of X.objectKeys(this.shape)){let o=this.sh... method required (line 17) | required(e){let r={};for(let n of X.objectKeys(this.shape))if(e&&!e[n])r... method keyof (line 17) | keyof(){return Ff(X.objectKeys(this.shape))} method _parse (line 17) | _parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;fun... method options (line 17) | get options(){return this._def.options} method _parse (line 17) | _parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==w.obj... method discriminator (line 17) | get discriminator(){return this._def.discriminator} method options (line 17) | get options(){return this._def.options} method optionsMap (line 17) | get optionsMap(){return this._def.optionsMap} method create (line 17) | static create(e,r,n){let o=new Map;for(let i of r){let a=Pt(i.shape[e]);... function qs (line 17) | function qs(t,e){let r=Tt(t),n=Tt(e);if(t===e)return{valid:!0,data:t};if... method _parse (line 17) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e),o=(i,a)=>{if(C... method _parse (line 17) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedTyp... method items (line 17) | get items(){return this._def.items} method rest (line 17) | rest(e){return new t({...this._def,rest:e})} method keySchema (line 17) | get keySchema(){return this._def.keyType} method valueSchema (line 17) | get valueSchema(){return this._def.valueType} method _parse (line 17) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedTyp... method element (line 17) | get element(){return this._def.valueType} method create (line 17) | static create(e,r,n){return r instanceof K?new t({keyType:e,valueType:r,... method keySchema (line 17) | get keySchema(){return this._def.keyType} method valueSchema (line 17) | get valueSchema(){return this._def.valueType} method _parse (line 17) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedTyp... method _parse (line 17) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedTyp... method min (line 17) | min(e,r){return new t({...this._def,minSize:{value:e,message:T.toString(... method max (line 17) | max(e,r){return new t({...this._def,maxSize:{value:e,message:T.toString(... method size (line 17) | size(e,r){return this.min(e,r).max(e,r)} method nonempty (line 17) | nonempty(e){return this.min(1,e)} method constructor (line 17) | constructor(){super(...arguments),this.validate=this.implement} method _parse (line 17) | _parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==w.fun... method parameters (line 17) | parameters(){return this._def.args} method returnType (line 17) | returnType(){return this._def.returns} method args (line 17) | args(...e){return new t({...this._def,args:Ot.create(e).rest(Gt.create()... method returns (line 17) | returns(e){return new t({...this._def,returns:e})} method implement (line 17) | implement(e){return this.parse(e)} method strictImplement (line 17) | strictImplement(e){return this.parse(e)} method create (line 17) | static create(e,r,n){return new t({args:e||Ot.create([]).rest(Gt.create(... method schema (line 17) | get schema(){return this._def.getter()} method _parse (line 17) | _parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter... method _parse (line 17) | _parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);ret... method value (line 17) | get value(){return this._def.value} function Ff (line 17) | function Ff(t,e){return new qr({values:t,typeName:D.ZodEnum,...L(e)})} method _parse (line 17) | _parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=th... method options (line 17) | get options(){return this._def.values} method enum (line 17) | get enum(){let e={};for(let r of this._def.values)e[r]=r;return e} method Values (line 17) | get Values(){let e={};for(let r of this._def.values)e[r]=r;return e} method Enum (line 17) | get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e} method extract (line 17) | extract(e,r=this._def){return t.create(e,{...this._def,...r})} method exclude (line 17) | exclude(e,r=this._def){return t.create(this.options.filter(n=>!e.include... method _parse (line 17) | _parse(e){let r=X.getValidEnumValues(this._def.values),n=this._getOrRetu... method enum (line 17) | get enum(){return this._def.values} method unwrap (line 17) | unwrap(){return this._def.type} method _parse (line 17) | _parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==w.pro... method innerType (line 17) | innerType(){return this._def.schema} method sourceType (line 17) | sourceType(){return this._def.schema._def.typeName===D.ZodEffects?this._... method _parse (line 17) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e),o=this._def.ef... method _parse (line 17) | _parse(e){return this._getType(e)===w.undefined?Ne(void 0):this._def.inn... method unwrap (line 17) | unwrap(){return this._def.innerType} method _parse (line 17) | _parse(e){return this._getType(e)===w.null?Ne(null):this._def.innerType.... method unwrap (line 17) | unwrap(){return this._def.innerType} method _parse (line 17) | _parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parse... method removeDefault (line 17) | removeDefault(){return this._def.innerType} method _parse (line 17) | _parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.co... method removeCatch (line 17) | removeCatch(){return this._def.innerType} method _parse (line 17) | _parse(e){if(this._getType(e)!==w.nan){let n=this._getOrReturnCtx(e);ret... method _parse (line 17) | _parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._d... method unwrap (line 17) | unwrap(){return this._def.type} method _parse (line 17) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.as... method create (line 17) | static create(e,r){return new t({in:e,out:r,typeName:D.ZodPipeline})} method _parse (line 17) | _parse(e){let r=this._def.innerType._parse(e),n=o=>(fr(o)&&(o.value=Obje... method unwrap (line 17) | unwrap(){return this._def.innerType} function m (line 17) | function m(t,e,r){function n(s,c){if(s._zod||Object.defineProperty(s,"_z... method constructor (line 17) | constructor(){super("Encountered Promise during synchronous parse. Use .... method constructor (line 17) | constructor(e){super(`Encountered unidirectional transform during encode... function be (line 17) | function be(t){return t&&Object.assign(bi,t),bi} function G$ (line 17) | function G$(t){return t} function B$ (line 17) | function B$(t){return t} function X$ (line 17) | function X$(t){} function Y$ (line 17) | function Y$(t){throw new Error("Unexpected value in exhaustive check")} function Q$ (line 17) | function Q$(t){} function qn (line 17) | function qn(t){let e=Object.values(t).filter(n=>typeof n=="number");retu... function N (line 17) | function N(t,e="|"){return t.map(r=>R(r)).join(e)} function Kr (line 17) | function Kr(t,e){return typeof e=="bigint"?e.toString():e} function Hr (line 17) | function Hr(t){return{get value(){{let r=t();return Object.definePropert... function Xt (line 17) | function Xt(t){return t==null} function Fn (line 17) | function Fn(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:... function Ks (line 17) | function Ks(t,e){let r=(t.toString().split(".")[1]||"").length,n=e.toStr... function q (line 17) | function q(t,e,r){let n;Object.defineProperty(t,e,{get(){if(n!==Jf)retur... function eb (line 17) | function eb(t){return Object.create(Object.getPrototypeOf(t),Object.getO... function Yt (line 17) | function Yt(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumer... function Dt (line 17) | function Dt(...t){let e={};for(let r of t){let n=Object.getOwnPropertyDe... function tb (line 17) | function tb(t){return Dt(t._zod.def)} function rb (line 17) | function rb(t,e){return e?e.reduce((r,n)=>r?.[n],t):t} function nb (line 17) | function nb(t){let e=Object.keys(t),r=e.map(n=>t[n]);return Promise.all(... function ob (line 17) | function ob(t=10){let e="abcdefghijklmnopqrstuvwxyz",r="";for(let n=0;n<... function xi (line 17) | function xi(t){return JSON.stringify(t)} function Hs (line 17) | function Hs(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").rep... function gr (line 17) | function gr(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)} function Qt (line 17) | function Qt(t){if(gr(t)===!1)return!1;let e=t.constructor;if(e===void 0|... function Bs (line 17) | function Bs(t){return Qt(t)?{...t}:Array.isArray(t)?[...t]:t} function ib (line 17) | function ib(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.ca... function tt (line 17) | function tt(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")} function Re (line 17) | function Re(t,e,r){let n=new t._zod.constr(e??t._zod.def);return(!e||r?.... function k (line 17) | function k(t){let e=t;if(!e)return{};if(typeof e=="string")return{error:... function sb (line 17) | function sb(t){let e;return new Proxy({},{get(r,n,o){return e??(e=t()),R... function R (line 17) | function R(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="stri... function Ys (line 17) | function Ys(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="option... function Wf (line 17) | function Wf(t,e){let r=t._zod.def,n=r.checks;if(n&&n.length>0)throw new ... function Kf (line 17) | function Kf(t,e){let r=t._zod.def,n=r.checks;if(n&&n.length>0)throw new ... function Hf (line 17) | function Hf(t,e){if(!Qt(e))throw new Error("Invalid input to extend: exp... function Gf (line 17) | function Gf(t,e){if(!Qt(e))throw new Error("Invalid input to safeExtend:... function cb (line 17) | function cb(t,e){let r=Dt(t._zod.def,{get shape(){let n={...t._zod.def.s... function Bf (line 17) | function Bf(t,e,r){let o=e._zod.def.checks;if(o&&o.length>0)throw new Er... function Xf (line 17) | function Xf(t,e,r){let n=Dt(e._zod.def,{get shape(){let o=e._zod.def.sha... function er (line 17) | function er(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r{var n;return(n=r).path??(n.path=[]),r.... function Ln (line 17) | function Ln(t){return typeof t=="string"?t:t?.message} function qe (line 17) | function qe(t,e,r){let n={...t,path:t.path??[]};if(!t.message){let o=Ln(... function Jn (line 17) | function Jn(t){return t instanceof Set?"set":t instanceof Map?"map":t in... function Wn (line 17) | function Wn(t){return Array.isArray(t)?"array":typeof t=="string"?"strin... function C (line 17) | function C(t){let e=typeof t;switch(e){case"number":return Number.isNaN(... function Gr (line 17) | function Gr(...t){let[e,r,n]=t;return typeof e=="string"?{message:e,code... function ub (line 17) | function ub(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Num... function Yf (line 17) | function Yf(t){let e=atob(t),r=new Uint8Array(e.length);for(let n=0;ne.toString(16).padStart(2,"0"... method constructor (line 17) | constructor(...e){} function wi (line 17) | function wi(t,e=r=>r.message){let r={},n=[];for(let o of t.issues)o.path... function zi (line 17) | function zi(t,e=r=>r.message){let r={_errors:[]},n=o=>{for(let i of o.is... function lc (line 17) | function lc(){return new RegExp(kb,"u")} function dm (line 17) | function dm(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.preci... function yc (line 17) | function yc(t){return new RegExp(`^${dm(t)}$`)} function $c (line 17) | function $c(t){let e=dm({precision:t.precision}),r=["Z"];t.local&&r.push... function to (line 17) | function to(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)} function ro (line 17) | function ro(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)} function pm (line 17) | function pm(t,e,r){t.issues.length&&e.issues.push(...Ge(r,t.issues))} method constructor (line 17) | constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)} method indented (line 17) | indented(e){this.indent+=1,e(this),this.indent-=1} method write (line 17) | write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{exe... method compile (line 18) | compile(){let e=Function,r=this?.args,o=[...(this?.content??[""]).map(i=... function Jm (line 19) | function Jm(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return ... function qb (line 19) | function qb(t){if(!Ii.test(t))return!1;let e=t.replace(/[-_]/g,n=>n==="-... function Fb (line 19) | function Fb(t,e=null){try{let r=t.split(".");if(r.length!==3)return!1;le... function Nm (line 19) | function Nm(t,e,r){t.issues.length&&e.issues.push(...Ge(r,t.issues)),e.v... function Ni (line 19) | function Ni(t,e,r,n,o){if(t.issues.length){if(o&&!(r in n))return;e.issu... function Wm (line 19) | function Wm(t){let e=Object.keys(t.shape);for(let n of e)if(!t.shape?.[n... function Km (line 19) | function Km(t,e,r,n,o,i){let a=[],s=o.keySet,c=o.catchall._zod,u=c.def.t... function Rm (line 53) | function Rm(t,e,r,n){for(let i of t)if(i.issues.length===0)return e.valu... function Am (line 53) | function Am(t,e,r,n){let o=t.filter(i=>i.issues.length===0);return o.len... function Oc (line 53) | function Oc(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&... function Mm (line 53) | function Mm(t,e,r){let n=new Map,o;for(let s of e.issues)if(s.code==="un... function Pi (line 53) | function Pi(t,e,r){t.issues.length&&e.issues.push(...Ge(r,t.issues)),e.v... function Cm (line 53) | function Cm(t,e,r,n,o,i,a){t.issues.length&&(Vn.has(typeof n)?r.issues.p... function Um (line 53) | function Um(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add... function Zm (line 53) | function Zm(t,e){return t.issues.length&&e===void 0?{issues:[],value:voi... function Lm (line 53) | function Lm(t,e){return t.value===void 0&&(t.value=e.defaultValue),t} function qm (line 53) | function qm(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push... function Oi (line 53) | function Oi(t,e,r){return t.issues.length?(t.aborted=!0,t):e._zod.run({v... function ji (line 53) | function ji(t,e,r){if(t.issues.length)return t.aborted=!0,t;if((r.direct... function Di (line 53) | function Di(t,e,r,n){return t.issues.length?(t.aborted=!0,t):r._zod.run(... function Fm (line 53) | function Fm(t){return t.value=Object.freeze(t.value),t} function Vm (line 53) | function Vm(t,e,r,n){if(!t){let o={code:"custom",input:r,inst:n,path:[..... function e (line 53) | function e(o){return t[o]??null} function Uu (line 53) | function Uu(){return{localeError:Jb()}} method constructor (line 53) | constructor(){this._map=new WeakMap,this._idmap=new Map} method add (line 53) | add(e,...r){let n=r[0];return this._map.set(e,n),n&&typeof n=="object"&&... method clear (line 53) | clear(){return this._map=new WeakMap,this._idmap=new Map,this} method remove (line 53) | remove(e){let r=this._map.get(e);return r&&typeof r=="object"&&"id"in r&... method get (line 53) | get(e){let r=e._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;... method has (line 53) | has(e){return this._map.has(e)} function qu (line 53) | function qu(){return new Lu} function Fu (line 53) | function Fu(t,e){return new t({type:"string",...k(e)})} function Ui (line 53) | function Ui(t,e){return new t({type:"string",format:"email",check:"strin... function so (line 53) | function so(t,e){return new t({type:"string",format:"guid",check:"string... function Zi (line 53) | function Zi(t,e){return new t({type:"string",format:"uuid",check:"string... function Li (line 53) | function Li(t,e){return new t({type:"string",format:"uuid",check:"string... function qi (line 53) | function qi(t,e){return new t({type:"string",format:"uuid",check:"string... function Fi (line 53) | function Fi(t,e){return new t({type:"string",format:"uuid",check:"string... function co (line 53) | function co(t,e){return new t({type:"string",format:"url",check:"string_... function Vi (line 53) | function Vi(t,e){return new t({type:"string",format:"emoji",check:"strin... function Ji (line 53) | function Ji(t,e){return new t({type:"string",format:"nanoid",check:"stri... function Wi (line 53) | function Wi(t,e){return new t({type:"string",format:"cuid",check:"string... function Ki (line 53) | function Ki(t,e){return new t({type:"string",format:"cuid2",check:"strin... function Hi (line 53) | function Hi(t,e){return new t({type:"string",format:"ulid",check:"string... function Gi (line 53) | function Gi(t,e){return new t({type:"string",format:"xid",check:"string_... function Bi (line 53) | function Bi(t,e){return new t({type:"string",format:"ksuid",check:"strin... function Xi (line 53) | function Xi(t,e){return new t({type:"string",format:"ipv4",check:"string... function Yi (line 53) | function Yi(t,e){return new t({type:"string",format:"ipv6",check:"string... function Vu (line 53) | function Vu(t,e){return new t({type:"string",format:"mac",check:"string_... function Qi (line 53) | function Qi(t,e){return new t({type:"string",format:"cidrv4",check:"stri... function ea (line 53) | function ea(t,e){return new t({type:"string",format:"cidrv6",check:"stri... function ta (line 53) | function ta(t,e){return new t({type:"string",format:"base64",check:"stri... function ra (line 53) | function ra(t,e){return new t({type:"string",format:"base64url",check:"s... function na (line 53) | function na(t,e){return new t({type:"string",format:"e164",check:"string... function oa (line 53) | function oa(t,e){return new t({type:"string",format:"jwt",check:"string_... function Ju (line 53) | function Ju(t,e){return new t({type:"string",format:"datetime",check:"st... function Wu (line 53) | function Wu(t,e){return new t({type:"string",format:"date",check:"string... function Ku (line 53) | function Ku(t,e){return new t({type:"string",format:"time",check:"string... function Hu (line 53) | function Hu(t,e){return new t({type:"string",format:"duration",check:"st... function Gu (line 53) | function Gu(t,e){return new t({type:"number",checks:[],...k(e)})} function Bu (line 53) | function Bu(t,e){return new t({type:"number",check:"number_format",abort... function Xu (line 53) | function Xu(t,e){return new t({type:"number",check:"number_format",abort... function Yu (line 53) | function Yu(t,e){return new t({type:"number",check:"number_format",abort... function Qu (line 53) | function Qu(t,e){return new t({type:"number",check:"number_format",abort... function el (line 53) | function el(t,e){return new t({type:"number",check:"number_format",abort... function tl (line 53) | function tl(t,e){return new t({type:"boolean",...k(e)})} function rl (line 53) | function rl(t,e){return new t({type:"bigint",...k(e)})} function nl (line 53) | function nl(t,e){return new t({type:"bigint",check:"bigint_format",abort... function ol (line 53) | function ol(t,e){return new t({type:"bigint",check:"bigint_format",abort... function il (line 53) | function il(t,e){return new t({type:"symbol",...k(e)})} function al (line 53) | function al(t,e){return new t({type:"undefined",...k(e)})} function sl (line 53) | function sl(t,e){return new t({type:"null",...k(e)})} function cl (line 53) | function cl(t){return new t({type:"any"})} function ul (line 53) | function ul(t){return new t({type:"unknown"})} function ll (line 53) | function ll(t,e){return new t({type:"never",...k(e)})} function dl (line 53) | function dl(t,e){return new t({type:"void",...k(e)})} function pl (line 53) | function pl(t,e){return new t({type:"date",...k(e)})} function fl (line 53) | function fl(t,e){return new t({type:"nan",...k(e)})} function Nt (line 53) | function Nt(t,e){return new Tc({check:"less_than",...k(e),value:t,inclus... function Be (line 53) | function Be(t,e){return new Tc({check:"less_than",...k(e),value:t,inclus... function Rt (line 53) | function Rt(t,e){return new Pc({check:"greater_than",...k(e),value:t,inc... function Me (line 53) | function Me(t,e){return new Pc({check:"greater_than",...k(e),value:t,inc... function ml (line 53) | function ml(t){return Rt(0,t)} function hl (line 53) | function hl(t){return Nt(0,t)} function gl (line 53) | function gl(t){return Be(0,t)} function vl (line 53) | function vl(t){return Me(0,t)} function yr (line 53) | function yr(t,e){return new mm({check:"multiple_of",...k(e),value:t})} function $r (line 53) | function $r(t,e){return new vm({check:"max_size",...k(e),maximum:t})} function At (line 53) | function At(t,e){return new _m({check:"min_size",...k(e),minimum:t})} function Xr (line 53) | function Xr(t,e){return new ym({check:"size_equals",...k(e),size:t})} function Yr (line 53) | function Yr(t,e){return new $m({check:"max_length",...k(e),maximum:t})} function tr (line 53) | function tr(t,e){return new bm({check:"min_length",...k(e),minimum:t})} function Qr (line 53) | function Qr(t,e){return new xm({check:"length_equals",...k(e),length:t})} function uo (line 53) | function uo(t,e){return new km({check:"string_format",format:"regex",...... function lo (line 53) | function lo(t){return new Sm({check:"string_format",format:"lowercase",.... function po (line 53) | function po(t){return new wm({check:"string_format",format:"uppercase",.... function fo (line 53) | function fo(t,e){return new zm({check:"string_format",format:"includes",... function mo (line 53) | function mo(t,e){return new Im({check:"string_format",format:"starts_wit... function ho (line 53) | function ho(t,e){return new Em({check:"string_format",format:"ends_with"... function _l (line 53) | function _l(t,e,r){return new Tm({check:"property",property:t,schema:e,.... function go (line 53) | function go(t,e){return new Pm({check:"mime_type",mime:t,...k(e)})} function yt (line 53) | function yt(t){return new Om({check:"overwrite",tx:t})} function vo (line 53) | function vo(t){return yt(e=>e.normalize(t))} function _o (line 53) | function _o(){return yt(t=>t.trim())} function yo (line 53) | function yo(){return yt(t=>t.toLowerCase())} function $o (line 53) | function $o(){return yt(t=>t.toUpperCase())} function ia (line 53) | function ia(){return yt(t=>Hs(t))} function Xm (line 53) | function Xm(t,e,r){return new t({type:"array",element:e,...k(r)})} function yl (line 53) | function yl(t,e){return new t({type:"file",...k(e)})} function $l (line 53) | function $l(t,e,r){let n=k(r);return n.abort??(n.abort=!0),new t({type:"... function bl (line 53) | function bl(t,e,r){return new t({type:"custom",check:"custom",fn:e,...k(... function xl (line 53) | function xl(t){let e=Gb(r=>(r.addIssue=n=>{if(typeof n=="string")r.issue... function Gb (line 53) | function Gb(t,e){let r=new se({check:"custom",...k(e)});return r._zod.ch... function kl (line 53) | function kl(t){let e=new se({check:"describe"});return e._zod.onattach=[... function Sl (line 53) | function Sl(t){let e=new se({check:"meta"});return e._zod.onattach=[r=>{... function wl (line 53) | function wl(t,e){let r=k(e),n=r.truthy??["true","1","yes","on","y","enab... function en (line 53) | function en(t,e,r,n={}){let o=k(n),i={...k(n),check:"string_format",type... function aa (line 53) | function aa(t){let e=t?.target??"draft-2020-12";return e==="draft-4"&&(e... function pe (line 53) | function pe(t,e,r={path:[],schemaPath:[]}){var n;let o=t._zod.def,i=e.se... function sa (line 53) | function sa(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed ... function ca (line 55) | function ca(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed ... function Ce (line 55) | function Ce(t,e){let r=e??{seen:new Set};if(r.seen.has(t))return!1;r.see... function tn (line 55) | function tn(t){return!!t._zod} function rr (line 55) | function rr(t,e){return tn(t)?Br(t,e):t.safeParse(e)} function ua (line 55) | function ua(t){if(!t)return;let e;if(tn(t)?e=t._zod?.def?.shape:e=t.shap... function Uh (line 55) | function Uh(t){if(tn(t)){let i=t._zod?.def;if(i){if(i.value!==void 0)ret... function Pl (line 55) | function Pl(t){return Ju(Tl,t)} function jl (line 55) | function jl(t){return Wu(Ol,t)} function Nl (line 55) | function Nl(t){return Ku(Dl,t)} function Al (line 55) | function Al(t){return Hu(Rl,t)} method get (line 55) | get(){return t.issues.length===0} method get (line 55) | get(){return Ae.get(t)?.description} function v (line 55) | function v(t){return Fu(ma,t)} function fx (line 55) | function fx(t){return Ui(Ul,t)} function mx (line 55) | function mx(t){return so(da,t)} function hx (line 55) | function hx(t){return Zi(Mt,t)} function gx (line 55) | function gx(t){return Li(Mt,t)} function vx (line 55) | function vx(t){return qi(Mt,t)} function _x (line 55) | function _x(t){return Fi(Mt,t)} function yx (line 55) | function yx(t){return co(ha,t)} function $x (line 55) | function $x(t){return co(ha,{protocol:/^https?$/,hostname:rt.domain,...$... function bx (line 55) | function bx(t){return Vi(Zl,t)} function xx (line 55) | function xx(t){return Ji(Ll,t)} function kx (line 55) | function kx(t){return Wi(ql,t)} function Sx (line 55) | function Sx(t){return Ki(Fl,t)} function wx (line 55) | function wx(t){return Hi(Vl,t)} function zx (line 55) | function zx(t){return Gi(Jl,t)} function Ix (line 55) | function Ix(t){return Bi(Wl,t)} function Ex (line 55) | function Ex(t){return Xi(Kl,t)} function Tx (line 55) | function Tx(t){return Vu(Qh,t)} function Px (line 55) | function Px(t){return Yi(Hl,t)} function Ox (line 55) | function Ox(t){return Qi(Gl,t)} function jx (line 55) | function jx(t){return ea(Bl,t)} function Dx (line 55) | function Dx(t){return ta(Xl,t)} function Nx (line 55) | function Nx(t){return ra(Yl,t)} function Rx (line 55) | function Rx(t){return na(Ql,t)} function Ax (line 55) | function Ax(t){return oa(ed,t)} function Mx (line 55) | function Mx(t,e,r={}){return en(So,t,e,r)} function Cx (line 55) | function Cx(t){return en(So,"hostname",rt.hostname,t)} function Ux (line 55) | function Ux(t){return en(So,"hex",rt.hex,t)} function Zx (line 55) | function Zx(t,e){let r=e?.enc??"hex",n=`${t}_${r}`,o=rt[n];if(!o)throw n... function ne (line 55) | function ne(t){return Gu(ga,t)} function Ml (line 55) | function Ml(t){return Bu(rn,t)} function Lx (line 55) | function Lx(t){return Xu(rn,t)} function qx (line 55) | function qx(t){return Yu(rn,t)} function Fx (line 55) | function Fx(t){return Qu(rn,t)} function Vx (line 55) | function Vx(t){return el(rn,t)} function ye (line 55) | function ye(t){return tl(va,t)} function Jx (line 55) | function Jx(t){return rl(_a,t)} function Wx (line 55) | function Wx(t){return nl(td,t)} function Kx (line 55) | function Kx(t){return ol(td,t)} function Hx (line 55) | function Hx(t){return il(eg,t)} function Gx (line 55) | function Gx(t){return al(tg,t)} function wo (line 55) | function wo(t){return sl(rg,t)} function Bx (line 55) | function Bx(){return cl(ng)} function ue (line 55) | function ue(){return ul(og)} function rd (line 55) | function rd(t){return ll(ig,t)} function Xx (line 55) | function Xx(t){return dl(ag,t)} function Yx (line 55) | function Yx(t){return pl(nd,t)} function G (line 55) | function G(t,e){return Xm(sg,t,e)} function Qx (line 55) | function Qx(t){let e=t._zod.def.shape;return Pe(Object.keys(e))} function z (line 55) | function z(t,e){let r={type:"object",shape:t??{},...$.normalizeParams(e)... function ek (line 55) | function ek(t,e){return new ya({type:"object",shape:t,catchall:rd(),...$... function Te (line 55) | function Te(t,e){return new ya({type:"object",shape:t,catchall:ue(),...$... function ie (line 55) | function ie(t,e){return new $a({type:"union",options:t,...$.normalizePar... function tk (line 55) | function tk(t,e){return new cg({type:"union",options:t,inclusive:!1,...$... function ba (line 55) | function ba(t,e,r){return new ug({type:"union",options:e,discriminator:t... function zo (line 55) | function zo(t,e){return new lg({type:"intersection",left:t,right:e})} function pg (line 55) | function pg(t,e,r){let n=e instanceof Z,o=n?r:e,i=n?e:null;return new dg... function fe (line 55) | function fe(t,e,r){return new xa({type:"record",keyType:t,valueType:e,..... function rk (line 55) | function rk(t,e,r){let n=Re(t);return n._zod.values=void 0,new xa({type:... function nk (line 55) | function nk(t,e,r){return new xa({type:"record",keyType:t,valueType:e,mo... function ok (line 55) | function ok(t,e,r){return new fg({type:"map",keyType:t,valueType:e,...$.... function ik (line 55) | function ik(t,e){return new mg({type:"set",valueType:t,...$.normalizePar... function Pe (line 55) | function Pe(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n... function ak (line 55) | function ak(t,e){return new ko({type:"enum",entries:t,...$.normalizePara... method get (line 55) | get(){if(e.values.length>1)throw new Error("This schema contains multipl... function P (line 55) | function P(t,e){return new hg({type:"literal",values:Array.isArray(t)?t:... function sk (line 55) | function sk(t){return yl(gg,t)} function od (line 55) | function od(t){return new vg({type:"transform",transform:t})} function me (line 55) | function me(t){return new id({type:"optional",innerType:t})} function yg (line 55) | function yg(t){return new _g({type:"optional",innerType:t})} function pa (line 55) | function pa(t){return new $g({type:"nullable",innerType:t})} function ck (line 55) | function ck(t){return me(pa(t))} function xg (line 55) | function xg(t,e){return new bg({type:"default",innerType:t,get defaultVa... function Sg (line 55) | function Sg(t,e){return new kg({type:"prefault",innerType:t,get defaultV... function wg (line 55) | function wg(t,e){return new ad({type:"nonoptional",innerType:t,...$.norm... function uk (line 55) | function uk(t){return new zg({type:"success",innerType:t})} function Eg (line 55) | function Eg(t,e){return new Ig({type:"catch",innerType:t,catchValue:type... function lk (line 55) | function lk(t){return fl(Tg,t)} function fa (line 55) | function fa(t,e){return new sd({type:"pipe",in:t,out:e})} function dk (line 55) | function dk(t,e,r){return new cd({type:"pipe",in:t,out:e,transform:r.dec... function Og (line 55) | function Og(t){return new Pg({type:"readonly",innerType:t})} function pk (line 55) | function pk(t,e){return new jg({type:"template_literal",parts:t,...$.nor... function Ng (line 55) | function Ng(t){return new Dg({type:"lazy",getter:t})} function fk (line 55) | function fk(t){return new Rg({type:"promise",innerType:t})} function mk (line 55) | function mk(t){return new Ag({type:"function",input:Array.isArray(t?.inp... function hk (line 55) | function hk(t){let e=new se({check:"custom"});return e._zod.check=t,e} function ud (line 55) | function ud(t,e){return $l(ka,t??(()=>!0),e)} function Mg (line 55) | function Mg(t,e={}){return bl(ka,t,e)} function Cg (line 55) | function Cg(t){return xl(t)} function _k (line 55) | function _k(t,e={}){let r=new ka({type:"custom",check:"custom",fn:n=>n i... function $k (line 55) | function $k(t){let e=Ng(()=>ie([v(t),ne(),ye(),wo(),G(e),fe(v(),e)]));re... function Sa (line 55) | function Sa(t,e){return fa(od(t),e)} method constructor (line 55) | constructor(e,r,n){super(`MCP error ${e}: ${r}`),this.code=e,this.data=n... method fromError (line 55) | static fromError(e,r,n){if(e===Y.UrlElicitationRequired&&n){let o=n;if(o... method constructor (line 55) | constructor(e,r=`URL elicitation${e.length>1?"s":""} required`){super(Y.... method elicitations (line 55) | get elicitations(){return this.data?.elicitations??[]} function or (line 55) | function or(t){return t==="completed"||t==="failed"||t==="cancelled"} function Ed (line 55) | function Ed(t){let r=ua(t)?.method;if(!r)throw new Error("Schema is miss... function Td (line 55) | function Td(t,e){let r=rr(t,e);if(!r.success)throw r.error;return r.data} method constructor (line 55) | constructor(e){this._options=e,this._requestMessageId=0,this._requestHan... method _oncancel (line 55) | async _oncancel(e){if(!e.params.requestId)return;this._requestHandlerAbo... method _setupTimeout (line 55) | _setupTimeout(e,r,n,o,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeou... method _resetTimeout (line 55) | _resetTimeout(e){let r=this._timeoutInfo.get(e);if(!r)return!1;let n=Dat... method _cleanupTimeout (line 55) | _cleanupTimeout(e){let r=this._timeoutInfo.get(e);r&&(clearTimeout(r.tim... method connect (line 55) | async connect(e){if(this._transport)throw new Error("Already connected t... method _onclose (line 55) | _onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,t... method _onerror (line 55) | _onerror(e){this.onerror?.(e)} method _onnotification (line 55) | _onnotification(e){let r=this._notificationHandlers.get(e.method)??this.... method _onrequest (line 55) | _onrequest(e,r){let n=this._requestHandlers.get(e.method)??this.fallback... method _onprogress (line 55) | _onprogress(e){let{progressToken:r,...n}=e.params,o=Number(r),i=this._pr... method _onresponse (line 55) | _onresponse(e){let r=Number(e.id),n=this._requestResolvers.get(r);if(n){... method transport (line 55) | get transport(){return this._transport} method close (line 55) | async close(){await this._transport?.close()} method requestStream (line 55) | async*requestStream(e,r,n){let{task:o}=n??{};if(!o){try{yield{type:"resu... method request (line 55) | request(e,r,n){let{relatedRequestId:o,resumptionToken:i,onresumptiontoke... method getTask (line 55) | async getTask(e,r){return this.request({method:"tasks/get",params:e},Da,r)} method getTaskResult (line 55) | async getTaskResult(e,r,n){return this.request({method:"tasks/result",pa... method listTasks (line 55) | async listTasks(e,r){return this.request({method:"tasks/list",params:e},... method cancelTask (line 55) | async cancelTask(e,r){return this.request({method:"tasks/cancel",params:... method notification (line 55) | async notification(e,r){if(!this._transport)throw new Error("Not connect... method setRequestHandler (line 55) | setRequestHandler(e,r){let n=Ed(e);this.assertRequestHandlerCapability(n... method removeRequestHandler (line 55) | removeRequestHandler(e){this._requestHandlers.delete(e)} method assertCanSetRequestHandler (line 55) | assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new ... method setNotificationHandler (line 55) | setNotificationHandler(e,r){let n=Ed(e);this._notificationHandlers.set(n... method removeNotificationHandler (line 55) | removeNotificationHandler(e){this._notificationHandlers.delete(e)} method _cleanupTaskProgressHandler (line 55) | _cleanupTaskProgressHandler(e){let r=this._taskProgressTokens.get(e);r!=... method _enqueueTaskMessage (line 55) | async _enqueueTaskMessage(e,r,n){if(!this._taskStore||!this._taskMessage... method _clearTaskQueue (line 55) | async _clearTaskQueue(e,r){if(this._taskMessageQueue){let n=await this._... method _waitForTaskUpdate (line 55) | async _waitForTaskUpdate(e,r){let n=this._options?.defaultTaskPollInterv... method requestTaskStore (line 55) | requestTaskStore(e,r){let n=this._taskStore;if(!n)throw new Error("No ta... function rv (line 55) | function rv(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)} function nv (line 55) | function nv(t,e){let r={...t};for(let n in e){let o=n,i=e[o];if(i===void... function YT (line 55) | function YT(){let t=new Fy.default({strict:!1,validateFormats:!0,validat... method constructor (line 55) | constructor(e){this._ajv=e??YT()} method getValidator (line 55) | getValidator(e){let r="$id"in e&&typeof e.$id=="string"?this._ajv.getSch... method constructor (line 55) | constructor(e){this._server=e} method requestStream (line 55) | requestStream(e,r,n){return this._server.requestStream(e,r,n)} method createMessageStream (line 55) | createMessageStream(e,r){let n=this._server.getClientCapabilities();if((... method elicitInputStream (line 55) | elicitInputStream(e,r){let n=this._server.getClientCapabilities(),o=e.mo... method getTask (line 55) | async getTask(e,r){return this._server.getTask({taskId:e},r)} method getTaskResult (line 55) | async getTaskResult(e,r,n){return this._server.getTaskResult({taskId:e},... method listTasks (line 55) | async listTasks(e,r){return this._server.listTasks(e?{cursor:e}:void 0,r)} method cancelTask (line 55) | async cancelTask(e,r){return this._server.cancelTask({taskId:e},r)} function Jy (line 55) | function Jy(t,e,r){if(!t)throw new Error(`${r} does not support task cre... function Wy (line 55) | function Wy(t,e,r){if(!t)throw new Error(`${r} does not support task cre... method constructor (line 55) | constructor(e,r){super(r),this._serverInfo=e,this._loggingLevels=new Map... method experimental (line 55) | get experimental(){return this._experimental||(this._experimental={tasks... method registerCapabilities (line 55) | registerCapabilities(e){if(this.transport)throw new Error("Cannot regist... method setRequestHandler (line 55) | setRequestHandler(e,r){let o=ua(e)?.method;if(!o)throw new Error("Schema... method assertCapabilityForMethod (line 55) | assertCapabilityForMethod(e){switch(e){case"sampling/createMessage":if(!... method assertNotificationCapability (line 55) | assertNotificationCapability(e){switch(e){case"notifications/message":if... method assertRequestHandlerCapability (line 55) | assertRequestHandlerCapability(e){if(this._capabilities)switch(e){case"c... method assertTaskCapability (line 55) | assertTaskCapability(e){Wy(this._clientCapabilities?.tasks?.requests,e,"... method assertTaskHandlerCapability (line 55) | assertTaskHandlerCapability(e){this._capabilities&&Jy(this._capabilities... method _oninitialize (line 55) | async _oninitialize(e){let r=e.params.protocolVersion;return this._clien... method getClientCapabilities (line 55) | getClientCapabilities(){return this._clientCapabilities} method getClientVersion (line 55) | getClientVersion(){return this._clientVersion} method getCapabilities (line 55) | getCapabilities(){return this._capabilities} method ping (line 55) | async ping(){return this.request({method:"ping"},Ea)} method createMessage (line 55) | async createMessage(e,r){if((e.tools||e.toolChoice)&&!this._clientCapabi... method elicitInput (line 55) | async elicitInput(e,r){switch(e.mode??"form"){case"url":{if(!this._clien... method createElicitationCompletionNotifier (line 55) | createElicitationCompletionNotifier(e,r){if(!this._clientCapabilities?.e... method listRoots (line 55) | async listRoots(e,r){return this.request({method:"roots/list",params:e},... method sendLoggingMessage (line 55) | async sendLoggingMessage(e,r){if(this._capabilities.logging&&!this.isMes... method sendResourceUpdated (line 55) | async sendResourceUpdated(e){return this.notification({method:"notificat... method sendResourceListChanged (line 55) | async sendResourceListChanged(){return this.notification({method:"notifi... method sendToolListChanged (line 55) | async sendToolListChanged(){return this.notification({method:"notificati... method sendPromptListChanged (line 55) | async sendPromptListChanged(){return this.notification({method:"notifica... method append (line 55) | append(e){this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e} method readMessage (line 55) | readMessage(){if(!this._buffer)return null;let e=this._buffer.indexOf(` method clear (line 56) | clear(){this._buffer=void 0} function QT (line 56) | function QT(t){return Hg.parse(JSON.parse(t))} function Ky (line 56) | function Ky(t){return JSON.stringify(t)+` method constructor (line 57) | constructor(e=kf.default.stdin,r=kf.default.stdout){this._stdin=e,this._... method start (line 57) | async start(){if(this._started)throw new Error("StdioServerTransport alr... method processReadBuffer (line 57) | processReadBuffer(){for(;;)try{let e=this._readBuffer.readMessage();if(e... method close (line 57) | async close(){this._stdin.off("data",this._ondata),this._stdin.off("erro... method send (line 57) | send(e){return new Promise(r=>{let n=Ky(e);this._stdout.write(n)?r():thi... function Hy (line 57) | function Hy(t){return process.platform==="win32"?Math.round(t*Sf.WINDOWS... method getAllDefaults (line 57) | static getAllDefaults(){return{...this.DEFAULTS}} method get (line 57) | static get(e){return process.env[e]??this.DEFAULTS[e]} method getInt (line 57) | static getInt(e){let r=this.get(e);return parseInt(r,10)} method getBool (line 57) | static getBool(e){let r=this.get(e);return r==="true"||r===!0} method applyEnvOverrides (line 57) | static applyEnvOverrides(e){let r={...e};for(let n of Object.keys(this.D... method loadFromFile (line 57) | static loadFromFile(e){try{if(!(0,zt.existsSync)(e)){let a=this.getAllDe... function eP (line 57) | function eP(){return typeof __dirname<"u"?__dirname:(0,$e.dirname)((0,By... function tP (line 57) | function tP(){if(process.env.CLAUDE_MEM_DATA_DIR)return process.env.CLAU... function iP (line 57) | function iP(t,e={},r){return new Promise((n,o)=>{let i=setTimeout(()=>o(... function aP (line 57) | function aP(){if(Es!==null)return Es;let t=If.default.join(jr.get("CLAUD... function sP (line 57) | function sP(){if(Ts!==null)return Ts;let t=If.default.join(jr.get("CLAUD... function cP (line 57) | function cP(t){return`http://${sP()}:${aP()}${t}`} function Ps (line 57) | function Ps(t,e={}){let r=e.method??"GET",n=e.timeoutMs??oP,o=cP(t),i={m... function e$ (line 57) | function e$(t){let e=t.slice(t.lastIndexOf("."));return uP[e]||"unknown"} function t$ (line 57) | function t$(t){let e=lP[t];if(!e)return null;try{let r=Qy.resolve(e+"/pa... function r$ (line 102) | function r$(t){switch(t){case"javascript":case"typescript":case"tsx":ret... function n$ (line 102) | function n$(t){if(Tf.has(t))return Tf.get(t);Ef||(Ef=(0,It.mkdtempSync)(... function pP (line 102) | function pP(){if(mi)return mi;try{let t=Qy.resolve("tree-sitter-cli/pack... function fP (line 102) | function fP(t,e,r){return o$(t,[e],r).get(e)||[]} function o$ (line 102) | function o$(t,e,r){if(e.length===0)return new Map;let n=pP(),o=["query",... function mP (line 102) | function mP(t){let e=new Map,r=null,n=null;for(let o of t.split(` function gP (line 103) | function gP(t,e,r,n=200){let i=t[e]||"";if(!i.trimEnd().endsWith("{")&&!... function vP (line 104) | function vP(t,e){let r=[],n=!1;for(let o=e-1;o>=0;o--){let i=t[o].trim()... function _P (line 105) | function _P(t,e,r){for(let n=e+1;n<=Math.min(e+3,r);n++){let o=t[n]?.tri... function yP (line 105) | function yP(t,e,r,n,o,i){switch(i){case"javascript":case"typescript":cas... function i$ (line 105) | function i$(t,e,r){let n=[],o=[],i=[],a=[];for(let c of t)for(let u of c... function Os (line 105) | function Os(t,e){let r=e$(e),n=t.split(` function a$ (line 106) | function a$(t){let e=new Map,r=new Map;for(let n of t){let o=e$(n.relati... function wn (line 108) | function wn(t){let e=[];if(e.push(`\u{1F4C1} ${t.filePath} (${t.language... function s$ (line 109) | function s$(t,e){let r=[],n=$P(t.kind),o=t.exported?" [exported]":"",i=t... function $P (line 111) | function $P(t){return{function:"\u0192",method:"\u0192",class:"\u25C6",i... function c$ (line 111) | function c$(t,e,r){let n=Os(t,e),o=u=>{for(let l of u){if(l.name===r)ret... function wP (line 114) | async function wP(t){try{let e=await(0,zn.stat)(t);if(e.size>SP||e.size=... function l$ (line 114) | async function l$(t,e,r={}){let n=r.maxResults||20,o=e.toLowerCase(),i=o... function js (line 114) | function js(t,e){let r=0;for(let n of e)if(t===n)r+=10;else if(t.include... function zP (line 114) | function zP(t){let e=t.symbols.length;for(let r of t.symbols)r.children&... function d$ (line 114) | function d$(t,e){let r=[];if(r.push(`\u{1F50D} Smart Search: "${e}"`),r.... function f$ (line 117) | async function f$(t,e){ve.debug("SYSTEM","\u2192 Worker API",void 0,{end... function EP (line 117) | async function EP(t,e){ve.debug("HTTP","Worker API request (POST)",void ... function TP (line 117) | async function TP(){try{return(await Ps("/api/health")).ok}catch(t){retu... function OP (line 141) | function OP(){if(process.platform==="win32")return;let t=process.ppid;gi... function Nf (line 141) | function Nf(){gi&&clearInterval(gi),ve.info("SYSTEM","MCP server shuttin... function jP (line 141) | async function jP(){let t=new ws;await Df.connect(t),ve.info("SYSTEM","C... FILE: plugin/scripts/smart-install.js function isPluginDisabledInClaudeSettings (line 19) | function isPluginDisabledInClaudeSettings() { constant IS_WINDOWS (line 34) | const IS_WINDOWS = process.platform === 'win32'; function resolveRoot (line 46) | function resolveRoot() { constant ROOT (line 70) | const ROOT = resolveRoot(); constant MARKER (line 71) | const MARKER = join(ROOT, '.install-version'); function isBunInstalled (line 76) | function isBunInstalled() { function getBunPath (line 99) | function getBunPath() { constant MIN_BUN_VERSION (line 128) | const MIN_BUN_VERSION = '1.1.14'; function compareVersions (line 133) | function compareVersions(v1, v2) { function isBunVersionSufficient (line 148) | function isBunVersionSufficient() { function getBunVersion (line 157) | function getBunVersion() { function isUvInstalled (line 176) | function isUvInstalled() { function getUvVersion (line 199) | function getUvVersion() { function installBun (line 215) | function installBun() { function installUv (line 280) | function installUv() { function installCLI (line 345) | function installCLI() { function needsInstall (line 400) | function needsInstall() { function installDeps (line 418) | function installDeps() { function verifyCriticalModules (line 472) | function verifyCriticalModules() { FILE: plugin/scripts/worker-cli.js method constructor (line 2) | constructor(){this.useColor=process.stdout.isTTY??!1} method getLevel (line 2) | getLevel(){if(this.level===null){let t=l.get("CLAUDE_MEM_LOG_LEVEL").toU... method correlationId (line 2) | correlationId(t,e){return`obs-${t}-${e}`} method sessionId (line 2) | sessionId(t){return`session-${t}`} method formatData (line 2) | formatData(t){if(t==null)return"";if(typeof t=="string")return t;if(type... method formatTool (line 3) | formatTool(t,e){if(!e)return t;let r=typeof e=="string"?JSON.parse(e):e;... method formatTimestamp (line 3) | formatTimestamp(t){let e=t.getFullYear(),r=String(t.getMonth()+1).padSta... method log (line 3) | log(t,e,r,n,s){if(t65535)return{success:!1,err... method isBunAvailable (line 5) | static isBunAvailable(){return N()} method escapePowerShellString (line 5) | static escapePowerShellString(t){return t.replace(/'/g,"''")} method startWithBun (line 5) | static async startWithBun(t,e,r){let n=R();if(!n)return{success:!1,error... method stop (line 5) | static async stop(t=5e3){let e=this.getPidInfo();if(process.platform==="... method restart (line 5) | static async restart(t){return await this.stop(),this.start(t)} method status (line 5) | static async status(){let t=this.getPidInfo();if(!t)return{running:!1};l... method isRunning (line 5) | static async isRunning(){let t=this.getPidInfo();if(!t)return!1;let e=th... method getPortFromSettings (line 5) | static getPortFromSettings(){try{let t=S(u,"settings.json"),e=l.loadFrom... method tryHttpShutdown (line 5) | static async tryHttpShutdown(t){try{return(await fetch(`http://127.0.0.1... method waitForWorkerDown (line 5) | static async waitForWorkerDown(t,e){let r=Date.now();for(;Date.now()-r1)return!1;let e=this._items[0];return ... method str (line 4) | get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this.... method names (line 4) | get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names... function mR (line 4) | function mR(t,...e){let r=[t[0]],n=0;for(;n{if(n.scopePa... method scopeCode (line 4) | scopeCode(e=this._values,r,n){return this._reduceValues(e,i=>{if(i.value... method _reduceValues (line 4) | _reduceValues(e,r,n={},i){let s=Kr.nil;for(let o in e){let a=e[o];if(!a)... method optimizeNodes (line 4) | optimizeNodes(){return this} method optimizeNames (line 4) | optimizeNames(e,r){return this} method constructor (line 4) | constructor(e,r,n){super(),this.varKind=e,this.name=r,this.rhs=n} method render (line 4) | render({es5:e,_n:r}){let n=e?Vn.varKinds.var:this.varKind,i=this.rhs===v... method optimizeNames (line 4) | optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=$a(thi... method names (line 4) | get names(){return this.rhs instanceof et._CodeOrName?this.rhs.names:{}} method constructor (line 4) | constructor(e,r,n){super(),this.lhs=e,this.rhs=r,this.sideEffects=n} method render (line 4) | render({_n:e}){return`${this.lhs} = ${this.rhs};`+e} method optimizeNames (line 4) | optimizeNames(e,r){if(!(this.lhs instanceof et.Name&&!e[this.lhs.str]&&!... method names (line 4) | get names(){let e=this.lhs instanceof et.Name?{}:{...this.lhs.names};ret... method constructor (line 4) | constructor(e,r,n,i){super(e,n,i),this.op=r} method render (line 4) | render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e} method constructor (line 4) | constructor(e){super(),this.label=e,this.names={}} method render (line 4) | render({_n:e}){return`${this.label}:`+e} method constructor (line 4) | constructor(e){super(),this.label=e,this.names={}} method render (line 4) | render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e} method constructor (line 4) | constructor(e){super(),this.error=e} method render (line 4) | render({_n:e}){return`throw ${this.error};`+e} method names (line 4) | get names(){return this.error.names} method constructor (line 4) | constructor(e){super(),this.code=e} method render (line 4) | render({_n:e}){return`${this.code};`+e} method optimizeNodes (line 4) | optimizeNodes(){return`${this.code}`?this:void 0} method optimizeNames (line 4) | optimizeNames(e,r){return this.code=$a(this.code,e,r),this} method names (line 4) | get names(){return this.code instanceof et._CodeOrName?this.code.names:{}} method constructor (line 4) | constructor(e=[]){super(),this.nodes=e} method render (line 4) | render(e){return this.nodes.reduce((r,n)=>r+n.render(e),"")} method optimizeNodes (line 4) | optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let n=e[r].optim... method optimizeNames (line 4) | optimizeNames(e,r){let{nodes:n}=this,i=n.length;for(;i--;){let s=n[i];s.... method names (line 4) | get names(){return this.nodes.reduce((e,r)=>co(e,r.names),{})} method render (line 4) | render(e){return"{"+e._n+super.render(e)+"}"+e._n} method constructor (line 4) | constructor(e,r){super(r),this.condition=e} method render (line 4) | render(e){let r=`if(${this.condition})`+super.render(e);return this.else... method optimizeNodes (line 4) | optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)ret... method optimizeNames (line 4) | optimizeNames(e,r){var n;if(this.else=(n=this.else)===null||n===void 0?v... method names (line 4) | get names(){let e=super.names;return Km(e,this.condition),this.else&&co(... method constructor (line 4) | constructor(e){super(),this.iteration=e} method render (line 4) | render(e){return`for(${this.iteration})`+super.render(e)} method optimizeNames (line 4) | optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=$a(... method names (line 4) | get names(){return co(super.names,this.iteration.names)} method constructor (line 4) | constructor(e,r,n,i){super(),this.varKind=e,this.name=r,this.from=n,this... method render (line 4) | render(e){let r=e.es5?Vn.varKinds.var:this.varKind,{name:n,from:i,to:s}=... method names (line 4) | get names(){let e=Km(super.names,this.from);return Km(e,this.to)} method constructor (line 4) | constructor(e,r,n,i){super(),this.loop=e,this.varKind=r,this.name=n,this... method render (line 4) | render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.it... method optimizeNames (line 4) | optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=$a(t... method names (line 4) | get names(){return co(super.names,this.iterable.names)} method constructor (line 4) | constructor(e,r,n){super(),this.name=e,this.args=r,this.async=n} method render (line 4) | render(e){return`${this.async?"async ":""}function ${this.name}(${this.a... method render (line 4) | render(e){return"return "+super.render(e)} method render (line 4) | render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.... method optimizeNodes (line 4) | optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===nu... method optimizeNames (line 4) | optimizeNames(e,r){var n,i;return super.optimizeNames(e,r),(n=this.catch... method names (line 4) | get names(){let e=super.names;return this.catch&&co(e,this.catch.names),... method constructor (line 4) | constructor(e){super(),this.error=e} method render (line 4) | render(e){return`catch(${this.error})`+super.render(e)} method render (line 4) | render(e){return"finally"+super.render(e)} method constructor (line 4) | constructor(e,r={}){this._values={},this._blockStarts=[],this._constants... method toString (line 5) | toString(){return this._root.render(this.opts)} method name (line 5) | name(e){return this._scope.name(e)} method scopeName (line 5) | scopeName(e){return this._extScope.name(e)} method scopeValue (line 5) | scopeValue(e,r){let n=this._extScope.value(e,r);return(this._values[n.pr... method getScopeValue (line 5) | getScopeValue(e,r){return this._extScope.getValue(e,r)} method scopeRefs (line 5) | scopeRefs(e){return this._extScope.scopeRefs(e,this._values)} method scopeCode (line 5) | scopeCode(){return this._extScope.scopeCode(this._values)} method _def (line 5) | _def(e,r,n,i){let s=this._scope.toName(r);return n!==void 0&&i&&(this._c... method const (line 5) | const(e,r,n){return this._def(Vn.varKinds.const,e,r,n)} method let (line 5) | let(e,r,n){return this._def(Vn.varKinds.let,e,r,n)} method var (line 5) | var(e,r,n){return this._def(Vn.varKinds.var,e,r,n)} method assign (line 5) | assign(e,r,n){return this._leafNode(new Gm(e,r,n))} method add (line 5) | add(e,r){return this._leafNode(new Rx(e,qe.operators.ADD,r))} method code (line 5) | code(e){return typeof e=="function"?e():e!==et.nil&&this._leafNode(new A... method object (line 5) | object(...e){let r=["{"];for(let[n,i]of e)r.length>1&&r.push(","),r.push... method if (line 5) | if(e,r,n){if(this._blockNode(new oo(e)),r&&n)this.code(r).else().code(n)... method elseIf (line 5) | elseIf(e){return this._elseNode(new oo(e))} method else (line 5) | else(){return this._elseNode(new ka)} method endIf (line 5) | endIf(){return this._endBlockNode(oo,ka)} method _for (line 5) | _for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this} method for (line 5) | for(e,r){return this._for(new Mx(e),r)} method forRange (line 5) | forRange(e,r,n,i,s=this.opts.es5?Vn.varKinds.var:Vn.varKinds.let){let o=... method forOf (line 5) | forOf(e,r,n,i=Vn.varKinds.const){let s=this._scope.toName(e);if(this.opt... method forIn (line 5) | forIn(e,r,n,i=this.opts.es5?Vn.varKinds.var:Vn.varKinds.const){if(this.o... method endFor (line 5) | endFor(){return this._endBlockNode(ao)} method label (line 5) | label(e){return this._leafNode(new Ox(e))} method break (line 5) | break(e){return this._leafNode(new Px(e))} method return (line 5) | return(e){let r=new gl;if(this._blockNode(r),this.code(e),r.nodes.length... method try (line 5) | try(e,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and... method throw (line 5) | throw(e){return this._leafNode(new Cx(e))} method block (line 5) | block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.cod... method endBlock (line 5) | endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error(... method func (line 5) | func(e,r=et.nil,n,i){return this._blockNode(new hl(e,r,n)),i&&this.code(... method endFunc (line 5) | endFunc(){return this._endBlockNode(hl)} method optimize (line 5) | optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimiz... method _leafNode (line 5) | _leafNode(e){return this._currNode.nodes.push(e),this} method _blockNode (line 5) | _blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)} method _endBlockNode (line 5) | _endBlockNode(e,r){let n=this._currNode;if(n instanceof e||r&&n instance... method _elseNode (line 5) | _elseNode(e){let r=this._currNode;if(!(r instanceof oo))throw new Error(... method _root (line 5) | get _root(){return this._nodes[0]} method _currNode (line 5) | get _currNode(){let e=this._nodes;return e[e.length-1]} method _currNode (line 5) | set _currNode(e){let r=this._nodes;r[r.length-1]=e} function co (line 5) | function co(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t} function Km (line 5) | function Km(t,e){return e instanceof et._CodeOrName?co(t,e.names):t} function $a (line 5) | function $a(t,e,r){if(t instanceof et.Name)return n(t);if(!i(t))return t... function j3 (line 5) | function j3(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)} function hR (line 5) | function hR(t){return typeof t=="boolean"||typeof t=="number"||t===null?... function L3 (line 5) | function L3(...t){return t.reduce(z3)} function q3 (line 5) | function q3(...t){return t.reduce(U3)} function gR (line 5) | function gR(t){return(e,r)=>e===et.nil?r:r===et.nil?e:(0,et._)`${Lx(e)} ... function Lx (line 5) | function Lx(t){return t instanceof et.Name?t:(0,et._)`(${t})`} function H3 (line 5) | function H3(t){let e={};for(let r of t)e[r]=!0;return e} function Z3 (line 5) | function Z3(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?... function _R (line 5) | function _R(t,e=t.schema){let{opts:r,self:n}=t;if(!r.strictSchema||typeo... function bR (line 5) | function bR(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])... function B3 (line 5) | function B3(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="... function V3 (line 5) | function V3({topSchemaRef:t,schemaPath:e},r,n,i){if(!i){if(typeof r=="nu... function G3 (line 5) | function G3(t){return xR(decodeURIComponent(t))} function W3 (line 5) | function W3(t){return encodeURIComponent(qx(t))} function qx (line 5) | function qx(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").rep... function xR (line 5) | function xR(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")} function K3 (line 5) | function K3(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)} function vR (line 5) | function vR({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){r... function SR (line 5) | function SR(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",... function Fx (line 5) | function Fx(t,e,r){Object.keys(r).forEach(n=>t.assign((0,St._)`${e}${(0,... function J3 (line 5) | function J3(t,e){return t.scopeValue("func",{ref:e,code:yR[e.code]||(yR[... function X3 (line 5) | function X3(t,e,r){if(t instanceof St.Name){let n=e===Ux.Num;return r?n?... function wR (line 5) | function wR(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r=... function Q3 (line 5) | function Q3(t,e=$r.keywordError,r,n){let{it:i}=t,{gen:s,compositeRule:o,... function eZ (line 5) | function eZ(t,e=$r.keywordError,r){let{it:n}=t,{gen:i,compositeRule:s,al... function tZ (line 5) | function tZ(t,e){t.assign(zr.default.errors,e),t.if((0,rt._)`${zr.defaul... function rZ (line 5) | function rZ({gen:t,keyword:e,schemaValue:r,data:n,errsCount:i,it:s}){if(... function ER (line 5) | function ER(t,e){let r=t.const("err",e);t.if((0,rt._)`${zr.default.vErro... function kR (line 5) | function kR(t,e){let{gen:r,validateName:n,schemaEnv:i}=t;i.$async?r.thro... function $R (line 5) | function $R(t,e,r){let{createErrors:n}=t.it;return n===!1?(0,rt._)`{}`:n... function nZ (line 5) | function nZ(t,e,r={}){let{gen:n,it:i}=t,s=[iZ(i,r),sZ(t,r)];return oZ(t,... function iZ (line 5) | function iZ({errorPath:t},{instancePath:e}){let r=e?(0,rt.str)`${t}${(0,... function sZ (line 5) | function sZ({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:... function oZ (line 5) | function oZ(t,{params:e,message:r},n){let{keyword:i,data:s,schemaValue:o... function dZ (line 5) | function dZ(t){let{gen:e,schema:r,validateName:n}=t;r===!1?TR(t,!1):type... function pZ (line 5) | function pZ(t,e){let{gen:r,schema:n}=t;n===!1?(r.var(e,!1),TR(t)):r.var(... function TR (line 5) | function TR(t,e){let{gen:r,data:n}=t,i={gen:r,keyword:"false schema",dat... function hZ (line 5) | function hZ(t){return typeof t=="string"&&fZ.has(t)} function gZ (line 5) | function gZ(){let t={number:{type:"number",rules:[]},string:{type:"strin... function vZ (line 5) | function vZ({schema:t,self:e},r){let n=e.RULES.types[r];return n&&n!==!0... function RR (line 5) | function RR(t,e){return e.rules.some(r=>OR(t,r))} function OR (line 5) | function OR(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.im... function xZ (line 5) | function xZ(t){let e=CR(t.type);if(e.includes("null")){if(t.nullable===!... function CR (line 5) | function CR(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(yZ.isJSONTyp... function SZ (line 5) | function SZ(t,e){let{gen:r,data:n,opts:i}=t,s=wZ(e,i.coerceTypes),o=e.le... function wZ (line 5) | function wZ(t,e){return e?t.filter(r=>AR.has(r)||e==="array"&&r==="array... function EZ (line 5) | function EZ(t,e,r){let{gen:n,data:i,opts:s}=t,o=n.let("dataType",(0,je._... function kZ (line 8) | function kZ({gen:t,parentData:e,parentDataProperty:r},n){t.if((0,je._)`$... function Vx (line 8) | function Vx(t,e,r,n=Ra.Correct){let i=n===Ra.Correct?je.operators.EQ:je.... function Gx (line 8) | function Gx(t,e,r,n){if(t.length===1)return Vx(t[0],e,r,n);let i,s=(0,PR... function Wx (line 8) | function Wx(t){let e=TZ(t);(0,bZ.reportError)(e,$Z)} function TZ (line 8) | function TZ(t){let{gen:e,data:r,schema:n}=t,i=(0,PR.schemaRefOrVal)(t,n,... function RZ (line 8) | function RZ(t,e){let{properties:r,items:n}=t.schema;if(e==="object"&&r)f... function NR (line 8) | function NR(t,e,r){let{gen:n,compositeRule:i,data:s,opts:o}=t;if(r===voi... function PZ (line 8) | function PZ(t,e){let{gen:r,data:n,it:i}=t;r.if(Xx(r,n,e,i.opts.ownProper... function CZ (line 8) | function CZ({gen:t,data:e,it:{opts:r}},n,i){return(0,Ot.or)(...n.map(s=>... function AZ (line 8) | function AZ(t,e){t.setParams({missingProperty:e},!0),t.error()} function DR (line 8) | function DR(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnPr... function Jx (line 8) | function Jx(t,e,r){return(0,Ot._)`${DR(t)}.call(${e}, ${r})`} function NZ (line 8) | function NZ(t,e,r,n){let i=(0,Ot._)`${e}${(0,Ot.getProperty)(r)} !== und... function Xx (line 8) | function Xx(t,e,r,n){let i=(0,Ot._)`${e}${(0,Ot.getProperty)(r)} === und... function jR (line 8) | function jR(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]} function MZ (line 8) | function MZ(t,e){return jR(e).filter(r=>!(0,Kx.alwaysValidSchema)(t,e[r]))} function DZ (line 8) | function DZ({schemaCode:t,data:e,it:{gen:r,topSchemaRef:n,schemaPath:i,e... function zZ (line 8) | function zZ({gen:t,it:{opts:e}},r){let n=e.unicodeRegExp?"u":"",{regExp:... function LZ (line 8) | function LZ(t){let{gen:e,data:r,keyword:n,it:i}=t,s=e.name("valid");if(i... function UZ (line 8) | function UZ(t){let{gen:e,schema:r,keyword:n,it:i}=t;if(!Array.isArray(r)... function HZ (line 8) | function HZ(t,e){let{gen:r,keyword:n,schema:i,parentSchema:s,it:o}=t,a=e... function ZZ (line 8) | function ZZ(t,e){var r;let{gen:n,keyword:i,schema:s,parentSchema:o,$data... function zR (line 8) | function zR(t){let{gen:e,data:r,it:n}=t;e.if(n.parentData,()=>e.assign(r... function BZ (line 8) | function BZ(t,e){let{gen:r}=t;r.if((0,Lr._)`Array.isArray(${e})`,()=>{r.... function VZ (line 8) | function VZ({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("asyn... function LR (line 8) | function LR(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed ... function GZ (line 8) | function GZ(t,e,r=!1){return!e.length||e.some(n=>n==="array"?Array.isArr... function WZ (line 8) | function WZ({schema:t,opts:e,self:r,errSchemaPath:n},i,s){if(Array.isArr... function KZ (line 8) | function KZ(t,{keyword:e,schemaProp:r,schema:n,schemaPath:i,errSchemaPat... function JZ (line 8) | function JZ(t,e,{dataProp:r,dataPropType:n,data:i,dataTypes:s,propertyNa... function XZ (line 8) | function XZ(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:n,createEr... function Qm (line 8) | function Qm(t,e,r,n,i,s,o,a,c,u){if(n&&typeof n=="object"&&!Array.isArra... function YZ (line 8) | function YZ(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")} function nB (line 8) | function nB(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Qx(t):e?VR(t)<... function Qx (line 8) | function Qx(t){for(let e in t){if(iB.has(e))return!0;let r=t[e];if(Array... function VR (line 8) | function VR(t){let e=0;for(let r in t){if(r==="$ref")return 1/0;if(e++,!... function GR (line 8) | function GR(t,e="",r){r!==!1&&(e=Pa(e));let n=t.parse(e);return WR(t,n)} function WR (line 8) | function WR(t,e){return t.serialize(e).split("#")[0]+"#"} function Pa (line 8) | function Pa(t){return t?t.replace(sB,""):""} function oB (line 8) | function oB(t,e,r){return r=Pa(r),t.resolve(e,r)} function cB (line 8) | function cB(t,e){if(typeof t=="boolean")return{};let{schemaId:r,uriResol... function dB (line 8) | function dB(t){if(rO(t)&&(nO(t),tO(t))){fB(t);return}eO(t,()=>(0,QR.topB... function eO (line 8) | function eO({gen:t,validateName:e,schema:r,schemaEnv:n,opts:i},s){i.code... function pB (line 8) | function pB(t){return(0,fe._)`{${Re.default.instancePath}="", ${Re.defau... function mB (line 8) | function mB(t,e){t.if(Re.default.valCxt,()=>{t.var(Re.default.instancePa... function fB (line 8) | function fB(t){let{schema:e,opts:r,gen:n}=t;eO(t,()=>{r.$comment&&e.$com... function hB (line 8) | function hB(t){let{gen:e,validateName:r}=t;t.evaluated=e.const("evaluate... function JR (line 8) | function JR(t,e){let r=typeof t=="object"&&t[e.schemaId];return r&&(e.co... function gB (line 8) | function gB(t,e){if(rO(t)&&(nO(t),tO(t))){vB(t,e);return}(0,QR.boolOrEmp... function tO (line 8) | function tO({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let r... function rO (line 8) | function rO(t){return typeof t.schema!="boolean"} function vB (line 8) | function vB(t,e){let{schema:r,gen:n,opts:i}=t;i.$comment&&r.$comment&&sO... function nO (line 8) | function nO(t){(0,Bi.checkUnknownRules)(t),yB(t)} function iO (line 8) | function iO(t,e){if(t.opts.jtd)return XR(t,[],!1,e);let r=(0,KR.getSchem... function yB (line 8) | function yB(t){let{schema:e,errSchemaPath:r,opts:n,self:i}=t;e.$ref&&n.i... function _B (line 8) | function _B(t){let{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&... function bB (line 8) | function bB(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,lB.resolv... function xB (line 8) | function xB(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("... function sO (line 8) | function sO({gen:t,schemaEnv:e,schema:r,errSchemaPath:n,opts:i}){let s=r... function SB (line 8) | function SB(t){let{gen:e,schemaEnv:r,validateName:n,ValidationError:i,op... function wB (line 8) | function wB({gen:t,evaluated:e,props:r,items:n}){r instanceof fe.Name&&t... function XR (line 8) | function XR(t,e,r,n){let{gen:i,schema:s,data:o,allErrors:a,opts:c,self:u... function YR (line 8) | function YR(t,e){let{gen:r,schema:n,opts:{useDefaults:i}}=t;i&&(0,uB.ass... function EB (line 8) | function EB(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(kB(t,e),t.opts.... function kB (line 8) | function kB(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;retu... function $B (line 8) | function $B(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&rS(t,"... function TB (line 8) | function TB(t,e){let r=t.self.RULES.all;for(let n in r){let i=r[n];if(ty... function IB (line 8) | function IB(t,e){return t.includes(e)||e==="number"&&t.includes("integer")} function oO (line 8) | function oO(t,e){return t.includes(e)||e==="integer"&&t.includes("number")} function RB (line 8) | function RB(t,e){let r=[];for(let n of t.dataTypes)oO(e,n)?r.push(n):e.i... function rS (line 8) | function rS(t,e){let r=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${r}"... method constructor (line 8) | constructor(e,r,n){if((0,wl.validateKeywordUsage)(e,r,n),this.gen=e.gen,... method result (line 8) | result(e,r,n){this.failResult((0,fe.not)(e),r,n)} method failResult (line 8) | failResult(e,r,n){this.gen.if(e),n?n():this.error(),r?(this.gen.else(),r... method pass (line 8) | pass(e,r){this.failResult((0,fe.not)(e),void 0,r)} method fail (line 8) | fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);retu... method fail$data (line 8) | fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;t... method error (line 8) | error(e,r,n){if(r){this.setParams(r),this._error(e,n),this.setParams({})... method _error (line 8) | _error(e,r){(e?Sl.reportExtraError:Sl.reportError)(this,this.def.error,r)} method $dataError (line 8) | $dataError(){(0,Sl.reportError)(this,this.def.$dataError||Sl.keyword$Dat... method reset (line 8) | reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to... method ok (line 8) | ok(e){this.allErrors||this.gen.if(e)} method setParams (line 8) | setParams(e,r){r?Object.assign(this.params,e):this.params=e} method block$data (line 8) | block$data(e,r,n=fe.nil){this.gen.block(()=>{this.check$data(e,n),r()})} method check$data (line 8) | check$data(e=fe.nil,r=fe.nil){if(!this.$data)return;let{gen:n,schemaCode... method invalid$data (line 8) | invalid$data(){let{gen:e,schemaCode:r,schemaType:n,def:i,it:s}=this;retu... method subschema (line 8) | subschema(e,r){let n=(0,eS.getSubschema)(this.it,e);(0,eS.extendSubschem... method mergeEvaluated (line 8) | mergeEvaluated(e,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==... method mergeValidEvaluated (line 8) | mergeValidEvaluated(e,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.... function aO (line 8) | function aO(t,e,r,n){let i=new tf(t,r,e);"code"in r?r.code(i,n):i.$data&... function cO (line 8) | function cO(t,{dataLevel:e,dataNames:r,dataPathArr:n}){let i,s;if(t===""... method constructor (line 8) | constructor(e){super("validation failed"),this.errors=e,this.ajv=this.va... method constructor (line 8) | constructor(e,r,n,i){super(i||`can't resolve reference ${n} from id ${r}... method constructor (line 8) | constructor(e){var r;this.refs={},this.dynamicAnchors={};let n;typeof e.... function uS (line 8) | function uS(t){let e=lO.call(this,t);if(e)return e;let r=(0,Wn.getFullPa... function NB (line 8) | function NB(t,e,r){var n;r=(0,Wn.resolveUrl)(this.opts.uriResolver,e,r);... function MB (line 8) | function MB(t){return(0,Wn.inlineRef)(t.schema,this.opts.inlineRefs)?t.s... function lO (line 8) | function lO(t){for(let e of this._compilations)if(DB(e,t))return e} function DB (line 8) | function DB(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId==... function jB (line 8) | function jB(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return... function nf (line 8) | function nf(t,e){let r=this.opts.uriResolver.parse(e),n=(0,Wn._getFullPa... function cS (line 8) | function cS(t,{baseId:e,schema:r,root:n}){var i;if(((i=t.fragment)===nul... function lS (line 8) | function lS(t){let e="",r=0,n=0;for(n=0;n{if(r.keyword... function gS (line 8) | function gS(t,e,r){var n;let i=e?.post;if(r&&i)throw new Error('keyword ... function MV (line 8) | function MV(t,e,r){let n=t.rules.findIndex(i=>i.keyword===r);n>=0?t.rule... function DV (line 8) | function DV(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data... function CO (line 8) | function CO(t){return{anyOf:[t,jV]}} method code (line 8) | code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schem... method code (line 8) | code(t){let{gen:e,schema:r,it:n}=t,{baseId:i,schemaEnv:s,validateName:o,... function jO (line 8) | function jO(t,e){let{gen:r}=t;return e.validate?r.scopeValue("validate",... function pf (line 8) | function pf(t,e,r,n){let{gen:i,it:s}=t,{allErrors:o,schemaEnv:a,opts:c}=... method code (line 8) | code(t){let{keyword:e,data:r,schemaCode:n}=t;t.fail$data((0,mf._)`${r} $... method code (line 8) | code(t){let{gen:e,data:r,schemaCode:n,it:i}=t,s=i.opts.multipleOfPrecisi... function FO (line 8) | function FO(t){let e=t.length,r=0,n=0,i;for(;nthis.a... method _addDefaultMetaSchema (line 11) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta... method defaultMeta (line 11) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.ge... function fi (line 11) | function fi(t,e){return{validate:t,compare:e}} function e7 (line 11) | function e7(t){return t%4===0&&(t%100!==0||t%400===0)} function FP (line 11) | function FP(t){let e=t7.exec(t);if(!e)return!1;let r=+e[1],n=+e[2],i=+e[... function d0 (line 11) | function d0(t,e){if(t&&e)return t>e?1:t=a7} function l7 (line 11) | function l7(t){return Number.isInteger(t)} function qP (line 11) | function qP(){return!0} function p7 (line 11) | function p7(t){if(d7.test(t))return!1;try{return new RegExp(t),!0}catch{... method code (line 11) | code(t){let{gen:e,data:r,schemaCode:n,keyword:i,it:s}=t,{opts:o,self:a}=... function KP (line 11) | function KP(t,e,r,n){var i,s;(i=(s=t.opts.code).formats)!==null&&i!==voi... function b7 (line 11) | function b7(t,e){var r=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;... function nC (line 11) | function nC(t,e,r){return!t.isSymbolicLink()&&!t.isFile()?!1:b7(e,r)} function iC (line 11) | function iC(t,e,r){rC.stat(t,function(n,i){r(n,n?!1:nC(i,t,e))})} function x7 (line 11) | function x7(t,e){return nC(rC.statSync(t),t,e)} function cC (line 11) | function cC(t,e,r){aC.stat(t,function(n,i){r(n,n?!1:uC(i,e))})} function S7 (line 11) | function S7(t,e){return uC(aC.statSync(t),e)} function uC (line 11) | function uC(t,e){return t.isFile()&&w7(t,e)} function w7 (line 11) | function w7(t,e){var r=t.mode,n=t.uid,i=t.gid,s=e.uid!==void 0?e.uid:pro... function h0 (line 11) | function h0(t,e,r){if(typeof e=="function"&&(r=e,e={}),!r){if(typeof Pro... function E7 (line 11) | function E7(t,e){try{return Rf.sync(t,e||{})}catch(r){if(e&&e.ignoreErro... function EC (line 11) | function EC(t,e){let r=t.options.env||process.env,n=process.cwd(),i=t.op... function R7 (line 11) | function R7(t){return EC(t)||EC(t,!0)} function O7 (line 11) | function O7(t){return t=t.replace(v0,"^$1"),t} function P7 (line 11) | function P7(t,e){return t=`${t}`,t=t.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'... function N7 (line 11) | function N7(t){let r=Buffer.alloc(150),n;try{n=_0.openSync(t,"r"),_0.rea... function U7 (line 11) | function U7(t){t.file=NC(t);let e=t.file&&D7(t.file);return e?(t.args.un... function q7 (line 11) | function q7(t){if(!j7)return t;let e=U7(t),r=!z7.test(e);if(t.options.fo... function F7 (line 11) | function F7(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],... function x0 (line 11) | function x0(t,e){return Object.assign(new Error(`${e} ${t.command} ENOEN... function H7 (line 11) | function H7(t,e){if(!b0)return;let r=t.emit;t.emit=function(n,i){if(n===... function zC (line 11) | function zC(t,e){return b0&&t===1&&!e.file?x0(e.original,"spawn"):null} function Z7 (line 11) | function Z7(t,e){return b0&&t===1&&!e.file?x0(e.original,"spawnSync"):null} function FC (line 11) | function FC(t,e,r){let n=S0(t,e,r),i=qC.spawn(n.command,n.args,n.options... function B7 (line 11) | function B7(t,e,r){let n=S0(t,e,r),i=qC.spawnSync(n.command,n.args,n.opt... method constructor (line 11) | constructor(){this.useColor=process.stdout.isTTY??!1} method ensureLogFileInitialized (line 11) | ensureLogFileInitialized(){if(!this.logFileInitialized){this.logFileInit... method getLevel (line 11) | getLevel(){if(this.level===null)try{let e=(0,ql.join)(GC,"settings.json"... method correlationId (line 11) | correlationId(e,r){return`obs-${e}-${r}`} method sessionId (line 11) | sessionId(e){return`session-${e}`} method formatData (line 11) | formatData(e){if(e==null)return"";if(typeof e=="string")return e;if(type... method formatTool (line 12) | formatTool(e,r){if(!r)return e;let n=r;if(typeof r=="string")try{n=JSON.... method formatTimestamp (line 12) | formatTimestamp(e){let r=e.getFullYear(),n=String(e.getMonth()+1).padSta... method log (line 12) | log(e,r,n,i,s){if(e{let s=setTimeout(()=>i(... function Ur (line 19) | function Ur(){if(Hl!==null)return Hl;let t=Mf.default.join(Ee.get("CLAUD... function O0 (line 19) | function O0(){if(Zl!==null)return Zl;let t=Mf.default.join(Ee.get("CLAUD... function oA (line 19) | function oA(){Hl=null,Zl=null} function dK (line 19) | function dK(t){return`http://${O0()}:${Ur()}${t}`} function jt (line 19) | function jt(t,e={}){let r=e.method??"GET",n=e.timeoutMs??R0,i=dK(t),s={m... function pK (line 19) | async function pK(){return(await jt("/api/health",{timeoutMs:R0})).ok} function mK (line 19) | function mK(){try{let t=Mf.default.join(Ki,"package.json");return JSON.p... function fK (line 19) | async function fK(){let t=await jt("/api/version",{timeoutMs:R0});if(!t.... function hK (line 19) | async function hK(){try{let t=mK();if(t==="unknown")return;let e=await f... function en (line 19) | async function en(){try{if(await pK())return await hK(),!0}catch(t){y.de... function Uf (line 19) | function Uf(t,e,r){return(0,$A.createHash)("sha256").update((t||"")+(e||... function qf (line 19) | function qf(t,e,r){let n=r-MK;return t.prepare("SELECT id, created_at_ep... method constructor (line 19) | constructor(e=Fl){e!==":memory:"&&Ir(ar),this.db=new IA.Database(e),this... method initializeSchema (line 19) | initializeSchema(){this.db.run(` method ensureWorkerPortColumn (line 81) | ensureWorkerPortColumn(){this.db.query("PRAGMA table_info(sdk_sessions)"... method ensurePromptTrackingColumns (line 81) | ensurePromptTrackingColumns(){this.db.query("PRAGMA table_info(sdk_sessi... method removeSessionSummariesUniqueConstraint (line 81) | removeSessionSummariesUniqueConstraint(){if(!this.db.query("PRAGMA index... method addObservationHierarchicalFields (line 109) | addObservationHierarchicalFields(){if(this.db.prepare("SELECT version FR... method makeObservationsTextNullable (line 117) | makeObservationsTextNullable(){if(this.db.prepare("SELECT version FROM s... method createUserPromptsTable (line 147) | createUserPromptsTable(){if(this.db.prepare("SELECT version FROM schema_... method ensureDiscoveryTokensColumn (line 185) | ensureDiscoveryTokensColumn(){if(this.db.prepare("SELECT version FROM sc... method createPendingMessagesTable (line 185) | createPendingMessagesTable(){if(this.db.prepare("SELECT version FROM sch... method renameSessionIdColumns (line 205) | renameSessionIdColumns(){if(this.db.prepare("SELECT version FROM schema_... method repairSessionIdColumnRename (line 205) | repairSessionIdColumnRename(){this.db.prepare("SELECT version FROM schem... method addFailedAtEpochColumn (line 205) | addFailedAtEpochColumn(){if(this.db.prepare("SELECT version FROM schema_... method addOnUpdateCascadeToForeignKeys (line 205) | addOnUpdateCascadeToForeignKeys(){if(!this.db.prepare("SELECT version FR... method addObservationContentHashColumn (line 299) | addObservationContentHashColumn(){if(this.db.query("PRAGMA table_info(ob... method addSessionCustomTitleColumn (line 299) | addSessionCustomTitleColumn(){if(this.db.prepare("SELECT version FROM sc... method updateMemorySessionId (line 299) | updateMemorySessionId(e,r){this.db.prepare(` method ensureMemorySessionIdRegistered (line 303) | ensureMemorySessionIdRegistered(e,r){let n=this.db.prepare(` method getRecentSummaries (line 307) | getRecentSummaries(e,r=10){return this.db.prepare(` method getRecentSummariesWithSessionInfo (line 315) | getRecentSummariesWithSessionInfo(e,r=3){return this.db.prepare(` method getRecentObservations (line 323) | getRecentObservations(e,r=20){return this.db.prepare(` method getAllRecentObservations (line 329) | getAllRecentObservations(e=100){return this.db.prepare(` method getAllRecentSummaries (line 334) | getAllRecentSummaries(e=50){return this.db.prepare(` method getAllRecentUserPrompts (line 341) | getAllRecentUserPrompts(e=100){return this.db.prepare(` method getAllProjects (line 354) | getAllProjects(){return this.db.prepare(` method getLatestUserPrompt (line 359) | getLatestUserPrompt(e){return this.db.prepare(` method getRecentSessionsWithStatus (line 369) | getRecentSessionsWithStatus(e,r=3){return this.db.prepare(` method getObservationsForSession (line 386) | getObservationsForSession(e){return this.db.prepare(` method getObservationById (line 391) | getObservationById(e){return this.db.prepare(` method getObservationsByIds (line 395) | getObservationsByIds(e,r={}){if(e.length===0)return[];let{orderBy:n="dat... method getSummaryForSession (line 401) | getSummaryForSession(e){return this.db.prepare(` method getFilesForSession (line 410) | getFilesForSession(e){let n=this.db.prepare(` method getSessionById (line 414) | getSessionById(e){return this.db.prepare(` method getSdkSessionsBySessionIds (line 419) | getSdkSessionsBySessionIds(e){if(e.length===0)return[];let r=e.map(()=>"... method getPromptNumberFromUserPrompts (line 425) | getPromptNumberFromUserPrompts(e){return this.db.prepare(` method createSDKSession (line 427) | createSDKSession(e,r,n,i){let s=new Date,o=s.getTime(),a=this.db.prepare(` method saveUserPrompt (line 439) | saveUserPrompt(e,r,n){let i=new Date,s=i.getTime();return this.db.prepare(` method getUserPrompt (line 443) | getUserPrompt(e,r){return this.db.prepare(` method storeObservation (line 448) | storeObservation(e,r,n,i,s=0,o){let a=o??Date.now(),c=new Date(a).toISOS... method storeSummary (line 453) | storeSummary(e,r,n,i,s=0,o){let a=o??Date.now(),c=new Date(a).toISOStrin... method storeObservations (line 458) | storeObservations(e,r,n,i,s,o=0,a){let c=a??Date.now(),u=new Date(c).toI... method storeObservationsAndMarkComplete (line 468) | storeObservationsAndMarkComplete(e,r,n,i,s,o,a,c=0,u){let l=u??Date.now(... method getSessionSummariesByIds (line 486) | getSessionSummariesByIds(e,r={}){if(e.length===0)return[];let{orderBy:n=... method getUserPromptsByIds (line 491) | getUserPromptsByIds(e,r={}){if(e.length===0)return[];let{orderBy:n="date... method getTimelineAroundTimestamp (line 501) | getTimelineAroundTimestamp(e,r=10,n=10,i){return this.getTimelineAroundO... method getTimelineAroundObservation (line 501) | getTimelineAroundObservation(e,r,n=10,i=10,s){let o=s?"AND project = ?":... method getPromptById (line 541) | getPromptById(e){return this.db.prepare(` method getPromptsByIds (line 554) | getPromptsByIds(e){if(e.length===0)return[];let r=e.map(()=>"?").join(",... method getSessionSummaryById (line 567) | getSessionSummaryById(e){return this.db.prepare(` method getOrCreateManualSession (line 582) | getOrCreateManualSession(e){let r=`manual-${e}`,n=`manual-content-${e}`;... method close (line 585) | close(){this.db.close()} method importSdkSession (line 585) | importSdkSession(e){let r=this.db.prepare("SELECT id FROM sdk_sessions W... method importSessionSummary (line 590) | importSessionSummary(e){let r=this.db.prepare("SELECT id FROM session_su... method importObservation (line 596) | importObservation(e){let r=this.db.prepare(` method importUserPrompt (line 605) | importUserPrompt(e){let r=this.db.prepare(` function WA (line 613) | function WA(t,e){for(var r=t.split(/[ ,]+/),n=String(e).toLowerCase(),i=... function GK (line 613) | function GK(t,e,r){var n=Object.getOwnPropertyDescriptor(t,e),i=n.value;... function WK (line 613) | function WK(t){for(var e="",r=0;r",r=t.getLineNumber(),... function GA (line 615) | function GA(t){var e=t.callSite,r=t.name;r||(r="");... function eJ (line 615) | function eJ(t,e,r){var n=new Date().toUTCString(),i=n+" "+this._namespac... function tJ (line 616) | function tJ(t,e,r){var n="\x1B[36;1m"+this._namespace+"\x1B[22;39m \x1B[... function Y0 (line 617) | function Y0(t){return BK(VK,t[0])+":"+t[1]+":"+t[2]} function Wf (line 617) | function Wf(){var t=Error.stackTraceLimit,e={},r=Error.prepareStackTrace... function rJ (line 617) | function rJ(t,e){return e} function nJ (line 617) | function nJ(t,e){if(typeof t!="function")throw new TypeError("argument f... function iJ (line 620) | function iJ(t,e,r){if(!t||typeof t!="object"&&typeof t!="function")throw... function KA (line 620) | function KA(t,e,r){var n=new Error,i;return Object.defineProperty(n,"con... function cJ (line 620) | function cJ(t,e){return typeof t=="string"?YA(t):typeof t=="number"?XA(t... function XA (line 620) | function XA(t,e){if(!Number.isFinite(t))return null;var r=Math.abs(t),n=... function YA (line 620) | function YA(t){if(typeof t=="number"&&!isNaN(t))return t;if(typeof t!="s... function pJ (line 620) | function pJ(t){if(!t||typeof t!="object")throw new TypeError("argument o... function mJ (line 620) | function mJ(t){if(!t)throw new TypeError("argument string is required");... function fJ (line 620) | function fJ(t){var e;if(typeof t.getHeader=="function"?e=t.getHeader("co... function hJ (line 620) | function hJ(t){var e=String(t);if(eN.test(e))return e;if(e.length>0&&!uJ... function gJ (line 620) | function gJ(t){this.parameters=Object.create(null),this.type=t} function vJ (line 620) | function vJ(t,e){return t.__proto__=e,t} function yJ (line 620) | function yJ(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(t,r... function bJ (line 620) | function bJ(t){var e={};return Object.keys(t).forEach(function(n){var i=... function xJ (line 620) | function xJ(t){return Object.keys(t).map(function(r){return Number(r)})} function SJ (line 620) | function SJ(t){var e=t.toLowerCase();if(!Object.prototype.hasOwnProperty... function iN (line 620) | function iN(t){if(!Object.prototype.hasOwnProperty.call(Xn.message,t))th... function Xn (line 620) | function Xn(t){if(typeof t=="number")return iN(t);if(typeof t!="string")... function wJ (line 620) | function wJ(t){return t.split(" ").map(function(e){return e.slice(0,1).t... function dN (line 620) | function dN(t){return+(String(t).charAt(0)+"00")} function Jf (line 620) | function Jf(){for(var t,e,r=500,n={},i=0;i100)){var e=/^((?:\d+)?\.?\d+) ... function AJ (line 620) | function AJ(t){return t>=Ql?Math.round(t/Ql)+"d":t>=Yl?Math.round(t/Yl)+... function NJ (line 620) | function NJ(t){return Xf(t,Ql,"day")||Xf(t,Yl,"hour")||Xf(t,Xl,"minute")... function Xf (line 620) | function Xf(t,e,r){if(!(t=2)if(t[0]==254&&t[1]==... function rh (line 624) | function rh(t,e){this.iconv=e} function kw (line 624) | function kw(t,e){this.iconv=e.iconv} function $w (line 624) | function $w(t,e){this.iconv=e.iconv,this.inBase64=!1,this.base64Accum=""} function nh (line 624) | function nh(t,e){this.iconv=e} function Iw (line 624) | function Iw(t,e){this.iconv=e.iconv,this.inBase64=!1,this.base64Accum=xi... function Rw (line 624) | function Rw(t,e){this.iconv=e.iconv,this.inBase64=!1,this.base64Accum=""} function Ow (line 624) | function Ow(t,e){if(!t)throw new Error("SBCS codec is called without the... function Pw (line 624) | function Pw(t,e){this.encodeBuf=e.encodeBuf} function Cw (line 624) | function Cw(t,e){this.decodeBuf=e.decodeBuf} function ts (line 629) | function ts(t,e){if(this.encodingName=t.encodingName,!t)throw new Error(... function ah (line 629) | function ah(t,e){this.leadSurrogate=-1,this.seqObj=void 0,this.encodeTab... function Aw (line 629) | function Aw(t,e){this.nodeIdx=0,this.prevBuf=nc.alloc(0),this.decodeTabl... function Nw (line 629) | function Nw(t,e){if(t[0]>e)return-1;for(var r=0,n=t.length;rn)return d... function PX (line 629) | function PX(){try{return require("async_hooks")}catch{return{}}} function CX (line 629) | function CX(t){var e;return dM.AsyncResource&&(e=new dM.AsyncResource(t.... function AX (line 629) | function AX(t,e){if(!Array.isArray(t))throw new TypeError("arg must be a... function NX (line 629) | function NX(t,e){return function(n){for(var i=new Array(arguments.length... function DX (line 629) | function DX(t,e){return _M(t)!==!1?(MX(e,null,t),t):(zX(t,FX(e)),t)} function _M (line 629) | function _M(t){var e=t.socket;if(typeof t.finished=="boolean")return!!(t... function jX (line 629) | function jX(t,e){var r,n,i=!1;function s(a){r.cancel(),n.cancel(),i=!0,e... function zX (line 629) | function zX(t,e){var r=t.__onFinished;(!r||!r.queue)&&(r=t.__onFinished=... function LX (line 629) | function LX(t){function e(r){if(t.__onFinished===e&&(t.__onFinished=null... function UX (line 629) | function UX(t,e){var r=t.assignSocket;typeof r=="function"&&(t.assignSoc... function qX (line 629) | function qX(){try{return require("async_hooks")}catch{return{}}} function FX (line 629) | function FX(t){var e;return vM.AsyncResource&&(e=new vM.AsyncResource(t.... function VX (line 629) | function VX(t,e,r,n,i,s){var o,a=s,c;t._body=!0;var u=a.encoding!==null?... function GX (line 629) | function GX(t,e,r){var n=(t.headers["content-encoding"]||"identity").toL... function WX (line 629) | function WX(t,e){xM.isFinished(t)?e(null):(xM(t,e),t.resume())} function eY (line 629) | function eY(t){if(!t||typeof t!="object")throw new TypeError("argument o... function tY (line 629) | function tY(t){if(!t)throw new TypeError("argument string is required");... function rY (line 629) | function rY(t){if(typeof t.getHeader=="function")return t.getHeader("con... function nY (line 629) | function nY(t){var e=String(t);if($M.test(e))return e;if(e.length>0&&!KX... function iY (line 629) | function iY(t){var e=QX.exec(t.toLowerCase());if(!e)throw new TypeError(... function CM (line 629) | function CM(t){if(!t||typeof t!="string")return!1;var e=PM.exec(t),r=e&&... function cY (line 629) | function cY(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")==... function uY (line 629) | function uY(t){if(!t||typeof t!="string")return!1;var e=PM.exec(t),r=e&&... function lY (line 629) | function lY(t){if(!t||typeof t!="string")return!1;var e=oY("x."+t).toLow... function dY (line 629) | function dY(t,e){var r=["nginx","apache",void 0,"iana"];Object.keys(mh).... function NM (line 629) | function NM(t,e){var r,n=e,i=hY(t);if(!i)return!1;if(n&&!Array.isArray(n... function MM (line 629) | function MM(t){return t.headers["transfer-encoding"]!==void 0||!isNaN(t.... function mY (line 629) | function mY(t,e){var r=e;if(!MM(t))return null;if(arguments.length>2){r=... function DM (line 629) | function DM(t){if(typeof t!="string")return!1;switch(t){case"urlencoded"... function jM (line 629) | function jM(t,e){if(t===!1)return!1;var r=e.split("/"),n=t.split("/");re... function fY (line 629) | function fY(t){var e=AM.parse(t);return e.parameters=void 0,AM.format(e)} function hY (line 629) | function hY(t){if(!t)return null;try{return fY(t)}catch{return null}} function SY (line 629) | function SY(t){var e=t||{},r=typeof e.limit!="number"?gY.parse(e.limit||... function wY (line 629) | function wY(t,e){var r=t.indexOf(e),n="";if(r!==-1){n=t.substring(0,r)+z... function EY (line 629) | function EY(t){var e=bY.exec(t);return e?e[1]:void 0} function kY (line 629) | function kY(t){try{return(vY.parse(t).parameters.charset||"").toLowerCas... function UM (line 629) | function UM(t,e){for(var r=Object.getOwnPropertyNames(t),n=0;n-1e3&&t<1e3||lD.call(... function p (line 629) | function p(W,j,ae){if(j&&(i=BY.call(i),i.push(j)),ae){var Ne={depth:s.de... method constructor (line 1276) | constructor(k){super(),this.code=k} method render (line 1276) | render({_n:k}){return`${this.code};`+k} method optimizeNodes (line 1276) | optimizeNodes(){return`${this.code}`?this:void 0} method optimizeNames (line 1276) | optimizeNames(k,I){return this.code=j(this.code,k,I),this} method names (line 1276) | get names(){return this.code instanceof e._CodeOrName?this.code.names:{}} function mD (line 629) | function mD(t,e,r){var n=r.quoteStyle||e,i=pD[n];return i+t+i} function GY (line 629) | function GY(t){return Ds.call(String(t),/"/g,""")} function Io (line 629) | function Io(t){return!dd||!(typeof t=="object"&&(dd in t||typeof t[dd]<"... function Kw (line 629) | function Kw(t){return js(t)==="[object Array]"&&Io(t)} function WY (line 629) | function WY(t){return js(t)==="[object Date]"&&Io(t)} function cD (line 629) | function cD(t){return js(t)==="[object RegExp]"&&Io(t)} function KY (line 629) | function KY(t){return js(t)==="[object Error]"&&Io(t)} function JY (line 629) | function JY(t){return js(t)==="[object String]"&&Io(t)} function XY (line 629) | function XY(t){return js(t)==="[object Number]"&&Io(t)} function YY (line 629) | function YY(t){return js(t)==="[object Boolean]"&&Io(t)} function fD (line 629) | function fD(t){if(ac)return t&&typeof t=="object"&&t instanceof Symbol;i... function QY (line 629) | function QY(t){if(!t||typeof t!="object"||!Vw)return!1;try{return Vw.cal... function rs (line 629) | function rs(t,e){return eQ.call(t,e)} function js (line 629) | function js(t){return qY.call(t)} function tQ (line 629) | function tQ(t){if(t.name)return t.name;var e=HY.call(FY.call(t),/^functi... function hD (line 629) | function hD(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length... function rQ (line 629) | function rQ(t){if(!hh||!t||typeof t!="object")return!1;try{hh.call(t);tr... function nQ (line 629) | function nQ(t){if(!ud||!t||typeof t!="object")return!1;try{ud.call(t,ud)... function iQ (line 629) | function iQ(t){if(!eD||!t||typeof t!="object")return!1;try{return eD.cal... function sQ (line 629) | function sQ(t){if(!gh||!t||typeof t!="object")return!1;try{gh.call(t);tr... function oQ (line 629) | function oQ(t){if(!ld||!t||typeof t!="object")return!1;try{ld.call(t,ld)... function aQ (line 629) | function aQ(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t... function gD (line 629) | function gD(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStri... function cQ (line 629) | function cQ(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"... function cd (line 629) | function cd(t){return"Object("+t+")"} function Bw (line 629) | function Bw(t){return t+" { ? }"} function uD (line 629) | function uD(t,e,r,n){var i=n?Jw(r,n):wi.call(r,", ");return t+" ("+e+") ... function uQ (line 629) | function uQ(t){for(var e=0;e").replace(Mte,"  ");... function Ute (line 642) | function Ute(t,e,r){var n=r||{},i=n.env||process.env.NODE_ENV||"developm... function qte (line 642) | function qte(t){if(!(!t.headers||typeof t.headers!="object")){for(var e=... function Fte (line 642) | function Fte(t,e,r){var n;return r!=="production"&&(n=t.stack,!n&&typeof... function Hte (line 642) | function Hte(t){if(typeof t.status=="number"&&t.status>=400&&t.status<60... function Zte (line 642) | function Zte(t){try{return Ate.original(t).pathname}catch{return"resourc... function Bte (line 642) | function Bte(t){var e=t.statusCode;return(typeof e!="number"||e<400||e>5... function xz (line 642) | function xz(t){return typeof t.headersSent!="boolean"?!!t._header:t.head... function Vte (line 642) | function Vte(t,e,r,n,i){function s(){var o=Lte(i);if(e.statusCode=r,t.ht... function Gte (line 642) | function Gte(t,e){if(e)for(var r=Object.keys(e),n=0;n0&&Array.isA... function Tz (line 642) | function Tz(t,e){for(var r=0;rthis.... method _addDefaultMetaSchema (line 1283) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.me... method defaultMeta (line 1283) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.... function r (line 642) | function r(n,i,s){r.handle(n,i,s)} method constructor (line 1276) | constructor(x){if(super(),!t.IDENTIFIER.test(x))throw new Error("CodeG... method toString (line 1276) | toString(){return this.str} method emptyStr (line 1276) | emptyStr(){return!1} method names (line 1276) | get names(){return{[this.str]:1}} method constructor (line 1276) | constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.valu... method constructor (line 1280) | constructor(i,s,o,a){super(a||`can't resolve reference ${o} from id ${... function h (line 642) | function h(x){var b=x==="route"?null:x;if(c&&(e.url=e.url.slice(1),c=!1)... function v (line 642) | function v(x,b,_,S){if(_.length!==0){if(_!==S.slice(0,_.length)){h(b);re... method constructor (line 1276) | constructor(k,I){super(I),this.condition=k} method render (line 1276) | render(k){let I=`if(${this.condition})`+super.render(k);return this.el... method optimizeNodes (line 1276) | optimizeNodes(){super.optimizeNodes();let k=this.condition;if(k===!0)r... method optimizeNames (line 1276) | optimizeNames(k,I){var q;if(this.else=(q=this.else)===null||q===void 0... method names (line 1276) | get names(){let k=super.names;return W(k,this.condition),this.else&&U(... function g (line 642) | function g(v){if(v)return s(v);if(c>=a.length)return s();if(l=0,d=a[c++]... function h (line 642) | function h(v){var x=m[l++];if(f.value=n.params[d.name],v){f.error=v,g(v)... function cre (line 642) | function cre(t,e){for(var r=0;r100)){var e=/^(-?(?:\d+)?\.?\d... function rne (line 642) | function rne(t){var e=Math.abs(t);return e>=No?Math.round(t/No)+"d":e>=x... function nne (line 642) | function nne(t){var e=Math.abs(t);return e>=No?Uh(t,e,No,"day"):e>=xc?Uh... function Uh (line 642) | function Uh(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":... function ine (line 642) | function ine(t,e,r){if(typeof e!="string")throw new TypeError("argument ... function sne (line 642) | function sne(t){for(var e=t.map(one).sort(une),r=0,n=1;n=n._index.length)return s?n.onStatError(s):n.error(... method constructor (line 1276) | constructor({prefixes:u,parent:l}={}){this._names={},this._prefixes=u,... method toName (line 1276) | toName(u){return u instanceof e.Name?u:this.name(u)} method name (line 1276) | name(u){return new e.Name(this._newName(u))} method _newName (line 1276) | _newName(u){let l=this._names[u]||this._nameGroup(u);return`${u}${l.in... method _nameGroup (line 1276) | _nameGroup(u){var l,d;if(!((d=(l=this._parent)===null||l===void 0?void... function o (line 642) | function o(){lne(s,!0)} method constructor (line 1276) | constructor(k,I,q){super(),this.varKind=k,this.name=I,this.rhs=q} method render (line 1276) | render({es5:k,_n:I}){let q=k?r.varKinds.var:this.varKind,le=this.rhs==... method optimizeNames (line 1276) | optimizeNames(k,I){if(k[this.name.str])return this.rhs&&(this.rhs=j(th... method names (line 1276) | get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}} function xne (line 642) | function xne(t){for(var e=$ne(t),r=0;r1?"/"+t... function wne (line 642) | function wne(t){for(var e=0;e1&&r[... function w4 (line 642) | function w4(t,e,r){return t+" "+(r?r.start+"-"+r.end:"*")+"/"+e} function R4 (line 642) | function R4(t,e){return` function Ene (line 652) | function Ene(t,e){return e?e instanceof Error?CE(t,e,{expose:!1}):CE(t,e... function kne (line 652) | function kne(t){try{return decodeURIComponent(t)}catch{return-1}} function $ne (line 652) | function $ne(t){return typeof t.getHeaderNames!="function"?Object.keys(t... function O4 (line 652) | function O4(t,e){var r=typeof t.listenerCount!="function"?t.listeners(e)... function Tne (line 652) | function Tne(t){return typeof t.headersSent!="boolean"?!!t._header:t.hea... function ME (line 652) | function ME(t,e){for(var r=[].concat(t||[]),n=0;n=0;i--... function u (line 652) | function u(l){var d,p,m;if(l.length!==4)throw new Error("ipaddr: ipv4 oc... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`${this.label}:`+k} function u (line 652) | function u(l,d){var p,m,f,g,h,v;if(l.length===16)for(this.parts=[],p=m=0... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`${this.label}:`+k} function j4 (line 652) | function j4(t,e){var r=Ane(t);if(!e)return r;typeof e!="function"&&(e=z4... function z4 (line 652) | function z4(t){if(!t)throw new TypeError("argument is required");var e;i... function Mne (line 652) | function Mne(t){for(var e=new Array(t.length),r=0;r0} function xie (line 653) | function xie(t){for(var e=t.split(","),r=!1,n=1,i=0,s=0;i0} function $ie (line 653) | function $ie(t){for(var e=t.split(","),r=0,n=0;r0} function Pie (line 653) | function Pie(t){for(var e=Die(t),r=0,n=0;r0} function lL (line 653) | function lL(t){for(var e=0,r=0;(r=t.indexOf('"',r))!==-1;)e++,r++;return e} function Mie (line 653) | function Mie(t){var e=t.indexOf("="),r,n;return e===-1?r=t:(r=t.substr(0... function Die (line 653) | function Die(t){for(var e=t.split(","),r=1,n=0;rr;){var n=t.charCodeAt(--e);if(n!==32&&n!==9)r... function sse (line 653) | function sse(t,e,r){var n=r&&r.encode||encodeURIComponent;if(typeof n!="... function ose (line 653) | function ose(t){return t.indexOf("%")!==-1?decodeURIComponent(t):t} function ase (line 653) | function ase(t){return Yie.call(t)==="[object Date]"} function cse (line 653) | function cse(t,e){try{return e(t)}catch{return t}} function kL (line 653) | function kL(t,e){if(typeof t!="string")throw new TypeError("header argum... function EL (line 653) | function EL(t){for(var e=0,r=[],n=0,i=0,s=t.length;i function Ase (line 663) | function Ase(){return function(){this.error(404)}} function Nse (line 663) | function Nse(){return function(e){if(this.hasTrailingSlash()){this.error... function zse (line 663) | function zse(){var t=function(e,r,n){t.handle(e,r,n)};return DL(t,Mse.pr... function Fse (line 663) | function Fse(t){if(t==null)throw new TypeError("Object.assign cannot be ... function Hse (line 663) | function Hse(){try{if(!Object.assign)return!1;var t=new String("abc");if... function n (line 663) | function n(f){return typeof f=="string"||f instanceof String} method constructor (line 1276) | constructor(x){super(),this._items=typeof x=="string"?[x]:x} method toString (line 1276) | toString(){return this.str} method emptyStr (line 1276) | emptyStr(){if(this._items.length>1)return!1;let x=this._items[0];retur... method str (line 1276) | get str(){var x;return(x=this._str)!==null&&x!==void 0?x:this._str=thi... method names (line 1276) | get names(){var x;return(x=this._names)!==null&&x!==void 0?x:this._nam... function i (line 663) | function i(f,g){if(Array.isArray(g)){for(var h=0;h{if(d.scope... method scopeCode (line 1276) | scopeCode(u=this._values,l,d){return this._reduceValues(u,p=>{if(p.val... method _reduceValues (line 1276) | _reduceValues(u,l,d={},p){let m=e.nil;for(let f in u){let g=u[f];if(!g... method constructor (line 1276) | constructor(k,I,q){super(),this.lhs=k,this.rhs=I,this.sideEffects=q} method render (line 1276) | render({_n:k}){return`${this.lhs} = ${this.rhs};`+k} method optimizeNames (line 1276) | optimizeNames(k,I){if(!(this.lhs instanceof e.Name&&!k[this.lhs.str]&&... method names (line 1276) | get names(){let k=this.lhs instanceof e.Name?{}:{...this.lhs.names};re... method constructor (line 1280) | constructor(x){var b;this.refs={},this.dynamicAnchors={};let _;typeof ... function c (line 663) | function c(f,g){var h=f.allowedHeaders||f.headers,v=[];return h?h.join&&... method constructor (line 1276) | constructor(k,I,q,le){super(k,q,le),this.op=I} method render (line 1276) | render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k} method _addVocabularies (line 1283) | _addVocabularies(){super._addVocabularies(),n.default.forEach(f=>this.... method _addDefaultMetaSchema (line 1283) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.me... method defaultMeta (line 1283) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.... function u (line 663) | function u(f){var g=f.exposedHeaders;if(g)g.join&&(g=g.join(","));else r... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`${this.label}:`+k} function l (line 663) | function l(f){var g=(typeof f.maxAge=="number"||f.maxAge)&&f.maxAge.toSt... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k} function d (line 663) | function d(f,g){for(var h=0,v=f.length;hI+q.render(k),"")} method optimizeNodes (line 1276) | optimizeNodes(){let{nodes:k}=this,I=k.length;for(;I--;){let q=k[I].opt... method optimizeNames (line 1276) | optimizeNames(k,I){let{nodes:q}=this,le=q.length;for(;le--;){let ce=q[... method names (line 1276) | get names(){return this.nodes.reduce((k,I)=>U(k,I.names),{})} function pU (line 663) | function pU(t){return t.replace(/\\/g,"/").replace(/\/+/g,"/").replace(/... function Do (line 663) | function Do(t,e){let r=pU(t),n=pU(e);if(r.startsWith(n+"/"))return!r.sli... method constructor (line 663) | constructor(e,r=3){this.db=e,this.maxRetries=r} method enqueue (line 663) | enqueue(e,r,n){let i=Date.now();return this.db.prepare(` method claimNextMessage (line 670) | claimNextMessage(e){return this.db.transaction(n=>{let i=Date.now(),s=i-... method confirmProcessed (line 684) | confirmProcessed(e){this.db.prepare("DELETE FROM pending_messages WHERE ... method resetStaleProcessingMessages (line 684) | resetStaleProcessingMessages(e=300*1e3,r){let n=Date.now()-e,i,s;return ... method getAllPending (line 692) | getAllPending(e){return this.db.prepare(` method getQueueMessages (line 696) | getQueueMessages(){return this.db.prepare(` method getStuckCount (line 708) | getStuckCount(e){let r=Date.now()-e;return this.db.prepare(` method retryMessage (line 711) | retryMessage(e){return this.db.prepare(` method resetProcessingToPending (line 715) | resetProcessingToPending(e){return this.db.prepare(` method markSessionMessagesFailed (line 719) | markSessionMessagesFailed(e){let r=Date.now();return this.db.prepare(` method markAllSessionMessagesAbandoned (line 723) | markAllSessionMessagesAbandoned(e){let r=Date.now();return this.db.prepa... method abortMessage (line 727) | abortMessage(e){return this.db.prepare("DELETE FROM pending_messages WHE... method retryAllStuck (line 727) | retryAllStuck(e){let r=Date.now()-e;return this.db.prepare(` method getRecentlyProcessed (line 731) | getRecentlyProcessed(e=10,r=30){let n=Date.now()-r*60*1e3;return this.db... method markFailed (line 738) | markFailed(e){let r=Date.now(),n=this.db.prepare("SELECT retry_count FRO... method resetStuckMessages (line 746) | resetStuckMessages(e){let r=e===0?Date.now():Date.now()-e;return this.db... method getPendingCount (line 750) | getPendingCount(e){return this.db.prepare(` method hasAnyPendingWork (line 753) | hasAnyPendingWork(){let e=Date.now()-3e5,n=this.db.prepare(` method getSessionsWithPendingMessages (line 760) | getSessionsWithPendingMessages(){return this.db.prepare(` method getSessionInfoForMessage (line 763) | getSessionInfoForMessage(e){let n=this.db.prepare(` method clearFailed (line 765) | clearFailed(){return this.db.prepare(` method clearAll (line 768) | clearAll(){return this.db.prepare(` method toPendingMessage (line 771) | toPendingMessage(e){return{type:e.message_type,tool_name:e.tool_name||vo... method constructor (line 771) | constructor(){let e=Qr(),r=[(0,cg.join)(e,"modes"),(0,cg.join)(e,"..","p... method getInstance (line 771) | static getInstance(){return t.instance||(t.instance=new t),t.instance} method parseInheritance (line 771) | parseInheritance(e){let r=e.split("--");if(r.length===1)return{hasParent... method isPlainObject (line 771) | isPlainObject(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)} method deepMerge (line 771) | deepMerge(e,r){let n={...e};for(let i in r){let s=r[i],o=e[i];this.isPla... method loadModeFile (line 771) | loadModeFile(e){let r=(0,cg.join)(this.modesDir,`${e}.json`);if(!(0,jd.e... method loadMode (line 771) | loadMode(e){let r=this.parseInheritance(e);if(!r.hasParent)try{let c=thi... method getActiveMode (line 771) | getActiveMode(){if(!this.activeMode)throw new Error("No mode loaded. Cal... method getObservationTypes (line 771) | getObservationTypes(){return this.getActiveMode().observation_types} method getObservationConcepts (line 771) | getObservationConcepts(){return this.getActiveMode().observation_concepts} method getTypeIcon (line 771) | getTypeIcon(e){return this.getObservationTypes().find(n=>n.id===e)?.emoj... method getWorkEmoji (line 771) | getWorkEmoji(e){return this.getObservationTypes().find(n=>n.id===e)?.wor... method validateType (line 771) | validateType(e){return this.getObservationTypes().some(r=>r.id===e)} method getTypeLabel (line 771) | getTypeLabel(e){return this.getObservationTypes().find(n=>n.id===e)?.lab... function lg (line 771) | function lg(t){if(!t)return[];try{let e=JSON.parse(t);return Array.isArr... function _n (line 771) | function _n(t){return new Date(t).toLocaleString("en-US",{month:"short",... function lr (line 771) | function lr(t){return new Date(t).toLocaleString("en-US",{hour:"numeric"... function ns (line 771) | function ns(t){return new Date(t).toLocaleString("en-US",{month:"short",... function $U (line 771) | function $U(t,e){return ck.default.isAbsolute(t)?ck.default.relative(e,t... function ei (line 771) | function ei(t,e,r){let n=lg(t);if(n.length>0)return $U(n[0],e);if(r){let... function Rc (line 771) | function Rc(t){return t?Math.ceil(t.length/4):0} function is (line 771) | function is(t,e){let r=new Map;for(let i of t){let s=e(i),o=ns(s);r.has(... function dq (line 771) | function dq(t){let e=rv.default.join(t,".git"),r;try{r=(0,nv.statSync)(e... function gp (line 771) | function gp(t){if(!t||t.trim()==="")return y.warn("PROJECT_NAME","Empty ... function fq (line 771) | function fq(t){let e=gp(t);if(!t)return{primary:e,parent:null,isWorktree... function s$ (line 771) | function s$(){let t=hq.default.join((0,gq.homedir)(),".claude-mem","sett... function c$ (line 771) | function c$(t){let e=(t.title?.length||0)+(t.subtitle?.length||0)+(t.nar... function u$ (line 771) | function u$(t){let e=t.length,r=t.reduce((o,a)=>o+c$(a),0),n=t.reduce((o... function Jhe (line 771) | function Jhe(t){return Fe.getInstance().getWorkEmoji(t)} function yp (line 771) | function yp(t,e){let r=c$(t),n=t.discovery_tokens||0,i=Jhe(t.type),s=n>0... function sv (line 771) | function sv(t){return t.showReadTokens||t.showWorkTokens||t.showSavingsA... function l$ (line 771) | function l$(t,e,r){let n=Array.from(r.observationTypes),i=n.map(()=>"?")... function d$ (line 785) | function d$(t,e,r){return t.db.prepare(` function _q (line 791) | function _q(t,e,r){let n=Array.from(r.observationTypes),i=n.map(()=>"?")... function bq (line 805) | function bq(t,e,r){let n=e.map(()=>"?").join(",");return t.db.prepare(` function Xhe (line 811) | function Xhe(t){return t.replace(/\//g,"-")} function Yhe (line 811) | function Yhe(t){try{if(!(0,ov.existsSync)(t))return{userMessage:"",assis... function p$ (line 812) | function p$(t,e,r,n){if(!e.showLastMessage||t.length===0)return{userMess... function xq (line 812) | function xq(t,e){let r=e[0]?.id;return t.map((n,i)=>{let s=i===0?null:e[... function m$ (line 812) | function m$(t,e){let r=[...t.map(n=>({type:"observation",data:n})),...e.... function Sq (line 812) | function Sq(t,e){return new Set(t.slice(0,e).map(r=>r.id))} function wq (line 812) | function wq(){let t=new Date,e=t.toLocaleDateString("en-CA"),r=t.toLocal... function Eq (line 812) | function Eq(t){return[`# $CMEM ${t} ${wq()}`,""]} function kq (line 812) | function kq(){return[`Legend: \u{1F3AF}session ${Fe.getInstance().getAct... function $q (line 812) | function $q(){return[]} function Tq (line 812) | function Tq(){return[]} function Iq (line 812) | function Iq(t,e){let r=[],n=[`${t.totalObservations} obs (${t.totalReadT... function Rq (line 812) | function Rq(t){return[`### ${t}`]} function Oq (line 812) | function Oq(t){return t.toLowerCase().replace(" am","a").replace(" pm","... function Pq (line 812) | function Pq(t,e,r){let n=t.title||"Untitled",i=Fe.getInstance().getTypeI... function Cq (line 812) | function Cq(t,e,r,n){let i=[],s=t.title||"Untitled",o=Fe.getInstance().g... function Aq (line 812) | function Aq(t,e){return[`S${t.id} ${t.request||"Session started"} (${e})`]} function _p (line 812) | function _p(t,e){return e?[`**${t}**: ${e}`,""]:[]} function Nq (line 812) | function Nq(t){return t.assistantMessage?["","---","","**Previously**","... function Mq (line 812) | function Mq(t,e){return["",`Access ${Math.round(t/1e3)}k tokens of past ... function Dq (line 812) | function Dq(t){return`# $CMEM ${t} ${wq()} function jq (line 814) | function jq(){let t=new Date,e=t.toLocaleDateString("en-CA"),r=t.toLocal... function zq (line 814) | function zq(t){return["",`${Y.bright}${Y.cyan}[${t}] recent context, ${j... function Lq (line 814) | function Lq(){let e=Fe.getInstance().getActiveMode().observation_types.m... function Uq (line 814) | function Uq(){return[`${Y.bright}Column Key${Y.reset}`,`${Y.dim} Read: ... function qq (line 814) | function qq(){return[`${Y.dim}Context Index: This semantic index (titles... function Fq (line 814) | function Fq(t,e){let r=[];if(r.push(`${Y.bright}${Y.cyan}Context Economi... function Hq (line 814) | function Hq(t){return[`${Y.bright}${Y.cyan}${t}${Y.reset}`,""]} function Zq (line 814) | function Zq(t){return[`${Y.dim}${t}${Y.reset}`]} function Bq (line 814) | function Bq(t,e,r,n){let i=t.title||"Untitled",s=Fe.getInstance().getTyp... function Vq (line 814) | function Vq(t,e,r,n,i){let s=[],o=t.title||"Untitled",a=Fe.getInstance()... function Gq (line 814) | function Gq(t,e){let r=`${t.request||"Session started"} (${e})`;return[`... function bp (line 814) | function bp(t,e,r){return e?[`${r}${t}:${Y.reset} ${e}`,""]:[]} function Wq (line 814) | function Wq(t){return t.assistantMessage?["","---","",`${Y.bright}${Y.ma... function Kq (line 814) | function Kq(t,e){let r=Math.round(t/1e3);return["",`${Y.dim}Access ${r}k... function Jq (line 814) | function Jq(t){return` function Xq (line 819) | function Xq(t,e,r,n){let i=[];return n?i.push(...zq(t)):i.push(...Eq(t))... function Qhe (line 819) | function Qhe(t){let e=new Map;for(let n of t){let i=n.type==="observatio... function Qq (line 819) | function Qq(t,e){return e.fullObservationField==="narrative"?t.narrative... function ege (line 820) | function ege(t,e,r,n){let i=[];i.push(...Rq(t));let s="";for(let o of e)... function tge (line 820) | function tge(t,e,r,n,i){let s=[];s.push(...Hq(t));let o=null,a="";for(le... function rge (line 820) | function rge(t,e,r,n,i,s){return s?tge(t,e,r,n,i):ege(t,e,r,n)} function e9 (line 820) | function e9(t,e,r,n,i){let s=[],o=Qhe(t);for(let[a,c]of o)s.push(...rge(... function r9 (line 820) | function r9(t,e,r){return!(!t.showLastSummary||!e||!!!(e.investigated||e... function n9 (line 820) | function n9(t,e){let r=[];return e?(r.push(...bp("Investigated",t.invest... function s9 (line 820) | function s9(t,e){return e?Wq(t):Nq(t)} function o9 (line 820) | function o9(t,e,r){return!sv(e)||t.totalDiscoveryTokens<=0||t.savings<=0... function ige (line 820) | function ige(){try{return new Yi}catch(t){if(t.code==="ERR_DLOPEN_FAILED... function sge (line 820) | function sge(t,e){return e?Jq(t):Dq(t)} function oge (line 820) | function oge(t,e,r,n,i,s,o){let a=[],c=u$(e);a.push(...Xq(t,c,n,o));let ... function h$ (line 821) | async function h$(t,e=!1){let r=s$(),n=t?.cwd??process.cwd(),i=gp(n),s=t... function uge (line 821) | function uge(){try{let t=process.stdin;return t.isTTY?!1:(t.readable,!0)... function lge (line 821) | function lge(t){let e=t.trim();if(!e)return{success:!1};try{return{succe... function v9 (line 821) | async function v9(){if(uge())return new Promise((t,e)=>{let r="",n=!1,i=... method normalizeInput (line 821) | normalizeInput(t){let e=t??{};return{sessionId:e.session_id??e.id??e.ses... method formatOutput (line 821) | formatOutput(t){let e=t??{};if(e.hookSpecificOutput){let n={hookSpecific... method normalizeInput (line 821) | normalizeInput(t){let e=t??{},r=!!e.command&&!e.tool_name;return{session... method formatOutput (line 821) | formatOutput(t){return{continue:t.continue??!0}} method normalizeInput (line 821) | normalizeInput(t){let e=t??{},r=e.cwd??process.env.GEMINI_CWD??process.e... method formatOutput (line 821) | formatOutput(t){let e={};if(e.continue=t.continue??!0,t.suppressOutput!=... method normalizeInput (line 821) | normalizeInput(t){let e=t;return{sessionId:e.sessionId??e.session_id??"u... method formatOutput (line 821) | formatOutput(t){return t} function $9 (line 821) | function $9(t){switch(t){case"claude-code":return _9;case"cursor":return... method execute (line 821) | async execute(t){if(!await en())return{hookSpecificOutput:{hookEventName... function pge (line 823) | function pge(t){let e=t.startsWith("~")?(0,I9.homedir)()+t.slice(1):t;e=... function gv (line 823) | function gv(t,e){if(!e||!e.trim())return!1;let r=t.replace(/\\/g,"/"),n=... method execute (line 823) | async execute(t){if(!await en())return{continue:!0,suppressOutput:!0,exi... method execute (line 823) | async execute(t){if(!await en())return{continue:!0,suppressOutput:!0,exi... function R9 (line 823) | function R9(t,e,r=!1){if(!t||!(0,vv.existsSync)(t))return y.warn("PARSER... method execute (line 827) | async execute(t){if(!await en())return{continue:!0,suppressOutput:!0,exi... method execute (line 827) | async execute(t){if(!await en())return{exitCode:st.SUCCESS};let r=Ur(),n... method execute (line 837) | async execute(t){if(!await en())return{continue:!0,suppressOutput:!0,exi... method execute (line 837) | async execute(t){if(!await en())return{continue:!0,suppressOutput:!0};le... function C9 (line 837) | function C9(t){let e=fge[t];return e||(y.warn("HOOK",`Unknown event type... function N9 (line 837) | function N9(t){let e=t instanceof Error?t.message:String(t),r=e.toLowerC... function hge (line 837) | async function hge(t,e,r={}){let n=process.stderr.write.bind(process.std... function yge (line 837) | function yge(t){return vge[t]||"\u{1F4DD}"} function _ge (line 837) | function _ge(t){let e=(t.title?.length||0)+(t.subtitle?.length||0)+(t.na... function bge (line 837) | function bge(t){let e=new Set;try{let n=(0,L9.execSync)("git ls-files",{... function U9 (line 838) | function U9(t,e,r=0){if(r>10)return;let n=["node_modules",".git",".next"... function xge (line 838) | function xge(t,e){let r=n=>{if(!n)return!1;try{let i=JSON.parse(n);if(Ar... function Sge (line 838) | function Sge(t,e,r,n){let i=n*3,s=` function wge (line 845) | function wge(t,e){if(t.files_modified)try{let r=JSON.parse(t.files_modif... function Ege (line 845) | function Ege(t,e){let r=[];if(r.push("# Recent Activity"),r.push(""),r.p... function kge (line 847) | function kge(t,e){let r=sr.default.resolve(t);if(r.includes("/.git/")||r... function $ge (line 855) | function $ge(t,e,r,n,i,s,o){try{if(!(0,or.existsSync)(e))return{success:... function Tge (line 855) | async function Tge(t){try{let e=process.cwd(),r=Ee.loadFromFile(gge),n=p... function Ige (line 855) | async function Ige(t){try{let i=function(c){let u=["node_modules",".git"... function e (line 855) | function e(i){} method constructor (line 1280) | constructor(n){super("validation failed"),this.errors=n,this.ajv=this.... function r (line 855) | function r(i){throw new Error} method constructor (line 1276) | constructor(x){if(super(),!t.IDENTIFIER.test(x))throw new Error("CodeG... method toString (line 1276) | toString(){return this.str} method emptyStr (line 1276) | emptyStr(){return!1} method names (line 1276) | get names(){return{[this.str]:1}} method constructor (line 1276) | constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.valu... method constructor (line 1280) | constructor(i,s,o,a){super(a||`can't resolve reference ${o} from id ${... function n (line 855) | function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).joi... method constructor (line 1276) | constructor(x){super(),this._items=typeof x=="string"?[x]:x} method toString (line 1276) | toString(){return this.str} method emptyStr (line 1276) | emptyStr(){if(this._items.length>1)return!1;let x=this._items[0];retur... method str (line 1276) | get str(){var x;return(x=this._str)!==null&&x!==void 0?x:this._str=thi... method names (line 1276) | get names(){var x;return(x=this._names)!==null&&x!==void 0?x:this._nam... method errors (line 855) | get errors(){return this.issues} method constructor (line 855) | constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...... method format (line 855) | format(e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{fo... method assert (line 855) | static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: $... method toString (line 855) | toString(){return this.message} method message (line 855) | get message(){return JSON.stringify(this.issues,Ye.jsonStringifyReplacer... method isEmpty (line 855) | get isEmpty(){return this.issues.length===0} method flatten (line 855) | flatten(e=r=>r.message){let r=Object.create(null),n=[];for(let i of this... method formErrors (line 855) | get formErrors(){return this.flatten()} function su (line 855) | function su(){return J9} function Q (line 855) | function Q(t,e){let r=su(),n=Ep({issueData:e,data:t.data,path:t.path,err... method constructor (line 855) | constructor(){this.value="valid"} method dirty (line 855) | dirty(){this.value==="valid"&&(this.value="dirty")} method abort (line 855) | abort(){this.value!=="aborted"&&(this.value="aborted")} method mergeArray (line 855) | static mergeArray(e,r){let n=[];for(let i of r){if(i.status==="aborted")... method mergeObjectAsync (line 855) | static async mergeObjectAsync(e,r){let n=[];for(let i of r){let s=await ... method mergeObjectSync (line 855) | static mergeObjectSync(e,r){let n={};for(let i of r){let{key:s,value:o}=... method constructor (line 855) | constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this.... method path (line 855) | get path(){return this._cachedPath.length||(Array.isArray(this._key)?thi... method error (line 855) | get error(){if(this._error)return this._error;let r=new ln(t.common.issu... function Ce (line 855) | function Ce(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,requir... method description (line 855) | get description(){return this._def.description} method _getType (line 855) | _getType(e){return Ci(e.data)} method _getOrReturnCtx (line 855) | _getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parse... method _processInputParams (line 855) | _processInputParams(e){return{status:new Sr,ctx:{common:e.parent.common,... method _parseSync (line 855) | _parseSync(e){let r=this._parse(e);if(ou(r))throw new Error("Synchronous... method _parseAsync (line 855) | _parseAsync(e){let r=this._parse(e);return Promise.resolve(r)} method parse (line 855) | parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.... method safeParse (line 855) | safeParse(e,r){let n={common:{issues:[],async:r?.async??!1,contextualErr... method "~validate" (line 855) | "~validate"(e){let r={common:{issues:[],async:!!this["~standard"].async}... method parseAsync (line 855) | async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)... method safeParseAsync (line 855) | async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r?... method refine (line 855) | refine(e,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof... method refinement (line 855) | refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeo... method _refinement (line 855) | _refinement(e){return new Hn({schema:this,typeName:ye.ZodEffects,effect:... method superRefine (line 855) | superRefine(e){return this._refinement(e)} method constructor (line 855) | constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.... method optional (line 855) | optional(){return Fn.create(this,this._def)} method nullable (line 855) | nullable(){return Mi.create(this,this._def)} method nullish (line 855) | nullish(){return this.nullable().optional()} method array (line 855) | array(){return gs.create(this)} method promise (line 855) | promise(){return Ks.create(this,this._def)} method or (line 855) | or(e){return na.create([this,e],this._def)} method and (line 855) | and(e){return ia.create(this,e,this._def)} method transform (line 855) | transform(e){return new Hn({...Ce(this._def),schema:this,typeName:ye.Zod... method default (line 855) | default(e){let r=typeof e=="function"?e:()=>e;return new ua({...Ce(this.... method brand (line 855) | brand(){return new kp({typeName:ye.ZodBranded,type:this,...Ce(this._def)})} method catch (line 855) | catch(e){let r=typeof e=="function"?e:()=>e;return new la({...Ce(this._d... method describe (line 855) | describe(e){let r=this.constructor;return new r({...this._def,descriptio... method pipe (line 855) | pipe(e){return $p.create(this,e)} method readonly (line 855) | readonly(){return da.create(this)} method isOptional (line 855) | isOptional(){return this.safeParse(void 0).success} method isNullable (line 855) | isNullable(){return this.safeParse(null).success} function K$ (line 855) | function K$(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}... function mF (line 855) | function mF(t){return new RegExp(`^${K$(t)}$`)} function fF (line 855) | function fF(t){let e=`${W$}T${K$(t)}`,r=[];return r.push(t.local?"Z?":"Z... function hF (line 855) | function hF(t,e){return!!((e==="v4"||!e)&&oF.test(t)||(e==="v6"||!e)&&cF... function gF (line 855) | function gF(t,e){if(!rF.test(t))return!1;try{let[r]=t.split(".");if(!r)r... function vF (line 855) | function vF(t,e){return!!((e==="v4"||!e)&&aF.test(t)||(e==="v6"||!e)&&uF... method _parse (line 855) | _parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!... method _regex (line 855) | _regex(e,r,n){return this.refinement(i=>e.test(i),{validation:r,code:B.i... method _addCheck (line 855) | _addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})} method email (line 855) | email(e){return this._addCheck({kind:"email",...de.errToObj(e)})} method url (line 855) | url(e){return this._addCheck({kind:"url",...de.errToObj(e)})} method emoji (line 855) | emoji(e){return this._addCheck({kind:"emoji",...de.errToObj(e)})} method uuid (line 855) | uuid(e){return this._addCheck({kind:"uuid",...de.errToObj(e)})} method nanoid (line 855) | nanoid(e){return this._addCheck({kind:"nanoid",...de.errToObj(e)})} method cuid (line 855) | cuid(e){return this._addCheck({kind:"cuid",...de.errToObj(e)})} method cuid2 (line 855) | cuid2(e){return this._addCheck({kind:"cuid2",...de.errToObj(e)})} method ulid (line 855) | ulid(e){return this._addCheck({kind:"ulid",...de.errToObj(e)})} method base64 (line 855) | base64(e){return this._addCheck({kind:"base64",...de.errToObj(e)})} method base64url (line 855) | base64url(e){return this._addCheck({kind:"base64url",...de.errToObj(e)})} method jwt (line 855) | jwt(e){return this._addCheck({kind:"jwt",...de.errToObj(e)})} method ip (line 855) | ip(e){return this._addCheck({kind:"ip",...de.errToObj(e)})} method cidr (line 855) | cidr(e){return this._addCheck({kind:"cidr",...de.errToObj(e)})} method datetime (line 855) | datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",pr... method date (line 855) | date(e){return this._addCheck({kind:"date",message:e})} method time (line 855) | time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:... method duration (line 855) | duration(e){return this._addCheck({kind:"duration",...de.errToObj(e)})} method regex (line 855) | regex(e,r){return this._addCheck({kind:"regex",regex:e,...de.errToObj(r)})} method includes (line 855) | includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?... method startsWith (line 855) | startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...de.e... method endsWith (line 855) | endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...de.errTo... method min (line 855) | min(e,r){return this._addCheck({kind:"min",value:e,...de.errToObj(r)})} method max (line 855) | max(e,r){return this._addCheck({kind:"max",value:e,...de.errToObj(r)})} method length (line 855) | length(e,r){return this._addCheck({kind:"length",value:e,...de.errToObj(... method nonempty (line 855) | nonempty(e){return this.min(1,de.errToObj(e))} method trim (line 855) | trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"tri... method toLowerCase (line 855) | toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{ki... method toUpperCase (line 855) | toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{ki... method isDatetime (line 855) | get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")} method isDate (line 855) | get isDate(){return!!this._def.checks.find(e=>e.kind==="date")} method isTime (line 855) | get isTime(){return!!this._def.checks.find(e=>e.kind==="time")} method isDuration (line 855) | get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")} method isEmail (line 855) | get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")} method isURL (line 855) | get isURL(){return!!this._def.checks.find(e=>e.kind==="url")} method isEmoji (line 855) | get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")} method isUUID (line 855) | get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")} method isNANOID (line 855) | get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")} method isCUID (line 855) | get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")} method isCUID2 (line 855) | get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")} method isULID (line 855) | get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")} method isIP (line 855) | get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")} method isCIDR (line 855) | get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")} method isBase64 (line 855) | get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")} method isBase64url (line 855) | get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")} method minLength (line 855) | get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&... method maxLength (line 855) | get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&... function yF (line 855) | function yF(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toSt... method constructor (line 855) | constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,th... method _parse (line 855) | _parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!... method gte (line 855) | gte(e,r){return this.setLimit("min",e,!0,de.toString(r))} method gt (line 855) | gt(e,r){return this.setLimit("min",e,!1,de.toString(r))} method lte (line 855) | lte(e,r){return this.setLimit("max",e,!0,de.toString(r))} method lt (line 855) | lt(e,r){return this.setLimit("max",e,!1,de.toString(r))} method setLimit (line 855) | setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks... method _addCheck (line 855) | _addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})} method int (line 855) | int(e){return this._addCheck({kind:"int",message:de.toString(e)})} method positive (line 855) | positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,messa... method negative (line 855) | negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,messa... method nonpositive (line 855) | nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,me... method nonnegative (line 855) | nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,me... method multipleOf (line 855) | multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message... method finite (line 855) | finite(e){return this._addCheck({kind:"finite",message:de.toString(e)})} method safe (line 855) | safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_... method minValue (line 855) | get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&... method maxValue (line 855) | get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&... method isInt (line 855) | get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="m... method isFinite (line 855) | get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kin... method constructor (line 855) | constructor(){super(...arguments),this.min=this.gte,this.max=this.lte} method _parse (line 855) | _parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return thi... method _getInvalidInput (line 855) | _getInvalidInput(e){let r=this._getOrReturnCtx(e);return Q(r,{code:B.inv... method gte (line 855) | gte(e,r){return this.setLimit("min",e,!0,de.toString(r))} method gt (line 855) | gt(e,r){return this.setLimit("min",e,!1,de.toString(r))} method lte (line 855) | lte(e,r){return this.setLimit("max",e,!0,de.toString(r))} method lt (line 855) | lt(e,r){return this.setLimit("max",e,!1,de.toString(r))} method setLimit (line 855) | setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks... method _addCheck (line 855) | _addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})} method positive (line 855) | positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:... method negative (line 855) | negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:... method nonpositive (line 855) | nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusi... method nonnegative (line 855) | nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusi... method multipleOf (line 855) | multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message... method minValue (line 855) | get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&... method maxValue (line 855) | get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&... method _parse (line 855) | _parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==ne.b... method _parse (line 855) | _parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e... method _addCheck (line 855) | _addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})} method min (line 855) | min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:de.... method max (line 855) | max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:de.... method minDate (line 855) | get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(... method maxDate (line 855) | get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(... method _parse (line 855) | _parse(e){if(this._getType(e)!==ne.symbol){let n=this._getOrReturnCtx(e)... method _parse (line 855) | _parse(e){if(this._getType(e)!==ne.undefined){let n=this._getOrReturnCtx... method _parse (line 855) | _parse(e){if(this._getType(e)!==ne.null){let n=this._getOrReturnCtx(e);r... method constructor (line 855) | constructor(){super(...arguments),this._any=!0} method _parse (line 855) | _parse(e){return Ar(e.data)} method constructor (line 855) | constructor(){super(...arguments),this._unknown=!0} method _parse (line 855) | _parse(e){return Ar(e.data)} method _parse (line 855) | _parse(e){let r=this._getOrReturnCtx(e);return Q(r,{code:B.invalid_type,... method _parse (line 855) | _parse(e){if(this._getType(e)!==ne.undefined){let n=this._getOrReturnCtx... method _parse (line 855) | _parse(e){let{ctx:r,status:n}=this._processInputParams(e),i=this._def;if... method element (line 855) | get element(){return this._def.type} method min (line 855) | min(e,r){return new t({...this._def,minLength:{value:e,message:de.toStri... method max (line 855) | max(e,r){return new t({...this._def,maxLength:{value:e,message:de.toStri... method length (line 855) | length(e,r){return new t({...this._def,exactLength:{value:e,message:de.t... method nonempty (line 855) | nonempty(e){return this.min(1,e)} function Qo (line 855) | function Qo(t){if(t instanceof dn){let e={};for(let r in t.shape){let n=... method constructor (line 855) | constructor(){super(...arguments),this._cached=null,this.nonstrict=this.... method _getCached (line 855) | _getCached(){if(this._cached!==null)return this._cached;let e=this._def.... method _parse (line 855) | _parse(e){if(this._getType(e)!==ne.object){let u=this._getOrReturnCtx(e)... method shape (line 855) | get shape(){return this._def.shape()} method strict (line 855) | strict(e){return de.errToObj,new t({...this._def,unknownKeys:"strict",..... method strip (line 855) | strip(){return new t({...this._def,unknownKeys:"strip"})} method passthrough (line 855) | passthrough(){return new t({...this._def,unknownKeys:"passthrough"})} method extend (line 855) | extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),..... method merge (line 855) | merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.ca... method setKey (line 855) | setKey(e,r){return this.augment({[e]:r})} method catchall (line 855) | catchall(e){return new t({...this._def,catchall:e})} method pick (line 855) | pick(e){let r={};for(let n of Ye.objectKeys(e))e[n]&&this.shape[n]&&(r[n... method omit (line 855) | omit(e){let r={};for(let n of Ye.objectKeys(this.shape))e[n]||(r[n]=this... method deepPartial (line 855) | deepPartial(){return Qo(this)} method partial (line 855) | partial(e){let r={};for(let n of Ye.objectKeys(this.shape)){let i=this.s... method required (line 855) | required(e){let r={};for(let n of Ye.objectKeys(this.shape))if(e&&!e[n])... method keyof (line 855) | keyof(){return J$(Ye.objectKeys(this.shape))} method _parse (line 855) | _parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;fun... method options (line 855) | get options(){return this._def.options} method _parse (line 855) | _parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ne.ob... method discriminator (line 855) | get discriminator(){return this._def.discriminator} method options (line 855) | get options(){return this._def.options} method optionsMap (line 855) | get optionsMap(){return this._def.optionsMap} method create (line 855) | static create(e,r,n){let i=new Map;for(let s of r){let o=Ai(s.shape[e]);... function kv (line 855) | function kv(t,e){let r=Ci(t),n=Ci(e);if(t===e)return{valid:!0,data:t};if... method _parse (line 855) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=(s,o)=>{if(x... method _parse (line 855) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedTyp... method items (line 855) | get items(){return this._def.items} method rest (line 855) | rest(e){return new t({...this._def,rest:e})} method keySchema (line 855) | get keySchema(){return this._def.keyType} method valueSchema (line 855) | get valueSchema(){return this._def.valueType} method _parse (line 855) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedTyp... method element (line 855) | get element(){return this._def.valueType} method create (line 855) | static create(e,r,n){return r instanceof Ue?new t({keyType:e,valueType:r... method keySchema (line 855) | get keySchema(){return this._def.keyType} method valueSchema (line 855) | get valueSchema(){return this._def.valueType} method _parse (line 855) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedTyp... method _parse (line 855) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedTyp... method min (line 855) | min(e,r){return new t({...this._def,minSize:{value:e,message:de.toString... method max (line 855) | max(e,r){return new t({...this._def,maxSize:{value:e,message:de.toString... method size (line 855) | size(e,r){return this.min(e,r).max(e,r)} method nonempty (line 855) | nonempty(e){return this.min(1,e)} method constructor (line 855) | constructor(){super(...arguments),this.validate=this.implement} method _parse (line 855) | _parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ne.fu... method parameters (line 855) | parameters(){return this._def.args} method returnType (line 855) | returnType(){return this._def.returns} method args (line 855) | args(...e){return new t({...this._def,args:Ni.create(e).rest(hs.create()... method returns (line 855) | returns(e){return new t({...this._def,returns:e})} method implement (line 855) | implement(e){return this.parse(e)} method strictImplement (line 855) | strictImplement(e){return this.parse(e)} method create (line 855) | static create(e,r,n){return new t({args:e||Ni.create([]).rest(hs.create(... method schema (line 855) | get schema(){return this._def.getter()} method _parse (line 855) | _parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter... method _parse (line 855) | _parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);ret... method value (line 855) | get value(){return this._def.value} function J$ (line 855) | function J$(t,e){return new aa({values:t,typeName:ye.ZodEnum,...Ce(e)})} method _parse (line 855) | _parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=th... method options (line 855) | get options(){return this._def.values} method enum (line 855) | get enum(){let e={};for(let r of this._def.values)e[r]=r;return e} method Values (line 855) | get Values(){let e={};for(let r of this._def.values)e[r]=r;return e} method Enum (line 855) | get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e} method extract (line 855) | extract(e,r=this._def){return t.create(e,{...this._def,...r})} method exclude (line 855) | exclude(e,r=this._def){return t.create(this.options.filter(n=>!e.include... method _parse (line 855) | _parse(e){let r=Ye.getValidEnumValues(this._def.values),n=this._getOrRet... method enum (line 855) | get enum(){return this._def.values} method unwrap (line 855) | unwrap(){return this._def.type} method _parse (line 855) | _parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==ne.pr... method innerType (line 855) | innerType(){return this._def.schema} method sourceType (line 855) | sourceType(){return this._def.schema._def.typeName===ye.ZodEffects?this.... method _parse (line 855) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=this._def.ef... method _parse (line 855) | _parse(e){return this._getType(e)===ne.undefined?Ar(void 0):this._def.in... method unwrap (line 855) | unwrap(){return this._def.innerType} method _parse (line 855) | _parse(e){return this._getType(e)===ne.null?Ar(null):this._def.innerType... method unwrap (line 855) | unwrap(){return this._def.innerType} method _parse (line 855) | _parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parse... method removeDefault (line 855) | removeDefault(){return this._def.innerType} method _parse (line 855) | _parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.co... method removeCatch (line 855) | removeCatch(){return this._def.innerType} method _parse (line 855) | _parse(e){if(this._getType(e)!==ne.nan){let n=this._getOrReturnCtx(e);re... method _parse (line 855) | _parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._d... method unwrap (line 855) | unwrap(){return this._def.type} method _parse (line 855) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.as... method create (line 855) | static create(e,r){return new t({in:e,out:r,typeName:ye.ZodPipeline})} method _parse (line 855) | _parse(e){let r=this._def.innerType._parse(e),n=i=>(Ws(i)&&(i.value=Obje... method unwrap (line 855) | unwrap(){return this._def.innerType} function O (line 855) | function O(t,e,r){function n(a,c){if(a._zod||Object.defineProperty(a,"_z... method constructor (line 855) | constructor(){super("Encountered Promise during synchronous parse. Use .... method constructor (line 855) | constructor(e){super(`Encountered unidirectional transform during encode... function er (line 855) | function er(t){return t&&Object.assign(Tp,t),Tp} function SF (line 855) | function SF(t){return t} function wF (line 855) | function wF(t){return t} function EF (line 855) | function EF(t){} function kF (line 855) | function kF(t){throw new Error("Unexpected value in exhaustive check")} function $F (line 855) | function $F(t){} function yu (line 855) | function yu(t){let e=Object.values(t).filter(n=>typeof n=="number");retu... function _e (line 855) | function _e(t,e="|"){return t.map(r=>be(r)).join(e)} function pa (line 855) | function pa(t,e){return typeof e=="bigint"?e.toString():e} function ma (line 855) | function ma(t){return{get value(){{let r=t();return Object.definePropert... function vs (line 855) | function vs(t){return t==null} function _u (line 855) | function _u(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:... function Ov (line 855) | function Ov(t,e){let r=(t.toString().split(".")[1]||"").length,n=e.toStr... function Me (line 855) | function Me(t,e,r){let n;Object.defineProperty(t,e,{get(){if(n!==Y$)retu... function TF (line 855) | function TF(t){return Object.create(Object.getPrototypeOf(t),Object.getO... function ys (line 855) | function ys(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumer... function Di (line 855) | function Di(...t){let e={};for(let r of t){let n=Object.getOwnPropertyDe... function IF (line 855) | function IF(t){return Di(t._zod.def)} function RF (line 855) | function RF(t,e){return e?e.reduce((r,n)=>r?.[n],t):t} function OF (line 855) | function OF(t){let e=Object.keys(t),r=e.map(n=>t[n]);return Promise.all(... function PF (line 855) | function PF(t=10){let e="abcdefghijklmnopqrstuvwxyz",r="";for(let n=0;n<... function Ip (line 855) | function Ip(t){return JSON.stringify(t)} function Pv (line 855) | function Pv(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").rep... function Xs (line 855) | function Xs(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)} function _s (line 855) | function _s(t){if(Xs(t)===!1)return!1;let e=t.constructor;if(e===void 0|... function Av (line 855) | function Av(t){return _s(t)?{...t}:Array.isArray(t)?[...t]:t} function CF (line 855) | function CF(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.ca... function En (line 855) | function En(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")} function Nr (line 855) | function Nr(t,e,r){let n=new t._zod.constr(e??t._zod.def);return(!e||r?.... function ee (line 855) | function ee(t){let e=t;if(!e)return{};if(typeof e=="string")return{error... function NF (line 855) | function NF(t){let e;return new Proxy({},{get(r,n,i){return e??(e=t()),R... function be (line 855) | function be(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="str... function Mv (line 855) | function Mv(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="option... function Q$ (line 855) | function Q$(t,e){let r=t._zod.def,n=r.checks;if(n&&n.length>0)throw new ... function eT (line 855) | function eT(t,e){let r=t._zod.def,n=r.checks;if(n&&n.length>0)throw new ... function tT (line 855) | function tT(t,e){if(!_s(e))throw new Error("Invalid input to extend: exp... function rT (line 855) | function rT(t,e){if(!_s(e))throw new Error("Invalid input to safeExtend:... function MF (line 855) | function MF(t,e){let r=Di(t._zod.def,{get shape(){let n={...t._zod.def.s... function nT (line 855) | function nT(t,e,r){let i=e._zod.def.checks;if(i&&i.length>0)throw new Er... function iT (line 855) | function iT(t,e,r){let n=Di(e._zod.def,{get shape(){let i=e._zod.def.sha... function bs (line 855) | function bs(t,e=0){if(t.aborted===!0)return!0;for(let r=e;r{var n;return(n=r).path??(n.path=[]),r.... function vu (line 855) | function vu(t){return typeof t=="string"?t:t?.message} function Wr (line 855) | function Wr(t,e,r){let n={...t,path:t.path??[]};if(!t.message){let i=vu(... function xu (line 855) | function xu(t){return t instanceof Set?"set":t instanceof Map?"map":t in... function Su (line 855) | function Su(t){return Array.isArray(t)?"array":typeof t=="string"?"strin... function we (line 855) | function we(t){let e=typeof t;switch(e){case"number":return Number.isNaN... function fa (line 855) | function fa(...t){let[e,r,n]=t;return typeof e=="string"?{message:e,code... function DF (line 855) | function DF(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Num... function sT (line 855) | function sT(t){let e=atob(t),r=new Uint8Array(e.length);for(let n=0;ne.toString(16).padStart(2,"0"... method constructor (line 855) | constructor(...e){} function Pp (line 855) | function Pp(t,e=r=>r.message){let r={},n=[];for(let i of t.issues)i.path... function Cp (line 855) | function Cp(t,e=r=>r.message){let r={_errors:[]},n=i=>{for(let s of i.is... function Gv (line 855) | function Gv(){return new RegExp(JF,"u")} function yT (line 855) | function yT(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.preci... function ry (line 855) | function ry(t){return new RegExp(`^${yT(t)}$`)} function ny (line 855) | function ny(t){let e=yT({precision:t.precision}),r=["Z"];t.local&&r.push... function Pu (line 855) | function Pu(t,e){return new RegExp(`^[A-Za-z0-9+/]{${t}}${e}$`)} function Cu (line 855) | function Cu(t){return new RegExp(`^[A-Za-z0-9_-]{${t}}$`)} function _T (line 855) | function _T(t,e,r){t.issues.length&&e.issues.push(...pn(r,t.issues))} method constructor (line 855) | constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)} method indented (line 855) | indented(e){this.indent+=1,e(this),this.indent-=1} method write (line 855) | write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{exe... method compile (line 856) | compile(){let e=Function,r=this?.args,i=[...(this?.content??[""]).map(s=... function YT (line 857) | function YT(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return ... function h8 (line 857) | function h8(t){if(!Ap.test(t))return!1;let e=t.replace(/[-_]/g,n=>n==="-... function g8 (line 857) | function g8(t,e=null){try{let r=t.split(".");if(r.length!==3)return!1;le... function qT (line 857) | function qT(t,e,r){t.issues.length&&e.issues.push(...pn(r,t.issues)),e.v... function Up (line 857) | function Up(t,e,r,n,i){if(t.issues.length){if(i&&!(r in n))return;e.issu... function QT (line 857) | function QT(t){let e=Object.keys(t.shape);for(let n of e)if(!t.shape?.[n... function eI (line 857) | function eI(t,e,r,n,i,s){let o=[],a=i.keySet,c=i.catchall._zod,u=c.def.t... function FT (line 891) | function FT(t,e,r,n){for(let s of t)if(s.issues.length===0)return e.valu... function HT (line 891) | function HT(t,e,r,n){let i=t.filter(s=>s.issues.length===0);return i.len... function fy (line 891) | function fy(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&... function ZT (line 891) | function ZT(t,e,r){let n=new Map,i;for(let a of e.issues)if(a.code==="un... function Dp (line 891) | function Dp(t,e,r){t.issues.length&&e.issues.push(...pn(r,t.issues)),e.v... function BT (line 891) | function BT(t,e,r,n,i,s,o){t.issues.length&&(bu.has(typeof n)?r.issues.p... function VT (line 891) | function VT(t,e){t.issues.length&&e.issues.push(...t.issues),e.value.add... function GT (line 891) | function GT(t,e){return t.issues.length&&e===void 0?{issues:[],value:voi... function WT (line 891) | function WT(t,e){return t.value===void 0&&(t.value=e.defaultValue),t} function KT (line 891) | function KT(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push... function jp (line 891) | function jp(t,e,r){return t.issues.length?(t.aborted=!0,t):e._zod.run({v... function zp (line 891) | function zp(t,e,r){if(t.issues.length)return t.aborted=!0,t;if((r.direct... function Lp (line 891) | function Lp(t,e,r,n){return t.issues.length?(t.aborted=!0,t):r._zod.run(... function JT (line 891) | function JT(t){return t.value=Object.freeze(t.value),t} function XT (line 891) | function XT(t,e,r,n){if(!t){let i={code:"custom",input:r,inst:n,path:[..... function e (line 891) | function e(i){return t[i]??null} method constructor (line 1280) | constructor(n){super("validation failed"),this.errors=n,this.ajv=this.... function S_ (line 891) | function S_(){return{localeError:y8()}} method constructor (line 891) | constructor(){this._map=new WeakMap,this._idmap=new Map} method add (line 891) | add(e,...r){let n=r[0];return this._map.set(e,n),n&&typeof n=="object"&&... method clear (line 891) | clear(){return this._map=new WeakMap,this._idmap=new Map,this} method remove (line 891) | remove(e){let r=this._map.get(e);return r&&typeof r=="object"&&"id"in r&... method get (line 891) | get(e){let r=e._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;... method has (line 891) | has(e){return this._map.has(e)} function k_ (line 891) | function k_(){return new E_} function $_ (line 891) | function $_(t,e){return new t({type:"string",...ee(e)})} function Bp (line 891) | function Bp(t,e){return new t({type:"string",format:"email",check:"strin... function ju (line 891) | function ju(t,e){return new t({type:"string",format:"guid",check:"string... function Vp (line 891) | function Vp(t,e){return new t({type:"string",format:"uuid",check:"string... function Gp (line 891) | function Gp(t,e){return new t({type:"string",format:"uuid",check:"string... function Wp (line 891) | function Wp(t,e){return new t({type:"string",format:"uuid",check:"string... function Kp (line 891) | function Kp(t,e){return new t({type:"string",format:"uuid",check:"string... function zu (line 891) | function zu(t,e){return new t({type:"string",format:"url",check:"string_... function Jp (line 891) | function Jp(t,e){return new t({type:"string",format:"emoji",check:"strin... function Xp (line 891) | function Xp(t,e){return new t({type:"string",format:"nanoid",check:"stri... function Yp (line 891) | function Yp(t,e){return new t({type:"string",format:"cuid",check:"string... function Qp (line 891) | function Qp(t,e){return new t({type:"string",format:"cuid2",check:"strin... function em (line 891) | function em(t,e){return new t({type:"string",format:"ulid",check:"string... function tm (line 891) | function tm(t,e){return new t({type:"string",format:"xid",check:"string_... function rm (line 891) | function rm(t,e){return new t({type:"string",format:"ksuid",check:"strin... function nm (line 891) | function nm(t,e){return new t({type:"string",format:"ipv4",check:"string... function im (line 891) | function im(t,e){return new t({type:"string",format:"ipv6",check:"string... function T_ (line 891) | function T_(t,e){return new t({type:"string",format:"mac",check:"string_... function sm (line 891) | function sm(t,e){return new t({type:"string",format:"cidrv4",check:"stri... function om (line 891) | function om(t,e){return new t({type:"string",format:"cidrv6",check:"stri... function am (line 891) | function am(t,e){return new t({type:"string",format:"base64",check:"stri... function cm (line 891) | function cm(t,e){return new t({type:"string",format:"base64url",check:"s... function um (line 891) | function um(t,e){return new t({type:"string",format:"e164",check:"string... function lm (line 891) | function lm(t,e){return new t({type:"string",format:"jwt",check:"string_... function I_ (line 891) | function I_(t,e){return new t({type:"string",format:"datetime",check:"st... function R_ (line 891) | function R_(t,e){return new t({type:"string",format:"date",check:"string... function O_ (line 891) | function O_(t,e){return new t({type:"string",format:"time",check:"string... function P_ (line 891) | function P_(t,e){return new t({type:"string",format:"duration",check:"st... function C_ (line 891) | function C_(t,e){return new t({type:"number",checks:[],...ee(e)})} function A_ (line 891) | function A_(t,e){return new t({type:"number",check:"number_format",abort... function N_ (line 891) | function N_(t,e){return new t({type:"number",check:"number_format",abort... function M_ (line 891) | function M_(t,e){return new t({type:"number",check:"number_format",abort... function D_ (line 891) | function D_(t,e){return new t({type:"number",check:"number_format",abort... function j_ (line 891) | function j_(t,e){return new t({type:"number",check:"number_format",abort... function z_ (line 891) | function z_(t,e){return new t({type:"boolean",...ee(e)})} function L_ (line 891) | function L_(t,e){return new t({type:"bigint",...ee(e)})} function U_ (line 891) | function U_(t,e){return new t({type:"bigint",check:"bigint_format",abort... function q_ (line 891) | function q_(t,e){return new t({type:"bigint",check:"bigint_format",abort... function F_ (line 891) | function F_(t,e){return new t({type:"symbol",...ee(e)})} function H_ (line 891) | function H_(t,e){return new t({type:"undefined",...ee(e)})} function Z_ (line 891) | function Z_(t,e){return new t({type:"null",...ee(e)})} function B_ (line 891) | function B_(t){return new t({type:"any"})} function V_ (line 891) | function V_(t){return new t({type:"unknown"})} function G_ (line 891) | function G_(t,e){return new t({type:"never",...ee(e)})} function W_ (line 891) | function W_(t,e){return new t({type:"void",...ee(e)})} function K_ (line 891) | function K_(t,e){return new t({type:"date",...ee(e)})} function J_ (line 891) | function J_(t,e){return new t({type:"nan",...ee(e)})} function ji (line 891) | function ji(t,e){return new py({check:"less_than",...ee(e),value:t,inclu... function mn (line 891) | function mn(t,e){return new py({check:"less_than",...ee(e),value:t,inclu... function zi (line 891) | function zi(t,e){return new my({check:"greater_than",...ee(e),value:t,in... function Dr (line 891) | function Dr(t,e){return new my({check:"greater_than",...ee(e),value:t,in... function X_ (line 891) | function X_(t){return zi(0,t)} function Y_ (line 891) | function Y_(t){return ji(0,t)} function Q_ (line 891) | function Q_(t){return mn(0,t)} function eb (line 891) | function eb(t){return Dr(0,t)} function eo (line 891) | function eo(t,e){return new xT({check:"multiple_of",...ee(e),value:t})} function to (line 891) | function to(t,e){return new ET({check:"max_size",...ee(e),maximum:t})} function Li (line 891) | function Li(t,e){return new kT({check:"min_size",...ee(e),minimum:t})} function ga (line 891) | function ga(t,e){return new $T({check:"size_equals",...ee(e),size:t})} function va (line 891) | function va(t,e){return new TT({check:"max_length",...ee(e),maximum:t})} function xs (line 891) | function xs(t,e){return new IT({check:"min_length",...ee(e),minimum:t})} function ya (line 891) | function ya(t,e){return new RT({check:"length_equals",...ee(e),length:t})} function Lu (line 891) | function Lu(t,e){return new OT({check:"string_format",format:"regex",...... function Uu (line 891) | function Uu(t){return new PT({check:"string_format",format:"lowercase",.... function qu (line 891) | function qu(t){return new CT({check:"string_format",format:"uppercase",.... function Fu (line 891) | function Fu(t,e){return new AT({check:"string_format",format:"includes",... function Hu (line 891) | function Hu(t,e){return new NT({check:"string_format",format:"starts_wit... function Zu (line 891) | function Zu(t,e){return new MT({check:"string_format",format:"ends_with"... function tb (line 891) | function tb(t,e,r){return new DT({check:"property",property:t,schema:e,.... function Bu (line 891) | function Bu(t,e){return new jT({check:"mime_type",mime:t,...ee(e)})} function ui (line 891) | function ui(t){return new zT({check:"overwrite",tx:t})} function Vu (line 891) | function Vu(t){return ui(e=>e.normalize(t))} function Gu (line 891) | function Gu(){return ui(t=>t.trim())} function Wu (line 891) | function Wu(){return ui(t=>t.toLowerCase())} function Ku (line 891) | function Ku(){return ui(t=>t.toUpperCase())} function dm (line 891) | function dm(){return ui(t=>Pv(t))} function iI (line 891) | function iI(t,e,r){return new t({type:"array",element:e,...ee(r)})} function rb (line 891) | function rb(t,e){return new t({type:"file",...ee(e)})} function nb (line 891) | function nb(t,e,r){let n=ee(r);return n.abort??(n.abort=!0),new t({type:... function ib (line 891) | function ib(t,e,r){return new t({type:"custom",check:"custom",fn:e,...ee... function sb (line 891) | function sb(t){let e=S8(r=>(r.addIssue=n=>{if(typeof n=="string")r.issue... function S8 (line 891) | function S8(t,e){let r=new _t({check:"custom",...ee(e)});return r._zod.c... function ob (line 891) | function ob(t){let e=new _t({check:"describe"});return e._zod.onattach=[... function ab (line 891) | function ab(t){let e=new _t({check:"meta"});return e._zod.onattach=[r=>{... function cb (line 891) | function cb(t,e){let r=ee(e),n=r.truthy??["true","1","yes","on","y","ena... function _a (line 891) | function _a(t,e,r,n={}){let i=ee(n),s={...ee(n),check:"string_format",ty... function pm (line 891) | function pm(t){let e=t?.target??"draft-2020-12";return e==="draft-4"&&(e... function kt (line 891) | function kt(t,e,r={path:[],schemaPath:[]}){var n;let i=t._zod.def,s=e.se... function mm (line 891) | function mm(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed ... function fm (line 893) | function fm(t,e){let r=t.seen.get(e);if(!r)throw new Error("Unprocessed ... function jr (line 893) | function jr(t,e){let r=e??{seen:new Set};if(r.seen.has(t))return!1;r.see... function ba (line 893) | function ba(t){return!!t._zod} function Bn (line 893) | function Bn(t,e){return ba(t)?ha(t,e):t.safeParse(e)} function hm (line 893) | function hm(t){if(!t)return;let e;if(ba(t)?e=t._zod?.def?.shape:e=t.shap... function VI (line 893) | function VI(t){if(ba(t)){let s=t._zod?.def;if(s){if(s.value!==void 0)ret... function mb (line 893) | function mb(t){return I_(pb,t)} function hb (line 893) | function hb(t){return R_(fb,t)} function vb (line 893) | function vb(t){return O_(gb,t)} function _b (line 893) | function _b(t){return P_(yb,t)} method get (line 893) | get(){return t.issues.length===0} method get (line 893) | get(){return Mr.get(t)?.description} function z (line 893) | function z(t){return $_(bm,t)} function U8 (line 893) | function U8(t){return Bp(Sb,t)} function q8 (line 893) | function q8(t){return ju(vm,t)} function F8 (line 893) | function F8(t){return Vp(Ui,t)} function H8 (line 893) | function H8(t){return Gp(Ui,t)} function Z8 (line 893) | function Z8(t){return Wp(Ui,t)} function B8 (line 893) | function B8(t){return Kp(Ui,t)} function V8 (line 893) | function V8(t){return zu(xm,t)} function G8 (line 893) | function G8(t){return zu(xm,{protocol:/^https?$/,hostname:kn.domain,...V... function W8 (line 893) | function W8(t){return Jp(wb,t)} function K8 (line 893) | function K8(t){return Xp(Eb,t)} function J8 (line 893) | function J8(t){return Yp(kb,t)} function X8 (line 893) | function X8(t){return Qp($b,t)} function Y8 (line 893) | function Y8(t){return em(Tb,t)} function Q8 (line 893) | function Q8(t){return tm(Ib,t)} function e5 (line 893) | function e5(t){return rm(Rb,t)} function t5 (line 893) | function t5(t){return nm(Ob,t)} function r5 (line 893) | function r5(t){return T_(o1,t)} function n5 (line 893) | function n5(t){return im(Pb,t)} function i5 (line 893) | function i5(t){return sm(Cb,t)} function s5 (line 893) | function s5(t){return om(Ab,t)} function o5 (line 893) | function o5(t){return am(Nb,t)} function a5 (line 893) | function a5(t){return cm(Mb,t)} function c5 (line 893) | function c5(t){return um(Db,t)} function u5 (line 893) | function u5(t){return lm(jb,t)} function l5 (line 893) | function l5(t,e,r={}){return _a(Qu,t,e,r)} function d5 (line 893) | function d5(t){return _a(Qu,"hostname",kn.hostname,t)} function p5 (line 893) | function p5(t){return _a(Qu,"hex",kn.hex,t)} function m5 (line 893) | function m5(t,e){let r=e?.enc??"hex",n=`${t}_${r}`,i=kn[n];if(!i)throw n... function ct (line 893) | function ct(t){return C_(Sm,t)} function bb (line 893) | function bb(t){return A_(xa,t)} function f5 (line 893) | function f5(t){return N_(xa,t)} function h5 (line 893) | function h5(t){return M_(xa,t)} function g5 (line 893) | function g5(t){return D_(xa,t)} function v5 (line 893) | function v5(t){return j_(xa,t)} function Xt (line 893) | function Xt(t){return z_(wm,t)} function y5 (line 893) | function y5(t){return L_(Em,t)} function _5 (line 893) | function _5(t){return U_(zb,t)} function b5 (line 893) | function b5(t){return q_(zb,t)} function x5 (line 893) | function x5(t){return F_(a1,t)} function S5 (line 893) | function S5(t){return H_(c1,t)} function el (line 893) | function el(t){return Z_(u1,t)} function w5 (line 893) | function w5(){return B_(l1)} function xt (line 893) | function xt(){return V_(d1)} function Lb (line 893) | function Lb(t){return G_(p1,t)} function E5 (line 893) | function E5(t){return W_(m1,t)} function k5 (line 893) | function k5(t){return K_(Ub,t)} function We (line 893) | function We(t,e){return iI(f1,t,e)} function $5 (line 893) | function $5(t){let e=t._zod.def.shape;return Er(Object.keys(e))} function ie (line 893) | function ie(t,e){let r={type:"object",shape:t??{},...V.normalizeParams(e... function T5 (line 893) | function T5(t,e){return new km({type:"object",shape:t,catchall:Lb(),...V... function wr (line 893) | function wr(t,e){return new km({type:"object",shape:t,catchall:xt(),...V... function ft (line 893) | function ft(t,e){return new $m({type:"union",options:t,...V.normalizePar... function I5 (line 893) | function I5(t,e){return new h1({type:"union",options:t,inclusive:!1,...V... function Tm (line 893) | function Tm(t,e,r){return new g1({type:"union",options:e,discriminator:t... function tl (line 893) | function tl(t,e){return new v1({type:"intersection",left:t,right:e})} function _1 (line 893) | function _1(t,e,r){let n=e instanceof Oe,i=n?r:e,s=n?e:null;return new y... function $t (line 893) | function $t(t,e,r){return new Im({type:"record",keyType:t,valueType:e,..... function R5 (line 893) | function R5(t,e,r){let n=Nr(t);return n._zod.values=void 0,new Im({type:... function O5 (line 893) | function O5(t,e,r){return new Im({type:"record",keyType:t,valueType:e,mo... function P5 (line 893) | function P5(t,e,r){return new b1({type:"map",keyType:t,valueType:e,...V.... function C5 (line 893) | function C5(t,e){return new x1({type:"set",valueType:t,...V.normalizePar... function Er (line 893) | function Er(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n... function A5 (line 893) | function A5(t,e){return new Yu({type:"enum",entries:t,...V.normalizePara... method get (line 893) | get(){if(e.values.length>1)throw new Error("This schema contains multipl... function me (line 893) | function me(t,e){return new S1({type:"literal",values:Array.isArray(t)?t... function N5 (line 893) | function N5(t){return rb(w1,t)} function qb (line 893) | function qb(t){return new E1({type:"transform",transform:t})} function Rt (line 893) | function Rt(t){return new Fb({type:"optional",innerType:t})} function $1 (line 893) | function $1(t){return new k1({type:"optional",innerType:t})} function ym (line 893) | function ym(t){return new T1({type:"nullable",innerType:t})} function M5 (line 893) | function M5(t){return Rt(ym(t))} function R1 (line 893) | function R1(t,e){return new I1({type:"default",innerType:t,get defaultVa... function P1 (line 893) | function P1(t,e){return new O1({type:"prefault",innerType:t,get defaultV... function C1 (line 893) | function C1(t,e){return new Hb({type:"nonoptional",innerType:t,...V.norm... function D5 (line 893) | function D5(t){return new A1({type:"success",innerType:t})} function M1 (line 893) | function M1(t,e){return new N1({type:"catch",innerType:t,catchValue:type... function j5 (line 893) | function j5(t){return J_(D1,t)} function _m (line 893) | function _m(t,e){return new Zb({type:"pipe",in:t,out:e})} function z5 (line 893) | function z5(t,e,r){return new Bb({type:"pipe",in:t,out:e,transform:r.dec... function z1 (line 893) | function z1(t){return new j1({type:"readonly",innerType:t})} function L5 (line 893) | function L5(t,e){return new L1({type:"template_literal",parts:t,...V.nor... function q1 (line 893) | function q1(t){return new U1({type:"lazy",getter:t})} function U5 (line 893) | function U5(t){return new F1({type:"promise",innerType:t})} function q5 (line 893) | function q5(t){return new H1({type:"function",input:Array.isArray(t?.inp... function F5 (line 893) | function F5(t){let e=new _t({check:"custom"});return e._zod.check=t,e} function Vb (line 893) | function Vb(t,e){return nb(Rm,t??(()=>!0),e)} function Z1 (line 893) | function Z1(t,e={}){return ib(Rm,t,e)} function B1 (line 893) | function B1(t){return sb(t)} function B5 (line 893) | function B5(t,e={}){let r=new Rm({type:"custom",check:"custom",fn:n=>n i... function G5 (line 893) | function G5(t){let e=q1(()=>ft([z(t),ct(),Xt(),el(),We(e),$t(z(),e)]));r... function Om (line 893) | function Om(t,e){return _m(qb(t),e)} method constructor (line 893) | constructor(e,r,n){super(`MCP error ${e}: ${r}`),this.code=e,this.data=n... method fromError (line 893) | static fromError(e,r,n){if(e===Te.UrlElicitationRequired&&n){let i=n;if(... method constructor (line 893) | constructor(e,r=`URL elicitation${e.length>1?"s":""} required`){super(Te... method elicitations (line 893) | get elicitations(){return this.data?.elicitations??[]} function ws (line 893) | function ws(t){return t==="completed"||t==="failed"||t==="cancelled"} function xx (line 893) | function xx(t){let r=hm(t)?.method;if(!r)throw new Error("Schema is miss... function Sx (line 893) | function Sx(t,e){let r=Bn(t,e);if(!r.success)throw r.error;return r.data} method constructor (line 893) | constructor(e){this._options=e,this._requestMessageId=0,this._requestHan... method _oncancel (line 893) | async _oncancel(e){if(!e.params.requestId)return;this._requestHandlerAbo... method _setupTimeout (line 893) | _setupTimeout(e,r,n,i,s=!1){this._timeoutInfo.set(e,{timeoutId:setTimeou... method _resetTimeout (line 893) | _resetTimeout(e){let r=this._timeoutInfo.get(e);if(!r)return!1;let n=Dat... method _cleanupTimeout (line 893) | _cleanupTimeout(e){let r=this._timeoutInfo.get(e);r&&(clearTimeout(r.tim... method connect (line 893) | async connect(e){if(this._transport)throw new Error("Already connected t... method _onclose (line 893) | _onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,t... method _onerror (line 893) | _onerror(e){this.onerror?.(e)} method _onnotification (line 893) | _onnotification(e){let r=this._notificationHandlers.get(e.method)??this.... method _onrequest (line 893) | _onrequest(e,r){let n=this._requestHandlers.get(e.method)??this.fallback... method _onprogress (line 893) | _onprogress(e){let{progressToken:r,...n}=e.params,i=Number(r),s=this._pr... method _onresponse (line 893) | _onresponse(e){let r=Number(e.id),n=this._requestResolvers.get(r);if(n){... method transport (line 893) | get transport(){return this._transport} method close (line 893) | async close(){await this._transport?.close()} method requestStream (line 893) | async*requestStream(e,r,n){let{task:i}=n??{};if(!i){try{yield{type:"resu... method request (line 893) | request(e,r,n){let{relatedRequestId:i,resumptionToken:s,onresumptiontoke... method getTask (line 893) | async getTask(e,r){return this.request({method:"tasks/get",params:e},zm,r)} method getTaskResult (line 893) | async getTaskResult(e,r,n){return this.request({method:"tasks/result",pa... method listTasks (line 893) | async listTasks(e,r){return this.request({method:"tasks/list",params:e},... method cancelTask (line 893) | async cancelTask(e,r){return this.request({method:"tasks/cancel",params:... method notification (line 893) | async notification(e,r){if(!this._transport)throw new Error("Not connect... method setRequestHandler (line 893) | setRequestHandler(e,r){let n=xx(e);this.assertRequestHandlerCapability(n... method removeRequestHandler (line 893) | removeRequestHandler(e){this._requestHandlers.delete(e)} method assertCanSetRequestHandler (line 893) | assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new ... method setNotificationHandler (line 893) | setNotificationHandler(e,r){let n=xx(e);this._notificationHandlers.set(n... method removeNotificationHandler (line 893) | removeNotificationHandler(e){this._notificationHandlers.delete(e)} method _cleanupTaskProgressHandler (line 893) | _cleanupTaskProgressHandler(e){let r=this._taskProgressTokens.get(e);r!=... method _enqueueTaskMessage (line 893) | async _enqueueTaskMessage(e,r,n){if(!this._taskStore||!this._taskMessage... method _clearTaskQueue (line 893) | async _clearTaskQueue(e,r){if(this._taskMessageQueue){let n=await this._... method _waitForTaskUpdate (line 893) | async _waitForTaskUpdate(e,r){let n=this._options?.defaultTaskPollInterv... method requestTaskStore (line 893) | requestTaskStore(e,r){let n=this._taskStore;if(!n)throw new Error("No ta... function dR (line 893) | function dR(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)} function pR (line 893) | function pR(t,e){let r={...t};for(let n in e){let i=n,s=e[i];if(s===void... function y7 (line 893) | function y7(){let t=new YP.default({strict:!1,validateFormats:!0,validat... method constructor (line 893) | constructor(e){this._ajv=e??y7()} method getValidator (line 893) | getValidator(e){let r="$id"in e&&typeof e.$id=="string"?this._ajv.getSch... method constructor (line 893) | constructor(e){this._client=e} method callToolStream (line 893) | async*callToolStream(e,r=Ea,n){let i=this._client,s={...n,task:n?.task??... method getTask (line 893) | async getTask(e,r){return this._client.getTask({taskId:e},r)} method getTaskResult (line 893) | async getTaskResult(e,r,n){return this._client.getTaskResult({taskId:e},... method listTasks (line 893) | async listTasks(e,r){return this._client.listTasks(e?{cursor:e}:void 0,r)} method cancelTask (line 893) | async cancelTask(e,r){return this._client.cancelTask({taskId:e},r)} method requestStream (line 893) | requestStream(e,r,n){return this._client.requestStream(e,r,n)} function eC (line 893) | function eC(t,e,r){if(!t)throw new Error(`${r} does not support task cre... function tC (line 893) | function tC(t,e,r){if(!t)throw new Error(`${r} does not support task cre... function If (line 893) | function If(t,e){if(!(!t||e===null||typeof e!="object")){if(t.type==="ob... function _7 (line 893) | function _7(t){if(!t)return{supportsFormMode:!1,supportsUrlMode:!1};let ... method constructor (line 893) | constructor(e,r){super(r),this._clientInfo=e,this._cachedToolOutputValid... method _setupListChangedHandlers (line 893) | _setupListChangedHandlers(e){e.tools&&this._serverCapabilities?.tools?.l... method experimental (line 893) | get experimental(){return this._experimental||(this._experimental={tasks... method registerCapabilities (line 893) | registerCapabilities(e){if(this.transport)throw new Error("Cannot regist... method setRequestHandler (line 893) | setRequestHandler(e,r){let i=hm(e)?.method;if(!i)throw new Error("Schema... method assertCapability (line 893) | assertCapability(e,r){if(!this._serverCapabilities?.[e])throw new Error(... method connect (line 893) | async connect(e,r){if(await super.connect(e),e.sessionId===void 0)try{le... method getServerCapabilities (line 893) | getServerCapabilities(){return this._serverCapabilities} method getServerVersion (line 893) | getServerVersion(){return this._serverVersion} method getInstructions (line 893) | getInstructions(){return this._instructions} method assertCapabilityForMethod (line 893) | assertCapabilityForMethod(e){switch(e){case"logging/setLevel":if(!this._... method assertNotificationCapability (line 893) | assertNotificationCapability(e){switch(e){case"notifications/roots/list_... method assertRequestHandlerCapability (line 893) | assertRequestHandlerCapability(e){if(this._capabilities)switch(e){case"s... method assertTaskCapability (line 893) | assertTaskCapability(e){eC(this._serverCapabilities?.tasks?.requests,e,"... method assertTaskHandlerCapability (line 893) | assertTaskHandlerCapability(e){this._capabilities&&tC(this._capabilities... method ping (line 893) | async ping(e){return this.request({method:"ping"},no,e)} method complete (line 893) | async complete(e,r){return this.request({method:"completion/complete",pa... method setLoggingLevel (line 893) | async setLoggingLevel(e,r){return this.request({method:"logging/setLevel... method getPrompt (line 893) | async getPrompt(e,r){return this.request({method:"prompts/get",params:e}... method listPrompts (line 893) | async listPrompts(e,r){return this.request({method:"prompts/list",params... method listResources (line 893) | async listResources(e,r){return this.request({method:"resources/list",pa... method listResourceTemplates (line 893) | async listResourceTemplates(e,r){return this.request({method:"resources/... method readResource (line 893) | async readResource(e,r){return this.request({method:"resources/read",par... method subscribeResource (line 893) | async subscribeResource(e,r){return this.request({method:"resources/subs... method unsubscribeResource (line 893) | async unsubscribeResource(e,r){return this.request({method:"resources/un... method callTool (line 893) | async callTool(e,r=Ea,n){if(this.isToolTaskRequired(e.name))throw new ve... method isToolTask (line 893) | isToolTask(e){return this._serverCapabilities?.tasks?.requests?.tools?.c... method isToolTaskRequired (line 893) | isToolTaskRequired(e){return this._cachedRequiredTaskTools.has(e)} method cacheToolMetadata (line 893) | cacheToolMetadata(e){this._cachedToolOutputValidators.clear(),this._cach... method getToolOutputValidator (line 893) | getToolOutputValidator(e){return this._cachedToolOutputValidators.get(e)} method listTools (line 893) | async listTools(e,r){let n=await this.request({method:"tools/list",param... method _setupListChangedHandler (line 893) | _setupListChangedHandler(e,r,n,i){let s=uR.safeParse(n);if(!s.success)th... method sendRootsListChanged (line 893) | async sendRootsListChanged(){return this.notification({method:"notificat... method append (line 893) | append(e){this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e} method readMessage (line 893) | readMessage(){if(!this._buffer)return null;let e=this._buffer.indexOf(` method clear (line 894) | clear(){this._buffer=void 0} function V7 (line 894) | function V7(t){return tR.parse(JSON.parse(t))} function ZC (line 894) | function ZC(t){return JSON.stringify(t)+` function W7 (line 895) | function W7(){let t={};for(let e of G7){let r=Ul.default.env[e];r!==void... method constructor (line 895) | constructor(e){this._readBuffer=new Of,this._stderrStream=null,this._ser... method start (line 895) | async start(){if(this._process)throw new Error("StdioClientTransport alr... method stderr (line 895) | get stderr(){return this._stderrStream?this._stderrStream:this._process?... method pid (line 895) | get pid(){return this._process?.pid??null} method processReadBuffer (line 895) | processReadBuffer(){for(;;)try{let e=this._readBuffer.readMessage();if(e... method close (line 895) | async close(){if(this._process){let e=this._process;this._process=void 0... method send (line 895) | send(e){return new Promise(r=>{if(!this._process?.stdin)throw new Error(... function K7 (line 895) | function K7(){return"type"in Ul.default} function yK (line 895) | function yK(t){let e={};for(let r of t.split(` function A0 (line 896) | function A0(){if(!(0,Va.existsSync)(P0))return{};try{let t=(0,Va.readFil... function cA (line 896) | function cA(t=!0){let e={};for(let[r,n]of Object.entries(process.env))n!... function Ga (line 896) | function Ga(t){return A0()[t]} function _K (line 896) | function _K(){return!!A0().ANTHROPIC_API_KEY} function Df (line 896) | function Df(){return _K()?"API key (from ~/.claude-mem/.env)":process.en... function vi (line 896) | function vi(t=process.env){let e={};for(let[r,n]of Object.entries(t))if(... function vn (line 896) | function vn(t){if(!Number.isInteger(t)||t<0||t===0)return!1;try{return p... method constructor (line 896) | constructor(e=EK){this.registryPath=e} method initialize (line 896) | initialize(){if(this.initialized)return;if(this.initialized=!0,(0,Ji.mkd... method register (line 896) | register(e,r,n){this.initialize(),this.entries.set(e,r),n&&this.runtimeP... method unregister (line 896) | unregister(e){this.initialize(),this.entries.delete(e),this.runtimeProce... method clear (line 896) | clear(){this.entries.clear(),this.runtimeProcesses.clear(),this.persist()} method getAll (line 896) | getAll(){return this.initialize(),Array.from(this.entries.entries()).map... method getBySession (line 896) | getBySession(e){let r=String(e);return this.getAll().filter(n=>n.session... method getRuntimeProcess (line 896) | getRuntimeProcess(e){return this.runtimeProcesses.get(e)} method getByPid (line 896) | getByPid(e){return this.getAll().filter(r=>r.pid===e)} method pruneDeadEntries (line 896) | pruneDeadEntries(){this.initialize();let e=0;for(let[r,n]of this.entries... method reapSession (line 896) | async reapSession(e){this.initialize();let r=this.getBySession(e);if(r.l... method persist (line 896) | persist(){let e={processes:Object.fromEntries(this.entries.entries())};(... function jf (line 896) | function jf(){return D0||(D0=new j0),D0} function gA (line 896) | async function gA(t){let e=t.currentPid??process.pid,r=t.pidFilePath??TK... function lA (line 896) | async function lA(t,e){let r=Date.now()+e;for(;Date.now()0&&y.info("SYSTEM",`Health... function yA (line 896) | function yA(){Wa===null&&(Wa=setInterval(RK,vA),Wa.unref(),y.debug("SYST... function _A (line 896) | function _A(){Wa!==null&&(clearInterval(Wa),Wa=null,y.debug("SYSTEM","He... method constructor (line 896) | constructor(e){this.registry=e} method start (line 896) | async start(){if(this.started)return;if(this.registry.initialize(),q0({l... method configureSignalHandlers (line 896) | configureSignalHandlers(e){if(this.shutdownHandler=e,this.signalHandlers... method stop (line 896) | async stop(){if(this.stopPromise){await this.stopPromise;return}_A(),thi... method assertCanSpawn (line 896) | assertCanSpawn(e){if(this.stopPromise!==null)throw new Error(`Supervisor... method registerProcess (line 896) | registerProcess(e,r,n){this.registry.register(e,r,n)} method unregisterProcess (line 896) | unregisterProcess(e){this.registry.unregister(e)} method getRegistry (line 896) | getRegistry(){return this.registry} function xA (line 896) | async function xA(){await zf.start()} function SA (line 896) | async function SA(){await zf.stop()} function gt (line 896) | function gt(){return zf} function wA (line 896) | function wA(t){zf.configureSignalHandlers(t)} function q0 (line 896) | function q0(t={}){let e=t.pidFilePath??PK;if(!(0,go.existsSync)(e))retur... method constructor (line 896) | constructor(){} method getInstance (line 896) | static getInstance(){return t.instance||(t.instance=new t),t.instance} method ensureConnected (line 896) | async ensureConnected(){if(this.connected&&this.client)return;let e=Date... method connectInternal (line 896) | async connectInternal(){if(this.transport)try{await this.transport.close... method buildCommandArgs (line 896) | buildCommandArgs(){let e=Ee.loadFromFile(Ft),r=e.CLAUDE_MEM_CHROMA_MODE|... method callTool (line 896) | async callTool(e,r){await this.ensureConnected(),y.debug("CHROMA_MCP",`C... method isHealthy (line 896) | async isHealthy(){try{return await this.callTool("chroma_list_collection... method stop (line 896) | async stop(){if(!this.client){y.debug("CHROMA_MCP","No active MCP connec... method reset (line 896) | static async reset(){t.instance&&await t.instance.stop(),t.instance=null} method getCombinedCertPath (line 896) | getCombinedCertPath(){let e=H0.default.join(Z0.default.homedir(),".claud... method getSpawnEnv (line 897) | getSpawnEnv(){let e={};for(let[n,i]of Object.entries(vi(process.env)))i!... method registerManagedProcess (line 897) | registerManagedProcess(){let e=this.transport._process;e?.pid&&(gt().reg... method constructor (line 897) | constructor(e){this.project=e;let r=e.replace(/[^a-zA-Z0-9._-]/g,"_").re... method ensureCollectionExists (line 897) | async ensureCollectionExists(){if(this.collectionCreated)return;let e=Xi... method formatObservationDocs (line 897) | formatObservationDocs(e){let r=[],n=e.facts?JSON.parse(e.facts):[],i=e.c... method formatSummaryDocs (line 897) | formatSummaryDocs(e){let r=[],n={sqlite_id:e.id,doc_type:"session_summar... method addDocuments (line 897) | async addDocuments(e){if(e.length===0)return;await this.ensureCollection... method syncObservation (line 897) | async syncObservation(e,r,n,i,s,o,a=0){let c={id:e,memory_session_id:r,p... method syncSummary (line 897) | async syncSummary(e,r,n,i,s,o,a=0){let c={id:e,memory_session_id:r,proje... method formatUserPromptDoc (line 897) | formatUserPromptDoc(e){return{id:`prompt_${e.id}`,document:e.prompt_text... method syncUserPrompt (line 897) | async syncUserPrompt(e,r,n,i,s,o){let a={id:e,content_session_id:"",prom... method getExistingChromaIds (line 897) | async getExistingChromaIds(e){let r=e??this.project;await this.ensureCol... method ensureBackfilled (line 897) | async ensureBackfilled(e){let r=e??this.project;y.info("CHROMA_SYNC","St... method queryChroma (line 923) | async queryChroma(e,r,n){await this.ensureCollectionExists();try{let s=a... method backfillAllProjects (line 923) | static async backfillAllProjects(){let e=new Yi,r=new t("claude-mem");tr... method close (line 923) | async close(){y.info("CHROMA_SYNC","ChromaSync closed",{project:this.pro... function Zf (line 923) | function Zf(){try{let t=process.env.CLAUDE_CONFIG_DIR||(0,B0.join)((0,RA... function CA (line 923) | function CA(t){return t?/(^|[\\/])bun(\.exe)?$/i.test(t.trim()):!1} function jK (line 923) | function jK(t,e){let r=e==="win32"?`where ${t}`:`which ${t}`;try{return(... function zK (line 923) | function zK(t={}){let e=t.platform??process.platform,r=t.execPath??proce... function NA (line 923) | function NA(t){(0,zt.mkdirSync)(W0,{recursive:!0}),(0,zt.writeFileSync)(... function K0 (line 923) | function K0(){if(!(0,zt.existsSync)(_i))return null;try{return JSON.pars... function yo (line 923) | function yo(){if((0,zt.existsSync)(_i))try{(0,zt.unlinkSync)(_i)}catch(t... function es (line 923) | function es(t){return process.platform==="win32"?Math.round(t*2):t} function LK (line 923) | function LK(t){if(!t||t.trim()==="")return-1;let e=t.trim(),r=0,n=e.matc... function MA (line 923) | async function MA(){let t=process.platform==="win32",e=process.pid,r=[],... function DA (line 924) | function DA(t){let e=t??W0,r=yi.default.join(e,qK),n=yi.default.join(e,"... function J0 (line 924) | function J0(t,e,r={}){let n=process.platform==="win32";gt().assertCanSpa... function jA (line 924) | function jA(t){if(t===0)return!0;if(!Number.isInteger(t)||t<0)return!1;t... function zA (line 924) | function zA(t=15e3){try{let e=(0,zt.statSync)(_i);return Date.now()-e.mt... function LA (line 924) | function LA(){try{if(!(0,zt.existsSync)(_i))return;let t=new Date;(0,zt.... function UA (line 924) | function UA(){return q0({logAlive:!1})} function X0 (line 924) | async function X0(t,e,r="GET"){let n=await fetch(`http://127.0.0.1:${t}$... function Vl (line 924) | async function Vl(t){try{return(await fetch(`http://127.0.0.1:${t}/api/h... function HA (line 924) | async function HA(t,e,r,n){let i=Date.now();for(;Date.now()-i{this.server=this.app.listen... method close (line 924) | async close(){this.server&&(this.server.closeAllConnections(),process.pl... method registerRoutes (line 924) | registerRoutes(e){e.setupRoutes(this.app)} method finalizeRoutes (line 924) | finalizeRoutes(){this.app.use(eU),this.app.use(QL)} method setupMiddleware (line 924) | setupMiddleware(){tk(rk).forEach(r=>this.app.use(r))} method setupCoreRoutes (line 924) | setupCoreRoutes(){this.app.get("/api/health",(e,r)=>{r.status(200).json(... method extractInstructionSection (line 924) | extractInstructionSection(e,r){let n={workflow:this.extractBetween(e,"##... method extractBetween (line 924) | extractBetween(e,r,n){let i=e.indexOf(r),s=e.indexOf(n);return i===-1?e:... function nU (line 924) | function nU(t){try{return(0,Dn.existsSync)(t)?JSON.parse((0,Dn.readFileS... function iU (line 924) | function iU(t,e){let r=(0,Cd.join)(t,"..");(0,Dn.mkdirSync)(r,{recursive... function ik (line 924) | function ik(t,e){let r=(0,Cd.join)(t,".cursor","rules"),n=(0,Cd.join)(r,... function sk (line 937) | function sk(){return nU(aU)} function cU (line 937) | function cU(t){iU(aU,t)} function Zse (line 937) | function Zse(t,e){let r=sk();r[t]={workspacePath:e,installedAt:new Date(... function Bse (line 937) | function Bse(t){let e=sk();e[t]&&(delete e[t],cU(e),y.info("CURSOR","Unr... function uU (line 937) | async function uU(t,e){let n=sk()[t];if(n)try{let i=await jt(`/api/conte... function Vse (line 937) | function Vse(){let t=[yt.default.join(Ki,"plugin","scripts","worker-serv... function Gse (line 937) | function Gse(){let t=[yt.default.join((0,Ad.homedir)(),".bun","bin","bun... function lU (line 937) | function lU(t){switch(t){case"project":return yt.default.join(process.cw... function Wse (line 937) | async function Wse(t){console.log(` function Kse (line 954) | async function Kse(t,e){let r=yt.default.join(t,"rules");(0,Kt.mkdirSync... function Jse (line 964) | function Jse(t){console.log(` function Xse (line 969) | function Xse(){console.log(` function dU (line 972) | async function dU(t,e){switch(t){case"install":{let r=e[0]||"project";re... method constructor (line 996) | constructor(e){e||(Ir(ar),e=Fl),this.db=new mU.Database(e),this.db.run("... method ensureFTSTables (line 996) | ensureFTSTables(){if(!this.db.prepare("SELECT name FROM sqlite_master WH... method isFts5Available (line 1060) | isFts5Available(){try{return this.db.run("CREATE VIRTUAL TABLE _fts5_pro... method buildFilterClause (line 1060) | buildFilterClause(e,r,n="o"){let i=[];if(e.project&&(i.push(`${n}.projec... method buildOrderClause (line 1063) | buildOrderClause(e="relevance",r=!0,n="observations_fts"){switch(e){case... method searchObservations (line 1063) | searchObservations(e,r={}){let n=[],{limit:i=50,offset:s=0,orderBy:o="re... method searchSessions (line 1069) | searchSessions(e,r={}){let n=[],{limit:i=50,offset:s=0,orderBy:o="releva... method findByConcept (line 1075) | findByConcept(e,r={}){let n=[],{limit:i=50,offset:s=0,orderBy:o="date_de... method hasDirectChildFile (line 1081) | hasDirectChildFile(e,r){let n=i=>{if(!i)return!1;try{let s=JSON.parse(i)... method hasDirectChildFileSession (line 1081) | hasDirectChildFileSession(e,r){let n=i=>{if(!i)return!1;try{let s=JSON.p... method findByFile (line 1081) | findByFile(e,r={}){let n=[],{limit:i=50,offset:s=0,orderBy:o="date_desc"... method findByType (line 1096) | findByType(e,r={}){let n=[],{limit:i=50,offset:s=0,orderBy:o="date_desc"... method searchUserPrompts (line 1102) | searchUserPrompts(e,r={}){let n=[],{limit:i=20,offset:s=0,orderBy:o="rel... method getUserPromptsBySession (line 1109) | getUserPromptsBySession(e){return this.db.prepare(` method close (line 1120) | close(){this.db.close()} method initialize (line 1120) | async initialize(){this.sessionStore=new Yi,this.sessionSearch=new tg,Ee... method close (line 1120) | async close(){this.chromaSync&&(await this.chromaSync.close(),this.chrom... method getSessionStore (line 1120) | getSessionStore(){if(!this.sessionStore)throw new Error("Database not in... method getSessionSearch (line 1120) | getSessionSearch(){if(!this.sessionSearch)throw new Error("Database not ... method getChromaSync (line 1120) | getChromaSync(){return this.chromaSync} method getSessionById (line 1120) | getSessionById(e){let r=this.getSessionStore().getSessionById(e);if(!r)t... method constructor (line 1120) | constructor(e,r){this.store=e;this.events=r} method createIterator (line 1120) | async*createIterator(e){let{sessionDbId:r,signal:n,onIdleTimeout:i}=e,s=... method toPendingMessageWithId (line 1120) | toPendingMessageWithId(e){return{...this.store.toPendingMessage(e),_pers... method waitForMessage (line 1120) | waitForMessage(e,r=ng){return new Promise(n=>{let i,s=()=>{c(),n(!0)},o=... function Qse (line 1120) | function Qse(){return gt().getRegistry().getAll().filter(t=>t.type==="sd... function eoe (line 1120) | function eoe(t,e,r){gt().registerProcess(`sdk:${e}:${t}`,{pid:t,type:"sd... function sg (line 1120) | function sg(t){for(let e of gt().getRegistry().getByPid(t))e.type==="sdk... function Us (line 1120) | function Us(t){let e=Qse().filter(r=>r.sessionDbId===t);return e.length>... function fU (line 1120) | function fU(){return gt().getRegistry().getAll().filter(t=>t.type==="sdk... function yU (line 1120) | function yU(){let t=Md.shift();t&&t()} function _U (line 1120) | async function _U(t,e=6e4){let r=fU();if(r>=hU)throw new Error(`Hard cap... function qs (line 1120) | async function qs(t,e=5e3){let{pid:r,process:n}=t;if(n.exitCode!==null){... function toe (line 1120) | async function toe(){if(process.platform==="win32")return 0;let t=proces... function roe (line 1121) | async function roe(){if(process.platform==="win32")return 0;try{let{stdo... function noe (line 1122) | async function noe(t){let e=0;for(let r of gt().getRegistry().getAll().f... function bU (line 1122) | function bU(t){return e=>{gt().assertCanSpawn("claude sdk");let r=proces... function xU (line 1122) | function xU(t,e=30*1e3){let r=setInterval(async()=>{try{let n=t(),i=awai... method constructor (line 1122) | constructor(e){this.dbManager=e} method getPendingStore (line 1122) | getPendingStore(){if(!this.pendingStore){let e=this.dbManager.getSession... method setOnSessionDeleted (line 1122) | setOnSessionDeleted(e){this.onSessionDeletedCallback=e} method initializeSession (line 1122) | initializeSession(e,r,n){y.debug("SESSION","initializeSession called",{s... method getSession (line 1122) | getSession(e){return this.sessions.get(e)} method queueObservation (line 1122) | queueObservation(e,r){let n=this.sessions.get(e);n||(n=this.initializeSe... method queueSummarize (line 1122) | queueSummarize(e,r){let n=this.sessions.get(e);n||(n=this.initializeSess... method deleteSession (line 1122) | async deleteSession(e){let r=this.sessions.get(e);if(!r)return;let n=Dat... method removeSessionImmediate (line 1122) | removeSessionImmediate(e){let r=this.sessions.get(e);r&&(this.sessions.d... method reapStaleSessions (line 1122) | async reapStaleSessions(){let e=Date.now(),r=[];for(let[n,i]of this.sess... method shutdownAll (line 1122) | async shutdownAll(){let e=Array.from(this.sessions.keys());await Promise... method hasPendingMessages (line 1122) | hasPendingMessages(){return this.getTotalQueueDepth()>0} method getActiveSessionCount (line 1122) | getActiveSessionCount(){return this.sessions.size} method getTotalQueueDepth (line 1122) | getTotalQueueDepth(){let e=0;for(let r of this.sessions.values())e+=this... method getTotalActiveWork (line 1122) | getTotalActiveWork(){return this.getTotalQueueDepth()} method isAnySessionProcessing (line 1122) | isAnySessionProcessing(){return this.getTotalQueueDepth()>0} method getMessageIterator (line 1122) | async*getMessageIterator(e){let r=this.sessions.get(e);r||(r=this.initia... method getPendingMessageStore (line 1122) | getPendingMessageStore(){return this.getPendingStore()} method addClient (line 1122) | addClient(e){this.sseClients.add(e),y.debug("WORKER","Client connected",... method removeClient (line 1122) | removeClient(e){this.sseClients.delete(e),y.debug("WORKER","Client disco... method broadcast (line 1122) | broadcast(e){if(this.sseClients.size===0){y.debug("WORKER","SSE broadcas... method getClientCount (line 1124) | getClientCount(){return this.sseClients.size} method sendToClient (line 1124) | sendToClient(e,r){let n=`data: ${JSON.stringify(r)} function kc (line 1126) | function kc(t,e,r,n){return`${n.prompts.system_identity} function $c (line 1181) | function $c(t){let e,r;try{e=typeof t.tool_input=="string"?JSON.parse(t.... function Tc (line 1187) | function Tc(t,e){let r=t.last_assistant_message||(y.error("SDK","Missing... function Ic (line 1207) | function Ic(t,e,r,n){return`${n.prompts.continuation_greeting} function EU (line 1266) | function EU(t,e){let r=[],n=/([\s\S]*?)<\/observation>/g,i;... function kU (line 1266) | function kU(t,e){let n=//.exec(t);... function Ii (line 1266) | function Ii(t,e){let n=new RegExp(`<${e}>([\\s\\S]*?)`).exec(t);i... function ug (line 1266) | function ug(t,e,r){let n=[],s=new RegExp(`<${e}>([\\s\\S]*?)`).ex... function soe (line 1266) | function soe(t){let e=t.split(Zt.default.sep).filter(r=>r&&r!=="."&&r!==... function ooe (line 1266) | function ooe(t,e){if(!t||!t.trim()||t.startsWith("~")||t.startsWith("htt... function aoe (line 1266) | function aoe(t,e){let r="",n=""... function coe (line 1274) | function coe(t,e){let r=Zt.default.resolve(t);if(r.includes("/.git/")||r... function uoe (line 1274) | function uoe(t){let e=[];e.push("# Recent Activity"),e.push("");let r=t.... function doe (line 1276) | function doe(t){return Zt.default.normalize(t).split(Zt.default.sep).som... function poe (line 1276) | function poe(t){let e=Zt.default.join(t,".git");return(0,ti.existsSync)(e)} function moe (line 1276) | function moe(t,e){let r=Zt.default.resolve(t);for(let n of e){let i=Zt.d... function IU (line 1276) | async function IU(t,e,r,n){let i=Ee.loadFromFile(ioe),s=parseInt(i.CLAUD... function uk (line 1276) | function uk(t,e){t?.sseBroadcaster&&t.sseBroadcaster.broadcast({type:"ne... function lk (line 1276) | function lk(t,e){t?.sseBroadcaster&&t.sseBroadcaster.broadcast({type:"ne... function dk (line 1276) | function dk(t,e){t.earliestPendingTimestamp=null,e&&typeof e.broadcastPr... function ri (line 1276) | async function ri(t,e,r,n,i,s,o,a,c){e.lastGeneratorActivity=Date.now(),... function foe (line 1276) | function foe(t){return t?{request:t.request||"",investigated:t.investiga... function hoe (line 1276) | async function hoe(t,e,r,n,i,s,o,a){for(let d=0;de.includes(r))} function voe (line 1276) | function voe(t){return t==null?"":typeof t=="string"?t:t instanceof Erro... function Ld (line 1276) | function Ld(t){return t==null?!1:t instanceof Error&&t.name==="AbortErro... class e (line 1276) | class e{} method constructor (line 1280) | constructor(n){super("validation failed"),this.errors=n,this.ajv=this.... class r (line 1276) | class r extends e{constructor(x){if(super(),!t.IDENTIFIER.test(x))throw ... method constructor (line 1276) | constructor(x){if(super(),!t.IDENTIFIER.test(x))throw new Error("CodeG... method toString (line 1276) | toString(){return this.str} method emptyStr (line 1276) | emptyStr(){return!1} method names (line 1276) | get names(){return{[this.str]:1}} method constructor (line 1276) | constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.valu... method constructor (line 1280) | constructor(i,s,o,a){super(a||`can't resolve reference ${o} from id ${... class n (line 1276) | class n extends e{constructor(x){super(),this._items=typeof x=="string"?... method constructor (line 1276) | constructor(x){super(),this._items=typeof x=="string"?[x]:x} method toString (line 1276) | toString(){return this.str} method emptyStr (line 1276) | emptyStr(){if(this._items.length>1)return!1;let x=this._items[0];retur... method str (line 1276) | get str(){var x;return(x=this._str)!==null&&x!==void 0?x:this._str=thi... method names (line 1276) | get names(){var x;return(x=this._names)!==null&&x!==void 0?x:this._nam... function i (line 1276) | function i(v,...x){let b=[v[0]],_=0;for(;_{if(d.scope... method scopeCode (line 1276) | scopeCode(u=this._values,l,d){return this._reduceValues(u,p=>{if(p.val... method _reduceValues (line 1276) | _reduceValues(u,l,d={},p){let m=e.nil;for(let f in u){let g=u[f];if(!g... method constructor (line 1276) | constructor(k,I,q){super(),this.lhs=k,this.rhs=I,this.sideEffects=q} method render (line 1276) | render({_n:k}){return`${this.lhs} = ${this.rhs};`+k} method optimizeNames (line 1276) | optimizeNames(k,I){if(!(this.lhs instanceof e.Name&&!k[this.lhs.str]&&... method names (line 1276) | get names(){let k=this.lhs instanceof e.Name?{}:{...this.lhs.names};re... method constructor (line 1280) | constructor(x){var b;this.refs={},this.dynamicAnchors={};let _;typeof ... function c (line 1276) | function c(v){let x=1;for(;xthis.... method _addDefaultMetaSchema (line 1283) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.me... method defaultMeta (line 1283) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.... function u (line 1276) | function u(v,x){if(x==='""')return v;if(v==='""')return x;if(typeof v=="... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`${this.label}:`+k} function l (line 1276) | function l(v,x){return x.emptyStr()?v:v.emptyStr()?x:o`${v}${x}`} method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k} function d (line 1276) | function d(v){return typeof v=="number"||typeof v=="boolean"||v===null?v... method constructor (line 1276) | constructor(k){super(),this.error=k} method render (line 1276) | render({_n:k}){return`throw ${this.error};`+k} method names (line 1276) | get names(){return this.error.names} function p (line 1276) | function p(v){return new n(m(v))} method constructor (line 1276) | constructor(k){super(),this.code=k} method render (line 1276) | render({_n:k}){return`${this.code};`+k} method optimizeNodes (line 1276) | optimizeNodes(){return`${this.code}`?this:void 0} method optimizeNames (line 1276) | optimizeNames(k,I){return this.code=j(this.code,k,I),this} method names (line 1276) | get names(){return this.code instanceof e._CodeOrName?this.code.names:{}} function m (line 1276) | function m(v){return JSON.stringify(v).replace(/\u2028/g,"\\u2028").repl... method constructor (line 1276) | constructor(k=[]){super(),this.nodes=k} method render (line 1276) | render(k){return this.nodes.reduce((I,q)=>I+q.render(k),"")} method optimizeNodes (line 1276) | optimizeNodes(){let{nodes:k}=this,I=k.length;for(;I--;){let q=k[I].opt... method optimizeNames (line 1276) | optimizeNames(k,I){let{nodes:q}=this,le=q.length;for(;le--;){let ce=q[... method names (line 1276) | get names(){return this.nodes.reduce((k,I)=>U(k,I.names),{})} function f (line 1276) | function f(v){return typeof v=="string"&&t.IDENTIFIER.test(v)?new n(`.${... method render (line 1276) | render(k){return"{"+k._n+super.render(k)+"}"+k._n} function g (line 1276) | function g(v){if(typeof v=="string"&&t.IDENTIFIER.test(v))return new n(`... function h (line 1276) | function h(v){return new n(v.toString())} class r (line 1276) | class r extends Error{constructor(u){super(`CodeGen: "code" for ${u} not... method constructor (line 1276) | constructor(x){if(super(),!t.IDENTIFIER.test(x))throw new Error("CodeG... method toString (line 1276) | toString(){return this.str} method emptyStr (line 1276) | emptyStr(){return!1} method names (line 1276) | get names(){return{[this.str]:1}} method constructor (line 1276) | constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.valu... method constructor (line 1280) | constructor(i,s,o,a){super(a||`can't resolve reference ${o} from id ${... class i (line 1276) | class i{constructor({prefixes:u,parent:l}={}){this._names={},this._prefi... method constructor (line 1276) | constructor({prefixes:u,parent:l}={}){this._names={},this._prefixes=u,... method toName (line 1276) | toName(u){return u instanceof e.Name?u:this.name(u)} method name (line 1276) | name(u){return new e.Name(this._newName(u))} method _newName (line 1276) | _newName(u){let l=this._names[u]||this._nameGroup(u);return`${u}${l.in... method _nameGroup (line 1276) | _nameGroup(u){var l,d;if(!((d=(l=this._parent)===null||l===void 0?void... class s (line 1276) | class s extends e.Name{constructor(u,l){super(l),this.prefix=u}setValue(... method constructor (line 1276) | constructor(u,l){super(l),this.prefix=u} method setValue (line 1276) | setValue(u,{property:l,itemIndex:d}){this.value=u,this.scopePath=(0,e.... method optimizeNodes (line 1276) | optimizeNodes(){return this} method optimizeNames (line 1276) | optimizeNames(k,I){return this} class a (line 1276) | class a extends i{constructor(u){super(u),this._values={},this._scope=u.... method constructor (line 1276) | constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=... method get (line 1276) | get(){return this._scope} method name (line 1276) | name(u){return new s(u,this._newName(u))} method value (line 1276) | value(u,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must ... method getValue (line 1276) | getValue(u,l){let d=this._values[u];if(d)return d.get(l)} method scopeRefs (line 1276) | scopeRefs(u,l=this._values){return this._reduceValues(l,d=>{if(d.scope... method scopeCode (line 1276) | scopeCode(u=this._values,l,d){return this._reduceValues(u,p=>{if(p.val... method _reduceValues (line 1276) | _reduceValues(u,l,d={},p){let m=e.nil;for(let f in u){let g=u[f];if(!g... method constructor (line 1276) | constructor(k,I,q){super(),this.lhs=k,this.rhs=I,this.sideEffects=q} method render (line 1276) | render({_n:k}){return`${this.lhs} = ${this.rhs};`+k} method optimizeNames (line 1276) | optimizeNames(k,I){if(!(this.lhs instanceof e.Name&&!k[this.lhs.str]&&... method names (line 1276) | get names(){let k=this.lhs instanceof e.Name?{}:{...this.lhs.names};re... method constructor (line 1280) | constructor(x){var b;this.refs={},this.dynamicAnchors={};let _;typeof ... class s (line 1276) | class s{optimizeNodes(){return this}optimizeNames(k,I){return this}} method constructor (line 1276) | constructor(u,l){super(l),this.prefix=u} method setValue (line 1276) | setValue(u,{property:l,itemIndex:d}){this.value=u,this.scopePath=(0,e.... method optimizeNodes (line 1276) | optimizeNodes(){return this} method optimizeNames (line 1276) | optimizeNames(k,I){return this} class o (line 1276) | class o extends s{constructor(k,I,q){super(),this.varKind=k,this.name=I,... method constructor (line 1276) | constructor(k,I,q){super(),this.varKind=k,this.name=I,this.rhs=q} method render (line 1276) | render({es5:k,_n:I}){let q=k?r.varKinds.var:this.varKind,le=this.rhs==... method optimizeNames (line 1276) | optimizeNames(k,I){if(k[this.name.str])return this.rhs&&(this.rhs=j(th... method names (line 1276) | get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}} class a (line 1276) | class a extends s{constructor(k,I,q){super(),this.lhs=k,this.rhs=I,this.... method constructor (line 1276) | constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=... method get (line 1276) | get(){return this._scope} method name (line 1276) | name(u){return new s(u,this._newName(u))} method value (line 1276) | value(u,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must ... method getValue (line 1276) | getValue(u,l){let d=this._values[u];if(d)return d.get(l)} method scopeRefs (line 1276) | scopeRefs(u,l=this._values){return this._reduceValues(l,d=>{if(d.scope... method scopeCode (line 1276) | scopeCode(u=this._values,l,d){return this._reduceValues(u,p=>{if(p.val... method _reduceValues (line 1276) | _reduceValues(u,l,d={},p){let m=e.nil;for(let f in u){let g=u[f];if(!g... method constructor (line 1276) | constructor(k,I,q){super(),this.lhs=k,this.rhs=I,this.sideEffects=q} method render (line 1276) | render({_n:k}){return`${this.lhs} = ${this.rhs};`+k} method optimizeNames (line 1276) | optimizeNames(k,I){if(!(this.lhs instanceof e.Name&&!k[this.lhs.str]&&... method names (line 1276) | get names(){let k=this.lhs instanceof e.Name?{}:{...this.lhs.names};re... method constructor (line 1280) | constructor(x){var b;this.refs={},this.dynamicAnchors={};let _;typeof ... class c (line 1276) | class c extends a{constructor(k,I,q,le){super(k,q,le),this.op=I}render({... method constructor (line 1276) | constructor(k,I,q,le){super(k,q,le),this.op=I} method render (line 1276) | render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k} method _addVocabularies (line 1283) | _addVocabularies(){super._addVocabularies(),n.default.forEach(f=>this.... method _addDefaultMetaSchema (line 1283) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.me... method defaultMeta (line 1283) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.... class u (line 1276) | class u extends s{constructor(k){super(),this.label=k,this.names={}}rend... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`${this.label}:`+k} class l (line 1276) | class l extends s{constructor(k){super(),this.label=k,this.names={}}rend... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k} class d (line 1276) | class d extends s{constructor(k){super(),this.error=k}render({_n:k}){ret... method constructor (line 1276) | constructor(k){super(),this.error=k} method render (line 1276) | render({_n:k}){return`throw ${this.error};`+k} method names (line 1276) | get names(){return this.error.names} class p (line 1276) | class p extends s{constructor(k){super(),this.code=k}render({_n:k}){retu... method constructor (line 1276) | constructor(k){super(),this.code=k} method render (line 1276) | render({_n:k}){return`${this.code};`+k} method optimizeNodes (line 1276) | optimizeNodes(){return`${this.code}`?this:void 0} method optimizeNames (line 1276) | optimizeNames(k,I){return this.code=j(this.code,k,I),this} method names (line 1276) | get names(){return this.code instanceof e._CodeOrName?this.code.names:{}} class m (line 1276) | class m extends s{constructor(k=[]){super(),this.nodes=k}render(k){retur... method constructor (line 1276) | constructor(k=[]){super(),this.nodes=k} method render (line 1276) | render(k){return this.nodes.reduce((I,q)=>I+q.render(k),"")} method optimizeNodes (line 1276) | optimizeNodes(){let{nodes:k}=this,I=k.length;for(;I--;){let q=k[I].opt... method optimizeNames (line 1276) | optimizeNames(k,I){let{nodes:q}=this,le=q.length;for(;le--;){let ce=q[... method names (line 1276) | get names(){return this.nodes.reduce((k,I)=>U(k,I.names),{})} class f (line 1276) | class f extends m{render(k){return"{"+k._n+super.render(k)+"}"+k._n}} method render (line 1276) | render(k){return"{"+k._n+super.render(k)+"}"+k._n} class g (line 1276) | class g extends m{} class h (line 1276) | class h extends f{} class v (line 1276) | class v extends f{constructor(k,I){super(I),this.condition=k}render(k){l... method constructor (line 1276) | constructor(k,I){super(I),this.condition=k} method render (line 1276) | render(k){let I=`if(${this.condition})`+super.render(k);return this.el... method optimizeNodes (line 1276) | optimizeNodes(){super.optimizeNodes();let k=this.condition;if(k===!0)r... method optimizeNames (line 1276) | optimizeNames(k,I){var q;if(this.else=(q=this.else)===null||q===void 0... method names (line 1276) | get names(){let k=super.names;return W(k,this.condition),this.else&&U(... class x (line 1276) | class x extends f{} class b (line 1276) | class b extends x{constructor(k){super(),this.iteration=k}render(k){retu... method constructor (line 1276) | constructor(k){super(),this.iteration=k} method render (line 1276) | render(k){return`for(${this.iteration})`+super.render(k)} method optimizeNames (line 1276) | optimizeNames(k,I){if(super.optimizeNames(k,I))return this.iteration=j... method names (line 1276) | get names(){return U(super.names,this.iteration.names)} class _ (line 1276) | class _ extends x{constructor(k,I,q,le){super(),this.varKind=k,this.name... method constructor (line 1276) | constructor(k,I,q,le){super(),this.varKind=k,this.name=I,this.from=q,t... method render (line 1276) | render(k){let I=k.es5?r.varKinds.var:this.varKind,{name:q,from:le,to:c... method names (line 1276) | get names(){let k=W(super.names,this.from);return W(k,this.to)} method constructor (line 1280) | constructor(P={}){this.schemas={},this.refs={},this.formats={},this._c... method _addVocabularies (line 1280) | _addVocabularies(){this.addKeyword("$async")} method _addDefaultMetaSchema (line 1280) | _addDefaultMetaSchema(){let{$data:P,meta:H,schemaId:M}=this.opts,k=d;M... method defaultMeta (line 1280) | defaultMeta(){let{meta:P,schemaId:H}=this.opts;return this.opts.defaul... method validate (line 1280) | validate(P,H){let M;if(typeof P=="string"){if(M=this.getSchema(P),!M)t... method compile (line 1280) | compile(P,H){let M=this._addSchema(P,H);return M.validate||this._compi... method compileAsync (line 1280) | compileAsync(P,H){if(typeof this.opts.loadSchema!="function")throw new... method addSchema (line 1280) | addSchema(P,H,M,k=this.opts.validateSchema){if(Array.isArray(P)){for(l... method addMetaSchema (line 1280) | addMetaSchema(P,H,M=this.opts.validateSchema){return this.addSchema(P,... method validateSchema (line 1280) | validateSchema(P,H){if(typeof P=="boolean")return!0;let M;if(M=P.$sche... method getSchema (line 1280) | getSchema(P){let H;for(;typeof(H=w.call(this,P))=="string";)P=H;if(H==... method removeSchema (line 1280) | removeSchema(P){if(P instanceof RegExp)return this._removeAllSchemas(t... method addVocabulary (line 1280) | addVocabulary(P){for(let H of P)this.addKeyword(H);return this} method addKeyword (line 1280) | addKeyword(P,H){let M;if(typeof P=="string")M=P,typeof H=="object"&&(t... method getKeyword (line 1280) | getKeyword(P){let H=this.RULES.all[P];return typeof H=="object"?H.defi... method removeKeyword (line 1280) | removeKeyword(P){let{RULES:H}=this;delete H.keywords[P],delete H.all[P... method addFormat (line 1280) | addFormat(P,H){return typeof H=="string"&&(H=new RegExp(H)),this.forma... method errorsText (line 1280) | errorsText(P=this.errors,{separator:H=", ",dataVar:M="data"}={}){retur... method $dataMetaSchema (line 1280) | $dataMetaSchema(P,H){let M=this.RULES.all;P=JSON.parse(JSON.stringify(... method _removeAllSchemas (line 1280) | _removeAllSchemas(P,H){for(let M in P){let k=P[M];(!H||H.test(M))&&(ty... method _addSchema (line 1280) | _addSchema(P,H,M,k=this.opts.validateSchema,I=this.opts.addUsedSchema)... method _checkUnique (line 1280) | _checkUnique(P){if(this.schemas[P]||this.refs[P])throw new Error(`sche... method _compileSchemaEnv (line 1280) | _compileSchemaEnv(P){if(P.meta?this._compileMetaSchema(P):o.compileSch... method _compileMetaSchema (line 1280) | _compileMetaSchema(P){let H=this.opts;this.opts=this._metaOpts;try{o.c... class S (line 1276) | class S extends x{constructor(k,I,q,le){super(),this.loop=k,this.varKind... method constructor (line 1276) | constructor(k,I,q,le){super(),this.loop=k,this.varKind=I,this.name=q,t... method render (line 1276) | render(k){return`for(${this.varKind} ${this.name} ${this.loop} ${this.... method optimizeNames (line 1276) | optimizeNames(k,I){if(super.optimizeNames(k,I))return this.iterable=j(... method names (line 1276) | get names(){return U(super.names,this.iterable.names)} class w (line 1276) | class w extends f{constructor(k,I,q){super(),this.name=k,this.args=I,thi... method constructor (line 1276) | constructor(k,I,q){super(),this.name=k,this.args=I,this.async=q} method render (line 1276) | render(k){return`${this.async?"async ":""}function ${this.name}(${this... class E (line 1276) | class E extends m{render(k){return"return "+super.render(k)}} method render (line 1276) | render(k){return"return "+super.render(k)} class $ (line 1276) | class $ extends f{render(k){let I="try"+super.render(k);return this.catc... method render (line 1276) | render(k){let I="try"+super.render(k);return this.catch&&(I+=this.catc... method optimizeNodes (line 1276) | optimizeNodes(){var k,I;return super.optimizeNodes(),(k=this.catch)===... method optimizeNames (line 1276) | optimizeNames(k,I){var q,le;return super.optimizeNames(k,I),(q=this.ca... method names (line 1276) | get names(){let k=super.names;return this.catch&&U(k,this.catch.names)... class R (line 1276) | class R extends f{constructor(k){super(),this.error=k}render(k){return`c... method constructor (line 1276) | constructor(k){super(),this.error=k} method render (line 1276) | render(k){return`catch(${this.error})`+super.render(k)} class A (line 1276) | class A extends f{render(k){return"finally"+super.render(k)}} method render (line 1276) | render(k){return"finally"+super.render(k)} class N (line 1276) | class N{constructor(k,I={}){this._values={},this._blockStarts=[],this._c... method constructor (line 1276) | constructor(k,I={}){this._values={},this._blockStarts=[],this._constan... method toString (line 1277) | toString(){return this._root.render(this.opts)} method name (line 1277) | name(k){return this._scope.name(k)} method scopeName (line 1277) | scopeName(k){return this._extScope.name(k)} method scopeValue (line 1277) | scopeValue(k,I){let q=this._extScope.value(k,I);return(this._values[q.... method getScopeValue (line 1277) | getScopeValue(k,I){return this._extScope.getValue(k,I)} method scopeRefs (line 1277) | scopeRefs(k){return this._extScope.scopeRefs(k,this._values)} method scopeCode (line 1277) | scopeCode(){return this._extScope.scopeCode(this._values)} method _def (line 1277) | _def(k,I,q,le){let ce=this._scope.toName(I);return q!==void 0&&le&&(th... method const (line 1277) | const(k,I,q){return this._def(r.varKinds.const,k,I,q)} method let (line 1277) | let(k,I,q){return this._def(r.varKinds.let,k,I,q)} method var (line 1277) | var(k,I,q){return this._def(r.varKinds.var,k,I,q)} method assign (line 1277) | assign(k,I,q){return this._leafNode(new a(k,I,q))} method add (line 1277) | add(k,I){return this._leafNode(new c(k,t.operators.ADD,I))} method code (line 1277) | code(k){return typeof k=="function"?k():k!==e.nil&&this._leafNode(new ... method object (line 1277) | object(...k){let I=["{"];for(let[q,le]of k)I.length>1&&I.push(","),I.p... method if (line 1277) | if(k,I,q){if(this._blockNode(new v(k)),I&&q)this.code(I).else().code(q... method elseIf (line 1277) | elseIf(k){return this._elseNode(new v(k))} method else (line 1277) | else(){return this._elseNode(new h)} method endIf (line 1277) | endIf(){return this._endBlockNode(v,h)} method _for (line 1277) | _for(k,I){return this._blockNode(k),I&&this.code(I).endFor(),this} method for (line 1277) | for(k,I){return this._for(new b(k),I)} method forRange (line 1277) | forRange(k,I,q,le,ce=this.opts.es5?r.varKinds.var:r.varKinds.let){let ... method forOf (line 1277) | forOf(k,I,q,le=r.varKinds.const){let ce=this._scope.toName(k);if(this.... method forIn (line 1277) | forIn(k,I,q,le=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.... method endFor (line 1277) | endFor(){return this._endBlockNode(x)} method label (line 1277) | label(k){return this._leafNode(new u(k))} method break (line 1277) | break(k){return this._leafNode(new l(k))} method return (line 1277) | return(k){let I=new E;if(this._blockNode(I),this.code(k),I.nodes.lengt... method try (line 1277) | try(k,I,q){if(!I&&!q)throw new Error('CodeGen: "try" without "catch" a... method throw (line 1277) | throw(k){return this._leafNode(new d(k))} method block (line 1277) | block(k,I){return this._blockStarts.push(this._nodes.length),k&&this.c... method endBlock (line 1277) | endBlock(k){let I=this._blockStarts.pop();if(I===void 0)throw new Erro... method func (line 1277) | func(k,I=e.nil,q,le){return this._blockNode(new w(k,I,q)),le&&this.cod... method endFunc (line 1277) | endFunc(){return this._endBlockNode(w)} method optimize (line 1277) | optimize(k=1){for(;k-- >0;)this._root.optimizeNodes(),this._root.optim... method _leafNode (line 1277) | _leafNode(k){return this._currNode.nodes.push(k),this} method _blockNode (line 1277) | _blockNode(k){this._currNode.nodes.push(k),this._nodes.push(k)} method _endBlockNode (line 1277) | _endBlockNode(k,I){let q=this._currNode;if(q instanceof k||I&&q instan... method _elseNode (line 1277) | _elseNode(k){let I=this._currNode;if(!(I instanceof v))throw new Error... method _root (line 1277) | get _root(){return this._nodes[0]} method _currNode (line 1277) | get _currNode(){let k=this._nodes;return k[k.length-1]} method _currNode (line 1277) | set _currNode(k){let I=this._nodes;I[I.length-1]=k} function U (line 1277) | function U(M,k){for(let I in k)M[I]=(M[I]||0)+(k[I]||0);return M} function W (line 1277) | function W(M,k){return k instanceof e._CodeOrName?U(M,k.names):M} function j (line 1277) | function j(M,k,I){if(M instanceof e.Name)return q(M);if(!le(M))return M;... function ae (line 1277) | function ae(M,k){for(let I in k)M[I]=(M[I]||0)-(k[I]||0)} function Ne (line 1277) | function Ne(M){return typeof M=="boolean"||typeof M=="number"||M===null?... function Et (line 1277) | function Et(...M){return M.reduce(ze)} function K (line 1277) | function K(...M){return M.reduce(Be)} function P (line 1277) | function P(M){return(k,I)=>k===e.nil?I:I===e.nil?k:(0,e._)`${H(k)} ${M} ... function H (line 1277) | function H(M){return M instanceof e.Name?M:(0,e._)`(${M})`} function n (line 1277) | function n(w){let E={};for(let $ of w)E[$]=!0;return E} method constructor (line 1276) | constructor(x){super(),this._items=typeof x=="string"?[x]:x} method toString (line 1276) | toString(){return this.str} method emptyStr (line 1276) | emptyStr(){if(this._items.length>1)return!1;let x=this._items[0];retur... method str (line 1276) | get str(){var x;return(x=this._str)!==null&&x!==void 0?x:this._str=thi... method names (line 1276) | get names(){var x;return(x=this._names)!==null&&x!==void 0?x:this._nam... function i (line 1277) | function i(w,E){return typeof E=="boolean"?E:Object.keys(E).length===0?!... method constructor (line 1276) | constructor({prefixes:u,parent:l}={}){this._names={},this._prefixes=u,... method toName (line 1276) | toName(u){return u instanceof e.Name?u:this.name(u)} method name (line 1276) | name(u){return new e.Name(this._newName(u))} method _newName (line 1276) | _newName(u){let l=this._names[u]||this._nameGroup(u);return`${u}${l.in... method _nameGroup (line 1276) | _nameGroup(u){var l,d;if(!((d=(l=this._parent)===null||l===void 0?void... function s (line 1277) | function s(w,E=w.schema){let{opts:$,self:R}=w;if(!$.strictSchema||typeof... method constructor (line 1276) | constructor(u,l){super(l),this.prefix=u} method setValue (line 1276) | setValue(u,{property:l,itemIndex:d}){this.value=u,this.scopePath=(0,e.... method optimizeNodes (line 1276) | optimizeNodes(){return this} method optimizeNames (line 1276) | optimizeNames(k,I){return this} function o (line 1277) | function o(w,E){if(typeof w=="boolean")return!w;for(let $ in w)if(E[$])r... method constructor (line 1276) | constructor(k,I,q){super(),this.varKind=k,this.name=I,this.rhs=q} method render (line 1276) | render({es5:k,_n:I}){let q=k?r.varKinds.var:this.varKind,le=this.rhs==... method optimizeNames (line 1276) | optimizeNames(k,I){if(k[this.name.str])return this.rhs&&(this.rhs=j(th... method names (line 1276) | get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}} function a (line 1277) | function a(w,E){if(typeof w=="boolean")return!w;for(let $ in w)if($!=="$... method constructor (line 1276) | constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=... method get (line 1276) | get(){return this._scope} method name (line 1276) | name(u){return new s(u,this._newName(u))} method value (line 1276) | value(u,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must ... method getValue (line 1276) | getValue(u,l){let d=this._values[u];if(d)return d.get(l)} method scopeRefs (line 1276) | scopeRefs(u,l=this._values){return this._reduceValues(l,d=>{if(d.scope... method scopeCode (line 1276) | scopeCode(u=this._values,l,d){return this._reduceValues(u,p=>{if(p.val... method _reduceValues (line 1276) | _reduceValues(u,l,d={},p){let m=e.nil;for(let f in u){let g=u[f];if(!g... method constructor (line 1276) | constructor(k,I,q){super(),this.lhs=k,this.rhs=I,this.sideEffects=q} method render (line 1276) | render({_n:k}){return`${this.lhs} = ${this.rhs};`+k} method optimizeNames (line 1276) | optimizeNames(k,I){if(!(this.lhs instanceof e.Name&&!k[this.lhs.str]&&... method names (line 1276) | get names(){let k=this.lhs instanceof e.Name?{}:{...this.lhs.names};re... method constructor (line 1280) | constructor(x){var b;this.refs={},this.dynamicAnchors={};let _;typeof ... function c (line 1277) | function c({topSchemaRef:w,schemaPath:E},$,R,A){if(!A){if(typeof $=="num... method constructor (line 1276) | constructor(k,I,q,le){super(k,q,le),this.op=I} method render (line 1276) | render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k} method _addVocabularies (line 1283) | _addVocabularies(){super._addVocabularies(),n.default.forEach(f=>this.... method _addDefaultMetaSchema (line 1283) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.me... method defaultMeta (line 1283) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.... function u (line 1277) | function u(w){return p(decodeURIComponent(w))} method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`${this.label}:`+k} function l (line 1277) | function l(w){return encodeURIComponent(d(w))} method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k} function d (line 1277) | function d(w){return typeof w=="number"?`${w}`:w.replace(/~/g,"~0").repl... method constructor (line 1276) | constructor(k){super(),this.error=k} method render (line 1276) | render({_n:k}){return`throw ${this.error};`+k} method names (line 1276) | get names(){return this.error.names} function p (line 1277) | function p(w){return w.replace(/~1/g,"/").replace(/~0/g,"~")} method constructor (line 1276) | constructor(k){super(),this.code=k} method render (line 1276) | render({_n:k}){return`${this.code};`+k} method optimizeNodes (line 1276) | optimizeNodes(){return`${this.code}`?this:void 0} method optimizeNames (line 1276) | optimizeNames(k,I){return this.code=j(this.code,k,I),this} method names (line 1276) | get names(){return this.code instanceof e._CodeOrName?this.code.names:{}} function m (line 1277) | function m(w,E){if(Array.isArray(w))for(let $ of w)E($);else E(w)} method constructor (line 1276) | constructor(k=[]){super(),this.nodes=k} method render (line 1276) | render(k){return this.nodes.reduce((I,q)=>I+q.render(k),"")} method optimizeNodes (line 1276) | optimizeNodes(){let{nodes:k}=this,I=k.length;for(;I--;){let q=k[I].opt... method optimizeNames (line 1276) | optimizeNames(k,I){let{nodes:q}=this,le=q.length;for(;le--;){let ce=q[... method names (line 1276) | get names(){return this.nodes.reduce((k,I)=>U(k,I.names),{})} function f (line 1277) | function f({mergeNames:w,mergeToName:E,mergeValues:$,resultToName:R}){re... method render (line 1276) | render(k){return"{"+k._n+super.render(k)+"}"+k._n} function g (line 1277) | function g(w,E){if(E===!0)return w.var("props",!0);let $=w.var("props",(... function h (line 1277) | function h(w,E,$){Object.keys($).forEach(R=>w.assign((0,e._)`${E}${(0,e.... function x (line 1277) | function x(w,E){return w.scopeValue("func",{ref:E,code:v[E.code]||(v[E.c... function _ (line 1277) | function _(w,E,$){if(w instanceof e.Name){let R=E===b.Num;return $?R?(0,... method constructor (line 1276) | constructor(k,I,q,le){super(),this.varKind=k,this.name=I,this.from=q,t... method render (line 1276) | render(k){let I=k.es5?r.varKinds.var:this.varKind,{name:q,from:le,to:c... method names (line 1276) | get names(){let k=W(super.names,this.from);return W(k,this.to)} method constructor (line 1280) | constructor(P={}){this.schemas={},this.refs={},this.formats={},this._c... method _addVocabularies (line 1280) | _addVocabularies(){this.addKeyword("$async")} method _addDefaultMetaSchema (line 1280) | _addDefaultMetaSchema(){let{$data:P,meta:H,schemaId:M}=this.opts,k=d;M... method defaultMeta (line 1280) | defaultMeta(){let{meta:P,schemaId:H}=this.opts;return this.opts.defaul... method validate (line 1280) | validate(P,H){let M;if(typeof P=="string"){if(M=this.getSchema(P),!M)t... method compile (line 1280) | compile(P,H){let M=this._addSchema(P,H);return M.validate||this._compi... method compileAsync (line 1280) | compileAsync(P,H){if(typeof this.opts.loadSchema!="function")throw new... method addSchema (line 1280) | addSchema(P,H,M,k=this.opts.validateSchema){if(Array.isArray(P)){for(l... method addMetaSchema (line 1280) | addMetaSchema(P,H,M=this.opts.validateSchema){return this.addSchema(P,... method validateSchema (line 1280) | validateSchema(P,H){if(typeof P=="boolean")return!0;let M;if(M=P.$sche... method getSchema (line 1280) | getSchema(P){let H;for(;typeof(H=w.call(this,P))=="string";)P=H;if(H==... method removeSchema (line 1280) | removeSchema(P){if(P instanceof RegExp)return this._removeAllSchemas(t... method addVocabulary (line 1280) | addVocabulary(P){for(let H of P)this.addKeyword(H);return this} method addKeyword (line 1280) | addKeyword(P,H){let M;if(typeof P=="string")M=P,typeof H=="object"&&(t... method getKeyword (line 1280) | getKeyword(P){let H=this.RULES.all[P];return typeof H=="object"?H.defi... method removeKeyword (line 1280) | removeKeyword(P){let{RULES:H}=this;delete H.keywords[P],delete H.all[P... method addFormat (line 1280) | addFormat(P,H){return typeof H=="string"&&(H=new RegExp(H)),this.forma... method errorsText (line 1280) | errorsText(P=this.errors,{separator:H=", ",dataVar:M="data"}={}){retur... method $dataMetaSchema (line 1280) | $dataMetaSchema(P,H){let M=this.RULES.all;P=JSON.parse(JSON.stringify(... method _removeAllSchemas (line 1280) | _removeAllSchemas(P,H){for(let M in P){let k=P[M];(!H||H.test(M))&&(ty... method _addSchema (line 1280) | _addSchema(P,H,M,k=this.opts.validateSchema,I=this.opts.addUsedSchema)... method _checkUnique (line 1280) | _checkUnique(P){if(this.schemas[P]||this.refs[P])throw new Error(`sche... method _compileSchemaEnv (line 1280) | _compileSchemaEnv(P){if(P.meta?this._compileMetaSchema(P):o.compileSch... method _compileMetaSchema (line 1280) | _compileMetaSchema(P){let H=this.opts;this.opts=this._metaOpts;try{o.c... function S (line 1277) | function S(w,E,$=w.opts.strictSchema){if($){if(E=`strict mode: ${E}`,$==... method constructor (line 1276) | constructor(k,I,q,le){super(),this.loop=k,this.varKind=I,this.name=q,t... method render (line 1276) | render(k){return`for(${this.varKind} ${this.name} ${this.loop} ${this.... method optimizeNames (line 1276) | optimizeNames(k,I){if(super.optimizeNames(k,I))return this.iterable=j(... method names (line 1276) | get names(){return U(super.names,this.iterable.names)} function i (line 1277) | function i(h,v=t.keywordError,x,b){let{it:_}=h,{gen:S,compositeRule:w,al... method constructor (line 1276) | constructor({prefixes:u,parent:l}={}){this._names={},this._prefixes=u,... method toName (line 1276) | toName(u){return u instanceof e.Name?u:this.name(u)} method name (line 1276) | name(u){return new e.Name(this._newName(u))} method _newName (line 1276) | _newName(u){let l=this._names[u]||this._nameGroup(u);return`${u}${l.in... method _nameGroup (line 1276) | _nameGroup(u){var l,d;if(!((d=(l=this._parent)===null||l===void 0?void... function s (line 1277) | function s(h,v=t.keywordError,x){let{it:b}=h,{gen:_,compositeRule:S,allE... method constructor (line 1276) | constructor(u,l){super(l),this.prefix=u} method setValue (line 1276) | setValue(u,{property:l,itemIndex:d}){this.value=u,this.scopePath=(0,e.... method optimizeNodes (line 1276) | optimizeNodes(){return this} method optimizeNames (line 1276) | optimizeNames(k,I){return this} function o (line 1277) | function o(h,v){h.assign(n.default.errors,v),h.if((0,e._)`${n.default.vE... method constructor (line 1276) | constructor(k,I,q){super(),this.varKind=k,this.name=I,this.rhs=q} method render (line 1276) | render({es5:k,_n:I}){let q=k?r.varKinds.var:this.varKind,le=this.rhs==... method optimizeNames (line 1276) | optimizeNames(k,I){if(k[this.name.str])return this.rhs&&(this.rhs=j(th... method names (line 1276) | get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}} function a (line 1277) | function a({gen:h,keyword:v,schemaValue:x,data:b,errsCount:_,it:S}){if(_... method constructor (line 1276) | constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=... method get (line 1276) | get(){return this._scope} method name (line 1276) | name(u){return new s(u,this._newName(u))} method value (line 1276) | value(u,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must ... method getValue (line 1276) | getValue(u,l){let d=this._values[u];if(d)return d.get(l)} method scopeRefs (line 1276) | scopeRefs(u,l=this._values){return this._reduceValues(l,d=>{if(d.scope... method scopeCode (line 1276) | scopeCode(u=this._values,l,d){return this._reduceValues(u,p=>{if(p.val... method _reduceValues (line 1276) | _reduceValues(u,l,d={},p){let m=e.nil;for(let f in u){let g=u[f];if(!g... method constructor (line 1276) | constructor(k,I,q){super(),this.lhs=k,this.rhs=I,this.sideEffects=q} method render (line 1276) | render({_n:k}){return`${this.lhs} = ${this.rhs};`+k} method optimizeNames (line 1276) | optimizeNames(k,I){if(!(this.lhs instanceof e.Name&&!k[this.lhs.str]&&... method names (line 1276) | get names(){let k=this.lhs instanceof e.Name?{}:{...this.lhs.names};re... method constructor (line 1280) | constructor(x){var b;this.refs={},this.dynamicAnchors={};let _;typeof ... function c (line 1277) | function c(h,v){let x=h.const("err",v);h.if((0,e._)`${n.default.vErrors}... method constructor (line 1276) | constructor(k,I,q,le){super(k,q,le),this.op=I} method render (line 1276) | render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k} method _addVocabularies (line 1283) | _addVocabularies(){super._addVocabularies(),n.default.forEach(f=>this.... method _addDefaultMetaSchema (line 1283) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.me... method defaultMeta (line 1283) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.... function u (line 1277) | function u(h,v){let{gen:x,validateName:b,schemaEnv:_}=h;_.$async?x.throw... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`${this.label}:`+k} function d (line 1277) | function d(h,v,x){let{createErrors:b}=h.it;return b===!1?(0,e._)`{}`:p(h... method constructor (line 1276) | constructor(k){super(),this.error=k} method render (line 1276) | render({_n:k}){return`throw ${this.error};`+k} method names (line 1276) | get names(){return this.error.names} function p (line 1277) | function p(h,v,x={}){let{gen:b,it:_}=h,S=[m(_,x),f(h,x)];return g(h,v,S)... method constructor (line 1276) | constructor(k){super(),this.code=k} method render (line 1276) | render({_n:k}){return`${this.code};`+k} method optimizeNodes (line 1276) | optimizeNodes(){return`${this.code}`?this:void 0} method optimizeNames (line 1276) | optimizeNames(k,I){return this.code=j(this.code,k,I),this} method names (line 1276) | get names(){return this.code instanceof e._CodeOrName?this.code.names:{}} function m (line 1277) | function m({errorPath:h},{instancePath:v}){let x=v?(0,e.str)`${h}${(0,r.... method constructor (line 1276) | constructor(k=[]){super(),this.nodes=k} method render (line 1276) | render(k){return this.nodes.reduce((I,q)=>I+q.render(k),"")} method optimizeNodes (line 1276) | optimizeNodes(){let{nodes:k}=this,I=k.length;for(;I--;){let q=k[I].opt... method optimizeNames (line 1276) | optimizeNames(k,I){let{nodes:q}=this,le=q.length;for(;le--;){let ce=q[... method names (line 1276) | get names(){return this.nodes.reduce((k,I)=>U(k,I.names),{})} function f (line 1277) | function f({keyword:h,it:{errSchemaPath:v}},{schemaPath:x,parentSchema:b... method render (line 1276) | render(k){return"{"+k._n+super.render(k)+"}"+k._n} function g (line 1277) | function g(h,{params:v,message:x},b){let{keyword:_,data:S,schemaValue:w,... function s (line 1277) | function s(c){let{gen:u,schema:l,validateName:d}=c;l===!1?a(c,!1):typeof... method constructor (line 1276) | constructor(u,l){super(l),this.prefix=u} method setValue (line 1276) | setValue(u,{property:l,itemIndex:d}){this.value=u,this.scopePath=(0,e.... method optimizeNodes (line 1276) | optimizeNodes(){return this} method optimizeNames (line 1276) | optimizeNames(k,I){return this} function o (line 1277) | function o(c,u){let{gen:l,schema:d}=c;d===!1?(l.var(u,!1),a(c)):l.var(u,... method constructor (line 1276) | constructor(k,I,q){super(),this.varKind=k,this.name=I,this.rhs=q} method render (line 1276) | render({es5:k,_n:I}){let q=k?r.varKinds.var:this.varKind,le=this.rhs==... method optimizeNames (line 1276) | optimizeNames(k,I){if(k[this.name.str])return this.rhs&&(this.rhs=j(th... method names (line 1276) | get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}} function a (line 1277) | function a(c,u){let{gen:l,data:d}=c,p={gen:l,keyword:"false schema",data... method constructor (line 1276) | constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=... method get (line 1276) | get(){return this._scope} method name (line 1276) | name(u){return new s(u,this._newName(u))} method value (line 1276) | value(u,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must ... method getValue (line 1276) | getValue(u,l){let d=this._values[u];if(d)return d.get(l)} method scopeRefs (line 1276) | scopeRefs(u,l=this._values){return this._reduceValues(l,d=>{if(d.scope... method scopeCode (line 1276) | scopeCode(u=this._values,l,d){return this._reduceValues(u,p=>{if(p.val... method _reduceValues (line 1276) | _reduceValues(u,l,d={},p){let m=e.nil;for(let f in u){let g=u[f];if(!g... method constructor (line 1276) | constructor(k,I,q){super(),this.lhs=k,this.rhs=I,this.sideEffects=q} method render (line 1276) | render({_n:k}){return`${this.lhs} = ${this.rhs};`+k} method optimizeNames (line 1276) | optimizeNames(k,I){if(!(this.lhs instanceof e.Name&&!k[this.lhs.str]&&... method names (line 1276) | get names(){let k=this.lhs instanceof e.Name?{}:{...this.lhs.names};re... method constructor (line 1280) | constructor(x){var b;this.refs={},this.dynamicAnchors={};let _;typeof ... function n (line 1277) | function n(s){return typeof s=="string"&&r.has(s)} method constructor (line 1276) | constructor(x){super(),this._items=typeof x=="string"?[x]:x} method toString (line 1276) | toString(){return this.str} method emptyStr (line 1276) | emptyStr(){if(this._items.length>1)return!1;let x=this._items[0];retur... method str (line 1276) | get str(){var x;return(x=this._str)!==null&&x!==void 0?x:this._str=thi... method names (line 1276) | get names(){var x;return(x=this._names)!==null&&x!==void 0?x:this._nam... function i (line 1277) | function i(){let s={number:{type:"number",rules:[]},string:{type:"string... method constructor (line 1276) | constructor({prefixes:u,parent:l}={}){this._names={},this._prefixes=u,... method toName (line 1276) | toName(u){return u instanceof e.Name?u:this.name(u)} method name (line 1276) | name(u){return new e.Name(this._newName(u))} method _newName (line 1276) | _newName(u){let l=this._names[u]||this._nameGroup(u);return`${u}${l.in... method _nameGroup (line 1276) | _nameGroup(u){var l,d;if(!((d=(l=this._parent)===null||l===void 0?void... function e (line 1277) | function e({schema:i,self:s},o){let a=s.RULES.types[o];return a&&a!==!0&... method constructor (line 1280) | constructor(n){super("validation failed"),this.errors=n,this.ajv=this.... function r (line 1277) | function r(i,s){return s.rules.some(o=>n(i,o))} method constructor (line 1276) | constructor(x){if(super(),!t.IDENTIFIER.test(x))throw new Error("CodeG... method toString (line 1276) | toString(){return this.str} method emptyStr (line 1276) | emptyStr(){return!1} method names (line 1276) | get names(){return{[this.str]:1}} method constructor (line 1276) | constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.valu... method constructor (line 1280) | constructor(i,s,o,a){super(a||`can't resolve reference ${o} from id ${... function n (line 1277) | function n(i,s){var o;return i[s.keyword]!==void 0||((o=s.definition.imp... method constructor (line 1276) | constructor(x){super(),this._items=typeof x=="string"?[x]:x} method toString (line 1276) | toString(){return this.str} method emptyStr (line 1276) | emptyStr(){if(this._items.length>1)return!1;let x=this._items[0];retur... method str (line 1276) | get str(){var x;return(x=this._str)!==null&&x!==void 0?x:this._str=thi... method names (line 1276) | get names(){var x;return(x=this._names)!==null&&x!==void 0?x:this._nam... function a (line 1277) | function a(b){let _=c(b.type);if(_.includes("null")){if(b.nullable===!1)... method constructor (line 1276) | constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=... method get (line 1276) | get(){return this._scope} method name (line 1276) | name(u){return new s(u,this._newName(u))} method value (line 1276) | value(u,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must ... method getValue (line 1276) | getValue(u,l){let d=this._values[u];if(d)return d.get(l)} method scopeRefs (line 1276) | scopeRefs(u,l=this._values){return this._reduceValues(l,d=>{if(d.scope... method scopeCode (line 1276) | scopeCode(u=this._values,l,d){return this._reduceValues(u,p=>{if(p.val... method _reduceValues (line 1276) | _reduceValues(u,l,d={},p){let m=e.nil;for(let f in u){let g=u[f];if(!g... method constructor (line 1276) | constructor(k,I,q){super(),this.lhs=k,this.rhs=I,this.sideEffects=q} method render (line 1276) | render({_n:k}){return`${this.lhs} = ${this.rhs};`+k} method optimizeNames (line 1276) | optimizeNames(k,I){if(!(this.lhs instanceof e.Name&&!k[this.lhs.str]&&... method names (line 1276) | get names(){let k=this.lhs instanceof e.Name?{}:{...this.lhs.names};re... method constructor (line 1280) | constructor(x){var b;this.refs={},this.dynamicAnchors={};let _;typeof ... function c (line 1277) | function c(b){let _=Array.isArray(b)?b:b?[b]:[];if(_.every(e.isJSONType)... method constructor (line 1276) | constructor(k,I,q,le){super(k,q,le),this.op=I} method render (line 1276) | render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k} method _addVocabularies (line 1283) | _addVocabularies(){super._addVocabularies(),n.default.forEach(f=>this.... method _addDefaultMetaSchema (line 1283) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.me... method defaultMeta (line 1283) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.... function u (line 1277) | function u(b,_){let{gen:S,data:w,opts:E}=b,$=d(_,E.coerceTypes),R=_.leng... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`${this.label}:`+k} function d (line 1277) | function d(b,_){return _?b.filter(S=>l.has(S)||_==="array"&&S==="array")... method constructor (line 1276) | constructor(k){super(),this.error=k} method render (line 1276) | render({_n:k}){return`throw ${this.error};`+k} method names (line 1276) | get names(){return this.error.names} function p (line 1277) | function p(b,_,S){let{gen:w,data:E,opts:$}=b,R=w.let("dataType",(0,i._)`... method constructor (line 1276) | constructor(k){super(),this.code=k} method render (line 1276) | render({_n:k}){return`${this.code};`+k} method optimizeNodes (line 1276) | optimizeNodes(){return`${this.code}`?this:void 0} method optimizeNames (line 1276) | optimizeNames(k,I){return this.code=j(this.code,k,I),this} method names (line 1276) | get names(){return this.code instanceof e._CodeOrName?this.code.names:{}} function m (line 1280) | function m({gen:b,parentData:_,parentDataProperty:S},w){b.if((0,i._)`${_... method constructor (line 1276) | constructor(k=[]){super(),this.nodes=k} method render (line 1276) | render(k){return this.nodes.reduce((I,q)=>I+q.render(k),"")} method optimizeNodes (line 1276) | optimizeNodes(){let{nodes:k}=this,I=k.length;for(;I--;){let q=k[I].opt... method optimizeNames (line 1276) | optimizeNames(k,I){let{nodes:q}=this,le=q.length;for(;le--;){let ce=q[... method names (line 1276) | get names(){return this.nodes.reduce((k,I)=>U(k,I.names),{})} function f (line 1280) | function f(b,_,S,w=o.Correct){let E=w===o.Correct?i.operators.EQ:i.opera... method render (line 1276) | render(k){return"{"+k._n+super.render(k)+"}"+k._n} function g (line 1280) | function g(b,_,S,w){if(b.length===1)return f(b[0],_,S,w);let E,$=(0,s.to... function v (line 1280) | function v(b){let _=x(b);(0,n.reportError)(_,h)} method constructor (line 1276) | constructor(k,I){super(I),this.condition=k} method render (line 1276) | render(k){let I=`if(${this.condition})`+super.render(k);return this.el... method optimizeNodes (line 1276) | optimizeNodes(){super.optimizeNodes();let k=this.condition;if(k===!0)r... method optimizeNames (line 1276) | optimizeNames(k,I){var q;if(this.else=(q=this.else)===null||q===void 0... method names (line 1276) | get names(){let k=super.names;return W(k,this.condition),this.else&&U(... function x (line 1280) | function x(b){let{gen:_,data:S,schema:w}=b,E=(0,s.schemaRefOrVal)(b,w,"t... function n (line 1280) | function n(s,o){let{properties:a,items:c}=s.schema;if(o==="object"&&a)fo... method constructor (line 1276) | constructor(x){super(),this._items=typeof x=="string"?[x]:x} method toString (line 1276) | toString(){return this.str} method emptyStr (line 1276) | emptyStr(){if(this._items.length>1)return!1;let x=this._items[0];retur... method str (line 1276) | get str(){var x;return(x=this._str)!==null&&x!==void 0?x:this._str=thi... method names (line 1276) | get names(){var x;return(x=this._names)!==null&&x!==void 0?x:this._nam... function i (line 1280) | function i(s,o,a){let{gen:c,compositeRule:u,data:l,opts:d}=s;if(a===void... method constructor (line 1276) | constructor({prefixes:u,parent:l}={}){this._names={},this._prefixes=u,... method toName (line 1276) | toName(u){return u instanceof e.Name?u:this.name(u)} method name (line 1276) | name(u){return new e.Name(this._newName(u))} method _newName (line 1276) | _newName(u){let l=this._names[u]||this._nameGroup(u);return`${u}${l.in... method _nameGroup (line 1276) | _nameGroup(u){var l,d;if(!((d=(l=this._parent)===null||l===void 0?void... function s (line 1280) | function s(b,_){let{gen:S,data:w,it:E}=b;S.if(d(S,w,_,E.opts.ownProperti... method constructor (line 1276) | constructor(u,l){super(l),this.prefix=u} method setValue (line 1276) | setValue(u,{property:l,itemIndex:d}){this.value=u,this.scopePath=(0,e.... method optimizeNodes (line 1276) | optimizeNodes(){return this} method optimizeNames (line 1276) | optimizeNames(k,I){return this} function o (line 1280) | function o({gen:b,data:_,it:{opts:S}},w,E){return(0,e.or)(...w.map($=>(0... method constructor (line 1276) | constructor(k,I,q){super(),this.varKind=k,this.name=I,this.rhs=q} method render (line 1276) | render({es5:k,_n:I}){let q=k?r.varKinds.var:this.varKind,le=this.rhs==... method optimizeNames (line 1276) | optimizeNames(k,I){if(k[this.name.str])return this.rhs&&(this.rhs=j(th... method names (line 1276) | get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}} function a (line 1280) | function a(b,_){b.setParams({missingProperty:_},!0),b.error()} method constructor (line 1276) | constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=... method get (line 1276) | get(){return this._scope} method name (line 1276) | name(u){return new s(u,this._newName(u))} method value (line 1276) | value(u,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must ... method getValue (line 1276) | getValue(u,l){let d=this._values[u];if(d)return d.get(l)} method scopeRefs (line 1276) | scopeRefs(u,l=this._values){return this._reduceValues(l,d=>{if(d.scope... method scopeCode (line 1276) | scopeCode(u=this._values,l,d){return this._reduceValues(u,p=>{if(p.val... method _reduceValues (line 1276) | _reduceValues(u,l,d={},p){let m=e.nil;for(let f in u){let g=u[f];if(!g... method constructor (line 1276) | constructor(k,I,q){super(),this.lhs=k,this.rhs=I,this.sideEffects=q} method render (line 1276) | render({_n:k}){return`${this.lhs} = ${this.rhs};`+k} method optimizeNames (line 1276) | optimizeNames(k,I){if(!(this.lhs instanceof e.Name&&!k[this.lhs.str]&&... method names (line 1276) | get names(){let k=this.lhs instanceof e.Name?{}:{...this.lhs.names};re... method constructor (line 1280) | constructor(x){var b;this.refs={},this.dynamicAnchors={};let _;typeof ... function c (line 1280) | function c(b){return b.scopeValue("func",{ref:Object.prototype.hasOwnPro... method constructor (line 1276) | constructor(k,I,q,le){super(k,q,le),this.op=I} method render (line 1276) | render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k} method _addVocabularies (line 1283) | _addVocabularies(){super._addVocabularies(),n.default.forEach(f=>this.... method _addDefaultMetaSchema (line 1283) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.me... method defaultMeta (line 1283) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.... function u (line 1280) | function u(b,_,S){return(0,e._)`${c(b)}.call(${_}, ${S})`} method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`${this.label}:`+k} function l (line 1280) | function l(b,_,S,w){let E=(0,e._)`${_}${(0,e.getProperty)(S)} !== undefi... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k} function d (line 1280) | function d(b,_,S,w){let E=(0,e._)`${_}${(0,e.getProperty)(S)} === undefi... method constructor (line 1276) | constructor(k){super(),this.error=k} method render (line 1276) | render({_n:k}){return`throw ${this.error};`+k} method names (line 1276) | get names(){return this.error.names} function p (line 1280) | function p(b){return b?Object.keys(b).filter(_=>_!=="__proto__"):[]} method constructor (line 1276) | constructor(k){super(),this.code=k} method render (line 1276) | render({_n:k}){return`${this.code};`+k} method optimizeNodes (line 1276) | optimizeNodes(){return`${this.code}`?this:void 0} method optimizeNames (line 1276) | optimizeNames(k,I){return this.code=j(this.code,k,I),this} method names (line 1276) | get names(){return this.code instanceof e._CodeOrName?this.code.names:{}} function m (line 1280) | function m(b,_){return p(_).filter(S=>!(0,r.alwaysValidSchema)(b,_[S]))} method constructor (line 1276) | constructor(k=[]){super(),this.nodes=k} method render (line 1276) | render(k){return this.nodes.reduce((I,q)=>I+q.render(k),"")} method optimizeNodes (line 1276) | optimizeNodes(){let{nodes:k}=this,I=k.length;for(;I--;){let q=k[I].opt... method optimizeNames (line 1276) | optimizeNames(k,I){let{nodes:q}=this,le=q.length;for(;le--;){let ce=q[... method names (line 1276) | get names(){return this.nodes.reduce((k,I)=>U(k,I.names),{})} function f (line 1280) | function f({schemaCode:b,data:_,it:{gen:S,topSchemaRef:w,schemaPath:E,er... method render (line 1276) | render(k){return"{"+k._n+super.render(k)+"}"+k._n} function h (line 1280) | function h({gen:b,it:{opts:_}},S){let w=_.unicodeRegExp?"u":"",{regExp:E... function v (line 1280) | function v(b){let{gen:_,data:S,keyword:w,it:E}=b,$=_.name("valid");if(E.... method constructor (line 1276) | constructor(k,I){super(I),this.condition=k} method render (line 1276) | render(k){let I=`if(${this.condition})`+super.render(k);return this.el... method optimizeNodes (line 1276) | optimizeNodes(){super.optimizeNodes();let k=this.condition;if(k===!0)r... method optimizeNames (line 1276) | optimizeNames(k,I){var q;if(this.else=(q=this.else)===null||q===void 0... method names (line 1276) | get names(){let k=super.names;return W(k,this.condition),this.else&&U(... function x (line 1280) | function x(b){let{gen:_,schema:S,keyword:w,it:E}=b;if(!Array.isArray(S))... function s (line 1280) | function s(m,f){let{gen:g,keyword:h,schema:v,parentSchema:x,it:b}=m,_=f.... method constructor (line 1276) | constructor(u,l){super(l),this.prefix=u} method setValue (line 1276) | setValue(u,{property:l,itemIndex:d}){this.value=u,this.scopePath=(0,e.... method optimizeNodes (line 1276) | optimizeNodes(){return this} method optimizeNames (line 1276) | optimizeNames(k,I){return this} function o (line 1280) | function o(m,f){var g;let{gen:h,keyword:v,schema:x,parentSchema:b,$data:... method constructor (line 1276) | constructor(k,I,q){super(),this.varKind=k,this.name=I,this.rhs=q} method render (line 1276) | render({es5:k,_n:I}){let q=k?r.varKinds.var:this.varKind,le=this.rhs==... method optimizeNames (line 1276) | optimizeNames(k,I){if(k[this.name.str])return this.rhs&&(this.rhs=j(th... method names (line 1276) | get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}} function a (line 1280) | function a(m){let{gen:f,data:g,it:h}=m;f.if(h.parentData,()=>f.assign(g,... method constructor (line 1276) | constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=... method get (line 1276) | get(){return this._scope} method name (line 1276) | name(u){return new s(u,this._newName(u))} method value (line 1276) | value(u,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must ... method getValue (line 1276) | getValue(u,l){let d=this._values[u];if(d)return d.get(l)} method scopeRefs (line 1276) | scopeRefs(u,l=this._values){return this._reduceValues(l,d=>{if(d.scope... method scopeCode (line 1276) | scopeCode(u=this._values,l,d){return this._reduceValues(u,p=>{if(p.val... method _reduceValues (line 1276) | _reduceValues(u,l,d={},p){let m=e.nil;for(let f in u){let g=u[f];if(!g... method constructor (line 1276) | constructor(k,I,q){super(),this.lhs=k,this.rhs=I,this.sideEffects=q} method render (line 1276) | render({_n:k}){return`${this.lhs} = ${this.rhs};`+k} method optimizeNames (line 1276) | optimizeNames(k,I){if(!(this.lhs instanceof e.Name&&!k[this.lhs.str]&&... method names (line 1276) | get names(){let k=this.lhs instanceof e.Name?{}:{...this.lhs.names};re... method constructor (line 1280) | constructor(x){var b;this.refs={},this.dynamicAnchors={};let _;typeof ... function c (line 1280) | function c(m,f){let{gen:g}=m;g.if((0,e._)`Array.isArray(${f})`,()=>{g.as... method constructor (line 1276) | constructor(k,I,q,le){super(k,q,le),this.op=I} method render (line 1276) | render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k} method _addVocabularies (line 1283) | _addVocabularies(){super._addVocabularies(),n.default.forEach(f=>this.... method _addDefaultMetaSchema (line 1283) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.me... method defaultMeta (line 1283) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.... function u (line 1280) | function u({schemaEnv:m},f){if(f.async&&!m.$async)throw new Error("async... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`${this.label}:`+k} function l (line 1280) | function l(m,f,g){if(g===void 0)throw new Error(`keyword "${f}" failed t... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k} function d (line 1280) | function d(m,f,g=!1){return!f.length||f.some(h=>h==="array"?Array.isArra... method constructor (line 1276) | constructor(k){super(),this.error=k} method render (line 1276) | render({_n:k}){return`throw ${this.error};`+k} method names (line 1276) | get names(){return this.error.names} function p (line 1280) | function p({schema:m,opts:f,self:g,errSchemaPath:h},v,x){if(Array.isArra... method constructor (line 1276) | constructor(k){super(),this.code=k} method render (line 1276) | render({_n:k}){return`${this.code};`+k} method optimizeNodes (line 1276) | optimizeNodes(){return`${this.code}`?this:void 0} method optimizeNames (line 1276) | optimizeNames(k,I){return this.code=j(this.code,k,I),this} method names (line 1276) | get names(){return this.code instanceof e._CodeOrName?this.code.names:{}} function n (line 1280) | function n(o,{keyword:a,schemaProp:c,schema:u,schemaPath:l,errSchemaPath... method constructor (line 1276) | constructor(x){super(),this._items=typeof x=="string"?[x]:x} method toString (line 1276) | toString(){return this.str} method emptyStr (line 1276) | emptyStr(){if(this._items.length>1)return!1;let x=this._items[0];retur... method str (line 1276) | get str(){var x;return(x=this._str)!==null&&x!==void 0?x:this._str=thi... method names (line 1276) | get names(){var x;return(x=this._names)!==null&&x!==void 0?x:this._nam... function i (line 1280) | function i(o,a,{dataProp:c,dataPropType:u,data:l,dataTypes:d,propertyNam... method constructor (line 1276) | constructor({prefixes:u,parent:l}={}){this._names={},this._prefixes=u,... method toName (line 1276) | toName(u){return u instanceof e.Name?u:this.name(u)} method name (line 1276) | name(u){return new e.Name(this._newName(u))} method _newName (line 1276) | _newName(u){let l=this._names[u]||this._nameGroup(u);return`${u}${l.in... method _nameGroup (line 1276) | _nameGroup(u){var l,d;if(!((d=(l=this._parent)===null||l===void 0?void... function s (line 1280) | function s(o,{jtdDiscriminator:a,jtdMetadata:c,compositeRule:u,createErr... method constructor (line 1276) | constructor(u,l){super(l),this.prefix=u} method setValue (line 1276) | setValue(u,{property:l,itemIndex:d}){this.value=u,this.scopePath=(0,e.... method optimizeNodes (line 1276) | optimizeNodes(){return this} method optimizeNames (line 1276) | optimizeNames(k,I){return this} function n (line 1280) | function n(s,o,a,c,u,l,d,p,m,f){if(c&&typeof c=="object"&&!Array.isArray... method constructor (line 1276) | constructor(x){super(),this._items=typeof x=="string"?[x]:x} method toString (line 1276) | toString(){return this.str} method emptyStr (line 1276) | emptyStr(){if(this._items.length>1)return!1;let x=this._items[0];retur... method str (line 1276) | get str(){var x;return(x=this._str)!==null&&x!==void 0?x:this._str=thi... method names (line 1276) | get names(){var x;return(x=this._names)!==null&&x!==void 0?x:this._nam... function i (line 1280) | function i(s){return s.replace(/~/g,"~0").replace(/\//g,"~1")} method constructor (line 1276) | constructor({prefixes:u,parent:l}={}){this._names={},this._prefixes=u,... method toName (line 1276) | toName(u){return u instanceof e.Name?u:this.name(u)} method name (line 1276) | name(u){return new e.Name(this._newName(u))} method _newName (line 1276) | _newName(u){let l=this._names[u]||this._nameGroup(u);return`${u}${l.in... method _nameGroup (line 1276) | _nameGroup(u){var l,d;if(!((d=(l=this._parent)===null||l===void 0?void... function s (line 1280) | function s(h,v=!0){return typeof h=="boolean"?!0:v===!0?!a(h):v?c(h)<=v:!1} method constructor (line 1276) | constructor(u,l){super(l),this.prefix=u} method setValue (line 1276) | setValue(u,{property:l,itemIndex:d}){this.value=u,this.scopePath=(0,e.... method optimizeNodes (line 1276) | optimizeNodes(){return this} method optimizeNames (line 1276) | optimizeNames(k,I){return this} function a (line 1280) | function a(h){for(let v in h){if(o.has(v))return!0;let x=h[v];if(Array.i... method constructor (line 1276) | constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=... method get (line 1276) | get(){return this._scope} method name (line 1276) | name(u){return new s(u,this._newName(u))} method value (line 1276) | value(u,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must ... method getValue (line 1276) | getValue(u,l){let d=this._values[u];if(d)return d.get(l)} method scopeRefs (line 1276) | scopeRefs(u,l=this._values){return this._reduceValues(l,d=>{if(d.scope... method scopeCode (line 1276) | scopeCode(u=this._values,l,d){return this._reduceValues(u,p=>{if(p.val... method _reduceValues (line 1276) | _reduceValues(u,l,d={},p){let m=e.nil;for(let f in u){let g=u[f];if(!g... method constructor (line 1276) | constructor(k,I,q){super(),this.lhs=k,this.rhs=I,this.sideEffects=q} method render (line 1276) | render({_n:k}){return`${this.lhs} = ${this.rhs};`+k} method optimizeNames (line 1276) | optimizeNames(k,I){if(!(this.lhs instanceof e.Name&&!k[this.lhs.str]&&... method names (line 1276) | get names(){let k=this.lhs instanceof e.Name?{}:{...this.lhs.names};re... method constructor (line 1280) | constructor(x){var b;this.refs={},this.dynamicAnchors={};let _;typeof ... function c (line 1280) | function c(h){let v=0;for(let x in h){if(x==="$ref")return 1/0;if(v++,!i... method constructor (line 1276) | constructor(k,I,q,le){super(k,q,le),this.op=I} method render (line 1276) | render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k} method _addVocabularies (line 1283) | _addVocabularies(){super._addVocabularies(),n.default.forEach(f=>this.... method _addDefaultMetaSchema (line 1283) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.me... method defaultMeta (line 1283) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.... function u (line 1280) | function u(h,v="",x){x!==!1&&(v=p(v));let b=h.parse(v);return l(h,b)} method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`${this.label}:`+k} function l (line 1280) | function l(h,v){return h.serialize(v).split("#")[0]+"#"} method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k} function p (line 1280) | function p(h){return h?h.replace(d,""):""} method constructor (line 1276) | constructor(k){super(),this.code=k} method render (line 1276) | render({_n:k}){return`${this.code};`+k} method optimizeNodes (line 1276) | optimizeNodes(){return`${this.code}`?this:void 0} method optimizeNames (line 1276) | optimizeNames(k,I){return this.code=j(this.code,k,I),this} method names (line 1276) | get names(){return this.code instanceof e._CodeOrName?this.code.names:{}} function m (line 1280) | function m(h,v,x){return x=p(x),h.resolve(v,x)} method constructor (line 1276) | constructor(k=[]){super(),this.nodes=k} method render (line 1276) | render(k){return this.nodes.reduce((I,q)=>I+q.render(k),"")} method optimizeNodes (line 1276) | optimizeNodes(){let{nodes:k}=this,I=k.length;for(;I--;){let q=k[I].opt... method optimizeNames (line 1276) | optimizeNames(k,I){let{nodes:q}=this,le=q.length;for(;le--;){let ce=q[... method names (line 1276) | get names(){return this.nodes.reduce((k,I)=>U(k,I.names),{})} function g (line 1280) | function g(h,v){if(typeof h=="boolean")return{};let{schemaId:x,uriResolv... function m (line 1280) | function m(C){if(w(C)&&($(C),S(C))){v(C);return}f(C,()=>(0,e.topBoolOrEm... method constructor (line 1276) | constructor(k=[]){super(),this.nodes=k} method render (line 1276) | render(k){return this.nodes.reduce((I,q)=>I+q.render(k),"")} method optimizeNodes (line 1276) | optimizeNodes(){let{nodes:k}=this,I=k.length;for(;I--;){let q=k[I].opt... method optimizeNames (line 1276) | optimizeNames(k,I){let{nodes:q}=this,le=q.length;for(;le--;){let ce=q[... method names (line 1276) | get names(){return this.nodes.reduce((k,I)=>U(k,I.names),{})} function f (line 1280) | function f({gen:C,validateName:D,schema:Z,schemaEnv:J,opts:ue},Ve){ue.co... method render (line 1276) | render(k){return"{"+k._n+super.render(k)+"}"+k._n} function g (line 1280) | function g(C){return(0,c._)`{${u.default.instancePath}="", ${u.default.p... function h (line 1280) | function h(C,D){C.if(u.default.valCxt,()=>{C.var(u.default.instancePath,... function v (line 1280) | function v(C){let{schema:D,opts:Z,gen:J}=C;f(C,()=>{Z.$comment&&D.$comme... method constructor (line 1276) | constructor(k,I){super(I),this.condition=k} method render (line 1276) | render(k){let I=`if(${this.condition})`+super.render(k);return this.el... method optimizeNodes (line 1276) | optimizeNodes(){super.optimizeNodes();let k=this.condition;if(k===!0)r... method optimizeNames (line 1276) | optimizeNames(k,I){var q;if(this.else=(q=this.else)===null||q===void 0... method names (line 1276) | get names(){let k=super.names;return W(k,this.condition),this.else&&U(... function x (line 1280) | function x(C){let{gen:D,validateName:Z}=C;C.evaluated=D.const("evaluated... function b (line 1280) | function b(C,D){let Z=typeof C=="object"&&C[D.schemaId];return Z&&(D.cod... method constructor (line 1276) | constructor(k){super(),this.iteration=k} method render (line 1276) | render(k){return`for(${this.iteration})`+super.render(k)} method optimizeNames (line 1276) | optimizeNames(k,I){if(super.optimizeNames(k,I))return this.iteration=j... method names (line 1276) | get names(){return U(super.names,this.iteration.names)} function _ (line 1280) | function _(C,D){if(w(C)&&($(C),S(C))){E(C,D);return}(0,e.boolOrEmptySche... method constructor (line 1276) | constructor(k,I,q,le){super(),this.varKind=k,this.name=I,this.from=q,t... method render (line 1276) | render(k){let I=k.es5?r.varKinds.var:this.varKind,{name:q,from:le,to:c... method names (line 1276) | get names(){let k=W(super.names,this.from);return W(k,this.to)} method constructor (line 1280) | constructor(P={}){this.schemas={},this.refs={},this.formats={},this._c... method _addVocabularies (line 1280) | _addVocabularies(){this.addKeyword("$async")} method _addDefaultMetaSchema (line 1280) | _addDefaultMetaSchema(){let{$data:P,meta:H,schemaId:M}=this.opts,k=d;M... method defaultMeta (line 1280) | defaultMeta(){let{meta:P,schemaId:H}=this.opts;return this.opts.defaul... method validate (line 1280) | validate(P,H){let M;if(typeof P=="string"){if(M=this.getSchema(P),!M)t... method compile (line 1280) | compile(P,H){let M=this._addSchema(P,H);return M.validate||this._compi... method compileAsync (line 1280) | compileAsync(P,H){if(typeof this.opts.loadSchema!="function")throw new... method addSchema (line 1280) | addSchema(P,H,M,k=this.opts.validateSchema){if(Array.isArray(P)){for(l... method addMetaSchema (line 1280) | addMetaSchema(P,H,M=this.opts.validateSchema){return this.addSchema(P,... method validateSchema (line 1280) | validateSchema(P,H){if(typeof P=="boolean")return!0;let M;if(M=P.$sche... method getSchema (line 1280) | getSchema(P){let H;for(;typeof(H=w.call(this,P))=="string";)P=H;if(H==... method removeSchema (line 1280) | removeSchema(P){if(P instanceof RegExp)return this._removeAllSchemas(t... method addVocabulary (line 1280) | addVocabulary(P){for(let H of P)this.addKeyword(H);return this} method addKeyword (line 1280) | addKeyword(P,H){let M;if(typeof P=="string")M=P,typeof H=="object"&&(t... method getKeyword (line 1280) | getKeyword(P){let H=this.RULES.all[P];return typeof H=="object"?H.defi... method removeKeyword (line 1280) | removeKeyword(P){let{RULES:H}=this;delete H.keywords[P],delete H.all[P... method addFormat (line 1280) | addFormat(P,H){return typeof H=="string"&&(H=new RegExp(H)),this.forma... method errorsText (line 1280) | errorsText(P=this.errors,{separator:H=", ",dataVar:M="data"}={}){retur... method $dataMetaSchema (line 1280) | $dataMetaSchema(P,H){let M=this.RULES.all;P=JSON.parse(JSON.stringify(... method _removeAllSchemas (line 1280) | _removeAllSchemas(P,H){for(let M in P){let k=P[M];(!H||H.test(M))&&(ty... method _addSchema (line 1280) | _addSchema(P,H,M,k=this.opts.validateSchema,I=this.opts.addUsedSchema)... method _checkUnique (line 1280) | _checkUnique(P){if(this.schemas[P]||this.refs[P])throw new Error(`sche... method _compileSchemaEnv (line 1280) | _compileSchemaEnv(P){if(P.meta?this._compileMetaSchema(P):o.compileSch... method _compileMetaSchema (line 1280) | _compileMetaSchema(P){let H=this.opts;this.opts=this._metaOpts;try{o.c... function S (line 1280) | function S({schema:C,self:D}){if(typeof C=="boolean")return!C;for(let Z ... method constructor (line 1276) | constructor(k,I,q,le){super(),this.loop=k,this.varKind=I,this.name=q,t... method render (line 1276) | render(k){return`for(${this.varKind} ${this.name} ${this.loop} ${this.... method optimizeNames (line 1276) | optimizeNames(k,I){if(super.optimizeNames(k,I))return this.iterable=j(... method names (line 1276) | get names(){return U(super.names,this.iterable.names)} function w (line 1280) | function w(C){return typeof C.schema!="boolean"} method constructor (line 1276) | constructor(k,I,q){super(),this.name=k,this.args=I,this.async=q} method render (line 1276) | render(k){return`${this.async?"async ":""}function ${this.name}(${this... function E (line 1280) | function E(C,D){let{schema:Z,gen:J,opts:ue}=C;ue.$comment&&Z.$comment&&j... method render (line 1276) | render(k){return"return "+super.render(k)} function $ (line 1280) | function $(C){(0,d.checkUnknownRules)(C),A(C)} method render (line 1276) | render(k){let I="try"+super.render(k);return this.catch&&(I+=this.catc... method optimizeNodes (line 1276) | optimizeNodes(){var k,I;return super.optimizeNodes(),(k=this.catch)===... method optimizeNames (line 1276) | optimizeNames(k,I){var q,le;return super.optimizeNames(k,I),(q=this.ca... method names (line 1276) | get names(){let k=super.names;return this.catch&&U(k,this.catch.names)... function R (line 1280) | function R(C,D){if(C.opts.jtd)return ze(C,[],!1,D);let Z=(0,r.getSchemaT... method constructor (line 1276) | constructor(k){super(),this.error=k} method render (line 1276) | render(k){return`catch(${this.error})`+super.render(k)} function A (line 1280) | function A(C){let{schema:D,errSchemaPath:Z,opts:J,self:ue}=C;D.$ref&&J.i... method render (line 1276) | render(k){return"finally"+super.render(k)} function N (line 1280) | function N(C){let{schema:D,opts:Z}=C;D.default!==void 0&&Z.useDefaults&&... method constructor (line 1276) | constructor(k,I={}){this._values={},this._blockStarts=[],this._constan... method toString (line 1277) | toString(){return this._root.render(this.opts)} method name (line 1277) | name(k){return this._scope.name(k)} method scopeName (line 1277) | scopeName(k){return this._extScope.name(k)} method scopeValue (line 1277) | scopeValue(k,I){let q=this._extScope.value(k,I);return(this._values[q.... method getScopeValue (line 1277) | getScopeValue(k,I){return this._extScope.getValue(k,I)} method scopeRefs (line 1277) | scopeRefs(k){return this._extScope.scopeRefs(k,this._values)} method scopeCode (line 1277) | scopeCode(){return this._extScope.scopeCode(this._values)} method _def (line 1277) | _def(k,I,q,le){let ce=this._scope.toName(I);return q!==void 0&&le&&(th... method const (line 1277) | const(k,I,q){return this._def(r.varKinds.const,k,I,q)} method let (line 1277) | let(k,I,q){return this._def(r.varKinds.let,k,I,q)} method var (line 1277) | var(k,I,q){return this._def(r.varKinds.var,k,I,q)} method assign (line 1277) | assign(k,I,q){return this._leafNode(new a(k,I,q))} method add (line 1277) | add(k,I){return this._leafNode(new c(k,t.operators.ADD,I))} method code (line 1277) | code(k){return typeof k=="function"?k():k!==e.nil&&this._leafNode(new ... method object (line 1277) | object(...k){let I=["{"];for(let[q,le]of k)I.length>1&&I.push(","),I.p... method if (line 1277) | if(k,I,q){if(this._blockNode(new v(k)),I&&q)this.code(I).else().code(q... method elseIf (line 1277) | elseIf(k){return this._elseNode(new v(k))} method else (line 1277) | else(){return this._elseNode(new h)} method endIf (line 1277) | endIf(){return this._endBlockNode(v,h)} method _for (line 1277) | _for(k,I){return this._blockNode(k),I&&this.code(I).endFor(),this} method for (line 1277) | for(k,I){return this._for(new b(k),I)} method forRange (line 1277) | forRange(k,I,q,le,ce=this.opts.es5?r.varKinds.var:r.varKinds.let){let ... method forOf (line 1277) | forOf(k,I,q,le=r.varKinds.const){let ce=this._scope.toName(k);if(this.... method forIn (line 1277) | forIn(k,I,q,le=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.... method endFor (line 1277) | endFor(){return this._endBlockNode(x)} method label (line 1277) | label(k){return this._leafNode(new u(k))} method break (line 1277) | break(k){return this._leafNode(new l(k))} method return (line 1277) | return(k){let I=new E;if(this._blockNode(I),this.code(k),I.nodes.lengt... method try (line 1277) | try(k,I,q){if(!I&&!q)throw new Error('CodeGen: "try" without "catch" a... method throw (line 1277) | throw(k){return this._leafNode(new d(k))} method block (line 1277) | block(k,I){return this._blockStarts.push(this._nodes.length),k&&this.c... method endBlock (line 1277) | endBlock(k){let I=this._blockStarts.pop();if(I===void 0)throw new Erro... method func (line 1277) | func(k,I=e.nil,q,le){return this._blockNode(new w(k,I,q)),le&&this.cod... method endFunc (line 1277) | endFunc(){return this._endBlockNode(w)} method optimize (line 1277) | optimize(k=1){for(;k-- >0;)this._root.optimizeNodes(),this._root.optim... method _leafNode (line 1277) | _leafNode(k){return this._currNode.nodes.push(k),this} method _blockNode (line 1277) | _blockNode(k){this._currNode.nodes.push(k),this._nodes.push(k)} method _endBlockNode (line 1277) | _endBlockNode(k,I){let q=this._currNode;if(q instanceof k||I&&q instan... method _elseNode (line 1277) | _elseNode(k){let I=this._currNode;if(!(I instanceof v))throw new Error... method _root (line 1277) | get _root(){return this._nodes[0]} method _currNode (line 1277) | get _currNode(){let k=this._nodes;return k[k.length-1]} method _currNode (line 1277) | set _currNode(k){let I=this._nodes;I[I.length-1]=k} function U (line 1280) | function U(C){let D=C.schema[C.opts.schemaId];D&&(C.baseId=(0,l.resolveU... function W (line 1280) | function W(C){if(C.schema.$async&&!C.schemaEnv.$async)throw new Error("a... function j (line 1280) | function j({gen:C,schemaEnv:D,schema:Z,errSchemaPath:J,opts:ue}){let Ve=... function ae (line 1280) | function ae(C){let{gen:D,schemaEnv:Z,validateName:J,ValidationError:ue,o... function Ne (line 1280) | function Ne({gen:C,evaluated:D,props:Z,items:J}){Z instanceof c.Name&&C.... function ze (line 1280) | function ze(C,D,Z,J){let{gen:ue,schema:Ve,data:dr,allErrors:qn,opts:Vr,s... function Et (line 1280) | function Et(C,D){let{gen:Z,schema:J,opts:{useDefaults:ue}}=C;ue&&(0,s.as... function Be (line 1280) | function Be(C,D){C.schemaEnv.meta||!C.opts.strictTypes||(K(C,D),C.opts.a... function K (line 1280) | function K(C,D){if(D.length){if(!C.dataTypes.length){C.dataTypes=D;retur... function P (line 1280) | function P(C,D){D.length>1&&!(D.length===2&&D.includes("null"))&&q(C,"us... function H (line 1280) | function H(C,D){let Z=C.self.RULES.all;for(let J in Z){let ue=Z[J];if(ty... function M (line 1280) | function M(C,D){return C.includes(D)||D==="number"&&C.includes("integer")} function k (line 1280) | function k(C,D){return C.includes(D)||D==="integer"&&C.includes("number")} function I (line 1280) | function I(C,D){let Z=[];for(let J of C.dataTypes)k(D,J)?Z.push(J):D.inc... function q (line 1280) | function q(C,D){let Z=C.schemaEnv.baseId+C.errSchemaPath;D+=` at "${Z}" ... class le (line 1280) | class le{constructor(D,Z,J){if((0,o.validateKeywordUsage)(D,Z,J),this.ge... method constructor (line 1280) | constructor(D,Z,J){if((0,o.validateKeywordUsage)(D,Z,J),this.gen=D.gen... method result (line 1280) | result(D,Z,J){this.failResult((0,c.not)(D),Z,J)} method failResult (line 1280) | failResult(D,Z,J){this.gen.if(D),J?J():this.error(),Z?(this.gen.else()... method pass (line 1280) | pass(D,Z){this.failResult((0,c.not)(D),void 0,Z)} method fail (line 1280) | fail(D){if(D===void 0){this.error(),this.allErrors||this.gen.if(!1);re... method fail$data (line 1280) | fail$data(D){if(!this.$data)return this.fail(D);let{schemaCode:Z}=this... method error (line 1280) | error(D,Z,J){if(Z){this.setParams(Z),this._error(D,J),this.setParams({... method _error (line 1280) | _error(D,Z){(D?p.reportExtraError:p.reportError)(this,this.def.error,Z)} method $dataError (line 1280) | $dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$Dat... method reset (line 1280) | reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" ... method ok (line 1280) | ok(D){this.allErrors||this.gen.if(D)} method setParams (line 1280) | setParams(D,Z){Z?Object.assign(this.params,D):this.params=D} method block$data (line 1280) | block$data(D,Z,J=c.nil){this.gen.block(()=>{this.check$data(D,J),Z()})} method check$data (line 1280) | check$data(D=c.nil,Z=c.nil){if(!this.$data)return;let{gen:J,schemaCode... method invalid$data (line 1280) | invalid$data(){let{gen:D,schemaCode:Z,schemaType:J,def:ue,it:Ve}=this;... method subschema (line 1280) | subschema(D,Z){let J=(0,a.getSubschema)(this.it,D);(0,a.extendSubschem... method mergeEvaluated (line 1280) | mergeEvaluated(D,Z){let{it:J,gen:ue}=this;J.opts.unevaluated&&(J.props... method mergeValidEvaluated (line 1280) | mergeValidEvaluated(D,Z){let{it:J,gen:ue}=this;if(J.opts.unevaluated&&... function ce (line 1280) | function ce(C,D,Z,J){let ue=new le(C,Z,D);"code"in Z?Z.code(ue,J):ue.$da... function qt (line 1280) | function qt(C,{dataLevel:D,dataNames:Z,dataPathArr:J}){let ue,Ve;if(C===... class e (line 1280) | class e extends Error{constructor(n){super("validation failed"),this.err... method constructor (line 1280) | constructor(n){super("validation failed"),this.errors=n,this.ajv=this.... class r (line 1280) | class r extends Error{constructor(i,s,o,a){super(a||`can't resolve refer... method constructor (line 1276) | constructor(x){if(super(),!t.IDENTIFIER.test(x))throw new Error("CodeG... method toString (line 1276) | toString(){return this.str} method emptyStr (line 1276) | emptyStr(){return!1} method names (line 1276) | get names(){return{[this.str]:1}} method constructor (line 1276) | constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.valu... method constructor (line 1280) | constructor(i,s,o,a){super(a||`can't resolve reference ${o} from id ${... class a (line 1280) | class a{constructor(x){var b;this.refs={},this.dynamicAnchors={};let _;t... method constructor (line 1276) | constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=... method get (line 1276) | get(){return this._scope} method name (line 1276) | name(u){return new s(u,this._newName(u))} method value (line 1276) | value(u,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must ... method getValue (line 1276) | getValue(u,l){let d=this._values[u];if(d)return d.get(l)} method scopeRefs (line 1276) | scopeRefs(u,l=this._values){return this._reduceValues(l,d=>{if(d.scope... method scopeCode (line 1276) | scopeCode(u=this._values,l,d){return this._reduceValues(u,p=>{if(p.val... method _reduceValues (line 1276) | _reduceValues(u,l,d={},p){let m=e.nil;for(let f in u){let g=u[f];if(!g... method constructor (line 1276) | constructor(k,I,q){super(),this.lhs=k,this.rhs=I,this.sideEffects=q} method render (line 1276) | render({_n:k}){return`${this.lhs} = ${this.rhs};`+k} method optimizeNames (line 1276) | optimizeNames(k,I){if(!(this.lhs instanceof e.Name&&!k[this.lhs.str]&&... method names (line 1276) | get names(){let k=this.lhs instanceof e.Name?{}:{...this.lhs.names};re... method constructor (line 1280) | constructor(x){var b;this.refs={},this.dynamicAnchors={};let _;typeof ... function c (line 1280) | function c(v){let x=d.call(this,v);if(x)return x;let b=(0,i.getFullPath)... method constructor (line 1276) | constructor(k,I,q,le){super(k,q,le),this.op=I} method render (line 1276) | render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k} method _addVocabularies (line 1283) | _addVocabularies(){super._addVocabularies(),n.default.forEach(f=>this.... method _addDefaultMetaSchema (line 1283) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.me... method defaultMeta (line 1283) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.... function u (line 1280) | function u(v,x,b){var _;b=(0,i.resolveUrl)(this.opts.uriResolver,x,b);le... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`${this.label}:`+k} function l (line 1280) | function l(v){return(0,i.inlineRef)(v.schema,this.opts.inlineRefs)?v.sch... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k} function d (line 1280) | function d(v){for(let x of this._compilations)if(p(x,v))return x} method constructor (line 1276) | constructor(k){super(),this.error=k} method render (line 1276) | render({_n:k}){return`throw ${this.error};`+k} method names (line 1276) | get names(){return this.error.names} function p (line 1280) | function p(v,x){return v.schema===x.schema&&v.root===x.root&&v.baseId===... method constructor (line 1276) | constructor(k){super(),this.code=k} method render (line 1276) | render({_n:k}){return`${this.code};`+k} method optimizeNodes (line 1276) | optimizeNodes(){return`${this.code}`?this:void 0} method optimizeNames (line 1276) | optimizeNames(k,I){return this.code=j(this.code,k,I),this} method names (line 1276) | get names(){return this.code instanceof e._CodeOrName?this.code.names:{}} function m (line 1280) | function m(v,x){let b;for(;typeof(b=this.refs[x])=="string";)x=b;return ... method constructor (line 1276) | constructor(k=[]){super(),this.nodes=k} method render (line 1276) | render(k){return this.nodes.reduce((I,q)=>I+q.render(k),"")} method optimizeNodes (line 1276) | optimizeNodes(){let{nodes:k}=this,I=k.length;for(;I--;){let q=k[I].opt... method optimizeNames (line 1276) | optimizeNames(k,I){let{nodes:q}=this,le=q.length;for(;le--;){let ce=q[... method names (line 1276) | get names(){return this.nodes.reduce((k,I)=>U(k,I.names),{})} function f (line 1280) | function f(v,x){let b=this.opts.uriResolver.parse(x),_=(0,i._getFullPath... method render (line 1276) | render(k){return"{"+k._n+super.render(k)+"}"+k._n} function h (line 1280) | function h(v,{baseId:x,schema:b,root:_}){var S;if(((S=v.fragment)===null... function i (line 1280) | function i(v){if(u(v,".")<3)return{host:v,isIPV4:!1};let x=v.match(n)||[... method constructor (line 1276) | constructor({prefixes:u,parent:l}={}){this._names={},this._prefixes=u,... method toName (line 1276) | toName(u){return u instanceof e.Name?u:this.name(u)} method name (line 1276) | name(u){return new e.Name(this._newName(u))} method _newName (line 1276) | _newName(u){let l=this._names[u]||this._nameGroup(u);return`${u}${l.in... method _nameGroup (line 1276) | _nameGroup(u){var l,d;if(!((d=(l=this._parent)===null||l===void 0?void... function s (line 1280) | function s(v,x=!1){let b="",_=!0;for(let S of v){if(r[S]===void 0)return... method constructor (line 1276) | constructor(u,l){super(l),this.prefix=u} method setValue (line 1276) | setValue(u,{property:l,itemIndex:d}){this.value=u,this.scopePath=(0,e.... method optimizeNodes (line 1276) | optimizeNodes(){return this} method optimizeNames (line 1276) | optimizeNames(k,I){return this} function o (line 1280) | function o(v){let x=0,b={error:!1,address:"",zone:""},_=[],S=[],w=!1,E=!... method constructor (line 1276) | constructor(k,I,q){super(),this.varKind=k,this.name=I,this.rhs=q} method render (line 1276) | render({es5:k,_n:I}){let q=k?r.varKinds.var:this.varKind,le=this.rhs==... method optimizeNames (line 1276) | optimizeNames(k,I){if(k[this.name.str])return this.rhs&&(this.rhs=j(th... method names (line 1276) | get names(){return this.rhs instanceof e._CodeOrName?this.rhs.names:{}} function a (line 1280) | function a(v){if(u(v,":")<2)return{host:v,isIPV6:!1};let x=o(v);if(x.err... method constructor (line 1276) | constructor(u){super(u),this._values={},this._scope=u.scope,this.opts=... method get (line 1276) | get(){return this._scope} method name (line 1276) | name(u){return new s(u,this._newName(u))} method value (line 1276) | value(u,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must ... method getValue (line 1276) | getValue(u,l){let d=this._values[u];if(d)return d.get(l)} method scopeRefs (line 1276) | scopeRefs(u,l=this._values){return this._reduceValues(l,d=>{if(d.scope... method scopeCode (line 1276) | scopeCode(u=this._values,l,d){return this._reduceValues(u,p=>{if(p.val... method _reduceValues (line 1276) | _reduceValues(u,l,d={},p){let m=e.nil;for(let f in u){let g=u[f];if(!g... method constructor (line 1276) | constructor(k,I,q){super(),this.lhs=k,this.rhs=I,this.sideEffects=q} method render (line 1276) | render({_n:k}){return`${this.lhs} = ${this.rhs};`+k} method optimizeNames (line 1276) | optimizeNames(k,I){if(!(this.lhs instanceof e.Name&&!k[this.lhs.str]&&... method names (line 1276) | get names(){let k=this.lhs instanceof e.Name?{}:{...this.lhs.names};re... method constructor (line 1280) | constructor(x){var b;this.refs={},this.dynamicAnchors={};let _;typeof ... function c (line 1280) | function c(v,x){let b="",_=!0,S=v.length;for(let w=0;wthis.... method _addDefaultMetaSchema (line 1283) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.me... method defaultMeta (line 1283) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.... function u (line 1280) | function u(v,x){let b=0;for(let _=0;_{if(d.scope... method scopeCode (line 1276) | scopeCode(u=this._values,l,d){return this._reduceValues(u,p=>{if(p.val... method _reduceValues (line 1276) | _reduceValues(u,l,d={},p){let m=e.nil;for(let f in u){let g=u[f];if(!g... method constructor (line 1276) | constructor(k,I,q){super(),this.lhs=k,this.rhs=I,this.sideEffects=q} method render (line 1276) | render({_n:k}){return`${this.lhs} = ${this.rhs};`+k} method optimizeNames (line 1276) | optimizeNames(k,I){if(!(this.lhs instanceof e.Name&&!k[this.lhs.str]&&... method names (line 1276) | get names(){let k=this.lhs instanceof e.Name?{}:{...this.lhs.names};re... method constructor (line 1280) | constructor(x){var b;this.refs={},this.dynamicAnchors={};let _;typeof ... function c (line 1280) | function c(_){if((_.port===(i(_)?443:80)||_.port==="")&&(_.port=void 0),... method constructor (line 1276) | constructor(k,I,q,le){super(k,q,le),this.op=I} method render (line 1276) | render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k} method _addVocabularies (line 1283) | _addVocabularies(){super._addVocabularies(),n.default.forEach(f=>this.... method _addDefaultMetaSchema (line 1283) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.me... method defaultMeta (line 1283) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.... function u (line 1280) | function u(_,S){if(!_.path)return _.error="URN can not be parsed",_;let ... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`${this.label}:`+k} function l (line 1280) | function l(_,S){let w=S.scheme||_.scheme||"urn",E=_.nid.toLowerCase(),$=... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k} function d (line 1280) | function d(_,S){let w=_;return w.uuid=w.nss,w.nss=void 0,!S.tolerant&&(!... method constructor (line 1276) | constructor(k){super(),this.error=k} method render (line 1276) | render({_n:k}){return`throw ${this.error};`+k} method names (line 1276) | get names(){return this.error.names} function p (line 1280) | function p(_){let S=_;return S.nss=(_.uuid||"").toLowerCase(),S} method constructor (line 1276) | constructor(k){super(),this.code=k} method render (line 1276) | render({_n:k}){return`${this.code};`+k} method optimizeNodes (line 1276) | optimizeNodes(){return`${this.code}`?this:void 0} method optimizeNames (line 1276) | optimizeNames(k,I){return this.code=j(this.code,k,I),this} method names (line 1276) | get names(){return this.code instanceof e._CodeOrName?this.code.names:{}} function c (line 1280) | function c(x,b){return typeof x=="string"?x=p(h(x,b),b):typeof x=="objec... method constructor (line 1276) | constructor(k,I,q,le){super(k,q,le),this.op=I} method render (line 1276) | render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k} method _addVocabularies (line 1283) | _addVocabularies(){super._addVocabularies(),n.default.forEach(f=>this.... method _addDefaultMetaSchema (line 1283) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.me... method defaultMeta (line 1283) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.... function u (line 1280) | function u(x,b,_){let S=Object.assign({scheme:"null"},_),w=l(h(x,S),h(b,... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`${this.label}:`+k} function l (line 1280) | function l(x,b,_,S){let w={};return S||(x=h(p(x,_),_),b=h(p(b,_),_)),_=_... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k} function d (line 1280) | function d(x,b,_){return typeof x=="string"?(x=unescape(x),x=p(o(h(x,_),... method constructor (line 1276) | constructor(k){super(),this.error=k} method render (line 1276) | render({_n:k}){return`throw ${this.error};`+k} method names (line 1276) | get names(){return this.error.names} function p (line 1280) | function p(x,b){let _={host:x.host,scheme:x.scheme,userinfo:x.userinfo,p... method constructor (line 1276) | constructor(k){super(),this.code=k} method render (line 1276) | render({_n:k}){return`${this.code};`+k} method optimizeNodes (line 1276) | optimizeNodes(){return`${this.code}`?this:void 0} method optimizeNames (line 1276) | optimizeNames(k,I){return this.code=j(this.code,k,I),this} method names (line 1276) | get names(){return this.code instanceof e._CodeOrName?this.code.names:{}} function f (line 1280) | function f(x){let b=0;for(let _=0,S=x.length;_{if(H.keywords[... function ae (line 1280) | function ae(K,P,H){var M;let k=P?.post;if(H&&k)throw new Error('keyword ... function Ne (line 1280) | function Ne(K,P,H){let M=K.rules.findIndex(k=>k.keyword===H);M>=0?K.rule... function ze (line 1280) | function ze(K){let{metaSchema:P}=K;P!==void 0&&(K.$data&&this.opts.$data... function Be (line 1280) | function Be(K){return{anyOf:[K,Et]}} method code (line 1280) | code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schem... method code (line 1280) | code(l){let{gen:d,schema:p,it:m}=l,{baseId:f,schemaEnv:g,validateName:h,... function c (line 1280) | function c(l,d){let{gen:p}=l;return d.validate?p.scopeValue("validate",{... method constructor (line 1276) | constructor(k,I,q,le){super(k,q,le),this.op=I} method render (line 1276) | render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k} method _addVocabularies (line 1283) | _addVocabularies(){super._addVocabularies(),n.default.forEach(f=>this.... method _addDefaultMetaSchema (line 1283) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.me... method defaultMeta (line 1283) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.... function u (line 1280) | function u(l,d,p,m){let{gen:f,it:g}=l,{allErrors:h,schemaEnv:v,opts:x}=g... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`${this.label}:`+k} method code (line 1280) | code(o){let{keyword:a,data:c,schemaCode:u}=o;o.fail$data((0,e._)`${c} ${... method code (line 1280) | code(i){let{gen:s,data:o,schemaCode:a,it:c}=i,u=c.opts.multipleOfPrecisi... function e (line 1280) | function e(r){let n=r.length,i=0,s=0,o;for(;s{if(d.scope... method scopeCode (line 1276) | scopeCode(u=this._values,l,d){return this._reduceValues(u,p=>{if(p.val... method _reduceValues (line 1276) | _reduceValues(u,l,d={},p){let m=e.nil;for(let f in u){let g=u[f];if(!g... method constructor (line 1276) | constructor(k,I,q){super(),this.lhs=k,this.rhs=I,this.sideEffects=q} method render (line 1276) | render({_n:k}){return`${this.lhs} = ${this.rhs};`+k} method optimizeNames (line 1276) | optimizeNames(k,I){if(!(this.lhs instanceof e.Name&&!k[this.lhs.str]&&... method names (line 1276) | get names(){let k=this.lhs instanceof e.Name?{}:{...this.lhs.names};re... method constructor (line 1280) | constructor(x){var b;this.refs={},this.dynamicAnchors={};let _;typeof ... method code (line 1283) | code(s){let{gen:o,schema:a,data:c,it:u}=s;if((0,r.alwaysValidSchema)(u,a... method code (line 1283) | code(a){let{gen:c,schema:u,parentSchema:l,data:d,errsCount:p,it:m}=a;if(... method code (line 1283) | code(o){let{gen:a,schema:c,parentSchema:u,data:l,it:d}=o;d.opts.removeAd... method code (line 1283) | code(o){let{gen:a,schema:c,data:u,parentSchema:l,it:d}=o,{opts:p}=d,m=(0... method code (line 1283) | code(n){let{gen:i,schema:s,it:o}=n;if((0,e.alwaysValidSchema)(o,s)){n.fa... method code (line 1283) | code(s){let{gen:o,schema:a,parentSchema:c,it:u}=s;if(!Array.isArray(a))t... method code (line 1283) | code(n){let{gen:i,schema:s,it:o}=n;if(!Array.isArray(s))throw new Error(... method code (line 1283) | code(o){let{gen:a,parentSchema:c,it:u}=o;c.then===void 0&&c.else===void ... function s (line 1283) | function s(o,a){let c=o.schema[a];return c!==void 0&&!(0,r.alwaysValidSc... method constructor (line 1276) | constructor(u,l){super(l),this.prefix=u} method setValue (line 1276) | setValue(u,{property:l,itemIndex:d}){this.value=u,this.scopePath=(0,e.... method optimizeNodes (line 1276) | optimizeNodes(){return this} method optimizeNames (line 1276) | optimizeNames(k,I){return this} method code (line 1283) | code({keyword:n,parentSchema:i,it:s}){i.if===void 0&&(0,e.checkStrictMod... function v (line 1283) | function v(x=!1){let b=[d.default,p.default,m.default,f.default,g.defaul... method constructor (line 1276) | constructor(k,I){super(I),this.condition=k} method render (line 1276) | render(k){let I=`if(${this.condition})`+super.render(k);return this.el... method optimizeNodes (line 1276) | optimizeNodes(){super.optimizeNodes();let k=this.condition;if(k===!0)r... method optimizeNames (line 1276) | optimizeNames(k,I){var q;if(this.else=(q=this.else)===null||q===void 0... method names (line 1276) | get names(){let k=super.names;return W(k,this.condition),this.else&&U(... method code (line 1283) | code(i,s){let{gen:o,data:a,$data:c,schema:u,schemaCode:l,it:d}=i,{opts:p... method code (line 1283) | code(c){let{gen:u,data:l,schema:d,parentSchema:p,it:m}=c,{oneOf:f}=p;if(... class c (line 1283) | class c extends r.default{_addVocabularies(){super._addVocabularies(),n.... method constructor (line 1276) | constructor(k,I,q,le){super(k,q,le),this.op=I} method render (line 1276) | render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k} method _addVocabularies (line 1283) | _addVocabularies(){super._addVocabularies(),n.default.forEach(f=>this.... method _addDefaultMetaSchema (line 1283) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.me... method defaultMeta (line 1283) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.... function e (line 1283) | function e(N,U){return{validate:N,compare:U}} method constructor (line 1280) | constructor(n){super("validation failed"),this.errors=n,this.ajv=this.... function r (line 1283) | function r(N){return N%4===0&&(N%100!==0||N%400===0)} method constructor (line 1276) | constructor(x){if(super(),!t.IDENTIFIER.test(x))throw new Error("CodeG... method toString (line 1276) | toString(){return this.str} method emptyStr (line 1276) | emptyStr(){return!1} method names (line 1276) | get names(){return{[this.str]:1}} method constructor (line 1276) | constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.valu... method constructor (line 1280) | constructor(i,s,o,a){super(a||`can't resolve reference ${o} from id ${... function s (line 1283) | function s(N){let U=n.exec(N);if(!U)return!1;let W=+U[1],j=+U[2],ae=+U[3... method constructor (line 1276) | constructor(u,l){super(l),this.prefix=u} method setValue (line 1276) | setValue(u,{property:l,itemIndex:d}){this.value=u,this.scopePath=(0,e.... method optimizeNodes (line 1276) | optimizeNodes(){return this} method optimizeNames (line 1276) | optimizeNames(k,I){return this} function o (line 1283) | function o(N,U){if(N&&U)return N>U?1:Nthis.... method _addDefaultMetaSchema (line 1283) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.me... method defaultMeta (line 1283) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.... function u (line 1283) | function u(N,U){if(!(N&&U))return;let W=new Date("2020-01-01T"+N).valueO... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`${this.label}:`+k} function l (line 1283) | function l(N,U){if(!(N&&U))return;let W=a.exec(N),j=a.exec(U);if(W&&j)re... method constructor (line 1276) | constructor(k){super(),this.label=k,this.names={}} method render (line 1276) | render({_n:k}){return`break${this.label?` ${this.label}`:""};`+k} function p (line 1283) | function p(N){let U=c(N);return function(j){let ae=j.split(d);return ae.... method constructor (line 1276) | constructor(k){super(),this.code=k} method render (line 1276) | render({_n:k}){return`${this.code};`+k} method optimizeNodes (line 1276) | optimizeNodes(){return`${this.code}`?this:void 0} method optimizeNames (line 1276) | optimizeNames(k,I){return this.code=j(this.code,k,I),this} method names (line 1276) | get names(){return this.code instanceof e._CodeOrName?this.code.names:{}} function m (line 1283) | function m(N,U){if(!(N&&U))return;let W=new Date(N).valueOf(),j=new Date... method constructor (line 1276) | constructor(k=[]){super(),this.nodes=k} method render (line 1276) | render(k){return this.nodes.reduce((I,q)=>I+q.render(k),"")} method optimizeNodes (line 1276) | optimizeNodes(){let{nodes:k}=this,I=k.length;for(;I--;){let q=k[I].opt... method optimizeNames (line 1276) | optimizeNames(k,I){let{nodes:q}=this,le=q.length;for(;le--;){let ce=q[... method names (line 1276) | get names(){return this.nodes.reduce((k,I)=>U(k,I.names),{})} function f (line 1283) | function f(N,U){if(!(N&&U))return;let[W,j]=N.split(d),[ae,Ne]=U.split(d)... method render (line 1276) | render(k){return"{"+k._n+super.render(k)+"}"+k._n} function v (line 1283) | function v(N){return g.test(N)&&h.test(N)} method constructor (line 1276) | constructor(k,I){super(I),this.condition=k} method render (line 1276) | render(k){let I=`if(${this.condition})`+super.render(k);return this.el... method optimizeNodes (line 1276) | optimizeNodes(){super.optimizeNodes();let k=this.condition;if(k===!0)r... method optimizeNames (line 1276) | optimizeNames(k,I){var q;if(this.else=(q=this.else)===null||q===void 0... method names (line 1276) | get names(){let k=super.names;return W(k,this.condition),this.else&&U(... function b (line 1283) | function b(N){return x.lastIndex=0,x.test(N)} method constructor (line 1276) | constructor(k){super(),this.iteration=k} method render (line 1276) | render(k){return`for(${this.iteration})`+super.render(k)} method optimizeNames (line 1276) | optimizeNames(k,I){if(super.optimizeNames(k,I))return this.iteration=j... method names (line 1276) | get names(){return U(super.names,this.iteration.names)} function w (line 1283) | function w(N){return Number.isInteger(N)&&N<=S&&N>=_} method constructor (line 1276) | constructor(k,I,q){super(),this.name=k,this.args=I,this.async=q} method render (line 1276) | render(k){return`${this.async?"async ":""}function ${this.name}(${this... function E (line 1283) | function E(N){return Number.isInteger(N)} method render (line 1276) | render(k){return"return "+super.render(k)} function $ (line 1283) | function $(){return!0} method render (line 1276) | render(k){let I="try"+super.render(k);return this.catch&&(I+=this.catc... method optimizeNodes (line 1276) | optimizeNodes(){var k,I;return super.optimizeNodes(),(k=this.catch)===... method optimizeNames (line 1276) | optimizeNames(k,I){var q,le;return super.optimizeNames(k,I),(q=this.ca... method names (line 1276) | get names(){let k=super.names;return this.catch&&U(k,this.catch.names)... function A (line 1283) | function A(N){if(R.test(N))return!1;try{return new RegExp(N),!0}catch{re... method render (line 1276) | render(k){return"finally"+super.render(k)} method code (line 1283) | code(a){let{gen:c,data:u,schemaCode:l,keyword:d,it:p}=a,{opts:m,self:f}=... function c (line 1283) | function c(u,l,d,p){var m,f;(m=(f=u.opts.code).formats)!==null&&m!==void... method constructor (line 1276) | constructor(k,I,q,le){super(k,q,le),this.op=I} method render (line 1276) | render({_n:k}){return`${this.lhs} ${this.op}= ${this.rhs};`+k} method _addVocabularies (line 1283) | _addVocabularies(){super._addVocabularies(),n.default.forEach(f=>this.... method _addDefaultMetaSchema (line 1283) | _addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.me... method defaultMeta (line 1283) | defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.... function v2 (line 1283) | function v2(t=_ae){let e=new AbortController;return(0,g2.setMaxListeners... function Tae (line 1283) | function Tae(t){var e=kae.call(t,Ud),r=t[Ud];try{t[Ud]=void 0;var n=!0}c... function Pae (line 1283) | function Pae(t){return Oae.call(t)} function Mae (line 1283) | function Mae(t){return t==null?t===void 0?Nae:Aae:OU&&OU in Object(t)?Ia... function jae (line 1283) | function jae(t){var e=typeof t;return t!=null&&(e=="object"||e=="functio... function Fae (line 1283) | function Fae(t){if(!S2(t))return!1;var e=Dae(t);return e==Lae||e==Uae||e... function Bae (line 1283) | function Bae(t){return!!PU&&PU in t} function Kae (line 1283) | function Kae(t){if(t!=null){try{return Wae.call(t)}catch{}try{return t+"... function ice (line 1283) | function ice(t){if(!S2(t)||Vae(t))return!1;var e=Hae(t)?nce:Yae;return e... function oce (line 1283) | function oce(t,e){return t?.[e]} function cce (line 1283) | function cce(t,e){var r=ace(t,e);return sce(r)?r:void 0} function lce (line 1283) | function lce(){this.__data__=Hd?Hd(null):{},this.size=0} function pce (line 1283) | function pce(t){var e=this.has(t)&&delete this.__data__[t];return this.s... function vce (line 1283) | function vce(t){var e=this.__data__;if(Hd){var r=e[t];return r===fce?voi... function xce (line 1283) | function xce(t){var e=this.__data__;return Hd?e[t]!==void 0:bce.call(e,t)} function Ece (line 1283) | function Ece(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,... function Gc (line 1283) | function Gc(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1} function Lce (line 1283) | function Lce(t,e){var r=this.__data__,n=Rg(r,t);return n<0?(++this.size,... function Wc (line 1283) | function Wc(t){var e=-1,r=t==null?0:t.length;for(this.clear();++ee.ex... function cue (line 1283) | function cue(t,e){if(!e)return!0;let r=oue(t);return aue(r,e)} function T2 (line 1283) | function T2(){return process.env.CLAUDE_CONFIG_DIR??(0,k2.join)((0,$2.ho... function NU (line 1283) | function NU(t){if(!t)return!1;if(typeof t=="boolean")return t;let e=t.to... function P2 (line 1283) | function P2(t){return{name:t,default:dg,validate:e=>{if(!e)return{effect... function due (line 1283) | function due(){let t="";return typeof process<"u"&&typeof process.cwd=="... function mue (line 1283) | function mue(){return pue.sessionId} function fue (line 1283) | function fue({writeFn:t,flushIntervalMs:e=1e3,maxBufferSize:r=100,immedi... function hue (line 1283) | function hue(t){return MU.add(t),()=>MU.delete(t)} function gue (line 1283) | function gue(t){return t===null?"null":t===void 0?"undefined":Array.isAr... function A2 (line 1283) | function A2(t,e){let r=performance.now();try{return e()}finally{let n=pe... function Ri (line 1283) | function Ri(t,e,r){let n=gue(t);return A2(`JSON.stringify(${n})`,()=>JSO... function _ue (line 1283) | function _ue(t){if(typeof process>"u"||typeof process.versions>"u"||type... function xue (line 1283) | function xue(){return pg||(pg=fue({writeFn:t=>{let e=D2();as().existsSyn... function os (line 1283) | function os(t,{level:e}={level:"debug"}){if(!_ue(t))return;bue&&t.includ... function D2 (line 1285) | function D2(){return process.env.CLAUDE_CODE_DEBUG_LOGS_DIR??(0,qo.join)... function Qt (line 1285) | function Qt(t,e){let r=performance.now();try{return e()}finally{let n=pe... method cwd (line 1285) | cwd(){return process.cwd()} method existsSync (line 1285) | existsSync(t){return Qt(`existsSync(${t})`,()=>Ie.existsSync(t))} method stat (line 1285) | async stat(t){return(0,b2.stat)(t)} method statSync (line 1285) | statSync(t){return Qt(`statSync(${t})`,()=>Ie.statSync(t))} method lstatSync (line 1285) | lstatSync(t){return Qt(`lstatSync(${t})`,()=>Ie.lstatSync(t))} method readFileSync (line 1285) | readFileSync(t,e){return Qt(`readFileSync(${t})`,()=>Ie.readFileSync(t,{... method readFileBytesSync (line 1285) | readFileBytesSync(t){return Qt(`readFileBytesSync(${t})`,()=>Ie.readFile... method readSync (line 1285) | readSync(t,e){return Qt(`readSync(${t}, ${e.length} bytes)`,()=>{let r;t... method appendFileSync (line 1285) | appendFileSync(t,e,r){return Qt(`appendFileSync(${t}, ${e.length} chars)... method copyFileSync (line 1285) | copyFileSync(t,e){return Qt(`copyFileSync(${t} \u2192 ${e})`,()=>Ie.copy... method unlinkSync (line 1285) | unlinkSync(t){return Qt(`unlinkSync(${t})`,()=>Ie.unlinkSync(t))} method renameSync (line 1285) | renameSync(t,e){return Qt(`renameSync(${t} \u2192 ${e})`,()=>Ie.renameSy... method linkSync (line 1285) | linkSync(t,e){return Qt(`linkSync(${t} \u2192 ${e})`,()=>Ie.linkSync(t,e))} method symlinkSync (line 1285) | symlinkSync(t,e){return Qt(`symlinkSync(${t} \u2192 ${e})`,()=>Ie.symlin... method readlinkSync (line 1285) | readlinkSync(t){return Qt(`readlinkSync(${t})`,()=>Ie.readlinkSync(t))} method realpathSync (line 1285) | realpathSync(t){return Qt(`realpathSync(${t})`,()=>Ie.realpathSync(t))} method mkdirSync (line 1285) | mkdirSync(t,e){return Qt(`mkdirSync(${t})`,()=>{if(!Ie.existsSync(t)){le... method readdirSync (line 1285) | readdirSync(t){return Qt(`readdirSync(${t})`,()=>Ie.readdirSync(t,{withF... method readdirStringSync (line 1285) | readdirStringSync(t){return Qt(`readdirStringSync(${t})`,()=>Ie.readdirS... method isDirEmptySync (line 1285) | isDirEmptySync(t){return Qt(`isDirEmptySync(${t})`,()=>this.readdirSync(... method rmdirSync (line 1285) | rmdirSync(t){return Qt(`rmdirSync(${t})`,()=>Ie.rmdirSync(t))} method rmSync (line 1285) | rmSync(t,e){return Qt(`rmSync(${t})`,()=>Ie.rmSync(t,e))} method createWriteStream (line 1285) | createWriteStream(t){return Ie.createWriteStream(t)} function as (line 1285) | function as(){return Eue} function j2 (line 1285) | function j2(){return process.versions.bun!==void 0} function kue (line 1285) | function kue(){if(DU)return mg;if(DU=!0,!process.env.DEBUG_CLAUDE_AGENT_... function Lo (line 1286) | function Lo(t){let e=kue();if(!e)return;let n=`${new Date().toISOString(... function $ue (line 1287) | function $ue(t,e){let r={...t};if(e){let n={sandbox:e};if(r.settings)try... method constructor (line 1287) | constructor(e){this.options=e,this.abortController=e.abortController||v2... method getDefaultExecutable (line 1287) | getDefaultExecutable(){return j2()?"bun":"node"} method spawnLocalProcess (line 1287) | spawnLocalProcess(e){let{command:r,args:n,cwd:i,env:s,signal:o}=e,a=s.DE... method initialize (line 1287) | initialize(){try{let{additionalDirectories:e=[],betas:r,cwd:n,executable... method getProcessExitError (line 1287) | getProcessExitError(e,r){if(e!==0&&e!==null)return new Error(`Claude Cod... method write (line 1287) | write(e){if(this.abortController.signal.aborted)throw new Uo("Operation ... method close (line 1287) | close(){this.processStdin&&(this.processStdin.end(),this.processStdin=vo... method isReady (line 1287) | isReady(){return this.ready} method readMessages (line 1287) | async*readMessages(){if(!this.processStdout)throw new Error("ProcessTran... method endInput (line 1287) | endInput(){this.processStdin&&this.processStdin.end()} method getInputStream (line 1287) | getInputStream(){return this.processStdin} method onExit (line 1287) | onExit(e){if(!this.process)return()=>{};let r=(n,i)=>{let s=this.getProc... method waitForExit (line 1287) | async waitForExit(){if(!this.process){if(this.exitError)throw this.exitE... function Tue (line 1287) | function Tue(t){return![".js",".mjs",".tsx",".ts",".jsx"].some(r=>t.ends... method constructor (line 1287) | constructor(e){this.returned=e} method [Symbol.asyncIterator] (line 1287) | [Symbol.asyncIterator](){if(this.started)throw new Error("Stream can onl... method next (line 1287) | next(){return this.queue.length>0?Promise.resolve({done:!1,value:this.qu... method enqueue (line 1287) | enqueue(e){if(this.readResolve){let r=this.readResolve;this.readResolve=... method done (line 1287) | done(){if(this.isDone=!0,this.readResolve){let e=this.readResolve;this.r... method error (line 1287) | error(e){if(this.hasError=e,this.readReject){let r=this.readReject;this.... method return (line 1287) | return(){return this.isDone=!0,this.returned&&this.returned(),Promise.re... method constructor (line 1287) | constructor(e){this.sendMcpMessage=e} method start (line 1287) | async start(){} method send (line 1287) | async send(e){if(this.isClosed)throw new Error("Transport is closed");th... method close (line 1287) | async close(){this.isClosed||(this.isClosed=!0,this.onclose?.())} method hasBidirectionalNeeds (line 1287) | hasBidirectionalNeeds(){return this.sdkMcpTransports.size>0||this.hooks!... method constructor (line 1287) | constructor(e,r,n,i,s,o=new Map,a,c){this.transport=e,this.isSingleUserT... method setError (line 1287) | setError(e){this.inputStream.error(e)} method cleanup (line 1287) | cleanup(e){if(!this.cleanupPerformed){this.cleanupPerformed=!0;try{this.... method next (line 1287) | next(...[e]){return this.sdkMessages.next(e)} method return (line 1287) | return(e){return this.sdkMessages.return(e)} method throw (line 1287) | throw(e){return this.sdkMessages.throw(e)} method [Symbol.asyncIterator] (line 1287) | [Symbol.asyncIterator](){return this.sdkMessages} method [Symbol.asyncDispose] (line 1287) | [Symbol.asyncDispose](){return this.sdkMessages[Symbol.asyncDispose]()} method readMessages (line 1287) | async readMessages(){try{for await(let e of this.transport.readMessages(... method handleControlRequest (line 1287) | async handleControlRequest(e){let r=new AbortController;this.cancelContr... method handleControlCancelRequest (line 1289) | handleControlCancelRequest(e){let r=this.cancelControllers.get(e.request... method processControlRequest (line 1289) | async processControlRequest(e,r){if(e.request.subtype==="can_use_tool"){... method readSdkMessages (line 1289) | async*readSdkMessages(){for await(let e of this.inputStream)yield e} method initialize (line 1289) | async initialize(){let e;if(this.hooks){e={};for(let[s,o]of Object.entri... method interrupt (line 1289) | async interrupt(){await this.request({subtype:"interrupt"})} method setPermissionMode (line 1289) | async setPermissionMode(e){await this.request({subtype:"set_permission_m... method setModel (line 1289) | async setModel(e){await this.request({subtype:"set_model",model:e})} method setMaxThinkingTokens (line 1289) | async setMaxThinkingTokens(e){await this.request({subtype:"set_max_think... method rewindFiles (line 1289) | async rewindFiles(e,r){return(await this.request({subtype:"rewind_files"... method processPendingPermissionRequests (line 1289) | async processPendingPermissionRequests(e){for(let r of e)r.request.subty... method request (line 1289) | request(e){let r=Math.random().toString(36).substring(2,15),n={request_i... method supportedCommands (line 1290) | async supportedCommands(){return(await this.initialization).commands} method supportedModels (line 1290) | async supportedModels(){return(await this.initialization).models} method mcpServerStatus (line 1290) | async mcpServerStatus(){return(await this.request({subtype:"mcp_status"}... method setMcpServers (line 1290) | async setMcpServers(e){let r={},n={};for(let[c,u]of Object.entries(e))u.... method accountInfo (line 1290) | async accountInfo(){return(await this.initialization).account} method streamInput (line 1290) | async streamInput(e){os("[Query.streamInput] Starting to process input s... method waitForFirstResult (line 1291) | waitForFirstResult(){return this.firstResultReceived?(os("[Query.waitFor... method handleHookCallbacks (line 1291) | handleHookCallbacks(e,r,n,i){let s=this.hookCallbacks.get(e);if(!s)throw... method connectSdkMcpServer (line 1291) | connectSdkMcpServer(e,r){let n=new Sk(i=>this.sendMcpServerMessageToCli(... method disconnectSdkMcpServer (line 1291) | async disconnectSdkMcpServer(e){let r=this.sdkMcpTransports.get(e);r&&(a... method sendMcpServerMessageToCli (line 1291) | sendMcpServerMessageToCli(e,r){if("id"in r&&r.id!==null&&r.id!==void 0){... method handleMcpControlRequest (line 1292) | handleMcpControlRequest(e,r,n){let i="id"in r.message?r.message.id:null,... function e (line 1292) | function e(i){} method constructor (line 1280) | constructor(n){super("validation failed"),this.errors=n,this.ajv=this.... function r (line 1292) | function r(i){throw new Error} method constructor (line 1276) | constructor(x){if(super(),!t.IDENTIFIER.test(x))throw new Error("CodeG... method toString (line 1276) | toString(){return this.str} method emptyStr (line 1276) | emptyStr(){return!1} method names (line 1276) | get names(){return{[this.str]:1}} method constructor (line 1276) | constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.valu... method constructor (line 1280) | constructor(i,s,o,a){super(a||`can't resolve reference ${o} from id ${... function n (line 1292) | function n(i,s=" | "){return i.map(o=>typeof o=="string"?`'${o}'`:o).joi... method constructor (line 1276) | constructor(x){super(),this._items=typeof x=="string"?[x]:x} method toString (line 1276) | toString(){return this.str} method emptyStr (line 1276) | emptyStr(){if(this._items.length>1)return!1;let x=this._items[0];retur... method str (line 1276) | get str(){var x;return(x=this._str)!==null&&x!==void 0?x:this._str=thi... method names (line 1276) | get names(){var x;return(x=this._names)!==null&&x!==void 0?x:this._nam... method errors (line 1292) | get errors(){return this.issues} method constructor (line 1292) | constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...... method format (line 1292) | format(e){let r=e||function(s){return s.message},n={_errors:[]},i=s=>{fo... method assert (line 1292) | static assert(e){if(!(e instanceof t))throw new Error(`Not a ZodError: $... method toString (line 1292) | toString(){return this.message} method message (line 1292) | get message(){return JSON.stringify(this.issues,ot.jsonStringifyReplacer... method isEmpty (line 1292) | get isEmpty(){return this.issues.length===0} method flatten (line 1292) | flatten(e=r=>r.message){let r={},n=[];for(let i of this.issues)if(i.path... method formErrors (line 1292) | get formErrors(){return this.flatten()} function Ek (line 1292) | function Ek(){return Rue} function te (line 1292) | function te(t,e){let r=Ek(),n=kk({issueData:e,data:t.data,path:t.path,er... method constructor (line 1292) | constructor(){this.value="valid"} method dirty (line 1292) | dirty(){this.value==="valid"&&(this.value="dirty")} method abort (line 1292) | abort(){this.value!=="aborted"&&(this.value="aborted")} method mergeArray (line 1292) | static mergeArray(e,r){let n=[];for(let i of r){if(i.status==="aborted")... method mergeObjectAsync (line 1292) | static async mergeObjectAsync(e,r){let n=[];for(let i of r){let s=await ... method mergeObjectSync (line 1292) | static mergeObjectSync(e,r){let n={};for(let i of r){let{key:s,value:o}=... method constructor (line 1292) | constructor(e,r,n,i){this._cachedPath=[],this.parent=e,this.data=r,this.... method path (line 1292) | get path(){return this._cachedPath.length||(Array.isArray(this._key)?thi... method error (line 1292) | get error(){if(this._error)return this._error;let r=new jn(t.common.issu... function Ae (line 1292) | function Ae(t){if(!t)return{};let{errorMap:e,invalid_type_error:r,requir... method description (line 1292) | get description(){return this._def.description} method _getType (line 1292) | _getType(e){return Fs(e.data)} method _getOrReturnCtx (line 1292) | _getOrReturnCtx(e,r){return r||{common:e.parent.common,data:e.data,parse... method _processInputParams (line 1292) | _processInputParams(e){return{status:new Br,ctx:{common:e.parent.common,... method _parseSync (line 1292) | _parseSync(e){let r=this._parse(e);if(bg(r))throw new Error("Synchronous... method _parseAsync (line 1292) | _parseAsync(e){let r=this._parse(e);return Promise.resolve(r)} method parse (line 1292) | parse(e,r){let n=this.safeParse(e,r);if(n.success)return n.data;throw n.... method safeParse (line 1292) | safeParse(e,r){let n={common:{issues:[],async:r?.async??!1,contextualErr... method "~validate" (line 1292) | "~validate"(e){let r={common:{issues:[],async:!!this["~standard"].async}... method parseAsync (line 1292) | async parseAsync(e,r){let n=await this.safeParseAsync(e,r);if(n.success)... method safeParseAsync (line 1292) | async safeParseAsync(e,r){let n={common:{issues:[],contextualErrorMap:r?... method refine (line 1292) | refine(e,r){let n=i=>typeof r=="string"||typeof r>"u"?{message:r}:typeof... method refinement (line 1292) | refinement(e,r){return this._refinement((n,i)=>e(n)?!0:(i.addIssue(typeo... method _refinement (line 1292) | _refinement(e){return new ii({schema:this,typeName:$e.ZodEffects,effect:... method superRefine (line 1292) | superRefine(e){return this._refinement(e)} method constructor (line 1292) | constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.... method optional (line 1292) | optional(){return ni.create(this,this._def)} method nullable (line 1292) | nullable(){return us.create(this,this._def)} method nullish (line 1292) | nullish(){return this.nullable().optional()} method array (line 1292) | array(){return Bs.create(this)} method promise (line 1292) | promise(){return Fo.create(this,this._def)} method or (line 1292) | or(e){return jc.create([this,e],this._def)} method and (line 1292) | and(e){return zc.create(this,e,this._def)} method transform (line 1292) | transform(e){return new ii({...Ae(this._def),schema:this,typeName:$e.Zod... method default (line 1292) | default(e){let r=typeof e=="function"?e:()=>e;return new Hc({...Ae(this.... method brand (line 1292) | brand(){return new xg({typeName:$e.ZodBranded,type:this,...Ae(this._def)})} method catch (line 1292) | catch(e){let r=typeof e=="function"?e:()=>e;return new Zc({...Ae(this._d... method describe (line 1292) | describe(e){let r=this.constructor;return new r({...this._def,descriptio... method pipe (line 1292) | pipe(e){return Sg.create(this,e)} method readonly (line 1292) | readonly(){return Bc.create(this)} method isOptional (line 1292) | isOptional(){return this.safeParse(void 0).success} method isNullable (line 1292) | isNullable(){return this.safeParse(null).success} function q2 (line 1292) | function q2(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}... function Vue (line 1292) | function Vue(t){return new RegExp(`^${q2(t)}$`)} function Gue (line 1292) | function Gue(t){let e=`${U2}T${q2(t)}`,r=[];return r.push(t.local?"Z?":"... function Wue (line 1292) | function Wue(t,e){return!!((e==="v4"||!e)&&Lue.test(t)||(e==="v6"||!e)&&... function Kue (line 1292) | function Kue(t,e){if(!Mue.test(t))return!1;try{let[r]=t.split(".");if(!r... function Jue (line 1292) | function Jue(t,e){return!!((e==="v4"||!e)&&Uue.test(t)||(e==="v6"||!e)&&... method _parse (line 1292) | _parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!... method _regex (line 1292) | _regex(e,r,n){return this.refinement(i=>e.test(i),{validation:r,code:G.i... method _addCheck (line 1292) | _addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})} method email (line 1292) | email(e){return this._addCheck({kind:"email",...pe.errToObj(e)})} method url (line 1292) | url(e){return this._addCheck({kind:"url",...pe.errToObj(e)})} method emoji (line 1292) | emoji(e){return this._addCheck({kind:"emoji",...pe.errToObj(e)})} method uuid (line 1292) | uuid(e){return this._addCheck({kind:"uuid",...pe.errToObj(e)})} method nanoid (line 1292) | nanoid(e){return this._addCheck({kind:"nanoid",...pe.errToObj(e)})} method cuid (line 1292) | cuid(e){return this._addCheck({kind:"cuid",...pe.errToObj(e)})} method cuid2 (line 1292) | cuid2(e){return this._addCheck({kind:"cuid2",...pe.errToObj(e)})} method ulid (line 1292) | ulid(e){return this._addCheck({kind:"ulid",...pe.errToObj(e)})} method base64 (line 1292) | base64(e){return this._addCheck({kind:"base64",...pe.errToObj(e)})} method base64url (line 1292) | base64url(e){return this._addCheck({kind:"base64url",...pe.errToObj(e)})} method jwt (line 1292) | jwt(e){return this._addCheck({kind:"jwt",...pe.errToObj(e)})} method ip (line 1292) | ip(e){return this._addCheck({kind:"ip",...pe.errToObj(e)})} method cidr (line 1292) | cidr(e){return this._addCheck({kind:"cidr",...pe.errToObj(e)})} method datetime (line 1292) | datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",pr... method date (line 1292) | date(e){return this._addCheck({kind:"date",message:e})} method time (line 1292) | time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:... method duration (line 1292) | duration(e){return this._addCheck({kind:"duration",...pe.errToObj(e)})} method regex (line 1292) | regex(e,r){return this._addCheck({kind:"regex",regex:e,...pe.errToObj(r)})} method includes (line 1292) | includes(e,r){return this._addCheck({kind:"includes",value:e,position:r?... method startsWith (line 1292) | startsWith(e,r){return this._addCheck({kind:"startsWith",value:e,...pe.e... method endsWith (line 1292) | endsWith(e,r){return this._addCheck({kind:"endsWith",value:e,...pe.errTo... method min (line 1292) | min(e,r){return this._addCheck({kind:"min",value:e,...pe.errToObj(r)})} method max (line 1292) | max(e,r){return this._addCheck({kind:"max",value:e,...pe.errToObj(r)})} method length (line 1292) | length(e,r){return this._addCheck({kind:"length",value:e,...pe.errToObj(... method nonempty (line 1292) | nonempty(e){return this.min(1,pe.errToObj(e))} method trim (line 1292) | trim(){return new t({...this._def,checks:[...this._def.checks,{kind:"tri... method toLowerCase (line 1292) | toLowerCase(){return new t({...this._def,checks:[...this._def.checks,{ki... method toUpperCase (line 1292) | toUpperCase(){return new t({...this._def,checks:[...this._def.checks,{ki... method isDatetime (line 1292) | get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")} method isDate (line 1292) | get isDate(){return!!this._def.checks.find(e=>e.kind==="date")} method isTime (line 1292) | get isTime(){return!!this._def.checks.find(e=>e.kind==="time")} method isDuration (line 1292) | get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")} method isEmail (line 1292) | get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")} method isURL (line 1292) | get isURL(){return!!this._def.checks.find(e=>e.kind==="url")} method isEmoji (line 1292) | get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")} method isUUID (line 1292) | get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")} method isNANOID (line 1292) | get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")} method isCUID (line 1292) | get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")} method isCUID2 (line 1292) | get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")} method isULID (line 1292) | get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")} method isIP (line 1292) | get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")} method isCIDR (line 1292) | get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")} method isBase64 (line 1292) | get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")} method isBase64url (line 1292) | get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")} method minLength (line 1292) | get minLength(){let e=null;for(let r of this._def.checks)r.kind==="min"&... method maxLength (line 1292) | get maxLength(){let e=null;for(let r of this._def.checks)r.kind==="max"&... function Xue (line 1292) | function Xue(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toS... method constructor (line 1292) | constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,th... method _parse (line 1292) | _parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!... method gte (line 1292) | gte(e,r){return this.setLimit("min",e,!0,pe.toString(r))} method gt (line 1292) | gt(e,r){return this.setLimit("min",e,!1,pe.toString(r))} method lte (line 1292) | lte(e,r){return this.setLimit("max",e,!0,pe.toString(r))} method lt (line 1292) | lt(e,r){return this.setLimit("max",e,!1,pe.toString(r))} method setLimit (line 1292) | setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks... method _addCheck (line 1292) | _addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})} method int (line 1292) | int(e){return this._addCheck({kind:"int",message:pe.toString(e)})} method positive (line 1292) | positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,messa... method negative (line 1292) | negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,messa... method nonpositive (line 1292) | nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,me... method nonnegative (line 1292) | nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,me... method multipleOf (line 1292) | multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message... method finite (line 1292) | finite(e){return this._addCheck({kind:"finite",message:pe.toString(e)})} method safe (line 1292) | safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_... method minValue (line 1292) | get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&... method maxValue (line 1292) | get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&... method isInt (line 1292) | get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="m... method isFinite (line 1292) | get isFinite(){let e=null,r=null;for(let n of this._def.checks){if(n.kin... method constructor (line 1292) | constructor(){super(...arguments),this.min=this.gte,this.max=this.lte} method _parse (line 1292) | _parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return thi... method _getInvalidInput (line 1292) | _getInvalidInput(e){let r=this._getOrReturnCtx(e);return te(r,{code:G.in... method gte (line 1292) | gte(e,r){return this.setLimit("min",e,!0,pe.toString(r))} method gt (line 1292) | gt(e,r){return this.setLimit("min",e,!1,pe.toString(r))} method lte (line 1292) | lte(e,r){return this.setLimit("max",e,!0,pe.toString(r))} method lt (line 1292) | lt(e,r){return this.setLimit("max",e,!1,pe.toString(r))} method setLimit (line 1292) | setLimit(e,r,n,i){return new t({...this._def,checks:[...this._def.checks... method _addCheck (line 1292) | _addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})} method positive (line 1292) | positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:... method negative (line 1292) | negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:... method nonpositive (line 1292) | nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusi... method nonnegative (line 1292) | nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusi... method multipleOf (line 1292) | multipleOf(e,r){return this._addCheck({kind:"multipleOf",value:e,message... method minValue (line 1292) | get minValue(){let e=null;for(let r of this._def.checks)r.kind==="min"&&... method maxValue (line 1292) | get maxValue(){let e=null;for(let r of this._def.checks)r.kind==="max"&&... method _parse (line 1292) | _parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==se.b... method _parse (line 1292) | _parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e... method _addCheck (line 1292) | _addCheck(e){return new t({...this._def,checks:[...this._def.checks,e]})} method min (line 1292) | min(e,r){return this._addCheck({kind:"min",value:e.getTime(),message:pe.... method max (line 1292) | max(e,r){return this._addCheck({kind:"max",value:e.getTime(),message:pe.... method minDate (line 1292) | get minDate(){let e=null;for(let r of this._def.checks)r.kind==="min"&&(... method maxDate (line 1292) | get maxDate(){let e=null;for(let r of this._def.checks)r.kind==="max"&&(... method _parse (line 1292) | _parse(e){if(this._getType(e)!==se.symbol){let n=this._getOrReturnCtx(e)... method _parse (line 1292) | _parse(e){if(this._getType(e)!==se.undefined){let n=this._getOrReturnCtx... method _parse (line 1292) | _parse(e){if(this._getType(e)!==se.null){let n=this._getOrReturnCtx(e);r... method constructor (line 1292) | constructor(){super(...arguments),this._any=!0} method _parse (line 1292) | _parse(e){return on(e.data)} method constructor (line 1292) | constructor(){super(...arguments),this._unknown=!0} method _parse (line 1292) | _parse(e){return on(e.data)} method _parse (line 1292) | _parse(e){let r=this._getOrReturnCtx(e);return te(r,{code:G.invalid_type... method _parse (line 1292) | _parse(e){if(this._getType(e)!==se.undefined){let n=this._getOrReturnCtx... method _parse (line 1292) | _parse(e){let{ctx:r,status:n}=this._processInputParams(e),i=this._def;if... method element (line 1292) | get element(){return this._def.type} method min (line 1292) | min(e,r){return new t({...this._def,minLength:{value:e,message:pe.toStri... method max (line 1292) | max(e,r){return new t({...this._def,maxLength:{value:e,message:pe.toStri... method length (line 1292) | length(e,r){return new t({...this._def,exactLength:{value:e,message:pe.t... method nonempty (line 1292) | nonempty(e){return this.min(1,e)} function Oc (line 1292) | function Oc(t){if(t instanceof bn){let e={};for(let r in t.shape){let n=... method constructor (line 1292) | constructor(){super(...arguments),this._cached=null,this.nonstrict=this.... method _getCached (line 1292) | _getCached(){if(this._cached!==null)return this._cached;let e=this._def.... method _parse (line 1292) | _parse(e){if(this._getType(e)!==se.object){let u=this._getOrReturnCtx(e)... method shape (line 1292) | get shape(){return this._def.shape()} method strict (line 1292) | strict(e){return pe.errToObj,new t({...this._def,unknownKeys:"strict",..... method strip (line 1292) | strip(){return new t({...this._def,unknownKeys:"strip"})} method passthrough (line 1292) | passthrough(){return new t({...this._def,unknownKeys:"passthrough"})} method extend (line 1292) | extend(e){return new t({...this._def,shape:()=>({...this._def.shape(),..... method merge (line 1292) | merge(e){return new t({unknownKeys:e._def.unknownKeys,catchall:e._def.ca... method setKey (line 1292) | setKey(e,r){return this.augment({[e]:r})} method catchall (line 1292) | catchall(e){return new t({...this._def,catchall:e})} method pick (line 1292) | pick(e){let r={};for(let n of ot.objectKeys(e))e[n]&&this.shape[n]&&(r[n... method omit (line 1292) | omit(e){let r={};for(let n of ot.objectKeys(this.shape))e[n]||(r[n]=this... method deepPartial (line 1292) | deepPartial(){return Oc(this)} method partial (line 1292) | partial(e){let r={};for(let n of ot.objectKeys(this.shape)){let i=this.s... method required (line 1292) | required(e){let r={};for(let n of ot.objectKeys(this.shape))if(e&&!e[n])... method keyof (line 1292) | keyof(){return F2(ot.objectKeys(this.shape))} method _parse (line 1292) | _parse(e){let{ctx:r}=this._processInputParams(e),n=this._def.options;fun... method options (line 1292) | get options(){return this._def.options} method _parse (line 1292) | _parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==se.ob... method discriminator (line 1292) | get discriminator(){return this._def.discriminator} method options (line 1292) | get options(){return this._def.options} method optionsMap (line 1292) | get optionsMap(){return this._def.optionsMap} method create (line 1292) | static create(e,r,n){let i=new Map;for(let s of r){let o=ss(s.shape[e]);... function Tk (line 1292) | function Tk(t,e){let r=Fs(t),n=Fs(e);if(t===e)return{valid:!0,data:t};if... method _parse (line 1292) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=(s,o)=>{if(z... method _parse (line 1292) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedTyp... method items (line 1292) | get items(){return this._def.items} method rest (line 1292) | rest(e){return new t({...this._def,rest:e})} method keySchema (line 1292) | get keySchema(){return this._def.keyType} method valueSchema (line 1292) | get valueSchema(){return this._def.valueType} method _parse (line 1292) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedTyp... method element (line 1292) | get element(){return this._def.valueType} method create (line 1292) | static create(e,r,n){return r instanceof Ze?new t({keyType:e,valueType:r... method keySchema (line 1292) | get keySchema(){return this._def.keyType} method valueSchema (line 1292) | get valueSchema(){return this._def.valueType} method _parse (line 1292) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedTyp... method _parse (line 1292) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.parsedTyp... method min (line 1292) | min(e,r){return new t({...this._def,minSize:{value:e,message:pe.toString... method max (line 1292) | max(e,r){return new t({...this._def,maxSize:{value:e,message:pe.toString... method size (line 1292) | size(e,r){return this.min(e,r).max(e,r)} method nonempty (line 1292) | nonempty(e){return this.min(1,e)} method constructor (line 1292) | constructor(){super(...arguments),this.validate=this.implement} method _parse (line 1292) | _parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==se.fu... method parameters (line 1292) | parameters(){return this._def.args} method returnType (line 1292) | returnType(){return this._def.returns} method args (line 1292) | args(...e){return new t({...this._def,args:cs.create(e).rest(Zs.create()... method returns (line 1292) | returns(e){return new t({...this._def,returns:e})} method implement (line 1292) | implement(e){return this.parse(e)} method strictImplement (line 1292) | strictImplement(e){return this.parse(e)} method create (line 1292) | static create(e,r,n){return new t({args:e||cs.create([]).rest(Zs.create(... method schema (line 1292) | get schema(){return this._def.getter()} method _parse (line 1292) | _parse(e){let{ctx:r}=this._processInputParams(e);return this._def.getter... method _parse (line 1292) | _parse(e){if(e.data!==this._def.value){let r=this._getOrReturnCtx(e);ret... method value (line 1292) | get value(){return this._def.value} function F2 (line 1292) | function F2(t,e){return new qc({values:t,typeName:$e.ZodEnum,...Ae(e)})} method _parse (line 1292) | _parse(e){if(typeof e.data!="string"){let r=this._getOrReturnCtx(e),n=th... method options (line 1292) | get options(){return this._def.values} method enum (line 1292) | get enum(){let e={};for(let r of this._def.values)e[r]=r;return e} method Values (line 1292) | get Values(){let e={};for(let r of this._def.values)e[r]=r;return e} method Enum (line 1292) | get Enum(){let e={};for(let r of this._def.values)e[r]=r;return e} method extract (line 1292) | extract(e,r=this._def){return t.create(e,{...this._def,...r})} method exclude (line 1292) | exclude(e,r=this._def){return t.create(this.options.filter(n=>!e.include... method _parse (line 1292) | _parse(e){let r=ot.getValidEnumValues(this._def.values),n=this._getOrRet... method enum (line 1292) | get enum(){return this._def.values} method unwrap (line 1292) | unwrap(){return this._def.type} method _parse (line 1292) | _parse(e){let{ctx:r}=this._processInputParams(e);if(r.parsedType!==se.pr... method innerType (line 1292) | innerType(){return this._def.schema} method sourceType (line 1292) | sourceType(){return this._def.schema._def.typeName===$e.ZodEffects?this.... method _parse (line 1292) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e),i=this._def.ef... method _parse (line 1292) | _parse(e){return this._getType(e)===se.undefined?on(void 0):this._def.in... method unwrap (line 1292) | unwrap(){return this._def.innerType} method _parse (line 1292) | _parse(e){return this._getType(e)===se.null?on(null):this._def.innerType... method unwrap (line 1292) | unwrap(){return this._def.innerType} method _parse (line 1292) | _parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return r.parse... method removeDefault (line 1292) | removeDefault(){return this._def.innerType} method _parse (line 1292) | _parse(e){let{ctx:r}=this._processInputParams(e),n={...r,common:{...r.co... method removeCatch (line 1292) | removeCatch(){return this._def.innerType} method _parse (line 1292) | _parse(e){if(this._getType(e)!==se.nan){let n=this._getOrReturnCtx(e);re... method _parse (line 1292) | _parse(e){let{ctx:r}=this._processInputParams(e),n=r.data;return this._d... method unwrap (line 1292) | unwrap(){return this._def.type} method _parse (line 1292) | _parse(e){let{status:r,ctx:n}=this._processInputParams(e);if(n.common.as... method create (line 1292) | static create(e,r){return new t({in:e,out:r,typeName:$e.ZodPipeline})} method _parse (line 1292) | _parse(e){let r=this._def.innerType._parse(e),n=i=>(Ac(i)&&(i.value=Obje... method unwrap (line 1292) | unwrap(){return this._def.innerType} function F (line 1292) | function F(t,e,r){function n(a,c){var u;Object.defineProperty(a,"_zod",{... method constructor (line 1292) | constructor(){super("Encountered Promise during synchronous parse. Use .... function ls (line 1292) | function ls(t){return t&&Object.assign(Ok,t),Ok} function Yue (line 1292) | function Yue(t){return t} function Que (line 1292) | function Que(t){return t} function ele (line 1292) | function ele(t){} function tle (line 1292) | function tle(t){throw new Error} function rle (line 1292) | function rle(t){} function H2 (line 1292) | function H2(t){let e=Object.values(t).filter(n=>typeof n=="number");retu... function Pk (line 1292) | function Pk(t,e="|"){return t.map(r=>Bk(r)).join(e)} function Z2 (line 1292) | function Z2(t,e){return typeof e=="bigint"?e.toString():e} function Pg (line 1292) | function Pg(t){return{get value(){{let r=t();return Object.definePropert... function Cg (line 1292) | function Cg(t){return t==null} function Ag (line 1292) | function Ag(t){let e=t.startsWith("^")?1:0,r=t.endsWith("$")?t.length-1:... function B2 (line 1292) | function B2(t,e){let r=(t.toString().split(".")[1]||"").length,n=(e.toSt... function At (line 1292) | function At(t,e,r){Object.defineProperty(t,e,{get(){{let i=r();return t[... function Hk (line 1292) | function Hk(t,e,r){Object.defineProperty(t,e,{value:r,writable:!0,enumer... function nle (line 1292) | function nle(t,e){return e?e.reduce((r,n)=>r?.[n],t):t} function ile (line 1292) | function ile(t){let e=Object.keys(t),r=e.map(n=>t[n]);return Promise.all... function sle (line 1292) | function sle(t=10){let e="abcdefghijklmnopqrstuvwxyz",r="";for(let n=0;n... function Pc (line 1292) | function Pc(t){return JSON.stringify(t)} function tp (line 1292) | function tp(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)} function rp (line 1292) | function rp(t){if(tp(t)===!1)return!1;let e=t.constructor;if(e===void 0)... function ole (line 1292) | function ole(t){let e=0;for(let r in t)Object.prototype.hasOwnProperty.c... function Xc (line 1292) | function Xc(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")} function Gs (line 1292) | function Gs(t,e,r){let n=new t._zod.constr(e??t._zod.def);return(!e||r?.... function xe (line 1292) | function xe(t){let e=t;if(!e)return{};if(typeof e=="string")return{error... function ule (line 1292) | function ule(t){let e;return new Proxy({},{get(r,n,i){return e??(e=t()),... function Bk (line 1292) | function Bk(t){return typeof t=="bigint"?t.toString()+"n":typeof t=="str... function W2 (line 1292) | function W2(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="option... function dle (line 1292) | function dle(t,e){let r={},n=t._zod.def;for(let i in e){if(!(i in n.shap... function ple (line 1292) | function ple(t,e){let r={...t._zod.def.shape},n=t._zod.def;for(let i in ... function mle (line 1292) | function mle(t,e){if(!rp(e))throw new Error("Invalid input to extend: ex... function fle (line 1292) | function fle(t,e){return Gs(t,{...t._zod.def,get shape(){let r={...t._zo... function hle (line 1292) | function hle(t,e,r){let n=e._zod.def.shape,i={...n};if(r)for(let s in r)... function gle (line 1292) | function gle(t,e,r){let n=e._zod.def.shape,i={...n};if(r)for(let s in r)... function Cc (line 1292) | function Cc(t,e=0){for(let r=e;r{var n;return(n=r).path??(n.path=[]),r.... function Fd (line 1292) | function Fd(t){return typeof t=="string"?t:t?.message} function ds (line 1292) | function ds(t,e,r){let n={...t,path:t.path??[]};if(!t.message){let i=Fd(... function vle (line 1292) | function vle(t){return t instanceof Set?"set":t instanceof Map?"map":t i... function Ng (line 1292) | function Ng(t){return Array.isArray(t)?"array":typeof t=="string"?"strin... function J2 (line 1292) | function J2(...t){let[e,r,n]=t;return typeof e=="string"?{message:e,code... function yle (line 1292) | function yle(t){return Object.entries(t).filter(([e,r])=>Number.isNaN(Nu... method constructor (line 1292) | constructor(...e){} method get (line 1292) | get(){return JSON.stringify(e,Z2,2)} function _le (line 1292) | function _le(t,e=r=>r.message){let r={},n=[];for(let i of t.issues)i.pat... function ble (line 1292) | function ble(t,e){let r=e||function(s){return s.message},n={_errors:[]},... function Mle (line 1292) | function Mle(){return new RegExp(Nle,"u")} function i6 (line 1292) | function i6(t){let e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.preci... function Zle (line 1292) | function Zle(t){return new RegExp(`^${i6(t)}$`)} function Ble (line 1292) | function Ble(t){let e=i6({precision:t.precision}),r=["Z"];t.local&&r.pus... method constructor (line 1292) | constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)} method indented (line 1292) | indented(e){this.indent+=1,e(this),this.indent-=1} method write (line 1292) | write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{exe... method compile (line 1293) | compile(){let e=Function,r=this?.args,i=[...(this?.content??[""]).map(s=... function c6 (line 1294) | function c6(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return ... function Cde (line 1294) | function Cde(t){if(!r6.test(t))return!1;let e=t.replace(/[-_]/g,n=>n==="... function Mde (line 1294) | function Mde(t,e=null){try{let r=t.split(".");if(r.length!==3)return!1;l... function FU (line 1294) | function FU(t,e,r){t.issues.length&&e.issues.push(...Hs(r,t.issues)),e.v... function fg (line 1294) | function fg(t,e,r){t.issues.length&&e.issues.push(...Hs(r,t.issues)),e.v... function HU (line 1294) | function HU(t,e,r,n){t.issues.length?n[r]===void 0?r in n?e.value[r]=voi... function ZU (line 1317) | function ZU(t,e,r,n){for(let i of t)if(i.issues.length===0)return e.valu... function Nk (line 1317) | function Nk(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&... function BU (line 1317) | function BU(t,e,r){if(e.issues.length&&t.issues.push(...e.issues),r.issu... function VU (line 1317) | function VU(t,e){return t.value===void 0&&(t.value=e.defaultValue),t} function GU (line 1317) | function GU(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push... function WU (line 1317) | function WU(t,e,r){return Cc(t)?t:e.out._zod.run({value:t.value,issues:t... function KU (line 1317) | function KU(t){return t.value=Object.freeze(t.value),t} function JU (line 1317) | function JU(t,e,r,n){if(!t){let i={code:"custom",input:r,inst:n,path:[..... function e (line 1317) | function e(n){return t[n]??null} method constructor (line 1280) | constructor(n){super("validation failed"),this.errors=n,this.ajv=this.... function ape (line 1317) | function ape(){return{localeError:ope()}} method constructor (line 1317) | constructor(){this._map=new WeakMap,this._idmap=new Map} method add (line 1317) | add(e,...r){let n=r[0];if(this._map.set(e,n),n&&typeof n=="object"&&"id"... method remove (line 1317) | remove(e){return this._map.delete(e),this} method get (line 1317) | get(e){let r=e._zod.parent;if(r){let n={...this.get(r)??{}};return delet... method has (line 1317) | has(e){return this._map.has(e)} function cpe (line 1317) | function cpe(){return new Mk} function upe (line 1317) | function upe(t,e){return new t({type:"string",...xe(e)})} function lpe (line 1317) | function lpe(t,e){return new t({type:"string",format:"email",check:"stri... function XU (line 1317) | function XU(t,e){return new t({type:"string",format:"guid",check:"string... function dpe (line 1317) | function dpe(t,e){return new t({type:"string",format:"uuid",check:"strin... function ppe (line 1317) | function ppe(t,e){return new t({type:"string",format:"uuid",check:"strin... function mpe (line 1317) | function mpe(t,e){return new t({type:"string",format:"uuid",check:"strin... function fpe (line 1317) | function fpe(t,e){return new t({type:"string",format:"uuid",check:"strin... function hpe (line 1317) | function hpe(t,e){return new t({type:"string",format:"url",check:"string... function gpe (line 1317) | function gpe(t,e){return new t({type:"string",format:"emoji",check:"stri... function vpe (line 1317) | function vpe(t,e){return new t({type:"string",format:"nanoid",check:"str... function ype (line 1317) | function ype(t,e){return new t({type:"string",format:"cuid",check:"strin... function _pe (line 1317) | function _pe(t,e){return new t({type:"string",format:"cuid2",check:"stri... function bpe (line 1317) | function bpe(t,e){return new t({type:"string",format:"ulid",check:"strin... function xpe (line 1317) | function xpe(t,e){return new t({type:"string",format:"xid",check:"string... function Spe (line 1317) | function Spe(t,e){return new t({type:"string",format:"ksuid",check:"stri... function wpe (line 1317) | function wpe(t,e){return new t({type:"string",format:"ipv4",check:"strin... function Epe (line 1317) | function Epe(t,e){return new t({type:"string",format:"ipv6",check:"strin... function kpe (line 1317) | function kpe(t,e){return new t({type:"string",format:"cidrv4",check:"str... function $pe (line 1317) | function $pe(t,e){return new t({type:"string",format:"cidrv6",check:"str... function Tpe (line 1317) | function Tpe(t,e){return new t({type:"string",format:"base64",check:"str... function Ipe (line 1317) | function Ipe(t,e){return new t({type:"string",format:"base64url",check:"... function Rpe (line 1317) | function Rpe(t,e){return new t({type:"string",format:"e164",check:"strin... function Ope (line 1317) | function Ope(t,e){return new t({type:"string",format:"jwt",check:"string... function Ppe (line 1317) | function Ppe(t,e){return new t({type:"string",format:"datetime",check:"s... function Cpe (line 1317) | function Cpe(t,e){return new t({type:"string",format:"date",check:"strin... function Ape (line 1317) | function Ape(t,e){return new t({type:"string",format:"time",check:"strin... function Npe (line 1317) | function Npe(t,e){return new t({type:"string",format:"duration",check:"s... function Mpe (line 1317) | function Mpe(t,e){return new t({type:"number",checks:[],...xe(e)})} function Dpe (line 1317) | function Dpe(t,e){return new t({type:"number",check:"number_format",abor... function jpe (line 1317) | function jpe(t,e){return new t({type:"boolean",...xe(e)})} function zpe (line 1317) | function zpe(t,e){return new t({type:"null",...xe(e)})} function Lpe (line 1317) | function Lpe(t){return new t({type:"unknown"})} function Upe (line 1317) | function Upe(t,e){return new t({type:"never",...xe(e)})} function YU (line 1317) | function YU(t,e){return new o6({check:"less_than",...xe(e),value:t,inclu... function hk (line 1317) | function hk(t,e){return new o6({check:"less_than",...xe(e),value:t,inclu... function QU (line 1317) | function QU(t,e){return new a6({check:"greater_than",...xe(e),value:t,in... function gk (line 1317) | function gk(t,e){return new a6({check:"greater_than",...xe(e),value:t,in... function e2 (line 1317) | function e2(t,e){return new Qle({check:"multiple_of",...xe(e),value:t})} function d6 (line 1317) | function d6(t,e){return new tde({check:"max_length",...xe(e),maximum:t})} function wg (line 1317) | function wg(t,e){return new rde({check:"min_length",...xe(e),minimum:t})} function p6 (line 1317) | function p6(t,e){return new nde({check:"length_equals",...xe(e),length:t})} function qpe (line 1317) | function qpe(t,e){return new ide({check:"string_format",format:"regex",.... function Fpe (line 1317) | function Fpe(t){return new sde({check:"string_format",format:"lowercase"... function Hpe (line 1317) | function Hpe(t){return new ode({check:"string_format",format:"uppercase"... function Zpe (line 1317) | function Zpe(t,e){return new ade({check:"string_format",format:"includes... function Bpe (line 1317) | function Bpe(t,e){return new cde({check:"string_format",format:"starts_w... function Vpe (line 1317) | function Vpe(t,e){return new ude({check:"string_format",format:"ends_wit... function ip (line 1317) | function ip(t){return new lde({check:"overwrite",tx:t})} function Gpe (line 1317) | function Gpe(t){return ip(e=>e.normalize(t))} function Wpe (line 1317) | function Wpe(){return ip(t=>t.trim())} function Kpe (line 1317) | function Kpe(){return ip(t=>t.toLowerCase())} function Jpe (line 1317) | function Jpe(){return ip(t=>t.toUpperCase())} function Xpe (line 1317) | function Xpe(t,e,r){return new t({type:"array",element:e,...xe(r)})} function Ype (line 1317) | function Ype(t,e,r){let n=xe(r);return n.abort??(n.abort=!0),new t({type... function Qpe (line 1317) | function Qpe(t,e,r){return new t({type:"custom",check:"custom",fn:e,...x... function h6 (line 1317) | function h6(t){return Ppe(f6,t)} function v6 (line 1317) | function v6(t){return Cpe(g6,t)} function _6 (line 1317) | function _6(t){return Ape(y6,t)} function x6 (line 1317) | function x6(t){return Npe(b6,t)} method get (line 1317) | get(){return t.issues.length===0} method get (line 1317) | get(){return hg.get(t)?.description} function L (line 1317) | function L(t){return upe(ime,t)} function It (line 1317) | function It(t){return Mpe(E6,t)} function r2 (line 1317) | function r2(t){return Dpe(Sme,t)} function Rr (line 1317) | function Rr(t){return jpe(wme,t)} function k6 (line 1317) | function k6(t){return zpe(Eme,t)} function nr (line 1317) | function nr(){return Lpe(kme)} function Tme (line 1317) | function Tme(t){return Upe($me,t)} function nt (line 1317) | function nt(t,e){return Xpe(Ime,t,e)} function X (line 1317) | function X(t,e){let r={type:"object",get shape(){return Ct.assignProp(th... function si (line 1317) | function si(t,e){return new $6({type:"object",get shape(){return Ct.assi... function Ut (line 1317) | function Ut(t,e){return new T6({type:"union",options:t,...Ct.normalizePa... function I6 (line 1317) | function I6(t,e,r){return new Rme({type:"union",options:e,discriminator:... function Gk (line 1317) | function Gk(t,e){return new Ome({type:"intersection",left:t,right:e})} function ir (line 1317) | function ir(t,e,r){return new Pme({type:"record",keyType:t,valueType:e,.... function Or (line 1317) | function Or(t,e){let r=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n... method get (line 1317) | get(){if(e.values.length>1)throw new Error("This schema contains multipl... function ge (line 1317) | function ge(t,e){return new Cme({type:"literal",values:Array.isArray(t)?... function R6 (line 1317) | function R6(t){return new Ame({type:"transform",transform:t})} function he (line 1317) | function he(t){return new O6({type:"optional",innerType:t})} function n2 (line 1317) | function n2(t){return new Nme({type:"nullable",innerType:t})} function Dme (line 1317) | function Dme(t,e){return new Mme({type:"default",innerType:t,get default... function zme (line 1317) | function zme(t,e){return new jme({type:"prefault",innerType:t,get defaul... function Lme (line 1317) | function Lme(t,e){return new P6({type:"nonoptional",innerType:t,...Ct.no... function qme (line 1317) | function qme(t,e){return new Ume({type:"catch",innerType:t,catchValue:ty... function jk (line 1317) | function jk(t,e){return new Fme({type:"pipe",in:t,out:e})} function Zme (line 1317) | function Zme(t){return new Hme({type:"readonly",innerType:t})} function Bme (line 1317) | function Bme(t,e){let r=new an({check:"custom",...Ct.normalizeParams(e)}... function Vme (line 1317) | function Vme(t,e){return Ype(C6,t??(()=>!0),e)} function Gme (line 1317) | function Gme(t,e={}){return Qpe(C6,t,e)} function Wme (line 1317) | function Wme(t,e){let r=Bme(n=>(n.addIssue=i=>{if(typeof i=="string")n.i... function A6 (line 1317) | function A6(t,e){return jk(R6(t),e)} function tq (line 1317) | function tq({prompt:t,options:e}){let{systemPrompt:r,settingSources:n,sa... method constructor (line 1318) | constructor(e,r){this.dbManager=e,this.sessionManager=r} method startSession (line 1318) | async startSession(e,r){let n={lastCwd:void 0},i=this.findClaudeExecutab... method createMessageGenerator (line 1319) | async*createMessageGenerator(e,r){let n=Fe.getInstance().getActiveMode()... method findClaudeExecutable (line 1319) | findClaudeExecutable(){let e=Ee.loadFromFile(Ft);if(e.CLAUDE_CODE_PATH){... method getModelId (line 1322) | getModelId(){let e=nq.default.join((0,rq.homedir)(),".claude-mem","setti... function Fhe (line 1322) | async function Fhe(t,e){if(!e)return;let r=qhe[t]||5,n=Math.ceil(6e4/r)+... method constructor (line 1322) | constructor(e,r){this.dbManager=e,this.sessionManager=r} method setFallbackAgent (line 1322) | setFallbackAgent(e){this.fallbackAgent=e} method startSession (line 1322) | async startSession(e,r){try{let{apiKey:n,model:i,rateLimitingEnabled:s}=... method conversationToGeminiContents (line 1322) | conversationToGeminiContents(e){return e.map(r=>({role:r.role==="assista... method queryGeminiMultiTurn (line 1322) | async queryGeminiMultiTurn(e,r,n,i){let s=this.conversationToGeminiConte... method getGeminiConfig (line 1322) | getGeminiConfig(){let e=qg.default.join((0,Fg.homedir)(),".claude-mem","... function Bo (line 1322) | function Bo(){let t=qg.default.join((0,Fg.homedir)(),".claude-mem","sett... function Qc (line 1322) | function Qc(){let t=qg.default.join((0,Fg.homedir)(),".claude-mem","sett... method constructor (line 1322) | constructor(e,r){this.dbManager=e,this.sessionManager=r} method setFallbackAgent (line 1322) | setFallbackAgent(e){this.fallbackAgent=e} method startSession (line 1322) | async startSession(e,r){try{let{apiKey:n,model:i,siteUrl:s,appName:o}=th... method estimateTokens (line 1322) | estimateTokens(e){return Math.ceil(e.length/Vhe)} method truncateHistory (line 1322) | truncateHistory(e){let r=Ee.loadFromFile(Ft),n=parseInt(r.CLAUDE_MEM_OPE... method conversationToOpenAIMessages (line 1322) | conversationToOpenAIMessages(e){return e.map(r=>({role:r.role==="assista... method queryOpenRouterMultiTurn (line 1322) | async queryOpenRouterMultiTurn(e,r,n,i,s){let o=this.truncateHistory(e),... method getOpenRouterConfig (line 1322) | getOpenRouterConfig(){let e=Ft,r=Ee.loadFromFile(e),n=r.CLAUDE_MEM_OPENR... function Vo (line 1322) | function Vo(){let t=Ft;return!!(Ee.loadFromFile(t).CLAUDE_MEM_OPENROUTER... function eu (line 1322) | function eu(){let t=Ft;return Ee.loadFromFile(t).CLAUDE_MEM_PROVIDER==="... method constructor (line 1322) | constructor(e){this.dbManager=e} method stripProjectPath (line 1322) | stripProjectPath(e,r){let n=`/${r}/`,i=e.indexOf(n);return i!==-1?e.subs... method stripProjectPaths (line 1322) | stripProjectPaths(e,r){if(!e)return e;try{let i=JSON.parse(e).map(s=>thi... method sanitizeObservation (line 1322) | sanitizeObservation(e){return{...e,files_read:this.stripProjectPaths(e.f... method getObservations (line 1322) | getObservations(e,r,n){let i=this.paginate("observations","id, memory_se... method getSummaries (line 1322) | getSummaries(e,r,n){let i=this.dbManager.getSessionStore().db,s=` method getPrompts (line 1336) | getPrompts(e,r,n){let i=this.dbManager.getSessionStore().db,s=` method paginate (line 1340) | paginate(e,r,n,i,s){let o=this.dbManager.getSessionStore().db,a=`SELECT ... method constructor (line 1340) | constructor(e){this.dbManager=e} method getSettings (line 1340) | getSettings(){let e=this.dbManager.getSessionStore().db;try{let n=e.prep... method updateSettings (line 1340) | updateSettings(e){let n=this.dbManager.getSessionStore().db.prepare(` method emptyResult (line 1343) | emptyResult(e){return{results:{observations:[],sessions:[],prompts:[]},u... method constructor (line 1343) | constructor(r,n){super();this.chromaSync=r;this.sessionStore=n} method canHandle (line 1343) | canHandle(r){return!!r.query&&!!this.chromaSync} method search (line 1343) | async search(r){let{query:n,searchType:i="all",obsType:s,concepts:o,file... method buildWhereFilter (line 1343) | buildWhereFilter(r,n){let i;switch(r){case"observations":i={doc_type:"ob... method filterByRecency (line 1343) | filterByRecency(r){let n=Date.now()-Mt.RECENCY_WINDOW_MS,i=new Map;for(l... method categorizeByDocType (line 1343) | categorizeByDocType(r,n){let i=[],s=[],o=[];for(let a of r){let c=a.meta... method constructor (line 1343) | constructor(r){super();this.sessionSearch=r} method canHandle (line 1343) | canHandle(r){return!r.query||r.strategyHint==="sqlite"} method search (line 1343) | async search(r){let{searchType:n="all",obsType:i,concepts:s,files:o,limi... method findByConcept (line 1343) | findByConcept(r,n){let{limit:i=Mt.DEFAULT_LIMIT,project:s,dateRange:o,or... method findByType (line 1343) | findByType(r,n){let{limit:i=Mt.DEFAULT_LIMIT,project:s,dateRange:o,order... method findByFile (line 1343) | findByFile(r,n){let{limit:i=Mt.DEFAULT_LIMIT,project:s,dateRange:o,order... method constructor (line 1343) | constructor(r,n,i){super();this.chromaSync=r;this.sessionStore=n;this.se... method canHandle (line 1343) | canHandle(r){return!!this.chromaSync&&(!!r.concepts||!!r.files||!!r.type... method search (line 1343) | async search(r){let{query:n,limit:i=Mt.DEFAULT_LIMIT,project:s}=r;return... method findByConcept (line 1343) | async findByConcept(r,n){let{limit:i=Mt.DEFAULT_LIMIT,project:s,dateRang... method findByType (line 1343) | async findByType(r,n){let{limit:i=Mt.DEFAULT_LIMIT,project:s,dateRange:o... method findByFile (line 1343) | async findByFile(r,n){let{limit:i=Mt.DEFAULT_LIMIT,project:s,dateRange:o... method intersectWithRanking (line 1343) | intersectWithRanking(r,n){let i=new Set(r),s=[];for(let o of n)i.has(o)&... method formatSearchResults (line 1343) | formatSearchResults(e,r,n=!1){let i=e.observations.length+e.sessions.len... method combineResults (line 1344) | combineResults(e){return[...e.observations.map(r=>({type:"observation",d... method formatSearchTableHeader (line 1344) | formatSearchTableHeader(){return`| ID | Time | T | Title | Read | method formatTableHeader (line 1345) | formatTableHeader(){return`| ID | Time | T | Title | Read | Work | method formatObservationSearchRow (line 1346) | formatObservationSearchRow(e,r){let n=`#${e.id}`,i=lr(e.created_at_epoch... method formatSessionSearchRow (line 1346) | formatSessionSearchRow(e,r){let n=`#S${e.id}`,i=lr(e.created_at_epoch),s... method formatPromptSearchRow (line 1346) | formatPromptSearchRow(e,r){let n=`#P${e.id}`,i=lr(e.created_at_epoch),s=... method formatObservationIndex (line 1346) | formatObservationIndex(e,r){let n=`#${e.id}`,i=lr(e.created_at_epoch),s=... method formatSessionIndex (line 1346) | formatSessionIndex(e,r){let n=`#S${e.id}`,i=lr(e.created_at_epoch),s="\u... method formatPromptIndex (line 1346) | formatPromptIndex(e,r){let n=`#P${e.id}`,i=lr(e.created_at_epoch),s="\u{... method estimateReadTokens (line 1346) | estimateReadTokens(e){let r=(e.title?.length||0)+(e.subtitle?.length||0)... method formatChromaFailureMessage (line 1346) | formatChromaFailureMessage(){return`Vector search failed - semantic sear... method formatSearchTips (line 1352) | formatSearchTips(){return` method buildTimeline (line 1362) | buildTimeline(e){let r=[...e.observations.map(n=>({type:"observation",da... method filterByDepth (line 1362) | filterByDepth(e,r,n,i,s){if(e.length===0)return e;let o=this.findAnchorI... method findAnchorIndex (line 1362) | findAnchorIndex(e,r,n){if(typeof r=="number")return e.findIndex(s=>s.typ... method formatTimeline (line 1362) | formatTimeline(e,r,n={}){let{query:i,depthBefore:s,depthAfter:o,cwd:a=pr... method groupByDay (line 1363) | groupByDay(e){let r=new Map;for(let n of e){let i=ns(n.epoch);r.has(i)||... method sortDaysChronologically (line 1363) | sortDaysChronologically(e){return Array.from(e.entries()).sort((r,n)=>{l... method isAnchorItem (line 1363) | isAnchorItem(e,r){return r===null?!1:typeof r=="number"&&e.type==="obser... method constructor (line 1363) | constructor(e,r,n){this.sessionSearch=e;this.sessionStore=r;this.chromaS... method search (line 1363) | async search(e){let r=this.normalizeParams(e);return await this.executeW... method executeWithFallback (line 1363) | async executeWithFallback(e){if(!e.query)return y.debug("SEARCH","Orches... method findByConcept (line 1363) | async findByConcept(e,r){let n=this.normalizeParams(r);return this.hybri... method findByType (line 1363) | async findByType(e,r){let n=this.normalizeParams(r);return this.hybridSt... method findByFile (line 1363) | async findByFile(e,r){let n=this.normalizeParams(r);return this.hybridSt... method getTimeline (line 1363) | getTimeline(e,r,n,i,s){let o=this.timelineBuilder.buildTimeline(e);retur... method formatTimeline (line 1363) | formatTimeline(e,r,n={}){return this.timelineBuilder.formatTimeline(e,r,n)} method formatSearchResults (line 1363) | formatSearchResults(e,r,n=!1){return this.resultFormatter.formatSearchRe... method getFormatter (line 1363) | getFormatter(){return this.resultFormatter} method getTimelineBuilder (line 1363) | getTimelineBuilder(){return this.timelineBuilder} method normalizeParams (line 1363) | normalizeParams(e){let r={...e};return r.concepts&&typeof r.concepts=="s... method isChromaAvailable (line 1363) | isChromaAvailable(){return!!this.chromaSync} method constructor (line 1363) | constructor(e,r,n,i,s){this.sessionSearch=e;this.sessionStore=r;this.chr... method queryChroma (line 1363) | async queryChroma(e,r,n){return this.chromaSync?await this.chromaSync.qu... method normalizeParams (line 1363) | normalizeParams(e){let r={...e};return r.filePath&&!r.files&&(r.files=r.... method search (line 1363) | async search(e){let r=this.normalizeParams(e),{query:n,type:i,obs_type:s... method timeline (line 1370) | async timeline(e){let{anchor:r,query:n,depth_before:i=10,depth_after:s=1... method decisions (line 1371) | async decisions(e){let r=this.normalizeParams(e),{query:n,...i}=r,s=[];i... method changes (line 1375) | async changes(e){let r=this.normalizeParams(e),{...n}=r,i=[];if(this.chr... method howItWorks (line 1379) | async howItWorks(e){let r=this.normalizeParams(e),{...n}=r,i=[];if(this.... method searchObservations (line 1383) | async searchObservations(e){let r=this.normalizeParams(e),{query:n,...i}... method searchSessions (line 1387) | async searchSessions(e){let r=this.normalizeParams(e),{query:n,...i}=r,s... method searchUserPrompts (line 1391) | async searchUserPrompts(e){let r=this.normalizeParams(e),{query:n,...i}=... method findByConcept (line 1395) | async findByConcept(e){let r=this.normalizeParams(e),{concepts:n,...i}=r... method findByFile (line 1399) | async findByFile(e){let r=this.normalizeParams(e),{files:n,...i}=r,s=Arr... method findByType (line 1400) | async findByType(e){let r=this.normalizeParams(e),{type:n,...i}=r,s=Arra... method getRecentContext (line 1404) | async getRecentContext(e){let r=e.project||(0,sq.basename)(process.cwd()... method getContextTimeline (line 1407) | async getContextTimeline(e){let{anchor:r,depth_before:n=10,depth_after:i... method getTimelineByQuery (line 1408) | async getTimelineByQuery(e){let{query:r,mode:n="auto",depth_before:i=10,... method formatSearchTips (line 1410) | formatSearchTips(){return` method formatTime (line 1420) | formatTime(e){return new Date(e).toLocaleString("en-US",{hour:"numeric",... method estimateReadTokens (line 1420) | estimateReadTokens(e){let r=(e.title?.length||0)+(e.subtitle?.length||0)... method formatObservationIndex (line 1420) | formatObservationIndex(e,r){let n=`#${e.id}`,i=this.formatTime(e.created... method formatSessionIndex (line 1420) | formatSessionIndex(e,r){let n=`#S${e.id}`,i=this.formatTime(e.created_at... method formatUserPromptIndex (line 1420) | formatUserPromptIndex(e,r){let n=`#P${e.id}`,i=this.formatTime(e.created... method formatTableHeader (line 1420) | formatTableHeader(){return`| ID | Time | T | Title | Read | Work | method formatSearchTableHeader (line 1421) | formatSearchTableHeader(){return`| ID | Time | T | Title | Read | method formatObservationSearchRow (line 1422) | formatObservationSearchRow(e,r){let n=`#${e.id}`,i=this.formatTime(e.cre... method formatSessionSearchRow (line 1422) | formatSessionSearchRow(e,r){let n=`#S${e.id}`,i=this.formatTime(e.create... method formatUserPromptSearchRow (line 1422) | formatUserPromptSearchRow(e,r){let n=`#P${e.id}`,i=this.formatTime(e.cre... method buildTimeline (line 1422) | buildTimeline(e){let r=[...e.observations.map(n=>({type:"observation",da... method filterByDepth (line 1422) | filterByDepth(e,r,n,i,s){if(e.length===0)return e;let o=-1;if(typeof r==... method formatTimeline (line 1422) | formatTimeline(e,r,n,i,s){if(e.length===0)return n?`Found observation ma... method getTypeIcon (line 1423) | getTypeIcon(e){return Fe.getInstance().getTypeIcon(e)} method formatDate (line 1423) | formatDate(e){return new Date(e).toLocaleString("en-US",{month:"short",d... method formatTime (line 1423) | formatTime(e){return new Date(e).toLocaleString("en-US",{hour:"numeric",... method formatDateTime (line 1423) | formatDateTime(e){return new Date(e).toLocaleString("en-US",{month:"shor... method estimateTokens (line 1423) | estimateTokens(e){return e?Math.ceil(e.length/4):0} method constructor (line 1423) | constructor(e,r){this.sseBroadcaster=e;this.workerService=r} method broadcastNewPrompt (line 1423) | broadcastNewPrompt(e){this.sseBroadcaster.broadcast({type:"new_prompt",p... method broadcastSessionStarted (line 1423) | broadcastSessionStarted(e,r){this.sseBroadcaster.broadcast({type:"sessio... method broadcastObservationQueued (line 1423) | broadcastObservationQueued(e){this.sseBroadcaster.broadcast({type:"obser... method broadcastSessionCompleted (line 1423) | broadcastSessionCompleted(e){this.sseBroadcaster.broadcast({type:"sessio... method broadcastSummarizeQueued (line 1423) | broadcastSummarizeQueued(){this.workerService.broadcastProcessingStatus()} method wrapHandler (line 1423) | wrapHandler(e){return(r,n)=>{try{let i=e(r,n);i instanceof Promise&&i.ca... method parseIntParam (line 1423) | parseIntParam(e,r,n){let i=parseInt(e.params[n],10);return isNaN(i)?(thi... method validateRequired (line 1423) | validateRequired(e,r,n){for(let i of n)if(e.body[i]===void 0||e.body[i]=... method badRequest (line 1423) | badRequest(e,r){e.status(400).json({error:r})} method notFound (line 1423) | notFound(e,r){e.status(404).json({error:r})} method handleError (line 1423) | handleError(e,r,n){y.failure("WORKER",n||"Request failed",{},r),e.header... method constructor (line 1423) | constructor(r,n,i){super();this.sseBroadcaster=r;this.dbManager=n;this.s... method setupRoutes (line 1423) | setupRoutes(r){let n=Qr();r.use(oq.default.static(Jg.default.join(n,"ui"... function Khe (line 1423) | function Khe(t){let e=(t.match(//g)||[]).length,r=(t.match(/aq&&y.warn("SYSTEM","tag count exce... function n$ (line 1423) | function n$(t){return cq(t)} function uq (line 1423) | function uq(t){return cq(t)} method constructor (line 1423) | constructor(e,r){this.sessionManager=e;this.eventBroadcaster=r} method completeByDbId (line 1423) | async completeByDbId(e){await this.sessionManager.deleteSession(e),this.... method checkUserPromptPrivacy (line 1423) | static checkUserPromptPrivacy(e,r,n,i,s,o){let a=e.getUserPrompt(r,n);re... method constructor (line 1423) | constructor(r,n,i,s,o,a,c){super();this.sessionManager=r;this.dbManager=... method getActiveAgent (line 1423) | getActiveAgent(){if(eu()){if(Vo())return y.debug("SESSION","Using OpenRo... method getSelectedProvider (line 1423) | getSelectedProvider(){return eu()&&Vo()?"openrouter":Qc()&&Bo()?"gemini"... method ensureGeneratorRunning (line 1423) | ensureGeneratorRunning(r,n){let i=this.sessionManager.getSession(r);if(!... method startGeneratorWithProvider (line 1423) | startGeneratorWithProvider(r,n,i){if(!r)return;r.abortController.signal.... method setupRoutes (line 1423) | setupRoutes(r){r.post("/sessions/:sessionDbId/init",this.handleSessionIn... method constructor (line 1423) | constructor(r,n,i,s,o,a){super();this.paginationHelper=r;this.dbManager=... method setupRoutes (line 1423) | setupRoutes(r){r.get("/api/observations",this.handleGetObservations.bind... method parsePaginationParams (line 1429) | parsePaginationParams(r){let n=parseInt(r.query.offset,10)||0,i=Math.min... method constructor (line 1429) | constructor(r){super();this.searchManager=r} method setupRoutes (line 1429) | setupRoutes(r){r.get("/api/search",this.handleUnifiedSearch.bind(this)),... function y$ (line 1429) | function y$(t){return!t||typeof t!="string"?!1:/^[a-zA-Z0-9][a-zA-Z0-9._... function Un (line 1429) | function Un(t){let e=(0,_$.spawnSync)("git",t,{cwd:xp,encoding:"utf-8",t... function m9 (line 1429) | function m9(t,e=b$){let n=process.platform==="win32"?"npm.cmd":"npm",i=(... function dv (line 1429) | function dv(){let t=(0,lv.join)(xp,".git");if(!(0,Ko.existsSync)(t))retu... function f9 (line 1429) | async function f9(t){if(!y$(t))return{success:!1,error:`Invalid branch n... function h9 (line 1429) | async function h9(){let t=dv();if(!t.isGitRepo||!t.branch)return{success... method constructor (line 1429) | constructor(r){super();this.settingsManager=r} method setupRoutes (line 1429) | setupRoutes(r){r.get("/api/settings",this.handleGetSettings.bind(this)),... method validateSettings (line 1429) | validateSettings(r){if(r.CLAUDE_MEM_PROVIDER&&!["claude","gemini","openr... method isMcpEnabled (line 1429) | isMcpEnabled(){let r=Qr(),n=Jo.default.join(r,"plugin",".mcp.json");retu... method toggleMcp (line 1429) | toggleMcp(r){let n=Qr(),i=Jo.default.join(n,"plugin",".mcp.json"),s=Jo.d... method ensureSettingsFile (line 1429) | ensureSettingsFile(r){if(!(0,xr.existsSync)(r)){let n=Ee.getAllDefaults(... function cge (line 1429) | function cge(t,e){let r=(0,xn.openSync)(t,"r");try{let i=(0,xn.fstatSync... method getLogFilePath (line 1432) | getLogFilePath(){let e=Ee.get("CLAUDE_MEM_DATA_DIR"),r=(0,mv.join)(e,"lo... method getLogsDir (line 1432) | getLogsDir(){let e=Ee.get("CLAUDE_MEM_DATA_DIR");return(0,mv.join)(e,"lo... method setupRoutes (line 1432) | setupRoutes(e){e.get("/api/logs",this.handleGetLogs.bind(this)),e.post("... method constructor (line 1433) | constructor(r,n){super();this.dbManager=r;this.defaultProject=n} method setupRoutes (line 1433) | setupRoutes(r){r.post("/api/memory/save",this.handleSaveMemory.bind(this))} function F$ (line 1433) | function F$(){return q$.default.join(Ee.get("CLAUDE_MEM_DATA_DIR"),".wor... function Oge (line 1433) | function Oge(){if(process.platform!=="win32")return!1;let t=F$();if(!(0,... function Pge (line 1433) | function Pge(){if(process.platform==="win32")try{(0,ms.writeFileSync)(F$... function Cge (line 1433) | function Cge(){if(process.platform==="win32")try{let t=F$();(0,ms.exists... function F9 (line 1433) | function F9(t,e){return{continue:!0,suppressOutput:!0,status:t,...e&&{me... method constructor (line 1433) | constructor(){this.initializationComplete=new Promise(e=>{this.resolveIn... method registerSignalHandlers (line 1433) | registerSignalHandlers(){wA(async()=>{this.isShuttingDown=!0,await this.... method registerRoutes (line 1433) | registerRoutes(){this.server.app.get("/api/context/inject",async(e,r,n)=... method start (line 1433) | async start(){let e=Ur(),r=O0();await xA(),await this.server.listen(e,r)... method initializeBackground (line 1433) | async initializeBackground(){try{await MA();let{ModeManager:e}=await Pro... method getActiveAgent (line 1433) | getActiveAgent(){return eu()&&Vo()?this.openRouterAgent:Qc()&&Bo()?this.... method startSessionProcessor (line 1433) | startSessionProcessor(e,r){if(!e)return;let n=e.sessionDbId,i=this.getAc... method isSessionTerminatedError (line 1433) | isSessionTerminatedError(e){let n=(e instanceof Error?e.message:String(e... method runFallbackForTerminatedSession (line 1433) | async runFallbackForTerminatedSession(e,r){if(!e)return;let n=e.sessionD... method terminateSession (line 1433) | terminateSession(e,r){let i=this.sessionManager.getPendingMessageStore()... method processPendingQueues (line 1433) | async processPendingQueues(e=10){let{PendingMessageStore:r}=await Promis... method shutdown (line 1445) | async shutdown(){this.stopOrphanReaper&&(this.stopOrphanReaper(),this.st... method broadcastProcessingStatus (line 1445) | broadcastProcessingStatus(){let e=this.sessionManager.getTotalActiveWork... function q9 (line 1445) | async function q9(t){if(UA()==="alive")return y.info("SYSTEM","Worker PI... function Nge (line 1445) | async function Nge(){let t=process.argv[2];(["start","hook","restart","-... FILE: plugin/scripts/worker-wrapper.cjs function r (line 2) | function r(e){let i=new Date().toISOString();console.log(`[${i}] [wrappe... function h (line 2) | function h(){r(`Spawning inner worker: ${l}`),t=(0,c.spawn)(process.exec... function d (line 2) | async function d(){if(!t||!t.pid){r("No inner process to kill");return}l... function S (line 2) | async function S(e,i){let n=Date.now();for(;Date.now()-n>>1,o=e... function ft (line 1) | function ft(e){return e.length===0?null:e[0]} function Qo (line 1) | function Qo(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t... function Ko (line 1) | function Ko(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id} function $i (line 1) | function $i(e){for(var t=ft(Yt);t!==null;){if(t.callback===null)Qo(Yt);e... function Ki (line 1) | function Ki(e){if(br=!1,$i(e),!Mn)if(ft(Tt)!==null)Mn=!0,Qi(Yi);else{var... function Yi (line 1) | function Yi(e,t){Mn=!1,br&&(br=!1,ic(Hr),Hr=-1),Zo=!0;var n=Ne;try{for($... function uc (line 1) | function uc(){return!($.unstable_now()-ac"u"||yg(e,t,n,r))return!0;if(... function Re (line 1) | function Re(e,t,n,r,o,l,i){this.acceptsBooleans=t===2||t===3||t===4,this... function ma (line 1) | function ma(e){return e[1].toUpperCase()} function ga (line 1) | function ga(e,t,n,r){var o=Te.hasOwnProperty(t)?Te[t]:null;(o!==null?o.t... function jr (line 1) | function jr(e){return e===null||typeof e!="object"?null:(e=gc&&e[gc]||e[... function Kr (line 1) | function Kr(e){if(Ji===void 0)try{throw Error()}catch(n){var t=n.stack.t... function ts (line 2) | function ts(e,t){if(!e||es)return"";es=!0;var n=Error.prepareStackTrace;... function Sg (line 5) | function Sg(e){switch(e.tag){case 5:return Kr(e.type);case 16:return Kr(... function ks (line 5) | function ks(e){if(e==null)return null;if(typeof e=="function")return e.d... function _g (line 5) | function _g(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:r... function pn (line 5) | function pn(e){switch(typeof e){case"boolean":case"number":case"string":... function Cf (line 5) | function Cf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="inp... function wg (line 5) | function wg(e){var t=Cf(e)?"checked":"value",n=Object.getOwnPropertyDesc... function tl (line 5) | function tl(e){e._valueTracker||(e._valueTracker=wg(e))} function kf (line 5) | function kf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n... function Ml (line 5) | function Ml(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u... function Ls (line 5) | function Ls(e,t){var n=t.checked;return le({},t,{defaultChecked:void 0,d... function hc (line 5) | function hc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checke... function Lf (line 5) | function Lf(e,t){t=t.checked,t!=null&&ga(e,"checked",t,!1)} function Ns (line 5) | function Ns(e,t){Lf(e,t);var n=pn(t.value),r=t.type;if(n!=null)r==="numb... function vc (line 5) | function vc(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defau... function As (line 5) | function As(e,t,n){(t!=="number"||Ml(e.ownerDocument)!==e)&&(n==null?e.d... function mr (line 5) | function mr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o>>=0,e===0?32:31-(Ug(e)/Rg|0)|0} function Qr (line 5) | function Qr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:retur... function Pl (line 5) | function Pl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.susp... function zg (line 5) | function zg(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case... function bg (line 5) | function bg(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirati... function Fs (line 5) | function Fs(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?... function qf (line 5) | function qf(){var e=rl;return rl<<=1,(rl&4194240)===0&&(rl=64),e} function rs (line 5) | function rs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t} function Lo (line 5) | function Lo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,... function Hg (line 5) | function Hg(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLan... function _a (line 5) | function _a(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var... function Wf (line 5) | function Wf(e){return e&=-e,1ar||(e.current=Xs[ar],Xs[ar]=null,ar--)} function K (line 6) | function K(e,t){ar++,Xs[ar]=e.current,e.current=t} function _r (line 6) | function _r(e,t){var n=e.type.contextTypes;if(!n)return mn;var r=e.state... function We (line 6) | function We(e){return e=e.childContextTypes,e!=null} function zl (line 6) | function zl(){Q(qe),Q(Oe)} function Wc (line 6) | function Wc(e,t,n){if(Oe.current!==mn)throw Error(w(168));K(Oe,t),K(qe,n)} function md (line 6) | function md(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.g... function bl (line 6) | function bl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMerged... function Vc (line 6) | function Vc(e,t,n){var r=e.stateNode;if(!r)throw Error(w(169));n?(e=md(e... function gd (line 6) | function gd(e){Ft===null?Ft=[e]:Ft.push(e)} function Rh (line 6) | function Rh(e){oi=!0,gd(e)} function vn (line 6) | function vn(){if(!ds&&Ft!==null){ds=!0;var e=0,t=q;try{var n=Ft;for(q=1;... function xn (line 6) | function xn(e,t){ur[cr++]=jl,ur[cr++]=Hl,Hl=e,jl=t} function hd (line 6) | function hd(e,t,n){ot[lt++]=zt,ot[lt++]=bt,ot[lt++]=zn,zn=e;var r=zt;e=b... function Ma (line 6) | function Ma(e){e.return!==null&&(xn(e,1),hd(e,1,0))} function xa (line 6) | function xa(e){for(;e===Hl;)Hl=ur[--cr],ur[cr]=null,jl=ur[--cr],ur[cr]=n... function vd (line 6) | function vd(e,t){var n=it(5,null,null,0);n.elementType="DELETED",n.state... function Gc (line 6) | function Gc(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!=... function $s (line 6) | function $s(e){return(e.mode&1)!==0&&(e.flags&128)===0} function Ks (line 6) | function Ks(e){if(ne){var t=Ke;if(t){var n=t;if(!Gc(e,t)){if($s(e))throw... function Xc (line 6) | function Xc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13... function ml (line 6) | function ml(e){if(e!==Ye)return!1;if(!ne)return Xc(e),ne=!0,!1;var t;if(... function yd (line 6) | function yd(){for(var e=Ke;e;)e=an(e.nextSibling)} function wr (line 6) | function wr(){Ke=Ye=null,ne=!1} function Oa (line 6) | function Oa(e){gt===null?gt=[e]:gt.push(e)} function Vr (line 6) | function Vr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!=... function gl (line 6) | function gl(e,t){throw e=Object.prototype.toString.call(t),Error(w(31,e=... function $c (line 6) | function $c(e){var t=e._init;return t(e._payload)} function Ed (line 6) | function Ed(e){function t(c,f){if(e){var p=c.deletions;p===null?(c.delet... function Pa (line 6) | function Pa(){Da=fr=ql=null} function Ia (line 6) | function Ia(e){var t=Bl.current;Q(Bl),e._currentValue=t} function Ys (line 6) | function Ys(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)... function yr (line 6) | function yr(e,t){ql=e,Da=fr=null,e=e.dependencies,e!==null&&e.firstConte... function at (line 6) | function at(e){var t=e._currentValue;if(Da!==e)if(e={context:e,memoizedV... function Ua (line 6) | function Ua(e){Pn===null?Pn=[e]:Pn.push(e)} function _d (line 6) | function _d(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ua(t)... function qt (line 6) | function qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t)... function Ra (line 6) | function Ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:... function wd (line 6) | function wd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={base... function Ht (line 6) | function Ht(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:n... function un (line 6) | function un(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.sh... function wl (line 6) | function wl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!... function Kc (line 6) | function Kc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.upd... function Wl (line 6) | function Wl(e,t,n,r){var o=e.updateQueue;Jt=!1;var l=o.firstBaseUpdate,i... function Yc (line 6) | function Yc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ms.transition;ms.t... function bd (line 6) | function bd(){return ut().memoizedState} function Hh (line 6) | function Hh(e,t,n){var r=fn(e);if(n={lane:r,action:n,hasEagerState:!1,ea... function jh (line 6) | function jh(e,t,n){var r=fn(e),o={lane:r,action:n,hasEagerState:!1,eager... function Hd (line 6) | function Hd(e){var t=e.alternate;return e===oe||t!==null&&t===oe} function jd (line 6) | function jd(e,t){oo=Gl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.ne... function Bd (line 6) | function Bd(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n... function pt (line 6) | function pt(e,t){if(e&&e.defaultProps){t=le({},t),e=e.defaultProps;for(v... function Qs (line 6) | function Qs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:le({},t,n),e... function Jc (line 6) | function Jc(e,t,n,r,o,l,i){return e=e.stateNode,typeof e.shouldComponent... function qd (line 6) | function qd(e,t,n){var r=!1,o=mn,l=t.contextType;return typeof l=="objec... function ef (line 6) | function ef(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="func... function Zs (line 6) | function Zs(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState... function kr (line 6) | function kr(e,t){try{var n="",r=t;do n+=Sg(r),r=r.return;while(r);var o=... function vs (line 8) | function vs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??nu... function Js (line 8) | function Js(e,t){try{console.error(t.value)}catch(n){setTimeout(function... function Wd (line 8) | function Wd(e,t,n){n=Ht(-1,n),n.tag=3,n.payload={element:null};var r=t.v... function Vd (line 8) | function Vd(e,t,n){n=Ht(-1,n),n.tag=3;var r=e.type.getDerivedStateFromEr... function tf (line 8) | function tf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Vh;v... function nf (line 8) | function nf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null... function rf (line 8) | function rf(e,t,n,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.fla... function Ie (line 8) | function Ie(e,t,n,r){t.child=e===null?Sd(t,null,n,r):Tr(t,e.child,n,r)} function of (line 8) | function of(e,t,n,r,o){n=n.render;var l=t.ref;return yr(t,o),r=ja(e,t,n,... function lf (line 8) | function lf(e,t,n,r,o){if(e===null){var l=n.type;return typeof l=="funct... function Gd (line 8) | function Gd(e,t,n,r,o){if(e!==null){var l=e.memoizedProps;if(ho(l,r)&&e.... function Xd (line 8) | function Xd(e,t,n){var r=t.pendingProps,o=r.children,l=e!==null?e.memoiz... function $d (line 8) | function $d(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&... function ea (line 8) | function ea(e,t,n,r,o){var l=We(n)?Fn:Oe.current;return l=_r(t,l),yr(t,o... function sf (line 8) | function sf(e,t,n,r,o){if(We(n)){var l=!0;bl(t)}else l=!1;if(yr(t,o),t.s... function ta (line 8) | function ta(e,t,n,r,o,l){$d(e,t);var i=(t.flags&128)!==0;if(!r&&!i)retur... function Kd (line 8) | function Kd(e){var t=e.stateNode;t.pendingContext?Wc(e,t.pendingContext,... function af (line 8) | function af(e,t,n,r,o){return wr(),Oa(o),t.flags|=256,Ie(e,t,n,r),t.child} function ra (line 8) | function ra(e){return{baseLanes:e,cachePool:null,transitions:null}} function Yd (line 8) | function Yd(e,t,n){var r=t.pendingProps,o=re.current,l=!1,i=(t.flags&128... function Va (line 8) | function Va(e,t){return t=ui({mode:"visible",children:t},e.mode,0,null),... function hl (line 8) | function hl(e,t,n,r){return r!==null&&Oa(r),Tr(t,e.child,null,n),e=Va(t,... function Xh (line 8) | function Xh(e,t,n,r,o,l,i){if(n)return t.flags&256?(t.flags&=-257,r=vs(E... function uf (line 8) | function uf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Y... function ys (line 8) | function ys(e,t,n,r,o){var l=e.memoizedState;l===null?e.memoizedState={i... function Qd (line 8) | function Qd(e,t,n){var r=t.pendingProps,o=r.revealOrder,l=r.tail;if(Ie(e... function kl (line 8) | function kl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate... function Wt (line 8) | function Wt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Hn|=t.la... function $h (line 8) | function $h(e,t,n){switch(t.tag){case 3:Kd(t),wr();break;case 5:Td(t);br... function Gr (line 8) | function Gr(e,t){if(!ne)switch(e.tailMode){case"hidden":t=e.tail;for(var... function Me (line 8) | function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0... function Kh (line 8) | function Kh(e,t,n){var r=t.pendingProps;switch(xa(t),t.tag){case 2:case ... function Yh (line 8) | function Yh(e,t){switch(xa(t),t.tag){case 1:return We(t.type)&&zl(),e=t.... function dr (line 8) | function dr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(n... function la (line 8) | function la(e,t,n){try{n()}catch(r){se(e,t,r)}} function Zh (line 8) | function Zh(e,t){if(Bs=Il,e=ld(),Aa(e)){if("selectionStart"in e)var n={s... function lo (line 8) | function lo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r... function si (line 8) | function si(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==nul... function ia (line 8) | function ia(e){var t=e.ref;if(t!==null){var n=e.stateNode;e.tag,e=n,type... function tp (line 8) | function tp(e){var t=e.alternate;t!==null&&(e.alternate=null,tp(t)),e.ch... function np (line 8) | function np(e){return e.tag===5||e.tag===3||e.tag===4} function ff (line 8) | function ff(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||np(... function sa (line 8) | function sa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeTyp... function aa (line 8) | function aa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertB... function Qt (line 8) | function Qt(e,t,n){for(n=n.child;n!==null;)rp(e,t,n),n=n.sibling} function rp (line 8) | function rp(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try... function df (line 8) | function df(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n... function dt (line 8) | function dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r"u"||typeof __R... function wv (line 9) | function wv(e){return e>=55296&&e<=57343||e>1114111?"\uFFFD":(e in Fp.de... function jp (line 9) | function jp(e){var t=Bp(e);return function(n){return String(n).replace(k... function i (line 9) | function i(s){return s.substr(-1)!==";"&&(s+=";"),l(s)} function Bp (line 9) | function Bp(e){return function(n){if(n.charAt(1)==="#"){var r=n.charAt(2... function Gp (line 9) | function Gp(e){return Object.keys(e).sort().reduce(function(t,n){return ... function Xp (line 9) | function Xp(e){for(var t=[],n=[],r=0,o=Object.keys(e);r1?Mv(e):e.charCodeAt(0)).toString(1... function xv (line 9) | function xv(e,t){return function(n){return n.replace(t,function(r){retur... function Ov (line 9) | function Ov(e){return e.replace(Kp,gi)} function Dv (line 9) | function Dv(e){return e.replace(Vp,gi)} function Yp (line 9) | function Yp(e){return function(t){return t.replace(Kp,function(n){return... function Pv (line 9) | function Pv(e,t){return(!t||t<=0?hi.decodeXML:hi.decodeHTML)(e)} function Iv (line 9) | function Iv(e,t){return(!t||t<=0?hi.decodeXML:hi.decodeHTMLStrict)(e)} function Uv (line 9) | function Uv(e,t){return(!t||t<=0?Qp.encodeXML:Qp.encodeHTML)(e)} function Rv (line 9) | function Rv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a... function Jp (line 9) | function Jp(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new A... function Hv (line 10) | function Hv(){var e={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0... function jv (line 10) | function jv(e,t,n,r){var o=16+e*36+t*6+n,l=e>0?e*40+55:0,i=t>0?t*40+55:0... function im (line 10) | function im(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t} function Bv (line 10) | function Bv(e){var t=[],n=lm(e),r;try{for(n.s();!(r=n.n()).done;){var o=... function nm (line 10) | function nm(e,t,n,r){var o;return t==="text"?o=Gv(n,r):t==="display"?o=W... function qv (line 10) | function qv(e,t){t=t.substring(2).slice(0,-1);var n=+t.substr(0,2),r=t.s... function Wv (line 10) | function Wv(e,t,n){t=parseInt(t,10);var r={"-1":function(){return"
"... function sm (line 10) | function sm(e){var t=e.slice(0);return e.length=0,t.reverse().map(functi... function vi (line 10) | function vi(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n} function Vv (line 10) | function Vv(e){return function(t){return(e===null||t.category!==e)&&e!==... function rm (line 10) | function rm(e){e=parseInt(e,10);var t=null;return e===0?t="all":e===1?t=... function Gv (line 10) | function Gv(e,t){return t.escapeXML?bv.encodeXML(e):e} function wn (line 10) | function wn(e,t,n){return n||(n=""),e.push(t),"<".concat(t).concat(n?' s... function yi (line 10) | function yi(e,t){return wn(e,"span",t)} function Ei (line 10) | function Ei(e,t){return wn(e,"span","color:"+t)} function Si (line 10) | function Si(e,t){return wn(e,"span","background-color:"+t)} function om (line 10) | function om(e,t){var n;if(e.slice(-1)[0]===t&&(n=e.pop()),n)return"{let l=["system","... function Cp (line 10) | function Cp(e,t){let[n,r]=(0,yn.useState)(null),[o,l]=(0,yn.useState)(!0... function kp (line 10) | function kp(e){return e<1e3?e.toString():e<1e6?`${(e/1e3).toFixed(1)}k`:... function Lp (line 10) | function Lp({username:e,repo:t,className:n=""}){let{stars:r,isLoading:o,... function Np (line 10) | function Np(e){let t=(0,En.useRef)(null),n=(0,En.useRef)(null),r=(0,En.u... function Ap (line 10) | function Ap({isConnected:e,projects:t,currentFilter:n,onFilterChange:r,i... function Mr (line 10) | function Mr(e){return new Date(e).toLocaleString()} function Mp (line 10) | function Mp(e){let t=["/Scripts/","/src/","/plugin/","/docs/"];for(let o... function xp (line 10) | function xp({observation:e}){let[t,n]=(0,z.useState)(!1),[r,o]=(0,z.useS... function Op (line 10) | function Op({summary:e}){let t=Mr(e.created_at_epoch),n=[{key:"investiga... function Dp (line 10) | function Dp({prompt:e}){let t=Mr(e.created_at_epoch);return Gt.default.c... function Pp (line 10) | function Pp({targetRef:e}){let[t,n]=(0,Sn.useState)(!1);(0,Sn.useEffect)... function Ip (line 10) | function Ip({observations:e,summaries:t,prompts:n,onLoadMore:r,isLoading... function be (line 10) | function be(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);f... function r0 (line 10) | function r0(e){return function(){for(var t=arguments.length,n=new Array(... function R (line 10) | function R(e,t){let n=arguments.length>2&&arguments[2]!==void 0?argument... function o0 (line 10) | function o0(e){for(let t=0;t0&&arguments[0]!==void 0?arguments[... function Cm (line 11) | function Cm({content:e,isLoading:t=!1,className:n=""}){let r=(0,ge.useRe... function km (line 11) | function km(e){let[t,n]=(0,Et.useState)(""),[r,o]=(0,Et.useState)(!1),[l... function yu (line 11) | function yu({title:e,description:t,children:n,defaultOpen:r=!0}){let[o,l... function tt (line 11) | function tt({label:e,tooltip:t,children:n}){return y.default.createEleme... function xr (line 11) | function xr({id:e,label:t,description:n,checked:r,onChange:o,disabled:l}... function Lm (line 11) | function Lm({isOpen:e,onClose:t,settings:n,onSave:r,isSaving:o,saveStatu... function y0 (line 11) | function y0(e){let t=/^\[([^\]]+)\]\s+\[(\w+)\s*\]\s+\[(\w+)\s*\]\s+(?:\... function Nm (line 11) | function Nm({isOpen:e,onClose:t}){let[n,r]=(0,N.useState)(""),[o,l]=(0,N... function Am (line 12) | function Am(){let[e,t]=(0,nt.useState)([]),[n,r]=(0,nt.useState)([]),[o,... function Mm (line 12) | function Mm(){let[e,t]=(0,Or.useState)(ie),[n,r]=(0,Or.useState)(!1),[o,... function xm (line 12) | function xm(){let[e,t]=(0,Dr.useState)({}),n=(0,Dr.useCallback)(async()=... function Eu (line 12) | function Eu(e,t,n){let[r,o]=(0,Tn.useState)({isLoading:!1,hasMore:!0}),l... function Om (line 12) | function Om(e){let t=Eu(St.OBSERVATIONS,"observations",e),n=Eu(St.SUMMAR... function E0 (line 12) | function E0(){return typeof window>"u"||window.matchMedia("(prefers-colo... function Dm (line 12) | function Dm(){try{let e=localStorage.getItem(Im);if(e==="system"||e==="l... function Pm (line 12) | function Pm(e){return e==="system"?E0():e} function Um (line 12) | function Um(){let[e,t]=(0,Pr.useState)(Dm),[n,r]=(0,Pr.useState)(()=>Pm(... function Li (line 12) | function Li(e,t){let n=new Set;return[...e,...t].filter(r=>n.has(r.id)?!... function Rm (line 12) | function Rm(){let[e,t]=(0,W.useState)(""),[n,r]=(0,W.useState)(!1),[o,l]... method constructor (line 12) | constructor(t){super(t),this.state={hasError:!1,error:null,errorInfo:null}} method getDerivedStateFromError (line 12) | static getDerivedStateFromError(t){return{hasError:!0,error:t}} method componentDidCatch (line 12) | componentDidCatch(t,n){console.error("[ErrorBoundary] Caught error:",t,n... method render (line 12) | render(){return this.state.hasError?Xt.default.createElement("div",{styl... FILE: ragtime/ragtime.ts constant CONFIG (line 22) | const CONFIG = { function getFilesToProcess (line 53) | function getFilesToProcess(): string[] { function cleanupOldTranscripts (line 88) | async function cleanupOldTranscripts(): Promise { function waitForQueueToEmpty (line 152) | async function waitForQueueToEmpty(): Promise { function processFile (line 194) | async function processFile(file: string, index: number, total: number): ... function main (line 237) | async function main(): Promise { FILE: scripts/analyze-transformations-smart.js constant DB_PATH (line 46) | const DB_PATH = path.join(homedir(), '.claude-mem', 'claude-mem.db'); constant MAX_TRANSCRIPTS (line 47) | const MAX_TRANSCRIPTS = parseInt(process.env.MAX_TRANSCRIPTS || '500', 10); constant TRANSCRIPT_DIR (line 50) | const TRANSCRIPT_DIR = path.join(homedir(), '.claude/projects/-Users-ale... constant TRANSFORMATION_MARKER (line 70) | const TRANSFORMATION_MARKER = '**Key Facts:**'; function discoverAgentFiles (line 73) | async function discoverAgentFiles(mainTranscriptPath) { function loadOriginalContentFromFile (line 112) | async function loadOriginalContentFromFile(filePath, fileLabel) { function loadOriginalContent (line 177) | async function loadOriginalContent() { function getBaseToolUseId (line 216) | function getBaseToolUseId(id) { function queryObservations (line 222) | function queryObservations() { constant REPLACEABLE_TOOLS (line 267) | const REPLACEABLE_TOOLS = new Set(['Read', 'Bash', 'Grep', 'Task', 'WebF... function analyzeTransformations (line 270) | function analyzeTransformations(observations) { function main (line 401) | async function main() { FILE: scripts/anti-pattern-test/detect-error-handling-antipatterns.ts type AntiPattern (line 14) | interface AntiPattern { constant CRITICAL_PATHS (line 24) | const CRITICAL_PATHS = [ function findFilesRecursive (line 32) | function findFilesRecursive(dir: string, pattern: RegExp): string[] { function detectAntiPatterns (line 52) | function detectAntiPatterns(filePath: string, projectRoot: string): Anti... function analyzeTryCatchBlock (line 289) | function analyzeTryCatchBlock( function formatReport (line 429) | function formatReport(antiPatterns: AntiPattern[]): string { FILE: scripts/bug-report/cli.ts type CliArgs (line 14) | interface CliArgs { function parseArgs (line 21) | function parseArgs(): CliArgs { function printHelp (line 53) | function printHelp(): void { function promptUser (line 88) | async function promptUser(question: string): Promise { function promptMultiline (line 102) | async function promptMultiline(prompt: string): Promise { function main (line 131) | async function main() { FILE: scripts/bug-report/collector.ts type SystemDiagnostics (line 9) | interface SystemDiagnostics { function sanitizePath (line 57) | function sanitizePath(filePath: string): string { function getClaudememVersion (line 62) | async function getClaudememVersion(): Promise { function getClaudeCodeVersion (line 73) | async function getClaudeCodeVersion(): Promise { function getBunVersion (line 82) | async function getBunVersion(): Promise { function getOsVersion (line 91) | async function getOsVersion(): Promise { function checkWorkerHealth (line 109) | async function checkWorkerHealth(port: number): Promise { function getWorkerStats (line 120) | async function getWorkerStats(port: number): Promise { function readPidFile (line 131) | async function readPidFile(dataDir: string): Promise { function readLogLines (line 141) | async function readLogLines(logPath: string, lines: number): Promise { function getQueueStatus (line 53) | async function getQueueStatus(): Promise { function processQueue (line 61) | async function processQueue(limit: number): Promise { function formatAge (line 73) | function formatAge(epochMs: number): string { function prompt (line 84) | async function prompt(question: string): Promise { function main (line 102) | async function main() { FILE: scripts/cleanup-duplicates.ts constant DB_PATH (line 25) | const DB_PATH = join(homedir(), '.claude-mem', 'claude-mem.db'); constant TIME_WINDOW_MODES (line 28) | const TIME_WINDOW_MODES = { type DuplicateGroup (line 34) | interface DuplicateGroup { type ObservationRow (line 45) | interface ObservationRow { function main (line 55) | function main() { FILE: scripts/clear-failed-queue.ts constant WORKER_URL (line 11) | const WORKER_URL = 'http://localhost:37777'; type QueueMessage (line 13) | interface QueueMessage { type QueueResponse (line 24) | interface QueueResponse { type ClearResponse (line 36) | interface ClearResponse { function checkWorkerHealth (line 41) | async function checkWorkerHealth(): Promise { function getQueueStatus (line 50) | async function getQueueStatus(): Promise { function clearFailedQueue (line 58) | async function clearFailedQueue(): Promise { function clearAllQueue (line 68) | async function clearAllQueue(): Promise { function formatAge (line 78) | function formatAge(epochMs: number): string { function prompt (line 89) | async function prompt(question: string): Promise { function main (line 107) | async function main() { FILE: scripts/discord-release-notify.js function loadEnv (line 21) | function loadEnv() { function getReleaseNotes (line 39) | function getReleaseNotes(version) { function cleanNotes (line 51) | function cleanNotes(notes) { function truncate (line 59) | function truncate(text, maxLength) { function postToDiscord (line 64) | async function postToDiscord(webhookUrl, version, notes) { function main (line 109) | async function main() { FILE: scripts/endless-mode-token-calculator.js function estimateOriginalToolOutputSize (line 67) | function estimateOriginalToolOutputSize(discoveryTokens) { function charsToTokens (line 75) | function charsToTokens(chars) { function calculateWithoutEndlessMode (line 83) | function calculateWithoutEndlessMode(observations) { function calculateWithEndlessMode (line 127) | function calculateWithEndlessMode(observations) { function playTheTapeThrough (line 174) | function playTheTapeThrough(observations) { FILE: scripts/export-memories.ts function exportMemories (line 20) | async function exportMemories(query: string, outputFile: string, project... FILE: scripts/extraction/extract-all-xml.py function extract_xml_blocks (line 8) | def extract_xml_blocks(text): function process_transcript_file (line 43) | def process_transcript_file(filepath): FILE: scripts/extraction/filter-actual-xml.py function extract_xml_blocks (line 7) | def extract_xml_blocks(text): function is_example_xml (line 47) | def is_example_xml(xml_block): function process_transcript_file (line 77) | def process_transcript_file(filepath): FILE: scripts/fix-all-timestamps.ts constant DB_PATH (line 13) | const DB_PATH = resolve(process.env.HOME!, '.claude-mem/claude-mem.db'); type CorruptedObservation (line 15) | interface CorruptedObservation { function formatTimestamp (line 24) | function formatTimestamp(epoch: number): string { function main (line 36) | function main() { function applyFixes (line 130) | function applyFixes(db: Database, corrupted: CorruptedObservation[]) { FILE: scripts/fix-corrupted-timestamps.ts constant DB_PATH (line 14) | const DB_PATH = resolve(process.env.HOME!, '.claude-mem/claude-mem.db'); constant BAD_WINDOW_START (line 18) | const BAD_WINDOW_START = 1766623500000; constant BAD_WINDOW_END (line 19) | const BAD_WINDOW_END = 1766626260000; type AffectedObservation (line 21) | interface AffectedObservation { type ProcessedMessage (line 28) | interface ProcessedMessage { type SessionMapping (line 36) | interface SessionMapping { type TimestampFix (line 41) | interface TimestampFix { function formatTimestamp (line 50) | function formatTimestamp(epoch: number): string { function main (line 62) | function main() { function applyFixes (line 198) | function applyFixes(db: Database, fixes: TimestampFix[]) { FILE: scripts/format-transcript-context.ts type ConversationTurn (line 13) | interface ConversationTurn { function extractConversationTurns (line 36) | function extractConversationTurns(parser: TranscriptParser): Conversatio... function formatTurnToMarkdown (line 117) | function formatTurnToMarkdown(turn: ConversationTurn): string { function formatTranscriptToMarkdown (line 185) | function formatTranscriptToMarkdown(transcriptPath: string): string { FILE: scripts/generate-changelog.js function exec (line 12) | function exec(command) { function getReleases (line 22) | function getReleases() { function formatDate (line 37) | function formatDate(isoDate) { function cleanReleaseBody (line 42) | function cleanReleaseBody(body) { function extractVersion (line 50) | function extractVersion(tagName) { function generateChangelog (line 55) | function generateChangelog(releases) { function main (line 91) | function main() { FILE: scripts/import-memories.ts constant WORKER_PORT (line 12) | const WORKER_PORT = process.env.CLAUDE_MEM_WORKER_PORT || 37777; constant WORKER_URL (line 13) | const WORKER_URL = `http://127.0.0.1:${WORKER_PORT}`; function importMemories (line 15) | async function importMemories(inputFile: string) { FILE: scripts/investigate-timestamps.ts constant DB_PATH (line 13) | const DB_PATH = resolve(process.env.HOME!, '.claude-mem/claude-mem.db'); function formatTimestamp (line 15) | function formatTimestamp(epoch: number): string { function main (line 27) | function main() { FILE: scripts/publish.js function publish (line 22) | async function publish() { function bumpVersion (line 148) | function bumpVersion(version, type) { function isValidVersion (line 167) | function isValidVersion(version) { FILE: scripts/regenerate-claude-md.ts constant DB_PATH (line 26) | const DB_PATH = path.join(os.homedir(), '.claude-mem', 'claude-mem.db'); constant SETTINGS_PATH (line 27) | const SETTINGS_PATH = path.join(os.homedir(), '.claude-mem', 'settings.j... constant OBSERVATION_LIMIT (line 29) | const OBSERVATION_LIMIT = parseInt(settings.CLAUDE_MEM_CONTEXT_OBSERVATI... type ObservationRow (line 31) | interface ObservationRow { constant TYPE_ICONS (line 52) | const TYPE_ICONS: Record = { function getTypeIcon (line 63) | function getTypeIcon(type: string): string { function estimateTokens (line 67) | function estimateTokens(obs: ObservationRow): number { function getTrackedFolders (line 79) | function getTrackedFolders(workingDir: string): Set { function walkDirectoriesWithIgnore (line 115) | function walkDirectoriesWithIgnore(dir: string, folders: Set, de... function hasDirectChildFile (line 143) | function hasDirectChildFile(obs: ObservationRow, folderPath: string): bo... function findObservationsByFolder (line 163) | function findObservationsByFolder(db: Database, relativeFolderPath: stri... function extractRelevantFile (line 191) | function extractRelevantFile(obs: ObservationRow, relativeFolder: string... function formatObservationsForClaudeMd (line 227) | function formatObservationsForClaudeMd(observations: ObservationRow[], f... function writeClaudeMdToFolderForRegenerate (line 281) | function writeClaudeMdToFolderForRegenerate(folderPath: string, newConte... function cleanupAutoGeneratedFiles (line 315) | function cleanupAutoGeneratedFiles(workingDir: string, dryRun: boolean):... function regenerateFolder (line 413) | function regenerateFolder( function main (line 445) | async function main() { FILE: scripts/smart-install.js constant IS_WINDOWS (line 14) | const IS_WINDOWS = process.platform === 'win32'; function resolveRoot (line 26) | function resolveRoot() { constant ROOT (line 50) | const ROOT = resolveRoot(); constant MARKER (line 51) | const MARKER = join(ROOT, '.install-version'); constant BUN_COMMON_PATHS (line 54) | const BUN_COMMON_PATHS = IS_WINDOWS constant UV_COMMON_PATHS (line 58) | const UV_COMMON_PATHS = IS_WINDOWS function getBunPath (line 65) | function getBunPath() { function isBunInstalled (line 85) | function isBunInstalled() { function getBunVersion (line 92) | function getBunVersion() { function getUvPath (line 111) | function getUvPath() { function isUvInstalled (line 131) | function isUvInstalled() { function getUvVersion (line 138) | function getUvVersion() { function installBun (line 157) | function installBun() { function installUv (line 202) | function installUv() { function needsInstall (line 247) | function needsInstall() { function installDeps (line 261) | function installDeps() { function verifyCriticalModules (line 288) | function verifyCriticalModules() { FILE: scripts/sync-marketplace.cjs constant INSTALLED_PATH (line 14) | const INSTALLED_PATH = path.join(os.homedir(), '.claude', 'plugins', 'ma... constant CACHE_BASE_PATH (line 15) | const CACHE_BASE_PATH = path.join(os.homedir(), '.claude', 'plugins', 'c... function getCurrentBranch (line 17) | function getCurrentBranch() { function getGitignoreExcludes (line 32) | function getGitignoreExcludes(basePath) { function getPluginVersion (line 61) | function getPluginVersion() { FILE: scripts/test-transcript-parser.ts function formatTokens (line 13) | function formatTokens(num: number): string { function formatPercentage (line 17) | function formatPercentage(num: number): string { function main (line 21) | function main() { FILE: scripts/transcript-to-markdown.ts function truncate (line 23) | function truncate(str: string, maxLen: number = 500): string { function formatToolResult (line 31) | function formatToolResult(result: ToolResultContent): string { FILE: scripts/translate-readme/cli.ts type CliArgs (line 5) | interface CliArgs { function printHelp (line 20) | function printHelp(): void { function printLanguages (line 68) | function printLanguages(): void { function parseArgs (line 124) | function parseArgs(argv: string[]): CliArgs { function main (line 197) | async function main(): Promise { FILE: scripts/translate-readme/examples.ts function translateToCommonLanguages (line 10) | async function translateToCommonLanguages(): Promise { function fullI18nSetup (line 21) | async function fullI18nSetup(): Promise { function buildScriptIntegration (line 44) | async function buildScriptIntegration(): Promise { function batchTranslation (line 62) | async function batchTranslation(): Promise { function docsiteSetup (line 82) | async function docsiteSetup(): Promise { function cicdTranslation (line 94) | async function cicdTranslation(): Promise { FILE: scripts/translate-readme/index.ts type TranslationCache (line 6) | interface TranslationCache { function hashContent (line 16) | function hashContent(content: string): string { function readCache (line 20) | async function readCache(cachePath: string): Promise = { function getLanguageName (line 118) | function getLanguageName(code: string): string { function translateToLanguage (line 122) | async function translateToLanguage( function translateReadme (line 265) | async function translateReadme( constant SUPPORTED_LANGUAGES (line 436) | const SUPPORTED_LANGUAGES = Object.keys(LANGUAGE_NAMES); FILE: scripts/types/export.ts type ObservationRecord (line 12) | interface ObservationRecord { type SdkSessionRecord (line 34) | interface SdkSessionRecord { type SessionSummaryRecord (line 50) | interface SessionSummaryRecord { type UserPromptRecord (line 71) | interface UserPromptRecord { type ExportData (line 83) | interface ExportData { FILE: scripts/validate-timestamp-logic.ts constant DB_PATH (line 13) | const DB_PATH = resolve(process.env.HOME!, '.claude-mem/claude-mem.db'); function formatTimestamp (line 15) | function formatTimestamp(epoch: number): string { function main (line 27) | function main() { FILE: scripts/verify-timestamp-fix.ts constant DB_PATH (line 13) | const DB_PATH = resolve(process.env.HOME!, '.claude-mem/claude-mem.db'); constant BAD_WINDOW_START (line 16) | const BAD_WINDOW_START = 1766623500000; constant BAD_WINDOW_END (line 17) | const BAD_WINDOW_END = 1766626260000; constant ORIGINAL_WINDOW_START (line 20) | const ORIGINAL_WINDOW_START = 1765914000000; constant ORIGINAL_WINDOW_END (line 21) | const ORIGINAL_WINDOW_END = 1766613600000; type Observation (line 23) | interface Observation { function formatTimestamp (line 31) | function formatTimestamp(epoch: number): string { function main (line 43) | function main() { FILE: src/bin/cleanup-duplicates.ts function main (line 9) | function main() { FILE: src/bin/import-xml-observations.ts type ObservationData (line 13) | interface ObservationData { type SummaryData (line 24) | interface SummaryData { type SessionMetadata (line 33) | interface SessionMetadata { type TimestampMapping (line 38) | interface TimestampMapping { function buildTimestampMap (line 46) | function buildTimestampMap(): TimestampMapping { function extractTag (line 96) | function extractTag(xml: string, tagName: string): string { function extractArrayTags (line 105) | function extractArrayTags(xml: string, containerTag: string, itemTag: st... function parseObservation (line 128) | function parseObservation(xml: string): ObservationData | null { function parseSummary (line 161) | function parseSummary(xml: string): SummaryData | null { function extractTimestamp (line 193) | function extractTimestamp(commentLine: string): string | null { function main (line 206) | function main() { FILE: src/cli/adapters/claude-code.ts method normalizeInput (line 6) | normalizeInput(raw) { method formatOutput (line 18) | formatOutput(result) { FILE: src/cli/adapters/cursor.ts method normalizeInput (line 12) | normalizeInput(raw) { method formatOutput (line 29) | formatOutput(result) { FILE: src/cli/adapters/gemini-cli.ts method normalizeInput (line 33) | normalizeInput(raw) { method formatOutput (line 100) | formatOutput(result) { FILE: src/cli/adapters/index.ts function getPlatformAdapter (line 7) | function getPlatformAdapter(platform: string): PlatformAdapter { FILE: src/cli/adapters/raw.ts method normalizeInput (line 5) | normalizeInput(raw) { method formatOutput (line 19) | formatOutput(result) { FILE: src/cli/claude-md-commands.ts constant DB_PATH (line 30) | const DB_PATH = path.join(os.homedir(), '.claude-mem', 'claude-mem.db'); constant SETTINGS_PATH (line 31) | const SETTINGS_PATH = path.join(os.homedir(), '.claude-mem', 'settings.j... type ObservationRow (line 33) | interface ObservationRow { constant TYPE_ICONS (line 49) | const TYPE_ICONS: Record = { function getTypeIcon (line 60) | function getTypeIcon(type: string): string { function estimateTokens (line 64) | function estimateTokens(obs: ObservationRow): number { function getTrackedFolders (line 76) | function getTrackedFolders(workingDir: string): Set { function walkDirectoriesWithIgnore (line 108) | function walkDirectoriesWithIgnore(dir: string, folders: Set, de... function hasDirectChildFile (line 136) | function hasDirectChildFile(obs: ObservationRow, folderPath: string): bo... function findObservationsByFolder (line 155) | function findObservationsByFolder(db: Database, relativeFolderPath: stri... function extractRelevantFile (line 179) | function extractRelevantFile(obs: ObservationRow, relativeFolder: string... function formatObservationsForClaudeMd (line 212) | function formatObservationsForClaudeMd(observations: ObservationRow[], f... function writeClaudeMdToFolder (line 266) | function writeClaudeMdToFolder(folderPath: string, newContent: string): ... function regenerateFolder (line 310) | function regenerateFolder( function generateClaudeMd (line 356) | async function generateClaudeMd(dryRun: boolean): Promise { function cleanClaudeMd (line 449) | async function cleanClaudeMd(dryRun: boolean): Promise { FILE: src/cli/handlers/context.ts method execute (line 17) | async execute(input: NormalizedHookInput): Promise { FILE: src/cli/handlers/file-edit.ts method execute (line 14) | async execute(input: NormalizedHookInput): Promise { FILE: src/cli/handlers/index.ts type EventType (line 18) | type EventType = function getEventHandler (line 47) | function getEventHandler(eventType: string): EventHandler { FILE: src/cli/handlers/observation.ts method execute (line 16) | async execute(input: NormalizedHookInput): Promise { FILE: src/cli/handlers/session-complete.ts method execute (line 17) | async execute(input: NormalizedHookInput): Promise { FILE: src/cli/handlers/session-init.ts method execute (line 17) | async execute(input: NormalizedHookInput): Promise { FILE: src/cli/handlers/summarize.ts constant SUMMARIZE_TIMEOUT_MS (line 15) | const SUMMARIZE_TIMEOUT_MS = getTimeout(HOOK_TIMEOUTS.DEFAULT); method execute (line 18) | async execute(input: NormalizedHookInput): Promise { FILE: src/cli/handlers/user-message.ts method execute (line 14) | async execute(input: NormalizedHookInput): Promise { FILE: src/cli/hook-command.ts type HookCommandOptions (line 7) | interface HookCommandOptions { function isWorkerUnavailableError (line 26) | function isWorkerUnavailableError(error: unknown): boolean { function hookCommand (line 68) | async function hookCommand(platform: string, event: string, options: Hoo... FILE: src/cli/stdin-reader.ts function isStdinAvailable (line 17) | function isStdinAvailable(): boolean { function tryParseJson (line 43) | function tryParseJson(input: string): { success: true; value: unknown } ... constant SAFETY_TIMEOUT_MS (line 60) | const SAFETY_TIMEOUT_MS = 30000; constant PARSE_DELAY_MS (line 64) | const PARSE_DELAY_MS = 50; function readJsonFromStdin (line 66) | async function readJsonFromStdin(): Promise { FILE: src/cli/types.ts type NormalizedHookInput (line 1) | interface NormalizedHookInput { type HookResult (line 15) | interface HookResult { type PlatformAdapter (line 23) | interface PlatformAdapter { type EventHandler (line 28) | interface EventHandler { FILE: src/hooks/hook-response.ts constant STANDARD_HOOK_RESPONSE (line 8) | const STANDARD_HOOK_RESPONSE = JSON.stringify({ FILE: src/sdk/parser.ts type ParsedObservation (line 9) | interface ParsedObservation { type ParsedSummary (line 20) | interface ParsedSummary { function parseObservations (line 33) | function parseObservations(text: string, correlationId?: string): Parsed... function parseSummary (line 105) | function parseSummary(text: string, sessionId?: number): ParsedSummary |... function extractField (line 173) | function extractField(content: string, fieldName: string): string | null { function extractArrayElements (line 188) | function extractArrayElements(content: string, arrayName: string, elemen... FILE: src/sdk/prompts.ts type Observation (line 9) | interface Observation { type SDKSession (line 18) | interface SDKSession { function buildInitPrompt (line 29) | function buildInitPrompt(project: string, sessionId: string, userPrompt:... function buildObservationPrompt (line 91) | function buildObservationPrompt(obs: Observation): string { function buildSummaryPrompt (line 125) | function buildSummaryPrompt(session: SDKSession, mode: ModeConfig): stri... function buildContinuationPrompt (line 177) | function buildContinuationPrompt(userPrompt: string, promptNumber: numbe... FILE: src/servers/mcp-server.ts constant TOOL_ENDPOINT_MAP (line 39) | const TOOL_ENDPOINT_MAP: Record = { function callWorkerAPI (line 47) | async function callWorkerAPI( function callWorkerAPIPost (line 92) | async function callWorkerAPIPost( function verifyWorkerConnection (line 136) | async function verifyWorkerConnection(): Promise { constant HEARTBEAT_INTERVAL_MS (line 393) | const HEARTBEAT_INTERVAL_MS = 30_000; function startParentHeartbeat (line 396) | function startParentHeartbeat() { function cleanup (line 417) | function cleanup() { function main (line 428) | async function main() { FILE: src/services/context/ContextBuilder.ts constant VERSION_MARKER_PATH (line 36) | const VERSION_MARKER_PATH = path.join( function initializeDatabase (line 49) | function initializeDatabase(): SessionStore | null { function renderEmptyState (line 69) | function renderEmptyState(project: string, useColors: boolean): string { function buildContextOutput (line 76) | function buildContextOutput( function generateContext (line 126) | async function generateContext( FILE: src/services/context/ContextConfigLoader.ts function loadContextConfig (line 17) | function loadContextConfig(): ContextConfig { FILE: src/services/context/ObservationCompiler.ts function queryObservations (line 25) | function queryObservations( function querySummaries (line 55) | function querySummaries( function queryObservationsMulti (line 75) | function queryObservationsMulti( function querySummariesMulti (line 111) | function querySummariesMulti( function cwdToDashed (line 131) | function cwdToDashed(cwd: string): string { function extractPriorMessages (line 138) | function extractPriorMessages(transcriptPath: string): PriorMessages { function getPriorSessionMessages (line 189) | function getPriorSessionMessages( function prepareSummariesForTimeline (line 214) | function prepareSummariesForTimeline( function buildTimeline (line 234) | function buildTimeline( function getFullObservationIds (line 256) | function getFullObservationIds(observations: Observation[], count: numbe... FILE: src/services/context/TokenCalculator.ts function calculateObservationTokens (line 14) | function calculateObservationTokens(obs: Observation): number { function calculateTokenEconomics (line 25) | function calculateTokenEconomics(observations: Observation[]): TokenEcon... function getWorkEmoji (line 53) | function getWorkEmoji(obsType: string): string { function formatObservationTokenDisplay (line 60) | function formatObservationTokenDisplay( function shouldShowContextEconomics (line 75) | function shouldShowContextEconomics(config: ContextConfig): boolean { FILE: src/services/context/formatters/ColorFormatter.ts function formatHeaderDateTime (line 20) | function formatHeaderDateTime(): string { function renderColorHeader (line 35) | function renderColorHeader(project: string): string[] { function renderColorLegend (line 47) | function renderColorLegend(): string[] { function renderColorColumnKey (line 60) | function renderColorColumnKey(): string[] { function renderColorContextIndex (line 72) | function renderColorContextIndex(): string[] { function renderColorContextEconomics (line 87) | function renderColorContextEconomics( function renderColorDayHeader (line 116) | function renderColorDayHeader(day: string): string[] { function renderColorFileHeader (line 126) | function renderColorFileHeader(file: string): string[] { function renderColorTableRow (line 135) | function renderColorTableRow( function renderColorFullObservation (line 155) | function renderColorFullObservation( function renderColorSummaryItem (line 186) | function renderColorSummaryItem( function renderColorSummaryField (line 200) | function renderColorSummaryField(label: string, value: string | null, co... function renderColorPreviouslySection (line 208) | function renderColorPreviouslySection(priorMessages: PriorMessages): str... function renderColorFooter (line 225) | function renderColorFooter(totalDiscoveryTokens: number, totalReadTokens... function renderColorEmptyState (line 236) | function renderColorEmptyState(project: string): string { FILE: src/services/context/formatters/MarkdownFormatter.ts function formatHeaderDateTime (line 21) | function formatHeaderDateTime(): string { function renderMarkdownHeader (line 36) | function renderMarkdownHeader(project: string): string[] { function renderMarkdownLegend (line 46) | function renderMarkdownLegend(): string[] { function renderMarkdownColumnKey (line 61) | function renderMarkdownColumnKey(): string[] { function renderMarkdownContextIndex (line 68) | function renderMarkdownContextIndex(): string[] { function renderMarkdownContextEconomics (line 75) | function renderMarkdownContextEconomics( function renderMarkdownDayHeader (line 103) | function renderMarkdownDayHeader(day: string): string[] { function renderMarkdownFileHeader (line 112) | function renderMarkdownFileHeader(_file: string): string[] { function compactTime (line 120) | function compactTime(time: string): string { function renderMarkdownTableRow (line 127) | function renderMarkdownTableRow( function renderMarkdownFullObservation (line 142) | function renderMarkdownFullObservation( function renderMarkdownSummaryItem (line 177) | function renderMarkdownSummaryItem( function renderMarkdownSummaryField (line 189) | function renderMarkdownSummaryField(label: string, value: string | null)... function renderMarkdownPreviouslySection (line 197) | function renderMarkdownPreviouslySection(priorMessages: PriorMessages): ... function renderMarkdownFooter (line 214) | function renderMarkdownFooter(totalDiscoveryTokens: number, totalReadTok... function renderMarkdownEmptyState (line 225) | function renderMarkdownEmptyState(project: string): string { FILE: src/services/context/sections/FooterRenderer.ts function renderPreviouslySection (line 15) | function renderPreviouslySection( function renderFooter (line 28) | function renderFooter( FILE: src/services/context/sections/HeaderRenderer.ts function renderHeader (line 15) | function renderHeader( FILE: src/services/context/sections/SummaryRenderer.ts function shouldShowSummary (line 15) | function shouldShowSummary( function renderSummaryFields (line 46) | function renderSummaryFields( FILE: src/services/context/sections/TimelineRenderer.ts function groupTimelineByDay (line 21) | function groupTimelineByDay(timeline: TimelineItem[]): Map(base: T, override: Partial): T { method loadModeFile (line 113) | private loadModeFile(modeId: string): ModeConfig { method loadMode (line 133) | loadMode(modeId: string): ModeConfig { method getActiveMode (line 203) | getActiveMode(): ModeConfig { method getObservationTypes (line 213) | getObservationTypes(): ObservationType[] { method getObservationConcepts (line 220) | getObservationConcepts(): ObservationConcept[] { method getTypeIcon (line 227) | getTypeIcon(typeId: string): string { method getWorkEmoji (line 235) | getWorkEmoji(typeId: string): string { method validateType (line 243) | validateType(typeId: string): boolean { method getTypeLabel (line 250) | getTypeLabel(typeId: string): string { FILE: src/services/domain/types.ts type ObservationType (line 5) | interface ObservationType { type ObservationConcept (line 13) | interface ObservationConcept { type ModePrompts (line 19) | interface ModePrompts { type ModeConfig (line 65) | interface ModeConfig { FILE: src/services/infrastructure/GracefulShutdown.ts type ShutdownableService (line 15) | interface ShutdownableService { type CloseableClient (line 19) | interface CloseableClient { type CloseableDatabase (line 23) | interface CloseableDatabase { type StoppableService (line 30) | interface StoppableService { type GracefulShutdownConfig (line 37) | interface GracefulShutdownConfig { function performGracefulShutdown (line 52) | async function performGracefulShutdown(config: GracefulShutdownConfig): ... function closeHttpServer (line 92) | async function closeHttpServer(server: http.Server): Promise { FILE: src/services/infrastructure/HealthMonitor.ts function httpRequestToWorker (line 21) | async function httpRequestToWorker( function isPortInUse (line 40) | async function isPortInUse(port: number): Promise { function pollEndpointUntilOk (line 55) | async function pollEndpointUntilOk( function waitForHealth (line 80) | function waitForHealth(port: number, timeoutMs: number = 30000): Promise... function waitForReadiness (line 90) | function waitForReadiness(port: number, timeoutMs: number = 30000): Prom... function waitForPortFree (line 98) | async function waitForPortFree(port: number, timeoutMs: number = 10000):... function httpShutdown (line 111) | async function httpShutdown(port: number): Promise { function getInstalledPluginVersion (line 136) | function getInstalledPluginVersion(): string { function getRunningWorkerVersion (line 155) | async function getRunningWorkerVersion(port: number): Promise { function forceKillProcess (line 219) | async function forceKillProcess(pid: number): Promise { function waitForProcessesExit (line 243) | async function waitForProcessesExit(pids: number[], timeoutMs: number): ... function parseElapsedTime (line 273) | function parseElapsedTime(etime: string): number { function cleanupOrphanedProcesses (line 314) | async function cleanupOrphanedProcesses(): Promise { constant AGGRESSIVE_CLEANUP_PATTERNS (line 435) | const AGGRESSIVE_CLEANUP_PATTERNS = ['worker-service.cjs', 'chroma-mcp']; constant AGE_GATED_CLEANUP_PATTERNS (line 438) | const AGE_GATED_CLEANUP_PATTERNS = ['mcp-server.cjs']; function aggressiveStartupCleanup (line 450) | async function aggressiveStartupCleanup(): Promise { constant CHROMA_MIGRATION_MARKER_FILENAME (line 576) | const CHROMA_MIGRATION_MARKER_FILENAME = '.chroma-cleaned-v10.3'; function runOneTimeChromaMigration (line 588) | function runOneTimeChromaMigration(dataDirectory?: string): void { function spawnDaemon (line 624) | function spawnDaemon( function isProcessAlive (line 713) | function isProcessAlive(pid: number): boolean { function isPidFileRecent (line 742) | function isPidFileRecent(thresholdMs: number = 15000): boolean { function touchPidFile (line 755) | function touchPidFile(): void { function cleanStalePidFile (line 772) | function cleanStalePidFile(): ValidateWorkerPidStatus { function createSignalHandler (line 780) | function createSignalHandler( FILE: src/services/integrations/CursorHooksInstaller.ts constant CURSOR_REGISTRY_FILE (line 31) | const CURSOR_REGISTRY_FILE = path.join(DATA_DIR, 'cursor-projects.json'); function detectPlatform (line 40) | function detectPlatform(): Platform { function getScriptExtension (line 47) | function getScriptExtension(): string { function readCursorRegistry (line 58) | function readCursorRegistry(): CursorProjectRegistry { function writeCursorRegistry (line 65) | function writeCursorRegistry(registry: CursorProjectRegistry): void { function registerCursorProject (line 72) | function registerCursorProject(projectName: string, workspacePath: strin... function unregisterCursorProject (line 85) | function unregisterCursorProject(projectName: string): void { function updateCursorContextForProject (line 98) | async function updateCursorContextForProject(projectName: string, _port:... function findMcpServerPath (line 132) | function findMcpServerPath(): string | null { function findWorkerServicePath (line 154) | function findWorkerServicePath(): string | null { function findBunPath (line 177) | function findBunPath(): string { function getTargetDir (line 206) | function getTargetDir(target: CursorInstallTarget): string | null { function configureCursorMcp (line 235) | function configureCursorMcp(target: CursorInstallTarget): number { function installCursorHooks (line 296) | async function installCursorHooks(target: CursorInstallTarget): Promise<... function setupProjectContext (line 397) | async function setupProjectContext(targetDir: string, workspaceRoot: str... function uninstallCursorHooks (line 454) | function uninstallCursorHooks(target: CursorInstallTarget): number { function checkCursorHooksStatus (line 516) | function checkCursorHooksStatus(): number { function detectClaudeCode (line 599) | async function detectClaudeCode(): Promise { function handleCursorCommand (line 623) | async function handleCursorCommand(subcommand: string, args: string[]): ... FILE: src/services/integrations/types.ts type CursorMcpConfig (line 5) | interface CursorMcpConfig { type CursorInstallTarget (line 15) | type CursorInstallTarget = 'project' | 'user' | 'enterprise'; type Platform (line 16) | type Platform = 'windows' | 'unix'; type CursorHooksJson (line 18) | interface CursorHooksJson { FILE: src/services/queue/SessionQueueProcessor.ts constant IDLE_TIMEOUT_MS (line 6) | const IDLE_TIMEOUT_MS = 3 * 60 * 1000; type CreateIteratorOptions (line 8) | interface CreateIteratorOptions { class SessionQueueProcessor (line 15) | class SessionQueueProcessor { method constructor (line 16) | constructor( method createIterator (line 32) | async *createIterator(options: CreateIteratorOptions): AsyncIterableIt... method toPendingMessageWithId (line 76) | private toPendingMessageWithId(msg: PersistentPendingMessage): Pending... method waitForMessage (line 91) | private waitForMessage(signal: AbortSignal, timeoutMs: number = IDLE_T... FILE: src/services/server/ErrorHandler.ts type ErrorResponse (line 13) | interface ErrorResponse { class AppError (line 23) | class AppError extends Error { method constructor (line 24) | constructor( function createErrorResponse (line 38) | function createErrorResponse( function notFoundHandler (line 85) | function notFoundHandler(req: Request, res: Response): void { function asyncHandler (line 96) | function asyncHandler( FILE: src/services/server/Server.ts constant BUILT_IN_VERSION (line 26) | const BUILT_IN_VERSION = typeof __DEFAULT_PACKAGE_VERSION__ !== 'undefined' type RouteHandler (line 33) | interface RouteHandler { type AiStatus (line 40) | interface AiStatus { type ServerOptions (line 53) | interface ServerOptions { class Server (line 72) | class Server { method constructor (line 78) | constructor(options: ServerOptions) { method getHttpServer (line 88) | getHttpServer(): http.Server | null { method listen (line 95) | async listen(port: number, host: string): Promise { method close (line 108) | async close(): Promise { method registerRoutes (line 136) | registerRoutes(handler: RouteHandler): void { method finalizeRoutes (line 144) | finalizeRoutes(): void { method setupMiddleware (line 155) | private setupMiddleware(): void { method setupCoreRoutes (line 163) | private setupCoreRoutes(): void { method extractInstructionSection (line 340) | private extractInstructionSection(content: string, topic: string): str... method extractBetween (line 354) | private extractBetween(content: string, startMarker: string, endMarker... FILE: src/services/server/allowed-constants.ts constant ALLOWED_OPERATIONS (line 2) | const ALLOWED_OPERATIONS = [ constant ALLOWED_TOPICS (line 10) | const ALLOWED_TOPICS = [ FILE: src/services/smart-file-read/parser.ts type CodeSymbol (line 26) | interface CodeSymbol { type FoldedFile (line 38) | interface FoldedFile { constant LANG_MAP (line 49) | const LANG_MAP: Record = { function detectLanguage (line 71) | function detectLanguage(filePath: string): string { constant GRAMMAR_PACKAGES (line 78) | const GRAMMAR_PACKAGES: Record = { function resolveGrammarPath (line 91) | function resolveGrammarPath(language: string): string | null { constant QUERIES (line 104) | const QUERIES: Record = { function getQueryKey (line 165) | function getQueryKey(language: string): string { function getQueryFile (line 185) | function getQueryFile(queryKey: string): string { function getTreeSitterBin (line 202) | function getTreeSitterBin(): string { type RawCapture (line 220) | interface RawCapture { type RawMatch (line 229) | interface RawMatch { function runQuery (line 234) | function runQuery(queryFile: string, sourceFile: string, grammarPath: st... function runBatchQuery (line 239) | function runBatchQuery(queryFile: string, sourceFiles: string[], grammar... function parseMultiFileQueryOutput (line 255) | function parseMultiFileQueryOutput(output: string): Map = { constant CONTAINER_KINDS (line 313) | const CONTAINER_KINDS = new Set(["class", "struct", "impl", "trait"]); function extractSignatureFromLines (line 315) | function extractSignatureFromLines(lines: string[], startRow: number, en... function findCommentAbove (line 332) | function findCommentAbove(lines: string[], startRow: number): string | u... function findPythonDocstringFromLines (line 355) | function findPythonDocstringFromLines(lines: string[], startRow: number,... function isExported (line 365) | function isExported( function buildSymbols (line 386) | function buildSymbols(matches: RawMatch[], lines: string[], language: st... function parseFile (line 454) | function parseFile(content: string, filePath: string): FoldedFile { function parseFilesBatch (line 500) | function parseFilesBatch( function formatFoldedView (line 560) | function formatFoldedView(file: FoldedFile): string { function formatSymbol (line 584) | function formatSymbol(sym: CodeSymbol, indent: string): string { function getSymbolIcon (line 619) | function getSymbolIcon(kind: CodeSymbol["kind"]): string { function unfoldSymbol (line 631) | function unfoldSymbol(content: string, filePath: string, symbolName: str... FILE: src/services/smart-file-read/search.ts constant CODE_EXTENSIONS (line 17) | const CODE_EXTENSIONS = new Set([ constant IGNORE_DIRS (line 32) | const IGNORE_DIRS = new Set([ constant MAX_FILE_SIZE (line 39) | const MAX_FILE_SIZE = 512 * 1024; type SearchResult (line 41) | interface SearchResult { type SymbolMatch (line 49) | interface SymbolMatch { function safeReadFile (line 93) | async function safeReadFile(filePath: string): Promise { function searchCodebase (line 117) | async function searchCodebase( function matchScore (line 239) | function matchScore(text: string, queryParts: string[]): number { function countSymbols (line 265) | function countSymbols(file: FoldedFile): number { function formatSearchResults (line 276) | function formatSearchResults(result: SearchResult, query: string): string { FILE: src/services/sqlite/Database.ts constant SQLITE_MMAP_SIZE_BYTES (line 11) | const SQLITE_MMAP_SIZE_BYTES = 256 * 1024 * 1024; constant SQLITE_CACHE_SIZE_PAGES (line 12) | const SQLITE_CACHE_SIZE_PAGES = 10_000; type Migration (line 14) | interface Migration { function repairMalformedSchema (line 37) | function repairMalformedSchema(db: Database): void { function repairMalformedSchemaWithReopen (line 115) | function repairMalformedSchemaWithReopen(dbPath: string, db: Database): ... class ClaudeMemDatabase (line 145) | class ClaudeMemDatabase { method constructor (line 148) | constructor(dbPath: string = DB_PATH) { method close (line 178) | close(): void { class DatabaseManager (line 187) | class DatabaseManager { method getInstance (line 192) | static getInstance(): DatabaseManager { method registerMigration (line 202) | registerMigration(migration: Migration): void { method initialize (line 211) | async initialize(): Promise { method getConnection (line 246) | getConnection(): Database { method withTransaction (line 256) | withTransaction(fn: (db: Database) => T): T { method close (line 265) | close(): void { method initializeSchemaVersions (line 276) | private initializeSchemaVersions(): void { method runMigrations (line 291) | private async runMigrations(): Promise { method getCurrentVersion (line 319) | getCurrentVersion(): number { function getDatabase (line 332) | function getDatabase(): Database { function initializeDatabase (line 342) | async function initializeDatabase(): Promise { FILE: src/services/sqlite/PendingMessageStore.ts constant STALE_PROCESSING_THRESHOLD_MS (line 6) | const STALE_PROCESSING_THRESHOLD_MS = 60_000; type PersistentPendingMessage (line 11) | interface PersistentPendingMessage { class PendingMessageStore (line 47) | class PendingMessageStore { method constructor (line 51) | constructor(db: Database, maxRetries: number = 3) { method enqueue (line 60) | enqueue(sessionDbId: number, contentSessionId: string, message: Pendin... method claimNextMessage (line 93) | claimNextMessage(sessionDbId: number): PersistentPendingMessage | null { method confirmProcessed (line 146) | confirmProcessed(messageId: number): void { method resetStaleProcessingMessages (line 160) | resetStaleProcessingMessages(thresholdMs: number = 5 * 60 * 1000, sess... method getAllPending (line 188) | getAllPending(sessionDbId: number): PersistentPendingMessage[] { method getQueueMessages (line 202) | getQueueMessages(): (PersistentPendingMessage & { project: string | nu... method getStuckCount (line 222) | getStuckCount(thresholdMs: number): number { method retryMessage (line 236) | retryMessage(messageId: number): boolean { method resetProcessingToPending (line 250) | resetProcessingToPending(sessionDbId: number): number { method markSessionMessagesFailed (line 265) | markSessionMessagesFailed(sessionDbId: number): number { method markAllSessionMessagesAbandoned (line 287) | markAllSessionMessagesAbandoned(sessionDbId: number): number { method abortMessage (line 301) | abortMessage(messageId: number): boolean { method retryAllStuck (line 310) | retryAllStuck(thresholdMs: number): number { method getRecentlyProcessed (line 325) | getRecentlyProcessed(limit: number = 10, withinMinutes: number = 30): ... method markFailed (line 343) | markFailed(messageId: number): void { method resetStuckMessages (line 375) | resetStuckMessages(thresholdMs: number): number { method getPendingCount (line 391) | getPendingCount(sessionDbId: number): number { method hasAnyPendingWork (line 404) | hasAnyPendingWork(): boolean { method getSessionsWithPendingMessages (line 428) | getSessionsWithPendingMessages(): number[] { method getSessionInfoForMessage (line 440) | getSessionInfoForMessage(messageId: number): { sessionDbId: number; co... method clearFailed (line 452) | clearFailed(): number { method clearAll (line 466) | clearAll(): number { method toPendingMessage (line 478) | toPendingMessage(persistent: PersistentPendingMessage): PendingMessage { FILE: src/services/sqlite/SessionSearch.ts class SessionSearch (line 22) | class SessionSearch { method constructor (line 25) | constructor(dbPath?: string) { method ensureFTSTables (line 55) | private ensureFTSTables(): void { method isFts5Available (line 168) | private isFts5Available(): boolean { method buildFilterClause (line 182) | private buildFilterClause( method buildOrderClause (line 257) | private buildOrderClause(orderBy: SearchOptions['orderBy'] = 'relevanc... method searchObservations (line 274) | searchObservations(query: string | undefined, options: SearchOptions =... method searchSessions (line 310) | searchSessions(query: string | undefined, options: SearchOptions = {})... method findByConcept (line 348) | findByConcept(concept: string, options: SearchOptions = {}): Observati... method hasDirectChildFile (line 373) | private hasDirectChildFile(obs: ObservationSearchResult, folderPath: s... method hasDirectChildFileSession (line 391) | private hasDirectChildFileSession(session: SessionSummarySearchResult,... method findByFile (line 410) | findByFile(filePath: string, options: SearchOptions = {}): { method findByType (line 497) | findByType( method searchUserPrompts (line 526) | searchUserPrompts(query: string | undefined, options: SearchOptions = ... method getUserPromptsBySession (line 584) | getUserPromptsBySession(contentSessionId: string): UserPromptRow[] { method close (line 604) | close(): void { FILE: src/services/sqlite/SessionStore.ts class SessionStore (line 22) | class SessionStore { method constructor (line 25) | constructor(dbPath: string = DB_PATH) { method initializeSchema (line 64) | private initializeSchema(): void { method ensureWorkerPortColumn (line 143) | private ensureWorkerPortColumn(): void { method ensurePromptTrackingColumns (line 163) | private ensurePromptTrackingColumns(): void { method removeSessionSummariesUniqueConstraint (line 202) | private removeSessionSummariesUniqueConstraint(): void { method addObservationHierarchicalFields (line 276) | private addObservationHierarchicalFields(): void { method makeObservationsTextNullable (line 314) | private makeObservationsTextNullable(): void { method createUserPromptsTable (line 394) | private createUserPromptsTable(): void { method ensureDiscoveryTokensColumn (line 478) | private ensureDiscoveryTokensColumn(): void { method createPendingMessagesTable (line 510) | private createPendingMessagesTable(): void { method renameSessionIdColumns (line 563) | private renameSessionIdColumns(): void { method repairSessionIdColumnRename (line 625) | private repairSessionIdColumnRename(): void { method addFailedAtEpochColumn (line 638) | private addFailedAtEpochColumn(): void { method addOnUpdateCascadeToForeignKeys (line 662) | private addOnUpdateCascadeToForeignKeys(): void { method addObservationContentHashColumn (line 841) | private addObservationContentHashColumn(): void { method addSessionCustomTitleColumn (line 863) | private addSessionCustomTitleColumn(): void { method updateMemorySessionId (line 883) | updateMemorySessionId(sessionDbId: number, memorySessionId: string | n... method ensureMemorySessionIdRegistered (line 900) | ensureMemorySessionIdRegistered(sessionDbId: number, memorySessionId: ... method getRecentSummaries (line 925) | getRecentSummaries(project: string, limit: number = 10): Array<{ method getRecentSummariesWithSessionInfo (line 953) | getRecentSummariesWithSessionInfo(project: string, limit: number = 3):... method getRecentObservations (line 978) | getRecentObservations(project: string, limit: number = 20): Array<{ method getAllRecentObservations (line 998) | getAllRecentObservations(limit: number = 100): Array<{ method getAllRecentSummaries (line 1022) | getAllRecentSummaries(limit: number = 50): Array<{ method getAllRecentUserPrompts (line 1052) | getAllRecentUserPrompts(limit: number = 100): Array<{ method getAllProjects (line 1082) | getAllProjects(): string[] { method getLatestUserPrompt (line 1098) | getLatestUserPrompt(contentSessionId: string): { method getRecentSessionsWithStatus (line 1125) | getRecentSessionsWithStatus(project: string, limit: number = 3): Array<{ method getObservationsForSession (line 1157) | getObservationsForSession(memorySessionId: string): Array<{ method getObservationById (line 1176) | getObservationById(id: number): ObservationRecord | null { method getObservationsByIds (line 1189) | getObservationsByIds( method getSummaryForSession (line 1262) | getSummaryForSession(memorySessionId: string): { method getFilesForSession (line 1292) | getFilesForSession(memorySessionId: string): { method getSessionById (line 1337) | getSessionById(id: number): { method getSdkSessionsBySessionIds (line 1359) | getSdkSessionsBySessionIds(memorySessionIds: string[]): { method getPromptNumberFromUserPrompts (line 1395) | getPromptNumberFromUserPrompts(contentSessionId: string): number { method createSDKSession (line 1421) | createSDKSession(contentSessionId: string, project: string, userPrompt... method saveUserPrompt (line 1470) | saveUserPrompt(contentSessionId: string, promptNumber: number, promptT... method getUserPrompt (line 1488) | getUserPrompt(contentSessionId: string, promptNumber: number): string ... method storeObservation (line 1505) | storeObservation( method storeSummary (line 1568) | storeSummary( method storeObservations (line 1631) | storeObservations( method storeObservationsAndMarkComplete (line 1758) | storeObservationsAndMarkComplete( method getSessionSummariesByIds (line 1889) | getSessionSummariesByIds( method getUserPromptsByIds (line 1921) | getUserPromptsByIds( method getTimelineAroundTimestamp (line 1960) | getTimelineAroundTimestamp( method getTimelineAroundObservation (line 1977) | getTimelineAroundObservation( method getPromptById (line 2114) | getPromptById(id: number): { method getPromptsByIds (line 2144) | getPromptsByIds(ids: number[]): Array<{ method getSessionSummaryById (line 2185) | getSessionSummaryById(id: number): { method getOrCreateManualSession (line 2221) | getOrCreateManualSession(project: string): string { method close (line 2248) | close(): void { method importSdkSession (line 2260) | importSdkSession(session: { method importSessionSummary (line 2306) | importSessionSummary(summary: { method importObservation (line 2364) | importObservation(obs: { method importUserPrompt (line 2425) | importUserPrompt(prompt: { FILE: src/services/sqlite/import/bulk.ts type ImportResult (line 8) | interface ImportResult { function importSdkSession (line 17) | function importSdkSession( function importSessionSummary (line 66) | function importSessionSummary( function importObservation (line 126) | function importObservation( function importUserPrompt (line 195) | function importUserPrompt( FILE: src/services/sqlite/migrations/runner.ts class MigrationRunner (line 14) | class MigrationRunner { method constructor (line 15) | constructor(private db: Database) {} method runAllMigrations (line 21) | runAllMigrations(): void { method initializeSchema (line 47) | private initializeSchema(): void { method ensureWorkerPortColumn (line 126) | private ensureWorkerPortColumn(): void { method ensurePromptTrackingColumns (line 146) | private ensurePromptTrackingColumns(): void { method removeSessionSummariesUniqueConstraint (line 185) | private removeSessionSummariesUniqueConstraint(): void { method addObservationHierarchicalFields (line 259) | private addObservationHierarchicalFields(): void { method makeObservationsTextNullable (line 297) | private makeObservationsTextNullable(): void { method createUserPromptsTable (line 377) | private createUserPromptsTable(): void { method ensureDiscoveryTokensColumn (line 461) | private ensureDiscoveryTokensColumn(): void { method createPendingMessagesTable (line 493) | private createPendingMessagesTable(): void { method renameSessionIdColumns (line 546) | private renameSessionIdColumns(): void { method repairSessionIdColumnRename (line 608) | private repairSessionIdColumnRename(): void { method addFailedAtEpochColumn (line 621) | private addFailedAtEpochColumn(): void { method addOnUpdateCascadeToForeignKeys (line 645) | private addOnUpdateCascadeToForeignKeys(): void { method addObservationContentHashColumn (line 825) | private addObservationContentHashColumn(): void { method addSessionCustomTitleColumn (line 852) | private addSessionCustomTitleColumn(): void { FILE: src/services/sqlite/observations/files.ts function getFilesForSession (line 13) | function getFilesForSession( FILE: src/services/sqlite/observations/get.ts function getObservationById (line 14) | function getObservationById(db: Database, id: number): ObservationRecord... function getObservationsByIds (line 27) | function getObservationsByIds( function getObservationsForSession (line 101) | function getObservationsForSession( FILE: src/services/sqlite/observations/recent.ts function getRecentObservations (line 13) | function getRecentObservations( function getAllRecentObservations (line 32) | function getAllRecentObservations( FILE: src/services/sqlite/observations/store.ts constant DEDUP_WINDOW_MS (line 13) | const DEDUP_WINDOW_MS = 30_000; function computeObservationContentHash (line 19) | function computeObservationContentHash( function findDuplicateObservation (line 34) | function findDuplicateObservation( function storeObservation (line 51) | function storeObservation( FILE: src/services/sqlite/observations/types.ts type ObservationInput (line 10) | interface ObservationInput { type StoreObservationResult (line 24) | interface StoreObservationResult { type GetObservationsByIdsOptions (line 32) | interface GetObservationsByIdsOptions { type SessionFilesResult (line 44) | interface SessionFilesResult { type ObservationSessionRow (line 52) | interface ObservationSessionRow { type RecentObservationRow (line 62) | interface RecentObservationRow { type AllRecentObservationRow (line 72) | interface AllRecentObservationRow { FILE: src/services/sqlite/prompts/get.ts function getUserPrompt (line 14) | function getUserPrompt( function getPromptNumberFromUserPrompts (line 34) | function getPromptNumberFromUserPrompts(db: Database, contentSessionId: ... function getLatestUserPrompt (line 45) | function getLatestUserPrompt( function getAllRecentUserPrompts (line 67) | function getAllRecentUserPrompts( function getPromptById (line 92) | function getPromptById(db: Database, id: number): PromptWithProject | nu... function getPromptsByIds (line 114) | function getPromptsByIds(db: Database, ids: number[]): PromptWithProject... function getUserPromptsByIds (line 140) | function getUserPromptsByIds( FILE: src/services/sqlite/prompts/store.ts function saveUserPrompt (line 12) | function saveUserPrompt( FILE: src/services/sqlite/prompts/types.ts type RecentUserPromptResult (line 11) | interface RecentUserPromptResult { type PromptWithProject (line 24) | interface PromptWithProject { type GetPromptsByIdsOptions (line 37) | interface GetPromptsByIdsOptions { FILE: src/services/sqlite/sessions/create.ts function createSDKSession (line 20) | function createSDKSession( function updateMemorySessionId (line 74) | function updateMemorySessionId( FILE: src/services/sqlite/sessions/get.ts function getSessionById (line 18) | function getSessionById(db: Database, id: number): SessionBasic | null { function getSdkSessionsBySessionIds (line 33) | function getSdkSessionsBySessionIds( function getRecentSessionsWithStatus (line 55) | function getRecentSessionsWithStatus( function getSessionSummaryById (line 85) | function getSessionSummaryById( FILE: src/services/sqlite/sessions/types.ts type SessionBasic (line 10) | interface SessionBasic { type SessionFull (line 22) | interface SessionFull { type SessionWithStatus (line 39) | interface SessionWithStatus { type SessionSummaryDetail (line 50) | interface SessionSummaryDetail { FILE: src/services/sqlite/summaries/get.ts function getSummaryForSession (line 16) | function getSummaryForSession( function getSummaryById (line 41) | function getSummaryById( function getSummariesByIds (line 60) | function getSummariesByIds( FILE: src/services/sqlite/summaries/recent.ts function getRecentSummaries (line 15) | function getRecentSummaries( function getRecentSummariesWithSessionInfo (line 40) | function getRecentSummariesWithSessionInfo( function getAllRecentSummaries (line 64) | function getAllRecentSummaries( FILE: src/services/sqlite/summaries/store.ts function storeSummary (line 20) | function storeSummary( FILE: src/services/sqlite/summaries/types.ts type SummaryInput (line 9) | interface SummaryInput { type StoreSummaryResult (line 21) | interface StoreSummaryResult { type SessionSummary (line 29) | interface SessionSummary { type SummaryWithSessionInfo (line 46) | interface SummaryWithSessionInfo { type RecentSummary (line 59) | interface RecentSummary { type FullSummary (line 75) | interface FullSummary { type GetByIdsOptions (line 94) | interface GetByIdsOptions { FILE: src/services/sqlite/timeline/queries.ts type TimelineResult (line 15) | interface TimelineResult { function getTimelineAroundTimestamp (line 49) | function getTimelineAroundTimestamp( function getTimelineAroundObservation (line 71) | function getTimelineAroundObservation( function getAllProjects (line 208) | function getAllProjects(db: Database): string[] { FILE: src/services/sqlite/transactions.ts type StoreObservationsResult (line 18) | interface StoreObservationsResult { type StoreAndMarkCompleteResult (line 25) | type StoreAndMarkCompleteResult = StoreObservationsResult; function storeObservationsAndMarkComplete (line 48) | function storeObservationsAndMarkComplete( function storeObservations (line 168) | function storeObservations( FILE: src/services/sqlite/types.ts type SessionRow (line 5) | interface SessionRow { type OverviewRow (line 19) | interface OverviewRow { type MemoryRow (line 29) | interface MemoryRow { type DiagnosticRow (line 48) | interface DiagnosticRow { type TranscriptEventRow (line 59) | interface TranscriptEventRow { type ArchiveRow (line 70) | interface ArchiveRow { type TitleRow (line 80) | interface TitleRow { type SessionInput (line 91) | interface SessionInput { type OverviewInput (line 103) | interface OverviewInput { type MemoryInput (line 111) | interface MemoryInput { type DiagnosticInput (line 128) | interface DiagnosticInput { type TranscriptEventInput (line 137) | interface TranscriptEventInput { function normalizeTimestamp (line 149) | function normalizeTimestamp(timestamp: string | Date | number | undefine... type SDKSessionRow (line 189) | interface SDKSessionRow { type ObservationRow (line 204) | interface ObservationRow { type SessionSummaryRow (line 223) | interface SessionSummaryRow { type UserPromptRow (line 241) | interface UserPromptRow { type DateRange (line 253) | interface DateRange { type SearchFilters (line 258) | interface SearchFilters { type SearchOptions (line 266) | interface SearchOptions extends SearchFilters { type ObservationSearchResult (line 274) | interface ObservationSearchResult extends ObservationRow { type SessionSummarySearchResult (line 279) | interface SessionSummarySearchResult extends SessionSummaryRow { type UserPromptSearchResult (line 284) | interface UserPromptSearchResult extends UserPromptRow { FILE: src/services/sync/ChromaMcpManager.ts constant CHROMA_MCP_CLIENT_NAME (line 27) | const CHROMA_MCP_CLIENT_NAME = 'claude-mem-chroma'; constant CHROMA_MCP_CLIENT_VERSION (line 28) | const CHROMA_MCP_CLIENT_VERSION = '1.0.0'; constant MCP_CONNECTION_TIMEOUT_MS (line 29) | const MCP_CONNECTION_TIMEOUT_MS = 30_000; constant RECONNECT_BACKOFF_MS (line 30) | const RECONNECT_BACKOFF_MS = 10_000; constant DEFAULT_CHROMA_DATA_DIR (line 31) | const DEFAULT_CHROMA_DATA_DIR = path.join(os.homedir(), '.claude-mem', '... constant CHROMA_SUPERVISOR_ID (line 32) | const CHROMA_SUPERVISOR_ID = 'chroma-mcp'; class ChromaMcpManager (line 34) | class ChromaMcpManager { method constructor (line 42) | private constructor() {} method getInstance (line 47) | static getInstance(): ChromaMcpManager { method ensureConnected (line 59) | private async ensureConnected(): Promise { method connectInternal (line 91) | private async connectInternal(): Promise { method buildCommandArgs (line 189) | private buildCommandArgs(): string[] { method callTool (line 244) | async callTool(toolName: string, toolArguments: Record { method stop (line 328) | async stop(): Promise { method reset (line 355) | static async reset(): Promise { method getCombinedCertPath (line 369) | private getCombinedCertPath(): string | undefined { method getSpawnEnv (line 436) | private getSpawnEnv(): Record { method registerManagedProcess (line 462) | private registerManagedProcess(): void { FILE: src/services/sync/ChromaSync.ts type ChromaDocument (line 20) | interface ChromaDocument { type StoredObservation (line 26) | interface StoredObservation { type StoredSummary (line 45) | interface StoredSummary { type StoredUserPrompt (line 61) | interface StoredUserPrompt { class ChromaSync (line 72) | class ChromaSync { method constructor (line 78) | constructor(project: string) { method ensureCollectionExists (line 93) | private async ensureCollectionExists(): Promise { method formatObservationDocs (line 122) | private formatObservationDocs(obs: StoredObservation): ChromaDocument[] { method formatSummaryDocs (line 189) | private formatSummaryDocs(summary: StoredSummary): ChromaDocument[] { method addDocuments (line 257) | private async addDocuments(documents: ChromaDocument[]): Promise { method syncObservation (line 304) | async syncObservation( method syncSummary (line 348) | async syncSummary( method formatUserPromptDoc (line 389) | private formatUserPromptDoc(prompt: StoredUserPrompt): ChromaDocument { method syncUserPrompt (line 408) | async syncUserPrompt( method getExistingChromaIds (line 442) | private async getExistingChromaIds(projectOverride?: string): Promise<{ method ensureBackfilled (line 517) | async ensureBackfilled(projectOverride?: string): Promise { method queryChroma (line 687) | async queryChroma( method backfillAllProjects (line 778) | static async backfillAllProjects(): Promise { method close (line 807) | async close(): Promise { FILE: src/services/transcripts/cli.ts function getArgValue (line 4) | function getArgValue(args: string[], name: string): string | null { function runTranscriptCommand (line 10) | async function runTranscriptCommand(subcommand: string | undefined, args... FILE: src/services/transcripts/config.ts constant DEFAULT_CONFIG_PATH (line 6) | const DEFAULT_CONFIG_PATH = join(homedir(), '.claude-mem', 'transcript-w... constant DEFAULT_STATE_PATH (line 7) | const DEFAULT_STATE_PATH = join(homedir(), '.claude-mem', 'transcript-wa... constant CODEX_SAMPLE_SCHEMA (line 9) | const CODEX_SAMPLE_SCHEMA: TranscriptSchema = { constant SAMPLE_CONFIG (line 85) | const SAMPLE_CONFIG: TranscriptWatchConfig = { function expandHomePath (line 106) | function expandHomePath(inputPath: string): string { function loadTranscriptWatchConfig (line 114) | function loadTranscriptWatchConfig(path = DEFAULT_CONFIG_PATH): Transcri... function writeSampleConfig (line 130) | function writeSampleConfig(path = DEFAULT_CONFIG_PATH): void { FILE: src/services/transcripts/field-utils.ts type ResolveContext (line 3) | interface ResolveContext { function parsePath (line 9) | function parsePath(path: string): Array { function getValueByPath (line 31) | function getValueByPath(input: unknown, path: string): unknown { function isEmptyValue (line 44) | function isEmptyValue(value: unknown): boolean { function resolveFromContext (line 48) | function resolveFromContext(path: string, ctx: ResolveContext): unknown { function resolveFieldSpec (line 66) | function resolveFieldSpec( function resolveFields (line 100) | function resolveFields( function matchesRule (line 115) | function matchesRule( FILE: src/services/transcripts/processor.ts type SessionState (line 13) | interface SessionState { type PendingTool (line 22) | interface PendingTool { class TranscriptEventProcessor (line 29) | class TranscriptEventProcessor { method processEntry (line 32) | async processEntry( method getSessionKey (line 44) | private getSessionKey(watch: WatchTarget, sessionId: string): string { method getOrCreateSession (line 48) | private getOrCreateSession(watch: WatchTarget, sessionId: string): Ses... method resolveSessionId (line 61) | private resolveSessionId( method resolveCwd (line 77) | private resolveCwd( method resolveProject (line 92) | private resolveProject( method handleEvent (line 108) | private async handleEvent( method applySessionContext (line 166) | private applySessionContext(session: SessionState, fields: Record { method updateContext (line 338) | private async updateContext(session: SessionState, watch: WatchTarget)... FILE: src/services/transcripts/state.ts type TranscriptWatchState (line 5) | interface TranscriptWatchState { function loadWatchState (line 9) | function loadWatchState(statePath: string): TranscriptWatchState { function saveWatchState (line 27) | function saveWatchState(statePath: string, state: TranscriptWatchState):... FILE: src/services/transcripts/types.ts type FieldSpec (line 1) | type FieldSpec = type MatchRule (line 10) | interface MatchRule { type EventAction (line 19) | type EventAction = type SchemaEvent (line 30) | interface SchemaEvent { type TranscriptSchema (line 37) | interface TranscriptSchema { type WatchContextConfig (line 48) | interface WatchContextConfig { type WatchTarget (line 54) | interface WatchTarget { type TranscriptWatchConfig (line 65) | interface TranscriptWatchConfig { FILE: src/services/transcripts/watcher.ts type TailState (line 10) | interface TailState { class FileTailer (line 15) | class FileTailer { method constructor (line 19) | constructor( method start (line 28) | start(): void { method close (line 35) | close(): void { method readNewData (line 40) | private async readNewData(): Promise { class TranscriptWatcher (line 82) | class TranscriptWatcher { method constructor (line 88) | constructor(private config: TranscriptWatchConfig, private statePath: ... method start (line 92) | async start(): Promise { method stop (line 98) | stop(): void { method setupWatch (line 109) | private async setupWatch(watch: WatchTarget): Promise { method resolveSchema (line 135) | private resolveSchema(watch: WatchTarget): TranscriptSchema | null { method resolveWatchFiles (line 142) | private resolveWatchFiles(inputPath: string): string[] { method hasGlob (line 163) | private hasGlob(inputPath: string): boolean { method addTailer (line 167) | private async addTailer(filePath: string, watch: WatchTarget, schema: ... method handleLine (line 202) | private async handleLine( method extractSessionIdFromPath (line 220) | private extractSessionIdFromPath(filePath: string): string | null { FILE: src/services/worker-service.ts constant WINDOWS_SPAWN_COOLDOWN_MS (line 27) | const WINDOWS_SPAWN_COOLDOWN_MS = 2 * 60 * 1000; function getWorkerSpawnLockPath (line 29) | function getWorkerSpawnLockPath(): string { function shouldSkipSpawnOnWindows (line 33) | function shouldSkipSpawnOnWindows(): boolean { function markWorkerSpawnAttempted (line 45) | function markWorkerSpawnAttempted(): void { function clearWorkerSpawnAttempted (line 54) | function clearWorkerSpawnAttempted(): void { type StatusOutput (line 139) | interface StatusOutput { function buildStatusOutput (line 146) | function buildStatusOutput(status: 'ready' | 'error', message?: string):... class WorkerService (line 155) | class WorkerService { method constructor (line 200) | constructor() { method registerSignalHandlers (line 266) | private registerSignalHandlers(): void { method registerRoutes (line 276) | private registerRoutes(): void { method start (line 328) | async start(): Promise { method initializeBackground (line 363) | private async initializeBackground(): Promise { method getActiveAgent (line 526) | private getActiveAgent(): SDKAgent | GeminiAgent | OpenRouterAgent { method startSessionProcessor (line 541) | private startSessionProcessor( method isSessionTerminatedError (line 723) | private isSessionTerminatedError(error: unknown): boolean { method runFallbackForTerminatedSession (line 739) | private async runFallbackForTerminatedSession( method terminateSession (line 801) | private terminateSession(sessionDbId: number, reason: string): void { method processPendingQueues (line 818) | async processPendingQueues(sessionLimit: number = 10): Promise<{ method shutdown (line 912) | async shutdown(): Promise { method broadcastProcessingStatus (line 937) | broadcastProcessingStatus(): void { function ensureWorkerStarted (line 967) | async function ensureWorkerStarted(port: number): Promise { function main (line 1077) | async function main() { FILE: src/services/worker-types.ts type ConversationMessage (line 15) | interface ConversationMessage { type ActiveSession (line 20) | interface ActiveSession { type PendingMessage (line 45) | interface PendingMessage { type PendingMessageWithId (line 60) | interface PendingMessageWithId extends PendingMessage { type ObservationData (line 65) | interface ObservationData { type SSEEvent (line 77) | interface SSEEvent { type SSEClient (line 83) | type SSEClient = Response; type PaginatedResult (line 89) | interface PaginatedResult { type PaginationParams (line 96) | interface PaginationParams { type ViewerSettings (line 106) | interface ViewerSettings { type Observation (line 116) | interface Observation { type Summary (line 134) | interface Summary { type UserPrompt (line 148) | interface UserPrompt { type DBSession (line 158) | interface DBSession { type ParsedObservation (line 178) | interface ParsedObservation { type ParsedSummary (line 187) | interface ParsedSummary { type DatabaseStats (line 200) | interface DatabaseStats { FILE: src/services/worker/BranchManager.ts constant INSTALLED_PLUGIN_PATH (line 15) | const INSTALLED_PLUGIN_PATH = MARKETPLACE_ROOT; function isValidBranchName (line 21) | function isValidBranchName(branchName: string): boolean { constant GIT_COMMAND_TIMEOUT_MS (line 33) | const GIT_COMMAND_TIMEOUT_MS = 300_000; constant NPM_INSTALL_TIMEOUT_MS (line 34) | const NPM_INSTALL_TIMEOUT_MS = 600_000; constant DEFAULT_SHELL_TIMEOUT_MS (line 35) | const DEFAULT_SHELL_TIMEOUT_MS = 60_000; type BranchInfo (line 37) | interface BranchInfo { type SwitchResult (line 46) | interface SwitchResult { function execGit (line 57) | function execGit(args: string[]): string { function execNpm (line 81) | function execNpm(args: string[], timeoutMs: number = NPM_INSTALL_TIMEOUT... function getBranchInfo (line 107) | function getBranchInfo(): BranchInfo { function switchBranch (line 163) | async function switchBranch(targetBranch: string): Promise { function pullUpdates (line 259) | async function pullUpdates(): Promise { function getInstalledPluginPath (line 313) | function getInstalledPluginPath(): string { FILE: src/services/worker/DatabaseManager.ts class DatabaseManager (line 19) | class DatabaseManager { method initialize (line 27) | async initialize(): Promise { method close (line 47) | async close(): Promise { method getSessionStore (line 68) | getSessionStore(): SessionStore { method getSessionSearch (line 78) | getSessionSearch(): SessionSearch { method getChromaSync (line 88) | getChromaSync(): ChromaSync | null { method getSessionById (line 99) | getSessionById(sessionDbId: number): { FILE: src/services/worker/FormattingService.ts constant CHARS_PER_TOKEN_ESTIMATE (line 11) | const CHARS_PER_TOKEN_ESTIMATE = 4; class FormattingService (line 13) | class FormattingService { method formatSearchTips (line 17) | formatSearchTips(): string { method formatTime (line 33) | private formatTime(epoch: number): string { method estimateReadTokens (line 44) | private estimateReadTokens(obs: ObservationSearchResult): number { method formatObservationIndex (line 56) | formatObservationIndex(obs: ObservationSearchResult, _index: number): ... method formatSessionIndex (line 73) | formatSessionIndex(session: SessionSummarySearchResult, _index: number... method formatUserPromptIndex (line 86) | formatUserPromptIndex(prompt: UserPromptSearchResult, _index: number):... method formatTableHeader (line 101) | formatTableHeader(): string { method formatSearchTableHeader (line 109) | formatSearchTableHeader(): string { method formatObservationSearchRow (line 117) | formatObservationSearchRow(obs: ObservationSearchResult, lastTime: str... method formatSessionSearchRow (line 136) | formatSessionSearchRow(session: SessionSummarySearchResult, lastTime: ... method formatUserPromptSearchRow (line 154) | formatUserPromptSearchRow(prompt: UserPromptSearchResult, lastTime: st... FILE: src/services/worker/GeminiAgent.ts constant GEMINI_API_URL (line 33) | const GEMINI_API_URL = 'https://generativelanguage.googleapis.com/v1/mod... type GeminiModel (line 36) | type GeminiModel = constant GEMINI_RPM_LIMITS (line 46) | const GEMINI_RPM_LIMITS: Record = { function enforceRateLimitForModel (line 64) | async function enforceRateLimitForModel(model: GeminiModel, rateLimiting... type GeminiResponse (line 85) | interface GeminiResponse { type GeminiContent (line 104) | interface GeminiContent { class GeminiAgent (line 109) | class GeminiAgent { method constructor (line 114) | constructor(dbManager: DatabaseManager, sessionManager: SessionManager) { method setFallbackAgent (line 123) | setFallbackAgent(agent: FallbackAgent): void { method startSession (line 131) | async startSession(session: ActiveSession, worker?: WorkerRef): Promis... method conversationToGeminiContents (line 349) | private conversationToGeminiContents(history: ConversationMessage[]): ... method queryGeminiMultiTurn (line 360) | private async queryGeminiMultiTurn( method getGeminiConfig (line 415) | private getGeminiConfig(): { apiKey: string; model: GeminiModel; rateL... function isGeminiAvailable (line 458) | function isGeminiAvailable(): boolean { function isGeminiSelected (line 467) | function isGeminiSelected(): boolean { FILE: src/services/worker/OpenRouterAgent.ts constant OPENROUTER_API_URL (line 32) | const OPENROUTER_API_URL = 'https://openrouter.ai/api/v1/chat/completions'; constant DEFAULT_MAX_CONTEXT_MESSAGES (line 35) | const DEFAULT_MAX_CONTEXT_MESSAGES = 20; constant DEFAULT_MAX_ESTIMATED_TOKENS (line 36) | const DEFAULT_MAX_ESTIMATED_TOKENS = 100000; constant CHARS_PER_TOKEN_ESTIMATE (line 37) | const CHARS_PER_TOKEN_ESTIMATE = 4; type OpenAIMessage (line 40) | interface OpenAIMessage { type OpenRouterResponse (line 45) | interface OpenRouterResponse { class OpenRouterAgent (line 64) | class OpenRouterAgent { method constructor (line 69) | constructor(dbManager: DatabaseManager, sessionManager: SessionManager) { method setFallbackAgent (line 78) | setFallbackAgent(agent: FallbackAgent): void { method startSession (line 86) | async startSession(session: ActiveSession, worker?: WorkerRef): Promis... method estimateTokens (line 288) | private estimateTokens(text: string): number { method truncateHistory (line 296) | private truncateHistory(history: ConversationMessage[]): ConversationM... method conversationToOpenAIMessages (line 340) | private conversationToOpenAIMessages(history: ConversationMessage[]): ... method queryOpenRouterMultiTurn (line 351) | private async queryOpenRouterMultiTurn( method getOpenRouterConfig (line 438) | private getOpenRouterConfig(): { apiKey: string; model: string; siteUr... function isOpenRouterAvailable (line 461) | function isOpenRouterAvailable(): boolean { function isOpenRouterSelected (line 470) | function isOpenRouterSelected(): boolean { FILE: src/services/worker/PaginationHelper.ts class PaginationHelper (line 14) | class PaginationHelper { method constructor (line 17) | constructor(dbManager: DatabaseManager) { method stripProjectPath (line 26) | private stripProjectPath(filePath: string, projectName: string): string { method stripProjectPaths (line 42) | private stripProjectPaths(filePathsStr: string | null, projectName: st... method sanitizeObservation (line 63) | private sanitizeObservation(obs: Observation): Observation { method getObservations (line 74) | getObservations(offset: number, limit: number, project?: string): Pagi... method getSummaries (line 93) | getSummaries(offset: number, limit: number, project?: string): Paginat... method getPrompts (line 135) | getPrompts(offset: number, limit: number, project?: string): Paginated... method paginate (line 167) | private paginate( FILE: src/services/worker/ProcessRegistry.ts type TrackedProcess (line 27) | interface TrackedProcess { function getTrackedProcesses (line 34) | function getTrackedProcesses(): TrackedProcess[] { function registerProcess (line 57) | function registerProcess(pid: number, sessionDbId: number, process: Chil... function unregisterProcess (line 70) | function unregisterProcess(pid: number): void { function getProcessBySession (line 85) | function getProcessBySession(sessionDbId: number): TrackedProcess | unde... function getActiveCount (line 99) | function getActiveCount(): number { function notifySlotAvailable (line 109) | function notifySlotAvailable(): void { constant TOTAL_PROCESS_HARD_CAP (line 119) | const TOTAL_PROCESS_HARD_CAP = 10; function waitForSlot (line 121) | async function waitForSlot(maxConcurrent: number, timeoutMs: number = 60... function getActiveProcesses (line 156) | function getActiveProcesses(): Array<{ pid: number; sessionDbId: number;... function ensureProcessExit (line 169) | async function ensureProcessExit(tracked: TrackedProcess, timeoutMs: num... function killIdleDaemonChildren (line 228) | async function killIdleDaemonChildren(): Promise { function killSystemOrphans (line 299) | async function killSystemOrphans(): Promise { function reapOrphanedProcesses (line 333) | async function reapOrphanedProcesses(activeSessionIds: Set): Pro... function createPidCapturingSpawn (line 377) | function createPidCapturingSpawn(sessionDbId: number) { function startOrphanReaper (line 448) | function startOrphanReaper(getActiveSessionIds: () => Set, inter... FILE: src/services/worker/SDKAgent.ts class SDKAgent (line 31) | class SDKAgent { method constructor (line 35) | constructor(dbManager: DatabaseManager, sessionManager: SessionManager) { method startSession (line 44) | async startSession(session: ActiveSession, worker?: WorkerRef): Promis... method createMessageGenerator (line 333) | private async *createMessageGenerator( method findClaudeExecutable (line 442) | private findClaudeExecutable(): string { method getModelId (line 484) | private getModelId(): string { FILE: src/services/worker/SSEBroadcaster.ts class SSEBroadcaster (line 15) | class SSEBroadcaster { method addClient (line 21) | addClient(res: Response): void { method removeClient (line 37) | removeClient(res: Response): void { method broadcast (line 45) | broadcast(event: SSEEvent): void { method getClientCount (line 65) | getClientCount(): number { method sendToClient (line 72) | private sendToClient(res: Response, event: SSEEvent): void { FILE: src/services/worker/SearchManager.ts class SearchManager (line 35) | class SearchManager { method constructor (line 39) | constructor( method queryChroma (line 59) | private async queryChroma( method normalizeParams (line 74) | private normalizeParams(args: any): any { method search (line 126) | async search(args: any): Promise { method timeline (line 397) | async timeline(args: any): Promise { method decisions (line 675) | async decisions(args: any): Promise { method changes (line 749) | async changes(args: any): Promise { method howItWorks (line 832) | async howItWorks(args: any): Promise { method searchObservations (line 889) | async searchObservations(args: any): Promise { method searchSessions (line 946) | async searchSessions(args: any): Promise { method searchUserPrompts (line 1003) | async searchUserPrompts(args: any): Promise { method findByConcept (line 1060) | async findByConcept(args: any): Promise { method findByFile (line 1128) | async findByFile(args: any): Promise { method findByType (line 1250) | async findByType(args: any): Promise { method getRecentContext (line 1319) | async getRecentContext(args: any): Promise { method getContextTimeline (line 1445) | async getContextTimeline(args: any): Promise { method getTimelineByQuery (line 1657) | async getTimelineByQuery(args: any): Promise { FILE: src/services/worker/SessionManager.ts class SessionManager (line 20) | class SessionManager { method constructor (line 27) | constructor(dbManager: DatabaseManager) { method getPendingStore (line 34) | private getPendingStore(): PendingMessageStore { method setOnSessionDeleted (line 45) | setOnSessionDeleted(callback: () => void): void { method initializeSession (line 52) | initializeSession(sessionDbId: number, currentUserPrompt?: string, pro... method getSession (line 191) | getSession(sessionDbId: number): ActiveSession | undefined { method queueObservation (line 202) | queueObservation(sessionDbId: number, data: ObservationData): void { method queueSummarize (line 246) | queueSummarize(sessionDbId: number, lastAssistantMessage?: string): vo... method deleteSession (line 280) | async deleteSession(sessionDbId: number): Promise { method removeSessionImmediate (line 346) | removeSessionImmediate(sessionDbId: number): void { method reapStaleSessions (line 369) | async reapStaleSessions(): Promise { method shutdownAll (line 399) | async shutdownAll(): Promise { method hasPendingMessages (line 408) | hasPendingMessages(): boolean { method getActiveSessionCount (line 415) | getActiveSessionCount(): number { method getTotalQueueDepth (line 422) | getTotalQueueDepth(): number { method getTotalActiveWork (line 435) | getTotalActiveWork(): number { method isAnySessionProcessing (line 445) | isAnySessionProcessing(): boolean { method getMessageIterator (line 457) | async *getMessageIterator(sessionDbId: number): AsyncIterableIterator<... method getPendingMessageStore (line 501) | getPendingMessageStore(): PendingMessageStore { FILE: src/services/worker/SettingsManager.ts class SettingsManager (line 14) | class SettingsManager { method constructor (line 22) | constructor(dbManager: DatabaseManager) { method getSettings (line 29) | getSettings(): ViewerSettings { method updateSettings (line 54) | updateSettings(updates: Partial): ViewerSettings { FILE: src/services/worker/TimelineService.ts type TimelineItem (line 13) | interface TimelineItem { type TimelineData (line 19) | interface TimelineData { class TimelineService (line 25) | class TimelineService { method buildTimeline (line 29) | buildTimeline(data: TimelineData): TimelineItem[] { method filterByDepth (line 42) | filterByDepth( method formatTimeline (line 73) | formatTimeline( method getTypeIcon (line 214) | private getTypeIcon(type: string): string { method formatDate (line 221) | private formatDate(epochMs: number): string { method formatTime (line 233) | private formatTime(epochMs: number): string { method formatDateTime (line 245) | private formatDateTime(epochMs: number): string { method estimateTokens (line 259) | private estimateTokens(text: string | null): number { FILE: src/services/worker/agents/FallbackErrorHandler.ts function shouldFallbackToClaude (line 25) | function shouldFallbackToClaude(error: unknown): boolean { function getErrorMessage (line 34) | function getErrorMessage(error: unknown): string { function isAbortError (line 60) | function isAbortError(error: unknown): boolean { FILE: src/services/worker/agents/ObservationBroadcaster.ts function broadcastObservation (line 23) | function broadcastObservation( function broadcastSummary (line 43) | function broadcastSummary( FILE: src/services/worker/agents/ResponseProcessor.ts function processAgentResponse (line 48) | async function processAgentResponse( function normalizeSummaryForStorage (line 157) | function normalizeSummaryForStorage(summary: ParsedSummary | null): { function syncAndBroadcastObservations (line 180) | async function syncAndBroadcastObservations( function syncAndBroadcastSummary (line 272) | async function syncAndBroadcastSummary( FILE: src/services/worker/agents/SessionCleanupHelper.ts function cleanupProcessedMessages (line 26) | function cleanupProcessedMessages( FILE: src/services/worker/agents/types.ts type WorkerRef (line 21) | interface WorkerRef { type ObservationSSEPayload (line 32) | interface ObservationSSEPayload { type SummarySSEPayload (line 50) | interface SummarySSEPayload { type SSEEventPayload (line 64) | type SSEEventPayload = type StorageResult (line 75) | interface StorageResult { type ResponseProcessingContext (line 84) | interface ResponseProcessingContext { type ParsedResponse (line 94) | interface ParsedResponse { type FallbackAgent (line 106) | interface FallbackAgent { type BaseAgentConfig (line 117) | interface BaseAgentConfig { constant FALLBACK_ERROR_PATTERNS (line 125) | const FALLBACK_ERROR_PATTERNS = [ FILE: src/services/worker/events/SessionEventBroadcaster.ts class SessionEventBroadcaster (line 12) | class SessionEventBroadcaster { method constructor (line 13) | constructor( method broadcastNewPrompt (line 22) | broadcastNewPrompt(prompt: { method broadcastSessionStarted (line 43) | broadcastSessionStarted(sessionDbId: number, project: string): void { method broadcastObservationQueued (line 58) | broadcastObservationQueued(sessionDbId: number): void { method broadcastSessionCompleted (line 72) | broadcastSessionCompleted(sessionDbId: number): void { method broadcastSummarizeQueued (line 87) | broadcastSummarizeQueued(): void { FILE: src/services/worker/http/BaseRouteHandler.ts method wrapHandler (line 19) | protected wrapHandler( method parseIntParam (line 39) | protected parseIntParam(req: Request, res: Response, paramName: string):... method validateRequired (line 52) | protected validateRequired(req: Request, res: Response, params: string[]... method badRequest (line 65) | protected badRequest(res: Response, message: string): void { method notFound (line 72) | protected notFound(res: Response, message: string): void { method handleError (line 80) | protected handleError(res: Response, error: Error, context?: string): vo... FILE: src/services/worker/http/middleware.ts function createMiddleware (line 19) | function createMiddleware( function requireLocalhost (line 85) | function requireLocalhost(req: Request, res: Response, next: NextFunctio... function summarizeRequestBody (line 113) | function summarizeRequestBody(method: string, path: string, body: any): ... FILE: src/services/worker/http/routes/DataRoutes.ts class DataRoutes (line 22) | class DataRoutes extends BaseRouteHandler { method constructor (line 23) | constructor( method setupRoutes (line 34) | setupRoutes(app: express.Application): void { method parsePaginationParams (line 302) | private parsePaginationParams(req: Request): { offset: number; limit: ... FILE: src/services/worker/http/routes/LogsRoutes.ts function readLastLines (line 18) | function readLastLines(filePath: string, lineCount: number): { lines: st... class LogsRoutes (line 87) | class LogsRoutes extends BaseRouteHandler { method getLogFilePath (line 88) | private getLogFilePath(): string { method getLogsDir (line 95) | private getLogsDir(): string { method setupRoutes (line 100) | setupRoutes(app: express.Application): void { FILE: src/services/worker/http/routes/MemoryRoutes.ts class MemoryRoutes (line 13) | class MemoryRoutes extends BaseRouteHandler { method constructor (line 14) | constructor( method setupRoutes (line 21) | setupRoutes(app: express.Application): void { FILE: src/services/worker/http/routes/SearchRoutes.ts class SearchRoutes (line 13) | class SearchRoutes extends BaseRouteHandler { method constructor (line 14) | constructor( method setupRoutes (line 20) | setupRoutes(app: express.Application): void { FILE: src/services/worker/http/routes/SessionRoutes.ts class SessionRoutes (line 26) | class SessionRoutes extends BaseRouteHandler { method constructor (line 31) | constructor( method getActiveAgent (line 54) | private getActiveAgent(): SDKAgent | GeminiAgent | OpenRouterAgent { method getSelectedProvider (line 77) | private getSelectedProvider(): 'claude' | 'gemini' | 'openrouter' { method ensureGeneratorRunning (line 95) | private ensureGeneratorRunning(sessionDbId: number, source: string): v... method startGeneratorWithProvider (line 150) | private startGeneratorWithProvider( method setupRoutes (line 310) | setupRoutes(app: express.Application): void { FILE: src/services/worker/http/routes/SettingsRoutes.ts class SettingsRoutes (line 21) | class SettingsRoutes extends BaseRouteHandler { method constructor (line 22) | constructor( method setupRoutes (line 28) | setupRoutes(app: express.Application): void { method validateSettings (line 234) | private validateSettings(settings: any): { valid: boolean; error?: str... method isMcpEnabled (line 371) | private isMcpEnabled(): boolean { method toggleMcp (line 380) | private toggleMcp(enabled: boolean): void { method ensureSettingsFile (line 401) | private ensureSettingsFile(settingsPath: string): void { FILE: src/services/worker/http/routes/ViewerRoutes.ts class ViewerRoutes (line 18) | class ViewerRoutes extends BaseRouteHandler { method constructor (line 19) | constructor( method setupRoutes (line 27) | setupRoutes(app: express.Application): void { FILE: src/services/worker/search/ResultFormatter.ts constant CHARS_PER_TOKEN_ESTIMATE (line 19) | const CHARS_PER_TOKEN_ESTIMATE = 4; class ResultFormatter (line 21) | class ResultFormatter { method formatSearchResults (line 25) | formatSearchResults( method combineResults (line 115) | combineResults(results: SearchResults): CombinedResult[] { method formatSearchTableHeader (line 141) | formatSearchTableHeader(): string { method formatTableHeader (line 149) | formatTableHeader(): string { method formatObservationSearchRow (line 157) | formatObservationSearchRow( method formatSessionSearchRow (line 178) | formatSessionSearchRow( method formatPromptSearchRow (line 199) | formatPromptSearchRow( method formatObservationIndex (line 221) | formatObservationIndex(obs: ObservationSearchResult, _index: number): ... method formatSessionIndex (line 237) | formatSessionIndex(session: SessionSummarySearchResult, _index: number... method formatPromptIndex (line 250) | formatPromptIndex(prompt: UserPromptSearchResult, _index: number): str... method estimateReadTokens (line 264) | private estimateReadTokens(obs: ObservationSearchResult): number { method formatChromaFailureMessage (line 275) | private formatChromaFailureMessage(): string { method formatSearchTips (line 288) | formatSearchTips(): string { FILE: src/services/worker/search/SearchOrchestrator.ts type NormalizedParams (line 38) | interface NormalizedParams extends StrategySearchOptions { class SearchOrchestrator (line 44) | class SearchOrchestrator { method constructor (line 51) | constructor( method search (line 71) | async search(args: any): Promise { method executeWithFallback (line 81) | private async executeWithFallback( method findByConcept (line 126) | async findByConcept(concept: string, args: any): Promise { method sortDaysChronologically (line 277) | private sortDaysChronologically( method isAnchorItem (line 290) | private isAnchorItem(item: TimelineItem, anchorId: number | string | n... FILE: src/services/worker/search/filters/DateFilter.ts function parseDateRange (line 14) | function parseDateRange(dateRange?: DateRange): { function isWithinDateRange (line 42) | function isWithinDateRange( function isRecent (line 66) | function isRecent(epoch: number): boolean { function filterResultsByDate (line 74) | function filterResultsByDate( function getDateBoundaries (line 88) | function getDateBoundaries(range: 'today' | 'week' | 'month' | '90days')... FILE: src/services/worker/search/filters/ProjectFilter.ts function getCurrentProject (line 13) | function getCurrentProject(): string { function normalizeProject (line 20) | function normalizeProject(project?: string): string | undefined { function matchesProject (line 37) | function matchesProject( function filterResultsByProject (line 51) | function filterResultsByProject( FILE: src/services/worker/search/filters/TypeFilter.ts type ObservationType (line 8) | type ObservationType = 'decision' | 'bugfix' | 'feature' | 'refactor' | ... constant OBSERVATION_TYPES (line 13) | const OBSERVATION_TYPES: ObservationType[] = [ function normalizeType (line 25) | function normalizeType( function matchesType (line 43) | function matchesType( function filterObservationsByType (line 57) | function filterObservationsByType( function parseTypeString (line 71) | function parseTypeString(typeString: string): ObservationType[] { FILE: src/services/worker/search/strategies/ChromaSearchStrategy.ts class ChromaSearchStrategy (line 27) | class ChromaSearchStrategy extends BaseSearchStrategy implements SearchS... method constructor (line 30) | constructor( method canHandle (line 37) | canHandle(options: StrategySearchOptions): boolean { method search (line 42) | async search(options: StrategySearchOptions): Promise { FILE: src/services/worker/validation/PrivacyCheckValidator.ts class PrivacyCheckValidator (line 10) | class PrivacyCheckValidator { method checkUserPromptPrivacy (line 20) | static checkUserPromptPrivacy( FILE: src/shared/EnvManager.ts constant DATA_DIR (line 18) | const DATA_DIR = join(homedir(), '.claude-mem'); constant ENV_FILE_PATH (line 19) | const ENV_FILE_PATH = join(DATA_DIR, '.env'); constant BLOCKED_ENV_VARS (line 28) | const BLOCKED_ENV_VARS = [ constant MANAGED_CREDENTIAL_KEYS (line 34) | const MANAGED_CREDENTIAL_KEYS = [ type ClaudeMemEnv (line 40) | interface ClaudeMemEnv { function parseEnvFile (line 50) | function parseEnvFile(content: string): Record { function serializeEnvFile (line 83) | function serializeEnvFile(env: Record): string { function loadClaudeMemEnv (line 106) | function loadClaudeMemEnv(): ClaudeMemEnv { function saveClaudeMemEnv (line 131) | function saveClaudeMemEnv(env: ClaudeMemEnv): void { function buildIsolatedEnv (line 192) | function buildIsolatedEnv(includeCredentials: boolean = true): Record( FILE: src/shared/transcript-parser.ts function extractLastMessage (line 10) | function extractLastMessage( FILE: src/shared/worker-utils.ts constant HEALTH_CHECK_TIMEOUT_MS (line 10) | const HEALTH_CHECK_TIMEOUT_MS = (() => { function fetchWithTimeout (line 31) | function fetchWithTimeout(url: string, init: RequestInit = {}, timeoutMs... function getWorkerPort (line 53) | function getWorkerPort(): number { function getWorkerHost (line 69) | function getWorkerHost(): string { function clearPortCache (line 84) | function clearPortCache(): void { function buildWorkerUrl (line 92) | function buildWorkerUrl(apiPath: string): string { function workerHttpRequest (line 101) | function workerHttpRequest( function isWorkerHealthy (line 136) | async function isWorkerHealthy(): Promise { function getPluginVersion (line 145) | function getPluginVersion(): string { function getWorkerVersion (line 163) | async function getWorkerVersion(): Promise { function checkWorkerVersion (line 178) | async function checkWorkerVersion(): Promise { function ensureWorkerRunning (line 212) | async function ensureWorkerRunning(): Promise { FILE: src/supervisor/env-sanitizer.ts constant ENV_PREFIXES (line 1) | const ENV_PREFIXES = ['CLAUDECODE_', 'CLAUDE_CODE_']; constant ENV_EXACT_MATCHES (line 2) | const ENV_EXACT_MATCHES = new Set([ constant ENV_PRESERVE (line 10) | const ENV_PRESERVE = new Set([ function sanitizeEnv (line 15) | function sanitizeEnv(env: NodeJS.ProcessEnv = process.env): NodeJS.Proce... FILE: src/supervisor/health-checker.ts constant HEALTH_CHECK_INTERVAL_MS (line 11) | const HEALTH_CHECK_INTERVAL_MS = 30_000; function runHealthCheck (line 15) | function runHealthCheck(): void { function startHealthChecker (line 24) | function startHealthChecker(): void { function stopHealthChecker (line 33) | function stopHealthChecker(): void { FILE: src/supervisor/index.ts constant DATA_DIR (line 9) | const DATA_DIR = path.join(homedir(), '.claude-mem'); constant PID_FILE (line 10) | const PID_FILE = path.join(DATA_DIR, 'worker.pid'); type PidInfo (line 12) | interface PidInfo { type ValidateWorkerPidOptions (line 18) | interface ValidateWorkerPidOptions { type ValidateWorkerPidStatus (line 23) | type ValidateWorkerPidStatus = 'missing' | 'alive' | 'stale' | 'invalid'; class Supervisor (line 25) | class Supervisor { method constructor (line 33) | constructor(registry: ProcessRegistry) { method start (line 37) | async start(): Promise { method configureSignalHandlers (line 51) | configureSignalHandlers(shutdownHandler: () => Promise): void { method stop (line 98) | async stop(): Promise { method assertCanSpawn (line 116) | assertCanSpawn(type: string): void { method registerProcess (line 122) | registerProcess(id: string, processInfo: ManagedProcessInfo, processRe... method unregisterProcess (line 126) | unregisterProcess(id: string): void { method getRegistry (line 130) | getRegistry(): ProcessRegistry { function startSupervisor (line 137) | async function startSupervisor(): Promise { function stopSupervisor (line 141) | async function stopSupervisor(): Promise { function getSupervisor (line 145) | function getSupervisor(): Supervisor { function configureSupervisorSignalHandlers (line 149) | function configureSupervisorSignalHandlers(shutdownHandler: () => Promis... function validateWorkerPidFile (line 153) | function validateWorkerPidFile(options: ValidateWorkerPidOptions = {}): ... FILE: src/supervisor/process-registry.ts constant REAP_SESSION_SIGTERM_TIMEOUT_MS (line 7) | const REAP_SESSION_SIGTERM_TIMEOUT_MS = 5_000; constant REAP_SESSION_SIGKILL_TIMEOUT_MS (line 8) | const REAP_SESSION_SIGKILL_TIMEOUT_MS = 1_000; constant DATA_DIR (line 10) | const DATA_DIR = path.join(homedir(), '.claude-mem'); constant DEFAULT_REGISTRY_PATH (line 11) | const DEFAULT_REGISTRY_PATH = path.join(DATA_DIR, 'supervisor.json'); type ManagedProcessInfo (line 13) | interface ManagedProcessInfo { type ManagedProcessRecord (line 20) | interface ManagedProcessRecord extends ManagedProcessInfo { type PersistedRegistry (line 24) | interface PersistedRegistry { function isPidAlive (line 28) | function isPidAlive(pid: number): boolean { class ProcessRegistry (line 41) | class ProcessRegistry { method constructor (line 47) | constructor(registryPath: string = DEFAULT_REGISTRY_PATH) { method initialize (line 51) | initialize(): void { method register (line 82) | register(id: string, processInfo: ManagedProcessInfo, processRef?: Chi... method unregister (line 91) | unregister(id: string): void { method clear (line 98) | clear(): void { method getAll (line 104) | getAll(): ManagedProcessRecord[] { method getBySession (line 115) | getBySession(sessionId: string | number): ManagedProcessRecord[] { method getRuntimeProcess (line 120) | getRuntimeProcess(id: string): ChildProcess | undefined { method getByPid (line 124) | getByPid(pid: number): ManagedProcessRecord[] { method pruneDeadEntries (line 128) | pruneDeadEntries(): number { method reapSession (line 151) | async reapSession(sessionId: string | number): Promise { method persist (line 232) | private persist(): void { function getProcessRegistry (line 244) | function getProcessRegistry(): ProcessRegistry { function createProcessRegistry (line 251) | function createProcessRegistry(registryPath: string): ProcessRegistry { FILE: src/supervisor/shutdown.ts constant DATA_DIR (line 11) | const DATA_DIR = path.join(homedir(), '.claude-mem'); constant PID_FILE (line 12) | const PID_FILE = path.join(DATA_DIR, 'worker.pid'); type TreeKillFn (line 14) | type TreeKillFn = (pid: number, signal?: string, callback?: (error?: Err... type ShutdownCascadeOptions (line 16) | interface ShutdownCascadeOptions { function runShutdownCascade (line 22) | async function runShutdownCascade(options: ShutdownCascadeOptions): Prom... function waitForExit (line 78) | async function waitForExit(records: ManagedProcessRecord[], timeoutMs: n... function signalProcess (line 90) | async function signalProcess(pid: number, signal: 'SIGTERM' | 'SIGKILL')... function loadTreeKill (line 148) | async function loadTreeKill(): Promise { FILE: src/types/database.ts type TableColumnInfo (line 9) | interface TableColumnInfo { type IndexInfo (line 21) | interface IndexInfo { type TableNameRow (line 32) | interface TableNameRow { type SchemaVersion (line 39) | interface SchemaVersion { type SdkSessionRecord (line 46) | interface SdkSessionRecord { type ObservationRecord (line 64) | interface ObservationRecord { type SessionSummaryRecord (line 82) | interface SessionSummaryRecord { type UserPromptRecord (line 100) | interface UserPromptRecord { type LatestPromptResult (line 113) | interface LatestPromptResult { type ObservationWithContext (line 126) | interface ObservationWithContext { FILE: src/types/transcript.ts type TodoItem (line 6) | interface TodoItem { type UsageInfo (line 13) | interface UsageInfo { type TextContent (line 22) | interface TextContent { type ToolUseContent (line 27) | interface ToolUseContent { type ToolResultContent (line 34) | interface ToolResultContent { type ThinkingContent (line 41) | interface ThinkingContent { type ImageSource (line 47) | interface ImageSource { type ImageContent (line 53) | interface ImageContent { type ContentItem (line 58) | type ContentItem = type UserMessage (line 65) | interface UserMessage { type AssistantMessage (line 70) | interface AssistantMessage { type FileInfo (line 81) | interface FileInfo { type FileReadResult (line 89) | interface FileReadResult { type CommandResult (line 94) | interface CommandResult { type TodoResult (line 101) | interface TodoResult { type EditResult (line 106) | interface EditResult { type ToolUseResult (line 115) | type ToolUseResult = type BaseTranscriptEntry (line 124) | interface BaseTranscriptEntry { type UserTranscriptEntry (line 136) | interface UserTranscriptEntry extends BaseTranscriptEntry { type AssistantTranscriptEntry (line 142) | interface AssistantTranscriptEntry extends BaseTranscriptEntry { type SummaryTranscriptEntry (line 148) | interface SummaryTranscriptEntry { type SystemTranscriptEntry (line 155) | interface SystemTranscriptEntry extends BaseTranscriptEntry { type QueueOperationTranscriptEntry (line 161) | interface QueueOperationTranscriptEntry { type TranscriptEntry (line 169) | type TranscriptEntry = FILE: src/ui/viewer/App.tsx function App (line 14) | function App() { FILE: src/ui/viewer/components/ContextSettingsModal.tsx type ContextSettingsModalProps (line 6) | interface ContextSettingsModalProps { function CollapsibleSection (line 16) | function CollapsibleSection({ function FormField (line 58) | function FormField({ function ToggleSwitch (line 87) | function ToggleSwitch({ function ContextSettingsModal (line 123) | function ContextSettingsModal({ FILE: src/ui/viewer/components/ErrorBoundary.tsx type Props (line 3) | interface Props { type State (line 7) | interface State { class ErrorBoundary (line 13) | class ErrorBoundary extends Component { method constructor (line 14) | constructor(props: Props) { method getDerivedStateFromError (line 23) | static getDerivedStateFromError(error: Error): Partial { method componentDidCatch (line 27) | componentDidCatch(error: Error, errorInfo: ErrorInfo) { method render (line 35) | render() { FILE: src/ui/viewer/components/Feed.tsx type FeedProps (line 9) | interface FeedProps { function Feed (line 18) | function Feed({ observations, summaries, prompts, onLoadMore, isLoading,... FILE: src/ui/viewer/components/GitHubStarsButton.tsx type GitHubStarsButtonProps (line 5) | interface GitHubStarsButtonProps { function GitHubStarsButton (line 11) | function GitHubStarsButton({ username, repo, className = '' }: GitHubSta... FILE: src/ui/viewer/components/Header.tsx type HeaderProps (line 7) | interface HeaderProps { function Header (line 19) | function Header({ FILE: src/ui/viewer/components/LogsModal.tsx type LogLevel (line 4) | type LogLevel = 'DEBUG' | 'INFO' | 'WARN' | 'ERROR'; type LogComponent (line 5) | type LogComponent = 'HOOK' | 'WORKER' | 'SDK' | 'PARSER' | 'DB' | 'SYSTE... type ParsedLogLine (line 7) | interface ParsedLogLine { constant LOG_LEVELS (line 18) | const LOG_LEVELS: { key: LogLevel; label: string; icon: string; color: s... constant LOG_COMPONENTS (line 26) | const LOG_COMPONENTS: { key: LogComponent; label: string; icon: string; ... function parseLogLine (line 39) | function parseLogLine(line: string): ParsedLogLine { type LogsDrawerProps (line 71) | interface LogsDrawerProps { function LogsDrawer (line 76) | function LogsDrawer({ isOpen, onClose }: LogsDrawerProps) { FILE: src/ui/viewer/components/ObservationCard.tsx type ObservationCardProps (line 5) | interface ObservationCardProps { function stripProjectRoot (line 10) | function stripProjectRoot(filePath: string): string { function ObservationCard (line 33) | function ObservationCard({ observation }: ObservationCardProps) { FILE: src/ui/viewer/components/PromptCard.tsx type PromptCardProps (line 5) | interface PromptCardProps { function PromptCard (line 9) | function PromptCard({ prompt }: PromptCardProps) { FILE: src/ui/viewer/components/ScrollToTop.tsx type ScrollToTopProps (line 3) | interface ScrollToTopProps { function ScrollToTop (line 7) | function ScrollToTop({ targetRef }: ScrollToTopProps) { FILE: src/ui/viewer/components/SummaryCard.tsx type SummaryCardProps (line 5) | interface SummaryCardProps { function SummaryCard (line 9) | function SummaryCard({ summary }: SummaryCardProps) { FILE: src/ui/viewer/components/TerminalPreview.tsx type TerminalPreviewProps (line 5) | interface TerminalPreviewProps { function TerminalPreview (line 19) | function TerminalPreview({ content, isLoading = false, className = '' }:... FILE: src/ui/viewer/components/ThemeToggle.tsx type ThemeToggleProps (line 4) | interface ThemeToggleProps { function ThemeToggle (line 9) | function ThemeToggle({ preference, onThemeChange }: ThemeToggleProps) { FILE: src/ui/viewer/constants/api.ts constant API_ENDPOINTS (line 5) | const API_ENDPOINTS = { FILE: src/ui/viewer/constants/settings.ts constant DEFAULT_SETTINGS (line 5) | const DEFAULT_SETTINGS = { FILE: src/ui/viewer/constants/timing.ts constant TIMING (line 5) | const TIMING = { FILE: src/ui/viewer/hooks/useContextPreview.ts type UseContextPreviewResult (line 4) | interface UseContextPreviewResult { function useContextPreview (line 14) | function useContextPreview(settings: Settings): UseContextPreviewResult { FILE: src/ui/viewer/hooks/useGitHubStars.ts type GitHubStarsData (line 3) | interface GitHubStarsData { type UseGitHubStarsReturn (line 9) | interface UseGitHubStarsReturn { function useGitHubStars (line 15) | function useGitHubStars(username: string, repo: string): UseGitHubStarsR... FILE: src/ui/viewer/hooks/usePagination.ts type PaginationState (line 6) | interface PaginationState { type DataType (line 11) | type DataType = 'observations' | 'summaries' | 'prompts'; type DataItem (line 12) | type DataItem = Observation | Summary | UserPrompt; function usePaginationFor (line 17) | function usePaginationFor(endpoint: string, dataType: DataType, currentF... function usePagination (line 94) | function usePagination(currentFilter: string) { FILE: src/ui/viewer/hooks/useSSE.ts function useSSE (line 6) | function useSSE() { FILE: src/ui/viewer/hooks/useSettings.ts function useSettings (line 7) | function useSettings() { FILE: src/ui/viewer/hooks/useSpinningFavicon.ts function useSpinningFavicon (line 7) | function useSpinningFavicon(isProcessing: boolean) { FILE: src/ui/viewer/hooks/useStats.ts function useStats (line 5) | function useStats() { FILE: src/ui/viewer/hooks/useTheme.ts type ThemePreference (line 3) | type ThemePreference = 'system' | 'light' | 'dark'; type ResolvedTheme (line 4) | type ResolvedTheme = 'light' | 'dark'; constant STORAGE_KEY (line 6) | const STORAGE_KEY = 'claude-mem-theme'; function getSystemTheme (line 8) | function getSystemTheme(): ResolvedTheme { function getStoredPreference (line 13) | function getStoredPreference(): ThemePreference { function resolveTheme (line 25) | function resolveTheme(preference: ThemePreference): ResolvedTheme { function useTheme (line 32) | function useTheme() { FILE: src/ui/viewer/types.ts type Observation (line 1) | interface Observation { type Summary (line 19) | interface Summary { type UserPrompt (line 31) | interface UserPrompt { type FeedItem (line 40) | type FeedItem = type StreamEvent (line 45) | interface StreamEvent { type Settings (line 57) | interface Settings { type WorkerStats (line 89) | interface WorkerStats { type DatabaseStats (line 96) | interface DatabaseStats { type Stats (line 103) | interface Stats { FILE: src/ui/viewer/utils/data.ts function mergeAndDeduplicateByProject (line 14) | function mergeAndDeduplicateByProject, field: string, fallback:... function getProjectName (line 232) | function getProjectName(workspacePath: string): string { function isEmpty (line 256) | function isEmpty(str: string | null | undefined): boolean { function urlEncode (line 267) | function urlEncode(str: string): string { FILE: src/utils/error-messages.ts type WorkerErrorMessageOptions (line 5) | interface WorkerErrorMessageOptions { function getWorkerRestartInstructions (line 17) | function getWorkerRestartInstructions( FILE: src/utils/logger.ts type LogLevel (line 10) | enum LogLevel { type Component (line 18) | type Component = 'HOOK' | 'WORKER' | 'SDK' | 'PARSER' | 'DB' | 'SYSTEM' ... type LogContext (line 20) | interface LogContext { constant DEFAULT_DATA_DIR (line 29) | const DEFAULT_DATA_DIR = join(homedir(), '.claude-mem'); class Logger (line 31) | class Logger { method constructor (line 37) | constructor() { method ensureLogFileInitialized (line 46) | private ensureLogFileInitialized(): void { method getLevel (line 74) | private getLevel(): LogLevel { method correlationId (line 98) | correlationId(sessionId: number, observationNum: number): string { method sessionId (line 105) | sessionId(sessionId: number): string { method formatData (line 112) | private formatData(data: any): string { method formatTool (line 148) | formatTool(toolName: string, toolInput?: any): string { method formatTimestamp (line 222) | private formatTimestamp(date: Date): string { method log (line 236) | private log( method debug (line 304) | debug(component: Component, message: string, context?: LogContext, dat... method info (line 308) | info(component: Component, message: string, context?: LogContext, data... method warn (line 312) | warn(component: Component, message: string, context?: LogContext, data... method error (line 316) | error(component: Component, message: string, context?: LogContext, dat... method dataIn (line 323) | dataIn(component: Component, message: string, context?: LogContext, da... method dataOut (line 330) | dataOut(component: Component, message: string, context?: LogContext, d... method success (line 337) | success(component: Component, message: string, context?: LogContext, d... method failure (line 344) | failure(component: Component, message: string, context?: LogContext, d... method timing (line 351) | timing(component: Component, message: string, durationMs: number, cont... method happyPathError (line 377) | happyPathError( FILE: src/utils/project-filter.ts function globToRegex (line 14) | function globToRegex(pattern: string): RegExp { function isProjectExcluded (line 46) | function isProjectExcluded(projectPath: string, exclusionPatterns: strin... FILE: src/utils/project-name.ts function getProjectName (line 12) | function getProjectName(cwd: string | null | undefined): string { type ProjectContext (line 45) | interface ProjectContext { function getProjectContext (line 65) | function getProjectContext(cwd: string | null | undefined): ProjectConte... FILE: src/utils/tag-stripping.ts constant MAX_TAG_COUNT (line 23) | const MAX_TAG_COUNT = 100; function countTags (line 29) | function countTags(content: string): number { function stripTagsInternal (line 41) | function stripTagsInternal(content: string): string { function stripMemoryTagsFromJson (line 67) | function stripMemoryTagsFromJson(content: string): string { function stripMemoryTagsFromPrompt (line 77) | function stripMemoryTagsFromPrompt(content: string): string { FILE: src/utils/transcript-parser.ts type ParseStats (line 19) | interface ParseStats { class TranscriptParser (line 27) | class TranscriptParser { method constructor (line 31) | constructor(transcriptPath: string) { method parseTranscript (line 35) | private parseTranscript(transcriptPath: string): void { method getEntriesByType (line 67) | getEntriesByType(type: T['type']): T[] { method getUserEntries (line 74) | getUserEntries(): UserTranscriptEntry[] { method getAssistantEntries (line 81) | getAssistantEntries(): AssistantTranscriptEntry[] { method getSummaryEntries (line 88) | getSummaryEntries(): SummaryTranscriptEntry[] { method getSystemEntries (line 95) | getSystemEntries(): SystemTranscriptEntry[] { method getQueueOperationEntries (line 102) | getQueueOperationEntries(): QueueOperationTranscriptEntry[] { method getLastEntryByType (line 109) | getLastEntryByType(type: T['type']): T | nu... method extractTextFromContent (line 117) | private extractTextFromContent(content: string | ContentItem[]): string { method getLastUserMessage (line 135) | getLastUserMessage(): string { method getLastAssistantMessage (line 153) | getLastAssistantMessage(filterSystemReminders = true): string { method getToolUseHistory (line 180) | getToolUseHistory(): Array<{ name: string; timestamp: string; input: a... method getTotalTokenUsage (line 203) | getTotalTokenUsage(): { method getParseStats (line 234) | getParseStats(): ParseStats { method getParseErrors (line 255) | getParseErrors(): Array<{ lineNumber: number; error: string }> { method getAllEntries (line 262) | getAllEntries(): TranscriptEntry[] { FILE: src/utils/worktree.ts type WorktreeInfo (line 14) | interface WorktreeInfo { constant NOT_A_WORKTREE (line 21) | const NOT_A_WORKTREE: WorktreeInfo = { function detectWorktree (line 34) | function detectWorktree(cwd: string): WorktreeInfo { FILE: tests/context/formatters/markdown-formatter.test.ts function createTestObservation (line 50) | function createTestObservation(overrides: Partial = {}): Ob... function createTestEconomics (line 70) | function createTestEconomics(overrides: Partial = {}): T... function createTestConfig (line 82) | function createTestConfig(overrides: Partial = {}): Conte... FILE: tests/context/observation-compiler.test.ts function createTestObservation (line 13) | function createTestObservation(overrides: Partial = {}): Ob... function createTestSummaryTimelineItem (line 33) | function createTestSummaryTimelineItem(overrides: Partial = {}): Ob... FILE: tests/infrastructure/graceful-shutdown.test.ts constant DATA_DIR (line 18) | const DATA_DIR = path.join(homedir(), '.claude-mem'); constant PID_FILE (line 19) | const PID_FILE = path.join(DATA_DIR, 'worker.pid'); FILE: tests/infrastructure/process-manager.test.ts constant DATA_DIR (line 22) | const DATA_DIR = path.join(homedir(), '.claude-mem'); constant PID_FILE (line 23) | const PID_FILE = path.join(DATA_DIR, 'worker.pid'); FILE: tests/infrastructure/wmic-parsing.test.ts function parsePowerShellOutput (line 13) | function parsePowerShellOutput(stdout: string): number[] { function isValidParentPid (line 23) | function isValidParentPid(parentPid: number): boolean { FILE: tests/infrastructure/worker-json-status.test.ts constant WORKER_SCRIPT (line 18) | const WORKER_SCRIPT = path.join(__dirname, '../../plugin/scripts/worker-... function runWorkerStart (line 24) | function runWorkerStart(): { stdout: string; exitCode: number } { FILE: tests/integration/chroma-vector-sync.test.ts function checkChromaAvailability (line 22) | async function checkChromaAvailability(): Promise<{ available: boolean; ... FILE: tests/log-level-audit.test.ts constant PROJECT_ROOT (line 20) | const PROJECT_ROOT = join(import.meta.dir, '..'); constant SRC_DIR (line 21) | const SRC_DIR = join(PROJECT_ROOT, 'src'); type LoggerCall (line 23) | interface LoggerCall { function findTypeScriptFiles (line 36) | async function findTypeScriptFiles(dir: string): Promise { function extractLoggerCalls (line 57) | function extractLoggerCalls(content: string, filePath: string): LoggerCa... function normalizeLevel (line 123) | function normalizeLevel(method: string): string { function generateReport (line 147) | function generateReport(calls: LoggerCall[]): string { function formatMessage (line 257) | function formatMessage(message: string): string { FILE: tests/logger-usage-standards.test.ts constant PROJECT_ROOT (line 17) | const PROJECT_ROOT = join(import.meta.dir, ".."); constant SRC_DIR (line 18) | const SRC_DIR = join(PROJECT_ROOT, "src"); constant EXCLUDED_PATTERNS (line 21) | const EXCLUDED_PATTERNS = [ constant HIGH_PRIORITY_PATTERNS (line 45) | const HIGH_PRIORITY_PATTERNS = [ type FileAnalysis (line 58) | interface FileAnalysis { function findTypeScriptFiles (line 71) | async function findTypeScriptFiles(dir: string): Promise { function shouldExclude (line 91) | function shouldExclude(filePath: string): boolean { function isHighPriority (line 99) | function isHighPriority(filePath: string): boolean { function analyzeFile (line 113) | function analyzeFile(filePath: string): FileAnalysis { FILE: tests/sdk-agent-resume.test.ts function shouldPassResumeParameter (line 18) | function shouldPassResumeParameter(session: { FILE: tests/services/queue/SessionQueueProcessor.test.ts function createMockStore (line 10) | function createMockStore(): PendingMessageStore { function createMockMessage (line 28) | function createMockMessage(overrides: Partial ... FILE: tests/services/sqlite/PendingMessageStore.test.ts function enqueueMessage (line 24) | function enqueueMessage(overrides: Partial = {}): number { function makeMessageStaleProcessing (line 40) | function makeMessageStaleProcessing(messageId: number): void { FILE: tests/services/sqlite/migration-runner.test.ts type TableNameRow (line 15) | interface TableNameRow { type TableColumnInfo (line 19) | interface TableColumnInfo { type SchemaVersion (line 25) | interface SchemaVersion { type ForeignKeyInfo (line 29) | interface ForeignKeyInfo { function getTableNames (line 35) | function getTableNames(db: Database): string[] { function getColumns (line 40) | function getColumns(db: Database, table: string): TableColumnInfo[] { function getSchemaVersions (line 44) | function getSchemaVersions(db: Database): number[] { FILE: tests/services/sqlite/schema-repair.test.ts function tempDbPath (line 22) | function tempDbPath(): string { function cleanup (line 26) | function cleanup(path: string): void { function hasPython (line 33) | function hasPython(): boolean { function corruptDbViaPython (line 47) | function corruptDbViaPython(dbPath: string): void { FILE: tests/services/sync/chroma-mcp-manager-ssl.test.ts method constructor (line 23) | constructor(opts: { command: string; args: string[] }) { method close (line 26) | async close() {} method constructor (line 32) | constructor() {} method connect (line 33) | async connect() {} method callTool (line 34) | async callTool() { method close (line 37) | async close() {} function assertSslFlag (line 67) | async function assertSslFlag(sslSetting: string | undefined, expectedVal... FILE: tests/shared/timeline-formatting.test.ts type TestItem (line 84) | interface TestItem { FILE: tests/smart-install.test.ts constant TEST_DIR (line 18) | const TEST_DIR = join(tmpdir(), `claude-mem-smart-install-test-${process... function createDir (line 20) | function createDir(relativePath: string): string { function createPackageJson (line 26) | function createPackageJson(dir: string, version = '10.0.0', deps: Record... FILE: tests/sqlite/data-integrity.test.ts function createObservationInput (line 22) | function createObservationInput(overrides: Partial = {... function createSessionWithMemoryId (line 36) | function createSessionWithMemoryId(db: Database, contentSessionId: strin... FILE: tests/sqlite/observations.test.ts function createObservationInput (line 38) | function createObservationInput(overrides: Partial = {... function createSessionWithMemoryId (line 53) | function createSessionWithMemoryId(contentSessionId: string, memorySessi... FILE: tests/sqlite/prompts.test.ts function createSession (line 32) | function createSession(contentSessionId: string, project: string = 'test... FILE: tests/sqlite/summaries.test.ts function createSummaryInput (line 36) | function createSummaryInput(overrides: Partial = {}): Summ... function createSessionWithMemoryId (line 49) | function createSessionWithMemoryId(contentSessionId: string, memorySessi... FILE: tests/sqlite/transactions.test.ts function createObservationInput (line 38) | function createObservationInput(overrides: Partial = {... function createSummaryInput (line 53) | function createSummaryInput(overrides: Partial = {}): Summ... function createSessionWithMemoryId (line 66) | function createSessionWithMemoryId(contentSessionId: string, memorySessi... FILE: tests/supervisor/index.test.ts function makeTempDir (line 7) | function makeTempDir(): string { FILE: tests/supervisor/process-registry.test.ts function makeTempDir (line 7) | function makeTempDir(): string { FILE: tests/supervisor/shutdown.test.ts function makeTempDir (line 8) | function makeTempDir(): string { FILE: tests/utils/logger-format-tool.test.ts function formatTool (line 8) | function formatTool(toolName: string, toolInput?: any): string { FILE: tests/worker-spawn.test.ts constant TEST_PORT (line 19) | const TEST_PORT = 37877; constant TEST_DATA_DIR (line 20) | const TEST_DATA_DIR = path.join(homedir(), '.claude-mem-test'); constant TEST_PID_FILE (line 21) | const TEST_PID_FILE = path.join(TEST_DATA_DIR, 'worker.pid'); constant WORKER_SCRIPT (line 22) | const WORKER_SCRIPT = path.join(__dirname, '../plugin/scripts/worker-ser... type PidInfo (line 24) | interface PidInfo { function isPortInUse (line 33) | async function isPortInUse(port: number): Promise { function waitForHealth (line 47) | async function waitForHealth(port: number, timeoutMs: number = 30000): P... function runWorkerCommand (line 59) | function runWorkerCommand(command: string, env: Record =... FILE: tests/worker/agents/response-processor.test.ts function createMockSession (line 113) | function createMockSession( FILE: tests/worker/agents/session-cleanup-helper.test.ts function createMockSession (line 21) | function createMockSession( function createMockWorker (line 46) | function createMockWorker() { FILE: tests/worker/http/routes/data-routes-coercion.test.ts function createMockReqRes (line 30) | function createMockReqRes(body: any): { req: Partial; res: Part... FILE: tests/worker/middleware/cors-restriction.test.ts function isAllowedOrigin (line 14) | function isAllowedOrigin(origin: string | undefined): boolean { function buildProductionCorsMiddleware (line 25) | function buildProductionCorsMiddleware() { FILE: tests/worker/process-registry.test.ts function createMockProcess (line 17) | function createMockProcess(overrides: { exitCode?: number | null; killed... function clearRegistry (line 40) | function clearRegistry() { FILE: tests/zombie-prevention.test.ts function createMockSession (line 40) | function createMockSession( function createDbSession (line 68) | function createDbSession(contentSessionId: string, project: string = 'te... function enqueueTestMessage (line 75) | function enqueueTestMessage(sessionDbId: number, contentSessionId: strin...