feat: add service field support

- service: true/false is now a required field in manyplug.json
- init --service creates background service template
- list shows ● for services, ○ for standard plugins
- validate checks service field and warns on mismatches
- templates document service vs non-service behavior

Services run regardless of isPluginRunning lock, but can
choose to respect it. Non-services are blocked automatically.
This commit is contained in:
synt-xerror
2026-04-09 01:24:41 -03:00
parent 649c7bb05a
commit fc54170171
4 changed files with 89 additions and 10 deletions

View File

@@ -22,6 +22,7 @@ program
.command('init <name>')
.description('Create a new plugin boilerplate')
.option('-c, --category <cat>', 'Plugin category', 'utility')
.option('-s, --service', 'Create as a background service', false)
.action(initCommand);
program