@kubun/mcp 0.5.0 → 0.5.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/lib/client.js +1 -1
- package/package.json +6 -6
package/lib/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{randomIdentity as e}from"@enkaku/token";import{KubunDB as t}from"@kubun/db";import{
|
|
1
|
+
import{randomIdentity as e}from"@enkaku/token";import{KubunDB as t}from"@kubun/db";import{NodeSQLiteAdapter as r}from"@kubun/db-node-sqlite";import{PostgresAdapter as n}from"@kubun/db-postgres";import{HTTPClient as o}from"@kubun/http-client";import{KubunServer as u}from"@kubun/server";export function createClient(p){let i=p.identity??e();return"http"===p.type?new o({identity:i,serverID:p.serverID,url:p.url}):new u({db:new t({adapter:"postgres"===p.type?new n({url:p.url}):new r({database:"sqlite"===p.type?p.path:":memory:"})}),identity:i}).createClient({identity:i})}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubun/mcp",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"license": "see LICENSE.md",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"type": "module",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"@enkaku/token": "0.13.0",
|
|
22
22
|
"@mokei/context-server": "^0.5.0",
|
|
23
23
|
"graphql": "^16.12.0",
|
|
24
|
-
"@kubun/db": "^0.5.
|
|
25
|
-
"@kubun/graphql": "^0.5.0",
|
|
24
|
+
"@kubun/db": "^0.5.1",
|
|
26
25
|
"@kubun/db-postgres": "^0.5.0",
|
|
27
|
-
"@kubun/http-client": "^0.5.0",
|
|
28
26
|
"@kubun/server": "^0.5.0",
|
|
29
|
-
"@kubun/protocol": "^0.5.
|
|
30
|
-
"@kubun/
|
|
27
|
+
"@kubun/protocol": "^0.5.3",
|
|
28
|
+
"@kubun/http-client": "^0.5.0",
|
|
29
|
+
"@kubun/graphql": "^0.5.0",
|
|
30
|
+
"@kubun/db-node-sqlite": "^0.5.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@enkaku/transport": "0.13.1",
|