init project

This commit is contained in:
root
2026-07-31 13:12:54 -04:00
parent 0da92d5e02
commit f3863f760c
7215 changed files with 1860260 additions and 1 deletions
+33
View File
@@ -0,0 +1,33 @@
/**
* Spark subcommands the `spark` tool is willing to run.
* Anything not on this list is rejected so the agent cannot pass arbitrary
* spark commands (e.g. `spark make:migration` with a bad path, destructive
* migrations without confirm, etc.).
*/
export const SPARK_ALLOWED = [
'make:controller',
'make:model',
'make:entity',
'make:filter',
'make:command',
'make:validation',
'make:migration',
'make:seeder',
'make:test',
'make:config',
'migrate',
'migrate:rollback',
'migrate:refresh',
'migrate:status',
'db:seed',
'routes',
'cache:clear',
'optimize',
'list',
'about',
];
export const SPARK_DESTRUCTIVE = new Set(['migrate:refresh']);
export function isAllowedSparkCommand(command) {
return SPARK_ALLOWED.includes(command);
}
//# sourceMappingURL=sparkAllowList.js.map