// 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_MODE_INFO,
  ARENA_MAX_AGENTS,
  AUTONOMOUS_SENTINEL_CRON,
  AUTONOMOUS_SENTINEL_DYNAMIC,
  AUTO_MEMORY_SCHEMA_VERSION,
  AUTO_MEMORY_TYPES,
  AUTO_MODE_DENIAL_LIMITS,
  AUTO_SKILL_THRESHOLD,
  AbortError,
  AgentCore,
  AgentEventEmitter,
  AgentEventType,
  AgentHeadless,
  AgentInteractive,
  AgentStatus,
  AgentTerminateMode,
  ArenaAgentClient,
  ArenaEventEmitter,
  ArenaEventType,
  ArenaManager,
  ArenaSessionStatus,
  AsyncMessageQueue,
  AuthProviderType,
  AutonomousLoopTickResolver,
  BACKGROUND_AGENT_CONCURRENCY_ENV,
  BASELINE_COMMIT_MESSAGE,
  BTW_MAX_INPUT_LENGTH,
  BUNDLE_CHUNK_DIR,
  BackgroundAgentResumeService,
  BackgroundShellRegistry,
  BackgroundTaskRegistry,
  BudgetExhaustedError,
  BuiltinAgentRegistry,
  CHANNEL_MEMORY_DOCUMENT_VERSION,
  CHANNEL_MEMORY_FILE_NAME,
  CHANNEL_MEMORY_ID_RE,
  CLIENT_MCP_MESSAGE_TIMEOUT_MS,
  CODE_ACTION_KIND_LABELS,
  CODING_PLAN_CHINA_BASE_URL,
  CODING_PLAN_ENV_KEY,
  CODING_PLAN_GLOBAL_BASE_URL,
  COMMAND_SUBSTITUTION_WARNING,
  CUSTOM_API_KEY_ENV_PREFIX,
  ChatRecordingService,
  ClientMcpRegistrar,
  CloseDiffRequestSchema,
  ColorMode,
  CompressionStatus,
  ConditionalRulesRegistry,
  Config,
  ContextState,
  CoreToolScheduler,
  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_SHUTDOWN_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_MAX_CONCURRENT_BACKGROUND_AGENTS,
  DEFAULT_MAX_INLINE_MEDIA_BYTES,
  DEFAULT_MAX_SUBAGENT_DEPTH,
  DEFAULT_MAX_TOOL_CALLS_PER_TURN,
  DEFAULT_STOP_HOOK_BLOCK_CAP,
  DEFAULT_TOOL_OUTPUT_BATCH_BUDGET,
  DEFAULT_TOOL_RESULTS_TOTAL_CHARS_THRESHOLD,
  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,
  ExtensionConflictError,
  ExtensionManager,
  ExtensionPreferencesStore,
  ExtensionSettingScope,
  ExtensionStore,
  ExtensionStoreBusyError,
  ExtensionStoreCorruptError,
  ExtensionUpdateState,
  FILE_HISTORY_DIR,
  FileDiscoveryService,
  FileEncoding,
  FileHistoryService,
  FileReadCache,
  FileSchema,
  FileSearchFactory,
  GOAL_HOOK_TIMEOUT_MS,
  GOAL_HOOK_TIMEOUT_SECONDS,
  GROK_BASE_URL,
  GROK_ENV_KEY,
  GROUP_COLOR_OPTIONS,
  GeminiChat,
  GeminiClient,
  GeminiEventType,
  GitIgnoreParser,
  GitWorktreeService,
  HookRegistry,
  HookSystem,
  IDEConnectionStatus,
  IDE_DEFINITIONS,
  IDE_MAX_OPEN_FILES,
  IDE_MAX_SELECTED_TEXT_LENGTH,
  IDE_REQUEST_TIMEOUT_MS,
  IDLE_SPECULATION,
  IMAGE_CAPABILITY,
  INITIAL_FOLLOWUP_STATE,
  INSTALL_METADATA_FILENAME,
  ITermBackend,
  IdeClient,
  IdeContextNotificationSchema,
  IdeContextSchema,
  IdeContextStore,
  IdeDiffAcceptedNotificationSchema,
  IdeDiffClosedNotificationSchema,
  IdeDiffRejectedNotificationSchema,
  Ignore,
  InProcessBackend,
  InvalidMcpConfigError,
  InvalidPreparedExtensionError,
  InvalidSessionTranscriptCursorError,
  JsonFormatter,
  LEARNED_SKILL_DIR_PREFIX,
  LEGACY_CHANNEL_MEMORY_FILE_NAME,
  LITE_READ_BUF_SIZE,
  LOOP_SENTINEL_CRON,
  LOOP_SENTINEL_DYNAMIC,
  LOOP_TASK_FILE_MAX_BYTES,
  Logger,
  LoopTickResolver,
  LspConfigLoader,
  LspConnectionFactory,
  LspResponseNormalizer,
  LspServerManager,
  MAX_CHANNEL_MEMORY_BYTES,
  MAX_CHANNEL_MEMORY_ENTRIES,
  MAX_CHANNEL_MEMORY_ENTRIES_PER_REQUEST,
  MAX_CHANNEL_MEMORY_ENTRY_CODE_POINTS,
  MAX_CONCURRENT_BACKGROUND_AGENTS,
  MAX_CONCURRENT_MONITORS,
  MAX_DIFF_SIZE_BYTES,
  MAX_FILES,
  MAX_FILES_FOR_DETAILS,
  MAX_GOAL_ITERATIONS,
  MAX_LINES_PER_FILE,
  MAX_NOTIFICATION_OUTPUT_TAIL_BYTES,
  MAX_RECENT_ACTIVITIES,
  MAX_RETAINED_AGENT_FIELD_CHARS,
  MAX_RETAINED_ANSI_OUTPUT_LINES,
  MAX_RETAINED_FILE_CONTENT_CHARS,
  MAX_RETAINED_FILE_DIFF_CHARS,
  MAX_RETAINED_SNAPSHOTS,
  MAX_RETAINED_TERMINAL_AGENTS,
  MAX_RETAINED_TERMINAL_MONITORS,
  MAX_RETAINED_TERMINAL_SHELLS,
  MAX_RETAINED_TERMINAL_WORKFLOWS,
  MAX_RETAINED_TOOL_RESULT_DISPLAY_CHARS,
  MAX_SNAPSHOTS,
  MAX_SUBAGENT_DEPTH_LIMIT,
  MAX_TRANSCRIPT_MESSAGES,
  MCPDiscoveryState,
  MCPOAuthProvider,
  MCPOAuthTokenStorage,
  MCPServerConfig,
  MCP_BUDGET_REARM_FRACTION,
  MCP_BUDGET_WARN_FRACTION,
  MCP_DEFAULT_TIMEOUT_MSEC,
  MESSAGE_DISPLAY_DRAIN_TIMEOUT_MS,
  MOCK_TOOL_GET_CONFIRMATION_DETAILS,
  MOCK_TOOL_GET_DEFAULT_PERMISSION,
  McpBudgetWouldExceedError,
  McpClient,
  McpClientManager,
  McpServerSpawnFailedError,
  McpTransportPool,
  MemoryManager,
  MessageBus,
  MessageBusType,
  MessageDisplayDispatcher,
  MessageSenderType,
  MockModifiableTool,
  MockModifiableToolInvocation,
  MockTool,
  ModelRegistry,
  ModelsConfig,
  MonitorRegistry,
  NativeLspClient,
  NativeLspService,
  OAUTH_AUTH_URL_EVENT,
  OAUTH_DISPLAY_MESSAGE_EVENT,
  OAuthUtils,
  OPENROUTER_BASE_URL,
  OPENROUTER_ENV_KEY,
  ORPHAN_TOOL_USE_REPAIR_REASON,
  OpenDiffRequestSchema,
  OverlayFs,
  POOLED_TRANSPORTS_DEFAULT,
  PROVIDER_METADATA_NS,
  PermissionManager,
  PreparedExtensionConsumedError,
  ProviderInstallError,
  QWEN_CODE_COMPANION_EXTENSION_NAME,
  QWEN_CODE_SIMPLE_ENV_VAR,
  REDACTED_URL_CREDENTIAL,
  REQUESTY_BASE_URL,
  REQUESTY_ENV_KEY,
  RUNTIME_MCP_IF_ABSENT_CONFIG_FLAG,
  RUNTIME_SNAPSHOT_PREFIX,
  RUNTIME_STATUS_SCHEMA_VERSION,
  RipGrepTool,
  SAFE_TOOL_ALLOWLIST,
  SESSION_ARTIFACT_PERSISTENCE_VERSION,
  SESSION_TITLE_MAX_LENGTH,
  SESSION_TRANSCRIPT_CURSOR_VERSION,
  SESSION_TRANSCRIPT_DEFAULT_LIMIT,
  SESSION_TRANSCRIPT_MAX_INDEX_BYTES,
  SESSION_TRANSCRIPT_MAX_LIMIT,
  SHELL_SELF_KILL_REJECTION,
  SHELL_TOOL_NAMES,
  SKILL_REVIEW_TASK_TYPE,
  STOP_HOOK_BLOCK_CAP_ENV,
  SUGGESTION_PROMPT,
  SYMBOL_KIND_LABELS,
  SYSTEM_REMINDER_CLOSE,
  SYSTEM_REMINDER_OPEN,
  SdkControlClientTransport,
  SendMessageType,
  SessionOrganizationError,
  SessionOrganizationService,
  SessionService,
  SessionTranscriptCursorCodec,
  SessionTranscriptPageTooLargeError,
  SessionTranscriptReader,
  SessionTranscriptSnapshotUnavailableError,
  SessionTranscriptTooLargeError,
  SettingScope,
  ShellExecutionService,
  SkillActivationRegistry,
  SkillError,
  SkillManager,
  SleepInhibitor,
  SourceRegistryStore,
  StandardFileSystemService,
  StreamEventType,
  SubagentManager,
  SubagentValidator,
  TERMINAL_CSI_REGEX,
  TERMINAL_OSC_REGEX,
  TERMINAL_SHIFT_DCS_REGEX,
  THIRD_PARTY_PROVIDERS,
  TOKEN_PLAN_BASE_URL,
  TOKEN_PLAN_ENV_KEY,
  TOOL_NAME_ALIASES,
  TOOL_SUCCEEDED_OUTPUT,
  TOOL_USE_SUMMARY_SYSTEM_PROMPT,
  TURN_INTERRUPTION_HISTORY_TAIL_COUNT,
  TeamEventEmitter,
  TeamEventType,
  TeamManager,
  TmuxBackend,
  ToolRegistry,
  TrustGateError,
  Turn,
  WORKFLOW_NAME_PATTERN,
  WORKSPACE_CONTENT_MTIME_MS_METADATA_KEY,
  WORKSPACE_CONTENT_SHA256_METADATA_KEY,
  WORKTREES_DIR,
  WORKTREE_BRANCH_PREFIX,
  WORKTREE_SESSION_FILE,
  WorkflowRunRegistry,
  WorkspaceMcpBudget,
  WorkspaceMemoryFileTooLargeError,
  WorkspaceMemoryWriteTimeoutError,
  __resetActiveGoalStoreForTests,
  _resetCachedIdeServerHost,
  _resetRipGrepCachesForTest,
  _resetRipgrepUtilsCachesForTest,
  abortGoalForStopHookCap,
  abortSpeculation,
  acceptSpeculation,
  acquireSleepInhibitor,
  activeGoalEquals,
  addChannelMemoryEntries,
  aggregateUsage,
  alibabaStandardProvider,
  allowEditorTypeInSandbox,
  appendChannelMemory,
  appendToLastTextPart,
  applyAutoModeDecision,
  applyProviderInstallPlan,
  approxBase64Bytes,
  attemptAutomaticMcpOAuth,
  buildAddedAgentsReminder,
  buildAddedMcpToolsReminder,
  buildAddedSkillsReminder,
  buildApiHistoryFromConversation,
  buildAvailableSkillsReminder,
  buildBackgroundEntryLabel,
  buildBareRememberPrompt,
  buildBtwCacheSafeParams,
  buildBtwPrompt,
  buildChangedAgentsReminder,
  buildChangedMcpToolsReminder,
  buildChangedSkillsReminder,
  buildContextUsage,
  buildDeferredToolsReminder,
  buildFallbackApproachSummary,
  buildHumanReadableRuleLabel,
  buildInstallPlan,
  buildLearnSkillPrompt,
  buildManagedRememberPrompt,
  buildMcpServerInstructionsReminder,
  buildModelIdContext,
  buildOrderedUuidChain,
  buildPermissionCheckContext,
  buildPermissionRules,
  buildProviderTemplate,
  buildSessionRecoveryPlan,
  buildSessionRecoveryPlanFromApiHistory,
  buildShellExecWarnings,
  buildStartupContextReminder,
  buildSyntheticToolResponseParts,
  buildTeammatePromptAddendum,
  buildUsageDashboard,
  canUseRipgrep,
  canonicalToolName,
  checkArgumentSafety,
  checkCommandPermissions,
  checkForExtensionUpdate,
  checkHasEditorType,
  checkNpmUpdate,
  clampInlineMediaPart,
  cleanSummary,
  cleanupTmpDir,
  clearActiveGoal,
  clearCacheSafeParams,
  clearChannelMemory,
  clearGitDirCache,
  clearGoalTerminalObserver,
  clearRuntimeStatus,
  clearSessionCommits,
  clearWelcomeBackState,
  clearWorktreeSession,
  cliSource,
  cloneFromGit,
  codingPlanProvider,
  collectMemoryDiagnostics,
  collectToolCallIdsFromHistory,
  commandExists,
  compactStringForHistory,
  compactStringForRecording,
  compactToolResultDisplayForHistory,
  compactToolResultDisplayForRecording,
  computeModelListVersion,
  computeThresholds,
  computeUniqueBranchTitle,
  computedSource,
  connectAndDiscover,
  connectToMcpServer,
  connectionIdOf,
  convertClaudeAgentConfig,
  convertClaudePluginPackage,
  convertClaudePluginStandalone,
  convertClaudeToQwenConfig,
  convertColorToHex,
  convertToFunctionErrorResponse,
  convertToFunctionResponse,
  convertTomlToMarkdown,
  copyExtension,
  crawlCache_exports,
  createChannelMemoryEntry,
  createDefaultAutoMemoryExtractCursor,
  createDefaultAutoMemoryIndex,
  createDefaultAutoMemoryMetadata,
  createDenialState,
  createDuplicateProviderToolCallResponse,
  createFollowupController,
  createForkedChat,
  createGoalStopHookCallback,
  createInstructionsLoadedCallback,
  createStreamableHttpCompatibilityFetch,
  createTmpDir,
  createToolUseSummaryMessage,
  createTransport,
  customProvider,
  decodeSessionTranscriptCursor,
  decodeTagName,
  dedupeToolCallsById,
  deepseekProvider,
  defaultSource,
  delay,
  deserializeSnapshots,
  detectAutonomousSentinel,
  detectBackend,
  detectCommandSubstitution,
  detectIdeFromEnv,
  detectLineEnding,
  detectLoopSentinel,
  detectSelfKillCommand,
  detectTurnInterruption,
  didWriteManagedMemory,
  discoverMcpTools,
  discoverPlugins,
  discoverPrompts,
  discoverResources,
  discoverTools,
  doesToolInvocationMatch,
  downloadFromArchiveUrl,
  downloadFromGitHubRelease,
  downloadFromNpmRegistry,
  editorCommands,
  encodeInsightErrorMessage,
  encodeInsightProgressMessage,
  encodeInsightReadyMessage,
  encodeSessionTranscriptCursor,
  encodeTagName,
  encodeTextFileContent,
  ensureAutoMemoryScaffold,
  ensureCrlfLineEndings,
  ensureMacBinarySigned,
  ensureRipgrepHealthy,
  ensureToolResultPairing,
  ensureUserAutoMemoryScaffold,
  envLayer,
  escapeShellArg,
  evaluateAutoMode,
  evaluatePermissionFlow,
  evaluatePermissionRules,
  evaluateToolCall,
  execCommand,
  executeToolCall,
  extractArchiveFile,
  extractFile,
  extractJsonStringField,
  extractLastJsonStringField,
  extractLastJsonStringFields,
  extractLastUserPrompt,
  extractShellOperations,
  extractToolFilePaths,
  fetchGitDiff,
  fetchGitDiffHunks,
  filter,
  findExistingProviderModels,
  findGitRoot,
  findProviderByCredentials,
  findProviderById,
  findReleaseAsset,
  findRepeatedDuplicateProviderToolCall,
  fireNotificationHook,
  firePermissionRequestHook,
  firePostToolBatchHook,
  firePostToolUseFailureHook,
  firePostToolUseHook,
  firePreToolUseHook,
  flatMapTextParts,
  formatClassifierBlockMessage,
  formatDateForContext,
  formatDenialStateLog,
  formatLineStats,
  formatMemoryUsage,
  formatStopHookBlockingCapWarning,
  generateAgentWorktreeSlug,
  generateCustomEnvKey,
  generatePromptSuggestion,
  generateSessionRecap,
  generateToolUseId,
  generateToolUseSummary,
  getActiveGoal,
  getAliasSetForTool,
  getAllProviderBaseUrls,
  getArenaSystemReminder,
  getAutoModePermissionDeniedReason,
  getBuiltinRipgrep,
  getCacheSafeParams,
  getChannelMemoryFilePath,
  getCommandRoot,
  getCommandRoots,
  getCompressionPrompt,
  getCoreSystemPrompt,
  getCustomSystemPrompt,
  getDefaultBaseUrlForProtocol,
  getDefaultModelIds,
  getDiffCommand,
  getDirectoryContextString,
  getEditorExecutable,
  getEffectivePermissionForConfirmation,
  getEnvContents,
  getEnvironmentContext,
  getExtensionDescription,
  getExtensionDisplayName,
  getExtensionId,
  getExternalEditorCommand,
  getFilterReason,
  getFolderStructure,
  getFunctionCalls,
  getFunctionCallsAsJson,
  getFunctionCallsFromParts,
  getFunctionCallsFromPartsAsJson,
  getGitBranch,
  getGitRepoName,
  getIdeInstaller,
  getIdeServerHost,
  getInitialChatHistory,
  getInsightPrompt,
  getLastGoalTerminal,
  getLegacyChannelMemoryFilePath,
  getMCPDiscoveryState,
  getMCPServerPrompts,
  getMaxInlineMediaBytes,
  getMcpOAuthDialogInstruction,
  getMonitorOutputPath,
  getPlanModeSystemReminder,
  getProjectSummaryInfo,
  getProjectSummaryPrompt,
  getProviderToolCallId,
  getRecentGitStatus,
  getResponseText,
  getResponseTextFromParts,
  getResumePromptTokenCount,
  getResumeTokenCounts,
  getRuleDisplayName,
  getSavedWorkflowDirs,
  getScopedEnvContents,
  getSessionProjectDir,
  getShellAbortReasonKind,
  getShellConfiguration,
  getSpecifierKind,
  getStartupContextLength,
  getStructuredResponse,
  getStructuredResponseFromParts,
  getSubagentsRootDir,
  getTimeRangeBounds,
  getToolResponseDisplayText,
  getWelcomeBackState,
  globalMemoryManager,
  grokProvider,
  hasNetworkTransport,
  hasNonFinalTopLevelBackgroundOperator,
  hasShellSubstitution,
  hasUnsafeMonitorBackgroundOperator,
  hashMcpServerConfig,
  hashValue,
  hookEventSupportsMatcher,
  hydrateString,
  ideContextStore,
  idealabProvider,
  injectPermissionRulesIfMissing,
  invokeMcpPrompt,
  isApproveOutcome,
  isAutoEditApproved,
  isBareMode,
  isBinary,
  isClaudePluginConfig,
  isCommandAllowed,
  isCommandAvailable,
  isCommandNeedsPermission,
  isDenialFallbackReason,
  isDestructiveCommand,
  isEditorAvailable,
  isEnabled,
  isExtensionCommittedWithWarningsError,
  isGatedMcpScope,
  isGitRepository,
  isInSafeToolAllowlist,
  isInvalidArgumentError,
  isModifiableDeclarativeTool,
  isPlanModeBlocked,
  isPrototypeMetadataKey,
  isReservedWorkspaceMetadataKey,
  isSafeModeEnv,
  isSchemaDepthError,
  isScopedNpmPackage,
  isSdkMcpServerConfig,
  isSessionArtifactRecord,
  isSessionRuntimeActive,
  isSettledStatus,
  isSuccessStatus,
  isSupportedArchivePath,
  isSupportedArchiveUrl,
  isSystemReminderContent,
  isTerminalEditor,
  isTerminalStatus,
  isTomlFormat,
  isToolCallConcurrencySafe,
  isToolEnabled,
  isTransientCapacityError,
  isTruthy,
  isUnattendedMode,
  isValidEditorType,
  isValidGitSha,
  isValidNonThoughtTextPart,
  isValidRefName,
  isWindows,
  isWorkspaceContentMetadataEntry,
  judgeGoal,
  layer,
  listChannelMemoryEntries,
  listMcpPrompts,
  listMcpResources,
  listSavedWorkflows,
  listWorkflowSnapshots,
  loadIgnoreRules,
  loadMarketplaceConfigFromSource,
  loadServerHierarchicalMemory,
  loadUsageDashboard,
  loadUsageHistory,
  loadUsageHistoryWithLive,
  lspServerConfigHash,
  makeFakeConfig,
  markDuplicateProviderToolCallResponseSent,
  matchesAnyServerPattern,
  matchesCommandPattern,
  matchesDomainPattern,
  matchesMcpPattern,
  matchesPathPattern,
  matchesRule,
  matchesServerPattern,
  maybePromptForSettings,
  mcpServerRequiresOAuth,
  mcpTransportOf,
  mergeClaudeConfigs,
  metadataBudgetBytes,
  metricsToUsageRecord,
  minimaxProvider,
  modelProvidersSource,
  modelRegistryKey,
  modelscopeProvider,
  modifyWithEditor,
  needsConfirmation,
  needsUtf8Bom,
  normalizeChannelMemoryText,
  normalizeClaudeMcpServer,
  normalizeContent,
  normalizeEventPayload,
  normalizeMaxSubagentDepth,
  normalizeModelToolCallIds,
  normalizeMonitorCommand,
  normalizeProxyUrl,
  normalizeSkillPriority,
  normalizeSnapshotPayload,
  normalizeStopHookBlockingCap,
  notifyGoalTerminal,
  openDiff,
  openRouterProvider,
  oversizedMediaPlaceholder,
  parse,
  parseAndFormatApiError,
  parseChannelMemoryDocument,
  parseConnectionId,
  parseDeletedFromNameStatus,
  parseExtensionSourceType,
  parseGitDiff,
  parseGitHubRepoForReleases,
  parseGitNumstat,
  parseInsightMessage,
  parseInstallSource,
  parseLegacyChannelMemory,
  parseNpmPackageSource,
  parsePositiveIntegerEnv,
  parseRule,
  parseRules,
  parseShortstat,
  parseVisionModelSetting,
  partListUnionToString,
  partToString,
  partitionByConcurrencySafety,
  passesAcceptEditsFastPath,
  performVariableReplacement,
  persistPermissionOutcome,
  persistSessionUsage,
  populateMcpServerCommand,
  prependToFirstTextPart,
  probeMcpServerForOAuth,
  promptForSetting,
  promptIdContext,
  providerMatchesCredentials,
  readAutoMemoryIndex,
  readChannelMemory,
  readGitHead,
  readLastJsonStringFieldSync,
  readLastJsonStringFieldsSync,
  readLoopTaskFile,
  readManyFiles,
  readPathFromWorkspace,
  readRuntimeStatus,
  readUserAutoMemoryIndex,
  readWorktreeSession,
  readWorktreeSessionMarker,
  rebuildSessionArtifactSnapshot,
  recordAllow,
  recordBlock,
  recordFallbackApprove,
  recordGoalIteration,
  recordStartupEvent,
  recordUnavailable,
  recursivelyHydrateStrings,
  redactStructuredOutputArgsForRecording,
  redactUrlCredentials,
  refreshMemoryAfterManagedWrite,
  refreshMemoryInstruction,
  registerGoalHook,
  registerSessionCommit,
  registerSessionProjectDir,
  remapSessionArtifactPayloadForFork,
  removeChannelMemoryEntries,
  renderChannelMemoryRecall,
  repairOrphanedToolUseTurns,
  replayUiTelemetryFromConversation,
  requestyProvider,
  reserveModelToolCallId,
  resetDenialState,
  resetUtf8BomCache,
  resolveBaseUrl,
  resolveBranchName,
  resolveBundleDir,
  resolveCommandPath,
  resolveExtensionConfigLocale,
  resolveField,
  resolveGitDir,
  resolveLocalizableString,
  resolveMaxConcurrentBackgroundAgents,
  resolveMetadataKey,
  resolveModelConfig,
  resolveModelId,
  resolveNpmRegistry,
  resolveOptionalField,
  resolveOwnsModel,
  resolvePathFromEnv,
  resolvePathPattern,
  resolveProviderProtocol,
  resolveRipgrep,
  resolveSavedWorkflowScript,
  resolveStopHookBlockingCap,
  resolveToolName,
  restoreWorktreeContext,
  retryWithBackoff,
  rewritePathArgs,
  runForkedAgent,
  runManagedAutoMemoryDream,
  runManagedRememberByAgent,
  runRipgrep,
  runWithForkedChatModel,
  safeAgentId,
  safeLiteralReplace,
  sanitizeTitle,
  sanitizeToolCallResultForRecording,
  saveCacheSafeParams,
  saveWelcomeBackRestartChoice,
  saveWorkflowScript,
  serializeChannelMemoryDocument,
  serializeSnapshot,
  serializeTerminalToObject,
  serializeTerminalToText,
  sessionArtifactIdentityKey,
  sessionIdContext,
  setActiveGoal,
  setGoalTerminalObserver,
  setLastGoalTerminal,
  setMCPDiscoveryState,
  setStartupEventSink,
  settingsSource,
  shouldClassifyAllShellForAutoMode,
  shouldDefaultToNodePty,
  shouldFallback,
  shouldFilterSuggestion,
  shouldFirePermissionDeniedForAutoMode,
  shouldForceAutoModeReviewForAllow,
  shouldRunAutoModeForCall,
  shouldShowStep,
  sleepInhibitor,
  splitCommands,
  splitCompoundCommand,
  splitConditionalSkills,
  stableSessionArtifactId,
  startSpeculation,
  stringify,
  stripAnsiAndControl,
  stripRuntimeSnapshotPrefix,
  stripShellWrapper,
  stripStartupContext,
  stripSystemReminderBlocks,
  stripTerminalControlSequences,
  stripTrailingBackgroundAmp,
  subagentGenerator,
  substituteHookVariables,
  summarizeUnifiedDiff,
  templateString,
  toSnapshot,
  tokenPlanProvider,
  toolMatchesRuleToolName,
  truncateJson,
  tryGenerateSessionTitle,
  unescapeJsonString,
  unquoteCStylePath,
  unregisterGoalHook,
  unregisterSessionProjectDir,
  updateChannelMemoryEntry,
  updateSetting,
  validateExtensionSettingEnvVars,
  validateMaxSessionTurns,
  validateName,
  validateVariables,
  validateWorkflowName,
  watchRepoBranch,
  worktreeBranchForSlug,
  writeDreamManualRunToMetadata,
  writeRuntimeStatus,
  writeWorkflowSnapshot,
  writeWorkspaceContextFile,
  writeWorktreeSession,
  writeWorktreeSessionMarker,
  zaiProvider
} from "./chunk-KN5EBZLT.js";
import "./chunk-T4TZQJ7W.js";
import "./chunk-H6XPXXMH.js";
import "./chunk-5M6IDOMF.js";
import {
  CronScheduler,
  DEFAULT_RECURRING_MAX_AGE_DAYS,
  MAX_JOBS,
  WAKEUP_MAX_SECONDS,
  WAKEUP_MIN_SECONDS,
  buildMissedCronNotification,
  clampWakeupSeconds,
  nextDurableFireMs,
  normalizeRecurringMaxAge
} from "./chunk-A2HWMJVO.js";
import {
  clearAllInboxes,
  clearInbox,
  consumeUnread,
  disposeInboxLocks,
  forwardApproval,
  getInboxPath,
  getLeader,
  readInbox,
  registerLeader,
  sendStructuredMessage,
  unregisterLeader,
  wrapConfirmWithBadge,
  writeMessage
} from "./chunk-RCEEXIOO.js";
import {
  RECIPROCAL_CALLER,
  TaskOwnershipError,
  assertValidTaskId,
  blockTask,
  claimTask,
  createTask,
  deleteTask,
  getAgentStatuses,
  getTask,
  getTaskPath,
  listTasks,
  notifyTasksUpdated,
  onTasksUpdated,
  releaseOwnedTask,
  resetTaskList,
  unassignTeammateTasks,
  updateTask
} from "./chunk-KKRTYONM.js";
import {
  assignTeammateColor,
  classifyShutdownResponse,
  clearTeammateColors,
  createTeamFile,
  deleteTeamDirs,
  findMemberById,
  findMemberByName,
  formatAgentId,
  generateUniqueTeammateName,
  getInboxesDir,
  getTasksDir,
  getTeamDir,
  getTeamFilePath,
  getTeamsRootDir,
  listTeamNames,
  readTeamFile,
  sanitizeName,
  setMemberActive,
  tryReclaimStaleTeam,
  writeTeamFile
} from "./chunk-TV6K2FB4.js";
import "./chunk-E2UVIFI2.js";
import {
  nextFireTime,
  parseCron
} from "./chunk-XU457J4V.js";
import "./chunk-VDDGDZMA.js";
import {
  MAX_TASK_RUNS,
  appendCronRun,
  generateCronTaskId,
  getCronFilePath,
  readCronTasks,
  removeCronTasks,
  taskHasLegacyCondition,
  updateCronTasks
} from "./chunk-SPJQO2CE.js";
import {
  InputFormat,
  OutputFormat
} from "./chunk-SZRN75WQ.js";
import {
  MAX_MCP_RESOURCE_BLOB_CHARS,
  MAX_MCP_RESOURCE_TEXT_CHARS,
  emptyMcpResourceText,
  formatMcpResourceContents,
  summarizeMcpResource
} from "./chunk-HTO4JFDZ.js";
import {
  INBOXES_DIR,
  LEADER_NAME,
  MAX_TEAMMATES,
  TASKS_DIR,
  TEAMMATE_COLORS,
  TEAMS_DIR,
  TEAM_CONFIG_FILENAME
} from "./chunk-CPBF7KYF.js";
import {
  APPROVAL_MODES,
  ApprovalMode,
  FORK_SUBAGENT_TYPE,
  SubagentError,
  SubagentErrorCode
} from "./chunk-F333XEAU.js";
import {
  getAgentName,
  getTeamName,
  getTeammateColor,
  getTeammateContext,
  isInProcessTeammate,
  isTeamLead,
  isTeammate,
  resolveActiveTeamName,
  runWithTeammateIdentity,
  teammateIdentityStore
} from "./chunk-6AM5D4ME.js";
import {
  applySkillAllowedTools,
  buildSkillLlmContent
} from "./chunk-2Z5UX4KI.js";
import {
  AgentType,
  DefaultHookOutput,
  HOOKS_CONFIG_FIELDS,
  HookEventName,
  HookPhase,
  HookType,
  HooksConfigSource,
  MAX_USER_PROMPT_EXPANSION_ADDITIONAL_CONTEXT_LENGTH,
  NotificationType,
  PermissionMode,
  PermissionRequestHookOutput,
  PostCompactTrigger,
  PostToolBatchHookOutput,
  PostToolUseFailureHookOutput,
  PostToolUseHookOutput,
  PreCompactTrigger,
  PreToolUseHookOutput,
  SessionEndReason,
  SessionStartSource,
  StopHookOutput,
  UserPromptExpansionHookOutput,
  createHookOutput,
  detectTodoChanges,
  getHookKey,
  isToolArtifactLike,
  sanitizeUserPromptExpansionAdditionalContext
} from "./chunk-ARKANCNX.js";
import {
  DEFAULT_FILE_FILTERING_OPTIONS,
  DEFAULT_MEMORY_FILE_FILTERING_OPTIONS,
  DEFAULT_QWEN_CUSTOM_IGNORE_FILE_NAMES,
  QwenIgnoreParser,
  WorkspaceContext,
  isPathWithinRoot
} from "./chunk-L5U3ELZX.js";
import {
  KeychainTokenStorage
} from "./chunk-TYLOFD2U.js";
import {
  AGENT_CONTEXT_FILENAME,
  ApiCancelEvent,
  ApiErrorEvent,
  ApiRequestEvent,
  ApiRequestPhase,
  ApiResponseEvent,
  AuthEvent,
  AuthType,
  BINARY_EXTENSIONS,
  BINARY_FILE_PATTERNS,
  COMMON_DIRECTORY_EXCLUDES,
  COMMON_IGNORE_PATTERNS,
  ConversationFinishedEvent,
  DAEMON_TRACEPARENT_META_KEY,
  DAEMON_TRACESTATE_META_KEY,
  DEFAULT_CONTEXT_FILENAME,
  DEFAULT_ENCODING,
  DEFAULT_FILE_EXCLUDES,
  DEFAULT_OTLP_ENDPOINT,
  DEFAULT_SENSITIVE_SPAN_ATTRIBUTE_MAX_LENGTH,
  DEFAULT_TELEMETRY_TARGET,
  DiscoveredMCPTool,
  EVENT_API_ERROR,
  EVENT_API_RESPONSE,
  EVENT_TOOL_CALL,
  EndSessionEvent,
  ExtensionDisableEvent,
  ExtensionEnableEvent,
  ExtensionInstallEvent,
  ExtensionUninstallEvent,
  FileExclusions,
  FileOperation,
  FlashFallbackEvent,
  IdeConnectionEvent,
  IdeConnectionType,
  InvalidStreamError,
  KittySequenceOverflowEvent,
  LOCAL_CONTEXT_FILENAME,
  LoopDetectedEvent,
  LoopType,
  MAIN_SOURCE,
  MCPServerStatus,
  MEDIA_FILE_PATTERNS,
  MEMORY_SECTION_HEADER,
  MODEL_GENERATION_CONFIG_FIELDS,
  MemoryDreamEvent,
  MemoryExtractEvent,
  MemoryMetricType,
  MemoryRecallEvent,
  ModelSlashCommandEvent,
  NextSpeakerCheckEvent,
  OpenAILogger,
  PYTHON_EXCLUDES,
  PerformanceMetricType,
  PromptSuggestionEvent,
  QWEN_OAUTH_MODELS,
  QwenLogger,
  ReadFileTool,
  RipgrepFallbackEvent,
  SENSITIVE_SPAN_ATTRIBUTE_MAX_LENGTH_LIMIT,
  SYSTEM_FILE_EXCLUDES,
  SemanticAttributes,
  SkillLaunchEvent,
  SlashCommandStatus,
  SpeculationEvent,
  StartSessionEvent,
  TelemetryTarget,
  ToolCallEvent,
  ToolExecutionPhase,
  ToolOutputTruncatedEvent,
  UiTelemetryService,
  UserFeedbackEvent,
  UserFeedbackRating,
  UserPromptEvent,
  UserRetryEvent,
  WorkflowKeywordEvent,
  WorkflowRunEvent,
  _recoverObjectsFromLine,
  _resetEnsuredDirsCacheForTest,
  addDaemonRequestAttribute,
  addMCPStatusChangeListener,
  addModelOutputAttributes,
  addSystemPromptAttributes,
  addToolInputAttributes,
  addToolResultAttributes,
  addToolSchemaAttributes,
  addUserPromptAttributes,
  apiActivityTracker,
  apiResponseEventToTokenUsageRecord,
  areSensitiveSpanAttributesEnabled,
  captureDaemonTelemetryContext,
  collectText,
  countFileLines,
  countLines,
  createContentGenerator,
  createContentGeneratorConfig,
  createDaemonBridgeTelemetry,
  createOpenAIReasoningThoughtPart,
  decodeBufferWithEncodingInfo,
  detectBOM,
  detectEncodingFromBuffer,
  detectFileEncoding,
  detectFileType,
  emitDaemonLog,
  endHookSpan,
  endInteractionSpan,
  endLLMRequestSpan,
  endSubagentSpan,
  endToolBlockedOnUserSpan,
  endToolExecutionSpan,
  endToolSpan,
  exists,
  exportTokenUsageSummary,
  extractDaemonTraceContext,
  extractExtensionsFromPatterns,
  fileExists,
  forceFlushMetrics,
  formatTokenUsageSummaryAsCsv,
  formatTokenUsageSummaryAsJson,
  formatVisionBridgeNotice,
  formatVisionBridgeNoticeDisplay,
  generateValidName,
  getActiveInteractionSpan,
  getAllGeminiMdFilenames,
  getAllMCPServerStatuses,
  getCachedEncodingForBuffer,
  getCurrentGeminiMdFilename,
  getMCPServerStatus,
  getRateLimitErrorDetails,
  getRateLimitRetryDelayMs,
  getSpecificMimeType,
  getSystemEncoding,
  getThoughtSummary,
  getTokenUsageFilePath,
  hasImageParts,
  hashDaemonWorkspace,
  initializeDaemonMetrics,
  initializeTelemetry,
  injectDaemonTraceContext,
  isApiError,
  isBinaryFile,
  isCacheableReadResult,
  isGenericQuotaExceededError,
  isImageCapable,
  isImagePart,
  isOpenAIReasoningThoughtPart,
  isPerformanceMonitoringActive,
  isProQuotaExceededError,
  isQwenQuotaExceededError,
  isRateLimitError,
  isStructuredError,
  isTelemetrySdkInitialized,
  isUsableImagePart,
  isValidSensitiveSpanAttributeMaxLength,
  isVisionBridgeNoticeDisplay,
  isWithinRoot,
  logApiCancel,
  logApiError,
  logApiRequest,
  logApiResponse,
  logArenaAgentCompleted,
  logArenaSessionEnded,
  logArenaSessionStarted,
  logAuth,
  logChatCompression,
  logConversationFinishedEvent,
  logExtensionDisable,
  logExtensionEnable,
  logExtensionInstallEvent,
  logExtensionUninstall,
  logExtensionUpdateEvent,
  logFlashFallback,
  logIdeConnection,
  logKittySequenceOverflow,
  logLoopDetected,
  logMemoryDream,
  logMemoryExtract,
  logMemoryRecall,
  logModelSlashCommand,
  logNextSpeakerCheck,
  logPromptSuggestion,
  logRipgrepFallback,
  logSkillLaunch,
  logSlashCommand,
  logSpeculation,
  logStartSession,
  logToolCall,
  logToolOutputTruncated,
  logUserFeedback,
  logUserPrompt,
  logUserRetry,
  logWorkflowKeyword,
  logWorkflowRun,
  makeArenaAgentCompletedEvent,
  makeArenaSessionEndedEvent,
  makeArenaSessionStartedEvent,
  makeChatCompressionEvent,
  makeSlashCommandEvent,
  normalizeParts,
  openaiLogger,
  parseBooleanEnvFlag,
  parseLineTolerant,
  parseTelemetryTargetValue,
  parseThought,
  processSingleFileContent,
  queryTokenUsage,
  read,
  readFileWithEncoding,
  readFileWithEncodingInfo,
  readFileWithLineAndLimit,
  readLines,
  recordApiErrorMetrics,
  recordApiRequestBreakdown,
  recordApiResponseMetrics,
  recordApiRetry,
  recordArenaAgentCompletedMetrics,
  recordArenaSessionEndedMetrics,
  recordArenaSessionStartedMetrics,
  recordBaselineComparison,
  recordContentRetry,
  recordContentRetryFailure,
  recordCpuUsage,
  recordDaemonBridgeError,
  recordDaemonCancel,
  recordDaemonChannelLifecycle,
  recordDaemonError,
  recordDaemonHttpRequest,
  recordDaemonHttpResponse,
  recordDaemonPipeMessage,
  recordDaemonPromptDuration,
  recordDaemonPromptQueueWait,
  recordDaemonSessionLifecycle,
  recordFileOperationMetric,
  recordInvalidChunk,
  recordMemoryDreamMetrics,
  recordMemoryExtractMetrics,
  recordMemoryRecallMetrics,
  recordMemoryUsage,
  recordPerformanceRegression,
  recordPerformanceScore,
  recordSkillInvocation,
  recordStartupPerformance,
  recordTokenEfficiency,
  recordTokenUsageFromApiResponse,
  recordTokenUsageFromApiResponseBestEffort,
  recordTokenUsageMetrics,
  recordToolCallMetrics,
  recordToolExecutionBreakdown,
  recordToolQueueDepth,
  refreshSessionContext,
  registerAcpEventLoopLagGauge,
  registerDaemonEventLoopLagGauge,
  registerDaemonGaugeCallbacks,
  removeMCPServerStatus,
  removeMCPStatusChangeListener,
  replaceImagesWithText,
  resetEncodingCache,
  resolveContentGeneratorConfigWithSources,
  resolveOpenAILogDir,
  resolveTelemetrySettings,
  runInSubagentSpanContext,
  runInToolSpanContext,
  runVisionBridge,
  runWithDaemonTelemetryContext,
  sanitizeHookName,
  selectVisionBridgeModel,
  setGeminiMdFilename,
  shouldRunVisionBridge,
  shutdownTelemetry,
  splitImageParts,
  startEventLoopLagMonitor,
  startHookSpan,
  startInteractionSpan,
  startLLMRequestSpan,
  startSubagentSpan,
  startToolBlockedOnUserSpan,
  startToolExecutionSpan,
  startToolSpan,
  truncateContent,
  truncateSpanError,
  uiTelemetryService,
  updateMCPServerStatus,
  validateModelConfig,
  windowsCodePageToEncoding,
  withDaemonBridgeSpan,
  withDaemonRequestSpan,
  withDaemonSpan,
  withInteractionSpan,
  write,
  writeLine,
  writeLineSync
} from "./chunk-D5K5YBSN.js";
import "./chunk-4WKAA4KS.js";
import "./chunk-CR3C7WXL.js";
import {
  DEFAULT_QWEN_EMBEDDING_MODEL,
  DEFAULT_QWEN_FLASH_MODEL,
  DEFAULT_QWEN_MODEL,
  MAINLINE_CODER_MODEL,
  runSideQuery
} from "./chunk-RTV5TUYB.js";
import "./chunk-VGC4I5JJ.js";
import {
  AUTO_MEMORY_CONSOLIDATION_LOCK_FILENAME,
  AUTO_MEMORY_DIRNAME,
  AUTO_MEMORY_EXTRACT_CURSOR_FILENAME,
  AUTO_MEMORY_INDEX_FILENAME,
  AUTO_MEMORY_METADATA_FILENAME,
  TEAM_AUTO_MEMORY_DIRNAME,
  USER_AUTO_MEMORY_DIRNAME,
  clearAutoMemoryRootCache,
  getAutoMemoryConsolidationLockPath,
  getAutoMemoryExtractCursorPath,
  getAutoMemoryFilePath,
  getAutoMemoryIndexPath,
  getAutoMemoryMetadataPath,
  getAutoMemoryProjectStateDir,
  getAutoMemoryRoot,
  getAutoMemoryTopicFilename,
  getAutoMemoryTopicPath,
  getMemoryBaseDir,
  getTeamAutoMemoryIndexPath,
  getTeamAutoMemoryRoot,
  getUserAutoMemoryIndexPath,
  getUserAutoMemoryRoot,
  getUserAutoMemoryTopicPath,
  isAnyAutoMemPath,
  isAutoMemPath,
  isManagedMemoryPath,
  isTeamAutoMemPath,
  isUserAutoMemPath
} from "./chunk-FBU7WRZI.js";
import "./chunk-Y66VOBRP.js";
import "./chunk-WTNZ6DXB.js";
import {
  AgentStatistics,
  BaseDeclarativeTool,
  BaseToolInvocation,
  CONCURRENCY_SAFE_KINDS,
  DeclarativeTool,
  Kind,
  MUTATOR_KINDS,
  SchemaValidator,
  ToolConfirmationOutcome,
  ToolDisplayNames,
  ToolDisplayNamesMigration,
  ToolErrorType,
  ToolNames,
  ToolNamesMigration,
  hasCycleInSchema,
  isShellProgressData,
  isTool
} from "./chunk-JGUT3LWZ.js";
import {
  CredentialsClearRequiredError,
  QWEN_CREDENTIAL_FILE_MODE,
  QwenOAuth2Client,
  QwenOAuth2Event,
  QwenOAuthPollError,
  cacheQwenCredentials,
  clearCachedCredentialFile,
  clearQwenCredentials,
  generateCodeChallenge,
  generateCodeVerifier,
  generatePKCEPair,
  getQwenOAuthClient,
  isDeviceAuthorizationSuccess,
  isDeviceTokenPending,
  isDeviceTokenSuccess,
  isErrorResponse,
  qwenOAuth2Events
} from "./chunk-OKAIGAYW.js";
import "./chunk-ZPAHLFZU.js";
import {
  isBrowserCommandBlocked,
  openBrowserSecurely,
  shouldAttemptBrowserLaunch,
  shouldLaunchBrowser
} from "./chunk-JESCGQM3.js";
import {
  atomicWriteFile,
  atomicWriteFileSync,
  atomicWriteJSON,
  renameWithRetry,
  renameWithRetrySync
} from "./chunk-WIEO4CWB.js";
import {
  REASONING_EFFORT_RANKS,
  REASONING_EFFORT_TIERS,
  clampReasoningEffort,
  normalizeReasoningEffort
} from "./chunk-XVNQMZ2I.js";
import {
  SUPPORTED_IMAGE_MIME_TYPES,
  getSupportedImageFormatsString,
  getUnsupportedImageFormatWarning,
  isSupportedImageMimeType
} from "./chunk-FEOZBUMT.js";
import {
  DEFAULT_OUTPUT_TOKEN_LIMIT,
  DEFAULT_TOKEN_LIMIT,
  ESCALATED_MAX_TOKENS,
  MIN_CLAMPED_OUTPUT_TOKENS,
  OUTPUT_TOKEN_CEILING,
  RuntimeDiagnosticsCollector,
  TextTokenizer,
  clampOutputTokensToWindow,
  defaultOutputCeiling,
  getToolCallPreparations,
  hasExplicitOutputLimit,
  isRuntimeDiagnosticsEnabled,
  knownTokenLimit,
  normalize,
  outputClampMargin,
  parsePositiveIntegerEnvValue,
  reconcileMaxTokens,
  runtimeDiagnostics,
  setToolCallPreparations,
  summarizeAnthropicWireRequest,
  summarizeOpenAIWireRequest,
  tokenLimit
} from "./chunk-VRR65QYW.js";
import "./chunk-A4UCTEB5.js";
import "./chunk-XWRJCPHC.js";
import "./chunk-4LD5APFL.js";
import "./chunk-TYAMGABM.js";
import "./chunk-FCMNKVXT.js";
import "./chunk-DJ2GSRLV.js";
import {
  detectRuntime,
  getOrCreateSharedDispatcher,
  isTlsVerificationDisabled,
  redactProxyCredentials
} from "./chunk-LQIDP6K5.js";
import {
  BadRequestError,
  FatalAuthenticationError,
  FatalBudgetExceededError,
  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,
  formatTraceparent,
  getErrorMessage,
  getErrorStatus,
  getErrorType,
  getProjectHash,
  getTraceContext,
  isAbortError,
  isDebugLogFileEnabled,
  isDebugLoggingDegraded,
  isNodeError,
  isSubpath,
  isSubpaths,
  makeRelative,
  resetDebugLoggingState,
  resolveAndValidatePath,
  resolvePath,
  runWithDebugLogSession,
  runWithoutDebugLogSession,
  sanitizeCwd,
  setDebugLogSession,
  shortenPath,
  tildeifyPath,
  toFriendlyError,
  unescapePath,
  updateSymlink,
  validatePath
} from "./chunk-7NFB7LBQ.js";
import "./chunk-75DOP5OR.js";
import "./chunk-DMTGGOSA.js";
import "./chunk-YQ3U5MUC.js";
import {
  SpanStatusCode,
  ValueType
} from "./chunk-TB6UDU4T.js";
import "./chunk-5O2XNYP6.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,
  AUTONOMOUS_SENTINEL_CRON,
  AUTONOMOUS_SENTINEL_DYNAMIC,
  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,
  AutonomousLoopTickResolver,
  BACKGROUND_AGENT_CONCURRENCY_ENV,
  BASELINE_COMMIT_MESSAGE,
  BINARY_EXTENSIONS,
  BINARY_FILE_PATTERNS,
  BTW_MAX_INPUT_LENGTH,
  BUNDLE_CHUNK_DIR,
  BackgroundAgentResumeService,
  BackgroundShellRegistry,
  BackgroundTaskRegistry,
  BadRequestError,
  BaseDeclarativeTool,
  BaseToolInvocation,
  BudgetExhaustedError,
  BuiltinAgentRegistry,
  CHANNEL_MEMORY_DOCUMENT_VERSION,
  CHANNEL_MEMORY_FILE_NAME,
  CHANNEL_MEMORY_ID_RE,
  CLIENT_MCP_MESSAGE_TIMEOUT_MS,
  CODE_ACTION_KIND_LABELS,
  CODING_PLAN_CHINA_BASE_URL,
  CODING_PLAN_ENV_KEY,
  CODING_PLAN_GLOBAL_BASE_URL,
  COMMAND_SUBSTITUTION_WARNING,
  COMMON_DIRECTORY_EXCLUDES,
  COMMON_IGNORE_PATTERNS,
  CONCURRENCY_SAFE_KINDS,
  CUSTOM_API_KEY_ENV_PREFIX,
  ChatRecordingService,
  ClientMcpRegistrar,
  CloseDiffRequestSchema,
  ColorMode,
  CompressionStatus,
  ConditionalRulesRegistry,
  Config,
  ContextState,
  ConversationFinishedEvent,
  CoreToolScheduler,
  CredentialsClearRequiredError,
  CronScheduler,
  DAEMON_TRACEPARENT_META_KEY,
  DAEMON_TRACESTATE_META_KEY,
  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_SHUTDOWN_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_MAX_CONCURRENT_BACKGROUND_AGENTS,
  DEFAULT_MAX_INLINE_MEDIA_BYTES,
  DEFAULT_MAX_SUBAGENT_DEPTH,
  DEFAULT_MAX_TOOL_CALLS_PER_TURN,
  DEFAULT_MEMORY_FILE_FILTERING_OPTIONS,
  DEFAULT_OTLP_ENDPOINT,
  DEFAULT_OUTPUT_TOKEN_LIMIT,
  DEFAULT_QWEN_CUSTOM_IGNORE_FILE_NAMES,
  DEFAULT_QWEN_EMBEDDING_MODEL,
  DEFAULT_QWEN_FLASH_MODEL,
  DEFAULT_QWEN_MODEL,
  DEFAULT_RECURRING_MAX_AGE_DAYS,
  DEFAULT_SENSITIVE_SPAN_ATTRIBUTE_MAX_LENGTH,
  DEFAULT_STOP_HOOK_BLOCK_CAP,
  DEFAULT_TELEMETRY_TARGET,
  DEFAULT_TOKEN_LIMIT,
  DEFAULT_TOOL_OUTPUT_BATCH_BUDGET,
  DEFAULT_TOOL_RESULTS_TOTAL_CHARS_THRESHOLD,
  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,
  ExtensionConflictError,
  ExtensionDisableEvent,
  ExtensionEnableEvent,
  ExtensionInstallEvent,
  ExtensionManager,
  ExtensionPreferencesStore,
  ExtensionSettingScope,
  ExtensionStore,
  ExtensionStoreBusyError,
  ExtensionStoreCorruptError,
  ExtensionUninstallEvent,
  ExtensionUpdateState,
  FILE_HISTORY_DIR,
  FORK_SUBAGENT_TYPE,
  FatalAuthenticationError,
  FatalBudgetExceededError,
  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,
  GROK_BASE_URL,
  GROK_ENV_KEY,
  GROUP_COLOR_OPTIONS,
  GeminiChat,
  GeminiClient,
  GeminiEventType,
  GitIgnoreParser,
  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,
  IMAGE_CAPABILITY,
  INBOXES_DIR,
  INITIAL_FOLLOWUP_STATE,
  INSTALL_METADATA_FILENAME,
  ITermBackend,
  IdeClient,
  IdeConnectionEvent,
  IdeConnectionType,
  IdeContextNotificationSchema,
  IdeContextSchema,
  IdeContextStore,
  IdeDiffAcceptedNotificationSchema,
  IdeDiffClosedNotificationSchema,
  IdeDiffRejectedNotificationSchema,
  Ignore,
  InProcessBackend,
  InputFormat,
  InvalidMcpConfigError,
  InvalidPreparedExtensionError,
  InvalidSessionTranscriptCursorError,
  InvalidStreamError,
  JsonFormatter,
  KeychainTokenStorage,
  Kind,
  KittySequenceOverflowEvent,
  LEADER_NAME,
  LEARNED_SKILL_DIR_PREFIX,
  LEGACY_CHANNEL_MEMORY_FILE_NAME,
  LITE_READ_BUF_SIZE,
  LOCAL_CONTEXT_FILENAME,
  LOOP_SENTINEL_CRON,
  LOOP_SENTINEL_DYNAMIC,
  LOOP_TASK_FILE_MAX_BYTES,
  Logger,
  LoopDetectedEvent,
  LoopTickResolver,
  LoopType,
  LspConfigLoader,
  LspConnectionFactory,
  LspResponseNormalizer,
  LspServerManager,
  MAINLINE_CODER_MODEL,
  MAIN_SOURCE,
  MAX_CHANNEL_MEMORY_BYTES,
  MAX_CHANNEL_MEMORY_ENTRIES,
  MAX_CHANNEL_MEMORY_ENTRIES_PER_REQUEST,
  MAX_CHANNEL_MEMORY_ENTRY_CODE_POINTS,
  MAX_CONCURRENT_BACKGROUND_AGENTS,
  MAX_CONCURRENT_MONITORS,
  MAX_DIFF_SIZE_BYTES,
  MAX_FILES,
  MAX_FILES_FOR_DETAILS,
  MAX_GOAL_ITERATIONS,
  MAX_JOBS,
  MAX_LINES_PER_FILE,
  MAX_MCP_RESOURCE_BLOB_CHARS,
  MAX_MCP_RESOURCE_TEXT_CHARS,
  MAX_NOTIFICATION_OUTPUT_TAIL_BYTES,
  MAX_RECENT_ACTIVITIES,
  MAX_RETAINED_AGENT_FIELD_CHARS,
  MAX_RETAINED_ANSI_OUTPUT_LINES,
  MAX_RETAINED_FILE_CONTENT_CHARS,
  MAX_RETAINED_FILE_DIFF_CHARS,
  MAX_RETAINED_SNAPSHOTS,
  MAX_RETAINED_TERMINAL_AGENTS,
  MAX_RETAINED_TERMINAL_MONITORS,
  MAX_RETAINED_TERMINAL_SHELLS,
  MAX_RETAINED_TERMINAL_WORKFLOWS,
  MAX_RETAINED_TOOL_RESULT_DISPLAY_CHARS,
  MAX_SNAPSHOTS,
  MAX_SUBAGENT_DEPTH_LIMIT,
  MAX_TASK_RUNS,
  MAX_TEAMMATES,
  MAX_TRANSCRIPT_MESSAGES,
  MAX_USER_PROMPT_EXPANSION_ADDITIONAL_CONTEXT_LENGTH,
  MCPDiscoveryState,
  MCPOAuthProvider,
  MCPOAuthTokenStorage,
  MCPServerConfig,
  MCPServerStatus,
  MCP_BUDGET_REARM_FRACTION,
  MCP_BUDGET_WARN_FRACTION,
  MCP_DEFAULT_TIMEOUT_MSEC,
  MEDIA_FILE_PATTERNS,
  MEMORY_SECTION_HEADER,
  MESSAGE_DISPLAY_DRAIN_TIMEOUT_MS,
  MIN_CLAMPED_OUTPUT_TOKENS,
  MOCK_TOOL_GET_CONFIRMATION_DETAILS,
  MOCK_TOOL_GET_DEFAULT_PERMISSION,
  MODEL_GENERATION_CONFIG_FIELDS,
  MUTATOR_KINDS,
  McpBudgetWouldExceedError,
  McpClient,
  McpClientManager,
  McpServerSpawnFailedError,
  McpTransportPool,
  MemoryDreamEvent,
  MemoryExtractEvent,
  MemoryManager,
  MemoryMetricType,
  MemoryRecallEvent,
  MessageBus,
  MessageBusType,
  MessageDisplayDispatcher,
  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,
  ORPHAN_TOOL_USE_REPAIR_REASON,
  OUTPUT_TOKEN_CEILING,
  OpenAILogger,
  OpenDiffRequestSchema,
  OutputFormat,
  OverlayFs,
  PATH_ARG_KEYS,
  POOLED_TRANSPORTS_DEFAULT,
  PROVIDER_METADATA_NS,
  PYTHON_EXCLUDES,
  PerformanceMetricType,
  PermissionManager,
  PermissionMode,
  PermissionRequestHookOutput,
  PostCompactTrigger,
  PostToolBatchHookOutput,
  PostToolUseFailureHookOutput,
  PostToolUseHookOutput,
  PreCompactTrigger,
  PreToolUseHookOutput,
  PreparedExtensionConsumedError,
  PromptSuggestionEvent,
  ProviderInstallError,
  QWEN_CODE_COMPANION_EXTENSION_NAME,
  QWEN_CODE_SIMPLE_ENV_VAR,
  QWEN_CREDENTIAL_FILE_MODE,
  QWEN_DIR,
  QWEN_OAUTH_MODELS,
  QwenIgnoreParser,
  QwenLogger,
  QwenOAuth2Client,
  QwenOAuth2Event,
  QwenOAuthPollError,
  REASONING_EFFORT_RANKS,
  REASONING_EFFORT_TIERS,
  RECIPROCAL_CALLER,
  REDACTED_URL_CREDENTIAL,
  REQUESTY_BASE_URL,
  REQUESTY_ENV_KEY,
  RUNTIME_MCP_IF_ABSENT_CONFIG_FLAG,
  RUNTIME_SNAPSHOT_PREFIX,
  RUNTIME_STATUS_SCHEMA_VERSION,
  ReadFileTool,
  RipGrepTool,
  RipgrepFallbackEvent,
  RuntimeDiagnosticsCollector,
  SAFE_TOOL_ALLOWLIST,
  SENSITIVE_SPAN_ATTRIBUTE_MAX_LENGTH_LIMIT,
  SESSION_ARTIFACT_PERSISTENCE_VERSION,
  SESSION_TITLE_MAX_LENGTH,
  SESSION_TRANSCRIPT_CURSOR_VERSION,
  SESSION_TRANSCRIPT_DEFAULT_LIMIT,
  SESSION_TRANSCRIPT_MAX_INDEX_BYTES,
  SESSION_TRANSCRIPT_MAX_LIMIT,
  SHELL_SELF_KILL_REJECTION,
  SHELL_SPECIAL_CHARS,
  SHELL_TOOL_NAMES,
  SKILL_REVIEW_TASK_TYPE,
  STOP_HOOK_BLOCK_CAP_ENV,
  SUGGESTION_PROMPT,
  SUPPORTED_IMAGE_MIME_TYPES,
  SYMBOL_KIND_LABELS,
  SYSTEM_FILE_EXCLUDES,
  SYSTEM_REMINDER_CLOSE,
  SYSTEM_REMINDER_OPEN,
  SchemaValidator,
  SdkControlClientTransport,
  SemanticAttributes,
  SendMessageType,
  SessionEndReason,
  SessionOrganizationError,
  SessionOrganizationService,
  SessionService,
  SessionStartSource,
  SessionTranscriptCursorCodec,
  SessionTranscriptPageTooLargeError,
  SessionTranscriptReader,
  SessionTranscriptSnapshotUnavailableError,
  SessionTranscriptTooLargeError,
  SettingScope,
  ShellExecutionService,
  SkillActivationRegistry,
  SkillError,
  SkillLaunchEvent,
  SkillManager,
  SlashCommandStatus,
  SleepInhibitor,
  SourceRegistryStore,
  SpanStatusCode,
  SpeculationEvent,
  StandardFileSystemService,
  StartSessionEvent,
  StopHookOutput,
  Storage,
  StreamEventType,
  SubagentError,
  SubagentErrorCode,
  SubagentManager,
  SubagentValidator,
  TASKS_DIR,
  TEAMMATE_COLORS,
  TEAMS_DIR,
  TEAM_AUTO_MEMORY_DIRNAME,
  TEAM_CONFIG_FILENAME,
  TERMINAL_CSI_REGEX,
  TERMINAL_OSC_REGEX,
  TERMINAL_SHIFT_DCS_REGEX,
  THIRD_PARTY_PROVIDERS,
  TOKEN_PLAN_BASE_URL,
  TOKEN_PLAN_ENV_KEY,
  TOOL_NAME_ALIASES,
  TOOL_SUCCEEDED_OUTPUT,
  TOOL_USE_SUMMARY_SYSTEM_PROMPT,
  TURN_INTERRUPTION_HISTORY_TAIL_COUNT,
  TaskOwnershipError,
  TeamEventEmitter,
  TeamEventType,
  TeamManager,
  TelemetryTarget,
  TextTokenizer,
  TmuxBackend,
  ToolCallEvent,
  ToolConfirmationOutcome,
  ToolDisplayNames,
  ToolDisplayNamesMigration,
  ToolErrorType,
  ToolExecutionPhase,
  ToolNames,
  ToolNamesMigration,
  ToolOutputTruncatedEvent,
  ToolRegistry,
  TrustGateError,
  Turn,
  USER_AUTO_MEMORY_DIRNAME,
  UiTelemetryService,
  UnauthorizedError,
  UserFeedbackEvent,
  UserFeedbackRating,
  UserPromptEvent,
  UserPromptExpansionHookOutput,
  UserRetryEvent,
  ValueType,
  WAKEUP_MAX_SECONDS,
  WAKEUP_MIN_SECONDS,
  WORKFLOW_NAME_PATTERN,
  WORKSPACE_CONTENT_MTIME_MS_METADATA_KEY,
  WORKSPACE_CONTENT_SHA256_METADATA_KEY,
  WORKTREES_DIR,
  WORKTREE_BRANCH_PREFIX,
  WORKTREE_SESSION_FILE,
  WorkflowKeywordEvent,
  WorkflowRunEvent,
  WorkflowRunRegistry,
  WorkspaceContext,
  WorkspaceMcpBudget,
  WorkspaceMemoryFileTooLargeError,
  WorkspaceMemoryWriteTimeoutError,
  __resetActiveGoalStoreForTests,
  _recoverObjectsFromLine,
  _resetCachedIdeServerHost,
  _resetEnsuredDirsCacheForTest,
  _resetRipGrepCachesForTest,
  _resetRipgrepUtilsCachesForTest,
  _resetValidatePathCacheForTest,
  abortGoalForStopHookCap,
  abortSpeculation,
  acceptSpeculation,
  acquireSleepInhibitor,
  activeGoalEquals,
  addChannelMemoryEntries,
  addDaemonRequestAttribute,
  addMCPStatusChangeListener,
  addModelOutputAttributes,
  addSystemPromptAttributes,
  addToolInputAttributes,
  addToolResultAttributes,
  addToolSchemaAttributes,
  addUserPromptAttributes,
  aggregateUsage,
  alibabaStandardProvider,
  allowEditorTypeInSandbox,
  apiActivityTracker,
  apiResponseEventToTokenUsageRecord,
  appendChannelMemory,
  appendCronRun,
  appendToLastTextPart,
  applyAutoModeDecision,
  applyProviderInstallPlan,
  applySkillAllowedTools,
  approxBase64Bytes,
  areSensitiveSpanAttributesEnabled,
  assertValidTaskId,
  assignTeammateColor,
  atomicWriteFile,
  atomicWriteFileSync,
  atomicWriteJSON,
  attemptAutomaticMcpOAuth,
  blockTask,
  buildAddedAgentsReminder,
  buildAddedMcpToolsReminder,
  buildAddedSkillsReminder,
  buildApiHistoryFromConversation,
  buildAvailableSkillsReminder,
  buildBackgroundEntryLabel,
  buildBareRememberPrompt,
  buildBtwCacheSafeParams,
  buildBtwPrompt,
  buildChangedAgentsReminder,
  buildChangedMcpToolsReminder,
  buildChangedSkillsReminder,
  buildContextUsage,
  buildDeferredToolsReminder,
  buildFallbackApproachSummary,
  buildHumanReadableRuleLabel,
  buildInstallPlan,
  buildLearnSkillPrompt,
  buildManagedRememberPrompt,
  buildMcpServerInstructionsReminder,
  buildMissedCronNotification,
  buildModelIdContext,
  buildOrderedUuidChain,
  buildPermissionCheckContext,
  buildPermissionRules,
  buildProviderTemplate,
  buildSessionRecoveryPlan,
  buildSessionRecoveryPlanFromApiHistory,
  buildShellExecWarnings,
  buildSkillLlmContent,
  buildStartupContextReminder,
  buildSyntheticToolResponseParts,
  buildTeammatePromptAddendum,
  buildUsageDashboard,
  cacheQwenCredentials,
  canUseRipgrep,
  canonicalToolName,
  captureDaemonTelemetryContext,
  checkArgumentSafety,
  checkCommandPermissions,
  checkForExtensionUpdate,
  checkHasEditorType,
  checkNpmUpdate,
  claimTask,
  clampInlineMediaPart,
  clampOutputTokensToWindow,
  clampReasoningEffort,
  clampWakeupSeconds,
  classifyShutdownResponse,
  cleanSummary,
  cleanupTmpDir,
  clearActiveGoal,
  clearAllInboxes,
  clearAutoMemoryRootCache,
  clearCacheSafeParams,
  clearCachedCredentialFile,
  clearChannelMemory,
  clearGitDirCache,
  clearGoalTerminalObserver,
  clearInbox,
  clearQwenCredentials,
  clearRuntimeStatus,
  clearSessionCommits,
  clearTeammateColors,
  clearWelcomeBackState,
  clearWorktreeSession,
  cliSource,
  cloneFromGit,
  codingPlanProvider,
  collectMemoryDiagnostics,
  collectText,
  collectToolCallIdsFromHistory,
  commandExists,
  compactStringForHistory,
  compactStringForRecording,
  compactToolResultDisplayForHistory,
  compactToolResultDisplayForRecording,
  computeModelListVersion,
  computeThresholds,
  computeUniqueBranchTitle,
  computedSource,
  connectAndDiscover,
  connectToMcpServer,
  connectionIdOf,
  consumeUnread,
  convertClaudeAgentConfig,
  convertClaudePluginPackage,
  convertClaudePluginStandalone,
  convertClaudeToQwenConfig,
  convertColorToHex,
  convertToFunctionErrorResponse,
  convertToFunctionResponse,
  convertTomlToMarkdown,
  copyExtension,
  countFileLines,
  countLines,
  crawlCache_exports as crawlCache,
  createChannelMemoryEntry,
  createContentGenerator,
  createContentGeneratorConfig,
  createDaemonBridgeTelemetry,
  createDebugLogger,
  createDefaultAutoMemoryExtractCursor,
  createDefaultAutoMemoryIndex,
  createDefaultAutoMemoryMetadata,
  createDenialState,
  createDuplicateProviderToolCallResponse,
  createFollowupController,
  createForkedChat,
  createGoalStopHookCallback,
  createHookOutput,
  createInstructionsLoadedCallback,
  createOpenAIReasoningThoughtPart,
  createStreamableHttpCompatibilityFetch,
  createTask,
  createTeamFile,
  createTmpDir,
  createToolUseSummaryMessage,
  createTransport,
  customProvider,
  decodeBufferWithEncodingInfo,
  decodeSessionTranscriptCursor,
  decodeTagName,
  dedupeToolCallsById,
  deepseekProvider,
  defaultOutputCeiling,
  defaultSource,
  delay,
  deleteTask,
  deleteTeamDirs,
  deserializeSnapshots,
  detectAutonomousSentinel,
  detectBOM,
  detectBackend,
  detectCommandSubstitution,
  detectEncodingFromBuffer,
  detectFileEncoding,
  detectFileType,
  detectIdeFromEnv,
  detectLineEnding,
  detectLoopSentinel,
  detectRuntime,
  detectSelfKillCommand,
  detectTodoChanges,
  detectTurnInterruption,
  didWriteManagedMemory,
  discoverMcpTools,
  discoverPlugins,
  discoverPrompts,
  discoverResources,
  discoverTools,
  disposeInboxLocks,
  doesToolInvocationMatch,
  downloadFromArchiveUrl,
  downloadFromGitHubRelease,
  downloadFromNpmRegistry,
  editorCommands,
  emitDaemonLog,
  emptyMcpResourceText,
  encodeInsightErrorMessage,
  encodeInsightProgressMessage,
  encodeInsightReadyMessage,
  encodeSessionTranscriptCursor,
  encodeTagName,
  encodeTextFileContent,
  endHookSpan,
  endInteractionSpan,
  endLLMRequestSpan,
  endSubagentSpan,
  endToolBlockedOnUserSpan,
  endToolExecutionSpan,
  endToolSpan,
  ensureAutoMemoryScaffold,
  ensureCrlfLineEndings,
  ensureMacBinarySigned,
  ensureRipgrepHealthy,
  ensureToolResultPairing,
  ensureUserAutoMemoryScaffold,
  envLayer,
  escapePath,
  escapeShellArg,
  evaluateAutoMode,
  evaluatePermissionFlow,
  evaluatePermissionRules,
  evaluateToolCall,
  execCommand,
  executeToolCall,
  exists,
  expandHomeDir,
  exportTokenUsageSummary,
  extractArchiveFile,
  extractDaemonTraceContext,
  extractExtensionsFromPatterns,
  extractFile,
  extractJsonStringField,
  extractLastJsonStringField,
  extractLastJsonStringFields,
  extractLastUserPrompt,
  extractShellOperations,
  extractToolFilePaths,
  fetchGitDiff,
  fetchGitDiffHunks,
  fileExists,
  filter,
  findExistingProviderModels,
  findGitRoot,
  findMemberById,
  findMemberByName,
  findProviderByCredentials,
  findProviderById,
  findReleaseAsset,
  findRepeatedDuplicateProviderToolCall,
  fireNotificationHook,
  firePermissionRequestHook,
  firePostToolBatchHook,
  firePostToolUseFailureHook,
  firePostToolUseHook,
  firePreToolUseHook,
  flatMapTextParts,
  forceFlushMetrics,
  formatAgentId,
  formatClassifierBlockMessage,
  formatDateForContext,
  formatDenialStateLog,
  formatLineStats,
  formatMcpResourceContents,
  formatMemoryUsage,
  formatStopHookBlockingCapWarning,
  formatTokenUsageSummaryAsCsv,
  formatTokenUsageSummaryAsJson,
  formatTraceparent,
  formatVisionBridgeNotice,
  formatVisionBridgeNoticeDisplay,
  forwardApproval,
  generateAgentWorktreeSlug,
  generateCodeChallenge,
  generateCodeVerifier,
  generateCronTaskId,
  generateCustomEnvKey,
  generatePKCEPair,
  generatePromptSuggestion,
  generateSessionRecap,
  generateToolUseId,
  generateToolUseSummary,
  generateUniqueTeammateName,
  generateValidName,
  getActiveGoal,
  getActiveInteractionSpan,
  getAgentName,
  getAgentStatuses,
  getAliasSetForTool,
  getAllGeminiMdFilenames,
  getAllMCPServerStatuses,
  getAllProviderBaseUrls,
  getArenaSystemReminder,
  getAutoMemoryConsolidationLockPath,
  getAutoMemoryExtractCursorPath,
  getAutoMemoryFilePath,
  getAutoMemoryIndexPath,
  getAutoMemoryMetadataPath,
  getAutoMemoryProjectStateDir,
  getAutoMemoryRoot,
  getAutoMemoryTopicFilename,
  getAutoMemoryTopicPath,
  getAutoModePermissionDeniedReason,
  getBuiltinRipgrep,
  getCacheSafeParams,
  getCachedEncodingForBuffer,
  getChannelMemoryFilePath,
  getCommandRoot,
  getCommandRoots,
  getCompressionPrompt,
  getCoreSystemPrompt,
  getCronFilePath,
  getCurrentGeminiMdFilename,
  getCustomSystemPrompt,
  getDefaultBaseUrlForProtocol,
  getDefaultModelIds,
  getDiffCommand,
  getDirectoryContextString,
  getEditorExecutable,
  getEffectivePermissionForConfirmation,
  getEnvContents,
  getEnvironmentContext,
  getErrorMessage,
  getErrorStatus,
  getErrorType,
  getExtensionDescription,
  getExtensionDisplayName,
  getExtensionId,
  getExternalEditorCommand,
  getFilterReason,
  getFolderStructure,
  getFunctionCalls,
  getFunctionCallsAsJson,
  getFunctionCallsFromParts,
  getFunctionCallsFromPartsAsJson,
  getGitBranch,
  getGitRepoName,
  getHookKey,
  getIdeInstaller,
  getIdeServerHost,
  getInboxPath,
  getInboxesDir,
  getInitialChatHistory,
  getInsightPrompt,
  getLastGoalTerminal,
  getLeader,
  getLegacyChannelMemoryFilePath,
  getMCPDiscoveryState,
  getMCPServerPrompts,
  getMCPServerStatus,
  getMaxInlineMediaBytes,
  getMcpOAuthDialogInstruction,
  getMemoryBaseDir,
  getMonitorOutputPath,
  getOrCreateSharedDispatcher,
  getPlanModeSystemReminder,
  getProjectHash,
  getProjectSummaryInfo,
  getProjectSummaryPrompt,
  getProviderToolCallId,
  getQwenOAuthClient,
  getRateLimitErrorDetails,
  getRateLimitRetryDelayMs,
  getRecentGitStatus,
  getResponseText,
  getResponseTextFromParts,
  getResumePromptTokenCount,
  getResumeTokenCounts,
  getRuleDisplayName,
  getSavedWorkflowDirs,
  getScopedEnvContents,
  getSessionProjectDir,
  getShellAbortReasonKind,
  getShellConfiguration,
  getSpecificMimeType,
  getSpecifierKind,
  getStartupContextLength,
  getStructuredResponse,
  getStructuredResponseFromParts,
  getSubagentsRootDir,
  getSupportedImageFormatsString,
  getSystemEncoding,
  getTask,
  getTaskPath,
  getTasksDir,
  getTeamAutoMemoryIndexPath,
  getTeamAutoMemoryRoot,
  getTeamDir,
  getTeamFilePath,
  getTeamName,
  getTeammateColor,
  getTeammateContext,
  getTeamsRootDir,
  getThoughtSummary,
  getTimeRangeBounds,
  getTokenUsageFilePath,
  getToolCallPreparations,
  getToolResponseDisplayText,
  getTraceContext,
  getUnsupportedImageFormatWarning,
  getUserAutoMemoryIndexPath,
  getUserAutoMemoryRoot,
  getUserAutoMemoryTopicPath,
  getWelcomeBackState,
  globalMemoryManager,
  grokProvider,
  hasCycleInSchema,
  hasExplicitOutputLimit,
  hasImageParts,
  hasNetworkTransport,
  hasNonFinalTopLevelBackgroundOperator,
  hasShellSubstitution,
  hasUnsafeMonitorBackgroundOperator,
  hashDaemonWorkspace,
  hashMcpServerConfig,
  hashValue,
  hookEventSupportsMatcher,
  hydrateString,
  ideContextStore,
  idealabProvider,
  initializeDaemonMetrics,
  initializeTelemetry,
  injectDaemonTraceContext,
  injectPermissionRulesIfMissing,
  invokeMcpPrompt,
  isAbortError,
  isAnyAutoMemPath,
  isApiError,
  isApproveOutcome,
  isAutoEditApproved,
  isAutoMemPath,
  isBareMode,
  isBinary,
  isBinaryFile,
  isBrowserCommandBlocked,
  isCacheableReadResult,
  isClaudePluginConfig,
  isCommandAllowed,
  isCommandAvailable,
  isCommandNeedsPermission,
  isDebugLogFileEnabled,
  isDebugLoggingDegraded,
  isDenialFallbackReason,
  isDestructiveCommand,
  isDeviceAuthorizationSuccess,
  isDeviceTokenPending,
  isDeviceTokenSuccess,
  isEditorAvailable,
  isEnabled,
  isErrorResponse,
  isExtensionCommittedWithWarningsError,
  isGatedMcpScope,
  isGenericQuotaExceededError,
  isGitRepository,
  isImageCapable,
  isImagePart,
  isInProcessTeammate,
  isInSafeToolAllowlist,
  isInvalidArgumentError,
  isManagedMemoryPath,
  isModifiableDeclarativeTool,
  isNodeError,
  isOpenAIReasoningThoughtPart,
  isPathWithinRoot,
  isPerformanceMonitoringActive,
  isPlanModeBlocked,
  isProQuotaExceededError,
  isPrototypeMetadataKey,
  isQwenQuotaExceededError,
  isRateLimitError,
  isReservedWorkspaceMetadataKey,
  isRuntimeDiagnosticsEnabled,
  isSafeModeEnv,
  isSchemaDepthError,
  isScopedNpmPackage,
  isSdkMcpServerConfig,
  isSessionArtifactRecord,
  isSessionRuntimeActive,
  isSettledStatus,
  isShellProgressData,
  isStructuredError,
  isSubpath,
  isSubpaths,
  isSuccessStatus,
  isSupportedArchivePath,
  isSupportedArchiveUrl,
  isSupportedImageMimeType,
  isSystemReminderContent,
  isTeamAutoMemPath,
  isTeamLead,
  isTeammate,
  isTelemetrySdkInitialized,
  isTerminalEditor,
  isTerminalStatus,
  isTlsVerificationDisabled,
  isTomlFormat,
  isTool,
  isToolArtifactLike,
  isToolCallConcurrencySafe,
  isToolEnabled,
  isTransientCapacityError,
  isTruthy,
  isUnattendedMode,
  isUsableImagePart,
  isUserAutoMemPath,
  isValidEditorType,
  isValidGitSha,
  isValidNonThoughtTextPart,
  isValidRefName,
  isValidSensitiveSpanAttributeMaxLength,
  isVisionBridgeNoticeDisplay,
  isWindows,
  isWithinRoot,
  isWorkspaceContentMetadataEntry,
  judgeGoal,
  knownTokenLimit,
  layer,
  listChannelMemoryEntries,
  listMcpPrompts,
  listMcpResources,
  listSavedWorkflows,
  listTasks,
  listTeamNames,
  listWorkflowSnapshots,
  loadIgnoreRules,
  loadMarketplaceConfigFromSource,
  loadServerHierarchicalMemory,
  loadUsageDashboard,
  loadUsageHistory,
  loadUsageHistoryWithLive,
  logApiCancel,
  logApiError,
  logApiRequest,
  logApiResponse,
  logArenaAgentCompleted,
  logArenaSessionEnded,
  logArenaSessionStarted,
  logAuth,
  logChatCompression,
  logConversationFinishedEvent,
  logExtensionDisable,
  logExtensionEnable,
  logExtensionInstallEvent,
  logExtensionUninstall,
  logExtensionUpdateEvent,
  logFlashFallback,
  logIdeConnection,
  logKittySequenceOverflow,
  logLoopDetected,
  logMemoryDream,
  logMemoryExtract,
  logMemoryRecall,
  logModelSlashCommand,
  logNextSpeakerCheck,
  logPromptSuggestion,
  logRipgrepFallback,
  logSkillLaunch,
  logSlashCommand,
  logSpeculation,
  logStartSession,
  logToolCall,
  logToolOutputTruncated,
  logUserFeedback,
  logUserPrompt,
  logUserRetry,
  logWorkflowKeyword,
  logWorkflowRun,
  lspServerConfigHash,
  makeArenaAgentCompletedEvent,
  makeArenaSessionEndedEvent,
  makeArenaSessionStartedEvent,
  makeChatCompressionEvent,
  makeFakeConfig,
  makeRelative,
  makeSlashCommandEvent,
  markDuplicateProviderToolCallResponseSent,
  matchesAnyServerPattern,
  matchesCommandPattern,
  matchesDomainPattern,
  matchesMcpPattern,
  matchesPathPattern,
  matchesRule,
  matchesServerPattern,
  maybePromptForSettings,
  mcpServerRequiresOAuth,
  mcpTransportOf,
  mergeClaudeConfigs,
  metadataBudgetBytes,
  metricsToUsageRecord,
  minimaxProvider,
  modelProvidersSource,
  modelRegistryKey,
  modelscopeProvider,
  modifyWithEditor,
  needsConfirmation,
  needsUtf8Bom,
  nextDurableFireMs,
  nextFireTime,
  normalize,
  normalizeChannelMemoryText,
  normalizeClaudeMcpServer,
  normalizeContent,
  normalizeEventPayload,
  normalizeMaxSubagentDepth,
  normalizeModelToolCallIds,
  normalizeMonitorCommand,
  normalizeParts,
  normalizeProxyUrl,
  normalizeReasoningEffort,
  normalizeRecurringMaxAge,
  normalizeSkillPriority,
  normalizeSnapshotPayload,
  normalizeStopHookBlockingCap,
  notifyGoalTerminal,
  notifyTasksUpdated,
  onTasksUpdated,
  openBrowserSecurely,
  openDiff,
  openRouterProvider,
  openaiLogger,
  outputClampMargin,
  oversizedMediaPlaceholder,
  parse,
  parseAndFormatApiError,
  parseBooleanEnvFlag,
  parseChannelMemoryDocument,
  parseConnectionId,
  parseCron,
  parseDeletedFromNameStatus,
  parseExtensionSourceType,
  parseGitDiff,
  parseGitHubRepoForReleases,
  parseGitNumstat,
  parseInsightMessage,
  parseInstallSource,
  parseLegacyChannelMemory,
  parseLineTolerant,
  parseNpmPackageSource,
  parsePositiveIntegerEnv,
  parsePositiveIntegerEnvValue,
  parseRule,
  parseRules,
  parseShortstat,
  parseTelemetryTargetValue,
  parseThought,
  parseVisionModelSetting,
  partListUnionToString,
  partToString,
  partitionByConcurrencySafety,
  passesAcceptEditsFastPath,
  performVariableReplacement,
  persistPermissionOutcome,
  persistSessionUsage,
  populateMcpServerCommand,
  prependToFirstTextPart,
  probeMcpServerForOAuth,
  processSingleFileContent,
  promptForSetting,
  promptIdContext,
  providerMatchesCredentials,
  queryTokenUsage,
  qwenOAuth2Events,
  read,
  readAutoMemoryIndex,
  readChannelMemory,
  readCronTasks,
  readFileWithEncoding,
  readFileWithEncodingInfo,
  readFileWithLineAndLimit,
  readGitHead,
  readInbox,
  readLastJsonStringFieldSync,
  readLastJsonStringFieldsSync,
  readLines,
  readLoopTaskFile,
  readManyFiles,
  readPathFromWorkspace,
  readRuntimeStatus,
  readTeamFile,
  readUserAutoMemoryIndex,
  readWorktreeSession,
  readWorktreeSessionMarker,
  rebuildSessionArtifactSnapshot,
  reconcileMaxTokens,
  recordAllow,
  recordApiErrorMetrics,
  recordApiRequestBreakdown,
  recordApiResponseMetrics,
  recordApiRetry,
  recordArenaAgentCompletedMetrics,
  recordArenaSessionEndedMetrics,
  recordArenaSessionStartedMetrics,
  recordBaselineComparison,
  recordBlock,
  recordContentRetry,
  recordContentRetryFailure,
  recordCpuUsage,
  recordDaemonBridgeError,
  recordDaemonCancel,
  recordDaemonChannelLifecycle,
  recordDaemonError,
  recordDaemonHttpRequest,
  recordDaemonHttpResponse,
  recordDaemonPipeMessage,
  recordDaemonPromptDuration,
  recordDaemonPromptQueueWait,
  recordDaemonSessionLifecycle,
  recordFallbackApprove,
  recordFileOperationMetric,
  recordGoalIteration,
  recordInvalidChunk,
  recordMemoryDreamMetrics,
  recordMemoryExtractMetrics,
  recordMemoryRecallMetrics,
  recordMemoryUsage,
  recordPerformanceRegression,
  recordPerformanceScore,
  recordSkillInvocation,
  recordStartupEvent,
  recordStartupPerformance,
  recordTokenEfficiency,
  recordTokenUsageFromApiResponse,
  recordTokenUsageFromApiResponseBestEffort,
  recordTokenUsageMetrics,
  recordToolCallMetrics,
  recordToolExecutionBreakdown,
  recordToolQueueDepth,
  recordUnavailable,
  recursivelyHydrateStrings,
  redactProxyCredentials,
  redactStructuredOutputArgsForRecording,
  redactUrlCredentials,
  refreshMemoryAfterManagedWrite,
  refreshMemoryInstruction,
  refreshSessionContext,
  registerAcpEventLoopLagGauge,
  registerDaemonEventLoopLagGauge,
  registerDaemonGaugeCallbacks,
  registerGoalHook,
  registerLeader,
  registerSessionCommit,
  registerSessionProjectDir,
  releaseOwnedTask,
  remapSessionArtifactPayloadForFork,
  removeChannelMemoryEntries,
  removeCronTasks,
  removeMCPServerStatus,
  removeMCPStatusChangeListener,
  renameWithRetry,
  renameWithRetrySync,
  renderChannelMemoryRecall,
  repairOrphanedToolUseTurns,
  replaceImagesWithText,
  replayUiTelemetryFromConversation,
  requestyProvider,
  reserveModelToolCallId,
  resetDebugLoggingState,
  resetDenialState,
  resetEncodingCache,
  resetTaskList,
  resetUtf8BomCache,
  resolveActiveTeamName,
  resolveAndValidatePath,
  resolveBaseUrl,
  resolveBranchName,
  resolveBundleDir,
  resolveCommandPath,
  resolveContentGeneratorConfigWithSources,
  resolveExtensionConfigLocale,
  resolveField,
  resolveGitDir,
  resolveLocalizableString,
  resolveMaxConcurrentBackgroundAgents,
  resolveMetadataKey,
  resolveModelConfig,
  resolveModelId,
  resolveNpmRegistry,
  resolveOpenAILogDir,
  resolveOptionalField,
  resolveOwnsModel,
  resolvePath,
  resolvePathFromEnv,
  resolvePathPattern,
  resolveProviderProtocol,
  resolveRipgrep,
  resolveSavedWorkflowScript,
  resolveStopHookBlockingCap,
  resolveTelemetrySettings,
  resolveToolName,
  restoreWorktreeContext,
  retryWithBackoff,
  rewritePathArgs,
  runForkedAgent,
  runInSubagentSpanContext,
  runInToolSpanContext,
  runManagedAutoMemoryDream,
  runManagedRememberByAgent,
  runRipgrep,
  runSideQuery,
  runVisionBridge,
  runWithDaemonTelemetryContext,
  runWithDebugLogSession,
  runWithForkedChatModel,
  runWithTeammateIdentity,
  runWithoutDebugLogSession,
  runtimeDiagnostics,
  safeAgentId,
  safeLiteralReplace,
  sanitizeCwd,
  sanitizeHookName,
  sanitizeName,
  sanitizeTitle,
  sanitizeToolCallResultForRecording,
  sanitizeUserPromptExpansionAdditionalContext,
  saveCacheSafeParams,
  saveWelcomeBackRestartChoice,
  saveWorkflowScript,
  selectVisionBridgeModel,
  sendStructuredMessage,
  serializeChannelMemoryDocument,
  serializeSnapshot,
  serializeTerminalToObject,
  serializeTerminalToText,
  sessionArtifactIdentityKey,
  sessionIdContext,
  setActiveGoal,
  setDebugLogSession,
  setGeminiMdFilename,
  setGoalTerminalObserver,
  setLastGoalTerminal,
  setMCPDiscoveryState,
  setMemberActive,
  setStartupEventSink,
  setToolCallPreparations,
  settingsSource,
  shortenPath,
  shouldAttemptBrowserLaunch,
  shouldClassifyAllShellForAutoMode,
  shouldDefaultToNodePty,
  shouldFallback,
  shouldFilterSuggestion,
  shouldFirePermissionDeniedForAutoMode,
  shouldForceAutoModeReviewForAllow,
  shouldLaunchBrowser,
  shouldRunAutoModeForCall,
  shouldRunVisionBridge,
  shouldShowStep,
  shutdownTelemetry,
  sleepInhibitor,
  splitCommands,
  splitCompoundCommand,
  splitConditionalSkills,
  splitImageParts,
  stableSessionArtifactId,
  startEventLoopLagMonitor,
  startHookSpan,
  startInteractionSpan,
  startLLMRequestSpan,
  startSpeculation,
  startSubagentSpan,
  startToolBlockedOnUserSpan,
  startToolExecutionSpan,
  startToolSpan,
  stringify,
  stripAnsiAndControl,
  stripRuntimeSnapshotPrefix,
  stripShellWrapper,
  stripStartupContext,
  stripSystemReminderBlocks,
  stripTerminalControlSequences,
  stripTrailingBackgroundAmp,
  subagentGenerator,
  substituteHookVariables,
  summarizeAnthropicWireRequest,
  summarizeMcpResource,
  summarizeOpenAIWireRequest,
  summarizeUnifiedDiff,
  taskHasLegacyCondition,
  teammateIdentityStore,
  templateString,
  tildeifyPath,
  toFriendlyError,
  toSnapshot,
  tokenLimit,
  tokenPlanProvider,
  toolMatchesRuleToolName,
  truncateContent,
  truncateJson,
  truncateSpanError,
  tryGenerateSessionTitle,
  tryReclaimStaleTeam,
  uiTelemetryService,
  unassignTeammateTasks,
  unescapeJsonString,
  unescapePath,
  unquoteCStylePath,
  unregisterGoalHook,
  unregisterLeader,
  unregisterSessionProjectDir,
  updateChannelMemoryEntry,
  updateCronTasks,
  updateMCPServerStatus,
  updateSetting,
  updateSymlink,
  updateTask,
  validateExtensionSettingEnvVars,
  validateMaxSessionTurns,
  validateModelConfig,
  validateName,
  validatePath,
  validateVariables,
  validateWorkflowName,
  watchRepoBranch,
  windowsCodePageToEncoding,
  withDaemonBridgeSpan,
  withDaemonRequestSpan,
  withDaemonSpan,
  withInteractionSpan,
  worktreeBranchForSlug,
  wrapConfirmWithBadge,
  write,
  writeDreamManualRunToMetadata,
  writeLine,
  writeLineSync,
  writeMessage,
  writeRuntimeStatus,
  writeTeamFile,
  writeWorkflowSnapshot,
  writeWorkspaceContextFile,
  writeWorktreeSession,
  writeWorktreeSessionMarker,
  zaiProvider
};
