vigthoria-cli 1.9.10 → 1.9.19
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 +4 -4
- package/dist/commands/auth.js +48 -65
- package/dist/commands/bridge.js +12 -19
- package/dist/commands/cancel.js +15 -22
- package/dist/commands/chat.d.ts +11 -0
- package/dist/commands/chat.js +404 -248
- package/dist/commands/config.js +31 -71
- package/dist/commands/deploy.js +83 -123
- package/dist/commands/device.d.ts +35 -0
- package/dist/commands/device.js +239 -0
- package/dist/commands/edit.js +32 -39
- package/dist/commands/explain.js +18 -25
- package/dist/commands/fork.js +22 -27
- package/dist/commands/generate.js +37 -44
- package/dist/commands/history.js +20 -25
- package/dist/commands/hub.js +95 -102
- package/dist/commands/index.js +41 -46
- package/dist/commands/legion.d.ts +1 -0
- package/dist/commands/legion.js +162 -209
- package/dist/commands/preview.js +60 -98
- package/dist/commands/replay.js +27 -32
- package/dist/commands/repo.js +103 -141
- package/dist/commands/review.js +29 -36
- package/dist/commands/security.js +5 -12
- package/dist/commands/update.js +15 -49
- package/dist/commands/workflow.d.ts +8 -1
- package/dist/commands/workflow.js +53 -19
- package/dist/index.js +409 -234
- package/dist/utils/api.d.ts +5 -0
- package/dist/utils/api.js +373 -166
- package/dist/utils/bridge-client.js +11 -52
- package/dist/utils/cli-state.d.ts +54 -0
- package/dist/utils/cli-state.js +185 -0
- package/dist/utils/config.d.ts +5 -0
- package/dist/utils/config.js +35 -14
- package/dist/utils/context-ranker.js +15 -21
- package/dist/utils/files.js +5 -42
- package/dist/utils/logger.js +42 -50
- package/dist/utils/post-write-validator.js +22 -29
- package/dist/utils/project-memory.d.ts +56 -0
- package/dist/utils/project-memory.js +289 -0
- package/dist/utils/session.d.ts +29 -3
- package/dist/utils/session.js +137 -85
- package/dist/utils/task-display.js +13 -20
- package/dist/utils/tools.d.ts +19 -0
- package/dist/utils/tools.js +84 -87
- package/dist/utils/workspace-cache.js +18 -26
- package/dist/utils/workspace-stream.js +26 -64
- package/install.ps1 +14 -0
- package/package.json +5 -3
- package/scripts/release/LOCAL_MACHINE_USER_VERIFICATION.md +1 -1
- package/scripts/release/validate-no-go-gates.sh +2 -2
package/dist/commands/index.js
CHANGED
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const preview_js_1 = require("./preview.js");
|
|
20
|
-
const replay_js_1 = require("./replay.js");
|
|
21
|
-
const repo_js_1 = require("./repo.js");
|
|
22
|
-
const review_js_1 = require("./review.js");
|
|
23
|
-
const workflow_js_1 = require("./workflow.js");
|
|
1
|
+
import { registerAuthCommands } from './auth.js';
|
|
2
|
+
import { BridgeCommand } from './bridge.js';
|
|
3
|
+
import { CancelCommand } from './cancel.js';
|
|
4
|
+
import { ChatCommand } from './chat.js';
|
|
5
|
+
import { ConfigCommand } from './config.js';
|
|
6
|
+
import { DeployCommand } from './deploy.js';
|
|
7
|
+
import { EditCommand } from './edit.js';
|
|
8
|
+
import { ExplainCommand } from './explain.js';
|
|
9
|
+
import { ForkCommand } from './fork.js';
|
|
10
|
+
import { GenerateCommand } from './generate.js';
|
|
11
|
+
import { HistoryCommand } from './history.js';
|
|
12
|
+
import { HubCommand } from './hub.js';
|
|
13
|
+
import { LegionCommand } from './legion.js';
|
|
14
|
+
import { PreviewCommand } from './preview.js';
|
|
15
|
+
import { ReplayCommand } from './replay.js';
|
|
16
|
+
import { RepoCommand } from './repo.js';
|
|
17
|
+
import { ReviewCommand } from './review.js';
|
|
18
|
+
import { WorkflowCommand } from './workflow.js';
|
|
24
19
|
function isRegisterableCommand(value) {
|
|
25
20
|
return Boolean(value && typeof value === 'object');
|
|
26
21
|
}
|
|
@@ -71,75 +66,75 @@ function registerVersionInfoCommand(program) {
|
|
|
71
66
|
const commandRegistry = [
|
|
72
67
|
{
|
|
73
68
|
name: 'auth',
|
|
74
|
-
handler:
|
|
69
|
+
handler: registerAuthCommands,
|
|
75
70
|
},
|
|
76
71
|
{
|
|
77
72
|
name: 'chat',
|
|
78
|
-
handler: createClassRegistrar(
|
|
73
|
+
handler: createClassRegistrar(ChatCommand),
|
|
79
74
|
},
|
|
80
75
|
{
|
|
81
76
|
name: 'edit',
|
|
82
|
-
handler: createClassRegistrar(
|
|
77
|
+
handler: createClassRegistrar(EditCommand),
|
|
83
78
|
},
|
|
84
79
|
{
|
|
85
80
|
name: 'generate',
|
|
86
|
-
handler: createClassRegistrar(
|
|
81
|
+
handler: createClassRegistrar(GenerateCommand),
|
|
87
82
|
},
|
|
88
83
|
{
|
|
89
84
|
name: 'explain',
|
|
90
|
-
handler: createClassRegistrar(
|
|
85
|
+
handler: createClassRegistrar(ExplainCommand),
|
|
91
86
|
},
|
|
92
87
|
{
|
|
93
88
|
name: 'config',
|
|
94
|
-
handler: createClassRegistrar(
|
|
89
|
+
handler: createClassRegistrar(ConfigCommand),
|
|
95
90
|
},
|
|
96
91
|
{
|
|
97
92
|
name: 'review',
|
|
98
|
-
handler: createClassRegistrar(
|
|
93
|
+
handler: createClassRegistrar(ReviewCommand),
|
|
99
94
|
},
|
|
100
95
|
{
|
|
101
96
|
name: 'hub',
|
|
102
|
-
handler: createClassRegistrar(
|
|
97
|
+
handler: createClassRegistrar(HubCommand),
|
|
103
98
|
},
|
|
104
99
|
{
|
|
105
100
|
name: 'repo',
|
|
106
|
-
handler: createClassRegistrar(
|
|
101
|
+
handler: createClassRegistrar(RepoCommand),
|
|
107
102
|
},
|
|
108
103
|
{
|
|
109
104
|
name: 'deploy',
|
|
110
|
-
handler: createClassRegistrar(
|
|
105
|
+
handler: createClassRegistrar(DeployCommand),
|
|
111
106
|
},
|
|
112
107
|
{
|
|
113
108
|
name: 'bridge',
|
|
114
|
-
handler: createClassRegistrar(
|
|
109
|
+
handler: createClassRegistrar(BridgeCommand),
|
|
115
110
|
},
|
|
116
111
|
{
|
|
117
112
|
name: 'workflow',
|
|
118
|
-
handler: createClassRegistrar(
|
|
113
|
+
handler: createClassRegistrar(WorkflowCommand),
|
|
119
114
|
},
|
|
120
115
|
{
|
|
121
116
|
name: 'preview',
|
|
122
|
-
handler: createClassRegistrar(
|
|
117
|
+
handler: createClassRegistrar(PreviewCommand),
|
|
123
118
|
},
|
|
124
119
|
{
|
|
125
120
|
name: 'legion',
|
|
126
|
-
handler: createClassRegistrar(
|
|
121
|
+
handler: createClassRegistrar(LegionCommand),
|
|
127
122
|
},
|
|
128
123
|
{
|
|
129
124
|
name: 'history',
|
|
130
|
-
handler: createClassRegistrar(
|
|
125
|
+
handler: createClassRegistrar(HistoryCommand),
|
|
131
126
|
},
|
|
132
127
|
{
|
|
133
128
|
name: 'replay',
|
|
134
|
-
handler: createClassRegistrar(
|
|
129
|
+
handler: createClassRegistrar(ReplayCommand),
|
|
135
130
|
},
|
|
136
131
|
{
|
|
137
132
|
name: 'fork',
|
|
138
|
-
handler: createClassRegistrar(
|
|
133
|
+
handler: createClassRegistrar(ForkCommand),
|
|
139
134
|
},
|
|
140
135
|
{
|
|
141
136
|
name: 'cancel',
|
|
142
|
-
handler: createClassRegistrar(
|
|
137
|
+
handler: createClassRegistrar(CancelCommand),
|
|
143
138
|
},
|
|
144
139
|
{
|
|
145
140
|
name: 'doctor',
|
|
@@ -160,7 +155,7 @@ function commandNameMatches(entry, requestedName) {
|
|
|
160
155
|
}
|
|
161
156
|
return Boolean(entry.aliases?.some((alias) => normalizeCommandName(alias) === requestedName));
|
|
162
157
|
}
|
|
163
|
-
function resolveCommand(name) {
|
|
158
|
+
export function resolveCommand(name) {
|
|
164
159
|
const requestedName = normalizeCommandName(name);
|
|
165
160
|
if (!requestedName) {
|
|
166
161
|
return null;
|
|
@@ -168,7 +163,7 @@ function resolveCommand(name) {
|
|
|
168
163
|
const entry = commandRegistry.find((candidate) => commandNameMatches(candidate, requestedName));
|
|
169
164
|
return entry?.handler ?? null;
|
|
170
165
|
}
|
|
171
|
-
function registerCommands(cli) {
|
|
166
|
+
export function registerCommands(cli) {
|
|
172
167
|
if (!cli || typeof cli.command !== 'function') {
|
|
173
168
|
throw new Error('registerCommands requires a Commander-compatible CLI instance');
|
|
174
169
|
}
|
|
@@ -177,6 +172,6 @@ function registerCommands(cli) {
|
|
|
177
172
|
entry.handler(program);
|
|
178
173
|
}
|
|
179
174
|
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
175
|
+
export const setupCommands = registerCommands;
|
|
176
|
+
export const configureCommands = registerCommands;
|
|
177
|
+
export default registerCommands;
|
|
@@ -43,6 +43,7 @@ export declare class LegionCommand {
|
|
|
43
43
|
private parseBooleanCandidate;
|
|
44
44
|
private fetchCortexEntitlement;
|
|
45
45
|
private isMasterAdminFree;
|
|
46
|
+
private isCortexTestMode;
|
|
46
47
|
private getBillingBaseUrl;
|
|
47
48
|
private parseNumericCandidate;
|
|
48
49
|
private extractVigcoinBalance;
|