vigthoria-cli 1.8.19 → 1.9.5
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/README.md +16 -10
- package/dist/commands/auth.d.ts +36 -18
- package/dist/commands/auth.js +440 -329
- package/dist/commands/chat.d.ts +12 -0
- package/dist/commands/chat.js +287 -48
- package/dist/commands/config.d.ts +2 -0
- package/dist/commands/config.js +40 -20
- package/dist/commands/index.d.ts +12 -0
- package/dist/commands/index.js +182 -0
- package/dist/commands/legion.d.ts +49 -7
- package/dist/commands/legion.js +1418 -72
- package/dist/commands/preview.js +32 -7
- package/dist/commands/repo.js +19 -13
- package/dist/commands/update.d.ts +9 -0
- package/dist/commands/update.js +235 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +472 -51
- package/dist/utils/api.d.ts +24 -9
- package/dist/utils/api.js +720 -159
- package/dist/utils/config.js +9 -10
- package/dist/utils/context-ranker.d.ts +24 -0
- package/dist/utils/context-ranker.js +147 -0
- package/dist/utils/post-write-validator.d.ts +25 -0
- package/dist/utils/post-write-validator.js +138 -0
- package/dist/utils/session.d.ts +19 -0
- package/dist/utils/session.js +91 -6
- package/dist/utils/task-display.d.ts +31 -0
- package/dist/utils/task-display.js +115 -0
- package/dist/utils/tools.d.ts +26 -0
- package/dist/utils/tools.js +563 -58
- package/dist/utils/workspace-cache.d.ts +31 -0
- package/dist/utils/workspace-cache.js +96 -0
- package/package.json +13 -3
package/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# Vigthoria CLI
|
|
2
2
|
|
|
3
|
-
AI-powered terminal coding assistant for Vigthoria Coder subscribers.
|
|
4
|
-
|
|
5
|
-
AI-powered terminal coding assistant integrated with Vigthoria's AI models and subscription system.
|
|
3
|
+
AI-powered terminal coding assistant for Vigthoria Coder subscribers, integrated with Vigthoria's AI models, repository workflows, Cortex routing, and subscription system.
|
|
6
4
|
|
|
7
5
|
```
|
|
8
6
|
╔═══════════════════════════════════════════════════════════╗
|
|
@@ -32,7 +30,7 @@ AI-powered terminal coding assistant integrated with Vigthoria's AI models and s
|
|
|
32
30
|
|
|
33
31
|
## Installation
|
|
34
32
|
|
|
35
|
-
|
|
33
|
+
Version 1.9.3 is published as `vigthoria-cli` and installs the `vigthoria`, `vig`, and `vigthoria-chat` commands. Use the platform installer for automatic setup and updates, or install the npm package globally on any Node.js 18+ platform.
|
|
36
34
|
|
|
37
35
|
### Quick Install (Linux/macOS)
|
|
38
36
|
|
|
@@ -101,7 +99,7 @@ If you see `ENOTFOUND registry.npmjs.org`, try these solutions:
|
|
|
101
99
|
4. **Direct tarball download:**
|
|
102
100
|
```bash
|
|
103
101
|
# Download directly
|
|
104
|
-
|
|
102
|
+
npm install -g https://coder.vigthoria.io/releases/vigthoria-cli-1.9.3.tgz
|
|
105
103
|
```
|
|
106
104
|
|
|
107
105
|
5. **Use Git clone method (no npm registry needed):**
|
|
@@ -121,6 +119,8 @@ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
|
|
|
121
119
|
|
|
122
120
|
**Permissions:** Run PowerShell as Administrator if you get access denied errors.
|
|
123
121
|
|
|
122
|
+
**Update and diagnostics:** After installing or upgrading, run `vigthoria update` to check for the current release and `vigthoria doctor` to verify Node.js, platform, PATH, authentication, and network readiness.
|
|
123
|
+
|
|
124
124
|
## Quick Start
|
|
125
125
|
|
|
126
126
|
### 1. Login
|
|
@@ -134,6 +134,15 @@ Options:
|
|
|
134
134
|
- API Token
|
|
135
135
|
- Browser OAuth
|
|
136
136
|
|
|
137
|
+
Production login fixes in version 1.9.3:
|
|
138
|
+
- `vigthoria login --email you@example.com --password "your-password"` now performs direct email/password authentication without requiring interactive prompts.
|
|
139
|
+
- When device-code login is not supported by the server, the CLI falls back to a cross-platform email/password prompt.
|
|
140
|
+
- HTML or proxy error responses from auth endpoints are sanitized into human-readable messages, so raw HTML is never printed to the terminal.
|
|
141
|
+
|
|
142
|
+
Cortex routing in version 1.9.3:
|
|
143
|
+
- Use `vigthoria chat --cortex` to enable Cortex detective/architect routing through LegionOptions for deeper planning, analysis, and production-readiness audits.
|
|
144
|
+
- `vig c --cortex` provides the same Cortex routing shortcut for quick terminal sessions.
|
|
145
|
+
|
|
137
146
|
### 2. Start Chatting
|
|
138
147
|
|
|
139
148
|
```bash
|
|
@@ -213,9 +222,10 @@ This generates a tower defense game from scratch with Agent Mode, validates it i
|
|
|
213
222
|
vigthoria chat [options]
|
|
214
223
|
|
|
215
224
|
Options:
|
|
216
|
-
-m, --model <model> Select AI model (
|
|
225
|
+
-m, --model <model> Select AI model (agent, code, code-35b, code-9b, balanced, balanced-4b, cloud, ultra)
|
|
217
226
|
-p, --project <path> Set project context path
|
|
218
227
|
-r, --resume Resume the latest session for this project
|
|
228
|
+
--cortex Enable Cortex detective/architect routing through LegionOptions for deeper planning and analysis
|
|
219
229
|
```
|
|
220
230
|
|
|
221
231
|
In chat mode, you can use these special commands:
|
|
@@ -420,14 +430,10 @@ vigthoria repo clone 123
|
|
|
420
430
|
|
|
421
431
|
| Short Name | Full Model ID | Size | Best For |
|
|
422
432
|
|------------|---------------|------|----------|
|
|
423
|
-
| `fast` | `vigthoria-fast-1.7b` | 1.7B | Quick responses, simple tasks |
|
|
424
|
-
| `mini` | `vigthoria-mini-0.6b` | 0.6B | Ultra-lightweight, edge devices |
|
|
425
433
|
| `balanced` | `vigthoria-balanced-4b` | 4B | All-purpose tasks |
|
|
426
434
|
| `code` / `code-v2` | `vigthoria-v2-code-8b` | 8B | Code generation & editing |
|
|
427
435
|
| `code-v3-8b` | `vigthoria-v3-code-8b` | 8B | Next-gen coding (future) |
|
|
428
436
|
| `code-v3-32b` / `code-32b` | `vigthoria-v3-code-32b` | 32B | Large-scale code projects |
|
|
429
|
-
| `creative-v4` | `vigthoria-creative-9b-v4` | 9B | Creative writing, storytelling |
|
|
430
|
-
| `creative-v3` | `vigthoria-creative-9b-v3` | 9B | Legacy creative model |
|
|
431
437
|
| `music` | `vigthoria-music-master-4b` | 4B | Music AI generation |
|
|
432
438
|
|
|
433
439
|
### External Models (Ollama Fallback)
|
package/dist/commands/auth.d.ts
CHANGED
|
@@ -1,22 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { Config } from '../utils/config.js';
|
|
5
|
-
import { Logger } from '../utils/logger.js';
|
|
6
|
-
interface LoginOptions {
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
export interface AuthConfig {
|
|
3
|
+
apiUrl: string;
|
|
7
4
|
token?: string;
|
|
5
|
+
user?: {
|
|
6
|
+
id?: string;
|
|
7
|
+
email?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface LoginResult extends AuthConfig {
|
|
12
|
+
success: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface DoctorReport {
|
|
15
|
+
nodeVersion: string;
|
|
16
|
+
platform: NodeJS.Platform;
|
|
17
|
+
arch: string;
|
|
18
|
+
configFile: string;
|
|
19
|
+
loggedIn: boolean;
|
|
20
|
+
apiUrl: string;
|
|
8
21
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
login(options: LoginOptions): Promise<void>;
|
|
15
|
-
private doCredentialLogin;
|
|
16
|
-
private loginWithToken;
|
|
17
|
-
private loginWithBrowser;
|
|
18
|
-
logout(): Promise<void>;
|
|
19
|
-
status(): Promise<void>;
|
|
20
|
-
private printLoginSuccess;
|
|
22
|
+
interface LoginOptions {
|
|
23
|
+
token?: string;
|
|
24
|
+
email?: string;
|
|
25
|
+
password?: string;
|
|
26
|
+
device?: boolean;
|
|
21
27
|
}
|
|
28
|
+
export declare function loadAuthConfig(): AuthConfig;
|
|
29
|
+
export declare function saveAuthConfig(config: AuthConfig): void;
|
|
30
|
+
export declare function clearAuthConfig(): void;
|
|
31
|
+
export declare function getAuthToken(): string | undefined;
|
|
32
|
+
export declare function login(email?: string, password?: string): Promise<LoginResult>;
|
|
33
|
+
export declare function logout(): Promise<void>;
|
|
34
|
+
export declare function whoami(): Promise<AuthConfig['user'] | undefined>;
|
|
35
|
+
export declare function doctor(): Promise<DoctorReport>;
|
|
36
|
+
export declare function handleLogin(options?: LoginOptions): Promise<LoginResult | undefined>;
|
|
37
|
+
export declare function handleLogout(_options?: unknown): Promise<void>;
|
|
38
|
+
export declare function statusAction(): Promise<void>;
|
|
39
|
+
export declare function registerAuthCommands(program: Command): void;
|
|
22
40
|
export {};
|