@adhdev/daemon-standalone 1.0.58-rc.2 → 1.0.58-rc.4
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-Dz_5pCJf.js"></script>
|
|
11
11
|
<link rel="modulepreload" crossorigin href="/assets/vendor-DgFmqOGd.js">
|
|
12
12
|
<link rel="stylesheet" crossorigin href="/assets/index-B8cd_ktl.css">
|
|
13
13
|
</head>
|
|
@@ -2854,6 +2854,13 @@ function findNode(mesh, nodeId) {
|
|
|
2854
2854
|
return node;
|
|
2855
2855
|
}
|
|
2856
2856
|
var DUPLICATE_DISPATCH_WINDOW_MS = 6e4;
|
|
2857
|
+
function hasDefinitivelyRemoteIdentity(ctx, node) {
|
|
2858
|
+
const nodeDaemonId = readNodeDaemonId(node);
|
|
2859
|
+
const nodeMachineId = readNodeMachineId(node);
|
|
2860
|
+
return Boolean(
|
|
2861
|
+
nodeDaemonId && ctx.localDaemonId && !(0, import_daemon_core5.daemonIdsEquivalent)(nodeDaemonId, ctx.localDaemonId) || nodeMachineId && ctx.localMachineId && !(0, import_daemon_core5.daemonIdsEquivalent)(nodeMachineId, ctx.localMachineId)
|
|
2862
|
+
);
|
|
2863
|
+
}
|
|
2857
2864
|
async function refreshMeshFromDaemon(ctx) {
|
|
2858
2865
|
const settledNodeIds = /* @__PURE__ */ new Set();
|
|
2859
2866
|
try {
|
|
@@ -2865,6 +2872,10 @@ async function refreshMeshFromDaemon(ctx) {
|
|
|
2865
2872
|
const existingId = existing?.id;
|
|
2866
2873
|
if (!existingId) continue;
|
|
2867
2874
|
if (merged.some((n) => (0, import_daemon_core5.meshNodeIdMatches)(n, existingId))) continue;
|
|
2875
|
+
if (hasDefinitivelyRemoteIdentity(ctx, existing)) {
|
|
2876
|
+
merged.push(existing);
|
|
2877
|
+
continue;
|
|
2878
|
+
}
|
|
2868
2879
|
if (isLocalControlPlaneNode(ctx, existing)) {
|
|
2869
2880
|
settledNodeIds.add(existingId);
|
|
2870
2881
|
continue;
|
|
@@ -5455,6 +5466,7 @@ function eagerPushTaskToRemoteNodes(ctx, task, message, targetNodeId, requiredTa
|
|
|
5455
5466
|
return dispatchPromises;
|
|
5456
5467
|
}
|
|
5457
5468
|
async function meshEnqueueTask(ctx, args) {
|
|
5469
|
+
await refreshMeshFromDaemon(ctx);
|
|
5458
5470
|
const normalized = normalizeEnqueueTaskArgs(ctx, args, "mesh_enqueue_task");
|
|
5459
5471
|
if (!normalized.ok) {
|
|
5460
5472
|
return JSON.stringify({ success: false, code: normalized.code, error: normalized.error, ...normalized.extra ?? {} });
|
|
@@ -5650,6 +5662,7 @@ async function meshEnqueueBatch(ctx, args) {
|
|
|
5650
5662
|
}
|
|
5651
5663
|
const allowDuplicate = args.allowDuplicate === true || args.allow_duplicate === true;
|
|
5652
5664
|
const blockDuplicate = args.blockDuplicate === true || args.block_duplicate === true;
|
|
5665
|
+
await refreshMeshFromDaemon(ctx);
|
|
5653
5666
|
const specs = [];
|
|
5654
5667
|
const rawGraphEntries = [];
|
|
5655
5668
|
const normalizedEntries = [];
|