prior-cli 1.3.2 → 1.3.4
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 +13 -36
- 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', '/
|
|
571
|
+
const cmds = ['/help', '/clear', '/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];
|
|
@@ -599,7 +599,7 @@ async function startChat(opts = {}) {
|
|
|
599
599
|
console.log(c.ok(' ◉') + c.muted(' Agent mode ') + c.dim('· file web shell image prior-network'));
|
|
600
600
|
|
|
601
601
|
console.log(DIVIDER);
|
|
602
|
-
console.log(c.muted(' /help /clear /
|
|
602
|
+
console.log(c.muted(' /help /clear /censored /uncensored /exit'));
|
|
603
603
|
console.log(DIVIDER);
|
|
604
604
|
console.log('');
|
|
605
605
|
|
|
@@ -617,9 +617,9 @@ async function startChat(opts = {}) {
|
|
|
617
617
|
const SLASH_CMDS = [
|
|
618
618
|
{ cmd: '/help', desc: 'Show help' },
|
|
619
619
|
{ cmd: '/clear', desc: 'Clear screen' },
|
|
620
|
-
{ cmd: '/
|
|
621
|
-
{ cmd: '/
|
|
622
|
-
{ cmd: '/usage', desc: 'Token usage today'
|
|
620
|
+
{ cmd: '/censored', desc: 'Load standard model (qwen)' },
|
|
621
|
+
{ cmd: '/uncensored', desc: 'Load uncensored model' },
|
|
622
|
+
{ cmd: '/usage', desc: 'Token usage today' },
|
|
623
623
|
{ cmd: '/learn', desc: 'Learn this directory → prior.md' },
|
|
624
624
|
{ cmd: '/login', desc: 'Sign in' },
|
|
625
625
|
{ cmd: '/logout', desc: 'Sign out' },
|
|
@@ -747,37 +747,14 @@ async function startChat(opts = {}) {
|
|
|
747
747
|
return loop();
|
|
748
748
|
|
|
749
749
|
|
|
750
|
-
case '/
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
console.log(c.ok(` ✓ Model → ${currentModel}\n`));
|
|
754
|
-
} else {
|
|
755
|
-
console.log(c.muted(` Current model: ${currentModel || 'default'}\n`));
|
|
756
|
-
}
|
|
750
|
+
case '/censored':
|
|
751
|
+
currentModel = 'qwen3.5:4b';
|
|
752
|
+
console.log(c.ok(' ✓ Prior Standard Model Loaded\n'));
|
|
757
753
|
return loop();
|
|
758
754
|
|
|
759
|
-
case '/
|
|
760
|
-
|
|
761
|
-
console.log(c.
|
|
762
|
-
const tools = [
|
|
763
|
-
['file_read', 'Read a file'],
|
|
764
|
-
['file_write', 'Create or overwrite a file'],
|
|
765
|
-
['file_append', 'Append to a file'],
|
|
766
|
-
['file_list', 'List directory contents'],
|
|
767
|
-
['file_delete', 'Delete a file'],
|
|
768
|
-
['web_search', 'Search the web (Google)'],
|
|
769
|
-
['url_fetch', 'Fetch a webpage (Puppeteer)'],
|
|
770
|
-
['run_command', 'Execute a shell command'],
|
|
771
|
-
['clipboard_read', 'Read from clipboard'],
|
|
772
|
-
['clipboard_write', 'Write to clipboard'],
|
|
773
|
-
['generate_image', 'Generate an image (Prior Diffusion)'],
|
|
774
|
-
['prior_feed', 'Get Prior Network feed'],
|
|
775
|
-
['prior_profile', 'Get your Prior Network profile'],
|
|
776
|
-
];
|
|
777
|
-
tools.forEach(([name, desc]) => {
|
|
778
|
-
console.log(` ${c.brand('▸')} ${c.bold(name.padEnd(16))} ${c.muted(desc)}`);
|
|
779
|
-
});
|
|
780
|
-
console.log('');
|
|
755
|
+
case '/uncensored':
|
|
756
|
+
currentModel = 'dolphin-uncensored:latest';
|
|
757
|
+
console.log(c.warn(' ✓ Prior Uncensored Model Loaded\n'));
|
|
781
758
|
return loop();
|
|
782
759
|
|
|
783
760
|
case '/learn': {
|
|
@@ -932,8 +909,8 @@ Keep it under 350 words. Write prior.md now.`;
|
|
|
932
909
|
console.log('');
|
|
933
910
|
console.log(c.bold(' Commands'));
|
|
934
911
|
console.log(c.muted(' /clear ') + 'Clear screen');
|
|
935
|
-
console.log(c.muted(' /
|
|
936
|
-
console.log(c.muted(' /
|
|
912
|
+
console.log(c.muted(' /censored ') + 'Load standard model (qwen)');
|
|
913
|
+
console.log(c.muted(' /uncensored ') + 'Load uncensored model (dolphin)');
|
|
937
914
|
console.log(c.muted(' /usage ') + 'Token usage for today');
|
|
938
915
|
console.log(c.muted(' /learn ') + 'Scan directory and write prior.md context file');
|
|
939
916
|
console.log(c.muted(' /login ') + 'Sign in to a different account');
|