Skip to content

Typescript type compiling error #267

@kevincerence

Description

@kevincerence

packages/builtin-tools/src/tools/AgentTool/loadAgentsDir.ts:296:14 - error TS2883: The inferred type of 'getAgentDefinitionsWithOverrides' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

296 export const getAgentDefinitionsWithOverrides = memoize(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

packages/builtin-tools/src/tools/FileReadTool/limits.ts:53:14 - error TS2883: The inferred type of 'getDefaultFileReadingLimits' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

53 export const getDefaultFileReadingLimits = memoize((): FileReadingLimits => {
~~~~~~~~~~~~~~~~~~~~~~~~~~~

packages/builtin-tools/src/tools/SkillTool/prompt.ts:173:14 - error TS2883: The inferred type of 'getPrompt' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

173 export const getPrompt = memoize(async (_cwd: string): Promise => {
~~~~~~~~~

src/commands.ts:392:14 - error TS2883: The inferred type of 'builtInCommandNames' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

392 export const builtInCommandNames = memoize(
~~~~~~~~~~~~~~~~~~~

src/commands.ts:607:14 - error TS2883: The inferred type of 'getSkillToolCommands' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

607 export const getSkillToolCommands = memoize(
~~~~~~~~~~~~~~~~~~~~

src/commands.ts:630:14 - error TS2883: The inferred type of 'getSlashCommandToolSkills' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

630 export const getSlashCommandToolSkills = memoize(
~~~~~~~~~~~~~~~~~~~~~~~~~

src/constants/common.ts:24:14 - error TS2883: The inferred type of 'getSessionStartDate' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

24 export const getSessionStartDate = memoize(getLocalISODate)
~~~~~~~~~~~~~~~~~~~

src/constants/outputStyles.ts:137:14 - error TS2883: The inferred type of 'getAllOutputStyles' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

137 export const getAllOutputStyles = memoize(async function getAllOutputStyles(
~~~~~~~~~~~~~~~~~~

src/context.ts:36:14 - error TS2883: The inferred type of 'getGitStatus' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

36 export const getGitStatus = memoize(async (): Promise<string | null> => {
~~~~~~~~~~~~

src/context.ts:116:14 - error TS2883: The inferred type of 'getSystemContext' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

116 export const getSystemContext = memoize(
~~~~~~~~~~~~~~~~

src/context.ts:155:14 - error TS2883: The inferred type of 'getUserContext' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

155 export const getUserContext = memoize(
~~~~~~~~~~~~~~

src/entrypoints/init.ts:60:14 - error TS2883: The inferred type of 'init' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

60 export const init = memoize(async (): Promise => {
~~~~

src/memdir/paths.ts:223:14 - error TS2883: The inferred type of 'getAutoMemPath' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

223 export const getAutoMemPath = memoize(
~~~~~~~~~~~~~~

src/outputStyles/loadOutputStylesDir.ts:26:14 - error TS2883: The inferred type of 'getOutputStyleDirStyles' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

26 export const getOutputStyleDirStyles = memoize(
~~~~~~~~~~~~~~~~~~~~~~~

src/projectOnboardingState.ts:63:14 - error TS2883: The inferred type of 'shouldShowProjectOnboarding' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

63 export const shouldShowProjectOnboarding = memoize((): boolean => {
~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/services/analytics/datadog.ts:138:14 - error TS2883: The inferred type of 'initializeDatadog' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

138 export const initializeDatadog = memoize(async (): Promise => {
~~~~~~~~~~~~~~~~~

src/services/analytics/growthbook.ts:700:14 - error TS2883: The inferred type of 'initializeGrowthBook' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

700 export const initializeGrowthBook = memoize(
~~~~~~~~~~~~~~~~~~~~

src/services/api/grove.ts:52:14 - error TS2883: The inferred type of 'getGroveSettings' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

52 export const getGroveSettings = memoize(
~~~~~~~~~~~~~~~~

src/services/api/grove.ts:232:14 - error TS2883: The inferred type of 'getGroveNoticeConfig' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

232 export const getGroveNoticeConfig = memoize(
~~~~~~~~~~~~~~~~~~~~

src/services/internalLogging.ts:35:14 - error TS2883: The inferred type of 'getContainerId' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

35 export const getContainerId = memoize(async (): Promise<string | null> => {
~~~~~~~~~~~~~~

src/services/mcp/claudeai.ts:39:14 - error TS2883: The inferred type of 'fetchClaudeAIMcpConfigsIfEligible' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

39 export const fetchClaudeAIMcpConfigsIfEligible = memoize(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/services/mcp/client.ts:595:14 - error TS2883: The inferred type of 'connectToServer' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

595 export const connectToServer = memoize(
~~~~~~~~~~~~~~~

src/services/mcp/config.ts:1471:14 - error TS2883: The inferred type of 'doesEnterpriseMcpConfigExist' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

1471 export const doesEnterpriseMcpConfigExist = memoize((): boolean => {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/skills/loadSkillsDir.ts:638:14 - error TS2883: The inferred type of 'getSkillDirCommands' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

638 export const getSkillDirCommands = memoize(
~~~~~~~~~~~~~~~~~~~

src/utils/auth.ts:1052:14 - error TS2883: The inferred type of 'getApiKeyFromConfigOrMacOSKeychain' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

1052 export const getApiKeyFromConfigOrMacOSKeychain = memoize(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/utils/auth.ts:1256:14 - error TS2883: The inferred type of 'getClaudeAIOAuthTokens' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

1256 export const getClaudeAIOAuthTokens = memoize((): OAuthTokens | null => {
~~~~~~~~~~~~~~~~~~~~~~

src/utils/betas.ts:233:14 - error TS2883: The inferred type of 'getAllModelBetas' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

233 export const getAllModelBetas = memoize((model: string): string[] => {
~~~~~~~~~~~~~~~~

src/utils/betas.ts:349:14 - error TS2883: The inferred type of 'getModelBetas' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

349 export const getModelBetas = memoize((model: string): string[] => {
~~~~~~~~~~~~~

src/utils/betas.ts:357:14 - error TS2883: The inferred type of 'getBedrockExtraBodyParamsBetas' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

357 export const getBedrockExtraBodyParamsBetas = memoize(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/utils/caCerts.ts:28:14 - error TS2883: The inferred type of 'getCACertificates' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

28 export const getCACertificates = memoize((): string[] | undefined => {
~~~~~~~~~~~~~~~~~

src/utils/claudemd.ts:790:14 - error TS2883: The inferred type of 'getMemoryFiles' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

790 export const getMemoryFiles = memoize(
~~~~~~~~~~~~~~

src/utils/config.ts:1588:14 - error TS2883: The inferred type of 'getProjectPathForConfig' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

1588 export const getProjectPathForConfig = memoize((): string => {
~~~~~~~~~~~~~~~~~~~~~~~

src/utils/debug.ts:34:14 - error TS2883: The inferred type of 'getMinDebugLogLevel' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

34 export const getMinDebugLogLevel = memoize((): DebugLogLevel => {
~~~~~~~~~~~~~~~~~~~

src/utils/debug.ts:44:14 - error TS2883: The inferred type of 'isDebugMode' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

44 export const isDebugMode = memoize((): boolean => {
~~~~~~~~~~~

src/utils/debug.ts:73:14 - error TS2883: The inferred type of 'getDebugFilter' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

73 export const getDebugFilter = memoize((): DebugFilter | null => {
~~~~~~~~~~~~~~

src/utils/debug.ts:85:14 - error TS2883: The inferred type of 'isDebugToStdErr' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

85 export const isDebugToStdErr = memoize((): boolean => {
~~~~~~~~~~~~~~~

src/utils/debug.ts:91:14 - error TS2883: The inferred type of 'getDebugFilePath' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

91 export const getDebugFilePath = memoize((): string | null => {
~~~~~~~~~~~~~~~~

src/utils/debugFilter.ts:16:14 - error TS2883: The inferred type of 'parseDebugFilter' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

16 export const parseDebugFilter = memoize(
~~~~~~~~~~~~~~~~

src/utils/editor.ts:164:14 - error TS2883: The inferred type of 'getExternalEditor' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

164 export const getExternalEditor = memoize((): string | undefined => {
~~~~~~~~~~~~~~~~~

src/utils/env.ts:14:14 - error TS2883: The inferred type of 'getGlobalClaudeFile' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

14 export const getGlobalClaudeFile = memoize((): string => {
~~~~~~~~~~~~~~~~~~~

src/utils/env.ts:240:14 - error TS2883: The inferred type of 'detectDeploymentEnvironment' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

240 export const detectDeploymentEnvironment = memoize((): string => {
~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/utils/env.ts:316:14 - error TS2883: The inferred type of 'env' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

316 export const env = {
~~~

src/utils/envDynamic.ts:143:14 - error TS2883: The inferred type of 'envDynamic' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

143 export const envDynamic = {
~~~~~~~~~~

src/utils/envUtils.ts:7:14 - error TS2883: The inferred type of 'getClaudeConfigHomeDir' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

7 export const getClaudeConfigHomeDir = memoize(
~~~~~~~~~~~~~~~~~~~~~~

src/utils/exampleCommands.ts:142:14 - error TS2883: The inferred type of 'getExampleCommandFromCache' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

142 export const getExampleCommandFromCache = memoize(() => {
~~~~~~~~~~~~~~~~~~~~~~~~~~

src/utils/exampleCommands.ts:162:14 - error TS2883: The inferred type of 'refreshExampleCommands' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

162 export const refreshExampleCommands = memoize(async (): Promise => {
~~~~~~~~~~~~~~~~~~~~~~

src/utils/git.ts:212:14 - error TS2883: The inferred type of 'gitExe' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

212 export const gitExe = memoize((): string => {
~~~~~~

src/utils/git.ts:218:14 - error TS2883: The inferred type of 'getIsGit' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

218 export const getIsGit = memoize(async (): Promise => {
~~~~~~~~

src/utils/gracefulShutdown.ts:220:14 - error TS2883: The inferred type of 'setupGracefulShutdown' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

220 export const setupGracefulShutdown = memoize(() => {
~~~~~~~~~~~~~~~~~~~~~

src/utils/hooks/hooksConfigManager.ts:26:14 - error TS2883: The inferred type of 'getHookEventMetadata' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

26 export const getHookEventMetadata = memoize(
~~~~~~~~~~~~~~~~~~~~

src/utils/ide.ts:271:14 - error TS2883: The inferred type of 'isSupportedVSCodeTerminal' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

271 export const isSupportedVSCodeTerminal = memoize(() => {
~~~~~~~~~~~~~~~~~~~~~~~~~

src/utils/ide.ts:275:14 - error TS2883: The inferred type of 'isSupportedJetBrainsTerminal' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

275 export const isSupportedJetBrainsTerminal = memoize(() => {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/utils/ide.ts:279:14 - error TS2883: The inferred type of 'isSupportedTerminal' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

279 export const isSupportedTerminal = memoize(() => {
~~~~~~~~~~~~~~~~~~~

src/utils/markdownConfigLoader.ts:297:14 - error TS2883: The inferred type of 'loadMarkdownFilesForSubdir' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

297 export const loadMarkdownFilesForSubdir = memoize(
~~~~~~~~~~~~~~~~~~~~~~~~~~

src/utils/model/bedrock.ts:7:14 - error TS2883: The inferred type of 'getBedrockInferenceProfiles' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

7 export const getBedrockInferenceProfiles = memoize(async function (): Promise<
~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/utils/model/bedrock.ts:141:14 - error TS2883: The inferred type of 'getInferenceProfileBackingModel' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

141 export const getInferenceProfileBackingModel = memoize(async function (
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/utils/model/modelSupportOverrides.ts:45:14 - error TS2883: The inferred type of 'get3PModelCapabilityOverride' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

45 export const get3PModelCapabilityOverride = memoize(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/utils/mtls.ts:23:14 - error TS2883: The inferred type of 'getMTLSConfig' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

23 export const getMTLSConfig = memoize((): MTLSConfig | undefined => {
~~~~~~~~~~~~~

src/utils/mtls.ts:78:14 - error TS2883: The inferred type of 'getMTLSAgent' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

78 export const getMTLSAgent = memoize((): HttpsAgent | undefined => {
~~~~~~~~~~~~

src/utils/nativeInstaller/packageManagers.ts:29:14 - error TS2883: The inferred type of 'getOsRelease' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

29 export const getOsRelease = memoize(
~~~~~~~~~~~~

src/utils/nativeInstaller/packageManagers.ts:167:14 - error TS2883: The inferred type of 'detectPacman' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

167 export const detectPacman = memoize(async (): Promise => {
~~~~~~~~~~~~

src/utils/nativeInstaller/packageManagers.ts:200:14 - error TS2883: The inferred type of 'detectDeb' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

200 export const detectDeb = memoize(async (): Promise => {
~~~~~~~~~

src/utils/nativeInstaller/packageManagers.ts:233:14 - error TS2883: The inferred type of 'detectRpm' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

233 export const detectRpm = memoize(async (): Promise => {
~~~~~~~~~

src/utils/nativeInstaller/packageManagers.ts:267:14 - error TS2883: The inferred type of 'detectApk' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

267 export const detectApk = memoize(async (): Promise => {
~~~~~~~~~

src/utils/nativeInstaller/packageManagers.ts:302:14 - error TS2883: The inferred type of 'getPackageManager' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

302 export const getPackageManager = memoize(async (): Promise => {
~~~~~~~~~~~~~~~~~

src/utils/permissions/filesystem.ts:331:14 - error TS2883: The inferred type of 'getClaudeTempDir' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

331 export const getClaudeTempDir = memoize(function getClaudeTempDir(): string {
~~~~~~~~~~~~~~~~

src/utils/permissions/filesystem.ts:365:14 - error TS2883: The inferred type of 'getBundledSkillsRoot' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

365 export const getBundledSkillsRoot = memoize(
~~~~~~~~~~~~~~~~~~~~

src/utils/permissions/filesystem.ts:681:14 - error TS2883: The inferred type of 'getResolvedWorkingDirPaths' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

681 export const getResolvedWorkingDirPaths = memoize(getPathsForPermissionCheck)
~~~~~~~~~~~~~~~~~~~~~~~~~~

src/utils/plans.ts:79:14 - error TS2883: The inferred type of 'getPlansDirectory' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

79 export const getPlansDirectory = memoize(function getPlansDirectory(): string {
~~~~~~~~~~~~~~~~~

src/utils/platform.ts:11:14 - error TS2883: The inferred type of 'getPlatform' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

11 export const getPlatform = memoize((): Platform => {
~~~~~~~~~~~

src/utils/platform.ts:51:14 - error TS2883: The inferred type of 'getWslVersion' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

51 export const getWslVersion = memoize((): string | undefined => {
~~~~~~~~~~~~~

src/utils/platform.ts:87:14 - error TS2883: The inferred type of 'getLinuxDistroInfo' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

87 export const getLinuxDistroInfo = memoize(
~~~~~~~~~~~~~~~~~~

src/utils/plugins/gitAvailability.ts:42:14 - error TS2883: The inferred type of 'checkGitAvailable' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

42 export const checkGitAvailable = memoize(async (): Promise => {
~~~~~~~~~~~~~~~~~

src/utils/plugins/loadPluginAgents.ts:231:14 - error TS2883: The inferred type of 'loadPluginAgents' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

231 export const loadPluginAgents = memoize(
~~~~~~~~~~~~~~~~

src/utils/plugins/loadPluginCommands.ts:414:14 - error TS2883: The inferred type of 'getPluginCommands' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

414 export const getPluginCommands = memoize(async (): Promise<Command[]> => {
~~~~~~~~~~~~~~~~~

src/utils/plugins/loadPluginCommands.ts:840:14 - error TS2883: The inferred type of 'getPluginSkills' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

840 export const getPluginSkills = memoize(async (): Promise<Command[]> => {
~~~~~~~~~~~~~~~

src/utils/plugins/loadPluginHooks.ts:91:14 - error TS2883: The inferred type of 'loadPluginHooks' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

91 export const loadPluginHooks = memoize(async (): Promise => {
~~~~~~~~~~~~~~~

src/utils/plugins/loadPluginOutputStyles.ts:87:14 - error TS2883: The inferred type of 'loadPluginOutputStyles' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

87 export const loadPluginOutputStyles = memoize(
~~~~~~~~~~~~~~~~~~~~~~

src/utils/plugins/marketplaceManager.ts:2122:14 - error TS2883: The inferred type of 'getMarketplace' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

2122 export const getMarketplace = memoize(
~~~~~~~~~~~~~~

src/utils/plugins/pluginLoader.ts:3095:14 - error TS2883: The inferred type of 'loadAllPlugins' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

3095 export const loadAllPlugins = memoize(async (): Promise => {
~~~~~~~~~~~~~~

src/utils/plugins/pluginLoader.ts:3136:14 - error TS2883: The inferred type of 'loadAllPluginsCacheOnly' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

3136 export const loadAllPluginsCacheOnly = memoize(
~~~~~~~~~~~~~~~~~~~~~~~

src/utils/plugins/pluginOptionsStorage.ts:56:14 - error TS2883: The inferred type of 'loadPluginOptions' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

56 export const loadPluginOptions = memoize(
~~~~~~~~~~~~~~~~~

src/utils/proxy.ts:198:14 - error TS2883: The inferred type of 'getProxyAgent' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

198 export const getProxyAgent = memoize((uri: string): undici.Dispatcher => {
~~~~~~~~~~~~~

src/utils/ripgrep.ts:476:14 - error TS2883: The inferred type of 'countFilesRoundedRg' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

476 export const countFilesRoundedRg = memoize(
~~~~~~~~~~~~~~~~~~~

src/utils/sessionStorage.ts:436:14 - error TS2883: The inferred type of 'getProjectDir' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

436 export const getProjectDir = memoize((projectDir: string): string => {
~~~~~~~~~~~~~

src/utils/settings/managedPath.ts:8:14 - error TS2883: The inferred type of 'getManagedFilePath' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

8 export const getManagedFilePath = memoize(function (): string {
~~~~~~~~~~~~~~~~~~

src/utils/settings/managedPath.ts:32:14 - error TS2883: The inferred type of 'getManagedSettingsDropInDir' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

32 export const getManagedSettingsDropInDir = memoize(function (): string {
~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/utils/Shell.ts:146:14 - error TS2883: The inferred type of 'getShellConfig' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

146 export const getShellConfig = memoize(getShellConfigImpl)
~~~~~~~~~~~~~~

src/utils/Shell.ts:148:14 - error TS2883: The inferred type of 'getPsProvider' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

148 export const getPsProvider = memoize(async (): Promise => {
~~~~~~~~~~~~~

src/utils/user.ts:78:14 - error TS2883: The inferred type of 'getCoreUserData' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

78 export const getCoreUserData = memoize(
~~~~~~~~~~~~~~~

src/utils/user.ts:185:14 - error TS2883: The inferred type of 'getGitEmail' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

185 export const getGitEmail = memoize(async (): Promise<string | undefined> => {
~~~~~~~~~~~

src/utils/windowsPaths.ts:98:14 - error TS2883: The inferred type of 'findGitBashPath' cannot be named without a reference to 'MemoizedFunction' from '.bun/@types+lodash@4.17.24/node_modules/@types/lodash'. This is likely not portable. A type annotation is necessary.

98 export const findGitBashPath = memoize((): string => {
~~~~~~~~~~~~~~~

Found 92 errors in 58 files.

Errors Files
1 packages/builtin-tools/src/tools/AgentTool/loadAgentsDir.ts:296
1 packages/builtin-tools/src/tools/FileReadTool/limits.ts:53
1 packages/builtin-tools/src/tools/SkillTool/prompt.ts:173
3 src/commands.ts:392
1 src/constants/common.ts:24
1 src/constants/outputStyles.ts:137
3 src/context.ts:36
1 src/entrypoints/init.ts:60
1 src/memdir/paths.ts:223
1 src/outputStyles/loadOutputStylesDir.ts:26
1 src/projectOnboardingState.ts:63
1 src/services/analytics/datadog.ts:138
1 src/services/analytics/growthbook.ts:700
2 src/services/api/grove.ts:52
1 src/services/internalLogging.ts:35
1 src/services/mcp/claudeai.ts:39
1 src/services/mcp/client.ts:595
1 src/services/mcp/config.ts:1471
1 src/skills/loadSkillsDir.ts:638
2 src/utils/auth.ts:1052
3 src/utils/betas.ts:233
1 src/utils/caCerts.ts:28
1 src/utils/claudemd.ts:790
1 src/utils/config.ts:1588
5 src/utils/debug.ts:34
1 src/utils/debugFilter.ts:16
1 src/utils/editor.ts:164
3 src/utils/env.ts:14
1 src/utils/envDynamic.ts:143
1 src/utils/envUtils.ts:7
2 src/utils/exampleCommands.ts:142
2 src/utils/git.ts:212
1 src/utils/gracefulShutdown.ts:220
1 src/utils/hooks/hooksConfigManager.ts:26
3 src/utils/ide.ts:271
1 src/utils/markdownConfigLoader.ts:297
2 src/utils/model/bedrock.ts:7
1 src/utils/model/modelSupportOverrides.ts:45
2 src/utils/mtls.ts:23
6 src/utils/nativeInstaller/packageManagers.ts:29
3 src/utils/permissions/filesystem.ts:331
1 src/utils/plans.ts:79
3 src/utils/platform.ts:11
1 src/utils/plugins/gitAvailability.ts:42
1 src/utils/plugins/loadPluginAgents.ts:231
2 src/utils/plugins/loadPluginCommands.ts:414
1 src/utils/plugins/loadPluginHooks.ts:91
1 src/utils/plugins/loadPluginOutputStyles.ts:87
1 src/utils/plugins/marketplaceManager.ts:2122
2 src/utils/plugins/pluginLoader.ts:3095
1 src/utils/plugins/pluginOptionsStorage.ts:56
1 src/utils/proxy.ts:198
1 src/utils/ripgrep.ts:476
1 src/utils/sessionStorage.ts:436
2 src/utils/settings/managedPath.ts:8
2 src/utils/Shell.ts:146
2 src/utils/user.ts:78
1 src/utils/windowsPaths.ts:98

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions