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.
Files changed (38) hide show
  1. package/README.md +26 -7
  2. package/dist/channels/telegram.js +173 -0
  3. package/dist/cli/commands/restart.js +15 -14
  4. package/dist/cli/commands/start.js +17 -12
  5. package/dist/config/manager.js +31 -0
  6. package/dist/config/mcp-manager.js +19 -1
  7. package/dist/config/schemas.js +2 -0
  8. package/dist/http/api.js +222 -0
  9. package/dist/runtime/memory/session-embedding-worker.js +3 -3
  10. package/dist/runtime/memory/trinity-db.js +203 -0
  11. package/dist/runtime/neo.js +16 -26
  12. package/dist/runtime/oracle.js +16 -8
  13. package/dist/runtime/session-embedding-scheduler.js +1 -1
  14. package/dist/runtime/tasks/dispatcher.js +21 -0
  15. package/dist/runtime/tasks/repository.js +4 -0
  16. package/dist/runtime/tasks/worker.js +4 -1
  17. package/dist/runtime/tools/__tests__/tools.test.js +1 -3
  18. package/dist/runtime/tools/factory.js +1 -1
  19. package/dist/runtime/tools/index.js +1 -3
  20. package/dist/runtime/tools/morpheus-tools.js +742 -0
  21. package/dist/runtime/tools/neo-tool.js +19 -9
  22. package/dist/runtime/tools/trinity-tool.js +98 -0
  23. package/dist/runtime/trinity-connector.js +611 -0
  24. package/dist/runtime/trinity-crypto.js +52 -0
  25. package/dist/runtime/trinity.js +246 -0
  26. package/dist/runtime/webhooks/dispatcher.js +73 -2
  27. package/dist/runtime/webhooks/repository.js +7 -0
  28. package/dist/ui/assets/index-DP2V4kRd.js +112 -0
  29. package/dist/ui/assets/index-mglRG5Zw.css +1 -0
  30. package/dist/ui/index.html +2 -2
  31. package/dist/ui/sw.js +1 -1
  32. package/package.json +6 -1
  33. package/dist/runtime/tools/analytics-tools.js +0 -139
  34. package/dist/runtime/tools/config-tools.js +0 -64
  35. package/dist/runtime/tools/diagnostic-tools.js +0 -153
  36. package/dist/runtime/tools/task-query-tool.js +0 -76
  37. package/dist/ui/assets/index-20lLB1sM.js +0 -112
  38. 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
- throw new Error('Trinit executor is not implemented yet.');
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 '../config-tools.js';
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(`\nLoaded MCP tool: ${tool.name} (from ${serverName})\n ${shortDesc}`, { level: 'info', source: 'Construtor' });
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));
@@ -1,6 +1,4 @@
1
1
  // Export all tools from the tools module
2
- export * from './config-tools.js';
3
- export * from './diagnostic-tools.js';
4
- export * from './analytics-tools.js';
2
+ export * from './morpheus-tools.js';
5
3
  export * from './apoc-tool.js';
6
4
  export * from './neo-tool.js';