@cogitator-ai/fastify 0.7.16 → 0.7.17
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 +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -69,7 +69,7 @@ The routes use `cogitator.getMemory()`, which connects the configured memory ada
|
|
|
69
69
|
|
|
70
70
|
Request bodies go through the validators of `@cogitator-ai/server-shared` in a `preValidation` hook, before the JSON schema could coerce `input: 42` into `"42"`, so Fastify refuses exactly what the other adapters refuse, and the schemas document the bodies.
|
|
71
71
|
|
|
72
|
-
- A run
|
|
72
|
+
- A run sends `context` to the model as data the application supplied, and the model reads a `system` thread message as operator instructions, so clients may set neither unless the server allows it: `acceptContext` lists the `context` keys clients may send (`true` accepts any key, for clients trusted like your own code), and `threadMessageRoles` the roles of `POST /threads/:id/messages` (`user` and `assistant` by default). Anything else is refused with `400 INVALID_INPUT`, over HTTP and WebSocket alike.
|
|
73
73
|
- A `POST` body that is not JSON (`text/plain`, a form) is refused with `415 UNSUPPORTED_MEDIA_TYPE` before it is parsed: browsers send those across origins without a CORS preflight.
|
|
74
74
|
- `POST /agents/:name/run` and `/resume` answer `toAgentRunResponse()` of `@cogitator-ai/server-shared`: `output`, `threadId`, `usage`, `toolCalls` (`{ id, name, arguments }`), `status` and `traceId`, plus `reasoning`, `pendingApprovals`, `structured`, `structuredError`, `truncated`, `blocked` and `iterationLimitReached` when they apply. The WebSocket `complete` event carries the same object, never the system prompt, the history, trace spans or a paused run's checkpoint.
|
|
75
75
|
- The `start` event of an agent stream names the run's thread (the request's `threadId`, or a new one), and `finish` repeats it with the run's outcome, so a client that sent no thread continues the conversation with this one.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cogitator-ai/fastify",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.17",
|
|
4
4
|
"description": "Fastify server adapter for Cogitator AI runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -20,25 +20,25 @@
|
|
|
20
20
|
"node": ">=22.12.0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@cogitator-ai/core": "0.
|
|
24
|
-
"@cogitator-ai/types": "0.
|
|
25
|
-
"@cogitator-ai/server-shared": "0.5.
|
|
23
|
+
"@cogitator-ai/core": "0.50.0",
|
|
24
|
+
"@cogitator-ai/types": "0.52.0",
|
|
25
|
+
"@cogitator-ai/server-shared": "0.5.17",
|
|
26
26
|
"fastify-plugin": "^6.0.0"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"fastify": ">=5.0.0"
|
|
30
30
|
},
|
|
31
31
|
"optionalDependencies": {
|
|
32
|
-
"@cogitator-ai/workflows": "0.13.
|
|
33
|
-
"@cogitator-ai/swarms": "0.13.
|
|
32
|
+
"@cogitator-ai/workflows": "0.13.4",
|
|
33
|
+
"@cogitator-ai/swarms": "0.13.4",
|
|
34
34
|
"@fastify/swagger": "^9.9.1",
|
|
35
35
|
"@fastify/swagger-ui": "^5.0.0 || ^6.0.0",
|
|
36
36
|
"@fastify/rate-limit": "^10.0.0 || ^11.0.0",
|
|
37
37
|
"@fastify/websocket": "^11.3.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@cogitator-ai/workflows": "0.13.
|
|
41
|
-
"@cogitator-ai/swarms": "0.13.
|
|
40
|
+
"@cogitator-ai/workflows": "0.13.4",
|
|
41
|
+
"@cogitator-ai/swarms": "0.13.4",
|
|
42
42
|
"@fastify/swagger": "^9.9.1",
|
|
43
43
|
"@fastify/swagger-ui": "^6.1.1",
|
|
44
44
|
"@fastify/rate-limit": "^11.2.0",
|