@adhdev/daemon-standalone 0.9.82-rc.219 → 0.9.82-rc.221
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/dist/index.js +838 -2639
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/public/assets/index-DJSLOQGR.js +113 -0
- package/public/assets/index-Xbq7Kygc.css +1 -0
- package/public/index.html +2 -2
- package/vendor/mcp-server/index.js +8 -4
- package/vendor/mcp-server/index.js.map +1 -1
- package/public/assets/index-C2R_GQaT.js +0 -113
- package/public/assets/index-ZpWHELn1.css +0 -1
package/public/index.html
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
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-DJSLOQGR.js"></script>
|
|
11
11
|
<link rel="modulepreload" crossorigin href="/assets/vendor-BwuWgaJI.js">
|
|
12
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
12
|
+
<link rel="stylesheet" crossorigin href="/assets/index-Xbq7Kygc.css">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
|
15
15
|
<!-- Apply theme immediately to prevent FOIT (Flash of Incorrect Theme) -->
|
|
@@ -273,7 +273,11 @@ function summarizeToolMessage(message) {
|
|
|
273
273
|
return null;
|
|
274
274
|
}
|
|
275
275
|
function buildCompactMessageTail(visibleMessages, opts) {
|
|
276
|
-
|
|
276
|
+
const tail = visibleMessages.slice(-opts.limit);
|
|
277
|
+
if (opts.finalAssistant && !tail.includes(opts.finalAssistant)) {
|
|
278
|
+
return [opts.finalAssistant, ...tail];
|
|
279
|
+
}
|
|
280
|
+
return tail;
|
|
277
281
|
}
|
|
278
282
|
function compactChatPayload(payload, opts = {}) {
|
|
279
283
|
const rawMessages = Array.isArray(payload?.messages) ? payload.messages : [];
|
|
@@ -3281,7 +3285,7 @@ async function meshReadChat(ctx, args) {
|
|
|
3281
3285
|
workspace: node.workspace,
|
|
3282
3286
|
...cached?.providerType ? { agentType: cached.providerType, providerType: cached.providerType } : {},
|
|
3283
3287
|
...providerSessionId ? { providerSessionId } : {},
|
|
3284
|
-
tailLimit: args.tail ??
|
|
3288
|
+
tailLimit: args.tail ?? 10
|
|
3285
3289
|
});
|
|
3286
3290
|
const payload = annotateRapidReadChatAdvisory(unwrapCommandPayload(result), {
|
|
3287
3291
|
key: `mesh:${args.node_id}:${args.session_id}`,
|
|
@@ -3293,7 +3297,7 @@ async function meshReadChat(ctx, args) {
|
|
|
3293
3297
|
const compactPayload = compactChatPayload(payload, {
|
|
3294
3298
|
nodeId: args.node_id,
|
|
3295
3299
|
sessionId: args.session_id,
|
|
3296
|
-
limit: args.tail ??
|
|
3300
|
+
limit: args.tail ?? 10
|
|
3297
3301
|
});
|
|
3298
3302
|
return JSON.stringify(
|
|
3299
3303
|
payload.pollingAdvisory ? { ...compactPayload, pollingAdvisory: payload.pollingAdvisory } : compactPayload,
|
|
@@ -3306,7 +3310,7 @@ async function meshReadChat(ctx, args) {
|
|
|
3306
3310
|
try {
|
|
3307
3311
|
const targetId = `${node.daemonId}:session:${args.session_id}`;
|
|
3308
3312
|
const res = await ctx.transport.readChat(targetId, {
|
|
3309
|
-
limit: args.tail ??
|
|
3313
|
+
limit: args.tail ?? 10,
|
|
3310
3314
|
sessionId: args.session_id
|
|
3311
3315
|
});
|
|
3312
3316
|
return JSON.stringify(res, null, 2);
|