@cogitator-ai/koa 0.2.1 → 0.3.1
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 -3
- package/package.json +22 -20
package/README.md
CHANGED
|
@@ -15,9 +15,7 @@ import Koa from 'koa';
|
|
|
15
15
|
import { Cogitator, Agent } from '@cogitator-ai/core';
|
|
16
16
|
import { cogitatorApp } from '@cogitator-ai/koa';
|
|
17
17
|
|
|
18
|
-
const cogitator = new Cogitator({
|
|
19
|
-
/* ... */
|
|
20
|
-
});
|
|
18
|
+
const cogitator = new Cogitator({/* ... */});
|
|
21
19
|
const chatAgent = new Agent({ name: 'chat', instructions: 'You are a helpful assistant.' });
|
|
22
20
|
|
|
23
21
|
const app = new Koa();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cogitator-ai/koa",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Koa server adapter for Cogitator AI runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -14,34 +14,36 @@
|
|
|
14
14
|
"files": [
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=22.12.0"
|
|
19
|
+
},
|
|
17
20
|
"dependencies": {
|
|
18
|
-
"@cogitator-ai/core": "0.
|
|
19
|
-
"@cogitator-ai/memory": "0.
|
|
20
|
-
"@cogitator-ai/types": "0.
|
|
21
|
-
"@cogitator-ai/server-shared": "0.
|
|
21
|
+
"@cogitator-ai/core": "0.21.1",
|
|
22
|
+
"@cogitator-ai/memory": "0.8.0",
|
|
23
|
+
"@cogitator-ai/types": "0.24.0",
|
|
24
|
+
"@cogitator-ai/server-shared": "0.2.0"
|
|
22
25
|
},
|
|
23
26
|
"peerDependencies": {
|
|
24
27
|
"koa": ">=2.15.0",
|
|
25
28
|
"@koa/router": ">=12.0.0"
|
|
26
29
|
},
|
|
27
30
|
"optionalDependencies": {
|
|
28
|
-
"
|
|
29
|
-
"@cogitator-ai/
|
|
30
|
-
"
|
|
31
|
+
"@cogitator-ai/workflows": "0.7.1",
|
|
32
|
+
"@cogitator-ai/swarms": "0.6.1",
|
|
33
|
+
"ws": "^8.22.0"
|
|
31
34
|
},
|
|
32
35
|
"devDependencies": {
|
|
33
|
-
"
|
|
34
|
-
"@
|
|
35
|
-
"
|
|
36
|
-
"@types/
|
|
37
|
-
"
|
|
38
|
-
"@types/
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"@cogitator-ai/swarms": "0.5.1"
|
|
36
|
+
"@cogitator-ai/workflows": "0.7.1",
|
|
37
|
+
"@cogitator-ai/swarms": "0.6.1",
|
|
38
|
+
"supertest": "^7.3.0",
|
|
39
|
+
"@types/supertest": "^7.2.1",
|
|
40
|
+
"vitest": "^5.0.3",
|
|
41
|
+
"@types/koa": "^3.0.3",
|
|
42
|
+
"@types/ws": "^8.18.2",
|
|
43
|
+
"koa": "^3.2.1",
|
|
44
|
+
"@koa/router": "^15.7.0",
|
|
45
|
+
"typescript": "^6.0.3",
|
|
46
|
+
"ws": "^8.22.0"
|
|
45
47
|
},
|
|
46
48
|
"repository": {
|
|
47
49
|
"type": "git",
|