affaan-m/ECC · error · Error

README.zh-CN.md is missing the quick-start catalog summary

Error message

README.zh-CN.md is missing the quick-start catalog summary

What it means

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.

Solutions

  1. Restore the quick-start counts sentence in README.zh-CN.md in the expected format.
  2. Regenerate the zh-CN docs from the catalog script.
  3. Widen the regex only if the Chinese wording legitimately changed and the count numbers remain extractable.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at scripts/ci/catalog.js:142 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of affaan-m/ECC@8321021c54 (2026-09-16). Data as JSON: /api/errors/dbc5edf593acdb27. Report an issue: GitHub.

Appendix: source

Thrown at scripts/ci/catalog.js:142

    if (!match) {
      throw new Error(`${pattern.source} is missing the ${pattern.category} row`);
    }

    expectations.push({
      category: pattern.category,
      mode: 'exact',
      expected: Number(match[1]),
      source: `${pattern.source} (${pattern.category})`
    });
  }

  return expectations;
}

function parseZhRootReadmeExpectations(readmeContent) {
  const match = readmeContent.match(/你现在可以使用\s+(\d+)\s+个代理、\s*(\d+)\s*个技能和\s*(\d+)\s*个命令/i);
  if (!match) {
    throw new Error('README.zh-CN.md is missing the quick-start catalog summary');
  }

  return [
    { category: 'agents', mode: 'exact', expected: Number(match[1]), source: 'README.zh-CN.md quick-start summary' },
    { category: 'skills', mode: 'exact', expected: Number(match[2]), source: 'README.zh-CN.md quick-start summary' },
    { category: 'commands', mode: 'exact', expected: Number(match[3]), source: 'README.zh-CN.md quick-start summary' }
  ];
}

function parseZhDocsReadmeExpectations(readmeContent) {
  const expectations = [];

  const quickStartMatch = readmeContent.match(/你现在可以使用\s+(\d+)\s+个智能体、\s*(\d+)\s*项技能和\s*(\d+)\s*个命令了/i);
  if (!quickStartMatch) {
    throw new Error('docs/zh-CN/README.md is missing the quick-start catalog summary');
  }

  expectations.push(

View on GitHub (pinned to 8321021c54)