@skein-js/express 0.3.0 → 0.4.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -253,6 +253,7 @@ var skeinRoutes = [
253
253
  // threads
254
254
  { method: "post", path: "/threads/search", handler: "listThreads" },
255
255
  { method: "post", path: "/threads", handler: "createThread" },
256
+ { method: "post", path: "/threads/:thread_id/copy", handler: "copyThread" },
256
257
  { method: "get", path: "/threads/:thread_id", handler: "getThread" },
257
258
  { method: "patch", path: "/threads/:thread_id", handler: "patchThread" },
258
259
  { method: "delete", path: "/threads/:thread_id", handler: "deleteThread" },
@@ -306,7 +307,9 @@ function createHandlerRouter(handlers, options = {}) {
306
307
  router[binding.method](binding.path, async (req, res) => {
307
308
  try {
308
309
  const request = toProtocolRequest(req);
309
- const response = await invoke(binding.foldThreadIdIntoBody ? foldThreadId(request) : request);
310
+ const response = await invoke(
311
+ binding.foldThreadIdIntoBody ? foldThreadId(request) : request
312
+ );
310
313
  await sendProtocolResponse(response, res);
311
314
  } catch (error) {
312
315
  sendErrorResponse(error, res, options.logger);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skein-js/express",
3
- "version": "0.3.0",
3
+ "version": "0.4.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>",
@@ -43,10 +43,10 @@
43
43
  "cors": "^2.8.5",
44
44
  "superjson": "^2.2.6",
45
45
  "zod": "^3.25.76",
46
- "@skein-js/config": "0.3.0",
47
- "@skein-js/agent-protocol": "0.3.0",
48
- "@skein-js/storage-memory": "0.3.0",
49
- "@skein-js/core": "0.3.0"
46
+ "@skein-js/agent-protocol": "0.4.0",
47
+ "@skein-js/config": "0.4.0",
48
+ "@skein-js/storage-memory": "0.4.0",
49
+ "@skein-js/core": "0.4.0"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@langchain/langgraph": "^1.4.0",