@radkode/neo 1.2.0 → 1.3.0
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 +81 -9
- package/dist/commands/agent/context/index.js +12 -57
- package/dist/commands/agent/context/index.js.map +1 -1
- package/dist/commands/agent/init/index.d.ts.map +1 -1
- package/dist/commands/agent/init/index.js +36 -33
- package/dist/commands/agent/init/index.js.map +1 -1
- package/dist/commands/alias/setup/index.d.ts.map +1 -1
- package/dist/commands/alias/setup/index.js +2 -11
- package/dist/commands/alias/setup/index.js.map +1 -1
- package/dist/commands/completions/index.d.ts.map +1 -1
- package/dist/commands/completions/index.js +20 -12
- package/dist/commands/completions/index.js.map +1 -1
- package/dist/commands/config/index.d.ts.map +1 -1
- package/dist/commands/config/index.js +173 -158
- package/dist/commands/config/index.js.map +1 -1
- package/dist/commands/config/profile/index.d.ts.map +1 -1
- package/dist/commands/config/profile/index.js +169 -232
- package/dist/commands/config/profile/index.js.map +1 -1
- package/dist/commands/gh/pr/create/index.d.ts.map +1 -1
- package/dist/commands/gh/pr/create/index.js +4 -14
- package/dist/commands/gh/pr/create/index.js.map +1 -1
- package/dist/commands/git/branch/index.d.ts.map +1 -1
- package/dist/commands/git/branch/index.js +3 -14
- package/dist/commands/git/branch/index.js.map +1 -1
- package/dist/commands/git/commit/index.d.ts.map +1 -1
- package/dist/commands/git/commit/index.js +4 -14
- package/dist/commands/git/commit/index.js.map +1 -1
- package/dist/commands/git/pull/index.d.ts.map +1 -1
- package/dist/commands/git/pull/index.js +4 -14
- package/dist/commands/git/pull/index.js.map +1 -1
- package/dist/commands/git/push/index.d.ts.map +1 -1
- package/dist/commands/git/push/index.js +2 -3
- package/dist/commands/git/push/index.js.map +1 -1
- package/dist/commands/git/stash/index.d.ts.map +1 -1
- package/dist/commands/git/stash/index.js +2 -3
- package/dist/commands/git/stash/index.js.map +1 -1
- package/dist/commands/git/worktree/add.d.ts.map +1 -1
- package/dist/commands/git/worktree/add.js +18 -13
- package/dist/commands/git/worktree/add.js.map +1 -1
- package/dist/commands/git/worktree/list.d.ts.map +1 -1
- package/dist/commands/git/worktree/list.js +32 -20
- package/dist/commands/git/worktree/list.js.map +1 -1
- package/dist/commands/git/worktree/remove.d.ts.map +1 -1
- package/dist/commands/git/worktree/remove.js +2 -3
- package/dist/commands/git/worktree/remove.js.map +1 -1
- package/dist/commands/git/worktree/switch.d.ts.map +1 -1
- package/dist/commands/git/worktree/switch.js +2 -3
- package/dist/commands/git/worktree/switch.js.map +1 -1
- package/dist/commands/init/index.d.ts.map +1 -1
- package/dist/commands/init/index.js +3 -12
- package/dist/commands/init/index.js.map +1 -1
- package/dist/commands/pr/index.d.ts.map +1 -1
- package/dist/commands/pr/index.js +6 -20
- package/dist/commands/pr/index.js.map +1 -1
- package/dist/commands/schema/index.d.ts.map +1 -1
- package/dist/commands/schema/index.js +96 -2
- package/dist/commands/schema/index.js.map +1 -1
- package/dist/commands/update/index.d.ts.map +1 -1
- package/dist/commands/update/index.js +6 -20
- package/dist/commands/update/index.js.map +1 -1
- package/dist/services/ai/index.d.ts.map +1 -1
- package/dist/services/ai/index.js +9 -2
- package/dist/services/ai/index.js.map +1 -1
- package/dist/services/ai/prompts.d.ts +6 -1
- package/dist/services/ai/prompts.d.ts.map +1 -1
- package/dist/services/ai/prompts.js +10 -4
- package/dist/services/ai/prompts.js.map +1 -1
- package/dist/types/schemas.d.ts +1 -5
- package/dist/types/schemas.d.ts.map +1 -1
- package/dist/types/schemas.js +3 -3
- package/dist/types/schemas.js.map +1 -1
- package/dist/utils/agent.d.ts.map +1 -1
- package/dist/utils/agent.js +5 -11
- package/dist/utils/agent.js.map +1 -1
- package/dist/utils/config.js +1 -1
- package/dist/utils/config.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,9 +2,11 @@ import { Command } from '@commander-js/extra-typings';
|
|
|
2
2
|
import { ui } from '../../utils/ui.js';
|
|
3
3
|
import { configManager } from '../../utils/config.js';
|
|
4
4
|
import { secretsManager, SecretsManager } from '../../utils/secrets.js';
|
|
5
|
-
import { validateArgument, validateConfigValue
|
|
5
|
+
import { validateArgument, validateConfigValue } from '../../utils/validation.js';
|
|
6
6
|
import { configKeySchema, aiApiKeySchema } from '../../types/schemas.js';
|
|
7
7
|
import { promptPassword } from '../../utils/prompt.js';
|
|
8
|
+
import { emitJson } from '../../utils/output.js';
|
|
9
|
+
import { runAction } from '../../utils/run-action.js';
|
|
8
10
|
import { createProfileCommand } from '../config/profile/index.js';
|
|
9
11
|
const SECRET_KEYS = ['ai.apiKey'];
|
|
10
12
|
export function createConfigCommand() {
|
|
@@ -22,53 +24,56 @@ function createConfigGetCommand() {
|
|
|
22
24
|
command
|
|
23
25
|
.description('Get a configuration value')
|
|
24
26
|
.argument('<key>', 'configuration key (supports dot notation, e.g., preferences.banner)')
|
|
25
|
-
.action(async (rawKey) => {
|
|
26
|
-
|
|
27
|
+
.action(runAction(async (rawKey) => {
|
|
28
|
+
const key = validateArgument(configKeySchema, rawKey, 'configuration key');
|
|
29
|
+
if (SECRET_KEYS.includes(key)) {
|
|
30
|
+
const value = await secretsManager.getSecret(key);
|
|
31
|
+
const configured = Boolean(value);
|
|
32
|
+
const masked = value ? SecretsManager.maskSecret(value) : null;
|
|
33
|
+
emitJson({
|
|
34
|
+
ok: true,
|
|
35
|
+
command: 'config.get',
|
|
36
|
+
key,
|
|
37
|
+
secret: true,
|
|
38
|
+
configured,
|
|
39
|
+
value: masked,
|
|
40
|
+
}, {
|
|
41
|
+
text: () => {
|
|
42
|
+
ui.keyValue([[key, configured ? `${masked} (configured)` : 'not configured']]);
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
let config;
|
|
27
48
|
try {
|
|
28
|
-
|
|
49
|
+
config = await configManager.read();
|
|
29
50
|
}
|
|
30
51
|
catch (error) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
52
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
53
|
+
throw new Error(`Failed to read configuration: ${msg}`);
|
|
54
|
+
}
|
|
55
|
+
const value = getNestedValue(config, key);
|
|
56
|
+
if (value === undefined) {
|
|
57
|
+
throw new Error(`Configuration key not found: ${key}`);
|
|
58
|
+
}
|
|
59
|
+
emitJson({
|
|
60
|
+
ok: true,
|
|
61
|
+
command: 'config.get',
|
|
62
|
+
key,
|
|
63
|
+
secret: false,
|
|
64
|
+
value,
|
|
65
|
+
}, {
|
|
66
|
+
text: () => {
|
|
67
|
+
if (typeof value === 'object' && value !== null) {
|
|
68
|
+
ui.info(`${key}:`);
|
|
69
|
+
console.log(JSON.stringify(value, null, 2));
|
|
41
70
|
}
|
|
42
71
|
else {
|
|
43
|
-
ui.keyValue([[key,
|
|
72
|
+
ui.keyValue([[key, String(value)]]);
|
|
44
73
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
ui.error(`Failed to read secret: ${error}`);
|
|
49
|
-
process.exit(1);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
try {
|
|
53
|
-
const config = await configManager.read();
|
|
54
|
-
const value = getNestedValue(config, key);
|
|
55
|
-
if (value === undefined) {
|
|
56
|
-
ui.error(`Configuration key not found: ${key}`);
|
|
57
|
-
process.exit(1);
|
|
58
|
-
}
|
|
59
|
-
if (typeof value === 'object' && value !== null) {
|
|
60
|
-
ui.info(`${key}:`);
|
|
61
|
-
console.log(JSON.stringify(value, null, 2));
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
ui.keyValue([[key, String(value)]]);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
catch (error) {
|
|
68
|
-
ui.error(`Failed to read configuration: ${error}`);
|
|
69
|
-
process.exit(1);
|
|
70
|
-
}
|
|
71
|
-
});
|
|
74
|
+
},
|
|
75
|
+
});
|
|
76
|
+
}));
|
|
72
77
|
return command;
|
|
73
78
|
}
|
|
74
79
|
function createConfigSetCommand() {
|
|
@@ -77,66 +82,56 @@ function createConfigSetCommand() {
|
|
|
77
82
|
.description('Set a configuration value')
|
|
78
83
|
.argument('<key>', 'configuration key (supports dot notation, e.g., preferences.banner)')
|
|
79
84
|
.argument('[value]', 'configuration value (omit for secrets to use masked input)')
|
|
80
|
-
.action(async (rawKey, rawValue) => {
|
|
81
|
-
|
|
82
|
-
try {
|
|
83
|
-
key = validateArgument(configKeySchema, rawKey, 'configuration key');
|
|
84
|
-
}
|
|
85
|
-
catch (error) {
|
|
86
|
-
if (isValidationError(error)) {
|
|
87
|
-
process.exit(1);
|
|
88
|
-
}
|
|
89
|
-
throw error;
|
|
90
|
-
}
|
|
85
|
+
.action(runAction(async (rawKey, rawValue) => {
|
|
86
|
+
const key = validateArgument(configKeySchema, rawKey, 'configuration key');
|
|
91
87
|
if (SECRET_KEYS.includes(key)) {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
88
|
+
let secretValue = rawValue;
|
|
89
|
+
if (!secretValue) {
|
|
90
|
+
secretValue = await promptPassword({ message: 'Enter API key' });
|
|
91
|
+
}
|
|
92
|
+
if (!secretValue || secretValue.trim() === '') {
|
|
93
|
+
throw new Error('API key cannot be empty');
|
|
94
|
+
}
|
|
95
|
+
const parseResult = aiApiKeySchema.safeParse(secretValue);
|
|
96
|
+
if (!parseResult.success) {
|
|
97
|
+
throw new Error(`Invalid API key format: ${parseResult.error.issues[0]?.message}`);
|
|
98
|
+
}
|
|
99
|
+
await secretsManager.setSecret(key, secretValue);
|
|
100
|
+
const masked = SecretsManager.maskSecret(secretValue);
|
|
101
|
+
emitJson({
|
|
102
|
+
ok: true,
|
|
103
|
+
command: 'config.set',
|
|
104
|
+
key,
|
|
105
|
+
secret: true,
|
|
106
|
+
value: masked,
|
|
107
|
+
}, {
|
|
108
|
+
text: () => ui.success(`Secret updated: ${key} = ${masked}`),
|
|
109
|
+
});
|
|
110
|
+
return;
|
|
114
111
|
}
|
|
115
112
|
if (!rawValue) {
|
|
116
|
-
|
|
117
|
-
process.exit(1);
|
|
118
|
-
}
|
|
119
|
-
let value;
|
|
120
|
-
try {
|
|
121
|
-
value = await validateConfigValue(key, rawValue);
|
|
122
|
-
}
|
|
123
|
-
catch (error) {
|
|
124
|
-
if (isValidationError(error)) {
|
|
125
|
-
process.exit(1);
|
|
126
|
-
}
|
|
127
|
-
throw error;
|
|
113
|
+
throw new Error('Value is required for non-secret configuration keys');
|
|
128
114
|
}
|
|
115
|
+
const value = await validateConfigValue(key, rawValue);
|
|
129
116
|
try {
|
|
130
117
|
const config = await configManager.read();
|
|
131
118
|
const updated = setNestedValue(config, key, value);
|
|
132
119
|
await configManager.write(updated);
|
|
133
|
-
ui.success(`Configuration updated: ${key} = ${value}`);
|
|
134
120
|
}
|
|
135
121
|
catch (error) {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
|
|
122
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
123
|
+
throw new Error(`Failed to set configuration: ${msg}`);
|
|
124
|
+
}
|
|
125
|
+
emitJson({
|
|
126
|
+
ok: true,
|
|
127
|
+
command: 'config.set',
|
|
128
|
+
key,
|
|
129
|
+
secret: false,
|
|
130
|
+
value,
|
|
131
|
+
}, {
|
|
132
|
+
text: () => ui.success(`Configuration updated: ${key} = ${value}`),
|
|
133
|
+
});
|
|
134
|
+
}));
|
|
140
135
|
return command;
|
|
141
136
|
}
|
|
142
137
|
function getNestedValue(obj, path) {
|
|
@@ -164,75 +159,95 @@ function setNestedValue(obj, path, value) {
|
|
|
164
159
|
}
|
|
165
160
|
function createConfigListCommand() {
|
|
166
161
|
const command = new Command('list');
|
|
167
|
-
command.description('List all configuration values').action(async () => {
|
|
162
|
+
command.description('List all configuration values').action(runAction(async () => {
|
|
163
|
+
let config;
|
|
168
164
|
try {
|
|
169
|
-
|
|
170
|
-
const apiKeyConfigured = await secretsManager.isConfigured('ai.apiKey');
|
|
171
|
-
ui.info('Current Neo CLI Configuration');
|
|
172
|
-
if (config.activeProfile) {
|
|
173
|
-
ui.muted(`Active profile: ${config.activeProfile}`);
|
|
174
|
-
}
|
|
175
|
-
console.log('');
|
|
176
|
-
ui.section('AI');
|
|
177
|
-
const aiPairs = [
|
|
178
|
-
['enabled', config.ai.enabled ? 'yes' : 'no'],
|
|
179
|
-
['apiKey', apiKeyConfigured ? 'configured' : 'not configured'],
|
|
180
|
-
];
|
|
181
|
-
if (config.ai.model) {
|
|
182
|
-
aiPairs.push(['model', config.ai.model]);
|
|
183
|
-
}
|
|
184
|
-
ui.keyValue(aiPairs);
|
|
185
|
-
console.log('');
|
|
186
|
-
if (config.user.name || config.user.email) {
|
|
187
|
-
ui.section('User');
|
|
188
|
-
const userPairs = [];
|
|
189
|
-
if (config.user.name)
|
|
190
|
-
userPairs.push(['user.name', config.user.name]);
|
|
191
|
-
if (config.user.email)
|
|
192
|
-
userPairs.push(['user.email', config.user.email]);
|
|
193
|
-
ui.keyValue(userPairs);
|
|
194
|
-
console.log('');
|
|
195
|
-
}
|
|
196
|
-
ui.section('Preferences');
|
|
197
|
-
const prefPairs = [
|
|
198
|
-
['banner', config.preferences.banner],
|
|
199
|
-
['theme', config.preferences.theme],
|
|
200
|
-
];
|
|
201
|
-
if (config.preferences.editor) {
|
|
202
|
-
prefPairs.push(['editor', config.preferences.editor]);
|
|
203
|
-
}
|
|
204
|
-
prefPairs.push(['aliases.n', config.preferences.aliases.n ? 'enabled' : 'disabled']);
|
|
205
|
-
ui.keyValue(prefPairs);
|
|
206
|
-
console.log('');
|
|
207
|
-
ui.section('Shell');
|
|
208
|
-
ui.keyValue([
|
|
209
|
-
['type', config.shell.type],
|
|
210
|
-
['rcFile', config.shell.rcFile],
|
|
211
|
-
]);
|
|
212
|
-
console.log('');
|
|
213
|
-
ui.section('Installation');
|
|
214
|
-
const installPairs = [
|
|
215
|
-
['version', config.installation.version],
|
|
216
|
-
['installedAt', config.installation.installedAt],
|
|
217
|
-
];
|
|
218
|
-
if (config.installation.globalPath) {
|
|
219
|
-
installPairs.push(['globalPath', config.installation.globalPath]);
|
|
220
|
-
}
|
|
221
|
-
if (config.installation.completionsPath) {
|
|
222
|
-
installPairs.push(['completionsPath', config.installation.completionsPath]);
|
|
223
|
-
}
|
|
224
|
-
ui.keyValue(installPairs);
|
|
225
|
-
console.log('');
|
|
226
|
-
ui.divider();
|
|
227
|
-
ui.muted(`Config file: ${configManager.getConfigFile()}`);
|
|
228
|
-
ui.muted(`Secrets file: ${secretsManager.getSecretsFile()}`);
|
|
229
|
-
ui.muted(`\nUse these full keys with 'neo config get <key>' or 'neo config set <key> <value>'`);
|
|
165
|
+
config = await configManager.read();
|
|
230
166
|
}
|
|
231
167
|
catch (error) {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
|
|
168
|
+
const msg = error instanceof Error ? error.message : String(error);
|
|
169
|
+
throw new Error(`Failed to read configuration: ${msg}`);
|
|
170
|
+
}
|
|
171
|
+
const apiKeyConfigured = await secretsManager.isConfigured('ai.apiKey');
|
|
172
|
+
emitJson({
|
|
173
|
+
ok: true,
|
|
174
|
+
command: 'config.list',
|
|
175
|
+
activeProfile: config.activeProfile ?? null,
|
|
176
|
+
ai: {
|
|
177
|
+
enabled: config.ai.enabled,
|
|
178
|
+
model: config.ai.model ?? null,
|
|
179
|
+
apiKeyConfigured,
|
|
180
|
+
},
|
|
181
|
+
user: config.user,
|
|
182
|
+
preferences: config.preferences,
|
|
183
|
+
shell: config.shell,
|
|
184
|
+
installation: config.installation,
|
|
185
|
+
configFile: configManager.getConfigFile(),
|
|
186
|
+
secretsFile: secretsManager.getSecretsFile(),
|
|
187
|
+
}, {
|
|
188
|
+
text: () => {
|
|
189
|
+
ui.info('Current Neo CLI Configuration');
|
|
190
|
+
if (config.activeProfile) {
|
|
191
|
+
ui.muted(`Active profile: ${config.activeProfile}`);
|
|
192
|
+
}
|
|
193
|
+
console.log('');
|
|
194
|
+
ui.section('AI');
|
|
195
|
+
const aiPairs = [
|
|
196
|
+
['enabled', config.ai.enabled ? 'yes' : 'no'],
|
|
197
|
+
['apiKey', apiKeyConfigured ? 'configured' : 'not configured'],
|
|
198
|
+
];
|
|
199
|
+
if (config.ai.model) {
|
|
200
|
+
aiPairs.push(['model', config.ai.model]);
|
|
201
|
+
}
|
|
202
|
+
ui.keyValue(aiPairs);
|
|
203
|
+
console.log('');
|
|
204
|
+
if (config.user.name || config.user.email) {
|
|
205
|
+
ui.section('User');
|
|
206
|
+
const userPairs = [];
|
|
207
|
+
if (config.user.name)
|
|
208
|
+
userPairs.push(['user.name', config.user.name]);
|
|
209
|
+
if (config.user.email)
|
|
210
|
+
userPairs.push(['user.email', config.user.email]);
|
|
211
|
+
ui.keyValue(userPairs);
|
|
212
|
+
console.log('');
|
|
213
|
+
}
|
|
214
|
+
ui.section('Preferences');
|
|
215
|
+
const prefPairs = [
|
|
216
|
+
['banner', config.preferences.banner],
|
|
217
|
+
['theme', config.preferences.theme],
|
|
218
|
+
];
|
|
219
|
+
if (config.preferences.editor) {
|
|
220
|
+
prefPairs.push(['editor', config.preferences.editor]);
|
|
221
|
+
}
|
|
222
|
+
prefPairs.push(['aliases.n', config.preferences.aliases.n ? 'enabled' : 'disabled']);
|
|
223
|
+
ui.keyValue(prefPairs);
|
|
224
|
+
console.log('');
|
|
225
|
+
ui.section('Shell');
|
|
226
|
+
ui.keyValue([
|
|
227
|
+
['type', config.shell.type],
|
|
228
|
+
['rcFile', config.shell.rcFile],
|
|
229
|
+
]);
|
|
230
|
+
console.log('');
|
|
231
|
+
ui.section('Installation');
|
|
232
|
+
const installPairs = [
|
|
233
|
+
['version', config.installation.version],
|
|
234
|
+
['installedAt', config.installation.installedAt],
|
|
235
|
+
];
|
|
236
|
+
if (config.installation.globalPath) {
|
|
237
|
+
installPairs.push(['globalPath', config.installation.globalPath]);
|
|
238
|
+
}
|
|
239
|
+
if (config.installation.completionsPath) {
|
|
240
|
+
installPairs.push(['completionsPath', config.installation.completionsPath]);
|
|
241
|
+
}
|
|
242
|
+
ui.keyValue(installPairs);
|
|
243
|
+
console.log('');
|
|
244
|
+
ui.divider();
|
|
245
|
+
ui.muted(`Config file: ${configManager.getConfigFile()}`);
|
|
246
|
+
ui.muted(`Secrets file: ${secretsManager.getSecretsFile()}`);
|
|
247
|
+
ui.muted(`\nUse these full keys with 'neo config get <key>' or 'neo config set <key> <value>'`);
|
|
248
|
+
},
|
|
249
|
+
});
|
|
250
|
+
}));
|
|
236
251
|
return command;
|
|
237
252
|
}
|
|
238
253
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,cAAc,EA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AAM,CAAC,YAAY,CAAC,OAAO,CAAC;oBACxC,CAAC,aAAa,EAAE,MAAM,CAAC,YAAY,CAAC,WAAW,CAAC;iBACjD,CAAC;gBACF,IAAI,MAAM,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;oBACnC,YAAY,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC;gBACpE,CAAC;gBACD,IAAI,MAAM,CAAC,YAAY,CAAC,eAAe,EAAE,CAAC;oBACxC,YAAY,CAAC,IAAI,CAAC,CAAC,iBAAiB,EAAE,MAAM,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC;gBAC9E,CAAC;gBACD,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;gBAC1B,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;gBAEhB,EAAE,CAAC,OAAO,EAAE,CAAC;gBACb,EAAE,CAAC,KAAK,CAAC,gBAAgB,aAAa,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;gBAC1D,EAAE,CAAC,KAAK,CAAC,iBAAiB,cAAc,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;gBAC7D,EAAE,CAAC,KAAK,CACN,qFAAqF,CACtF,CAAC;YACJ,CAAC;SACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC,CAAC;IAEJ,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/config/profile/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/config/profile/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAmBtD,wBAAgB,oBAAoB,IAAI,OAAO,CAc9C"}
|