{"record":{"id":"8d342d00ac393c25","repo":"langgenius/dify","slug":"invalid-value-for-max-rounds","errorCode":null,"errorMessage":"Invalid value for --max-rounds","messagePattern":"Invalid value for --max-rounds","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/migrate-no-unchecked-indexed-access/src/no-unchecked-indexed-access/run.ts","lineNumber":81,"sourceCode":"\n      options.batchSize = value\n      i += 1\n      continue\n    }\n\n    if (arg === '--batch-iterations') {\n      const value = Number(argv[i + 1])\n      if (!Number.isInteger(value) || value <= 0)\n        throw new Error('Invalid value for --batch-iterations')\n\n      options.batchIterations = value\n      i += 1\n      continue\n    }\n\n    if (arg === '--max-rounds') {\n      const value = Number(argv[i + 1])\n      if (!Number.isInteger(value) || value <= 0) throw new Error('Invalid value for --max-rounds')\n\n      options.maxRounds = value\n      i += 1\n      continue\n    }\n\n    throw new Error(`Unknown option: ${arg}`)\n  }\n\n  return options\n}\n\nfunction getTypeCheckBuildInfoPath(projectPath: string): string {\n  const hash = createHash('sha1').update(projectPath).digest('hex').slice(0, 16)\n\n  return path.join(TYPECHECK_CACHE_DIR, `${hash}.tsbuildinfo`)\n}\n","sourceCodeStart":63,"sourceCodeEnd":99,"githubUrl":"https://github.com/langgenius/dify/blob/ef8544b173fd6cd7a8e71df2cab576e52bebbfbc/packages/migrate-no-unchecked-indexed-access/src/no-unchecked-indexed-access/run.ts#L63-L99","documentation":"Error \"Invalid value for --max-rounds\" thrown in langgenius/dify.","triggerScenarios":"Thrown at packages/migrate-no-unchecked-indexed-access/src/no-unchecked-indexed-access/run.ts:81 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ef8544b173fd6cd7a8e71df2cab576e52bebbfbc","analyzedAt":"2026-08-12T05:15:17.394Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}