vigthoria-cli 1.8.15 → 1.9.2
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 +2 -6
- package/dist/commands/auth.d.ts +49 -21
- package/dist/commands/auth.js +385 -343
- package/dist/commands/chat.d.ts +10 -2
- package/dist/commands/chat.js +328 -93
- 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 +39 -0
- package/dist/commands/legion.js +999 -71
- package/dist/index.d.ts +3 -1
- package/dist/index.js +506 -28
- package/dist/utils/api.d.ts +74 -18
- package/dist/utils/api.js +701 -805
- 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 +15 -0
- package/dist/utils/tools.js +341 -58
- package/dist/utils/workspace-cache.d.ts +31 -0
- package/dist/utils/workspace-cache.js +96 -0
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -101,7 +101,7 @@ If you see `ENOTFOUND registry.npmjs.org`, try these solutions:
|
|
|
101
101
|
4. **Direct tarball download:**
|
|
102
102
|
```bash
|
|
103
103
|
# Download directly
|
|
104
|
-
npm install -g https://
|
|
104
|
+
npm install -g https://coder.vigthoria.io/releases/vigthoria-cli-1.9.2.tgz
|
|
105
105
|
```
|
|
106
106
|
|
|
107
107
|
5. **Use Git clone method (no npm registry needed):**
|
|
@@ -213,7 +213,7 @@ This generates a tower defense game from scratch with Agent Mode, validates it i
|
|
|
213
213
|
vigthoria chat [options]
|
|
214
214
|
|
|
215
215
|
Options:
|
|
216
|
-
-m, --model <model> Select AI model (
|
|
216
|
+
-m, --model <model> Select AI model (agent, code, code-35b, code-9b, balanced, balanced-4b, cloud, ultra)
|
|
217
217
|
-p, --project <path> Set project context path
|
|
218
218
|
-r, --resume Resume the latest session for this project
|
|
219
219
|
```
|
|
@@ -420,14 +420,10 @@ vigthoria repo clone 123
|
|
|
420
420
|
|
|
421
421
|
| Short Name | Full Model ID | Size | Best For |
|
|
422
422
|
|------------|---------------|------|----------|
|
|
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
423
|
| `balanced` | `vigthoria-balanced-4b` | 4B | All-purpose tasks |
|
|
426
424
|
| `code` / `code-v2` | `vigthoria-v2-code-8b` | 8B | Code generation & editing |
|
|
427
425
|
| `code-v3-8b` | `vigthoria-v3-code-8b` | 8B | Next-gen coding (future) |
|
|
428
426
|
| `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
427
|
| `music` | `vigthoria-music-master-4b` | 4B | Music AI generation |
|
|
432
428
|
|
|
433
429
|
### External Models (Ollama Fallback)
|
package/dist/commands/auth.d.ts
CHANGED
|
@@ -1,22 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
export type AuthSession = {
|
|
3
|
+
accessToken: string;
|
|
4
|
+
refreshToken?: string;
|
|
5
|
+
user?: {
|
|
6
|
+
id?: string;
|
|
7
|
+
email?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
};
|
|
10
|
+
expiresAt?: number;
|
|
11
|
+
apiUrl: string;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
updatedAt: string;
|
|
14
|
+
};
|
|
15
|
+
export type JwtState = {
|
|
16
|
+
token: string | null;
|
|
17
|
+
expiresAt: number | null;
|
|
18
|
+
refreshToken?: string | null;
|
|
19
|
+
apiUrl?: string | null;
|
|
20
|
+
isExpired?: () => boolean;
|
|
21
|
+
};
|
|
22
|
+
export declare function readAuthSession(): AuthSession | null;
|
|
23
|
+
export declare function clearAuthSession(state?: Partial<JwtState> | null): boolean;
|
|
24
|
+
export declare function refreshJwtIfNeeded(state: JwtState): Promise<string | null>;
|
|
25
|
+
export declare function loginWithToken(token: string, options?: {
|
|
26
|
+
apiUrl?: string;
|
|
27
|
+
}): Promise<AuthSession>;
|
|
28
|
+
export declare function loginWithCredentials(email: string, password: string, options?: {
|
|
29
|
+
apiUrl?: string;
|
|
30
|
+
}): Promise<AuthSession>;
|
|
31
|
+
export declare function loginWithDeviceCode(options?: {
|
|
32
|
+
apiUrl?: string;
|
|
33
|
+
pollTimeoutMs?: number;
|
|
34
|
+
}): Promise<AuthSession>;
|
|
35
|
+
export declare function getValidAuthSession(): Promise<AuthSession | null>;
|
|
36
|
+
export declare function loginAction(options?: {
|
|
7
37
|
token?: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
38
|
+
email?: string;
|
|
39
|
+
password?: string;
|
|
40
|
+
apiUrl?: string;
|
|
41
|
+
device?: boolean;
|
|
42
|
+
}): Promise<void>;
|
|
43
|
+
export declare function logoutAction(state?: Partial<JwtState> | null): Promise<void>;
|
|
44
|
+
export declare function handleLogin(config: any): Promise<void>;
|
|
45
|
+
export declare function handleLogout(config: any): Promise<void>;
|
|
46
|
+
export declare function statusAction(): Promise<void>;
|
|
47
|
+
export declare function createAuthCommand(): Command;
|
|
48
|
+
export declare function registerAuthCommand(program: Command): Command;
|
|
49
|
+
export declare const authCommand: Command;
|
|
50
|
+
export default authCommand;
|