@lanonasis/cli 3.6.2 → 3.6.3
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.
|
@@ -111,16 +111,16 @@ export declare const TopicCreateSchema: z.ZodObject<{
|
|
|
111
111
|
color: z.ZodOptional<z.ZodString>;
|
|
112
112
|
icon: z.ZodOptional<z.ZodString>;
|
|
113
113
|
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
description?: string;
|
|
114
115
|
icon?: string;
|
|
115
116
|
name?: string;
|
|
116
117
|
color?: string;
|
|
117
|
-
description?: string;
|
|
118
118
|
parent_id?: string;
|
|
119
119
|
}, {
|
|
120
|
+
description?: string;
|
|
120
121
|
icon?: string;
|
|
121
122
|
name?: string;
|
|
122
123
|
color?: string;
|
|
123
|
-
description?: string;
|
|
124
124
|
parent_id?: string;
|
|
125
125
|
}>;
|
|
126
126
|
export declare const TopicUpdateSchema: z.ZodObject<{
|
|
@@ -131,18 +131,18 @@ export declare const TopicUpdateSchema: z.ZodObject<{
|
|
|
131
131
|
color: z.ZodOptional<z.ZodString>;
|
|
132
132
|
icon: z.ZodOptional<z.ZodString>;
|
|
133
133
|
}, "strip", z.ZodTypeAny, {
|
|
134
|
+
description?: string;
|
|
134
135
|
icon?: string;
|
|
135
136
|
name?: string;
|
|
136
137
|
color?: string;
|
|
137
138
|
topic_id?: string;
|
|
138
|
-
description?: string;
|
|
139
139
|
parent_id?: string;
|
|
140
140
|
}, {
|
|
141
|
+
description?: string;
|
|
141
142
|
icon?: string;
|
|
142
143
|
name?: string;
|
|
143
144
|
color?: string;
|
|
144
145
|
topic_id?: string;
|
|
145
|
-
description?: string;
|
|
146
146
|
parent_id?: string;
|
|
147
147
|
}>;
|
|
148
148
|
export declare const TopicListSchema: z.ZodObject<{
|
|
@@ -485,16 +485,16 @@ export declare const MCPSchemas: {
|
|
|
485
485
|
color: z.ZodOptional<z.ZodString>;
|
|
486
486
|
icon: z.ZodOptional<z.ZodString>;
|
|
487
487
|
}, "strip", z.ZodTypeAny, {
|
|
488
|
+
description?: string;
|
|
488
489
|
icon?: string;
|
|
489
490
|
name?: string;
|
|
490
491
|
color?: string;
|
|
491
|
-
description?: string;
|
|
492
492
|
parent_id?: string;
|
|
493
493
|
}, {
|
|
494
|
+
description?: string;
|
|
494
495
|
icon?: string;
|
|
495
496
|
name?: string;
|
|
496
497
|
color?: string;
|
|
497
|
-
description?: string;
|
|
498
498
|
parent_id?: string;
|
|
499
499
|
}>;
|
|
500
500
|
update: z.ZodObject<{
|
|
@@ -505,18 +505,18 @@ export declare const MCPSchemas: {
|
|
|
505
505
|
color: z.ZodOptional<z.ZodString>;
|
|
506
506
|
icon: z.ZodOptional<z.ZodString>;
|
|
507
507
|
}, "strip", z.ZodTypeAny, {
|
|
508
|
+
description?: string;
|
|
508
509
|
icon?: string;
|
|
509
510
|
name?: string;
|
|
510
511
|
color?: string;
|
|
511
512
|
topic_id?: string;
|
|
512
|
-
description?: string;
|
|
513
513
|
parent_id?: string;
|
|
514
514
|
}, {
|
|
515
|
+
description?: string;
|
|
515
516
|
icon?: string;
|
|
516
517
|
name?: string;
|
|
517
518
|
color?: string;
|
|
518
519
|
topic_id?: string;
|
|
519
|
-
description?: string;
|
|
520
520
|
parent_id?: string;
|
|
521
521
|
}>;
|
|
522
522
|
list: z.ZodObject<{
|
package/dist/utils/config.js
CHANGED
|
@@ -292,7 +292,7 @@ export class CLIConfig {
|
|
|
292
292
|
const hasEnvOverrides = Boolean(envAuthBase || envMemoryBase || envMcpBase || envMcpWsBase || envMcpSseBase);
|
|
293
293
|
const nodeEnv = (process.env.NODE_ENV ?? '').toLowerCase();
|
|
294
294
|
const isDevEnvironment = nodeEnv === 'development' || nodeEnv === 'test';
|
|
295
|
-
const defaultAuthBase = isDevEnvironment ? 'http://localhost:4000' : 'https://
|
|
295
|
+
const defaultAuthBase = isDevEnvironment ? 'http://localhost:4000' : 'https://auth.lanonasis.com';
|
|
296
296
|
const defaultMemoryBase = isDevEnvironment ? 'http://localhost:4000/api/v1' : 'https://api.lanonasis.com/api/v1';
|
|
297
297
|
const defaultMcpBase = isDevEnvironment ? 'http://localhost:4100/api/v1' : 'https://mcp.lanonasis.com/api/v1';
|
|
298
298
|
const defaultMcpWsBase = isDevEnvironment ? 'ws://localhost:4100/ws' : 'wss://mcp.lanonasis.com/ws';
|
|
@@ -397,16 +397,16 @@ export class CLIConfig {
|
|
|
397
397
|
if (error.response?.status === 401) {
|
|
398
398
|
const errorData = error.response.data;
|
|
399
399
|
if (errorData?.error?.includes('expired') || errorData?.message?.includes('expired')) {
|
|
400
|
-
throw new Error('Vendor key has expired. Please generate a new key from your dashboard.');
|
|
400
|
+
throw new Error('Vendor key validation failed: Key has expired. Please generate a new key from your dashboard.');
|
|
401
401
|
}
|
|
402
402
|
else if (errorData?.error?.includes('revoked') || errorData?.message?.includes('revoked')) {
|
|
403
|
-
throw new Error('Vendor key has been revoked. Please generate a new key from your dashboard.');
|
|
403
|
+
throw new Error('Vendor key validation failed: Key has been revoked. Please generate a new key from your dashboard.');
|
|
404
404
|
}
|
|
405
405
|
else if (errorData?.error?.includes('invalid') || errorData?.message?.includes('invalid')) {
|
|
406
|
-
throw new Error('Vendor key is invalid. Please check the key format and ensure it was copied correctly.');
|
|
406
|
+
throw new Error('Vendor key validation failed: Key is invalid. Please check the key format and ensure it was copied correctly.');
|
|
407
407
|
}
|
|
408
408
|
else {
|
|
409
|
-
throw new Error('Vendor key
|
|
409
|
+
throw new Error('Vendor key validation failed: Authentication failed. The key may be invalid, expired, or revoked.');
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
412
|
else if (error.response?.status === 403) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lanonasis/cli",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.3",
|
|
4
4
|
"description": "LanOnasis Enterprise CLI - Memory as a Service, API Key Management, and Infrastructure Orchestration",
|
|
5
5
|
"main": "dist/index-simple.js",
|
|
6
6
|
"bin": {
|
|
@@ -21,9 +21,11 @@
|
|
|
21
21
|
"build:mcp-client": "tsc src/mcp/client/enhanced-client.ts --outDir dist/mcp/client",
|
|
22
22
|
"start": "node dist/index.js",
|
|
23
23
|
"start:mcp-server": "node dist/mcp/server/lanonasis-server.js",
|
|
24
|
-
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
|
|
24
|
+
"test": "NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\"integration|reliability|persistence\"",
|
|
25
|
+
"test:all": "NODE_OPTIONS=--experimental-vm-modules jest",
|
|
25
26
|
"test:mcp": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=mcp",
|
|
26
|
-
"test:integration": "
|
|
27
|
+
"test:integration": "NODE_OPTIONS=--experimental-vm-modules jest --testPathPattern=\"integration|reliability|persistence\"",
|
|
28
|
+
"test:coverage": "NODE_OPTIONS=--experimental-vm-modules jest --coverage --testPathIgnorePatterns=\"integration|reliability|persistence\"",
|
|
27
29
|
"lint": "eslint .",
|
|
28
30
|
"type-check": "tsc --noEmit",
|
|
29
31
|
"prepare": "npm run build",
|