{"record":{"id":"110ac4db6a8693b7","repo":"langgenius/dify","slug":"seed-options-require-seed-only-or-profile","errorCode":null,"errorMessage":"Seed options require --seed-only or --profile.","messagePattern":"Seed options require --seed-only or --profile\\.","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"e2e/scripts/run-options.ts","lineNumber":90,"sourceCode":"\n    if (arg === '--profile') {\n      profile = readOptionValue(argv, index, '--profile')\n      index += 1\n      continue\n    }\n\n    if (arg.startsWith('--profile=')) {\n      profile = arg.slice('--profile='.length)\n      if (!profile) throw new Error('--profile requires a value.')\n      continue\n    }\n\n    forwardArgs.push(arg)\n  }\n\n  const shouldSeed = seedOnly || profile !== undefined\n  if (!shouldSeed && (allowBlocked || dryRun || pack !== 'agent-v2'))\n    throw new Error('Seed options require --seed-only or --profile.')\n  if (dryRun && !seedOnly) throw new Error('--dry-run requires --seed-only.')\n\n  return {\n    forwardArgs,\n    full,\n    headed,\n    seed: shouldSeed\n      ? {\n          allowBlocked,\n          dryRun,\n          pack,\n          profile: profile ?? 'post-merge',\n        }\n      : undefined,\n    seedOnly,\n  }\n}\n","sourceCodeStart":72,"sourceCodeEnd":108,"githubUrl":"https://github.com/langgenius/dify/blob/ef8544b173fd6cd7a8e71df2cab576e52bebbfbc/e2e/scripts/run-options.ts#L72-L108","documentation":"Error \"Seed options require --seed-only or --profile.\" thrown in langgenius/dify.","triggerScenarios":"Thrown at e2e/scripts/run-options.ts:90 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"}