prior-cli 1.7.6 → 1.7.8

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Prior Network
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Prior CLI
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/prior-cli?color=00ffcc&label=prior-cli)](https://www.npmjs.com/package/prior-cli)
4
+ [![npm downloads](https://img.shields.io/npm/dw/prior-cli?color=8DE0FC)](https://www.npmjs.com/package/prior-cli)
5
+ [![license](https://img.shields.io/npm/l/prior-cli)](./LICENSE)
6
+ [![node](https://img.shields.io/node/v/prior-cli)](https://nodejs.org)
7
+
3
8
  **Prior** is an AI assistant for your terminal — built on the Prior Network platform.
4
9
 
5
10
  ```
@@ -62,8 +67,14 @@ Prior will list the directory, check file sizes, and report back — all in one
62
67
  |---|---|
63
68
  | `/help` | Show available commands |
64
69
  | `/clear` | Clear the conversation |
65
- | `/uncensored` | Enable uncensored mode |
66
- | `/censored` | Return to default mode |
70
+ | `/save <name>` | Save the current session |
71
+ | `/load <name>` | Load a saved session |
72
+ | `/saves` | List all saved sessions |
73
+ | `/delete <name>` | Delete a saved session |
74
+ | `/timer <duration>` | Start a countdown timer (e.g. `30s`, `5m`, `1m30s`) |
75
+ | `/update` | Check for updates and install if behind |
76
+ | `/uncensored` | Load Prior Uncensored model |
77
+ | `/censored` | Load Prior Standard model |
67
78
  | `/exit` | Exit the CLI |
68
79
 
69
80
  ## Tips
@@ -75,7 +86,7 @@ Prior will list the directory, check file sizes, and report back — all in one
75
86
  ## Requirements
76
87
 
77
88
  - Node.js 16+
78
- - A [Prior Network](https://prior.ngrok.app) account
89
+ - A [Prior Network](https://priornetwork.com) account
79
90
 
80
91
  ## License
81
92
 
package/bin/prior.js CHANGED
@@ -408,7 +408,7 @@ function banner() {
408
408
  console.log(c.brand(' ██║ ██║ ██║██║╚██████╔╝██║ ██║'));
409
409
  console.log(c.brand(' ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═════╝ ╚═╝ ╚═╝'));
410
410
  console.log('');
411
- console.log(c.muted(` v${version} · prior.ngrok.app`));
411
+ console.log(c.muted(` v${version} · priornetwork.com`));
412
412
  console.log('');
413
413
  }
414
414
 
@@ -692,7 +692,7 @@ async function loginViaBrowser() {
692
692
 
693
693
  // Generate a random state token to match the browser session to this CLI wait
694
694
  const state = crypto.randomBytes(16).toString('hex');
695
- const url = `https://prior.ngrok.app/cli-auth?state=${state}`;
695
+ const url = `https://priornetwork.com/cli-auth?state=${state}`;
696
696
 
697
697
  await open(url).catch(() => {
698
698
  process.stdout.write('\n');
@@ -701,7 +701,7 @@ async function loginViaBrowser() {
701
701
 
702
702
  // Long-poll the CLI backend until browser completes login (3 min timeout handled server-side)
703
703
  const fetch = require('node-fetch');
704
- const res = await fetch(`https://prior.ngrok.app/cli-backend/wait?state=${state}`, {
704
+ const res = await fetch(`https://priornetwork.com/cli-backend/wait?state=${state}`, {
705
705
  timeout: 185000,
706
706
  });
707
707
 
@@ -1493,7 +1493,7 @@ Be concise but thorough — this summary replaces the full history to save conte
1493
1493
  ];
1494
1494
 
1495
1495
  const token = require('../lib/config').getToken();
1496
- const res = await fetch('https://prior.ngrok.app/cli-backend/api/infer', {
1496
+ const res = await fetch('https://priornetwork.com/cli-backend/api/infer', {
1497
1497
  method: 'POST',
1498
1498
  headers: { 'Content-Type': 'application/json' },
1499
1499
  body: JSON.stringify({ messages: compactPrompt, model: currentModel, token, cwd: process.cwd() }),
package/lib/agent.js CHANGED
@@ -4,8 +4,8 @@ const fetch = require('node-fetch');
4
4
  const { executeTool, TOOL_NAMES } = require('./tools');
5
5
  const { getToken, getUsername } = require('./config');
6
6
 
7
- const CLI_BASE = 'https://prior.ngrok.app/cli-backend';
8
- const PRIOR_BASE = 'https://prior.ngrok.app';
7
+ const CLI_BASE = 'https://priornetwork.com/cli-backend';
8
+ const PRIOR_BASE = 'https://priornetwork.com';
9
9
  const MAX_ITER = 14;
10
10
 
11
11
  // ── Single inference call ─────────────────────────────────────
package/lib/api.js CHANGED
@@ -3,8 +3,8 @@
3
3
  const fetch = require('node-fetch');
4
4
  const { getToken } = require('./config');
5
5
 
6
- const BASE = 'https://prior.ngrok.app';
7
- const CLI_BASE = 'https://prior.ngrok.app/cli-backend';
6
+ const BASE = 'https://priornetwork.com';
7
+ const CLI_BASE = 'https://priornetwork.com/cli-backend';
8
8
 
9
9
  // ── Infer — single AI call, returns { content, promptTokens, completionTokens }
10
10
 
package/lib/tools.js CHANGED
@@ -5,8 +5,8 @@ const path = require('path');
5
5
  const { exec } = require('child_process');
6
6
  const fetch = require('node-fetch');
7
7
 
8
- const CLI_BASE = 'https://prior.ngrok.app/cli-backend';
9
- const PRIOR_BASE = 'https://prior.ngrok.app';
8
+ const CLI_BASE = 'https://priornetwork.com/cli-backend';
9
+ const PRIOR_BASE = 'https://priornetwork.com';
10
10
  const MAX_FILE_SIZE = 500 * 1024; // 500 KB
11
11
 
12
12
  const BLOCKED_PATTERNS = [
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "prior-cli",
3
- "version": "1.7.6",
3
+ "version": "1.7.8",
4
4
  "description": "Prior Network AI — command-line interface",
5
5
  "author": "Prior Network",
6
- "homepage": "https://prior.ngrok.app",
6
+ "homepage": "https://priornetwork.com",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/pior-network/prior-cli.git"
9
+ "url": "https://github.com/Niceguygamer/prior-cli.git"
10
10
  },
11
11
  "bugs": {
12
- "url": "https://github.com/pior-network/prior-cli/issues"
12
+ "url": "https://github.com/Niceguygamer/prior-cli/issues"
13
13
  },
14
14
  "bin": {
15
15
  "prior": "bin/prior.js"