@coffer-org/server 7.4.0 → 7.6.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/dist/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import Fastify from 'fastify';
|
|
|
8
8
|
import cors from '@fastify/cors';
|
|
9
9
|
import multipart from '@fastify/multipart';
|
|
10
10
|
import fastifyStatic from '@fastify/static';
|
|
11
|
+
import { layoutToClient } from '@coffer-org/sdk/shelf';
|
|
11
12
|
import { shelfTableName } from "./entity-schema.js";
|
|
12
13
|
import { getEm, closeDb } from "./db.js";
|
|
13
14
|
import { recordCounts } from "./counts.js";
|
|
@@ -306,7 +307,7 @@ app.post('/api/system/orchestrator-diagnostics', async (req, reply) => {
|
|
|
306
307
|
return;
|
|
307
308
|
reply.send(await orchestratorDiagnostics());
|
|
308
309
|
});
|
|
309
|
-
app.get('/api/settings', async () => (await settingsGroups()).map((g) => ({ id: g.id, label: g.label, fields: g.fields })));
|
|
310
|
+
app.get('/api/settings', async () => (await settingsGroups()).map((g) => ({ id: g.id, label: g.label, fields: layoutToClient(g.fields) })));
|
|
310
311
|
app.get('/api/settings/:id', async (req, reply) => {
|
|
311
312
|
if (!requireAdmin(req, reply))
|
|
312
313
|
return;
|
|
@@ -266,7 +266,7 @@ export async function handleIncoming(connector, turn, deps) {
|
|
|
266
266
|
try {
|
|
267
267
|
const attachmentTools = await makeAttachmentCapabilities(agentMessages.flatMap((m) => m.attachments ?? []), agentMedia());
|
|
268
268
|
const toolProvider = {
|
|
269
|
-
tools: [...attachmentTools.tools, ...makeSystemCapabilities().tools],
|
|
269
|
+
tools: [...attachmentTools.tools, ...makeSystemCapabilities().tools, ...(turn.toolProvider?.tools ?? [])],
|
|
270
270
|
};
|
|
271
271
|
const userMessageCount = await countUserMessages(conversationId);
|
|
272
272
|
agentTurn = {
|
|
@@ -65,8 +65,6 @@ export interface AgentPreset {
|
|
|
65
65
|
id: string;
|
|
66
66
|
title: string;
|
|
67
67
|
hint?: string;
|
|
68
|
-
quality?: number;
|
|
69
|
-
time?: number;
|
|
70
68
|
default?: boolean;
|
|
71
69
|
capabilities?: AgentCapabilities;
|
|
72
70
|
}
|
|
@@ -148,6 +146,7 @@ export interface TurnRequest {
|
|
|
148
146
|
capabilities?: ConnectorCapabilities;
|
|
149
147
|
systemPrompt?: SystemAreas;
|
|
150
148
|
turnContext?: ContextFact[];
|
|
149
|
+
toolProvider?: AgentToolProvider;
|
|
151
150
|
agentId?: string;
|
|
152
151
|
presetId?: string;
|
|
153
152
|
signal?: AbortSignal;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coffer-org/server",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.6.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"postpack": "node ../../scripts/swap-exports.mjs src"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@coffer-org/sdk": "^7.4.
|
|
43
|
+
"@coffer-org/sdk": "^7.4.1",
|
|
44
44
|
"@extractus/oembed-extractor": "^4.1.0",
|
|
45
45
|
"@fastify/cors": "^11.2.0",
|
|
46
46
|
"@fastify/multipart": "^10.0.0",
|