Plugin List Generator Script (scripts/generate-plugin-list.js)

agentsys · automation, cli, script, plugin, manifest, discovery

CLI tool that discovers plugins in the repository and writes a plugins.txt manifest for downstream bash scripts.

#!/usr/bin/env node
// Source: https://github.com/mperkins0155/agentsys | License: MIT | Copyright 2026 Avi Fenesh
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Generate plugins.txt manifest from filesystem discovery.
 *
 * Writes one plugin name per line to scripts/plugins.txt.
 * Used by bash scripts (sync-lib.sh) that cannot call Node discovery directly.
 *
 * Usage: node scripts/generate-plugin-list.js
 */

const fs = require('fs');
const path = require('path');
const discovery = require(path.join(__dirname, '..', 'lib', 'discovery'));

const repoRoot = path.join(__dirname, '..');
const plugins = discovery.discoverPlugins(repoRoot);
const outputPath = path.join(__dirname, 'plugins.txt');

fs.writeFileSync(outputPath, plugins.join('\n') + '\n');
console.log(`[O

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key