docs: record rc1 live package readbacks (#2117)

This commit is contained in:
Affaan Mustafa
2026-06-02 19:32:59 +08:00
committed by GitHub
parent 64cd1ba248
commit d86fadad0d
19 changed files with 171 additions and 90 deletions

View File

@@ -356,6 +356,30 @@ test('codex plugin.json uses canonical ECC repo and display name', () => {
assert.strictEqual(codexPlugin.interface.displayName, 'ECC');
});
test('codex plugin presentation assets exist and ship in npm package', () => {
assert.ok(Array.isArray(rootPackage.files), 'Expected package.json files array');
const packageFiles = new Set(rootPackage.files);
for (const field of ['composerIcon', 'logo']) {
const assetPath = codexPlugin.interface[field];
assert.ok(assetPath, `Expected interface.${field}`);
assert.ok(
assetPath.startsWith('./assets/'),
`Expected interface.${field} to point at a root assets path, got ${assetPath}`,
);
const packagePath = assetPath.replace(/^\.\//, '');
assert.ok(
fs.existsSync(path.join(repoRoot, packagePath)),
`Expected interface.${field} asset to exist: ${packagePath}`,
);
assert.ok(
packageFiles.has(packagePath),
`Expected package.json files to include interface.${field} asset: ${packagePath}`,
);
}
});
// ── .mcp.json at plugin root ──────────────────────────────────────────────────
// Per official docs: keep .mcp.json at plugin root, NOT inside .codex-plugin/
console.log('\n=== .mcp.json (plugin root) ===\n');

View File

@@ -78,6 +78,8 @@ function buildExpectedPublishPaths(repoRoot) {
"schemas",
"agent.yaml",
"VERSION",
"assets/ecc-icon.svg",
"assets/hero.png",
]
const exclusionPaths = [
"!**/__pycache__/**",
@@ -141,6 +143,8 @@ function main() {
".qwen/QWEN.md",
".claude-plugin/plugin.json",
".codex-plugin/plugin.json",
"assets/ecc-icon.svg",
"assets/hero.png",
"schemas/install-state.schema.json",
"skills/backend-patterns/SKILL.md",
]) {