@skein-js/express 0.6.3 → 0.7.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.d.ts +1 -0
- package/dist/index.js +2 -2
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ interface SkeinRouter {
|
|
|
20
20
|
*/
|
|
21
21
|
declare function skeinRouter(options: SkeinRouterOptions): Promise<SkeinRouter>;
|
|
22
22
|
|
|
23
|
+
/** The result of {@link createExpressServer}: the Express app, the wired runtime, and lifecycle helpers. */
|
|
23
24
|
interface SkeinExpressServer {
|
|
24
25
|
/** The Express app, protocol mounted at `/`. Mount extra middleware or routes before `listen`. */
|
|
25
26
|
app: Express;
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { resolveProtocolRuntime } from "@skein-js/server-kit";
|
|
|
3
3
|
|
|
4
4
|
// src/routes.ts
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
copyThreadIdIntoBody,
|
|
7
7
|
skeinRoutes
|
|
8
8
|
} from "@skein-js/agent-protocol";
|
|
9
9
|
import cors from "cors";
|
|
@@ -109,7 +109,7 @@ function createHandlerRouter(handlers, options = {}) {
|
|
|
109
109
|
try {
|
|
110
110
|
const request = toProtocolRequest(req);
|
|
111
111
|
const response = await invoke(
|
|
112
|
-
binding.foldThreadIdIntoBody ?
|
|
112
|
+
binding.foldThreadIdIntoBody ? copyThreadIdIntoBody(request) : request
|
|
113
113
|
);
|
|
114
114
|
await sendProtocolResponse(response, res);
|
|
115
115
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skein-js/express",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Express adapter for skein-js — mount the Agent Protocol on an Express Router.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Maina Wycliffe <wmmaina7@gmail.com>",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"cors": "^2.8.5",
|
|
44
|
-
"@skein-js/agent-protocol": "0.
|
|
45
|
-
"@skein-js/
|
|
46
|
-
"@skein-js/server-kit": "0.
|
|
47
|
-
"@skein-js/
|
|
44
|
+
"@skein-js/agent-protocol": "0.7.0",
|
|
45
|
+
"@skein-js/core": "0.7.0",
|
|
46
|
+
"@skein-js/server-kit": "0.7.0",
|
|
47
|
+
"@skein-js/config": "0.7.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@langchain/langgraph": "^1.4.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@types/cors": "^2.8.17",
|
|
57
57
|
"@types/express": "^5.0.0",
|
|
58
58
|
"express": "^5.2.1",
|
|
59
|
-
"@skein-js/storage-memory": "0.
|
|
59
|
+
"@skein-js/storage-memory": "0.7.0"
|
|
60
60
|
},
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|