@adhdev/daemon-standalone 0.9.82-rc.180 → 0.9.82-rc.182
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/public/index.html
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<meta name="description" content="ADHDev self-hosted dashboard for controlling AI agents" />
|
|
8
8
|
<link rel="icon" href="/otter-logo.png" />
|
|
9
9
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet" />
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-B9KHrSa-.js"></script>
|
|
11
11
|
<link rel="modulepreload" crossorigin href="/assets/vendor-DNk1FT1R.js">
|
|
12
12
|
<link rel="stylesheet" crossorigin href="/assets/index-BSeeeP5M.css">
|
|
13
13
|
</head>
|
|
@@ -1092,7 +1092,8 @@ async function ipcDispatchToRemoteAgent(ctx, node, args) {
|
|
|
1092
1092
|
agentType: resolvedProviderType,
|
|
1093
1093
|
cliType: resolvedProviderType,
|
|
1094
1094
|
action: "send_chat",
|
|
1095
|
-
message: args.message
|
|
1095
|
+
message: args.message,
|
|
1096
|
+
...args.meshContext ? { meshContext: args.meshContext } : {}
|
|
1096
1097
|
});
|
|
1097
1098
|
const dispatchPayload = unwrapCommandPayload(dispatchResult);
|
|
1098
1099
|
if (dispatchPayload?.success === false || dispatchResult?.success === false) {
|
|
@@ -2643,7 +2644,12 @@ async function meshSendTask(ctx, args) {
|
|
|
2643
2644
|
session_id: args.session_id,
|
|
2644
2645
|
message: args.message,
|
|
2645
2646
|
providerType: cached?.providerType,
|
|
2646
|
-
verifiedSession: explicitTargetSession
|
|
2647
|
+
verifiedSession: explicitTargetSession,
|
|
2648
|
+
meshContext: {
|
|
2649
|
+
meshId: ctx.mesh.id,
|
|
2650
|
+
nodeId: args.node_id,
|
|
2651
|
+
taskId
|
|
2652
|
+
}
|
|
2647
2653
|
});
|
|
2648
2654
|
if (result2.success) {
|
|
2649
2655
|
const dispatchedSessionId = args.session_id || result2.sessionId;
|
|
@@ -2761,13 +2767,20 @@ async function meshSendTask(ctx, args) {
|
|
|
2761
2767
|
});
|
|
2762
2768
|
}
|
|
2763
2769
|
const sessionWasIdle = explicitTargetSession ? isIdleSessionRecord(explicitTargetSession) : false;
|
|
2770
|
+
const taskId = (0, import_node_crypto.randomUUID)();
|
|
2771
|
+
const dispatchedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
2764
2772
|
const dispatchResult = await commandForNode(ctx, node, "agent_command", {
|
|
2765
2773
|
targetSessionId: args.session_id,
|
|
2766
2774
|
agentType: resolvedProviderType,
|
|
2767
2775
|
cliType: resolvedProviderType,
|
|
2768
2776
|
providerType: resolvedProviderType,
|
|
2769
2777
|
action: "send_chat",
|
|
2770
|
-
message: args.message
|
|
2778
|
+
message: args.message,
|
|
2779
|
+
meshContext: {
|
|
2780
|
+
meshId: ctx.mesh.id,
|
|
2781
|
+
nodeId: args.node_id,
|
|
2782
|
+
taskId
|
|
2783
|
+
}
|
|
2771
2784
|
});
|
|
2772
2785
|
const dispatchPayload = unwrapCommandPayload(dispatchResult);
|
|
2773
2786
|
if (dispatchPayload?.success === false || dispatchResult?.success === false) {
|
|
@@ -2780,8 +2793,6 @@ async function meshSendTask(ctx, args) {
|
|
|
2780
2793
|
error: dispatchPayload?.error || dispatchResult?.error || "agent_command rejected the task"
|
|
2781
2794
|
});
|
|
2782
2795
|
}
|
|
2783
|
-
const taskId = (0, import_node_crypto.randomUUID)();
|
|
2784
|
-
const dispatchedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
2785
2796
|
try {
|
|
2786
2797
|
(0, import_daemon_core.appendLedgerEntry)(ctx.mesh.id, {
|
|
2787
2798
|
kind: "task_dispatched",
|