morpheus-cli 0.7.6 → 0.8.0
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 +58 -5
- package/dist/cli/commands/smiths.js +110 -0
- package/dist/cli/commands/start.js +20 -0
- package/dist/cli/index.js +2 -0
- package/dist/config/manager.js +22 -0
- package/dist/config/schemas.js +16 -0
- package/dist/http/api.js +3 -0
- package/dist/http/routers/smiths.js +188 -0
- package/dist/runtime/display.js +3 -0
- package/dist/runtime/oracle.js +16 -3
- package/dist/runtime/smiths/connection.js +295 -0
- package/dist/runtime/smiths/delegator.js +214 -0
- package/dist/runtime/smiths/index.js +4 -0
- package/dist/runtime/smiths/registry.js +265 -0
- package/dist/runtime/smiths/types.js +6 -0
- package/dist/runtime/tasks/worker.js +18 -0
- package/dist/runtime/tools/apoc-tool.js +19 -8
- package/dist/runtime/tools/index.js +1 -0
- package/dist/runtime/tools/morpheus-tools.js +122 -0
- package/dist/runtime/tools/neo-tool.js +24 -13
- package/dist/runtime/tools/smith-tool.js +147 -0
- package/dist/runtime/tools/trinity-tool.js +19 -8
- package/dist/types/config.js +8 -0
- package/dist/ui/assets/index-Clx8mDZ2.js +117 -0
- package/dist/ui/assets/index-KRT9p6jS.css +1 -0
- package/dist/ui/index.html +2 -2
- package/dist/ui/sw.js +1 -1
- package/package.json +3 -1
- package/dist/ui/assets/index-B6deYCij.css +0 -1
- package/dist/ui/assets/index-BTQ0jjvm.js +0 -117
|
@@ -63,14 +63,25 @@ export const TrinityDelegateTool = tool(async ({ task, context }) => {
|
|
|
63
63
|
ChannelRegistry.sendToUser(ctx.origin_channel, ctx.origin_user_id, '👩💻 Trinity is executing your request...')
|
|
64
64
|
.catch(() => { });
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
try {
|
|
67
|
+
const trinity = Trinity.getInstance();
|
|
68
|
+
const result = await trinity.execute(task, context, sessionId);
|
|
69
|
+
TaskRequestContext.incrementSyncDelegation();
|
|
70
|
+
display.log(`Trinity sync execution completed.`, {
|
|
71
|
+
source: 'TrinityDelegateTool',
|
|
72
|
+
level: 'info',
|
|
73
|
+
});
|
|
74
|
+
return result;
|
|
75
|
+
}
|
|
76
|
+
catch (syncErr) {
|
|
77
|
+
// Still count as sync delegation so Oracle passes through the error message
|
|
78
|
+
TaskRequestContext.incrementSyncDelegation();
|
|
79
|
+
display.log(`Trinity sync execution failed: ${syncErr.message}`, {
|
|
80
|
+
source: 'TrinityDelegateTool',
|
|
81
|
+
level: 'error',
|
|
82
|
+
});
|
|
83
|
+
return `❌ Trinity error: ${syncErr.message}`;
|
|
84
|
+
}
|
|
74
85
|
}
|
|
75
86
|
// ── Async mode (default): create background task ──
|
|
76
87
|
const existingAck = TaskRequestContext.findDuplicateDelegation('trinit', task);
|
package/dist/types/config.js
CHANGED
|
@@ -77,5 +77,13 @@ export const DEFAULT_CONFIG = {
|
|
|
77
77
|
personality: 'data_specialist',
|
|
78
78
|
execution_mode: 'async',
|
|
79
79
|
},
|
|
80
|
+
smiths: {
|
|
81
|
+
enabled: false,
|
|
82
|
+
execution_mode: 'async',
|
|
83
|
+
heartbeat_interval_ms: 30000,
|
|
84
|
+
connection_timeout_ms: 10000,
|
|
85
|
+
task_timeout_ms: 60000,
|
|
86
|
+
entries: [],
|
|
87
|
+
},
|
|
80
88
|
verbose_mode: true,
|
|
81
89
|
};
|