@ayurak/aribot-cli 1.0.1 → 1.0.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/dist/cli.js +3 -3
- package/package.json +1 -1
- package/src/cli.ts +3 -3
package/dist/cli.js
CHANGED
|
@@ -28,7 +28,7 @@ const program = new commander_1.Command();
|
|
|
28
28
|
program
|
|
29
29
|
.name('aribot')
|
|
30
30
|
.description('AI-powered threat modeling CLI by Ayurak')
|
|
31
|
-
.version('1.0.
|
|
31
|
+
.version('1.0.2');
|
|
32
32
|
// Helper to get auth headers
|
|
33
33
|
function getHeaders() {
|
|
34
34
|
const apiKey = config.get('apiKey');
|
|
@@ -67,7 +67,7 @@ program
|
|
|
67
67
|
const spinner = (0, ora_1.default)('Validating API key...').start();
|
|
68
68
|
try {
|
|
69
69
|
const fetch = (await import('node-fetch')).default;
|
|
70
|
-
const response = await fetch(`${API_BASE}/v1/
|
|
70
|
+
const response = await fetch(`${API_BASE}/v1/users/me/`, {
|
|
71
71
|
headers: { 'Authorization': `Bearer ${apiKey}` }
|
|
72
72
|
});
|
|
73
73
|
if (response.ok) {
|
|
@@ -278,7 +278,7 @@ program
|
|
|
278
278
|
return;
|
|
279
279
|
}
|
|
280
280
|
try {
|
|
281
|
-
const data = await apiRequest('/v1/
|
|
281
|
+
const data = await apiRequest('/v1/users/me/');
|
|
282
282
|
console.log(chalk_1.default.green('Authenticated as:'));
|
|
283
283
|
console.log(` Email: ${data.email}`);
|
|
284
284
|
console.log(` Company: ${data.company || 'N/A'}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ayurak/aribot-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "AI-powered threat modeling CLI by Ayurak. Automatically analyze diagrams, generate STRIDE threats, and get security recommendations.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
package/src/cli.ts
CHANGED
|
@@ -27,7 +27,7 @@ const program = new Command();
|
|
|
27
27
|
program
|
|
28
28
|
.name('aribot')
|
|
29
29
|
.description('AI-powered threat modeling CLI by Ayurak')
|
|
30
|
-
.version('1.0.
|
|
30
|
+
.version('1.0.2');
|
|
31
31
|
|
|
32
32
|
// Helper to get auth headers
|
|
33
33
|
function getHeaders(): Record<string, string> {
|
|
@@ -73,7 +73,7 @@ program
|
|
|
73
73
|
|
|
74
74
|
try {
|
|
75
75
|
const fetch = (await import('node-fetch')).default;
|
|
76
|
-
const response = await fetch(`${API_BASE}/v1/
|
|
76
|
+
const response = await fetch(`${API_BASE}/v1/users/me/`, {
|
|
77
77
|
headers: { 'Authorization': `Bearer ${apiKey}` }
|
|
78
78
|
});
|
|
79
79
|
|
|
@@ -321,7 +321,7 @@ program
|
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
try {
|
|
324
|
-
const data = await apiRequest('/v1/
|
|
324
|
+
const data = await apiRequest('/v1/users/me/');
|
|
325
325
|
console.log(chalk.green('Authenticated as:'));
|
|
326
326
|
console.log(` Email: ${data.email}`);
|
|
327
327
|
console.log(` Company: ${data.company || 'N/A'}`);
|