prior-cli 1.3.2 → 1.3.3
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/prior.js +18 -4
- package/package.json +1 -1
package/bin/prior.js
CHANGED
|
@@ -568,7 +568,7 @@ async function startChat(opts = {}) {
|
|
|
568
568
|
terminal: true,
|
|
569
569
|
historySize: 100,
|
|
570
570
|
completer: line => {
|
|
571
|
-
const cmds = ['/help', '/clear', '/model ', '/tools', '/login', '/logout', '/exit'];
|
|
571
|
+
const cmds = ['/help', '/clear', '/model ', '/tools', '/censored', '/uncensored', '/login', '/logout', '/exit'];
|
|
572
572
|
if (!line.startsWith('/')) return [[], line];
|
|
573
573
|
const hits = cmds.filter(cmd => cmd.startsWith(line));
|
|
574
574
|
return [hits, line];
|
|
@@ -618,8 +618,10 @@ async function startChat(opts = {}) {
|
|
|
618
618
|
{ cmd: '/help', desc: 'Show help' },
|
|
619
619
|
{ cmd: '/clear', desc: 'Clear screen' },
|
|
620
620
|
{ cmd: '/model', desc: 'Switch model' },
|
|
621
|
-
{ cmd: '/tools', desc: 'List tools'
|
|
622
|
-
{ cmd: '/
|
|
621
|
+
{ cmd: '/tools', desc: 'List tools' },
|
|
622
|
+
{ cmd: '/censored', desc: 'Load standard model (qwen)' },
|
|
623
|
+
{ cmd: '/uncensored', desc: 'Load uncensored model' },
|
|
624
|
+
{ cmd: '/usage', desc: 'Token usage today' },
|
|
623
625
|
{ cmd: '/learn', desc: 'Learn this directory → prior.md' },
|
|
624
626
|
{ cmd: '/login', desc: 'Sign in' },
|
|
625
627
|
{ cmd: '/logout', desc: 'Sign out' },
|
|
@@ -747,6 +749,16 @@ async function startChat(opts = {}) {
|
|
|
747
749
|
return loop();
|
|
748
750
|
|
|
749
751
|
|
|
752
|
+
case '/censored':
|
|
753
|
+
currentModel = 'qwen3.5:4b';
|
|
754
|
+
console.log(c.ok(' ✓ Prior Standard Model Loaded\n'));
|
|
755
|
+
return loop();
|
|
756
|
+
|
|
757
|
+
case '/uncensored':
|
|
758
|
+
currentModel = 'dolphin-uncensored:latest';
|
|
759
|
+
console.log(c.warn(' ✓ Prior Uncensored Model Loaded\n'));
|
|
760
|
+
return loop();
|
|
761
|
+
|
|
750
762
|
case '/model':
|
|
751
763
|
if (args[0]) {
|
|
752
764
|
currentModel = args[0];
|
|
@@ -932,7 +944,9 @@ Keep it under 350 words. Write prior.md now.`;
|
|
|
932
944
|
console.log('');
|
|
933
945
|
console.log(c.bold(' Commands'));
|
|
934
946
|
console.log(c.muted(' /clear ') + 'Clear screen');
|
|
935
|
-
console.log(c.muted(' /
|
|
947
|
+
console.log(c.muted(' /censored ') + 'Load standard model (qwen)');
|
|
948
|
+
console.log(c.muted(' /uncensored ') + 'Load uncensored model (dolphin)');
|
|
949
|
+
console.log(c.muted(' /model <name> ') + 'Switch to any specific model');
|
|
936
950
|
console.log(c.muted(' /tools ') + 'List available tools');
|
|
937
951
|
console.log(c.muted(' /usage ') + 'Token usage for today');
|
|
938
952
|
console.log(c.muted(' /learn ') + 'Scan directory and write prior.md context file');
|