@skein-js/express 0.2.0 → 0.2.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 +16 -7
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Express adapter for skein-js — mount the Agent Protocol on an Express `Router`.
|
|
4
4
|
|
|
5
|
-
Part of **[skein-js](
|
|
5
|
+
Part of **[skein-js](../../README.md)** — a TypeScript [Agent Protocol](https://github.com/langchain-ai/agent-protocol) server for [LangGraph.js](https://github.com/langchain-ai/langgraphjs), and a drop-in replacement for the LangGraph CLI.
|
|
6
6
|
|
|
7
7
|
**Status:** 🚧 Pre-alpha — implemented; the v1 framework adapter.
|
|
8
8
|
|
|
@@ -19,11 +19,11 @@ out. It adds **no protocol logic of its own** — it's a thin transport shim. It
|
|
|
19
19
|
## Install
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
pnpm add @skein-js/express
|
|
22
|
+
pnpm add @skein-js/express @langchain/langgraph
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
**`express`** (`>=4.18`) and **`@langchain/langgraph`** are peer dependencies. `express` is almost
|
|
26
|
+
always already in your app; add it too if not (`pnpm add express`).
|
|
27
27
|
|
|
28
28
|
## Usage
|
|
29
29
|
|
|
@@ -52,10 +52,19 @@ app.listen(2024);
|
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
Bring your own persistent drivers (e.g. Postgres + Redis, assembled by
|
|
55
|
-
[`@skein-js/runtime`](../runtime)) through the same seam:
|
|
55
|
+
[`@skein-js/runtime`](../runtime)) through the same `deps` seam:
|
|
56
56
|
|
|
57
57
|
```ts
|
|
58
|
-
|
|
58
|
+
import { skeinRouter } from "@skein-js/express";
|
|
59
|
+
import { buildRuntime } from "@skein-js/runtime";
|
|
60
|
+
|
|
61
|
+
const runtime = await buildRuntime({
|
|
62
|
+
configPath: "./langgraph.json",
|
|
63
|
+
store: "postgres",
|
|
64
|
+
queue: "redis",
|
|
65
|
+
});
|
|
66
|
+
const { router } = await skeinRouter({ deps: runtime.deps, cors: runtime.cors });
|
|
67
|
+
app.use(router);
|
|
59
68
|
```
|
|
60
69
|
|
|
61
70
|
## API
|
|
@@ -100,7 +109,7 @@ its own.
|
|
|
100
109
|
## Learn more
|
|
101
110
|
|
|
102
111
|
- [Agent Protocol surface](../../docs/agent-protocol.md) · [Streaming (SSE)](../../docs/streaming.md) · [React SDK / `useStream`](../../docs/react-sdk.md)
|
|
103
|
-
- [skein-js overview](../../docs/index.md) · [Reuse-first architecture](../../docs/reuse.md)
|
|
112
|
+
- [skein-js overview](../../docs/index.md) · [Reuse-first architecture](../../docs/reuse.md) · [Root README](../../README.md)
|
|
104
113
|
|
|
105
114
|
## License
|
|
106
115
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skein-js/express",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
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/
|
|
45
|
-
"@skein-js/core": "0.2.
|
|
46
|
-
"@skein-js/storage-memory": "0.2.
|
|
47
|
-
"@skein-js/
|
|
44
|
+
"@skein-js/agent-protocol": "0.2.1",
|
|
45
|
+
"@skein-js/core": "0.2.1",
|
|
46
|
+
"@skein-js/storage-memory": "0.2.1",
|
|
47
|
+
"@skein-js/config": "0.2.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@langchain/langgraph": "^1.4.0",
|