{"record":{"id":"3873f48aa1bbe2bc","repo":"langgenius/dify","slug":"invalid-value-for-batch-size","errorCode":null,"errorMessage":"Invalid value for --batch-size","messagePattern":"Invalid value for --batch-size","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/migrate-no-unchecked-indexed-access/src/no-unchecked-indexed-access/run.ts","lineNumber":62,"sourceCode":"    if (arg === '--') continue\n\n    if (arg === '--verbose') {\n      options.verbose = true\n      continue\n    }\n\n    if (arg === '--project') {\n      const value = argv[i + 1]\n      if (!value) throw new Error('Missing value for --project')\n\n      options.project = value\n      i += 1\n      continue\n    }\n\n    if (arg === '--batch-size') {\n      const value = Number(argv[i + 1])\n      if (!Number.isInteger(value) || value <= 0) throw new Error('Invalid value for --batch-size')\n\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])","sourceCodeStart":44,"sourceCodeEnd":80,"githubUrl":"https://github.com/langgenius/dify/blob/ef8544b173fd6cd7a8e71df2cab576e52bebbfbc/packages/migrate-no-unchecked-indexed-access/src/no-unchecked-indexed-access/run.ts#L44-L80","documentation":"Error \"Invalid value for --batch-size\" thrown in langgenius/dify.","triggerScenarios":"Thrown at packages/migrate-no-unchecked-indexed-access/src/no-unchecked-indexed-access/run.ts:62 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"}