Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions scripts/validate-agent-plugin.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'node:assert/strict';
import { readFile, stat } from 'node:fs/promises';
import { readFile } from 'node:fs/promises';
import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';

Expand All @@ -13,7 +13,6 @@ const manifest = await readJson('plugin.json');
const mcp = await readJson('mcp.json');
const codexManifest = await readJson('.codex-plugin/plugin.json');
const skill = await readFile(resolve(packageRoot, 'skills/dealmachine/SKILL.md'), 'utf8');
const readme = await readFile(resolve(packageRoot, 'README.md'), 'utf8');

assert.equal(
manifest.$schema,
Expand Down Expand Up @@ -93,14 +92,4 @@ assert.deepEqual(mcp.mcpServers.dealmachine, {
assert.match(skill, /^---\nname: dealmachine\n/, 'DealMachine skill front matter is missing');
assert.match(skill, /\ndescription: .+\n/, 'DealMachine skill description is missing');

const demoVideoPath = resolve(packageRoot, 'assets/plugin-demo/dealmachine-agent-plugin-demo.mp4');
const demoVideo = await stat(demoVideoPath);
assert(demoVideo.isFile(), 'submission demo must be a regular file');
assert(demoVideo.size > 0 && demoVideo.size <= 100 * 1024 * 1024, 'submission demo must be non-empty and at most 100 MB');
assert.match(
readme,
/assets\/plugin-demo\/dealmachine-agent-plugin-demo\.mp4/,
'README must link to the public submission demo'
);

console.log('Agent Plugin package is valid.');