peezy-cli
Version:
Production-ready CLI for scaffolding modern applications with curated full-stack templates, intelligent migrations, and enterprise security.
33 lines • 1.03 kB
JavaScript
/**
* Peezy Plugin API v1.0
*
* This API is stable and follows semantic versioning.
* All v1.x.x plugins will work with all v1.x.x CLI versions.
*/
/**
* Plugin error types
*/
export class PluginError extends Error {
pluginName;
code;
constructor(message, pluginName, code) {
super(message);
this.pluginName = pluginName;
this.code = code;
this.name = "PluginError";
}
}
export class PluginVersionError extends PluginError {
constructor(pluginName, requiredVersion, actualVersion) {
super(`Plugin ${pluginName} requires CLI version ${requiredVersion}, but ${actualVersion} is installed`, pluginName, "VERSION_MISMATCH");
this.name = "PluginVersionError";
}
}
export class PluginLoadError extends PluginError {
constructor(pluginName, cause) {
super(`Failed to load plugin ${pluginName}: ${cause.message}`, pluginName, "LOAD_FAILED");
this.name = "PluginLoadError";
this.cause = cause;
}
}
//# sourceMappingURL=types.js.map