quilltap 3.2.1 → 3.3.0-dev.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/quilltap.js +8 -0
- package/lib/theme-commands.js +1223 -0
- package/lib/theme-validation.js +386 -0
- package/package.json +3 -2
package/bin/quilltap.js
CHANGED
|
@@ -57,6 +57,7 @@ function parseArgs(argv) {
|
|
|
57
57
|
opts.help = true;
|
|
58
58
|
break;
|
|
59
59
|
default:
|
|
60
|
+
// Allow subcommands to pass through (they're handled before parseArgs)
|
|
60
61
|
console.error(`Unknown argument: ${args[i]}`);
|
|
61
62
|
console.error('Run "quilltap --help" for usage information.');
|
|
62
63
|
process.exit(1);
|
|
@@ -73,6 +74,10 @@ Quilltap - Self-hosted AI workspace
|
|
|
73
74
|
|
|
74
75
|
Usage: quilltap [options]
|
|
75
76
|
|
|
77
|
+
Subcommands:
|
|
78
|
+
db Query encrypted databases
|
|
79
|
+
themes Manage theme bundles
|
|
80
|
+
|
|
76
81
|
Options:
|
|
77
82
|
-p, --port <number> Port to listen on (default: 3000)
|
|
78
83
|
-d, --data-dir <path> Data directory (default: platform-specific)
|
|
@@ -613,6 +618,9 @@ async function dbCommand(args) {
|
|
|
613
618
|
// Route to subcommand or main
|
|
614
619
|
if (process.argv[2] === 'db') {
|
|
615
620
|
dbCommand(process.argv.slice(3));
|
|
621
|
+
} else if (process.argv[2] === 'themes') {
|
|
622
|
+
const { themesCommand } = require('../lib/theme-commands');
|
|
623
|
+
themesCommand(process.argv.slice(3));
|
|
616
624
|
} else {
|
|
617
625
|
main();
|
|
618
626
|
}
|