@lanonasis/cli 3.6.4 → 3.6.5
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/commands/api-keys.d.ts +1 -2
- package/dist/commands/api-keys.js +78 -73
- package/dist/commands/auth.js +167 -160
- package/dist/commands/completion.js +39 -31
- package/dist/commands/config.js +201 -162
- package/dist/commands/enhanced-memory.js +17 -11
- package/dist/commands/guide.js +88 -79
- package/dist/commands/init.js +20 -14
- package/dist/commands/mcp.js +173 -142
- package/dist/commands/memory.js +83 -77
- package/dist/commands/organization.js +21 -15
- package/dist/commands/topics.js +58 -52
- package/dist/core/achievements.js +26 -19
- package/dist/core/architecture.js +59 -42
- package/dist/core/dashboard.js +81 -71
- package/dist/core/error-handler.js +39 -30
- package/dist/core/power-mode.js +53 -46
- package/dist/core/progress.js +44 -35
- package/dist/core/welcome.js +64 -56
- package/dist/enhanced-cli.js +58 -49
- package/dist/index-simple.js +112 -74
- package/dist/index.js +68 -63
- package/dist/mcp/access-control.js +17 -13
- package/dist/mcp/client/enhanced-client.js +23 -16
- package/dist/mcp/enhanced-server.js +14 -10
- package/dist/mcp/logger.js +6 -2
- package/dist/mcp/memory-state.js +17 -13
- package/dist/mcp/schemas/tool-schemas.d.ts +28 -28
- package/dist/mcp/schemas/tool-schemas.js +126 -122
- package/dist/mcp/server/lanonasis-server.js +51 -44
- package/dist/mcp/transports/transport-manager.js +25 -18
- package/dist/mcp/vector-store.js +10 -6
- package/dist/mcp-server.js +21 -17
- package/dist/utils/api.js +30 -21
- package/dist/utils/config.js +59 -13
- package/dist/utils/formatting.js +14 -6
- package/dist/utils/mcp-client.js +132 -77
- package/package.json +17 -93
- package/dist/completions/bash-completion.sh +0 -88
- package/dist/completions/fish-completion.fish +0 -132
- package/dist/completions/zsh-completion.zsh +0 -196
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* Memory Access Control System
|
|
3
4
|
* Implements granular permissions and audit logging inspired by mem0's ACL system
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.MemoryAccessControl = void 0;
|
|
8
|
+
const config_js_1 = require("../utils/config.js");
|
|
9
|
+
const logger_js_1 = require("./logger.js");
|
|
10
|
+
class MemoryAccessControl {
|
|
8
11
|
config;
|
|
9
12
|
accessRules = new Map();
|
|
10
13
|
accessLogs = [];
|
|
11
14
|
constructor() {
|
|
12
|
-
this.config = new CLIConfig();
|
|
15
|
+
this.config = new config_js_1.CLIConfig();
|
|
13
16
|
}
|
|
14
17
|
/**
|
|
15
18
|
* Check if user has access to create memories in an app
|
|
@@ -25,7 +28,7 @@ export class MemoryAccessControl {
|
|
|
25
28
|
return rules.some(rule => rule.permission === 'write' || rule.permission === 'admin');
|
|
26
29
|
}
|
|
27
30
|
catch (error) {
|
|
28
|
-
logger.error('Access check failed', { error, userId, appId });
|
|
31
|
+
logger_js_1.logger.error('Access check failed', { error, userId, appId });
|
|
29
32
|
return false;
|
|
30
33
|
}
|
|
31
34
|
}
|
|
@@ -50,7 +53,7 @@ export class MemoryAccessControl {
|
|
|
50
53
|
(rule.memory_id === memoryId || !rule.memory_id));
|
|
51
54
|
}
|
|
52
55
|
catch (error) {
|
|
53
|
-
logger.error('Memory access check failed', { error, memoryId, appId });
|
|
56
|
+
logger_js_1.logger.error('Memory access check failed', { error, memoryId, appId });
|
|
54
57
|
return false;
|
|
55
58
|
}
|
|
56
59
|
}
|
|
@@ -68,7 +71,7 @@ export class MemoryAccessControl {
|
|
|
68
71
|
return allMemories;
|
|
69
72
|
}
|
|
70
73
|
catch (error) {
|
|
71
|
-
logger.error('Failed to get accessible memories', { error, userId, appId });
|
|
74
|
+
logger_js_1.logger.error('Failed to get accessible memories', { error, userId, appId });
|
|
72
75
|
return [];
|
|
73
76
|
}
|
|
74
77
|
}
|
|
@@ -90,14 +93,14 @@ export class MemoryAccessControl {
|
|
|
90
93
|
};
|
|
91
94
|
this.accessLogs.push(logEntry);
|
|
92
95
|
// In production, this would be persisted to database
|
|
93
|
-
logger.debug('Memory access logged', logEntry);
|
|
96
|
+
logger_js_1.logger.debug('Memory access logged', logEntry);
|
|
94
97
|
// Keep only recent logs in memory (last 1000)
|
|
95
98
|
if (this.accessLogs.length > 1000) {
|
|
96
99
|
this.accessLogs = this.accessLogs.slice(-1000);
|
|
97
100
|
}
|
|
98
101
|
}
|
|
99
102
|
catch (error) {
|
|
100
|
-
logger.error('Failed to log memory access', { error, memoryId, appId, accessType });
|
|
103
|
+
logger_js_1.logger.error('Failed to log memory access', { error, memoryId, appId, accessType });
|
|
101
104
|
}
|
|
102
105
|
}
|
|
103
106
|
/**
|
|
@@ -118,7 +121,7 @@ export class MemoryAccessControl {
|
|
|
118
121
|
const existingRules = this.accessRules.get(key) || [];
|
|
119
122
|
existingRules.push(rule);
|
|
120
123
|
this.accessRules.set(key, existingRules);
|
|
121
|
-
logger.info('Access granted', { userId, appId, permission, memoryId });
|
|
124
|
+
logger_js_1.logger.info('Access granted', { userId, appId, permission, memoryId });
|
|
122
125
|
}
|
|
123
126
|
/**
|
|
124
127
|
* Revoke access to a memory or app
|
|
@@ -133,7 +136,7 @@ export class MemoryAccessControl {
|
|
|
133
136
|
return rule;
|
|
134
137
|
});
|
|
135
138
|
this.accessRules.set(key, updatedRules);
|
|
136
|
-
logger.info('Access revoked', { userId: _userId, appId: _appId, memoryId });
|
|
139
|
+
logger_js_1.logger.info('Access revoked', { userId: _userId, appId: _appId, memoryId });
|
|
137
140
|
}
|
|
138
141
|
/**
|
|
139
142
|
* Get access logs for audit purposes
|
|
@@ -193,7 +196,7 @@ export class MemoryAccessControl {
|
|
|
193
196
|
return response.data;
|
|
194
197
|
}
|
|
195
198
|
catch (error) {
|
|
196
|
-
logger.error('Failed to get memory info', { error, memoryId });
|
|
199
|
+
logger_js_1.logger.error('Failed to get memory info', { error, memoryId });
|
|
197
200
|
return null;
|
|
198
201
|
}
|
|
199
202
|
}
|
|
@@ -211,7 +214,7 @@ export class MemoryAccessControl {
|
|
|
211
214
|
return response.data.memories?.map((m) => m.id) || [];
|
|
212
215
|
}
|
|
213
216
|
catch (error) {
|
|
214
|
-
logger.error('Failed to get user memories', { error, userId });
|
|
217
|
+
logger_js_1.logger.error('Failed to get user memories', { error, userId });
|
|
215
218
|
return [];
|
|
216
219
|
}
|
|
217
220
|
}
|
|
@@ -224,3 +227,4 @@ export class MemoryAccessControl {
|
|
|
224
227
|
return `acl_${Date.now()}_${Math.random().toString(36).slice(2, 11)}`;
|
|
225
228
|
}
|
|
226
229
|
}
|
|
230
|
+
exports.MemoryAccessControl = MemoryAccessControl;
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* Enhanced MCP Client with advanced features
|
|
3
4
|
* Provides multi-server support, connection pooling, and better error handling
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.enhancedMCPClient = exports.EnhancedMCPClient = void 0;
|
|
11
|
+
const index_js_1 = require("@modelcontextprotocol/sdk/client/index.js");
|
|
12
|
+
const stdio_js_1 = require("@modelcontextprotocol/sdk/client/stdio.js");
|
|
13
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
14
|
+
const events_1 = require("events");
|
|
15
|
+
class EnhancedMCPClient extends events_1.EventEmitter {
|
|
10
16
|
clients = new Map();
|
|
11
17
|
transports = new Map();
|
|
12
18
|
connectionStatus = new Map();
|
|
@@ -22,13 +28,13 @@ export class EnhancedMCPClient extends EventEmitter {
|
|
|
22
28
|
*/
|
|
23
29
|
setupEventHandlers() {
|
|
24
30
|
this.on('connection:established', (server) => {
|
|
25
|
-
console.log(
|
|
31
|
+
console.log(chalk_1.default.green(`✅ Connected to ${server}`));
|
|
26
32
|
});
|
|
27
33
|
this.on('connection:lost', (server) => {
|
|
28
|
-
console.log(
|
|
34
|
+
console.log(chalk_1.default.yellow(`⚠️ Lost connection to ${server}`));
|
|
29
35
|
});
|
|
30
36
|
this.on('connection:error', (server, error) => {
|
|
31
|
-
console.log(
|
|
37
|
+
console.log(chalk_1.default.red(`❌ Connection error for ${server}: ${error.message}`));
|
|
32
38
|
});
|
|
33
39
|
}
|
|
34
40
|
/**
|
|
@@ -78,7 +84,7 @@ export class EnhancedMCPClient extends EventEmitter {
|
|
|
78
84
|
}
|
|
79
85
|
// Exponential backoff
|
|
80
86
|
const delay = Math.min(1000 * Math.pow(2, attempts), 10000);
|
|
81
|
-
console.log(
|
|
87
|
+
console.log(chalk_1.default.yellow(`⏳ Retrying connection to ${config.name} in ${delay}ms...`));
|
|
82
88
|
await this.delay(delay);
|
|
83
89
|
}
|
|
84
90
|
}
|
|
@@ -102,7 +108,7 @@ export class EnhancedMCPClient extends EventEmitter {
|
|
|
102
108
|
if (!config.command) {
|
|
103
109
|
throw new Error('Command required for stdio transport');
|
|
104
110
|
}
|
|
105
|
-
transport = new StdioClientTransport({
|
|
111
|
+
transport = new stdio_js_1.StdioClientTransport({
|
|
106
112
|
command: config.command,
|
|
107
113
|
args: config.args || []
|
|
108
114
|
});
|
|
@@ -124,7 +130,7 @@ export class EnhancedMCPClient extends EventEmitter {
|
|
|
124
130
|
throw new Error(`Unsupported transport type: ${config.type}`);
|
|
125
131
|
}
|
|
126
132
|
this.transports.set(config.name, transport);
|
|
127
|
-
const client = new Client({
|
|
133
|
+
const client = new index_js_1.Client({
|
|
128
134
|
name: `lanonasis-cli-${config.name}`,
|
|
129
135
|
version: '3.0.1'
|
|
130
136
|
}, {
|
|
@@ -208,7 +214,7 @@ export class EnhancedMCPClient extends EventEmitter {
|
|
|
208
214
|
// Try failover to another server
|
|
209
215
|
const failoverServer = await this.selectFailoverServer(server, toolName);
|
|
210
216
|
if (failoverServer) {
|
|
211
|
-
console.log(
|
|
217
|
+
console.log(chalk_1.default.yellow(`⚠️ Failing over to ${failoverServer}...`));
|
|
212
218
|
const failoverClient = this.clients.get(failoverServer);
|
|
213
219
|
if (failoverClient) {
|
|
214
220
|
return failoverClient.callTool({
|
|
@@ -296,7 +302,7 @@ export class EnhancedMCPClient extends EventEmitter {
|
|
|
296
302
|
// Attempt reconnection
|
|
297
303
|
const config = this.getServerConfig(serverName);
|
|
298
304
|
if (config) {
|
|
299
|
-
console.log(
|
|
305
|
+
console.log(chalk_1.default.yellow(`⚠️ Attempting to reconnect to ${serverName}...`));
|
|
300
306
|
await this.connectSingle(config);
|
|
301
307
|
}
|
|
302
308
|
}
|
|
@@ -339,10 +345,10 @@ export class EnhancedMCPClient extends EventEmitter {
|
|
|
339
345
|
for (const [name, client] of this.clients) {
|
|
340
346
|
try {
|
|
341
347
|
await client.close();
|
|
342
|
-
console.log(
|
|
348
|
+
console.log(chalk_1.default.gray(`Disconnected from ${name}`));
|
|
343
349
|
}
|
|
344
350
|
catch {
|
|
345
|
-
console.log(
|
|
351
|
+
console.log(chalk_1.default.yellow(`Warning: Error disconnecting from ${name}`));
|
|
346
352
|
}
|
|
347
353
|
}
|
|
348
354
|
this.clients.clear();
|
|
@@ -373,5 +379,6 @@ export class EnhancedMCPClient extends EventEmitter {
|
|
|
373
379
|
return new Promise(resolve => setTimeout(resolve, ms));
|
|
374
380
|
}
|
|
375
381
|
}
|
|
382
|
+
exports.EnhancedMCPClient = EnhancedMCPClient;
|
|
376
383
|
// Export singleton instance
|
|
377
|
-
|
|
384
|
+
exports.enhancedMCPClient = new EnhancedMCPClient();
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
2
3
|
/**
|
|
3
4
|
* Enhanced MCP Server - Simplified working version
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.EnhancedMCPServer = void 0;
|
|
8
|
+
const index_js_1 = require("@modelcontextprotocol/sdk/server/index.js");
|
|
9
|
+
const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
|
|
10
|
+
const config_js_1 = require("../utils/config.js");
|
|
11
|
+
const logger_js_1 = require("./logger.js");
|
|
12
|
+
class EnhancedMCPServer {
|
|
10
13
|
server;
|
|
11
14
|
config;
|
|
12
15
|
constructor() {
|
|
13
|
-
this.config = new CLIConfig();
|
|
14
|
-
this.server = new Server({
|
|
16
|
+
this.config = new config_js_1.CLIConfig();
|
|
17
|
+
this.server = new index_js_1.Server({
|
|
15
18
|
name: "lanonasis-maas-server",
|
|
16
19
|
version: "1.0.0"
|
|
17
20
|
}, {
|
|
@@ -25,16 +28,17 @@ export class EnhancedMCPServer {
|
|
|
25
28
|
async start() {
|
|
26
29
|
try {
|
|
27
30
|
await this.config.init();
|
|
28
|
-
const transport = new StdioServerTransport();
|
|
31
|
+
const transport = new stdio_js_1.StdioServerTransport();
|
|
29
32
|
await this.server.connect(transport);
|
|
30
|
-
logger.info('Enhanced MCP Server started successfully');
|
|
33
|
+
logger_js_1.logger.info('Enhanced MCP Server started successfully');
|
|
31
34
|
}
|
|
32
35
|
catch (error) {
|
|
33
|
-
logger.error('Failed to start Enhanced MCP Server', { error });
|
|
36
|
+
logger_js_1.logger.error('Failed to start Enhanced MCP Server', { error });
|
|
34
37
|
throw error;
|
|
35
38
|
}
|
|
36
39
|
}
|
|
37
40
|
}
|
|
41
|
+
exports.EnhancedMCPServer = EnhancedMCPServer;
|
|
38
42
|
// Main execution
|
|
39
43
|
async function main() {
|
|
40
44
|
const server = new EnhancedMCPServer();
|
package/dist/mcp/logger.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* Enhanced logging system for MCP server
|
|
3
4
|
* Provides structured logging with different levels and contexts
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.logger = exports.Logger = void 0;
|
|
8
|
+
class Logger {
|
|
6
9
|
defaultContext;
|
|
7
10
|
context = {};
|
|
8
11
|
constructor(defaultContext = {}) {
|
|
@@ -41,7 +44,8 @@ export class Logger {
|
|
|
41
44
|
return new Logger({ ...this.context, ...context });
|
|
42
45
|
}
|
|
43
46
|
}
|
|
44
|
-
|
|
47
|
+
exports.Logger = Logger;
|
|
48
|
+
exports.logger = new Logger({
|
|
45
49
|
service: 'lanonasis-mcp-server',
|
|
46
50
|
version: '1.0.0'
|
|
47
51
|
});
|
package/dist/mcp/memory-state.js
CHANGED
|
@@ -1,24 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/**
|
|
2
3
|
* Memory State Management System
|
|
3
4
|
* Implements comprehensive memory lifecycle management inspired by mem0's state system
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.MemoryStateManager = exports.MemoryState = void 0;
|
|
8
|
+
const config_js_1 = require("../utils/config.js");
|
|
9
|
+
const logger_js_1 = require("./logger.js");
|
|
10
|
+
var MemoryState;
|
|
8
11
|
(function (MemoryState) {
|
|
9
12
|
MemoryState["ACTIVE"] = "active";
|
|
10
13
|
MemoryState["PAUSED"] = "paused";
|
|
11
14
|
MemoryState["ARCHIVED"] = "archived";
|
|
12
15
|
MemoryState["DELETED"] = "deleted";
|
|
13
|
-
})(MemoryState || (MemoryState = {}));
|
|
14
|
-
|
|
16
|
+
})(MemoryState || (exports.MemoryState = MemoryState = {}));
|
|
17
|
+
class MemoryStateManager {
|
|
15
18
|
config;
|
|
16
19
|
stateTransitions = [];
|
|
17
20
|
constructor() {
|
|
18
|
-
this.config = new CLIConfig();
|
|
21
|
+
this.config = new config_js_1.CLIConfig();
|
|
19
22
|
}
|
|
20
23
|
async initialize() {
|
|
21
|
-
logger.info('Memory State Manager initialized');
|
|
24
|
+
logger_js_1.logger.info('Memory State Manager initialized');
|
|
22
25
|
}
|
|
23
26
|
/**
|
|
24
27
|
* Update memory state with validation and history tracking
|
|
@@ -59,7 +62,7 @@ export class MemoryStateManager {
|
|
|
59
62
|
});
|
|
60
63
|
// Record transition
|
|
61
64
|
this.stateTransitions.push(transition);
|
|
62
|
-
logger.info('Memory state updated', {
|
|
65
|
+
logger_js_1.logger.info('Memory state updated', {
|
|
63
66
|
memoryId,
|
|
64
67
|
fromState: currentState,
|
|
65
68
|
toState: newState,
|
|
@@ -68,7 +71,7 @@ export class MemoryStateManager {
|
|
|
68
71
|
return transition;
|
|
69
72
|
}
|
|
70
73
|
catch (error) {
|
|
71
|
-
logger.error('Failed to update memory state', { error, memoryId, newState });
|
|
74
|
+
logger_js_1.logger.error('Failed to update memory state', { error, memoryId, newState });
|
|
72
75
|
throw error;
|
|
73
76
|
}
|
|
74
77
|
}
|
|
@@ -121,7 +124,7 @@ export class MemoryStateManager {
|
|
|
121
124
|
});
|
|
122
125
|
}
|
|
123
126
|
}
|
|
124
|
-
logger.info('Bulk state update completed', {
|
|
127
|
+
logger_js_1.logger.info('Bulk state update completed', {
|
|
125
128
|
operation,
|
|
126
129
|
totalMemories: memoryIds.length,
|
|
127
130
|
successful: results.filter(r => r.success).length,
|
|
@@ -152,7 +155,7 @@ export class MemoryStateManager {
|
|
|
152
155
|
return memories.memories || [];
|
|
153
156
|
}
|
|
154
157
|
catch (error) {
|
|
155
|
-
logger.error('Failed to get memories by state', { error, state, userId, appId });
|
|
158
|
+
logger_js_1.logger.error('Failed to get memories by state', { error, state, userId, appId });
|
|
156
159
|
return [];
|
|
157
160
|
}
|
|
158
161
|
}
|
|
@@ -176,7 +179,7 @@ export class MemoryStateManager {
|
|
|
176
179
|
return await this.bulkUpdateState(memoryIds, 'archive');
|
|
177
180
|
}
|
|
178
181
|
catch (error) {
|
|
179
|
-
logger.error('Failed to archive old memories', { error, beforeDate, userId, appId });
|
|
182
|
+
logger_js_1.logger.error('Failed to archive old memories', { error, beforeDate, userId, appId });
|
|
180
183
|
return [];
|
|
181
184
|
}
|
|
182
185
|
}
|
|
@@ -260,7 +263,7 @@ export class MemoryStateManager {
|
|
|
260
263
|
return response;
|
|
261
264
|
}
|
|
262
265
|
catch (error) {
|
|
263
|
-
logger.error('Failed to get memory', { error, memoryId });
|
|
266
|
+
logger_js_1.logger.error('Failed to get memory', { error, memoryId });
|
|
264
267
|
return null;
|
|
265
268
|
}
|
|
266
269
|
}
|
|
@@ -299,3 +302,4 @@ export class MemoryStateManager {
|
|
|
299
302
|
return `transition_${Date.now()}_${Math.random().toString(36).substring(2, 11)}`;
|
|
300
303
|
}
|
|
301
304
|
}
|
|
305
|
+
exports.MemoryStateManager = MemoryStateManager;
|
|
@@ -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;
|
|
115
|
-
icon?: string;
|
|
116
114
|
name?: string;
|
|
115
|
+
description?: string;
|
|
117
116
|
color?: string;
|
|
117
|
+
icon?: string;
|
|
118
118
|
parent_id?: string;
|
|
119
119
|
}, {
|
|
120
|
-
description?: string;
|
|
121
|
-
icon?: string;
|
|
122
120
|
name?: string;
|
|
121
|
+
description?: string;
|
|
123
122
|
color?: string;
|
|
123
|
+
icon?: 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;
|
|
135
|
-
icon?: string;
|
|
136
134
|
name?: string;
|
|
137
|
-
color?: string;
|
|
138
135
|
topic_id?: string;
|
|
139
|
-
parent_id?: string;
|
|
140
|
-
}, {
|
|
141
136
|
description?: string;
|
|
137
|
+
color?: string;
|
|
142
138
|
icon?: string;
|
|
139
|
+
parent_id?: string;
|
|
140
|
+
}, {
|
|
143
141
|
name?: string;
|
|
144
|
-
color?: string;
|
|
145
142
|
topic_id?: string;
|
|
143
|
+
description?: string;
|
|
144
|
+
color?: string;
|
|
145
|
+
icon?: string;
|
|
146
146
|
parent_id?: string;
|
|
147
147
|
}>;
|
|
148
148
|
export declare const TopicListSchema: z.ZodObject<{
|
|
@@ -201,12 +201,12 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
201
201
|
scope: z.ZodDefault<z.ZodEnum<["user", "global"]>>;
|
|
202
202
|
}, "strip", z.ZodTypeAny, {
|
|
203
203
|
value?: any;
|
|
204
|
-
action?: "get" | "
|
|
204
|
+
action?: "get" | "reset" | "set";
|
|
205
205
|
scope?: "user" | "global";
|
|
206
206
|
key?: string;
|
|
207
207
|
}, {
|
|
208
208
|
value?: any;
|
|
209
|
-
action?: "get" | "
|
|
209
|
+
action?: "get" | "reset" | "set";
|
|
210
210
|
scope?: "user" | "global";
|
|
211
211
|
key?: string;
|
|
212
212
|
}>;
|
|
@@ -253,14 +253,14 @@ export declare const ToolExecutionSchema: z.ZodObject<{
|
|
|
253
253
|
max_retries: z.ZodDefault<z.ZodNumber>;
|
|
254
254
|
}, "strip", z.ZodTypeAny, {
|
|
255
255
|
timeout?: number;
|
|
256
|
-
arguments?: Record<string, any>;
|
|
257
256
|
tool_name?: string;
|
|
257
|
+
arguments?: Record<string, any>;
|
|
258
258
|
retry_on_failure?: boolean;
|
|
259
259
|
max_retries?: number;
|
|
260
260
|
}, {
|
|
261
261
|
timeout?: number;
|
|
262
|
-
arguments?: Record<string, any>;
|
|
263
262
|
tool_name?: string;
|
|
263
|
+
arguments?: Record<string, any>;
|
|
264
264
|
retry_on_failure?: boolean;
|
|
265
265
|
max_retries?: number;
|
|
266
266
|
}>;
|
|
@@ -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;
|
|
489
|
-
icon?: string;
|
|
490
488
|
name?: string;
|
|
489
|
+
description?: string;
|
|
491
490
|
color?: string;
|
|
491
|
+
icon?: string;
|
|
492
492
|
parent_id?: string;
|
|
493
493
|
}, {
|
|
494
|
-
description?: string;
|
|
495
|
-
icon?: string;
|
|
496
494
|
name?: string;
|
|
495
|
+
description?: string;
|
|
497
496
|
color?: string;
|
|
497
|
+
icon?: 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;
|
|
509
|
-
icon?: string;
|
|
510
508
|
name?: string;
|
|
511
|
-
color?: string;
|
|
512
509
|
topic_id?: string;
|
|
513
|
-
parent_id?: string;
|
|
514
|
-
}, {
|
|
515
510
|
description?: string;
|
|
511
|
+
color?: string;
|
|
516
512
|
icon?: string;
|
|
513
|
+
parent_id?: string;
|
|
514
|
+
}, {
|
|
517
515
|
name?: string;
|
|
518
|
-
color?: string;
|
|
519
516
|
topic_id?: string;
|
|
517
|
+
description?: string;
|
|
518
|
+
color?: string;
|
|
519
|
+
icon?: string;
|
|
520
520
|
parent_id?: string;
|
|
521
521
|
}>;
|
|
522
522
|
list: z.ZodObject<{
|
|
@@ -579,12 +579,12 @@ export declare const MCPSchemas: {
|
|
|
579
579
|
scope: z.ZodDefault<z.ZodEnum<["user", "global"]>>;
|
|
580
580
|
}, "strip", z.ZodTypeAny, {
|
|
581
581
|
value?: any;
|
|
582
|
-
action?: "get" | "
|
|
582
|
+
action?: "get" | "reset" | "set";
|
|
583
583
|
scope?: "user" | "global";
|
|
584
584
|
key?: string;
|
|
585
585
|
}, {
|
|
586
586
|
value?: any;
|
|
587
|
-
action?: "get" | "
|
|
587
|
+
action?: "get" | "reset" | "set";
|
|
588
588
|
scope?: "user" | "global";
|
|
589
589
|
key?: string;
|
|
590
590
|
}>;
|
|
@@ -633,14 +633,14 @@ export declare const MCPSchemas: {
|
|
|
633
633
|
max_retries: z.ZodDefault<z.ZodNumber>;
|
|
634
634
|
}, "strip", z.ZodTypeAny, {
|
|
635
635
|
timeout?: number;
|
|
636
|
-
arguments?: Record<string, any>;
|
|
637
636
|
tool_name?: string;
|
|
637
|
+
arguments?: Record<string, any>;
|
|
638
638
|
retry_on_failure?: boolean;
|
|
639
639
|
max_retries?: number;
|
|
640
640
|
}, {
|
|
641
641
|
timeout?: number;
|
|
642
|
-
arguments?: Record<string, any>;
|
|
643
642
|
tool_name?: string;
|
|
643
|
+
arguments?: Record<string, any>;
|
|
644
644
|
retry_on_failure?: boolean;
|
|
645
645
|
max_retries?: number;
|
|
646
646
|
}>;
|