// Force strict mode and setup for ESM
"use strict";
import {
  AGENT_WORKTREE_HEX_LENGTH,
  AGENT_WORKTREE_PREFIX,
  AGENT_WORKTREE_SLUG_PATTERN,
  ALIBABA_PROVIDERS,
  ALL_PROVIDERS,
  APPROVAL_MODES,
  APPROVAL_MODE_INFO,
  ARENA_MAX_AGENTS,
  AUTO_MEMORY_SCHEMA_VERSION,
  AUTO_MEMORY_TYPES,
  AUTO_MODE_DENIAL_LIMITS,
  AUTO_SKILL_THRESHOLD,
  AbortError,
  AgentCore,
  AgentEventEmitter,
  AgentEventType,
  AgentHeadless,
  AgentInteractive,
  AgentStatus,
  AgentTerminateMode,
  ApprovalMode,
  ArenaAgentClient,
  ArenaEventEmitter,
  ArenaEventType,
  ArenaManager,
  ArenaSessionStatus,
  AsyncMessageQueue,
  AuthProviderType,
  BASELINE_COMMIT_MESSAGE,
  BUNDLE_CHUNK_DIR,
  BackgroundAgentResumeService,
  BackgroundShellRegistry,
  BackgroundTaskRegistry,
  BudgetExhaustedError,
  BuiltinAgentRegistry,
  CODE_ACTION_KIND_LABELS,
  CODING_PLAN_CHINA_BASE_URL,
  CODING_PLAN_ENV_KEY,
  CODING_PLAN_GLOBAL_BASE_URL,
  CUSTOM_API_KEY_ENV_PREFIX,
  ChatRecordingService,
  CloseDiffRequestSchema,
  ColorMode,
  CompressionStatus,
  ConditionalRulesRegistry,
  Config,
  ContextState,
  CoreToolScheduler,
  CronScheduler,
  DEFAULT_AUTO_DREAM_MIN_HOURS,
  DEFAULT_AUTO_DREAM_MIN_SESSIONS,
  DEFAULT_BACKGROUND_AGENT_CONTINUATION_MESSAGE,
  DEFAULT_BUILTIN_SUBAGENT_TYPE,
  DEFAULT_LSP_COMMAND_CHECK_TIMEOUT_MS,
  DEFAULT_LSP_DOCUMENT_OPEN_DELAY_MS,
  DEFAULT_LSP_DOCUMENT_RETRY_DELAY_MS,
  DEFAULT_LSP_MAX_RESTARTS,
  DEFAULT_LSP_REQUEST_TIMEOUT_MS,
  DEFAULT_LSP_SOCKET_MAX_RETRY_DELAY_MS,
  DEFAULT_LSP_SOCKET_RETRY_DELAY_MS,
  DEFAULT_LSP_STARTUP_TIMEOUT_MS,
  DEFAULT_LSP_WARMUP_DELAY_MS,
  DEFAULT_LSP_WORKSPACE_SYMBOL_WARMUP_DELAY_MS,
  DEFAULT_STOP_HOOK_BLOCK_CAP,
  DEFAULT_TRUNCATE_TOOL_OUTPUT_LINES,
  DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
  DIAGNOSTIC_SEVERITY_LABELS,
  DISPLAY_MODE,
  DREAM_TASK_TYPE,
  DiscoveredTool,
  EXCLUDED_TOOLS_FOR_SUBAGENTS,
  EXTENSIONS_CONFIG_FILENAME,
  EXTENSIONS_DIRECTORY_NAME,
  EXTENSION_SETTINGS_FILENAME,
  EXTERNAL_MESSAGE_PREFIX,
  EXTRACT_TASK_TYPE,
  ExtensionManager,
  ExtensionSettingScope,
  ExtensionUpdateState,
  FileDiscoveryService,
  FileEncoding,
  FileHistoryService,
  FileReadCache,
  FileSchema,
  FileSearchFactory,
  GOAL_HOOK_TIMEOUT_MS,
  GOAL_HOOK_TIMEOUT_SECONDS,
  GeminiChat,
  GeminiClient,
  GeminiEventType,
  GitIgnoreParser,
  GitService,
  GitWorktreeService,
  HookRegistry,
  HookSystem,
  IDEConnectionStatus,
  IDE_DEFINITIONS,
  IDE_MAX_OPEN_FILES,
  IDE_MAX_SELECTED_TEXT_LENGTH,
  IDE_REQUEST_TIMEOUT_MS,
  IDLE_SPECULATION,
  INITIAL_FOLLOWUP_STATE,
  INSTALL_METADATA_FILENAME,
  ITermBackend,
  IdeClient,
  IdeContextNotificationSchema,
  IdeContextSchema,
  IdeContextStore,
  IdeDiffAcceptedNotificationSchema,
  IdeDiffClosedNotificationSchema,
  IdeDiffRejectedNotificationSchema,
  Ignore,
  InProcessBackend,
  InvalidStreamError,
  JsonFormatter,
  LITE_READ_BUF_SIZE,
  Logger,
  LspConfigLoader,
  LspConnectionFactory,
  LspResponseNormalizer,
  LspServerManager,
  MAX_CONCURRENT_MONITORS,
  MAX_DIFF_SIZE_BYTES,
  MAX_FILES,
  MAX_FILES_FOR_DETAILS,
  MAX_GOAL_ITERATIONS,
  MAX_LINES_PER_FILE,
  MAX_RETAINED_TERMINAL_AGENTS,
  MAX_RETAINED_TERMINAL_MONITORS,
  MAX_RETAINED_TERMINAL_SHELLS,
  MAX_TRANSCRIPT_MESSAGES,
  MCPDiscoveryState,
  MCPOAuthProvider,
  MCPOAuthTokenStorage,
  MCPServerConfig,
  MCPServerStatus,
  MCP_BUDGET_REARM_FRACTION,
  MCP_BUDGET_WARN_FRACTION,
  MCP_DEFAULT_TIMEOUT_MSEC,
  MOCK_TOOL_GET_CONFIRMATION_DETAILS,
  MOCK_TOOL_GET_DEFAULT_PERMISSION,
  McpClient,
  McpClientManager,
  MemoryManager,
  MessageBus,
  MessageBusType,
  MessageSenderType,
  MockModifiableTool,
  MockModifiableToolInvocation,
  MockTool,
  MonitorRegistry,
  NativeLspClient,
  NativeLspService,
  OAUTH_AUTH_URL_EVENT,
  OAUTH_DISPLAY_MESSAGE_EVENT,
  OAuthUtils,
  OPENROUTER_BASE_URL,
  OPENROUTER_ENV_KEY,
  OpenDiffRequestSchema,
  OverlayFs,
  PROVIDER_METADATA_NS,
  PermissionManager,
  ProviderInstallError,
  QWEN_CODE_COMPANION_EXTENSION_NAME,
  QWEN_CODE_SIMPLE_ENV_VAR,
  RUNTIME_STATUS_SCHEMA_VERSION,
  RipGrepTool,
  SAFE_TOOL_ALLOWLIST,
  SESSION_TITLE_MAX_LENGTH,
  SHELL_TOOL_NAMES,
  SKILL_REVIEW_TASK_TYPE,
  STARTUP_CONTEXT_MODEL_ACK,
  STOP_HOOK_BLOCK_CAP_ENV,
  SUGGESTION_PROMPT,
  SYMBOL_KIND_LABELS,
  SdkControlClientTransport,
  SendMessageType,
  SessionService,
  SettingScope,
  ShellExecutionService,
  SkillActivationRegistry,
  SkillError,
  SkillManager,
  StandardFileSystemService,
  StreamEventType,
  SubagentError,
  SubagentErrorCode,
  SubagentManager,
  SubagentValidator,
  TERMINAL_CSI_REGEX,
  TERMINAL_OSC_REGEX,
  TERMINAL_SHIFT_DCS_REGEX,
  TEST_ONLY,
  THIRD_PARTY_PROVIDERS,
  TOKEN_PLAN_BASE_URL,
  TOKEN_PLAN_ENV_KEY,
  TOOL_NAME_ALIASES,
  TOOL_USE_SUMMARY_SYSTEM_PROMPT,
  TmuxBackend,
  ToolRegistry,
  TrustGateError,
  Turn,
  WORKTREES_DIR,
  WORKTREE_BRANCH_PREFIX,
  WORKTREE_SESSION_FILE,
  WorkspaceContext,
  WorkspaceMemoryFileTooLargeError,
  WorkspaceMemoryWriteTimeoutError,
  __resetActiveGoalStoreForTests,
  _recoverObjectsFromLine,
  _resetCachedIdeServerHost,
  _resetEnsuredDirsCacheForTest,
  _resetRipGrepCachesForTest,
  abortGoalForStopHookCap,
  abortSpeculation,
  acceptSpeculation,
  activeGoalEquals,
  addMCPStatusChangeListener,
  alibabaStandardProvider,
  allowEditorTypeInSandbox,
  appendToLastTextPart,
  applyAutoModeDecision,
  applyProviderInstallPlan,
  buildApiHistoryFromConversation,
  buildBackgroundEntryLabel,
  buildDeferredToolsSection,
  buildFallbackApproachSummary,
  buildHumanReadableRuleLabel,
  buildInstallPlan,
  buildModelIdContext,
  buildPermissionCheckContext,
  buildPermissionRules,
  buildProviderTemplate,
  canUseRipgrep,
  checkArgumentSafety,
  checkCommandPermissions,
  checkForExtensionUpdate,
  checkHasEditorType,
  checkNpmUpdate,
  cleanSummary,
  cleanupTmpDir,
  clearActiveGoal,
  clearCacheSafeParams,
  clearGoalTerminalObserver,
  clearRuntimeStatus,
  clearWelcomeBackState,
  clearWorktreeSession,
  cliSource,
  cloneFromGit,
  codingPlanProvider,
  collectMemoryDiagnostics,
  commandExists,
  computeModelListVersion,
  computedSource,
  connectAndDiscover,
  connectToMcpServer,
  convertClaudeAgentConfig,
  convertClaudePluginPackage,
  convertClaudeToQwenConfig,
  convertColorToHex,
  convertToFunctionResponse,
  convertTomlToMarkdown,
  copyExtension,
  countLines,
  crawlCache_exports,
  createDefaultAutoMemoryExtractCursor,
  createDefaultAutoMemoryIndex,
  createDefaultAutoMemoryMetadata,
  createDenialState,
  createFollowupController,
  createForkedChat,
  createGoalStopHookCallback,
  createTmpDir,
  createToolUseSummaryMessage,
  createTransport,
  customProvider,
  decodeTagName,
  deepseekProvider,
  defaultSource,
  detectBackend,
  detectCommandSubstitution,
  detectIdeFromEnv,
  detectLineEnding,
  discoverMcpTools,
  discoverPrompts,
  discoverTools,
  doesToolInvocationMatch,
  downloadFromGitHubRelease,
  downloadFromNpmRegistry,
  editorCommands,
  encodeInsightProgressMessage,
  encodeInsightReadyMessage,
  encodeTagName,
  encodeTextFileContent,
  ensureAutoMemoryScaffold,
  ensureCrlfLineEndings,
  ensureMacBinarySigned,
  ensureRipgrepHealthy,
  ensureToolResultPairing,
  envLayer,
  escapeShellArg,
  evaluateAutoMode,
  evaluatePermissionFlow,
  evaluatePermissionRules,
  evaluateToolCall,
  execCommand,
  executeToolCall,
  exists,
  extractFile,
  extractJsonStringField,
  extractLastJsonStringField,
  extractLastJsonStringFields,
  extractShellOperations,
  extractToolFilePaths,
  fetchGitDiff,
  fetchGitDiffHunks,
  filter,
  findGitRoot,
  findProviderByCredentials,
  findProviderById,
  findReleaseAsset,
  fireNotificationHook,
  firePermissionRequestHook,
  firePostToolUseFailureHook,
  firePostToolUseHook,
  firePreToolUseHook,
  flatMapTextParts,
  formatClassifierBlockMessage,
  formatLineStats,
  formatMemoryUsage,
  formatStopHookBlockingCapWarning,
  generateAgentWorktreeSlug,
  generateCustomEnvKey,
  generatePromptSuggestion,
  generateSessionRecap,
  generateToolUseId,
  generateToolUseSummary,
  getActiveGoal,
  getAllMCPServerStatuses,
  getAllProviderBaseUrls,
  getArenaSystemReminder,
  getBuiltinRipgrep,
  getCacheSafeParams,
  getCommandRoot,
  getCommandRoots,
  getCompressionPrompt,
  getCoreSystemPrompt,
  getCustomSystemPrompt,
  getDefaultBaseUrlForProtocol,
  getDefaultModelIds,
  getDiffCommand,
  getDirectoryContextString,
  getEditorExecutable,
  getEnvContents,
  getEnvironmentContext,
  getExtensionId,
  getExternalEditorCommand,
  getFilterReason,
  getFolderStructure,
  getFunctionCalls,
  getFunctionCallsAsJson,
  getFunctionCallsFromParts,
  getFunctionCallsFromPartsAsJson,
  getGitBranch,
  getGitRepoName,
  getIdeInstaller,
  getIdeServerHost,
  getInitialChatHistory,
  getInsightPrompt,
  getLastGoalTerminal,
  getMCPDiscoveryState,
  getMCPServerPrompts,
  getMCPServerStatus,
  getMonitorOutputPath,
  getPlanModeSystemReminder,
  getProjectSummaryInfo,
  getProjectSummaryPrompt,
  getRateLimitErrorDetails,
  getRateLimitRetryDelayMs,
  getRecentGitStatus,
  getResponseText,
  getResponseTextFromParts,
  getResumePromptTokenCount,
  getRuleDisplayName,
  getScopedEnvContents,
  getShellAbortReasonKind,
  getShellConfiguration,
  getSpecifierKind,
  getStructuredResponse,
  getStructuredResponseFromParts,
  getSubagentSystemReminder,
  getThoughtText,
  getWelcomeBackState,
  globalMemoryManager,
  hasNetworkTransport,
  hasNonFinalTopLevelBackgroundOperator,
  hasUnsafeMonitorBackgroundOperator,
  hashValue,
  hydrateString,
  ideContextStore,
  idealabProvider,
  injectPermissionRulesIfMissing,
  invokeMcpPrompt,
  isApiError,
  isApproveOutcome,
  isAutoEditApproved,
  isBareMode,
  isBinary,
  isClaudePluginConfig,
  isCommandAllowed,
  isCommandAvailable,
  isCommandNeedsPermission,
  isEditorAvailable,
  isEnabled,
  isGenericQuotaExceededError,
  isGitRepository,
  isInSafeToolAllowlist,
  isInvalidArgumentError,
  isModifiableDeclarativeTool,
  isPathWithinRoot,
  isPlanModeBlocked,
  isProQuotaExceededError,
  isQwenQuotaExceededError,
  isRateLimitError,
  isSchemaDepthError,
  isScopedNpmPackage,
  isSdkMcpServerConfig,
  isSettledStatus,
  isStructuredError,
  isSuccessStatus,
  isTerminalEditor,
  isTerminalStatus,
  isTomlFormat,
  isToolEnabled,
  isTransientCapacityError,
  isUnattendedMode,
  isValidEditorType,
  isValidNonThoughtTextPart,
  isWindows,
  judgeGoal,
  layer,
  loadIgnoreRules,
  loadServerHierarchicalMemory,
  makeFakeConfig,
  matchesCommandPattern,
  matchesDomainPattern,
  matchesMcpPattern,
  matchesPathPattern,
  matchesRule,
  maybePromptForSettings,
  mcpServerRequiresOAuth,
  mcpTransportOf,
  mergeClaudeConfigs,
  minimaxProvider,
  modelProvidersSource,
  modelscopeProvider,
  modifyWithEditor,
  needsConfirmation,
  needsUtf8Bom,
  normalizeContent,
  normalizeMonitorCommand,
  normalizeProxyUrl,
  normalizeSkillPriority,
  normalizeStopHookBlockingCap,
  notifyGoalTerminal,
  openDiff,
  openRouterProvider,
  parse,
  parseAndFormatApiError,
  parseDeletedFromNameStatus,
  parseGitDiff,
  parseGitHubRepoForReleases,
  parseGitNumstat,
  parseInsightMessage,
  parseInstallSource,
  parseLineTolerant,
  parseNpmPackageSource,
  parseRule,
  parseRules,
  parseShortstat,
  parseThought,
  partListUnionToString,
  partToString,
  passesAcceptEditsFastPath,
  performVariableReplacement,
  persistPermissionOutcome,
  populateMcpServerCommand,
  prependToFirstTextPart,
  promptForSetting,
  promptIdContext,
  providerMatchesCredentials,
  read,
  readAutoMemoryIndex,
  readLastJsonStringFieldSync,
  readLastJsonStringFieldsSync,
  readLines,
  readManyFiles,
  readPathFromWorkspace,
  readRuntimeStatus,
  readWorktreeSession,
  readWorktreeSessionMarker,
  recordAllow,
  recordBlock,
  recordFallbackApprove,
  recordGoalIteration,
  recordStartupEvent,
  recordUnavailable,
  recursivelyHydrateStrings,
  redactStructuredOutputArgsForRecording,
  registerGoalHook,
  removeMCPServerStatus,
  removeMCPStatusChangeListener,
  repairOrphanedToolUseTurns,
  replayUiTelemetryFromConversation,
  resetDenialState,
  resetUtf8BomCache,
  resolveBaseUrl,
  resolveBundleDir,
  resolveCommandPath,
  resolveField,
  resolveGitDir,
  resolveMetadataKey,
  resolveModelConfig,
  resolveModelId,
  resolveNpmRegistry,
  resolveOptionalField,
  resolveOwnsModel,
  resolvePathFromEnv,
  resolvePathPattern,
  resolveRipgrep,
  resolveStopHookBlockingCap,
  resolveToolName,
  restoreWorktreeContext,
  retryWithBackoff,
  rewritePathArgs,
  runForkedAgent,
  runRipgrep,
  runWithForkedChatModel,
  safeAgentId,
  safeLiteralReplace,
  sanitizeTitle,
  sanitizeToolCallResultForRecording,
  saveCacheSafeParams,
  saveWelcomeBackRestartChoice,
  serializeTerminalToObject,
  serializeTerminalToText,
  setActiveGoal,
  setGoalTerminalObserver,
  setLastGoalTerminal,
  setStartupEventSink,
  settingsSource,
  shouldAttemptBrowserLaunch,
  shouldDefaultToNodePty,
  shouldFallback,
  shouldFilterSuggestion,
  shouldRunAutoModeForCall,
  shouldShowStep,
  splitCommands,
  splitCompoundCommand,
  splitConditionalSkills,
  startSpeculation,
  stringify,
  stripShellWrapper,
  stripStartupContext,
  stripTerminalControlSequences,
  stripTrailingBackgroundAmp,
  subagentGenerator,
  substituteHookVariables,
  summarizeUnifiedDiff,
  templateString,
  tokenPlanProvider,
  toolMatchesRuleToolName,
  truncateJson,
  tryGenerateSessionTitle,
  unescapeJsonString,
  unregisterGoalHook,
  updateMCPServerStatus,
  updateSetting,
  validateName,
  validateVariables,
  worktreeBranchForSlug,
  write,
  writeLine,
  writeLineSync,
  writeRuntimeStatus,
  writeWorkspaceContextFile,
  writeWorktreeSession,
  writeWorktreeSessionMarker,
  zaiProvider
} from "./chunk-O64I5ZCC.js";
import "./chunk-K5PGHDBN.js";
import "./chunk-O4PICXES.js";
import "./chunk-TW522KN6.js";
import {
  InputFormat,
  OutputFormat
} from "./chunk-MLZQVCF3.js";
import {
  runSideQuery
} from "./chunk-CAVZVZX6.js";
import {
  buildSkillLlmContent
} from "./chunk-G7YTSRES.js";
import {
  AgentType,
  DefaultHookOutput,
  HOOKS_CONFIG_FIELDS,
  HookEventName,
  HookPhase,
  HookType,
  HooksConfigSource,
  NotificationType,
  PermissionMode,
  PermissionRequestHookOutput,
  PostCompactTrigger,
  PostToolUseFailureHookOutput,
  PostToolUseHookOutput,
  PreCompactTrigger,
  PreToolUseHookOutput,
  SessionEndReason,
  SessionStartSource,
  StopHookOutput,
  createHookOutput,
  detectTodoChanges,
  getHookKey
} from "./chunk-4AOCVI6J.js";
import {
  DEFAULT_FILE_FILTERING_OPTIONS,
  DEFAULT_MEMORY_FILE_FILTERING_OPTIONS
} from "./chunk-77WXWU44.js";
import {
  KeychainTokenStorage
} from "./chunk-F23NCRJ2.js";
import {
  SUPPORTED_IMAGE_MIME_TYPES,
  TextTokenizer,
  detectRuntime,
  getOrCreateSharedDispatcher,
  getSupportedImageFormatsString,
  getUnsupportedImageFormatWarning,
  isSupportedImageMimeType,
  redactProxyCredentials
} from "./chunk-CSWBPY3P.js";
import {
  AGENT_CONTEXT_FILENAME,
  ApiCancelEvent,
  ApiErrorEvent,
  ApiRequestEvent,
  ApiRequestPhase,
  ApiResponseEvent,
  AuthEvent,
  AuthType,
  BINARY_EXTENSIONS,
  BINARY_FILE_PATTERNS,
  COMMON_DIRECTORY_EXCLUDES,
  COMMON_IGNORE_PATTERNS,
  ConversationFinishedEvent,
  DEFAULT_CONTEXT_FILENAME,
  DEFAULT_ENCODING,
  DEFAULT_FILE_EXCLUDES,
  DEFAULT_OTLP_ENDPOINT,
  DEFAULT_TELEMETRY_TARGET,
  DiscoveredMCPTool,
  EVENT_API_ERROR,
  EVENT_API_RESPONSE,
  EVENT_TOOL_CALL,
  EndSessionEvent,
  ExtensionDisableEvent,
  ExtensionEnableEvent,
  ExtensionInstallEvent,
  ExtensionUninstallEvent,
  FileExclusions,
  FileOperation,
  FlashFallbackEvent,
  IdeConnectionEvent,
  IdeConnectionType,
  KittySequenceOverflowEvent,
  LoopType,
  MAIN_SOURCE,
  MEDIA_FILE_PATTERNS,
  MEMORY_SECTION_HEADER,
  MODEL_GENERATION_CONFIG_FIELDS,
  MemoryDreamEvent,
  MemoryExtractEvent,
  MemoryMetricType,
  MemoryRecallEvent,
  ModelRegistry,
  ModelSlashCommandEvent,
  ModelsConfig,
  NextSpeakerCheckEvent,
  OpenAILogger,
  PYTHON_EXCLUDES,
  PerformanceMetricType,
  PromptSuggestionEvent,
  QWEN_OAUTH_MODELS,
  QwenLogger,
  ReadFileTool,
  RipgrepFallbackEvent,
  SYSTEM_FILE_EXCLUDES,
  SemanticAttributes,
  SkillLaunchEvent,
  SlashCommandStatus,
  SpeculationEvent,
  StartSessionEvent,
  TelemetryTarget,
  ToolCallEvent,
  ToolExecutionPhase,
  ToolOutputTruncatedEvent,
  UiTelemetryService,
  UserFeedbackEvent,
  UserFeedbackRating,
  UserPromptEvent,
  UserRetryEvent,
  addModelOutputAttributes,
  addSystemPromptAttributes,
  addToolInputAttributes,
  addToolResultAttributes,
  addToolSchemaAttributes,
  addUserPromptAttributes,
  countFileLines,
  createContentGenerator,
  createContentGeneratorConfig,
  decodeBufferWithEncodingInfo,
  detectBOM,
  detectEncodingFromBuffer,
  detectFileEncoding,
  detectFileType,
  endHookSpan,
  endInteractionSpan,
  endLLMRequestSpan,
  endToolBlockedOnUserSpan,
  endToolExecutionSpan,
  endToolSpan,
  extractExtensionsFromPatterns,
  fileExists,
  generateValidName,
  getActiveInteractionSpan,
  getAllGeminiMdFilenames,
  getCachedEncodingForBuffer,
  getCurrentGeminiMdFilename,
  getSpecificMimeType,
  getSystemEncoding,
  initializeTelemetry,
  isBinaryFile,
  isPerformanceMonitoringActive,
  isTelemetrySdkInitialized,
  isWithinRoot,
  logApiCancel,
  logApiError,
  logApiRequest,
  logApiResponse,
  logArenaAgentCompleted,
  logArenaSessionEnded,
  logArenaSessionStarted,
  logAuth,
  logChatCompression,
  logConversationFinishedEvent,
  logExtensionDisable,
  logExtensionEnable,
  logExtensionInstallEvent,
  logExtensionUninstall,
  logExtensionUpdateEvent,
  logFlashFallback,
  logIdeConnection,
  logKittySequenceOverflow,
  logMemoryDream,
  logMemoryExtract,
  logMemoryRecall,
  logModelSlashCommand,
  logNextSpeakerCheck,
  logPromptSuggestion,
  logRipgrepFallback,
  logSkillLaunch,
  logSlashCommand,
  logSpeculation,
  logStartSession,
  logToolCall,
  logToolOutputTruncated,
  logUserFeedback,
  logUserPrompt,
  logUserRetry,
  makeArenaAgentCompletedEvent,
  makeArenaSessionEndedEvent,
  makeArenaSessionStartedEvent,
  makeChatCompressionEvent,
  makeSlashCommandEvent,
  modelRegistryKey,
  openaiLogger,
  parseBooleanEnvFlag,
  parseTelemetryTargetValue,
  processSingleFileContent,
  readFileWithEncoding,
  readFileWithEncodingInfo,
  readFileWithLineAndLimit,
  recordApiErrorMetrics,
  recordApiRequestBreakdown,
  recordApiResponseMetrics,
  recordArenaAgentCompletedMetrics,
  recordArenaSessionEndedMetrics,
  recordArenaSessionStartedMetrics,
  recordBaselineComparison,
  recordContentRetry,
  recordContentRetryFailure,
  recordCpuUsage,
  recordFileOperationMetric,
  recordInvalidChunk,
  recordMemoryDreamMetrics,
  recordMemoryExtractMetrics,
  recordMemoryRecallMetrics,
  recordMemoryUsage,
  recordPerformanceRegression,
  recordPerformanceScore,
  recordStartupPerformance,
  recordTokenEfficiency,
  recordTokenUsageMetrics,
  recordToolCallMetrics,
  recordToolExecutionBreakdown,
  recordToolQueueDepth,
  refreshSessionContext,
  resetEncodingCache,
  resolveContentGeneratorConfigWithSources,
  resolveOpenAILogDir,
  resolveTelemetrySettings,
  runInToolSpanContext,
  sanitizeHookName,
  setGeminiMdFilename,
  shutdownTelemetry,
  startHookSpan,
  startInteractionSpan,
  startLLMRequestSpan,
  startToolBlockedOnUserSpan,
  startToolExecutionSpan,
  startToolSpan,
  truncateContent,
  truncateSpanError,
  uiTelemetryService,
  validateModelConfig,
  windowsCodePageToEncoding
} from "./chunk-7QVG36DW.js";
import "./chunk-UWCTAVOD.js";
import {
  DEFAULT_QWEN_EMBEDDING_MODEL,
  DEFAULT_QWEN_FLASH_MODEL,
  DEFAULT_QWEN_MODEL,
  MAINLINE_CODER_MODEL
} from "./chunk-OFEVLU4C.js";
import {
  AUTO_MEMORY_CONSOLIDATION_LOCK_FILENAME,
  AUTO_MEMORY_DIRNAME,
  AUTO_MEMORY_EXTRACT_CURSOR_FILENAME,
  AUTO_MEMORY_INDEX_FILENAME,
  AUTO_MEMORY_METADATA_FILENAME,
  clearAutoMemoryRootCache,
  getAutoMemoryConsolidationLockPath,
  getAutoMemoryExtractCursorPath,
  getAutoMemoryFilePath,
  getAutoMemoryIndexPath,
  getAutoMemoryMetadataPath,
  getAutoMemoryProjectStateDir,
  getAutoMemoryRoot,
  getAutoMemoryTopicFilename,
  getAutoMemoryTopicPath,
  getMemoryBaseDir,
  isAutoMemPath
} from "./chunk-PR4T27R7.js";
import {
  CAPPED_DEFAULT_MAX_TOKENS,
  DEFAULT_OUTPUT_TOKEN_LIMIT,
  DEFAULT_TOKEN_LIMIT,
  ESCALATED_MAX_TOKENS,
  RuntimeDiagnosticsCollector,
  hasExplicitOutputLimit,
  isRuntimeDiagnosticsEnabled,
  knownTokenLimit,
  normalize,
  runtimeDiagnostics,
  summarizeAnthropicWireRequest,
  summarizeOpenAIWireRequest,
  tokenLimit
} from "./chunk-MAY32HXD.js";
import "./chunk-D5NTAHYL.js";
import "./chunk-T4VD6OJ4.js";
import "./chunk-RDYWTWEM.js";
import "./chunk-YJLGXDQJ.js";
import {
  AgentStatistics,
  BaseDeclarativeTool,
  BaseToolInvocation,
  CONCURRENCY_SAFE_KINDS,
  DeclarativeTool,
  Kind,
  MUTATOR_KINDS,
  SchemaValidator,
  ToolConfirmationOutcome,
  ToolDisplayNames,
  ToolDisplayNamesMigration,
  ToolErrorType,
  ToolNames,
  ToolNamesMigration,
  hasCycleInSchema,
  isTool
} from "./chunk-PVVL5Q3W.js";
import {
  CredentialsClearRequiredError,
  QWEN_CREDENTIAL_FILE_MODE,
  QwenOAuth2Client,
  QwenOAuth2Event,
  QwenOAuthPollError,
  cacheQwenCredentials,
  clearCachedCredentialFile,
  clearQwenCredentials,
  generateCodeChallenge,
  generateCodeVerifier,
  generatePKCEPair,
  getQwenOAuthClient,
  isDeviceAuthorizationSuccess,
  isDeviceTokenPending,
  isDeviceTokenSuccess,
  isErrorResponse,
  qwenOAuth2Events
} from "./chunk-GGNTZ2NH.js";
import "./chunk-KXZ4TJB4.js";
import {
  BadRequestError,
  FatalAuthenticationError,
  FatalCancellationError,
  FatalConfigError,
  FatalError,
  FatalInputError,
  FatalSandboxError,
  FatalToolExecutionError,
  FatalTurnLimitedError,
  ForbiddenError,
  GOOGLE_ACCOUNTS_FILENAME,
  PATH_ARG_KEYS,
  QWEN_DIR,
  SHELL_SPECIAL_CHARS,
  Storage,
  UnauthorizedError,
  _resetValidatePathCacheForTest,
  createDebugLogger,
  escapePath,
  expandHomeDir,
  getErrorMessage,
  getErrorStatus,
  getErrorType,
  getProjectHash,
  isAbortError,
  isDebugLoggingDegraded,
  isNodeError,
  isSubpath,
  isSubpaths,
  makeRelative,
  resetDebugLoggingState,
  resolveAndValidatePath,
  resolvePath,
  runWithDebugLogSession,
  sanitizeCwd,
  setDebugLogSession,
  shortenPath,
  tildeifyPath,
  toFriendlyError,
  unescapePath,
  updateSymlink,
  validatePath
} from "./chunk-XP27SJMH.js";
import "./chunk-E7E2MFYM.js";
import "./chunk-ZERZSAZL.js";
import "./chunk-QN5NZ3UQ.js";
import "./chunk-BR4QREVK.js";
import {
  SpanStatusCode,
  ValueType
} from "./chunk-QWSRH265.js";
import "./chunk-A4BMJM77.js";
import "./chunk-J2S4EL5Y.js";
export {
  AGENT_CONTEXT_FILENAME,
  AGENT_WORKTREE_HEX_LENGTH,
  AGENT_WORKTREE_PREFIX,
  AGENT_WORKTREE_SLUG_PATTERN,
  ALIBABA_PROVIDERS,
  ALL_PROVIDERS,
  APPROVAL_MODES,
  APPROVAL_MODE_INFO,
  ARENA_MAX_AGENTS,
  AUTO_MEMORY_CONSOLIDATION_LOCK_FILENAME,
  AUTO_MEMORY_DIRNAME,
  AUTO_MEMORY_EXTRACT_CURSOR_FILENAME,
  AUTO_MEMORY_INDEX_FILENAME,
  AUTO_MEMORY_METADATA_FILENAME,
  AUTO_MEMORY_SCHEMA_VERSION,
  AUTO_MEMORY_TYPES,
  AUTO_MODE_DENIAL_LIMITS,
  AUTO_SKILL_THRESHOLD,
  AbortError,
  AgentCore,
  AgentEventEmitter,
  AgentEventType,
  AgentHeadless,
  AgentInteractive,
  AgentStatistics,
  AgentStatus,
  AgentTerminateMode,
  AgentType,
  ApiCancelEvent,
  ApiErrorEvent,
  ApiRequestEvent,
  ApiRequestPhase,
  ApiResponseEvent,
  ApprovalMode,
  ArenaAgentClient,
  ArenaEventEmitter,
  ArenaEventType,
  ArenaManager,
  ArenaSessionStatus,
  AsyncMessageQueue,
  AuthEvent,
  AuthProviderType,
  AuthType,
  BASELINE_COMMIT_MESSAGE,
  BINARY_EXTENSIONS,
  BINARY_FILE_PATTERNS,
  BUNDLE_CHUNK_DIR,
  BackgroundAgentResumeService,
  BackgroundShellRegistry,
  BackgroundTaskRegistry,
  BadRequestError,
  BaseDeclarativeTool,
  BaseToolInvocation,
  BudgetExhaustedError,
  BuiltinAgentRegistry,
  CAPPED_DEFAULT_MAX_TOKENS,
  CODE_ACTION_KIND_LABELS,
  CODING_PLAN_CHINA_BASE_URL,
  CODING_PLAN_ENV_KEY,
  CODING_PLAN_GLOBAL_BASE_URL,
  COMMON_DIRECTORY_EXCLUDES,
  COMMON_IGNORE_PATTERNS,
  CONCURRENCY_SAFE_KINDS,
  CUSTOM_API_KEY_ENV_PREFIX,
  ChatRecordingService,
  CloseDiffRequestSchema,
  ColorMode,
  CompressionStatus,
  ConditionalRulesRegistry,
  Config,
  ContextState,
  ConversationFinishedEvent,
  CoreToolScheduler,
  CredentialsClearRequiredError,
  CronScheduler,
  DEFAULT_AUTO_DREAM_MIN_HOURS,
  DEFAULT_AUTO_DREAM_MIN_SESSIONS,
  DEFAULT_BACKGROUND_AGENT_CONTINUATION_MESSAGE,
  DEFAULT_BUILTIN_SUBAGENT_TYPE,
  DEFAULT_CONTEXT_FILENAME,
  DEFAULT_ENCODING,
  DEFAULT_FILE_EXCLUDES,
  DEFAULT_FILE_FILTERING_OPTIONS,
  DEFAULT_LSP_COMMAND_CHECK_TIMEOUT_MS,
  DEFAULT_LSP_DOCUMENT_OPEN_DELAY_MS,
  DEFAULT_LSP_DOCUMENT_RETRY_DELAY_MS,
  DEFAULT_LSP_MAX_RESTARTS,
  DEFAULT_LSP_REQUEST_TIMEOUT_MS,
  DEFAULT_LSP_SOCKET_MAX_RETRY_DELAY_MS,
  DEFAULT_LSP_SOCKET_RETRY_DELAY_MS,
  DEFAULT_LSP_STARTUP_TIMEOUT_MS,
  DEFAULT_LSP_WARMUP_DELAY_MS,
  DEFAULT_LSP_WORKSPACE_SYMBOL_WARMUP_DELAY_MS,
  DEFAULT_MEMORY_FILE_FILTERING_OPTIONS,
  DEFAULT_OTLP_ENDPOINT,
  DEFAULT_OUTPUT_TOKEN_LIMIT,
  DEFAULT_QWEN_EMBEDDING_MODEL,
  DEFAULT_QWEN_FLASH_MODEL,
  DEFAULT_QWEN_MODEL,
  DEFAULT_STOP_HOOK_BLOCK_CAP,
  DEFAULT_TELEMETRY_TARGET,
  DEFAULT_TOKEN_LIMIT,
  DEFAULT_TRUNCATE_TOOL_OUTPUT_LINES,
  DEFAULT_TRUNCATE_TOOL_OUTPUT_THRESHOLD,
  DIAGNOSTIC_SEVERITY_LABELS,
  DISPLAY_MODE,
  DREAM_TASK_TYPE,
  DeclarativeTool,
  DefaultHookOutput,
  DiscoveredMCPTool,
  DiscoveredTool,
  ESCALATED_MAX_TOKENS,
  EVENT_API_ERROR,
  EVENT_API_RESPONSE,
  EVENT_TOOL_CALL,
  EXCLUDED_TOOLS_FOR_SUBAGENTS,
  EXTENSIONS_CONFIG_FILENAME,
  EXTENSIONS_DIRECTORY_NAME,
  EXTENSION_SETTINGS_FILENAME,
  EXTERNAL_MESSAGE_PREFIX,
  EXTRACT_TASK_TYPE,
  EndSessionEvent,
  ExtensionDisableEvent,
  ExtensionEnableEvent,
  ExtensionInstallEvent,
  ExtensionManager,
  ExtensionSettingScope,
  ExtensionUninstallEvent,
  ExtensionUpdateState,
  FatalAuthenticationError,
  FatalCancellationError,
  FatalConfigError,
  FatalError,
  FatalInputError,
  FatalSandboxError,
  FatalToolExecutionError,
  FatalTurnLimitedError,
  FileDiscoveryService,
  FileEncoding,
  FileExclusions,
  FileHistoryService,
  FileOperation,
  FileReadCache,
  FileSchema,
  FileSearchFactory,
  FlashFallbackEvent,
  ForbiddenError,
  GOAL_HOOK_TIMEOUT_MS,
  GOAL_HOOK_TIMEOUT_SECONDS,
  GOOGLE_ACCOUNTS_FILENAME,
  GeminiChat,
  GeminiClient,
  GeminiEventType,
  GitIgnoreParser,
  GitService,
  GitWorktreeService,
  HOOKS_CONFIG_FIELDS,
  HookEventName,
  HookPhase,
  HookRegistry,
  HookSystem,
  HookType,
  HooksConfigSource,
  IDEConnectionStatus,
  IDE_DEFINITIONS,
  IDE_MAX_OPEN_FILES,
  IDE_MAX_SELECTED_TEXT_LENGTH,
  IDE_REQUEST_TIMEOUT_MS,
  IDLE_SPECULATION,
  INITIAL_FOLLOWUP_STATE,
  INSTALL_METADATA_FILENAME,
  ITermBackend,
  IdeClient,
  IdeConnectionEvent,
  IdeConnectionType,
  IdeContextNotificationSchema,
  IdeContextSchema,
  IdeContextStore,
  IdeDiffAcceptedNotificationSchema,
  IdeDiffClosedNotificationSchema,
  IdeDiffRejectedNotificationSchema,
  Ignore,
  InProcessBackend,
  InputFormat,
  InvalidStreamError,
  JsonFormatter,
  KeychainTokenStorage,
  Kind,
  KittySequenceOverflowEvent,
  LITE_READ_BUF_SIZE,
  Logger,
  LoopType,
  LspConfigLoader,
  LspConnectionFactory,
  LspResponseNormalizer,
  LspServerManager,
  MAINLINE_CODER_MODEL,
  MAIN_SOURCE,
  MAX_CONCURRENT_MONITORS,
  MAX_DIFF_SIZE_BYTES,
  MAX_FILES,
  MAX_FILES_FOR_DETAILS,
  MAX_GOAL_ITERATIONS,
  MAX_LINES_PER_FILE,
  MAX_RETAINED_TERMINAL_AGENTS,
  MAX_RETAINED_TERMINAL_MONITORS,
  MAX_RETAINED_TERMINAL_SHELLS,
  MAX_TRANSCRIPT_MESSAGES,
  MCPDiscoveryState,
  MCPOAuthProvider,
  MCPOAuthTokenStorage,
  MCPServerConfig,
  MCPServerStatus,
  MCP_BUDGET_REARM_FRACTION,
  MCP_BUDGET_WARN_FRACTION,
  MCP_DEFAULT_TIMEOUT_MSEC,
  MEDIA_FILE_PATTERNS,
  MEMORY_SECTION_HEADER,
  MOCK_TOOL_GET_CONFIRMATION_DETAILS,
  MOCK_TOOL_GET_DEFAULT_PERMISSION,
  MODEL_GENERATION_CONFIG_FIELDS,
  MUTATOR_KINDS,
  McpClient,
  McpClientManager,
  MemoryDreamEvent,
  MemoryExtractEvent,
  MemoryManager,
  MemoryMetricType,
  MemoryRecallEvent,
  MessageBus,
  MessageBusType,
  MessageSenderType,
  MockModifiableTool,
  MockModifiableToolInvocation,
  MockTool,
  ModelRegistry,
  ModelSlashCommandEvent,
  ModelsConfig,
  MonitorRegistry,
  NativeLspClient,
  NativeLspService,
  NextSpeakerCheckEvent,
  NotificationType,
  OAUTH_AUTH_URL_EVENT,
  OAUTH_DISPLAY_MESSAGE_EVENT,
  OAuthUtils,
  OPENROUTER_BASE_URL,
  OPENROUTER_ENV_KEY,
  OpenAILogger,
  OpenDiffRequestSchema,
  OutputFormat,
  OverlayFs,
  PATH_ARG_KEYS,
  PROVIDER_METADATA_NS,
  PYTHON_EXCLUDES,
  PerformanceMetricType,
  PermissionManager,
  PermissionMode,
  PermissionRequestHookOutput,
  PostCompactTrigger,
  PostToolUseFailureHookOutput,
  PostToolUseHookOutput,
  PreCompactTrigger,
  PreToolUseHookOutput,
  PromptSuggestionEvent,
  ProviderInstallError,
  QWEN_CODE_COMPANION_EXTENSION_NAME,
  QWEN_CODE_SIMPLE_ENV_VAR,
  QWEN_CREDENTIAL_FILE_MODE,
  QWEN_DIR,
  QWEN_OAUTH_MODELS,
  QwenLogger,
  QwenOAuth2Client,
  QwenOAuth2Event,
  QwenOAuthPollError,
  RUNTIME_STATUS_SCHEMA_VERSION,
  ReadFileTool,
  RipGrepTool,
  RipgrepFallbackEvent,
  RuntimeDiagnosticsCollector,
  SAFE_TOOL_ALLOWLIST,
  SESSION_TITLE_MAX_LENGTH,
  SHELL_SPECIAL_CHARS,
  SHELL_TOOL_NAMES,
  SKILL_REVIEW_TASK_TYPE,
  STARTUP_CONTEXT_MODEL_ACK,
  STOP_HOOK_BLOCK_CAP_ENV,
  SUGGESTION_PROMPT,
  SUPPORTED_IMAGE_MIME_TYPES,
  SYMBOL_KIND_LABELS,
  SYSTEM_FILE_EXCLUDES,
  SchemaValidator,
  SdkControlClientTransport,
  SemanticAttributes,
  SendMessageType,
  SessionEndReason,
  SessionService,
  SessionStartSource,
  SettingScope,
  ShellExecutionService,
  SkillActivationRegistry,
  SkillError,
  SkillLaunchEvent,
  SkillManager,
  SlashCommandStatus,
  SpanStatusCode,
  SpeculationEvent,
  StandardFileSystemService,
  StartSessionEvent,
  StopHookOutput,
  Storage,
  StreamEventType,
  SubagentError,
  SubagentErrorCode,
  SubagentManager,
  SubagentValidator,
  TERMINAL_CSI_REGEX,
  TERMINAL_OSC_REGEX,
  TERMINAL_SHIFT_DCS_REGEX,
  TEST_ONLY,
  THIRD_PARTY_PROVIDERS,
  TOKEN_PLAN_BASE_URL,
  TOKEN_PLAN_ENV_KEY,
  TOOL_NAME_ALIASES,
  TOOL_USE_SUMMARY_SYSTEM_PROMPT,
  TelemetryTarget,
  TextTokenizer,
  TmuxBackend,
  ToolCallEvent,
  ToolConfirmationOutcome,
  ToolDisplayNames,
  ToolDisplayNamesMigration,
  ToolErrorType,
  ToolExecutionPhase,
  ToolNames,
  ToolNamesMigration,
  ToolOutputTruncatedEvent,
  ToolRegistry,
  TrustGateError,
  Turn,
  UiTelemetryService,
  UnauthorizedError,
  UserFeedbackEvent,
  UserFeedbackRating,
  UserPromptEvent,
  UserRetryEvent,
  ValueType,
  WORKTREES_DIR,
  WORKTREE_BRANCH_PREFIX,
  WORKTREE_SESSION_FILE,
  WorkspaceContext,
  WorkspaceMemoryFileTooLargeError,
  WorkspaceMemoryWriteTimeoutError,
  __resetActiveGoalStoreForTests,
  _recoverObjectsFromLine,
  _resetCachedIdeServerHost,
  _resetEnsuredDirsCacheForTest,
  _resetRipGrepCachesForTest,
  _resetValidatePathCacheForTest,
  abortGoalForStopHookCap,
  abortSpeculation,
  acceptSpeculation,
  activeGoalEquals,
  addMCPStatusChangeListener,
  addModelOutputAttributes,
  addSystemPromptAttributes,
  addToolInputAttributes,
  addToolResultAttributes,
  addToolSchemaAttributes,
  addUserPromptAttributes,
  alibabaStandardProvider,
  allowEditorTypeInSandbox,
  appendToLastTextPart,
  applyAutoModeDecision,
  applyProviderInstallPlan,
  buildApiHistoryFromConversation,
  buildBackgroundEntryLabel,
  buildDeferredToolsSection,
  buildFallbackApproachSummary,
  buildHumanReadableRuleLabel,
  buildInstallPlan,
  buildModelIdContext,
  buildPermissionCheckContext,
  buildPermissionRules,
  buildProviderTemplate,
  buildSkillLlmContent,
  cacheQwenCredentials,
  canUseRipgrep,
  checkArgumentSafety,
  checkCommandPermissions,
  checkForExtensionUpdate,
  checkHasEditorType,
  checkNpmUpdate,
  cleanSummary,
  cleanupTmpDir,
  clearActiveGoal,
  clearAutoMemoryRootCache,
  clearCacheSafeParams,
  clearCachedCredentialFile,
  clearGoalTerminalObserver,
  clearQwenCredentials,
  clearRuntimeStatus,
  clearWelcomeBackState,
  clearWorktreeSession,
  cliSource,
  cloneFromGit,
  codingPlanProvider,
  collectMemoryDiagnostics,
  commandExists,
  computeModelListVersion,
  computedSource,
  connectAndDiscover,
  connectToMcpServer,
  convertClaudeAgentConfig,
  convertClaudePluginPackage,
  convertClaudeToQwenConfig,
  convertColorToHex,
  convertToFunctionResponse,
  convertTomlToMarkdown,
  copyExtension,
  countFileLines,
  countLines,
  crawlCache_exports as crawlCache,
  createContentGenerator,
  createContentGeneratorConfig,
  createDebugLogger,
  createDefaultAutoMemoryExtractCursor,
  createDefaultAutoMemoryIndex,
  createDefaultAutoMemoryMetadata,
  createDenialState,
  createFollowupController,
  createForkedChat,
  createGoalStopHookCallback,
  createHookOutput,
  createTmpDir,
  createToolUseSummaryMessage,
  createTransport,
  customProvider,
  decodeBufferWithEncodingInfo,
  decodeTagName,
  deepseekProvider,
  defaultSource,
  detectBOM,
  detectBackend,
  detectCommandSubstitution,
  detectEncodingFromBuffer,
  detectFileEncoding,
  detectFileType,
  detectIdeFromEnv,
  detectLineEnding,
  detectRuntime,
  detectTodoChanges,
  discoverMcpTools,
  discoverPrompts,
  discoverTools,
  doesToolInvocationMatch,
  downloadFromGitHubRelease,
  downloadFromNpmRegistry,
  editorCommands,
  encodeInsightProgressMessage,
  encodeInsightReadyMessage,
  encodeTagName,
  encodeTextFileContent,
  endHookSpan,
  endInteractionSpan,
  endLLMRequestSpan,
  endToolBlockedOnUserSpan,
  endToolExecutionSpan,
  endToolSpan,
  ensureAutoMemoryScaffold,
  ensureCrlfLineEndings,
  ensureMacBinarySigned,
  ensureRipgrepHealthy,
  ensureToolResultPairing,
  envLayer,
  escapePath,
  escapeShellArg,
  evaluateAutoMode,
  evaluatePermissionFlow,
  evaluatePermissionRules,
  evaluateToolCall,
  execCommand,
  executeToolCall,
  exists,
  expandHomeDir,
  extractExtensionsFromPatterns,
  extractFile,
  extractJsonStringField,
  extractLastJsonStringField,
  extractLastJsonStringFields,
  extractShellOperations,
  extractToolFilePaths,
  fetchGitDiff,
  fetchGitDiffHunks,
  fileExists,
  filter,
  findGitRoot,
  findProviderByCredentials,
  findProviderById,
  findReleaseAsset,
  fireNotificationHook,
  firePermissionRequestHook,
  firePostToolUseFailureHook,
  firePostToolUseHook,
  firePreToolUseHook,
  flatMapTextParts,
  formatClassifierBlockMessage,
  formatLineStats,
  formatMemoryUsage,
  formatStopHookBlockingCapWarning,
  generateAgentWorktreeSlug,
  generateCodeChallenge,
  generateCodeVerifier,
  generateCustomEnvKey,
  generatePKCEPair,
  generatePromptSuggestion,
  generateSessionRecap,
  generateToolUseId,
  generateToolUseSummary,
  generateValidName,
  getActiveGoal,
  getActiveInteractionSpan,
  getAllGeminiMdFilenames,
  getAllMCPServerStatuses,
  getAllProviderBaseUrls,
  getArenaSystemReminder,
  getAutoMemoryConsolidationLockPath,
  getAutoMemoryExtractCursorPath,
  getAutoMemoryFilePath,
  getAutoMemoryIndexPath,
  getAutoMemoryMetadataPath,
  getAutoMemoryProjectStateDir,
  getAutoMemoryRoot,
  getAutoMemoryTopicFilename,
  getAutoMemoryTopicPath,
  getBuiltinRipgrep,
  getCacheSafeParams,
  getCachedEncodingForBuffer,
  getCommandRoot,
  getCommandRoots,
  getCompressionPrompt,
  getCoreSystemPrompt,
  getCurrentGeminiMdFilename,
  getCustomSystemPrompt,
  getDefaultBaseUrlForProtocol,
  getDefaultModelIds,
  getDiffCommand,
  getDirectoryContextString,
  getEditorExecutable,
  getEnvContents,
  getEnvironmentContext,
  getErrorMessage,
  getErrorStatus,
  getErrorType,
  getExtensionId,
  getExternalEditorCommand,
  getFilterReason,
  getFolderStructure,
  getFunctionCalls,
  getFunctionCallsAsJson,
  getFunctionCallsFromParts,
  getFunctionCallsFromPartsAsJson,
  getGitBranch,
  getGitRepoName,
  getHookKey,
  getIdeInstaller,
  getIdeServerHost,
  getInitialChatHistory,
  getInsightPrompt,
  getLastGoalTerminal,
  getMCPDiscoveryState,
  getMCPServerPrompts,
  getMCPServerStatus,
  getMemoryBaseDir,
  getMonitorOutputPath,
  getOrCreateSharedDispatcher,
  getPlanModeSystemReminder,
  getProjectHash,
  getProjectSummaryInfo,
  getProjectSummaryPrompt,
  getQwenOAuthClient,
  getRateLimitErrorDetails,
  getRateLimitRetryDelayMs,
  getRecentGitStatus,
  getResponseText,
  getResponseTextFromParts,
  getResumePromptTokenCount,
  getRuleDisplayName,
  getScopedEnvContents,
  getShellAbortReasonKind,
  getShellConfiguration,
  getSpecificMimeType,
  getSpecifierKind,
  getStructuredResponse,
  getStructuredResponseFromParts,
  getSubagentSystemReminder,
  getSupportedImageFormatsString,
  getSystemEncoding,
  getThoughtText,
  getUnsupportedImageFormatWarning,
  getWelcomeBackState,
  globalMemoryManager,
  hasCycleInSchema,
  hasExplicitOutputLimit,
  hasNetworkTransport,
  hasNonFinalTopLevelBackgroundOperator,
  hasUnsafeMonitorBackgroundOperator,
  hashValue,
  hydrateString,
  ideContextStore,
  idealabProvider,
  initializeTelemetry,
  injectPermissionRulesIfMissing,
  invokeMcpPrompt,
  isAbortError,
  isApiError,
  isApproveOutcome,
  isAutoEditApproved,
  isAutoMemPath,
  isBareMode,
  isBinary,
  isBinaryFile,
  isClaudePluginConfig,
  isCommandAllowed,
  isCommandAvailable,
  isCommandNeedsPermission,
  isDebugLoggingDegraded,
  isDeviceAuthorizationSuccess,
  isDeviceTokenPending,
  isDeviceTokenSuccess,
  isEditorAvailable,
  isEnabled,
  isErrorResponse,
  isGenericQuotaExceededError,
  isGitRepository,
  isInSafeToolAllowlist,
  isInvalidArgumentError,
  isModifiableDeclarativeTool,
  isNodeError,
  isPathWithinRoot,
  isPerformanceMonitoringActive,
  isPlanModeBlocked,
  isProQuotaExceededError,
  isQwenQuotaExceededError,
  isRateLimitError,
  isRuntimeDiagnosticsEnabled,
  isSchemaDepthError,
  isScopedNpmPackage,
  isSdkMcpServerConfig,
  isSettledStatus,
  isStructuredError,
  isSubpath,
  isSubpaths,
  isSuccessStatus,
  isSupportedImageMimeType,
  isTelemetrySdkInitialized,
  isTerminalEditor,
  isTerminalStatus,
  isTomlFormat,
  isTool,
  isToolEnabled,
  isTransientCapacityError,
  isUnattendedMode,
  isValidEditorType,
  isValidNonThoughtTextPart,
  isWindows,
  isWithinRoot,
  judgeGoal,
  knownTokenLimit,
  layer,
  loadIgnoreRules,
  loadServerHierarchicalMemory,
  logApiCancel,
  logApiError,
  logApiRequest,
  logApiResponse,
  logArenaAgentCompleted,
  logArenaSessionEnded,
  logArenaSessionStarted,
  logAuth,
  logChatCompression,
  logConversationFinishedEvent,
  logExtensionDisable,
  logExtensionEnable,
  logExtensionInstallEvent,
  logExtensionUninstall,
  logExtensionUpdateEvent,
  logFlashFallback,
  logIdeConnection,
  logKittySequenceOverflow,
  logMemoryDream,
  logMemoryExtract,
  logMemoryRecall,
  logModelSlashCommand,
  logNextSpeakerCheck,
  logPromptSuggestion,
  logRipgrepFallback,
  logSkillLaunch,
  logSlashCommand,
  logSpeculation,
  logStartSession,
  logToolCall,
  logToolOutputTruncated,
  logUserFeedback,
  logUserPrompt,
  logUserRetry,
  makeArenaAgentCompletedEvent,
  makeArenaSessionEndedEvent,
  makeArenaSessionStartedEvent,
  makeChatCompressionEvent,
  makeFakeConfig,
  makeRelative,
  makeSlashCommandEvent,
  matchesCommandPattern,
  matchesDomainPattern,
  matchesMcpPattern,
  matchesPathPattern,
  matchesRule,
  maybePromptForSettings,
  mcpServerRequiresOAuth,
  mcpTransportOf,
  mergeClaudeConfigs,
  minimaxProvider,
  modelProvidersSource,
  modelRegistryKey,
  modelscopeProvider,
  modifyWithEditor,
  needsConfirmation,
  needsUtf8Bom,
  normalize,
  normalizeContent,
  normalizeMonitorCommand,
  normalizeProxyUrl,
  normalizeSkillPriority,
  normalizeStopHookBlockingCap,
  notifyGoalTerminal,
  openDiff,
  openRouterProvider,
  openaiLogger,
  parse,
  parseAndFormatApiError,
  parseBooleanEnvFlag,
  parseDeletedFromNameStatus,
  parseGitDiff,
  parseGitHubRepoForReleases,
  parseGitNumstat,
  parseInsightMessage,
  parseInstallSource,
  parseLineTolerant,
  parseNpmPackageSource,
  parseRule,
  parseRules,
  parseShortstat,
  parseTelemetryTargetValue,
  parseThought,
  partListUnionToString,
  partToString,
  passesAcceptEditsFastPath,
  performVariableReplacement,
  persistPermissionOutcome,
  populateMcpServerCommand,
  prependToFirstTextPart,
  processSingleFileContent,
  promptForSetting,
  promptIdContext,
  providerMatchesCredentials,
  qwenOAuth2Events,
  read,
  readAutoMemoryIndex,
  readFileWithEncoding,
  readFileWithEncodingInfo,
  readFileWithLineAndLimit,
  readLastJsonStringFieldSync,
  readLastJsonStringFieldsSync,
  readLines,
  readManyFiles,
  readPathFromWorkspace,
  readRuntimeStatus,
  readWorktreeSession,
  readWorktreeSessionMarker,
  recordAllow,
  recordApiErrorMetrics,
  recordApiRequestBreakdown,
  recordApiResponseMetrics,
  recordArenaAgentCompletedMetrics,
  recordArenaSessionEndedMetrics,
  recordArenaSessionStartedMetrics,
  recordBaselineComparison,
  recordBlock,
  recordContentRetry,
  recordContentRetryFailure,
  recordCpuUsage,
  recordFallbackApprove,
  recordFileOperationMetric,
  recordGoalIteration,
  recordInvalidChunk,
  recordMemoryDreamMetrics,
  recordMemoryExtractMetrics,
  recordMemoryRecallMetrics,
  recordMemoryUsage,
  recordPerformanceRegression,
  recordPerformanceScore,
  recordStartupEvent,
  recordStartupPerformance,
  recordTokenEfficiency,
  recordTokenUsageMetrics,
  recordToolCallMetrics,
  recordToolExecutionBreakdown,
  recordToolQueueDepth,
  recordUnavailable,
  recursivelyHydrateStrings,
  redactProxyCredentials,
  redactStructuredOutputArgsForRecording,
  refreshSessionContext,
  registerGoalHook,
  removeMCPServerStatus,
  removeMCPStatusChangeListener,
  repairOrphanedToolUseTurns,
  replayUiTelemetryFromConversation,
  resetDebugLoggingState,
  resetDenialState,
  resetEncodingCache,
  resetUtf8BomCache,
  resolveAndValidatePath,
  resolveBaseUrl,
  resolveBundleDir,
  resolveCommandPath,
  resolveContentGeneratorConfigWithSources,
  resolveField,
  resolveGitDir,
  resolveMetadataKey,
  resolveModelConfig,
  resolveModelId,
  resolveNpmRegistry,
  resolveOpenAILogDir,
  resolveOptionalField,
  resolveOwnsModel,
  resolvePath,
  resolvePathFromEnv,
  resolvePathPattern,
  resolveRipgrep,
  resolveStopHookBlockingCap,
  resolveTelemetrySettings,
  resolveToolName,
  restoreWorktreeContext,
  retryWithBackoff,
  rewritePathArgs,
  runForkedAgent,
  runInToolSpanContext,
  runRipgrep,
  runSideQuery,
  runWithDebugLogSession,
  runWithForkedChatModel,
  runtimeDiagnostics,
  safeAgentId,
  safeLiteralReplace,
  sanitizeCwd,
  sanitizeHookName,
  sanitizeTitle,
  sanitizeToolCallResultForRecording,
  saveCacheSafeParams,
  saveWelcomeBackRestartChoice,
  serializeTerminalToObject,
  serializeTerminalToText,
  setActiveGoal,
  setDebugLogSession,
  setGeminiMdFilename,
  setGoalTerminalObserver,
  setLastGoalTerminal,
  setStartupEventSink,
  settingsSource,
  shortenPath,
  shouldAttemptBrowserLaunch,
  shouldDefaultToNodePty,
  shouldFallback,
  shouldFilterSuggestion,
  shouldRunAutoModeForCall,
  shouldShowStep,
  shutdownTelemetry,
  splitCommands,
  splitCompoundCommand,
  splitConditionalSkills,
  startHookSpan,
  startInteractionSpan,
  startLLMRequestSpan,
  startSpeculation,
  startToolBlockedOnUserSpan,
  startToolExecutionSpan,
  startToolSpan,
  stringify,
  stripShellWrapper,
  stripStartupContext,
  stripTerminalControlSequences,
  stripTrailingBackgroundAmp,
  subagentGenerator,
  substituteHookVariables,
  summarizeAnthropicWireRequest,
  summarizeOpenAIWireRequest,
  summarizeUnifiedDiff,
  templateString,
  tildeifyPath,
  toFriendlyError,
  tokenLimit,
  tokenPlanProvider,
  toolMatchesRuleToolName,
  truncateContent,
  truncateJson,
  truncateSpanError,
  tryGenerateSessionTitle,
  uiTelemetryService,
  unescapeJsonString,
  unescapePath,
  unregisterGoalHook,
  updateMCPServerStatus,
  updateSetting,
  updateSymlink,
  validateModelConfig,
  validateName,
  validatePath,
  validateVariables,
  windowsCodePageToEncoding,
  worktreeBranchForSlug,
  write,
  writeLine,
  writeLineSync,
  writeRuntimeStatus,
  writeWorkspaceContextFile,
  writeWorktreeSession,
  writeWorktreeSessionMarker,
  zaiProvider
};
