morpheus-cli 0.5.0 → 0.5.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/README.md +26 -7
- package/dist/channels/telegram.js +173 -0
- package/dist/cli/commands/restart.js +15 -14
- package/dist/cli/commands/start.js +17 -12
- package/dist/config/manager.js +31 -0
- package/dist/config/mcp-manager.js +19 -1
- package/dist/config/schemas.js +2 -0
- package/dist/http/api.js +222 -0
- package/dist/runtime/memory/session-embedding-worker.js +3 -3
- package/dist/runtime/memory/trinity-db.js +203 -0
- package/dist/runtime/neo.js +16 -26
- package/dist/runtime/oracle.js +16 -8
- package/dist/runtime/session-embedding-scheduler.js +1 -1
- package/dist/runtime/tasks/dispatcher.js +21 -0
- package/dist/runtime/tasks/repository.js +4 -0
- package/dist/runtime/tasks/worker.js +4 -1
- package/dist/runtime/tools/__tests__/tools.test.js +1 -3
- package/dist/runtime/tools/factory.js +1 -1
- package/dist/runtime/tools/index.js +1 -3
- package/dist/runtime/tools/morpheus-tools.js +742 -0
- package/dist/runtime/tools/neo-tool.js +19 -9
- package/dist/runtime/tools/trinity-tool.js +98 -0
- package/dist/runtime/trinity-connector.js +611 -0
- package/dist/runtime/trinity-crypto.js +52 -0
- package/dist/runtime/trinity.js +246 -0
- package/dist/runtime/webhooks/dispatcher.js +73 -2
- package/dist/runtime/webhooks/repository.js +7 -0
- package/dist/ui/assets/index-DP2V4kRd.js +112 -0
- package/dist/ui/assets/index-mglRG5Zw.css +1 -0
- package/dist/ui/index.html +2 -2
- package/dist/ui/sw.js +1 -1
- package/package.json +6 -1
- package/dist/runtime/tools/analytics-tools.js +0 -139
- package/dist/runtime/tools/config-tools.js +0 -64
- package/dist/runtime/tools/diagnostic-tools.js +0 -153
- package/dist/runtime/tools/task-query-tool.js +0 -76
- package/dist/ui/assets/index-20lLB1sM.js +0 -112
- package/dist/ui/assets/index-BJ56bRfs.css +0 -1
|
@@ -2,6 +2,7 @@ import { randomUUID } from 'crypto';
|
|
|
2
2
|
import { DisplayManager } from '../display.js';
|
|
3
3
|
import { Apoc } from '../apoc.js';
|
|
4
4
|
import { Neo } from '../neo.js';
|
|
5
|
+
import { Trinity } from '../trinity.js';
|
|
5
6
|
import { TaskRepository } from './repository.js';
|
|
6
7
|
export class TaskWorker {
|
|
7
8
|
workerId;
|
|
@@ -69,7 +70,9 @@ export class TaskWorker {
|
|
|
69
70
|
break;
|
|
70
71
|
}
|
|
71
72
|
case 'trinit': {
|
|
72
|
-
|
|
73
|
+
const trinity = Trinity.getInstance();
|
|
74
|
+
output = await trinity.execute(task.input, task.context ?? undefined, task.session_id);
|
|
75
|
+
break;
|
|
73
76
|
}
|
|
74
77
|
default: {
|
|
75
78
|
throw new Error(`Unknown task agent: ${task.agent}`);
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { describe, it, expect, vi } from 'vitest';
|
|
2
|
-
import { ConfigQueryTool, ConfigUpdateTool } from '../
|
|
3
|
-
import { DiagnosticTool } from '../diagnostic-tools.js';
|
|
4
|
-
import { MessageCountTool, TokenUsageTool } from '../analytics-tools.js';
|
|
2
|
+
import { ConfigQueryTool, ConfigUpdateTool, DiagnosticTool, MessageCountTool, TokenUsageTool } from '../morpheus-tools.js';
|
|
5
3
|
import { ConfigManager } from '../../../config/manager.js';
|
|
6
4
|
// Mock the ConfigManager for testing
|
|
7
5
|
vi.mock('../../config/manager.js', () => ({
|
|
@@ -85,7 +85,7 @@ export class Construtor {
|
|
|
85
85
|
const newName = `${serverName}_${originalName}`;
|
|
86
86
|
Object.defineProperty(tool, "name", { value: newName });
|
|
87
87
|
const shortDesc = tool.description && typeof tool.description === 'string' ? tool.description.slice(0, 100) + '...' : '';
|
|
88
|
-
display.log(
|
|
88
|
+
display.log(`Loaded MCP tool: ${tool.name} (from ${serverName})`, { level: 'info', source: 'Construtor' });
|
|
89
89
|
});
|
|
90
90
|
// Sanitize tool schemas to remove fields not supported by Gemini
|
|
91
91
|
const sanitizedTools = tools.map(tool => wrapToolWithSanitizedSchema(tool));
|