{"record":{"id":"dbc5edf593acdb27","repo":"affaan-m/ECC","slug":"readme-zh-cn-md-is-missing-the-quick-start-catalog-summary","errorCode":null,"errorMessage":"README.zh-CN.md is missing the quick-start catalog summary","messagePattern":"README\\.zh-CN\\.md is missing the quick-start catalog summary","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"scripts/ci/catalog.js","lineNumber":142,"sourceCode":"    if (!match) {\n      throw new Error(`${pattern.source} is missing the ${pattern.category} row`);\n    }\n\n    expectations.push({\n      category: pattern.category,\n      mode: 'exact',\n      expected: Number(match[1]),\n      source: `${pattern.source} (${pattern.category})`\n    });\n  }\n\n  return expectations;\n}\n\nfunction parseZhRootReadmeExpectations(readmeContent) {\n  const match = readmeContent.match(/你现在可以使用\\s+(\\d+)\\s+个代理、\\s*(\\d+)\\s*个技能和\\s*(\\d+)\\s*个命令/i);\n  if (!match) {\n    throw new Error('README.zh-CN.md is missing the quick-start catalog summary');\n  }\n\n  return [\n    { category: 'agents', mode: 'exact', expected: Number(match[1]), source: 'README.zh-CN.md quick-start summary' },\n    { category: 'skills', mode: 'exact', expected: Number(match[2]), source: 'README.zh-CN.md quick-start summary' },\n    { category: 'commands', mode: 'exact', expected: Number(match[3]), source: 'README.zh-CN.md quick-start summary' }\n  ];\n}\n\nfunction parseZhDocsReadmeExpectations(readmeContent) {\n  const expectations = [];\n\n  const quickStartMatch = readmeContent.match(/你现在可以使用\\s+(\\d+)\\s+个智能体、\\s*(\\d+)\\s*项技能和\\s*(\\d+)\\s*个命令了/i);\n  if (!quickStartMatch) {\n    throw new Error('docs/zh-CN/README.md is missing the quick-start catalog summary');\n  }\n\n  expectations.push(","sourceCodeStart":124,"sourceCodeEnd":160,"githubUrl":"https://github.com/affaan-m/ECC/blob/8321021c54d670126ce3b2969d5deb880b4b0c2a/scripts/ci/catalog.js#L124-L160","documentation":"parseZhRootReadmeExpectations throws when the Chinese root README lacks the quick-start sentence matching '你现在可以使用 N 个代理、N 个技能和 N 个命令'. It fires when the Chinese translation drifts from the expected sentence or counts line, so expectations for the zh-CN docs cannot be derived.","triggerScenarios":"Thrown at scripts/ci/catalog.js:142 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Restore the quick-start counts sentence in README.zh-CN.md in the expected format.","Regenerate the zh-CN docs from the catalog script.","Widen the regex only if the Chinese wording legitimately changed and the count numbers remain extractable."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8321021c54d670126ce3b2969d5deb880b4b0c2a","analyzedAt":"2026-09-16T10:08:13.343Z","contentChangedAt":"2026-09-16T10:08:13.343Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}