@decocms/bindings 1.0.1-alpha.17 → 1.0.1-alpha.18
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 +3 -3
- package/package.json +3 -6
- package/src/core/client/index.ts +2 -0
- package/src/core/client/mcp.ts +1 -1
- package/src/well-known/mcp.ts +1 -0
- package/test/index.test.ts +1 -1
- package/test/mcp.test.ts +1 -1
- package/vitest.config.ts +0 -8
package/README.md
CHANGED
|
@@ -621,14 +621,14 @@ This will generate ESM output in the `dist/` directory with TypeScript declarati
|
|
|
621
621
|
|
|
622
622
|
### Testing
|
|
623
623
|
|
|
624
|
-
Tests are written with [
|
|
624
|
+
Tests are written with [Bun](https://bun.com/docs/test):
|
|
625
625
|
|
|
626
626
|
```bash
|
|
627
627
|
# Run tests once
|
|
628
|
-
bun
|
|
628
|
+
bun test
|
|
629
629
|
|
|
630
630
|
# Watch mode
|
|
631
|
-
bun
|
|
631
|
+
bun test --watch
|
|
632
632
|
```
|
|
633
633
|
|
|
634
634
|
## Publishing
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decocms/bindings",
|
|
3
|
-
"version": "1.0.1-alpha.
|
|
3
|
+
"version": "1.0.1-alpha.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"
|
|
7
|
-
"test
|
|
6
|
+
"check": "tsc --noEmit",
|
|
7
|
+
"test": "bun test"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@modelcontextprotocol/sdk": "1.20.2",
|
|
@@ -21,9 +21,6 @@
|
|
|
21
21
|
"./agent": "./src/well-known/agent.ts",
|
|
22
22
|
"./workflow": "./src/well-known/workflow.ts"
|
|
23
23
|
},
|
|
24
|
-
"devDependencies": {
|
|
25
|
-
"vitest": "3.2.4"
|
|
26
|
-
},
|
|
27
24
|
"engines": {
|
|
28
25
|
"node": ">=24.0.0"
|
|
29
26
|
},
|
package/src/core/client/index.ts
CHANGED
package/src/core/client/mcp.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import type { MCPConnection } from "../connection";
|
|
4
4
|
import { createMCPClientProxy } from "./proxy";
|
|
5
|
-
|
|
5
|
+
export type { ServerClient } from "./mcp-client";
|
|
6
6
|
export const isStreamableToolBinder = (
|
|
7
7
|
toolBinder: ToolBinder,
|
|
8
8
|
): toolBinder is ToolBinder<string, any, any, true> => {
|
package/src/well-known/mcp.ts
CHANGED
package/test/index.test.ts
CHANGED
package/test/mcp.test.ts
CHANGED